/*
 * ============================================================
 *  front-page.css ／ トップページ専用スタイル
 *  v6.0.0
 *  
 *  既存のCSS変数（style.css :root）に依存して書く。
 *  色・余白・フォントは全て var(--xxx) を使用。
 *  
 *  セクションごとに区切ってコメントを置く。
 *  各セクションは inc/front-page/ 配下のパーシャルが対応。
 * ============================================================ */


/* ============================================================
   セクション共通
   ============================================================ */

.fp-section {
    padding: 80px 0;
}
.fp-section.on-soft { background: var(--bg-soft); }
.fp-section.on-card { background: var(--bg-card); }

/* ユーティリティ：スマホで改行を無効化したい <br> 用 */
@media (max-width: 720px) {
  .hide-on-mobile { display: none; }
}

.fp-section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-red-text);
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: "Georgia", serif;
}


/* ============================================================
   ② ヒーロー
   ============================================================ */

.fp-hero {
    background: var(--bg-page);
    padding: 64px 0 72px;
    border-bottom: 1px solid var(--color-border);
}
.fp-hero-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--content-side-padding);
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 56px;
    align-items: center;
}
.fp-hero-copy h1 {
    font-size: 42px;
    line-height: 1.4;
    margin-bottom: 16px;
}
.fp-hero-copy h1 .red { color: var(--brand-red-text); }
.fp-hero-sub {
    font-size: var(--fs-body);
    color: var(--color-text);
    line-height: var(--lh-body);
    margin-bottom: 28px;
}
.fp-hero-catch {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 28px;
    color: var(--color-ink);
}
.fp-hero-catch .red { color: var(--brand-red-text); }
.fp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 24px;
    font-size: 14px;
    color: #444;
}
.fp-hero-badges span::before {
    content: "✓ ";
    color: var(--brand-red-text);
    font-weight: 700;
}
.fp-eyebrow-tag {
    display: inline-block;
    background: var(--color-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

/* ヒーロー内ミニ見積もりフォーム
   .estimate-form のスタイルは estimate.css から継承。
   トップページのヒーロー横並びレイアウトに合わせた調整のみここで定義。 */
.fp-hero-estimate-form {
    /* estimate.css のデフォルト padding 36px は維持 */
    /* フォーム自体の最大幅はヒーロー右カラム内で自然に収まる */
}
.fp-hero-estimate-form .estimate-form-title {
    font-size: 18px;        /* 元 20px → ヒーローでは少し抑える */
    margin-bottom: 6px;
}
.fp-hero-estimate-form .estimate-form-subtitle {
    font-size: 14px;        /* 元 16px → ヒーローではコンパクトに */
    margin-bottom: 24px;    /* 元 40px → 詰めて密度を上げる */
}
.fp-hero-estimate-form .estimate-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;              /* 元 40px → ヒーロー内では狭めに */
    margin-bottom: 20px;
}
.fp-hero-estimate-form .estimate-field-label {
    font-size: 14px;        /* 元 16px → ヒーロー内では少し小さく */
    margin-bottom: 8px;
}
.fp-hero-estimate-form .estimate-form-footer {
    margin-top: 18px;
}


/* ============================================================
   ボタン（front-page専用）
   ============================================================ */

.fp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--brand-red);
    color: #fff;
    font-size: var(--fs-btn);
    font-weight: var(--fw-btn);
    letter-spacing: 0.08em;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.fp-btn-primary:hover { background: var(--brand-red-hv); }
.fp-btn-primary.full { width: 100%; padding: 16px; font-size: 18px; }

.fp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--color-ink);
    font-size: var(--fs-btn);
    font-weight: var(--fw-btn);
    letter-spacing: 0.08em;
    padding: 13px 28px;
    border: 2px solid var(--color-ink);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.fp-btn-secondary:hover {
    background: var(--color-ink);
    color: #fff;
}

