/* ============================================================
   Cardiff — main.css
   カーディフ・バイ・ザ・シー調：ネイビー × サンド × サンセット
   対応保証: iOS15+ / Chrome88+（flex gap, aspect-ratio, clamp, env() 使用可）
   ============================================================ */

/* ─────────── 0. TOKENS & RESET ─────────── */
:root {
    --navy:       #1f2a4b;   /* ロゴのネイビー */
    --navy-deep:  #161f3a;
    --sand:       #ece3d1;
    --sand-light: #f6f1e6;
    --paper:      #fbf9f4;
    --coral:      #d97a4e;   /* 夕陽のアクセント */
    --seafoam:    #7ea99f;
    --ink:        #2a2d33;

    --font-jp:      'Noto Sans JP', sans-serif;
    --font-en:      'Barlow', 'Noto Sans JP', sans-serif;
    --font-en-cond: 'Barlow Condensed', sans-serif;
    --font-script:  'Yellowtail', cursive;

    --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-jp);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; }

a { color: inherit; }

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* スクリプト体（英語アクセント） */
.cd-script {
    font-family: var(--font-script);
    font-weight: 400;
    color: var(--coral);
}
.cd-script-light {
    font-family: var(--font-script);
    font-weight: 400;
    color: var(--sand);
}

/* ─────────── 1. NAV ─────────── */
#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 clamp(16px, 3vw, 40px);
    color: #fff;
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
#site-nav.scrolled {
    color: var(--navy);
    background: rgba(251, 249, 244, 0.96);
    box-shadow: 0 1px 0 rgba(31, 42, 75, 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}
.nav-logo img { max-height: 40px; width: auto; }
.cd-logo-text {
    font-family: var(--font-script);
    font-size: 30px;
    line-height: 1;
    padding-top: 2px; /* Yellowtail のベースライン調整 */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 26px);
}
.nav-item {
    font-family: var(--font-en-cond);
    font-size: 15px;
    letter-spacing: 0.12em;
    text-decoration: none;
    padding: 10px 2px;
    position: relative;
}
.nav-item::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-item:hover::after { transform: scaleX(1); }

.nav-sns {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
}
.nav-sns svg { width: 20px; height: 20px; }
.nav-sns:hover { color: var(--coral); }

/* ハンバーガー（モバイルのみ表示） */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}
.nav-hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
body.cd-menu-open .nav-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.cd-menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.cd-menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

/* ─────────── 2. モバイルメニュー ─────────── */
.cd-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--navy);
    color: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* スクロール可能 + セーフエリア（ノッチ/ホームバー）対応 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--nav-height) + env(safe-area-inset-top))
             24px
             calc(32px + env(safe-area-inset-bottom));
}
body.cd-menu-open .cd-mobile-menu {
    opacity: 1;
    visibility: visible;
}

.cd-menu-close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none;
    border: none;
    color: var(--paper);
    cursor: pointer;
}

.cd-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 360px;
    text-align: center;
}
.cd-mobile-menu-list li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.cd-menu-open .cd-mobile-menu-list li {
    opacity: 1;
    transform: translateY(0);
}
.cd-mobile-menu-list a {
    display: block;
    /* タップ領域 44px 以上（WCAG 2.5.5） */
    padding: clamp(10px, 1.6vh, 14px) 16px;
    min-height: 44px;
    font-family: var(--font-en-cond);
    font-size: clamp(18px, 4.8vw, 24px);
    letter-spacing: 0.14em;
    text-decoration: none;
    color: var(--paper);
}
.cd-mobile-menu-list a:active { color: var(--coral); }

/* CTA はリストに統合し色のみ差別化（独立箱にしない） */
.cd-mobile-menu-list a.cd-menu-cta {
    color: var(--coral);
    font-weight: 600;
}

/* SNS（潰れ防止に flex-shrink:0） */
.cd-mobile-sns {
    display: flex;
    gap: 18px;
    margin-top: clamp(16px, 3vh, 32px);
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.cd-menu-open .cd-mobile-sns {
    opacity: 1;
    transform: translateY(0);
}
.cd-mobile-sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    color: var(--sand);
}
.cd-mobile-sns-icon svg { width: 24px; height: 24px; }

