/* =============================================================
   ゴルフ場詳細（golf_club_detail.php）2026-11-08 刷新
   まるっと予約（css/matomete.css）と同じトーン:
   緑のヒーロー（ゴルフ柄）＋写真ギャラリー、白いカードで情報を区切る
   ============================================================= */
.cd-page {
    --cd-green: #376439;
    --cd-green-dark: #24432a;
    --cd-green-pale: #eef5ee;
    --cd-ink: #1f2a20;
    --cd-muted: #5f6b60;
    --cd-line: #e3e8e3;
    --cd-bg: #f5f7f4;
    --cd-accent: #f59e0b;
    color: var(--cd-ink);
    background: var(--cd-bg);
    overflow-x: clip;
}
.cd-page * { box-sizing: border-box; }
.cd-page h1, .cd-page h2, .cd-page h3, .cd-page p { word-break: auto-phrase; }
#user-section.cd-page { padding: 0; }
.cd-inner { max-width: 1320px; margin: 0 auto; padding: 0 15px; }  /* 本文の幅はサイト共通の .container と同じ（css/site-width.css: 1400px以上で1320px） */
@media screen and (max-width: 1399px) { .cd-inner { max-width: 1170px; } }

/* ── Hero（写真を全面に敷く。まるっと予約の緑の帯とは見せ方を変える） ── */
.cd-hero {
    position: relative; overflow: hidden; color: #fff;
    min-height: 640px; display: flex; align-items: flex-end;
    background: linear-gradient(150deg, #24432a 0%, #376439 55%, #4f8a4f 100%);
}
.cd-hero-photo { position: absolute; inset: 0; }
.cd-hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.cd-hero-shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 28%),
        linear-gradient(0deg, rgba(8, 18, 9, .82) 0%, rgba(8, 18, 9, .35) 45%, rgba(8, 18, 9, 0) 70%);
}
.cd-hero.is-nophoto .cd-hero-shade { background: none; }
.cd-hero-content {
    position: relative; z-index: 1; width: 100%;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
    padding-top: 150px; padding-bottom: 40px;
}
.cd-hero-text { min-width: 0; max-width: 680px; }
.cd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.cd-crumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.cd-crumb a:hover { color: #fff; text-decoration: underline; }
.cd-crumb .material-icons { font-size: 16px; opacity: .6; }
.cd-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.cd-pill .material-icons { font-size: 15px; }
.cd-pill--rt { background: #fff7e6; color: #b45309; }
.cd-hero h1 { margin: 10px 0 2px; color: #fff; font-size: 44px; font-weight: 800; line-height: 1.25; letter-spacing: .02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.cd-eng { margin: 0 0 12px; font-size: 15px; letter-spacing: .06em; color: rgba(255, 255, 255, .85); text-transform: uppercase; }
.cd-rating { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.cd-rating:hover { color: #fff; text-decoration: underline; }
.cd-rating .cd-rating-num { color: #ffd54a; font-size: 18px; }
.cd-rating .cd-rating-count { color: rgba(255, 255, 255, .85); font-size: 13px; }
.cd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.cd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px;
    border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 800; cursor: pointer;
    text-decoration: none; white-space: nowrap; transition: all .15s;
}
.cd-btn .material-icons { font-size: 19px; }
.cd-btn--line { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); }
.cd-btn--line:hover { background: rgba(255, 255, 255, .18); color: #fff; text-decoration: none; }
.cd-fav {
    display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 8px 0 14px; border-radius: 10px;
    background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .6); backdrop-filter: blur(6px); font-size: 13px; font-weight: 800;
}
.cd-fav .favorite { background: transparent; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer; }
.cd-fav .favorite img { width: 22px; height: auto; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); transition: transform .15s; }
.cd-fav .favorite:hover img { transform: scale(1.12); }
.cd-actions .mt-add-btn { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; border-color: #fff; }

/* 写真の切り替え */
.cd-gallery-nav {
    position: absolute; top: 46%; z-index: 2; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .85); color: var(--cd-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: background .15s;
}
.cd-gallery-nav:hover { background: #fff; }
.cd-gallery-nav--prev { left: 20px; }
.cd-gallery-nav--next { right: 20px; }
.cd-hero-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cd-gallery-count { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 700; }
.cd-gallery-count .material-icons { font-size: 15px; }
.cd-gallery-thumbs { display: flex; gap: 6px; }
.cd-gallery-thumbs button { flex: 0 0 76px; width: 76px; height: 52px; padding: 0; border: 2px solid rgba(255, 255, 255, .5); border-radius: 8px; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .2); opacity: .75; transition: all .15s; }
.cd-gallery-thumbs button:hover { opacity: 1; }
.cd-gallery-thumbs button.is-active { border-color: #fff; opacity: 1; }
.cd-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ── 目次（全幅のタブ。下線で現在位置） ── */
.cd-page nav.cd-tabs {
    display: block; width: 100%; max-width: none; float: none; margin: 0; padding: 0;
    position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--cd-line);
    box-shadow: 0 4px 16px rgba(20, 50, 22, .06);
}
.cd-tabs-inner { display: flex; gap: 4px; overflow-x: auto; }
.cd-tabs a {
    position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; height: 56px; padding: 0 18px;
    color: var(--cd-muted); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.cd-tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background .2s; }
.cd-tabs a:hover { color: var(--cd-ink); text-decoration: none; }
.cd-tabs a.is-active { color: var(--cd-green); }
.cd-tabs a.is-active::after { background: var(--cd-green); }
.cd-body { padding: 28px 0 80px; }

/* ── カード ── */
.cd-card {
    background: #fff; border-radius: 20px; padding: 28px; margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(20, 50, 22, .06); border: 1px solid var(--cd-line);
    scroll-margin-top: 76px;
}
.cd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cd-card-head h2 { position: relative; margin: 0; padding-left: 14px; font-size: 21px; font-weight: 800; color: var(--cd-ink); }
.cd-card-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--cd-green); }
.cd-card-head h2 .material-icons { display: none; }
.cd-card-head a { font-size: 13px; font-weight: 700; }
.cd-intro { margin: 0; font-size: 15px; line-height: 2; color: #34403a; }
.cd-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cd-quick > span {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px;
    background: var(--cd-green-pale); color: var(--cd-green); font-size: 13px; font-weight: 800;
}
.cd-quick .material-icons { font-size: 17px; }

/* プラン */
.cd-partner { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #e9f3fb; color: #0b5a8f; font-size: 13px; }
.cd-plans { display: flex; flex-direction: column; gap: 14px; }
.cd-plan {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
    padding: 18px 20px; border-radius: 16px; border: 1px solid var(--cd-line); background: #fbfcfb; transition: box-shadow .2s, border-color .2s;
}
.cd-plan:hover { border-color: #c9dcc9; box-shadow: 0 8px 22px rgba(20, 50, 22, .08); }
.cd-plan-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cd-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; background: #f1f4f1; color: var(--cd-muted); font-size: 11px; font-weight: 800; }
.cd-tag .material-icons { font-size: 14px; }
.cd-tag--hot { background: #fff1e6; color: #c2410c; }
.cd-tag--pre { background: var(--cd-green); color: #fff; }
.cd-plan-name { display: inline-block; margin-bottom: 4px; font-size: 16px; font-weight: 800; color: var(--cd-ink); line-height: 1.5; }
.cd-plan-name:hover { color: var(--cd-green); }
.cd-plan-summary { font-size: 13px; line-height: 1.7; color: #4a564b; }
.cd-plan-period { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--cd-muted); }
.cd-plan-period .material-icons { font-size: 15px; }
.cd-plan-side { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 300px; }
/* 料金は「区分ラベル｜金額｜円換算」の表にする。ラベルは左寄せ */
.cd-price {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; row-gap: 6px;
    padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--cd-line);
}
/* ラベルの見た目はサイト共通の .price-type-tag（青地に白文字）。ここでは並べ方だけ決める */
.cd-price .cd-price-label { justify-self: start; align-self: center; margin: 0; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.cd-price-amount { justify-self: end; font-size: 17px; font-weight: 800; color: var(--cd-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-price-amount small { font-size: 11px; font-weight: 700; color: var(--cd-muted); }
.cd-price-jpy { justify-self: end; font-size: 12px; color: var(--cd-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-price--note { display: block; text-align: center; font-size: 14px; font-weight: 800; color: var(--cd-ink); }
.cd-price-none { grid-column: span 2; justify-self: end; font-size: 12px; color: #a3aca3; }
.cd-plan form { margin: 0; }
.cd-plan .reserve-button { width: 100%; height: 44px; margin: 0; border-radius: 12px; font-weight: 800; }
.cd-empty { padding: 26px; text-align: center; color: var(--cd-muted); border: 2px dashed var(--cd-line); border-radius: 14px; }
.cd-more-link { display: flex; justify-content: flex-end; margin-top: 12px; font-size: 13px; font-weight: 700; }

/* ゴルフ場情報 */
.cd-info { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--cd-line); }
.cd-info dt, .cd-info dd { margin: 0; padding: 14px 4px; border-bottom: 1px solid var(--cd-line); font-size: 14px; line-height: 1.8; }
.cd-info dt { display: flex; align-items: flex-start; gap: 6px; font-weight: 800; color: var(--cd-muted); }
.cd-info dt .material-icons { font-size: 18px; color: var(--cd-green); margin-top: 3px; }
.cd-info dd { white-space: pre-wrap; word-break: break-word; }
.cd-info dd a { font-weight: 700; }

/* 設備・オプション */
.cd-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cd-opt { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--cd-line); background: #fff; }
.cd-opt-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--cd-green-pale); color: var(--cd-green); }
.cd-opt-name { font-size: 14px; font-weight: 800; }
.cd-opt-value { margin-top: 2px; font-size: 13px; color: #34403a; line-height: 1.6; }
.cd-opt-desc { margin-top: 4px; font-size: 12px; color: var(--cd-muted); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.cd-opt-badge { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: var(--cd-green); color: #fff; font-size: 11px; font-weight: 800; }
.cd-opt.is-off { background: #fafbfa; }
.cd-opt.is-off .cd-opt-icon { background: #f0f2f0; color: #b9c2b9; }
.cd-opt.is-off .cd-opt-name { color: #9aa59b; }
.cd-opt.is-off .cd-opt-value { color: #b0b8b0; }

/* 口コミ */
.cd-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cd-review { padding: 16px; border-radius: 14px; background: #fafbfa; border: 1px solid var(--cd-line); }
.cd-review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--cd-muted); }
.cd-review-body { margin: 0; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

/* ── Responsive ── */
@media screen and (max-width: 960px) {
    .cd-hero { min-height: 600px; }
    .cd-hero-content { flex-direction: column; align-items: flex-start; padding-top: 190px; }
    .cd-hero-side { align-items: flex-start; }
}
@media screen and (max-width: 780px) {
    #user-section.cd-page { padding-top: 56px; }
    .cd-inner { padding: 0 16px; }
    .cd-hero { min-height: 520px; }
    .cd-hero-content { gap: 16px; padding-top: 120px; padding-bottom: 24px; }
    .cd-hero h1 { font-size: 28px; }
    .cd-eng { font-size: 12px; }
    .cd-actions { gap: 8px; margin-top: 14px; }
    .cd-btn, .cd-actions .mt-add-btn, .cd-fav { height: 38px; font-size: 13px; }
    .cd-gallery-nav { width: 36px; height: 36px; top: 96px; transform: none; }
    .cd-gallery-nav--prev { left: 10px; }
    .cd-gallery-nav--next { right: 10px; }
    .cd-gallery-thumbs button { flex-basis: 60px; width: 60px; height: 42px; }
    .cd-tabs a { height: 48px; padding: 0 12px; font-size: 14px; }
    .cd-card { padding: 20px 16px; scroll-margin-top: 60px; }
    .cd-card-head h2 { font-size: 18px; }
    .cd-plan { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .cd-plan-side { min-width: 0; }
    .cd-info { grid-template-columns: minmax(0, 1fr); }
    .cd-info dt { padding-bottom: 0; border-bottom: 0; }
    .cd-info dd { padding-top: 4px; }
    .cd-options { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
    .cd-opt { flex-direction: column; gap: 8px; padding: 12px; }
}

/* 過去のプラン（golf_club_past_plan.php）：写真の帯は低め */
.cd-hero--sub { min-height: 380px; }
.cd-past-note { margin: 0 0 14px; font-size: 13px; color: var(--cd-muted); }
@media (max-width: 767px) { .cd-hero--sub { min-height: 320px; } }

/* プラン詳細の料金：行の枠の中にさらに枠を作らない（2026-11-08 ユーザー指示） */
.cd-plans--flat .cd-price { padding: 0; border: 0; border-radius: 0; background: transparent; }