.fp-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-ink);
    color: #fff;
    font-size: var(--fs-btn);
    font-weight: var(--fw-btn);
    letter-spacing: 0.08em;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.fp-btn-dark:hover { background: #000; }


/* ============================================================
   ③ 告知バー
   ============================================================ */

.fp-notice-bar {
    background: #2A2A2A;
    color: #fff;
    padding: 14px var(--content-side-padding);
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    text-decoration: none;
    display: block;
}
.fp-notice-bar:hover { color: #fff; opacity: 0.92; }
.fp-notice-bar .label {
    display: inline-block;
    background: var(--brand-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 12px;
    letter-spacing: 0.08em;
    vertical-align: middle;
}
.fp-notice-bar .text {
    vertical-align: middle;
}
.fp-notice-bar .arrow {
    margin-left: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
    vertical-align: middle;
}


/* ============================================================
   ④ イベントバナー
   ============================================================ */

.fp-event-section {
    background: var(--bg-page);
    padding: 56px 0;
    border-bottom: 1px solid var(--color-border);
}
.fp-event-banner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--content-side-padding);
}
.fp-event-banner-inner {
    background: #fff;
    border: 2px solid var(--brand-red);
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 420px 1fr;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fp-event-banner-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
.fp-event-image {
    background: linear-gradient(135deg, #c2185b 0%, #e70012 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fp-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-event-image-placeholder {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    line-height: 1.7;
}
.fp-event-detail {
    padding: 28px 32px;
}
.fp-event-tag {
    display: inline-block;
    background: var(--brand-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}
.fp-event-detail h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-ink);
    font-weight: 700;
    line-height: 1.5;
}
.fp-event-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.9;
}
.fp-event-meta strong { color: var(--color-ink); }


/* ============================================================
   セクション見出し（h2）共通スタイル（フロント専用）
   ============================================================ */

.fp-section h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-heading);
    line-height: var(--lh-heading);
    letter-spacing: 0.02em;
    padding-left: 18px;
    border-left: 6px solid var(--brand-red);
    margin-bottom: 24px;
    color: var(--color-ink);
}

.fp-section p {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    margin-bottom: 16px;
}

.fp-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--content-side-padding);
}


/* ============================================================
   ⑤ 3つの強み
   ============================================================ */

.fp-reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}
.fp-reason-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 36px 28px;
    text-align: left;
}
.fp-reason-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--brand-red-text);
    line-height: 1;
    margin-bottom: 16px;
    font-family: "Georgia", serif;
}
.fp-reason-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--color-ink);
}
.fp-reason-card p {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 0;
}


/* ============================================================
   ⑥ 業界権威2氏の推薦
   ============================================================ */

.fp-experts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}
.fp-expert-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 36px;
}
.fp-expert-quote {
    font-size: 16px;
    line-height: 2.0;
    color: var(--color-ink);
    margin-bottom: 24px;
    padding-left: 24px;
    border-left: 4px solid var(--brand-red);
}
.fp-expert-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.fp-expert-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #eee;
}
.fp-expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.fp-expert-info .name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-ink);
}
.fp-expert-info .title {
    font-size: 12px;
    color: #555;
    line-height: 1.7;
}


/* ============================================================
   ⑦ ハウスメーカー対応（10社ロゴ 5×2）
   ============================================================ */

.fp-hm-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 20px;
    margin-top: 32px;
}
.fp-hm-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
}
.fp-hm-card img {
    max-width: 100%;
    height: auto;
    display: block;
}
.fp-hm-card:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}


/* ============================================================
   ⑧ 個人情報不要見積もりUX
   ============================================================ */

.fp-steps-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.fp-step-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 32px 28px;
    position: relative;
}
.fp-step-card .h3-step {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-heading);
    line-height: var(--lh-heading);
    margin-bottom: 16px;
    color: var(--color-ink);
}
.fp-step-card .h3-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.fp-step-card p {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 0;
}
.fp-steps-cta {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* ============================================================
   ⑨ ステンドグラス特別仕様
   ============================================================ */

.fp-stained-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}
.fp-stained-image {
    border-radius: 14px;
    aspect-ratio: 4/5;
    min-height: 360px;
    overflow: hidden;
    background: #2c1810;
}
.fp-stained-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.fp-stained-text h2 { margin-bottom: 18px; }
.fp-stained-lead {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-red-text);
    line-height: 1.7;
    margin-bottom: 24px !important;
}
.fp-stained-text p {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    margin-bottom: 16px;
    color: #333;
}
.fp-stained-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 720px;
    margin: 8px auto 0;
}
.fp-stained-product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}
.fp-stained-product-image {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #311b92 0%, #6a1b9a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}
.fp-stained-product-info {
    padding: 18px;
}
.fp-stained-product-info .name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-ink);
}
.fp-stained-product-info .desc {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.fp-stained-cta {
    text-align: center;
    margin-top: 40px;
}


/* ============================================================
   ⑩ メーカー紹介（3メーカー画像）
   ============================================================ */

.fp-makers-image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    align-items: stretch;
}
.fp-makers-image-card {
    flex: 0 1 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    transition: all 0.2s;
    text-decoration: none;
}
.fp-makers-image-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 120px;      /* カード内での最大表示高さ。横幅は自動でアスペクト比保持 */
    display: block;
}
.fp-makers-image-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}


