/* ========================================
   Heading Styles
   - Common heading styles across pages
   ======================================== */

/* コンテンツヘッダー（contents-header） */
.contents-header {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* content-container内のcontents-headerに上マージンを追加 */
.content-container > .contents-header:first-child {
    margin-top: 0.5rem;
}

.contents-header h1 {
    color: #1f2937; /* 黒が強めのグレー */
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.contents-header i {
    font-size: 1.6rem;
    color: #1f2937; /* 黒が強めのグレー */
}

@media (max-width: 768px) {
    .contents-header h1 {
        font-size: 1.5rem;
        white-space: normal;
    }
    
    .contents-header i {
        font-size: 1.4rem;
    }
}

/* 章見出し（chapter-title） */
.chapter-title {
    color: #3b82f6;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid #3b82f6;
    text-align: center;
}

@media (max-width: 768px) {
    .chapter-title {
        font-size: 1.15rem;
    }
}

/* サブセクション見出し（section-title：h3用） */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1rem;
    }
}

/* セクション見出し（section-heading） */
.section-heading {
    font-size: 1rem; /* 1.2rem → 1rem */
    font-weight: 600;
    color: #4a5568;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* セクションh2（create-p1用） */
section h2 {
    font-size: 1.5rem; /* 1.8rem → 1.5rem */
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1.33rem;
    position: relative;
    text-align: center;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -0.67rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: #cbd5e0;
}

/* ベース見出し（heading-base） */
.section-container h2,
.heading-base {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.5rem);
    line-height: 1.2;
}

/* ページヘッダー（page-header） */
.page-header {
    margin: 2rem 0;
    text-align: center;
}

.page-header h1 {
    color: #4a5568;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* 強制的に改行させない見出し */
.heading-no-wrap,
.heading-no-wrap h1 {
    white-space: nowrap;
}

.page-header h1 i {
    font-size: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 640px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header h1 i {
        font-size: 1.6rem;
    }
}

/* ラベルとボタンを並べるコンテナ */
.form-label-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}

.form-label-with-button .form-label {
    margin-bottom: 0;
}

/* 種族値ボタン */
.base-stats-button {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.base-stats-button:hover {
    background: #e0e7ff;
}

/* 種族値オーバーレイのグリッド */
.pokemon-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.pokemon-stats-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pokemon-stats-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.pokemon-stats-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

