/*
Theme Name: Rebirth
Description: パーソナルトレーニングジムリバース 専用テーマ
Author: 株式会社BODY MAKE GYM Rebirth
Version: 1.0
Text Domain: rebirth
*/

:root {
  /* 黒×ゴールド（2026-11-20 変更） */
  --navy: #1c1c1c;
  --navy-dark: #0f0f0f;
  --orange: #a8854a;
  --bg: #faf8f4;
  --bg-soft: #f1ede5;
  --text: #2a2723;
  --muted: #6b655c;
  --line: #e4ddd0;
  --line-green: #06c755;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.accent { color: var(--orange); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { text-decoration: none; color: var(--navy); line-height: 1.2; }
.logo-main { display: block; font-weight: 700; font-size: 22px; letter-spacing: .08em; }
.logo-sub { display: block; font-size: 11px; color: var(--muted); }
.site-header .logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 54px; width: auto; display: block; }
.site-header .logo-sub { line-height: 1.4; letter-spacing: .03em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 700; }
.nav a:hover { color: var(--orange); }
.nav .nav-cta { background: var(--orange); color: #fff; padding: 8px 16px; border-radius: 999px; }
.nav .nav-cta:hover { color: #fff; opacity: .9; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; text-align: center;
  transition: opacity .2s, transform .2s; border: 0; cursor: pointer; font-size: 16px;
  font-family: inherit;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }

/* ---------- ファーストビュー ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 96px 0 88px; text-align: center;
}
.hero-label { display: inline-block; font-size: 13px; letter-spacing: .1em; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 4px 16px; margin-bottom: 20px; }
.hero h1 { font-size: 40px; line-height: 1.45; margin: 0 0 20px; font-weight: 700; }
.hero p { margin: 0 0 32px; opacity: .9; }
.hero-badge { display: inline-block; background: #fff; color: var(--navy); font-weight: 700; padding: 6px 16px; border-radius: 8px; margin-bottom: 24px; }
.hero-badge strong { color: var(--orange); }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- セクション共通 ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .en { display: block; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .15em; }
.section-title h2 { margin: 4px 0 0; color: var(--navy); font-size: 28px; line-height: 1.5; }
.lead { text-align: center; max-width: 680px; margin: 0 auto 40px; color: var(--muted); }

/* お悩み */
.worries { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: grid; gap: 12px; }
.worries li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 52px; position: relative; font-weight: 700; }
.worries li::before { content: "✓"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; display: grid; place-items: center; }
.worries-answer { text-align: center; margin-top: 32px; font-size: 20px; font-weight: 700; color: var(--navy); }

/* 選ばれる理由 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; }
.card-num { color: var(--orange); font-weight: 700; font-size: 32px; line-height: 1; }
.card h3 { color: var(--navy); font-size: 19px; margin: 12px 0 12px; line-height: 1.5; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* PFC */
.pfc { display: flex; gap: 8px; margin-top: 16px; }
.pfc span { flex: 1; text-align: center; background: var(--bg-soft); border-radius: 8px; padding: 6px 2px; font-size: 12px; line-height: 1.5; font-weight: 700; color: var(--navy); }

