/* ========================================
   吉丸のこだわりページ専用CSS
======================================== */
.fwd-page-commitment {
    min-height: 100vh;
    background: #FCFCF2;
}

/* ナビゲーションメニュー - ヘッダーの下に配置 */
.fwd-page-commitment .fwd-main-menu {
    position: static;
    /* frontend.cssのposition: absoluteを上書き */
}

/* ナビゲーションメニュー */
.fwd-page-commitment .fwd-nav {
    background: #000000;
    padding: 0;
}

.fwd-page-commitment .nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.fwd-page-commitment .nav-item {
    flex: 1;
    text-align: center;
    border-bottom: 5px solid transparent;
    transition: all 0.3s ease;
}

.fwd-page-commitment .nav-item.active {
    background: #333333;
    border-bottom-color: #a2000d;
}

.fwd-page-commitment .nav-item a {
    display: block;
    padding: 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Zen Old Mincho', serif;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.fwd-page-commitment .nav-item:hover {
    background: #333333;
}

.fwd-page-commitment .nav-item a:hover {
    opacity: 0.8;
}

/* メインコンテンツ */
.fwd-page-commitment .fwd-main {
    padding: 60px 0;
    background-color: #FCFCF2;
    background-image: url('../../images/background_pattern.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
}

/* タイトルセクション */
.commitment-title {
    text-align: center;
    margin-bottom: 60px;
}

.commitment-title h1 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 36px; /* Figma仕様 */
    font-weight: 700;
    line-height: 24px; /* Figma仕様 */
    color: #000000;
    margin: 0;
}

/* 上部画像セクション - Figma仕様 */
.commitment-top-images {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.commitment-top-image {
    width: 700px; /* Figma仕様 */
    height: 416px; /* Figma仕様 */
    overflow: hidden;
    background: #d9d9d9; /* プレースホルダー背景 */
}

.commitment-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* アンダーライン - Figma仕様 */
.commitment-underline {
    width: 100%;
    height: 15px; /* Figma仕様 */
    background: #ffcc66; /* Figma仕様 */
    margin-bottom: 60px;
}

/* メインビジュアル - 横並び Figma仕様 */
.commitment-main-visual {
    position: relative;
    margin-bottom: 80px;
}

.main-visual-images {
    display: flex;
    gap: 0;
    width: 100%; /* 画面幅いっぱい */
}

.main-visual-image {
    flex: 1; /* 各画像が50%ずつ占める */
    height: 416px; /* Figma仕様 */
    flex-shrink: 0;
}

.main-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* アンダーライン - 画面いっぱい */
.commitment-main-visual::after {
    content: '';
    display: block;
    width: 100vw; /* 画面幅いっぱい */
    height: 15px; /* Figma仕様 */
    background: #FFCC66; /* Figma仕様: RGB(1, 0.8, 0.4) */
    margin-left: calc(50% - 50vw); /* 左右に拡張 */
}

/* リニューアルセクション - お問い合わせの上 */
.renewal-section {
    text-align: center;
    padding: 60px 20px;
    background: #fcfcf2;
}

.renewal-section h2 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 26px;
    font-weight: 700;
    color: #a2000d;
    margin: 0 0 30px 0;
}

.building-image {
    width: 100%;
    max-width: 998.4px;
    height: auto;
    margin: 0 auto 10px;
}

.building-image img {
    width: 100%;
    height: auto;
    display: block;
}

.building-note {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    color: #000000;
    margin: 0;
}

/* モバイル用改行 - PC版では非表示 */
.mobile-br {
    display: none;
}

/* こだわりアイテム - Figma仕様 */
.commitment-item {
    display: flex;
    gap: 54px; /* 計算: 982 - 490 - 438 = 54px */
    max-width: 1000px; /* 画面幅1400px - 左右200px余白 = 1000px */
    margin: 0 auto 80px;
    padding: 0 20px; /* 小さい画面用の余白 */
    align-items: flex-start;
}

@media (min-width: 1400px) {
    .commitment-item {
        padding: 0 200px; /* 画面幅1400px以上で左右200px余白 */
    }
}

.commitment-item.reverse {
    /* flex-direction: row-reverse を削除 - HTMLの順序通り（テキスト左、画像右） */
    gap: 54px;
}

.commitment-item.reverse .commitment-item-content h2 {
    width: 468px; /* Figma仕様 - タイトルのみ幅を広く */
}

.commitment-item-image {
    width: 490px; /* Figma仕様 */
    height: 268.58px; /* Figma仕様 */
    flex-shrink: 0;
    overflow: hidden;
    background: #d9d9d9; /* プレースホルダー背景 */
}

.commitment-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.commitment-item-content {
    width: 438px; /* Figma仕様 */
    flex-shrink: 0;
}

.commitment-item-content h2 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 26px; /* Figma仕様 */
    font-weight: 700;
    line-height: 1.5;
    color: #000000;
    margin: 0 0 20px 0;
    white-space: nowrap; /* 1行に強制 */
    overflow: visible; /* はみ出しを許可 */
}

/* 英語の時は折り返しを許可 */
.lang-en .commitment-item-content h2 {
    white-space: normal;
}

