/*
 * テンプレート③ TOP・共通レイアウト。色・フォント・寸法は theme-03.css のトークンのみ参照。
 * 対応：FV＋サイドバー / CONCEPT→選ばれる理由 / 写真帯 / PLAN→取扱メーカー / TRAINER→導入シーン / 見積もり相談 / フッター
 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--ff-ja); font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: .03em; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; font-weight: inherit; }
ul, ol { list-style: none; }

/* ---------- 制作確認用の表示（本番では削除） ---------- */
.demo-strip { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 6px var(--side); background: var(--c-text); color: var(--c-white); font-size: 12px; line-height: 1.5; letter-spacing: .02em; text-align: center; }
.demo-strip__badge { flex: none; padding: 1px 8px; border-radius: var(--radius-btn); background: var(--c-bg); color: var(--c-text); font-family: var(--ff-en); font-weight: 600; }

/* ---------- 見出し ---------- */
.sec-head { text-align: center; }
.sec-head__en { font-family: var(--ff-en); font-size: var(--fs-sec-en); font-weight: 400; letter-spacing: .03em; line-height: 1; }
.sec-head__ja { margin-top: 10px; font-size: var(--fs-sec-ja); line-height: 1.4; }

/* ---------- ボタン（テンプレート③「予約する／RESERVATION」の形） ---------- */
.cta-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: var(--sidebar-w); min-height: 72px; padding: 14px 32px; border-radius: var(--radius-btn);
  background: var(--c-brown); color: var(--c-white); line-height: 1.2; text-align: center; transition: opacity .2s;
}
.cta-btn:hover { opacity: .85; }
.cta-btn__ja { font-size: 16px; letter-spacing: .02em; }
.cta-btn__en { font-family: var(--ff-en); font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.cta-btn--side { width: 100%; min-width: 0; }
.cta-btn--fv, .cta-btn--footer { background: var(--c-bg); color: var(--c-brown); }
.cta-btn--footer { min-height: 82px; }

/* ---------- ロゴ ---------- */
.logo img { height: 48px; width: auto; }
.logo--footer img { height: 40px; filter: brightness(0) invert(1); }

/* ---------- FV（左サイドバー＋右の大きな写真） ---------- */
.fv { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); column-gap: 80px; padding-left: var(--side); height: var(--fv-h); max-height: calc(100vh - 30px); min-height: 640px; }
.sidebar { padding: 40px 0 32px; display: flex; flex-direction: column; }
.sidebar__nav { margin-top: 44px; }
.sidebar__list { display: grid; gap: 8px; }
.sidebar__list a { display: block; padding: 4px 0; font-family: var(--ff-en); font-size: var(--fs-nav); font-weight: 500; letter-spacing: .03em; line-height: 1.5; }
.sidebar__list a:hover { color: var(--c-brown); }
.sidebar .cta-btn { margin-top: 44px; }
.sidebar__note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 13px; line-height: 1.8; }
.sidebar__note-label { display: inline-block; margin-bottom: 6px; padding: 2px 12px; border-radius: 30px; background: var(--c-brown); color: var(--c-white); font-size: 12px; }

.fv__visual { position: relative; overflow: hidden; border-bottom-left-radius: var(--fv-radius); background: var(--c-brown); }
.fv__img { width: 100%; height: 100%; object-fit: cover; }
.fv__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(33,40,33,.55), rgba(33,40,33,.1) 55%, rgba(33,40,33,0)); }
.fv__copy { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 96px; color: var(--c-white); }
.fv__title { font-size: var(--fs-fv); font-weight: 400; line-height: 1.6; letter-spacing: .04em; text-shadow: 0 0 20px rgba(0,0,0,.3); }
.fv__title span, .fv__lead span { display: block; }
.fv__lead { margin-top: 20px; font-size: 17px; line-height: 1.9; text-shadow: 0 0 12px rgba(0,0,0,.4); }
.fv__copy .cta-btn { margin-top: 32px; min-width: 340px; min-height: 80px; }
.fv__copy .cta-btn__ja { font-size: 17px; }

/* ---------- セクション共通 ---------- */
.sec { padding: var(--sec-pad) var(--side) 0; }