/* トレーナー */
.trainer { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.trainer-photo { aspect-ratio: 4/5; border-radius: var(--radius); background: var(--bg-soft); border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.trainer-role { color: var(--orange); font-weight: 700; font-size: 14px; margin: 0; }
.trainer h3 { font-size: 26px; color: var(--navy); margin: 0 0 16px; }
.trainer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.trainer-tags li { background: var(--navy); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 999px; }

.trainer-photo.has-img { border: 1px solid var(--line); background: #fff; overflow: hidden; }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trainer-photo.is-photo img { object-position: center 20%; }

/* あとで埋める枠 */
.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; }

/* 体験の流れ */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow li { background: #fff; border-radius: var(--radius); padding: 24px 16px; text-align: center; border: 1px solid var(--line); counter-increment: step; }
.flow li::before { content: "STEP " counter(step); display: block; color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.flow h3 { margin: 8px 0; color: var(--navy); font-size: 17px; }
.flow p { margin: 0; font-size: 14px; color: var(--muted); }
.flow-free { text-align: center; margin-top: 32px; font-weight: 700; font-size: 18px; }

/* よくある質問 */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--orange); }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--navy); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* アクセス */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.access dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; row-gap: 14px; }
.access dt { font-weight: 700; color: var(--navy); }
.access dd { margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 店舗紹介 */
.shop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 32px; }
.shop-head { margin-bottom: 24px; }
.shop-tag { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.shop-head h3 { color: var(--navy); font-size: 22px; margin: 8px 0 4px; line-height: 1.5; }
.shop-head p { margin: 0; color: var(--muted); }
.shop-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.contact-label { text-align: center; font-weight: 700; color: var(--navy); margin: 0 0 12px; }

/* トップの店舗カード */
.store-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.store-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.store-card h3 { color: var(--navy); font-size: 21px; line-height: 1.5; margin: 10px 0 4px; }
.store-catch { margin: 0 0 16px; color: var(--muted); font-weight: 700; font-size: 15px; }
.store-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.store-points li { position: relative; padding-left: 22px; font-size: 15px; }
.store-points li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.store-info { display: grid; grid-template-columns: 80px 1fr; row-gap: 6px; margin: 0 0 24px; font-size: 14px; }
.store-info dt { font-weight: 700; color: var(--navy); }
.store-info dd { margin: 0; }
.store-card .btn { margin-top: auto; }
.company { max-width: 720px; margin: 0 auto; }
.company-table { display: grid; grid-template-columns: 120px 1fr; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.company-table dt, .company-table dd { padding: 14px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.company-table dt { font-weight: 700; color: var(--navy); background: var(--bg-soft); }
.company-table dt:last-of-type, .company-table dd:last-of-type { border-bottom: 0; }
.history-title { color: var(--navy); font-size: 20px; margin: 40px 0 16px; text-align: center; }
.history { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--orange); }
.history li { position: relative; padding: 0 0 20px 16px; }
.history li::before { content: ""; position: absolute; left: -27px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.history span { display: block; font-weight: 700; color: var(--navy); font-size: 14px; }
.message { max-width: 720px; margin: 0 auto; }
.message-catch { text-align: center; font-size: 28px; font-weight: 700; color: var(--navy); margin: 0 0 32px; }
.message-sign { text-align: right; font-weight: 700; color: var(--navy); margin-top: 32px; }
.nav small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; line-height: 1.2; }
.footer-link { color: #fff; text-decoration: none; }
.footer-logo { width: 120px; height: auto; display: block; margin: 0 auto 8px; }

/* スタッフ・メニュー */
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.staff-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.staff-card .trainer-photo { aspect-ratio: 1/1; max-width: 200px; margin: 0 0 16px; }
.staff-card h3 { color: var(--navy); font-size: 22px; margin: 0 0 12px; }
.menu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trial { max-width: 560px; margin: 32px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.trial table { width: 100%; border-collapse: collapse; }
.trial th, .trial td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.trial td { text-align: right; font-weight: 700; color: var(--navy); }
.trial p { margin: 12px 0 0; text-align: center; font-weight: 700; }

/* 料金 */
.price-entry { text-align: center; font-weight: 700; margin: 0 0 24px; }
.price-entry strong { color: var(--navy); font-size: 20px; margin-left: 8px; }
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-card p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.price-card .price-name { font-weight: 700; color: var(--navy); font-size: 16px; }
.price-card .price-yen { font-size: 30px; font-weight: 700; color: var(--orange); line-height: 1.3; margin-bottom: 12px; }
.price-yen span { font-size: 15px; margin-left: 2px; }
.price-card .price-note { font-size: 12px; background: var(--bg-soft); border-radius: 6px; padding: 4px 8px; display: inline-block; margin: 4px 0 0; }
.price-tax { text-align: center; font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.price-table { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.price-table table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 400; }
.price-table th small { display: block; color: var(--muted); font-size: 12px; }
.price-table td { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-table .group th { color: var(--orange); font-weight: 700; padding-top: 20px; font-size: 14px; }
.price-extra { max-width: 680px; margin: 20px auto 0; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.price-extra li { background: var(--navy); color: #fff; font-size: 13px; padding: 4px 14px; border-radius: 999px; }

/* プロフィール（資格・経歴） */
.profile { margin: 20px 0 0; font-size: 14px; }
.profile dt { font-weight: 700; color: var(--navy); margin-top: 12px; border-left: 3px solid var(--orange); padding-left: 8px; }
.profile dd { margin: 4px 0 0; }
.profile ul { margin: 0; padding-left: 20px; }

/* お知らせ */
.news { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.news li { border-bottom: 1px solid var(--line); }
.news a { display: flex; gap: 20px; padding: 16px 4px; text-decoration: none; color: var(--text); }
.news time { color: var(--muted); font-size: 14px; flex-shrink: 0; }

/* お問い合わせ */
.contact-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; max-width: 680px; margin-left: auto; margin-right: auto; }
.contact-ways .btn { width: 100%; padding: 18px; }
.form { max-width: 680px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.form h3 { margin: 0 0 24px; text-align: center; color: var(--navy); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.req { background: var(--orange); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.opt { background: var(--line); color: var(--muted); font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd5de; border-radius: 8px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.field textarea { min-height: 120px; resize: vertical; }
.field .radio { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.field .radio input { width: auto; margin: 0; }
.contact-ways + .contact-label { margin-top: -16px; }
.agree { font-size: 14px; color: var(--muted); }
.agree input { width: auto; margin-right: 6px; }
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; }
.notice { max-width: 680px; margin: 0 auto 24px; padding: 16px 20px; border-radius: var(--radius); font-weight: 700; text-align: center; }
.notice-ok { background: #e8f6ee; color: #1d6b3f; }
.notice-ng { background: #fdecec; color: #a12b2b; }

/* 下層ページ（お知らせ記事など） */
.page-body { padding: 56px 0 80px; }
.page-body .container { max-width: 760px; }
.page-body h1 { color: var(--navy); font-size: 26px; line-height: 1.5; }
.post-meta { color: var(--muted); font-size: 14px; }

/* フッター */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.85); padding: 48px 0 100px; font-size: 14px; text-align: center; }
.site-footer .logo-main { color: #fff; }
.site-footer p { margin: 8px 0; }
.copy { opacity: .6; font-size: 12px; margin-top: 24px !important; }

/* スマホ下部の固定ボタン */
.fixed-cta { display: none; }

/* ---------- 高級感の仕上げ ---------- */
.hero { background: linear-gradient(160deg, #2a2a2a 0%, #0f0f0f 100%); }
.hero .accent, .hero-badge strong { color: #d4b47a; }
.hero h1 { letter-spacing: .04em; }
.logo-main { letter-spacing: .2em; }
.section-title h2 { letter-spacing: .06em; }
.section-title h2::after { content: ""; display: block; width: 40px; height: 2px; background: var(--orange); margin: 14px auto 0; }
.btn { letter-spacing: .05em; }
.site-footer .logo-main { color: #d4b47a; }

/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 20px; align-items: stretch; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border: 0; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; text-align: left; }
  .pc-only { display: none; }
  .section { padding: 56px 0; }
  .section-title h2 { font-size: 23px; }
  .cards, .flow, .contact-ways, .shop-buttons, .store-cards, .staff-grid, .menu-cards { grid-template-columns: 1fr; }
  .store-card { padding: 24px 18px; }
  .company-table { grid-template-columns: 1fr; }
  .price-list { grid-template-columns: 1fr; }
  .price-table { padding: 4px 14px; }
  .company-table dt { border-bottom: 0; padding-bottom: 6px; }
  .company-table dd { padding-top: 6px; }
  .message-catch { font-size: 24px; }
  .staff-card .trainer-photo { margin: 0 auto 16px; }
  .shop { padding: 24px 18px; }
  .access dl { grid-template-columns: 76px 1fr; }
  .trainer, .access { grid-template-columns: 1fr; gap: 24px; }
  .trainer-photo { max-width: 280px; margin: 0 auto; width: 100%; }
  .form { padding: 24px 18px; }
  .fixed-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    gap: 8px; padding: 8px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  }
  .fixed-cta .btn { flex: 1; padding: 12px 8px; font-size: 15px; }
}