/* 小型端末（SE系 幅375px以下） */
@media (max-width: 375px) {
    .cd-mobile-menu-list a { font-size: clamp(16px, 5vw, 20px); }
}
/* 低背端末（高さ700px以下） */
@media (max-height: 700px) {
    .cd-mobile-menu { justify-content: flex-start; }
    .cd-mobile-menu-list a { padding-top: 8px; padding-bottom: 8px; }
    .cd-mobile-sns { margin-top: 12px; }
}

/* ─────────── 3. HERO ─────────── */
.cd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: var(--navy);
    overflow: hidden;
}
/* 画像未設定時のフォールバック（夕暮れの海グラデーション） */
.cd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 60% at 50% 100%, rgba(217, 122, 78, 0.35) 0%, rgba(217, 122, 78, 0) 55%),
        linear-gradient(to bottom, var(--navy-deep) 0%, var(--navy) 55%, #3a4a73 100%);
}
/* ヒーロー動画（設定時は画像より優先・無音自動再生ループ） */
.cd-hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 動画上のオーバーレイ：v0.001の「夕暮れの海」グラデーションを半透明化して継承
   （紺×夕陽の色味の下で動画が透けて動く。文字可読性も兼ねる）
   ※ 色・不透明度はカスタマイザー「ヒーロー演出」で調整可（inline styleが本指定を上書き）。
   　 ここは既定値＝オーバーレイ#1f2a4b 上90%/下40%・グロー#d97a4e 38% と同値 */
.cd-hero--video::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 120% 60% at 50% 100%, rgba(217, 122, 78, 0.38) 0%, rgba(217, 122, 78, 0) 55%),
        linear-gradient(to bottom, rgba(31, 42, 75, 0.90) 0%, rgba(31, 42, 75, 0.65) 55%, rgba(31, 42, 75, 0.40) 100%);
}
.cd-hero-inner {
    position: relative;
    z-index: 2;
    padding: 24px;
}
.cd-hero-eyebrow {
    font-family: var(--font-en-cond);
    font-size: clamp(13px, 2.4vw, 16px);
    letter-spacing: 0.32em;
    margin: 0 0 8px;
    color: var(--sand);
}
.cd-hero-title {
    margin: 0;
    line-height: 1.1;
}
.cd-hero-title .cd-script {
    font-size: clamp(72px, 16vw, 160px);
    color: #fff;
    text-shadow: 0 4px 28px rgba(22, 31, 58, 0.45);
}
.cd-hero-copy {
    font-size: clamp(15px, 2.6vw, 19px);
    font-weight: 500;
    letter-spacing: 0.18em;
    margin: 18px 0 0;
}
.cd-hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: clamp(36px, 7vh, 64px);
    font-family: var(--font-en-cond);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-decoration: none;
    color: var(--sand);
    min-width: 44px; min-height: 44px;
    justify-content: center;
}
.cd-hero-scroll-line {
    display: block;
    width: 1px; height: 36px;
    background: var(--sand);
    animation: cd-scroll-pulse 2s ease-in-out infinite;
}
@keyframes cd-scroll-pulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50%      { transform: scaleY(0.5); opacity: 0.5; }
}

/* 波の区切り（次セクションの紙色） */
.cd-hero-wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    z-index: 2;
    color: var(--paper);
    line-height: 0;
}
.cd-hero-wave svg { width: 100%; height: clamp(36px, 6vw, 80px); display: block; }

/* ─────────── 4. SECTION 共通 ─────────── */
.cd-section { padding: clamp(64px, 10vw, 120px) 0; }
.cd-section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}
.cd-section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.cd-section-script {
    font-size: clamp(34px, 6vw, 52px);
    line-height: 1.2;
    margin: 0;
}
.cd-section-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
    margin: 4px 0 0;
    color: var(--navy);
}
.cd-section-lead {
    font-size: 13px;
    color: #8a8275;
    margin: 12px 0 0;
}

/* プレースホルダ（画像差し替え前提） */
.cd-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 110% 70% at 50% 110%, rgba(217, 122, 78, 0.25) 0%, rgba(217, 122, 78, 0) 60%),
        linear-gradient(135deg, var(--navy) 0%, #36456e 100%);
    color: var(--sand);
    font-family: var(--font-en-cond);
    font-size: 13px;
    letter-spacing: 0.28em;
    text-align: center;
    line-height: 1.8;
}
.cd-placeholder-light {
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 100%);
    color: var(--navy);
}

