/* ==========================================================================
   sub-common.css
   下層ページ共通スタイル
   1. 下層ページ共通FV (.sub-fv)
   2. ページレイアウト (.page-content, .page-lead)
   3. 汎用コンテンツスタイル (.text-content-section, .section-title--left-align)
   4. 汎用コンポーネント (.works-grid, .profile-table, .contact-form)
   5. レスポンシブ対応
   ========================================================================== */

/* === 1. 下層ページ共通FV (.sub-fv) === */
.sub-fv {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    padding-top: var(--header-height); /* ヘッダー分高さを確保 */
}

.sub-fv__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6, 16, 77), rgba(0, 68, 136));
    z-index: -1;
}

.sub-fv__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.sub-fv__content {
    text-align: left;
    position: relative;
    z-index: 1;
}

.sub-fv__title {
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 1.1;
}

.sub-fv__subtitle {
    font-size: 1.3rem;
    font-weight: 700;
}

/* === 2. ページレイアウト === */
.page-content {
    padding: 80px 0;
}

/* === 3. 汎用コンテンツスタイル === */
/* テキストセクション（Privacy, Aboutなど） */
.text-content-section {
    margin-bottom: 60px;
}

.text-content-section h3 {
    font-size: 1.5rem;
    color: var(--color-main);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-main);
    margin-top: 40px;
    margin-bottom: 20px;
}

.text-content-section p,
.text-content-section ul,
.text-content-section ol {
    margin-bottom: 20px;
}

.text-content-section ul,
.text-content-section ol {
    padding-left: 20px;
}

.text-content-section ul li,
.text-content-section ol li {
    list-style: revert;
    margin-bottom: 10px;
}

/* 左揃えのセクションタイトル (Aboutページなどで使用) */
.section-title--left-align {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 30px;
    color: var(--color-main);
}

/* === 4. 汎用コンポーネント === */




/* === 5. レスポンシブ対応 === */
@media (max-width: 991px) {
    .sub-fv {
        height: 250px;
    }
    .sub-fv__title {
        font-size: 2.5rem;
    }
    .page-content {
        padding: 60px 0;
    }
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .profile-table__row {
        flex-direction: column;
    }
    .profile-table__term {
        flex: 0 0 auto;
        border-bottom: 1px solid #ddd;
    }
    .profile-table__term,
    .profile-table__desc {
        padding: 15px;
    }
    .sub-fv__title {
        font-size: 2rem;
    }
    .sub-fv__subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .sub-fv {
        height: 160px;
        padding-top: var(--header-height-mobile);
    }
    .sub-fv__title {
        font-size: 2rem;
    }
    .sub-fv__subtitle {
        font-size: 1em;
        font-weight: 100;
    }
    .page-content {
        padding: 50px 0;
    }
    .page-lead {
        font-size: 1rem;
        margin-bottom: 40px;
        text-align: left;
    }
    .works-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 25px;
    }
}