/* ============================================
   辻堂パーソナルジム比較ガイド
   ============================================ */
:root {
  --navy: #1b2a4a;
  --navy-light: #2c4270;
  --accent: #e8590c;
  --accent-dark: #c74a08;
  --gold: #b8860b;
  --gold-bg: #fff8e6;
  --best-bg: #fff6ee;
  --best-border: #f5c9a4;
  --green: #1a936f;
  --gray-bg: #f4f6f9;
  --border: #dde3ec;
  --text: #2b3442;
  --text-sub: #6b7688;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(27, 42, 74, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.85;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy-light); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sp-only { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; flex-wrap: wrap; gap: 4px; padding-top: 6px; padding-bottom: 6px;
}
.site-logo { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 9px; }
.site-logo img { width: 30px; height: 30px; display: block; }
.site-logo .logo-strong { color: #ffb066; }
.global-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.global-nav a {
  color: #d9e0ee; text-decoration: none; font-size: .82rem; font-weight: 600;
  padding: 6px 10px; border-radius: 6px; transition: background .2s, color .2s;
}
.global-nav a:hover { background: var(--navy-light); color: #fff; }
.global-nav i { margin-right: 3px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #3c5a94 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.hero-label {
  display: inline-block; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: .82rem; font-weight: 700; padding: 4px 14px; margin-bottom: 14px;
}
.hero h1 { font-size: 2rem; line-height: 1.4; margin-bottom: 14px; }
.hero h1 .accent { color: #ffb066; }
.hero-lead { max-width: 780px; font-size: .98rem; color: #e8edf6; }
.hero-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-point {
  background: rgba(255,255,255,.12); border-radius: 8px;
  font-size: .85rem; font-weight: 600; padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
}
.hero-point i { color: #ffb066; }

/* ---------- sections ---------- */
main { padding: 8px 0 40px; }
section { margin-top: 52px; }

.sec-title {
  font-size: 1.45rem; line-height: 1.45;
  border-left: 6px solid var(--accent);
  padding: 2px 0 2px 14px;
  margin-bottom: 18px;
  color: var(--navy);
}
.sec-title i { color: var(--accent); margin-right: 4px; }
.sec-note { font-size: .8rem; color: var(--text-sub); margin: -8px 0 14px; }

/* ---------- conclusion ---------- */
.conclusion-box {
  display: flex; gap: 0; align-items: stretch;
  background: var(--best-bg);
  border: 2px solid var(--best-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.conclusion-badge {
  flex: 0 0 auto;
  background: linear-gradient(160deg, var(--accent) 0%, #f0812e 100%);
  color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.5;
  display: flex; align-items: center; text-align: center;
  padding: 0 20px;
}
.conclusion-body { padding: 20px 22px; }
.conclusion-name { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.conclusion-name .small { font-size: .85rem; font-weight: 600; color: var(--text-sub); margin-left: 8px; }
.conclusion-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.conclusion-cta.center { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; border-radius: 8px;
  padding: 11px 22px; font-size: .95rem;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f0812e 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 89, 12, .35);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); }
.btn-secondary { background: var(--navy); color: #fff; box-shadow: 0 3px 10px rgba(27,42,74,.25); }
.btn-secondary:hover { background: var(--navy-light); }
.btn-ghost { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-table { padding: 8px 10px; font-size: .8rem; width: 100%; background: var(--accent); color: #fff; }
.btn-table:hover { background: var(--accent-dark); }
.btn-table-sub { background: var(--navy); }
.btn-table-sub:hover { background: var(--navy-light); }

/* ---------- comparison table ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.hikaku-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: .85rem;
  background: #fff;
}
.hikaku-table th, .hikaku-table td {
  border: 1px solid var(--border);
  padding: 10px 10px;
  text-align: center;
  vertical-align: middle;
}
.hikaku-table thead th {
  background: var(--navy); color: #fff;
  font-size: .9rem; line-height: 1.4; padding: 12px 8px;
}
.hikaku-table thead th.col-best {
  background: linear-gradient(160deg, var(--accent) 0%, #f0812e 100%);
  font-size: 1rem;
}
.th-item { width: 110px; }
.hikaku-table tbody th {
  background: var(--gray-bg); color: var(--navy);
  font-size: .82rem; white-space: nowrap;
  position: sticky; left: 0; z-index: 2;
  box-shadow: 1px 0 0 var(--border);
}
.th-sub { font-size: .7rem; font-weight: 500; color: var(--text-sub); }
.hikaku-table td.col-best { background: var(--best-bg); font-weight: 600; }
.rank-chip {
  display: inline-block; background: rgba(255,255,255,.2);
  border-radius: 999px; font-size: .7rem; padding: 1px 9px; margin-bottom: 4px;
}
.rank-chip.rank-1 { background: #fff; color: var(--accent); font-weight: 800; }
.stars { color: var(--accent); font-weight: 800; font-size: 1rem; }
.stars.big { font-size: 1.2rem; }
.td-note { display: block; font-size: .72rem; color: var(--text-sub); font-weight: 400; margin-top: 2px; }
.td-ic { margin-right: 4px; color: var(--accent); }
.ok { color: var(--green); margin-right: 3px; }
.dash { color: #b6bfcc; margin-right: 3px; }
.table-hint { text-align: center; font-size: .78rem; color: var(--text-sub); margin-top: 8px; }

/* ---------- gym cards ---------- */
.gym-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
  background: #fff;
}
.gym-card-best { border: 2px solid var(--best-border); }
.gym-card-head {
  background: var(--gray-bg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.gym-card-best .gym-card-head { background: var(--best-bg); }
.gym-card-head h3 { font-size: 1.25rem; color: var(--navy); line-height: 1.4; flex: 1; min-width: 220px; }
.gym-sub { display: block; font-size: .8rem; font-weight: 600; color: var(--text-sub); margin-top: 2px; }
.rank-badge {
  flex: 0 0 auto;
  background: var(--navy); color: #fff; font-weight: 800;
  border-radius: 8px; padding: 8px 14px; font-size: .95rem;
}
.rank-badge-1 { background: linear-gradient(135deg, var(--accent) 0%, #f0812e 100%); font-size: 1rem; }
.gym-score { font-size: .85rem; font-weight: 700; color: var(--text-sub); }
.gym-card-body { padding: 20px 22px; }
.gym-card-body > p { margin-bottom: 12px; }
.gym-copy {
  font-size: 1.02rem; font-weight: 700; color: var(--navy);
  background: var(--gray-bg); border-radius: 8px; padding: 10px 16px;
}
.gym-card-best .gym-copy { background: var(--gold-bg); }
.gym-copy i { color: var(--accent); margin-right: 6px; }

.merit-demerit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.merit, .demerit { border-radius: 8px; padding: 14px 16px; font-size: .88rem; }
.merit { background: #edf7f2; border: 1px solid #cde8db; }
.demerit { background: #f6f7f9; border: 1px solid var(--border); }
.merit h4 { color: var(--green); margin-bottom: 6px; font-size: .92rem; }
.demerit h4 { color: var(--text-sub); margin-bottom: 6px; font-size: .92rem; }
.merit ul, .demerit ul { padding-left: 20px; }
.merit li, .demerit li { margin-bottom: 3px; }

.spec-table {
  width: 100%; border-collapse: collapse; font-size: .86rem; margin: 12px 0 4px;
}
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.spec-table th {
  background: var(--gray-bg); color: var(--navy); width: 130px; white-space: nowrap; font-size: .82rem;
}
.spec-table th i { color: var(--accent); margin-right: 4px; }
.gym-cta { text-align: center; margin-top: 16px; }

/* ---------- purpose ---------- */
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.purpose-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; background: #fff; box-shadow: var(--shadow);
  font-size: .88rem;
}
.purpose-card.purpose-best { background: var(--best-bg); border-color: var(--best-border); }
.purpose-ic { font-size: 1.6rem; color: var(--accent); margin-bottom: 8px; }
.purpose-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }

/* ---------- points ---------- */
.point-list { display: flex; flex-direction: column; gap: 14px; }
.point-item {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; background: #fff; box-shadow: var(--shadow);
}
.point-num {
  flex: 0 0 auto; font-size: 1.5rem; font-weight: 800; color: var(--accent);
  font-family: Georgia, serif; line-height: 1; padding-top: 4px;
}
.point-item h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.point-item h3 i { color: var(--accent); margin-right: 4px; }
.point-item p { font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 14px 44px 14px 16px; font-weight: 700; color: var(--navy);
  position: relative; font-size: .95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\f078"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
  font-weight: 900; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%); transition: transform .25s; color: var(--accent);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-item summary i {
  background: var(--navy); color: #fff; border-radius: 6px;
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; margin-right: 8px;
}
.faq-a {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 0 16px 16px; font-size: .9rem;
}
.faq-a > i {
  flex: 0 0 auto; background: var(--accent); color: #fff; border-radius: 6px;
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; margin-top: 4px;
}

/* ---------- matome ---------- */
.matome-box {
  border: 1px solid var(--border); border-left: 6px solid var(--accent);
  border-radius: var(--radius); background: var(--gray-bg);
  padding: 22px 24px;
}
.matome-box p { margin-bottom: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cdd6e5; margin-top: 56px; padding: 32px 0 20px; }
.footer-note h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.footer-note h3 i { color: var(--accent); margin-right: 4px; }
.footer-note p { font-size: .8rem; line-height: 1.9; }
.copyright { text-align: center; font-size: .78rem; margin-top: 20px; color: #9aa7bd; }

/* ---------- floating CTA ---------- */
.floating-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  background: linear-gradient(135deg, var(--accent) 0%, #f0812e 100%);
  color: #fff; text-decoration: none; font-weight: 800; font-size: .9rem;
  border-radius: 999px; padding: 13px 22px;
  box-shadow: 0 6px 20px rgba(232, 89, 12, .45);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.floating-cta.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-cta:hover { transform: translateY(-2px); }

/* ---------- animation ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.shown { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .sp-only { display: inline; }
  .hero { padding: 34px 0 30px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-lead { font-size: .9rem; }
  .sec-title { font-size: 1.2rem; }
  .conclusion-box { flex-direction: column; }
  .conclusion-badge { padding: 8px; justify-content: center; }
  .conclusion-badge br { display: none; }
  .merit-demerit { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: 1fr; }
  .gym-card-head { padding: 14px 14px; gap: 10px; }
  .gym-card-body { padding: 16px 14px; }
  .spec-table th { width: 90px; white-space: normal; }
  .global-nav a { font-size: .74rem; padding: 5px 7px; }
  .btn-lg { width: 100%; }
  .conclusion-cta .btn { width: 100%; }
  .table-hint.sp-only { display: block; }
}