/* ============================================================
   ⑪ 施工事例ピックアップ
   ============================================================ */

.fp-case-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.fp-case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.fp-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.fp-case-card-image-wrap {
    position: relative;
    aspect-ratio: 3/2;
    background: var(--bg-soft);
    overflow: hidden;
}
.fp-case-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}
.fp-case-card:hover .fp-case-card-image-wrap img {
    transform: scale(1.04);
}
.fp-case-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6d4c41 0%, #3e2723 100%);
    color: #fff;
    font-size: 13px;
}
.fp-case-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fp-case-card-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}
.fp-case-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    color: var(--color-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-case-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 10px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-cases-more {
    text-align: center;
    margin-top: 48px;
}


/* ============================================================
   ⑫ 工事の流れ（6ステップ）
   ============================================================ */

.fp-flow-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 40px;
    counter-reset: flow-counter;
}
.fp-flow-step {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px 18px 24px;
    text-align: center;
    position: relative;
}
.fp-flow-step::before {
    counter-increment: flow-counter;
    content: counter(flow-counter);
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 auto 14px;
}
.fp-flow-step h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--color-ink);
}
.fp-flow-step p {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}
.fp-flow-cta {
    text-align: center;
    margin-top: 40px;
}


/* ============================================================
   ⑬ 対応エリア
   ============================================================ */

.fp-area-block {
    margin-top: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
}
.fp-area-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--color-border);
    align-items: baseline;
}
.fp-area-row:first-of-type { padding-top: 0; }
.fp-area-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.fp-area-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-ink);
}
.fp-area-label .small {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-top: 4px;
}
.fp-area-list {
    font-size: 16px;
    line-height: 2.0;
    color: #333;
}
.fp-area-list strong { color: var(--brand-red-text); }
.fp-area-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #555;
    line-height: 1.9;
}
.fp-area-cta {
    text-align: center;
    margin-top: 32px;
}


/* ============================================================
   ⑭ お知らせ3件
   ============================================================ */