/* スクロールリベール（JS有効時のみ。JS無効環境では常に表示） */
body.cd-js .cd-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
body.cd-js .cd-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────── 5. CONCEPT ─────────── */
.cd-concept { background: var(--paper); }
.cd-concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
.cd-concept-grid > * { min-width: 0; } /* grid blowout 対策 */
.cd-concept-visual {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
}
.cd-concept-text p { margin: 0 0 1.4em; }
.cd-concept-text p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
    .cd-concept-grid { grid-template-columns: 1fr; }
}

/* ─────────── 6. EXTERIOR / FEATURES ─────────── */
.cd-exterior { background: var(--sand-light); }
.cd-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
}
.cd-feature-grid > * { min-width: 0; }
.cd-feature-card {
    background: #fff;
    border-radius: 6px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 2px 12px rgba(31, 42, 75, 0.06);
}
.cd-feature-en {
    font-family: var(--font-en-cond);
    font-size: 12px;
    letter-spacing: 0.24em;
    color: var(--coral);
    margin: 0 0 6px;
}
.cd-feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
    letter-spacing: 0.06em;
}
.cd-feature-desc {
    font-size: 13.5px;
    margin: 0;
    color: #4a4d55;
}

@media (max-width: 900px) {
    .cd-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .cd-feature-grid { grid-template-columns: 1fr; }
}

/* ─────────── 7. INTERIOR ─────────── */
.cd-interior {
    background: var(--navy);
    color: var(--paper);
}
.cd-interior .cd-section-title { color: var(--paper); }
.cd-interior-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
.cd-interior-grid > * { min-width: 0; }
.cd-interior-visual {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
}
.cd-interior-text p { margin: 0; }

@media (max-width: 760px) {
    .cd-interior-grid { grid-template-columns: 1fr; }
    .cd-interior-text { order: 2; }
    .cd-interior-visual { order: 1; }
}

/* ─────────── 8. SPEC ─────────── */
.cd-spec { background: var(--paper); }
.cd-spec-table-wrap { overflow-x: auto; }
.cd-spec-table {
    width: 100%;
    border-collapse: collapse;
}
.cd-spec-table th,
.cd-spec-table td {
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid var(--sand);
    font-size: 14px;
    vertical-align: top;
}
.cd-spec-table th {
    width: 32%;
    min-width: 130px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}

/* 装備一覧（ベース車両 標準装備 / 架装部 標準装備） */
.cd-equip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 28px);
    margin-top: clamp(28px, 4vw, 44px);
}
.cd-equip-grid > * { min-width: 0; }
.cd-equip-card {
    background: #fff;
    border-radius: 6px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 2px 12px rgba(31, 42, 75, 0.06);
}
.cd-equip-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.06em;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sand);
}
.cd-equip-note {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #8a8275;
    margin-top: 4px;
    letter-spacing: 0.04em;
}
.cd-equip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cd-equip-list li {
    position: relative;
    padding: 7px 0 7px 18px;
    font-size: 13.5px;
    color: #4a4d55;
}
.cd-equip-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
}

@media (max-width: 700px) {
    .cd-equip-grid { grid-template-columns: 1fr; }
}

/* ─────────── 9. GALLERY ─────────── */
.cd-gallery { background: var(--sand-light); }
.cd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 20px);
}
.cd-gallery-grid > * { min-width: 0; }
.cd-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
}
.cd-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 760px) {
    .cd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────── 10. NEWS & EVENTS ─────────── */
.cd-news { background: var(--paper); }

/* 2カラム（EVENTS / NEWS） */
.cd-ep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.cd-ep-grid > * { min-width: 0; }
.cd-ep-col-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: var(--font-en-cond);
    font-size: 18px;
    letter-spacing: 0.18em;
    color: var(--navy);
    border-bottom: 2px solid var(--navy);
    padding-bottom: 10px;
    margin-bottom: 6px;
}
.cd-ep-col-title a {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--coral);
    min-height: 44px;
    display: inline-flex;
    align-items: flex-end;
}
.cd-ep-col-title a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .cd-ep-grid { grid-template-columns: 1fr; }
}

/* トップ：展示会リスト（日付バッジ＋会場） */
.cd-event-list { display: block; }
.cd-event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--sand);
    text-decoration: none;
    min-height: 44px;
}
.cd-event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: var(--paper);
    border-radius: 6px;
}
.cd-event-month {
    font-family: var(--font-en-cond);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
}
.cd-event-day {
    font-family: var(--font-en-cond);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}