.commitment-item-content p {
    font-family: 'Zen Old Mincho', serif; /* Figma仕様 */
    font-size: 16px; /* Figma仕様 */
    font-weight: 700; /* Figma仕様 */
    line-height: 28px; /* Figma仕様 */
    color: #000000; /* Figma仕様 */
    margin: 0;
}

/* フッターバナー（ページ内） */
.fwd-page-commitment .fwd-footer-banner {
    margin-top: 80px;
    padding: 60px 40px;
    background: #fcfcf2;
    text-align: center;
    border-radius: 8px;
}

.fwd-page-commitment .fwd-footer-banner h3 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 20px 0;
}

.fwd-page-commitment .fwd-footer-banner p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin: 0 0 30px 0;
}

.fwd-page-commitment .btn-contact {
    display: inline-block;
    padding: 16px 40px;
    background: #a2000d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Zen Old Mincho', serif;
    font-size: 20px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.fwd-page-commitment .btn-contact:hover {
    opacity: 0.9;
}

/* フッター（ページ内） */
.fwd-page-commitment .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.fwd-page-commitment .footer-section h4 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.fwd-page-commitment .footer-section p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.fwd-page-commitment .footer-section .tel {
    font-family: 'Zen Old Mincho', serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.fwd-page-commitment .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fwd-page-commitment .footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.fwd-page-commitment .footer-nav a:hover {
    opacity: 0.7;
}

.fwd-page-commitment .footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.fwd-page-commitment .footer-bottom p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    color: #ffffff;
    margin: 0;
}

/* ========================================
   レスポンシブデザイン
======================================== */

/* ========================================
   モバイル（1024px以下）
   Figma: 750px (@2x) → 375px (@1x)
======================================== */
@media (max-width: 1024px) {
    .fwd-page-commitment .fwd-main {
        max-width: 100%;
        padding: 0;
    }

    /* タイトル: Figma 42px → 21px */
    .commitment-title {
        margin: 30px;
        padding: 0 20px;
    }

    .commitment-title h1 {
        font-size: 21px; /* Figma 42px (@2x) → 21px */
        line-height: 24px;
    }

    /* メインビジュアル: 常に横並び2枚表示 */
    .commitment-main-visual {
        margin-bottom: 0;
    }

    .main-visual-images {
        display: flex;
        flex-direction: row;
    }

    .main-visual-image {
        flex: 1;
        height: auto;
        aspect-ratio: auto; /* 高さを自動調整 */
    }

    .main-visual-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* アンダーライン: Figma 750x12px → 6px */
    .commitment-main-visual::after {
        height: 6px; /* Figma 12px (@2x) → 6px */
    }

    /* リニューアルセクション */
    .renewal-section {
        padding: 40px 20px;
    }

    /* リニューアルタイトル: Figma 32px → 16px */
    .renewal-section h2 {
        font-size: 16px; /* Figma 32px (@2x) → 16px */
        line-height: 1.4;
        margin-bottom: 20px;
    }

    /* 建物画像: Figma 710x271px → 355x135.5px */
    .building-image {
        max-width: 355px;
    }

    /* 注釈: Figma 22px → 11px */
    .building-note {
        font-size: 11px; /* Figma 22px (@2x) → 11px */
        text-align: right;
    }

    /* モバイル用改行を表示 */
    .mobile-br {
        display: block;
    }

    /* こだわりアイテム - 縦積み */
    .commitment-item {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        margin: 40px 0;
    }

    .commitment-item.reverse {
        flex-direction: column;
        gap: 20px;
    }

    /* 画像を先に表示（モバイルでは画像→テキストの順） */
    .commitment-item.reverse .commitment-item-content {
        order: 2;
    }

    .commitment-item.reverse .commitment-item-image {
        order: 1;
    }

    .commitment-item-image,
    .commitment-item-content {
        width: 100%;
    }

    /* 画像: Figma 680x372.73px → 340x186.36px */
    .commitment-item-image {
        height: auto;
        aspect-ratio: 680 / 372.73; /* Figma仕様 */
    }

    /* セクション見出し: Figma 32px/48px → 16px/24px */
    .commitment-item-content h2 {
        font-size: 16px; /* Figma 32px (@2x) → 16px */
        line-height: 24px; /* Figma 48px (@2x) → 24px */
        white-space: normal;
        margin-bottom: 16px;
    }

    .commitment-item.reverse .commitment-item-content h2 {
        width: 100%;
    }

    /* 本文: Figma 24px/40px → 12px/20px */
    .commitment-item-content p {
        font-size: 12px; /* Figma 24px (@2x) → 12px */
        line-height: 20px; /* Figma 40px (@2x) → 20px */
    }

    .fwd-page-commitment .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   小型スマホ（375px以下）
======================================== */
@media (max-width: 375px) {
    .commitment-title h1 {
        font-size: 18px;
    }

    .commitment-item-content h2 {
        font-size: 14px;
        line-height: 22px;
    }

    .commitment-item-content p {
        font-size: 11px;
        line-height: 18px;
    }

    .renewal-section h2 {
        font-size: 14px;
    }

    .building-note {
        font-size: 10px;
    }

    .fwd-page-commitment .footer-container {
        grid-template-columns: 1fr;
    }
}