/* CONCEPT（左右分割＋3つの特徴） */
.concept__split { max-width: 1280px; margin: 96px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 627px); gap: 56px; align-items: center; }
.concept__title { font-size: var(--fs-catch); line-height: 1.6; letter-spacing: .03em; }
.concept__title span { display: block; }
.concept__body { margin-top: 32px; }
.concept__media img { width: 100%; aspect-ratio: 627 / 448; object-fit: cover; border-radius: var(--radius-img); }
.feature-list { max-width: 1280px; margin: 120px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 8px 40px; text-align: center; }
.feature + .feature { border-left: 1px solid var(--c-line); }
.feature__icon svg { width: 50px; height: 50px; fill: none; stroke: var(--c-text); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.feature__title { margin-top: 20px; font-size: 20px; font-weight: 500; line-height: 1.5; }
.feature__body { margin-top: 16px; font-size: var(--fs-small); line-height: 1.9; text-align: left; }

/* 写真帯（テンプレートでは英字が横に流れる。デモは静止） */
.band { position: relative; margin-top: var(--sec-pad); height: 320px; overflow: hidden; }
.band__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.85); }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(244,241,235,.15); }
.band__text { position: absolute; z-index: 1; left: 0; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--ff-en); font-size: 96px; font-weight: 400; letter-spacing: .02em; line-height: 1; color: var(--c-white); white-space: nowrap; text-align: center; }

/* PLAN（白系の大きなカード＋横罫線リスト） */
.plan__card { max-width: 1280px; margin: 0 auto; padding: 104px 120px 120px; border-radius: var(--radius-card); background: var(--c-card); }
.plan__lead { margin-top: 56px; }
.plan__lead span { display: block; }
.plan__list { margin-top: 48px; border-bottom: 1px solid var(--c-line); }
.plan-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 32px 0; border-top: 1px solid var(--c-line); }
.plan-row__media img { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.plan-row__catch { font-size: 14px; line-height: 1.6; color: var(--c-brown); }
.plan-row__maker { margin-top: 4px; font-family: var(--ff-en); font-size: 26px; font-weight: 500; letter-spacing: .04em; line-height: 1.35; }
.plan-row__feature { margin-top: 12px; font-size: 17px; line-height: 1.95; }
.plan-row__products { margin-top: 12px; font-family: var(--ff-en); font-size: 16px; font-weight: 500; line-height: 1.9; }
.plan-row__products span { margin-right: 14px; font-family: var(--ff-ja); font-size: 14px; font-weight: 500; color: var(--c-brown); }
.plan-row__price { text-align: right; }
.plan-row__price-text { font-size: 22px; letter-spacing: .05em; line-height: 1.6; white-space: nowrap; }
.badge-pill { display: inline-block; margin-top: 6px; padding: 2px 16px; border-radius: 30px; background: var(--c-brown); color: var(--c-white); font-size: 13px; line-height: 1.7; }

/* TRAINER（ブラウンの横長カード） */
.trainer { position: relative; margin-top: var(--sec-pad); padding-bottom: var(--sec-pad); background: #e9e5de; }
.trainer__list { max-width: 1280px; margin: 56px auto 0; display: grid; gap: 40px; }
.trainer-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 80px; padding: 80px; border-radius: var(--radius-trainer); background: var(--c-brown); color: var(--c-white); }
.trainer-card__side { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; align-content: start; }
.trainer-card__no { font-family: var(--ff-en); font-size: 48px; letter-spacing: .03em; line-height: 1; }
.trainer-card__tag { font-size: 18px; line-height: 1.4; }
.trainer-card__media { grid-column: 1 / -1; margin-top: 32px; }
.trainer-card__media img { width: 280px; height: 417px; object-fit: cover; object-position: var(--focus, 50% 50%); border-radius: 50%; }
.trainer-card__note { margin-top: 10px; font-size: 12px; line-height: 1.5; opacity: .85; text-align: center; }
.trainer-card__title { font-size: 24px; font-weight: 500; line-height: 1.5; }
.trainer-card__label { margin-top: 32px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.trainer-card__text { margin-top: 10px; font-size: var(--fs-small); line-height: 1.9; }
.trainer-card__points { margin-top: 10px; font-size: var(--fs-small); line-height: 1.9; }
.trainer-card__points li { position: relative; padding-left: 1.1em; }
.trainer-card__points li::before { content: "・"; position: absolute; left: 0; }

/* 見積もり相談 */
.estimate { padding-bottom: var(--sec-pad); text-align: center; }
.estimate__body { margin-top: 48px; }
.estimate__body span { display: block; }
.estimate .cta-btn { margin-top: 56px; min-width: 440px; min-height: 92px; padding: 18px 48px; gap: 6px; }
.estimate .cta-btn__ja { font-size: 19px; }
.estimate .cta-btn__en { font-size: 14px; }

/* ---------- フッター（ブラウン） ---------- */
.site-footer { background: var(--c-brown); color: var(--c-white); padding: 80px var(--side); }
.site-footer__inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; }
.site-footer__info { font-size: 14px; line-height: 1.7; }
.site-footer__info .logo { display: inline-block; margin-bottom: 16px; }
.site-footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__nav a { font-family: var(--ff-en); font-size: 16px; font-weight: 500; letter-spacing: .03em; }
.site-footer__copy { font-family: var(--ff-en); font-size: 12px; letter-spacing: .03em; }

.sp-header, .sp-cta-bar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .fv { column-gap: 40px; }
  .plan__card { padding: 80px 48px; }
  .trainer-card { padding: 56px; gap: 48px; grid-template-columns: 220px minmax(0, 1fr); }
  .trainer-card__media img { width: 220px; height: 330px; }
  .concept__split { grid-template-columns: 1fr; }
}