.cd-event-info { min-width: 0; }
.cd-event-name {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s ease;
}
.cd-event-item:hover .cd-event-name { color: var(--coral); }
.cd-event-venue {
    display: block;
    font-size: 12px;
    color: #8a8275;
    margin-top: 3px;
}

/* ラベルバッジ（出展決定 / 終了 等） */
.cd-event-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--coral);
    border-radius: 999px;
    padding: 3px 14px;
    margin-bottom: 8px;
}
.cd-event-label--end { background: #9b9488; }

/* アーカイブ：展示会カード */
.cd-event-archive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 28px);
}
.cd-event-archive > * { min-width: 0; }
.cd-event-card {
    display: block;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(31, 42, 75, 0.06);
    text-decoration: none;
    transition: box-shadow 0.25s ease;
}
.cd-event-card:hover { box-shadow: 0 6px 20px rgba(31, 42, 75, 0.14); }
.cd-event-card.is-ended { opacity: 0.75; }
.cd-event-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.cd-event-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-event-card-body { display: block; padding: clamp(16px, 2.5vw, 24px); }
.cd-event-card-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.cd-event-card-meta {
    display: block;
    font-size: 12.5px;
    color: #8a8275;
    margin-top: 2px;
}

@media (max-width: 700px) {
    .cd-event-archive { grid-template-columns: 1fr; }
}

/* 詳細：ヘッダー画像 */
.cd-event-hero {
    margin-bottom: 28px;
    border-radius: 6px;
    overflow: hidden;
}
.cd-event-hero img { display: block; width: 100%; height: auto; }
.cd-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cd-news-list li { border-bottom: 1px solid var(--sand); }
.cd-news-list a {
    display: flex;
    align-items: baseline;
    gap: clamp(14px, 3vw, 28px);
    padding: 18px 4px;
    text-decoration: none;
    min-height: 44px;
}
.cd-news-list a:hover .cd-news-title { color: var(--coral); }
.cd-news-list time {
    font-family: var(--font-en-cond);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--coral);
    flex-shrink: 0;
}
.cd-news-title {
    font-size: 14.5px;
    color: var(--ink);
    transition: color 0.2s ease;
}
.cd-news-empty {
    color: #8a8275;
    font-size: 14px;
}

/* ─────────── 11. CONTACT ─────────── */
.cd-contact {
    background:
        radial-gradient(ellipse 120% 80% at 50% 120%, rgba(217, 122, 78, 0.3) 0%, rgba(217, 122, 78, 0) 60%),
        var(--navy);
    color: var(--paper);
    text-align: center;
}
.cd-contact .cd-section-title { color: var(--paper); }
.cd-contact-lead {
    margin: 20px 0 32px;
    font-size: 14.5px;
}
.cd-contact-note {
    color: var(--sand);
    font-size: 14px;
}

/* 2カラム（左=案内 / 右=フォーム） */
.cd-contact { text-align: left; }
.cd-contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.cd-contact-grid > * { min-width: 0; }