.fp-news-section {
    background: var(--bg-soft);
    padding: 56px 0;
}
.fp-news-list {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-top: 24px;
}
.fp-news-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.fp-news-item:last-child { border-bottom: none; }
.fp-news-item:hover { background: #FAF8F5; }
.fp-news-item .date {
    font-size: 14px;
    color: #666;
    font-family: "Courier New", monospace;
    font-weight: 700;
}
.fp-news-item .title { font-size: 15px; color: var(--color-ink); }
.fp-news-item:hover .title { color: var(--brand-red-text); }
.fp-news-item .arrow { font-size: 14px; color: #999; }
.fp-news-more {
    text-align: right;
    margin-top: 18px;
    font-size: 14px;
}
.fp-news-more a {
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fp-news-more a:hover { color: var(--brand-red-text); }


/* ============================================================
   ⑮ FAQ
   ============================================================ */

.fp-faq-list {
    margin-top: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.fp-faq-item {
    border-bottom: 1px solid var(--color-border);
}
.fp-faq-item:last-child { border-bottom: none; }
.fp-faq-q {
    padding: 22px 28px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 32px 1fr 24px;
    gap: 16px;
    align-items: center;
    list-style: none;
}
.fp-faq-q::-webkit-details-marker { display: none; }
.fp-faq-q .q-mark {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-red-text);
    font-family: "Georgia", serif;
}
.fp-faq-q .q-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-ink);
}
.fp-faq-q .q-icon {
    font-size: 18px;
    color: #999;
    transition: transform 0.2s;
}
details[open] .fp-faq-q .q-icon { transform: rotate(45deg); }
.fp-faq-a {
    padding: 0 28px 24px 76px;
    font-size: 15px;
    line-height: 2.0;
    color: #444;
}
.fp-faq-a a {
    color: var(--brand-red-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.fp-faq-cta {
    text-align: center;
    margin-top: 32px;
}


/* ============================================================
   ⑯ 最終CTA
   ============================================================ */

.fp-final-cta {
    background: var(--color-ink);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.fp-final-cta-icon {
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}
.fp-final-cta-icon svg {
    opacity: 0.9;
}
.fp-final-cta h2 {
    color: #fff;
    border-left: none;
    padding-left: 0;
    margin-bottom: 16px;
    font-size: 32px;
}
.fp-final-cta p {
    color: #ddd;
    margin-bottom: 32px;
    font-size: 16px;
}
.fp-final-cta .fp-btn-primary {
    padding: 18px 48px;
    font-size: 18px;
}
.fp-final-cta-tel {
    margin-top: 28px;
    font-size: 14px;
    color: #ddd;
}
.fp-final-cta-tel strong {
    display: block;
    font-size: 28px;
    color: #fff;
    margin: 6px 0 4px;
    letter-spacing: 0.04em;
}
.fp-final-cta-tel strong a {
    color: inherit;
    text-decoration: none;
}
.fp-final-cta-tel strong a:hover {
    opacity: 0.85;
}


/* ============================================================
   ⑪ 施工事例ピックアップ（cases.css の case-card スタイル上書き）
   ------------------------------------------------------------
   inc/cases/render.php の genkan_case_render_card() で出力される
   .case-card.case-card--list を、トップページでは3列・コンパクトに表示。
   アーカイブページ（/cases/）の2列・大きめ表示には影響しない。
   ============================================================ */

.case-archive-grid--top {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    margin-top: 40px;
}
.case-archive-grid--top .case-card--list .case-card-body {
    padding: 20px 22px 22px;
}
.case-archive-grid--top .case-card--list .case-card-meta {
    font-size: 12px;
    margin-bottom: 6px;
}
.case-archive-grid--top .case-card--list .case-card-title {
    font-size: 15px;
    line-height: 1.6;
}
.case-archive-grid--top .case-card-excerpt {
    font-size: 13px;
    line-height: 1.8;
    margin: 10px 0 0;
}

@media (max-width: 960px) {
    .case-archive-grid--top {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}
@media (max-width: 720px) {
    .case-archive-grid--top {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}


/* ============================================================
   レスポンシブ
   ============================================================ */

@media (max-width: 960px) {
    .fp-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .fp-hero-form { max-width: 520px; margin: 0 auto; }
    .fp-reasons-grid { grid-template-columns: 1fr; gap: 16px; }
    .fp-experts-grid { grid-template-columns: 1fr; gap: 20px; }
    .fp-hm-grid { grid-template-columns: repeat(3, 1fr); }
    .fp-hm-grid .fp-hm-card:nth-child(10) { display: none; }
    .fp-steps-flow { grid-template-columns: 1fr; }
    .fp-stained-hero { grid-template-columns: 1fr; gap: 28px; }
    .fp-stained-products { grid-template-columns: 1fr; }
    .fp-makers-image-grid { gap: 16px; }
    .fp-makers-image-card { flex-basis: 100%; max-width: 420px; }
    .fp-flow-steps { grid-template-columns: repeat(3, 1fr); }
    .fp-event-banner-inner { grid-template-columns: 1fr; }
    .fp-area-row { grid-template-columns: 1fr; gap: 8px; }
    .fp-news-item { grid-template-columns: 100px 1fr 16px; gap: 12px; padding: 16px; }
}

@media (max-width: 720px) {
    .fp-section { padding: 56px 0; }
    .fp-hero { padding: 40px 0 48px; }
    .fp-hero-copy h1 { font-size: 28px; }
    .fp-hero-catch { font-size: 18px; }
    .fp-flow-steps { grid-template-columns: 1fr; }
    .fp-news-item { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
    .fp-news-item .arrow { display: none; }
    .fp-final-cta h2 { font-size: 24px; }
    .fp-stained-image { aspect-ratio: 1/1; min-height: 280px; }

    /* ⑧ 3つのCTAボタン：縦積み時に幅を揃える */
    .fp-steps-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .fp-steps-cta .fp-btn-primary,
    .fp-steps-cta .fp-btn-dark {
        width: 100%;
    }
}