/* ---------- SP ---------- */
@media (max-width: 767px) {
  .demo-strip { font-size: 11px; gap: 8px; padding: 6px 12px; }
  /* サイドバー → 上部固定ヘッダー＋メニュー */
  .sp-header { display: flex; position: sticky; top: 0; z-index: 40; height: 64px; align-items: center; justify-content: space-between; padding: 0 var(--side); background: var(--c-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .sp-header .logo img { height: 30px; }
  .sp-menu summary { list-style: none; display: grid; align-content: center; gap: 7px; width: 44px; height: 44px; padding: 0 10px; cursor: pointer; }
  .sp-menu summary::-webkit-details-marker { display: none; }
  .sp-menu summary span { display: block; height: 1px; background: var(--c-text); }
  .sp-menu__panel { position: absolute; left: 0; right: 0; top: 64px; padding: 24px var(--side) 32px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); box-shadow: 0 12px 24px rgba(33,40,33,.08); }
  .sp-menu__list a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--c-line); font-family: var(--ff-en); font-weight: 500; letter-spacing: .03em; line-height: 1.5; }
  .sp-menu__panel .cta-btn { margin-top: 24px; }

  .sec, .plan, .trainer { scroll-margin-top: 72px; } /* 固定ヘッダーの下に見出しが隠れないように */
  .fv { display: block; height: auto; max-height: none; min-height: 0; padding: 0; }
  .fv .sidebar { display: none; }
  .fv__visual { height: 76svh; min-height: 520px; border-bottom-left-radius: 40px; }
  .fv__copy { left: var(--side); right: var(--side); bottom: 36px; }
  .fv__title { letter-spacing: .02em; }
  .fv__lead { font-size: 14px; line-height: 1.8; }
  .fv__lead span { display: inline; }
  .fv__copy .cta-btn { min-width: 0; width: 100%; }

  .concept__split { margin-top: 56px; gap: 32px; }
  .concept__body { margin-top: 24px; }
  .feature-list { margin-top: 64px; grid-template-columns: 1fr; }
  .feature { padding: 32px 0; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--c-line); }
  .feature__title { font-size: 18px; }

  .band { height: 180px; }
  .band__text { font-size: 44px; text-align: left; padding-left: var(--side); }

  .plan__card { padding: 56px 20px 64px; }
  .plan__lead { margin-top: 32px; }
  .plan__lead span { display: inline; }
  .plan-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .plan-row__media img { width: 100%; aspect-ratio: 16 / 9; }
  .plan-row__maker { font-size: 22px; }
  .plan-row__feature { font-size: 15px; line-height: 1.9; }
  .plan-row__products { font-size: 15px; }
  .plan-row__price { text-align: left; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .plan-row__price-text { font-size: 18px; }
  .badge-pill { margin-top: 0; }

  .trainer__list { margin-top: 40px; gap: 24px; }
  .trainer-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .trainer-card__media { justify-self: center; }
  .trainer-card__side { justify-items: start; }
  .trainer-card__media img { width: 220px; height: 300px; margin: 0 auto; }
  .trainer-card__no { font-size: 28px; }
  .trainer-card__title { font-size: 20px; }
  .trainer-card__label { margin-top: 20px; }

  .estimate .cta-btn { width: 100%; min-width: 0; min-height: 84px; padding: 16px 20px; }
  .estimate .cta-btn__ja { font-size: 17px; }
  .estimate__body { margin-top: 32px; text-align: left; }

  .site-footer { padding: 56px var(--side) 120px; }
  .site-footer__inner { flex-direction: column; }
  .site-footer__right { align-items: stretch; }
  .site-footer__right .cta-btn { width: 100%; }

  .sp-cta-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(244,241,235,.95); border-top: 1px solid var(--c-line); }
  .sp-cta-bar a { display: block; padding: 17px; border-radius: var(--radius-btn); background: var(--c-brown); color: var(--c-white); text-align: center; font-size: 16px; line-height: 1.4; }
}
