:root {
  --paper: #FBF6EF;
  --paper-deep: #F4EDE1;
  --ink: #2B2620;
  --ink-soft: #5C5346;
  --indigo: #2C4356;
  --indigo-deep: #1E2F3D;
  --plum: #B4707A;
  --plum-soft: #E9D2D2;
  --gold: #B4923B;
  --gold-bright: #C9A227;
  --line: #DCD0BC;
  --ok: #3E6B54;
  --ng: #B15450;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.mincho {
  font-family: 'Shippori Mincho', serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(180, 146, 59, 0.035) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(44, 67, 86, 0.035) 0, transparent 40%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  color: var(--indigo);
  font-size: 15px;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--indigo-deep);
}

.brand-sub {
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  margin-top: 1px;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--paper-deep);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.25s;
  white-space: nowrap;
  display: inline-block;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--indigo);
  color: var(--paper);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background: linear-gradient(180deg, rgba(44, 67, 86, 0.04), transparent 60%);
  border-bottom: 1px solid var(--line);
}

.hero-motif {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 340px;
  height: 340px;
  opacity: 0.16;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--plum);
  font-weight: 700;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--plum);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.5;
  color: var(--indigo-deep);
  margin: 0 0 18px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--plum);
  border-bottom: 2px solid var(--gold-bright);
}

.hero p {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 30px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  color: var(--indigo);
}

.stat span {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

/* ===== filter chips ===== */
.filters {
  padding: 36px 0 8px;
}

.filters h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 14px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plum);
}

/* ===== No.1 hanko feature ===== */
.feature-wrap {
  padding: 44px 0 20px;
}

.section-title {
  font-size: 22px;
  color: var(--indigo-deep);
  margin: 0 0 4px;
  font-weight: 700;
}

.section-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  box-shadow: 0 18px 40px -28px rgba(30, 47, 61, 0.35);
}

.feature-img {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #EADFD0, #F4EDE1);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-img,
.placeholder-text {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hanko {
  position: absolute;
  top: -18px;
  right: 24px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C9645C, #A83F3A 70%);
  color: #FBEFE6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  box-shadow: 0 8px 18px -6px rgba(150, 60, 50, 0.55), inset 0 0 0 3px rgba(251, 239, 230, 0.35);
  transform: rotate(6deg);
  text-align: center;
  line-height: 1.3;
  z-index: 2;
}

.hanko span:first-child {
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.hanko span:last-child {
  font-size: 20px;
  letter-spacing: 0.05em;
}

.feature-body h3 {
  font-size: 20px;
  margin: 6px 0 8px;
  color: var(--indigo-deep);
}

.feature-body .tagline {
  color: var(--plum);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-body p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--paper-deep);
  color: var(--indigo-deep);
  border: 1px solid var(--line);
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  transition: opacity 0.2s;
}

.feature-cta:hover {
  opacity: 0.9;
}

/* ===== ranking list on top page ===== */
.rank-list {
  padding: 44px 0 70px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 90px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.rank-item:first-child {
  border-top: 1px solid var(--line);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.6);
}

.rank-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  color: var(--gold);
  text-align: center;
}

.rank-thumb {
  width: 90px;
  height: 64px;
  border-radius: 8px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 10px;
  color: var(--ink-soft);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--indigo-deep);
  margin-bottom: 4px;
}

.rank-meta {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rank-meta i {
  font-style: normal;
  color: var(--plum);
}

.rank-arrow {
  font-size: 13px;
  color: var(--indigo);
  font-weight: 700;
  white-space: nowrap;
}

/* ===== detail page ===== */
.detail-hero {
  padding: 48px 0 20px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--indigo);
}

