/* =========================================================
   SUNNY FIT LP  — A案：白×サニーオレンジ
   色や文字の大きさを変えたいときは、まず下の「:root」を変更します
   ========================================================= */
:root {
  --c-bg: #ffffff;          /* 背景 */
  --c-soft: #fff5e8;        /* 薄いオレンジの背景 */
  --c-ink: #2b2420;         /* 文字 */
  --c-sub: #75685d;         /* 補足の文字 */
  --c-line: #f0e3d3;        /* 線 */
  --c-accent: #f0811a;      /* メインのオレンジ */
  --c-accent-dark: #c9640a; /* 濃いオレンジ（小さい文字用） */
  --c-line-green: #06c755;  /* LINEの緑 */

  --f-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --radius: 16px;
  --header-h: 64px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-dark); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.4; text-wrap: balance; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-only { display: none; }
@media (max-width: 600px) { .sp-only { display: inline; } }
.nw { white-space: nowrap; } /* 言葉の途中で改行させない */
.btn:has(.nw) { flex-wrap: wrap; text-align: center; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.container-narrow { max-width: 760px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn-line { background: var(--c-line-green); color: #fff; }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-light { background: #fff; color: var(--c-ink); }
.btn-lg { min-height: 60px; font-size: 1.08rem; padding-inline: 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { font-family: var(--f-head); font-weight: 900; font-size: 1.35rem; letter-spacing: .08em; color: var(--c-ink); text-decoration: none; }
.logo b { color: var(--c-accent); }
.global-nav { display: flex; align-items: center; gap: 24px; }
.global-nav a { color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.global-nav a:hover { color: var(--c-accent-dark); }
.global-nav .nav-cta { background: var(--c-accent); color: #fff; padding: 8px 20px; border-radius: 999px; }
.global-nav .nav-cta:hover { color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .menu-bar, .menu-bar::before, .menu-bar::after {
    content: ""; display: block; width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease; position: relative;
  }
  .menu-bar::before { position: absolute; top: -7px; }
  .menu-bar::after { position: absolute; top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-bar { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bar::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    padding: 8px 20px 20px; display: none;
  }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 14px 4px; border-bottom: 1px solid var(--c-line); }
  .global-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* ---------- ファーストビュー ---------- */
/* 写真を使うときは images/hero.jpg を置き、下の background の1行目のコメントを外します */
.hero {
  color: #fff;
  background:
    /* linear-gradient(rgba(240,129,26,.75), rgba(240,129,26,.55)), url("images/hero.jpg") center/cover, */
    radial-gradient(circle at 85% 15%, rgba(255,230,160,.9) 0, rgba(255,230,160,0) 40%),
    linear-gradient(135deg, #ffc35c 0%, #f7a23c 45%, #f0811a 100%);
  padding-block: 72px 64px;
}
.hero-lead { font-weight: 700; letter-spacing: .08em; font-size: .95rem; opacity: .95; }
.hero-title { font-size: clamp(2rem, 6vw, 3.4rem); margin: 14px 0 18px; font-weight: 900; text-shadow: 0 2px 12px rgba(160,70,0,.25); }
.hero-title em { font-style: normal; border-bottom: 6px solid rgba(255,255,255,.55); }
.hero-text { max-width: 34em; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-points li { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 4px 14px; font-size: .88rem; font-weight: 500; }

/* ---------- セクション共通 ---------- */
.section { padding-block: 80px; }
.section-soft { background: var(--c-soft); }
.eyebrow { color: var(--c-accent-dark); font-weight: 700; letter-spacing: .2em; font-size: .8rem; }
.section-title { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 4px 0 36px; }
.section-title small { font-size: .55em; color: var(--c-sub); font-weight: 500; margin-left: .4em; }
@media (max-width: 600px) { .section { padding-block: 56px; } .section-title { margin-bottom: 28px; } }

/* ---------- お悩み ---------- */
.worry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.worry-card { border: 2px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.worry-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--c-accent-dark); }
.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.worry-answer { margin-top: 32px; text-align: center; font-family: var(--f-head); font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 700; }
.worry-answer strong { background: linear-gradient(transparent 60%, #ffd9a8 60%); }
@media (max-width: 720px) { .worry-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 選ばれる理由 ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.reason-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; }
.reason-num { font-family: var(--f-head); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--c-accent); }
.reason-card h3 { font-size: 1.2rem; margin: 12px 0 10px; }
.reason-card p { color: var(--c-sub); font-size: .95rem; }
@media (max-width: 820px) { .reason-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- トレーナー ---------- */
.trainer { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; }
.trainer-photo { width: 100%; max-width: 240px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 6px solid var(--c-soft); }
.trainer-photo--empty { display: grid; place-items: center; background: var(--c-soft); color: var(--c-accent); font-family: var(--f-head); font-weight: 900; font-size: 2.4rem; }
.trainer-role { color: var(--c-accent-dark); font-weight: 700; font-size: .9rem; }
.trainer-name { font-size: 1.8rem; margin: 2px 0 14px; }
.trainer-name span { display: block; font-size: .8rem; font-family: var(--f-body); color: var(--c-sub); letter-spacing: .12em; font-weight: 500; }
.trainer-body p + p { margin-top: 12px; }
@media (max-width: 720px) {
  .trainer { grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; }
  .trainer-photo { max-width: 180px; }
  .trainer-body { text-align: left; }
}

/* ---------- 料金 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price-card { background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 2px solid transparent; display: grid; gap: 10px; align-content: start; }
.price-card.is-featured { border-color: var(--c-accent); }
.price-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-head h3 { font-size: 1.25rem; }
.tag { background: var(--c-accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.price-note { color: var(--c-sub); font-size: .9rem; }
.price-list { margin: 4px 0 0; display: grid; gap: 6px; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed var(--c-line); padding-top: 8px; }
.price-list dt { font-weight: 700; }
.price-list dd { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--c-ink); white-space: nowrap; }
.price-list dd span { font-family: var(--f-body); font-size: .8rem; font-weight: 500; color: var(--c-sub); margin-left: 2px; }

.price-sub { margin-top: 28px; display: grid; gap: 20px; }
.trial { background: var(--c-accent); color: #fff; border-radius: var(--radius); padding: 26px 28px; }
.trial-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; opacity: .9; }
.trial h3 { font-size: 1.3rem; margin: 4px 0 8px; }
.trial h3 strong { font-size: 1.5em; }
.other-fees { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.other-fees > div { background: #fff; border-radius: var(--radius); padding: 20px 24px; }
.other-fees dt { font-weight: 700; color: var(--c-accent-dark); font-size: .9rem; }
.other-fees dd { margin: 2px 0 0; font-family: var(--f-head); font-weight: 900; font-size: 1.4rem; }
.other-fees dd small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .82rem; color: var(--c-sub); margin-top: 4px; line-height: 1.7; }
.price-seitai { font-size: .9rem; color: var(--c-sub); }
@media (max-width: 720px) {
  .price-grid, .other-fees { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- お客様の声 ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.voice { margin: 0; background: var(--c-soft); border-radius: var(--radius); padding: 28px; position: relative; }
.voice::before { content: "“"; position: absolute; top: -6px; left: 18px; font-family: Georgia, serif; font-size: 4rem; color: var(--c-accent); line-height: 1; }
.voice blockquote { margin: 12px 0 14px; font-size: .95rem; }
.voice figcaption { font-weight: 700; text-align: right; }
@media (max-width: 720px) { .voice-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ご利用の流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.flow li { background: #fff; border-radius: var(--radius); padding: 22px 20px; counter-increment: step; position: relative; }
.flow li::before { content: "STEP " counter(step); display: block; color: var(--c-accent-dark); font-weight: 700; font-size: .8rem; letter-spacing: .12em; }
.flow h3 { font-size: 1.08rem; margin: 4px 0 8px; }
.flow p { font-size: .9rem; color: var(--c-sub); }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- よくある質問 ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 2px solid var(--c-line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--c-accent); font-family: var(--f-head); margin-right: 8px; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--c-accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--c-sub); }

/* ---------- アクセス ---------- */
.access { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: #eee; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access-info { margin: 0; display: grid; gap: 16px; }
.access-info dt { font-size: .82rem; font-weight: 700; color: var(--c-accent-dark); letter-spacing: .08em; }
.access-info dd { margin: 0; }
.map-link { margin-top: 16px; font-size: .9rem; }
@media (max-width: 820px) { .access { grid-template-columns: minmax(0, 1fr); } }

/* ---------- お問い合わせ ---------- */
.contact-line { text-align: center; display: grid; gap: 20px; justify-items: center; background: var(--c-soft); border-radius: var(--radius); padding: 32px 20px; }
.contact-form { margin-top: 40px; }
.contact-form h3 { font-size: 1.15rem; margin-bottom: 14px; }
.contact-form iframe { width: 100%; height: 1900px; border: 2px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.form-link { margin-top: 10px; font-size: .88rem; color: var(--c-sub); }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-ink); color: #e9e2da; padding-block: 40px 40px; text-align: center; font-size: .88rem; }
.site-footer .container { display: grid; gap: 6px; }
.logo-footer { color: #fff; }

/* ---------- スマホ用 固定ボタン ---------- */
.sticky-cta { display: none; }
@media (max-width: 820px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 2fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--c-line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta.is-show { transform: none; }
  .sticky-cta .btn { min-height: 48px; padding: 8px 12px; }
  .site-footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   写真枠
   images フォルダに決まった名前の写真を置くと自動で表示されます。
   写真が無い間は、点線の「ここに写真」枠が表示されます。
   ========================================================= */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: none; }
.hero:has(.hero-photo)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(232,112,10,.88) 0%, rgba(240,129,26,.7) 45%, rgba(240,129,26,.25) 100%); }

.trainer-photo--empty { position: relative; overflow: hidden; }
.trainer-photo--empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.photo-band, .photo-gallery figure {
  margin: 0; position: relative; overflow: hidden;
  background: var(--c-soft);
  outline: 2px dashed #f2c79a; outline-offset: -14px;
}
.photo-band::before, .photo-gallery figure::before {
  content: "ここに写真：" attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  color: var(--c-accent-dark); font-size: .88rem; font-weight: 700;
}
.photo-band { aspect-ratio: 21 / 8; max-width: 100%; }
.photo-band img, .photo-gallery img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-band:has(img), .photo-gallery figure:has(img) { outline: 0; }

.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.photo-gallery figure { aspect-ratio: 4 / 3; max-width: 100%; }

@media (max-width: 600px) {
  .photo-band { aspect-ratio: 4 / 3; }
  .photo-gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .photo-gallery figure:first-child { grid-column: 1 / -1; }
}

/* ---------- ロゴ画像（images/logo.png・logo-footer.png があれば文字の代わりに表示） ---------- */
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; max-width: 240px; object-fit: contain; }
@media (max-width: 600px) { .logo-img { height: 32px; max-width: 200px; } }
.logo:has(.logo-img) .logo-text { display: none; }
.logo-footer { justify-content: center; }
.logo-footer .logo-img { height: 46px; max-width: 260px; }
.photo-gallery img { object-position: center 45%; }
/* 3枚並びは縦長写真用 */
.photo-gallery figure { aspect-ratio: 3 / 4; }
.photo-gallery img { object-position: center center; }
@media (max-width: 600px) {
  .photo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .photo-gallery figure:first-child { grid-column: auto; }
}

/* ファーストビュー：写真は右側に。左のオレンジ（文字の部分）から写真へ自然になじませる */
.hero .hero-photo { inset: 0 0 0 auto; width: 63%; object-position: center 12%; }
.hero:has(.hero-photo)::before {
  background: linear-gradient(90deg, #f0811a 0%, #f39033 38%, rgba(243,144,51,.45) 46%, rgba(243,144,51,0) 59%);
}
.hero:has(.hero-photo) { background: linear-gradient(135deg, #ffb347 0%, #f0811a 100%); padding-block: 88px 80px; }
@media (max-width: 820px) {
  .hero .hero-photo { width: 100%; object-position: center 15%; }
  .hero:has(.hero-photo)::before { background: linear-gradient(180deg, rgba(240,129,26,.08) 0%, rgba(240,129,26,.45) 40%, rgba(236,120,20,.78) 100%); }
}

/* 整体の写真（お悩みの下）は上の方が映るように */
.photo-band img[src$="photo-1.jpg"] { object-position: center 18%; }
.photo-band img[src$="photo-2.jpg"] { object-position: center 10%; }
.hero:has(.hero-photo) .hero-inner { text-shadow: 0 1px 6px rgba(150,60,0,.45); }
/* お客様の声の下の写真は縦を広めに */
.photo-band:has(img[src$="photo-2.jpg"]) { aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .photo-band:has(img[src$="photo-2.jpg"]) { aspect-ratio: 3 / 2; } } /* スマホは写真全体（3:2）を表示 */

/* トップ写真：髪の毛から膝までが収まる大きさ（高さに合わせて幅を決める） */
@media (min-width: 821px) {
  .hero .hero-photo {
    inset: 0 0 0 auto; height: 100%; width: auto; aspect-ratio: 1.06;
    object-fit: cover; object-position: center 12%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  }
  .hero:has(.hero-photo)::before { display: none; }
  .hero:has(.hero-photo) { background: #f0811a; }
}