.cd-contact-info {
    margin: 0;
    border: 1px solid rgba(236, 227, 209, 0.3);
    border-radius: 6px;
}
.cd-contact-info > div {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(236, 227, 209, 0.3);
}
.cd-contact-info > div:last-child { border-bottom: none; }
.cd-contact-info dt {
    font-family: var(--font-en-cond);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 4px;
}
.cd-contact-info dd {
    margin: 0;
    font-size: 13.5px;
    color: var(--sand);
}
.cd-contact-info dd small { color: #8e96ad; font-size: 12px; }
.cd-contact-info dd a { color: var(--sand); }

/* フォームカード */
.cd-form-card {
    background: var(--paper);
    border-radius: 6px;
    padding: clamp(24px, 3.5vw, 40px);
    color: var(--ink);
}
.cd-form-field { margin-bottom: 16px; }
.cd-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}
.cd-form-field .req {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: var(--coral);
    border-radius: 3px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: 1px;
}
.cd-form-field input[type="text"],
.cd-form-field input[type="tel"],
.cd-form-field input[type="email"],
.cd-form-field select,
.cd-form-field textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid var(--sand);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-jp);
    font-size: 14px;
    color: var(--ink);
}
.cd-form-field input:focus,
.cd-form-field select:focus,
.cd-form-field textarea:focus {
    outline: none;
    border-color: var(--navy);
}
.cd-form-field textarea { min-height: 140px; resize: vertical; }
.cd-form-field.has-error input,
.cd-form-field.has-error select,
.cd-form-field.has-error textarea { border-color: #c0392b; background: #fdf3f2; }

.cd-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.cd-form-row-2 > * { min-width: 0; }

.cd-form-privacy label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: var(--ink);
    min-height: 44px;
}
.cd-form-privacy input { width: 18px; height: 18px; flex-shrink: 0; }
.cd-form-privacy.has-error label { color: #c0392b; }

.cd-form-submit {
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
    font-size: 15px;
}

/* honeypot（スクリーンリーダー含め非操作・画面外へ） */
.cd-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* 送信結果メッセージ */
.cd-form-msg {
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 13.5px;
}
.cd-form-msg-error {
    background: #fdf3f2;
    border: 1px solid #e5b3ac;
    color: #c0392b;
}
.cd-form-msg-success {
    background: #f0f7f1;
    border: 1px solid #b9d8be;
    color: #2F855A;
    padding: 28px 22px;
}
.cd-form-msg-success .cd-form-msg-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}
.cd-form-msg-success p { margin: 0 0 8px; color: var(--ink); }
.cd-form-msg-note { font-size: 12px; color: #8a8275; }

@media (max-width: 860px) {
    .cd-contact-grid { grid-template-columns: 1fr; }
}

/* ボタン共通 */
.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 40px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--navy);
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease;
}
.cd-btn:hover {
    background: var(--navy);
    color: var(--paper);
}
.cd-btn-light {
    border-color: var(--coral);
    background: var(--coral);
    color: #fff;
}
.cd-btn-light:hover {
    background: transparent;
    border-color: var(--sand);
    color: var(--sand);
}

/* ─────────── 12. FOOTER ─────────── */
.cd-footer {
    background: var(--navy-deep);
    color: var(--sand);
    text-align: center;
    padding: clamp(40px, 6vw, 64px) 0 calc(28px + env(safe-area-inset-bottom));
}
.cd-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}
.cd-footer-logo {
    display: inline-flex;
    text-decoration: none;
    color: var(--paper);
    min-height: 44px;
    align-items: center;
}
.cd-footer-logo img { max-height: 44px; width: auto; }
.cd-footer-logo .cd-logo-text { font-size: 34px; }
.cd-footer-tagline {
    font-family: var(--font-en-cond);
    font-size: 12px;
    letter-spacing: 0.28em;
    margin: 8px 0 24px;
}
.cd-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px clamp(14px, 2.5vw, 24px);
    margin-bottom: 28px;
}
.cd-footer-nav a {
    font-family: var(--font-en-cond);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-decoration: none;
    padding: 10px 2px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.cd-footer-nav a:hover { color: var(--coral); }
.cd-footer-copy {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin: 0;
    color: #8e96ad;
}

/* ─────────── 13. 下層（記事・固定ページ） ─────────── */
.cd-archive, .cd-page, .cd-single {
    padding: calc(var(--nav-height) + clamp(40px, 8vw, 80px)) 0 clamp(64px, 10vw, 120px);
}
/* 下層はヘッダー背景が無いので nav を常時不透明側の配色に */
body:not(.home) #site-nav {
    color: var(--navy);
    background: rgba(251, 249, 244, 0.96);
    box-shadow: 0 1px 0 rgba(31, 42, 75, 0.08);
}

.cd-single-head { margin-bottom: 32px; }
.cd-single-date {
    font-family: var(--font-en-cond);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--coral);
}
.cd-single-back { margin-top: 48px; text-align: center; }

.cd-entry-content { max-width: 720px; }
.cd-entry-content img,
.cd-entry-content video,
.cd-entry-content iframe {
    max-width: 100%;
    height: auto;
}
.cd-entry-content .wp-video,
.cd-entry-content video { width: 100% !important; }
.cd-entry-content .wp-caption { max-width: 100%; }

.cd-pagination { margin-top: 40px; text-align: center; }
.cd-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; min-height: 44px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--navy);
}
.cd-pagination .page-numbers.current { color: var(--coral); font-weight: 700; }

/* ─────────── 14. REDUCED MOTION（WCAG 2.3.3） ─────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    /* スクロールリベールはモーション抑制環境でも動かす（発注者判断・ヒーロー動画と同方針。
       OSの「視差効果を減らす」ONでフェードインが全く見えなくなるのを避ける） */
    body.cd-js .cd-reveal {
        transition-duration: 0.6s !important;
        transition-property: opacity, transform;
    }
}