.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.detail-gallery {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: linear-gradient(135deg, #EADFD0, #F4EDE1);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 12px;
  overflow: hidden;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-badge {
  display: inline-block;
  background: var(--plum-soft);
  color: #7A3A44;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 26px;
  color: var(--indigo-deep);
  margin: 0 0 10px;
}

.detail-price {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.detail-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  border: 1px solid var(--indigo);
  color: var(--indigo);
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-block;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(44, 67, 86, 0.06);
}

.compare-table-wrap {
  padding: 40px 0 60px;
}

.related-gyms {
  padding: 20px 0 70px;
  border-top: 1px solid var(--line);
}

.related-gyms .section-title {
  margin-bottom: 20px;
}

.related-gyms-more {
  margin: 28px 0 0;
  text-align: center;
}

.related-gyms-more a {
  color: var(--indigo);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-gyms-more a:hover {
  opacity: 0.8;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

table caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}

th {
  width: 36%;
  background: var(--paper-deep);
  color: var(--indigo-deep);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

tr:last-child td,
tr:last-child th {
  border-bottom: none;
}

.yes {
  color: var(--ok);
  font-weight: 700;
}

.no {
  color: var(--ng);
  font-weight: 700;
}

.review-block {
  padding: 0 0 70px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}

.review-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--indigo-deep);
  margin-bottom: 6px;
}

.review-stars {
  color: var(--gold-bright);
  font-size: 13px;
  margin-bottom: 8px;
}

.review-text {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.entry-content p {
  margin: 0 0 1em;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

/* ===== ranking page (full comparison table) ===== */
.rp-hero {
  padding: 48px 0 28px;
}

.rp-hero h1 {
  font-size: 26px;
  color: var(--indigo-deep);
  margin: 0 0 14px;
}

.rp-hero p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 720px;
  margin: 0 0 12px;
}

.rp-hero p:last-child {
  margin-bottom: 0;
}

.rp-table-wrap {
  padding: 20px 0 50px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rp-table {
  min-width: 760px;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.rp-table th,
.rp-table td {
  padding: 14px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.rp-table thead th {
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.rp-table td:first-child,
.rp-table th:first-child {
  text-align: left;
  min-width: 170px;
}

.rp-table tbody tr:nth-child(1) {
  background: #FCF6ED;
}

.rp-name {
  font-weight: 700;
  color: var(--indigo-deep);
}

.rp-name a:hover {
  color: var(--plum);
}

.rp-badge {
  display: inline-block;
  background: var(--gold-bright);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.icon-yes {
  color: var(--ok);
  font-size: 16px;
}

.icon-no {
  color: var(--ng);
  font-size: 16px;
}

.rp-criteria,
.rp-faq,
.rp-summary {
  padding: 10px 0 48px;
}

.rp-criteria h2,
.rp-faq h2,
.rp-summary h2 {
  font-size: 20px;
  color: var(--indigo-deep);
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.5;
}

.rp-criteria h3,
.rp-faq h3 {
  font-size: 15px;
  color: var(--indigo-deep);
  margin: 22px 0 8px;
  font-weight: 700;
  line-height: 1.5;
}

.rp-criteria h3:first-of-type,
.rp-faq h3:first-of-type {
  margin-top: 0;
}

.rp-criteria p,
.rp-faq p,
.rp-summary p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.85;
  margin: 0;
  max-width: 720px;
}

.rp-faq h3 {
  padding-left: 1.15em;
  position: relative;
}

.rp-faq h3::before {
  content: "Q.";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
}

.rp-summary {
  padding-bottom: 70px;
}

.rp-summary .wrap {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}

.rp-summary h2 {
  margin-bottom: 12px;
}

.empty-message {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 24px 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
}

footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
  }

  .feature-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .hanko {
    position: static;
    transform: none;
    margin-bottom: 16px;
    width: 80px;
    height: 80px;
  }

  .detail-top {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 30px 64px 1fr;
  }

  .rank-arrow {
    grid-column: 1 / -1;
    text-align: right;
  }

  .rank-thumb {
    width: 64px;
    height: 48px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-motif {
    width: 220px;
    height: 220px;
    right: -40px;
    top: -20px;
  }

  .detail-title {
    font-size: 22px;
  }

  .rp-hero h1 {
    font-size: 22px;
  }
}
