/* =====================================================================
   Premium Local Domain Collection — style.css
   Mobile-first / no framework
   ===================================================================== */

:root {
  --navy-950: #060b17;
  --navy-900: #0a1224;
  --navy-850: #0d1730;
  --navy-800: #111e3b;
  --navy-700: #1b2b4e;
  --navy-600: #2a3d64;

  --ink: #eef1f7;
  --ink-2: #bcc5d6;
  --ink-3: #8794ab;

  --gold: #c9a96a;
  --gold-2: #e4d2a4;
  --gold-deep: #8a6a2f;
  --teal: #62c3b7;
  --teal-deep: #2f7f76;

  --ivory: #f6f3ec;
  --ivory-2: #eee8dc;
  --paper-ink: #131e36;
  --paper-ink-2: #4b5670;
  --paper-line: rgba(19, 30, 54, 0.12);

  --line: rgba(201, 169, 106, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-mid: rgba(255, 255, 255, 0.14);

  --danger: #f2a08f;
  --danger-paper: #a83a26;

  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --font-serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --font-latin: Manrope, "Segoe UI", "Helvetica Neue", Arial, var(--font-sans);

  --gutter: 16px;
  --container: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --focus: 0 0 0 3px var(--navy-900), 0 0 0 5px var(--gold-2);

  color-scheme: dark;
}

@media (min-width: 640px) {
  :root { --gutter: 28px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 76px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 106.25%; /* 17px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (min-width: 1024px) {
  html { font-size: 112.5%; /* 18px */ }
}
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }
code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  word-break: break-all;
}
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-2);
  color: var(--navy-950);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.nb { display: inline-block; }
.br-sm { display: inline; }
.br-md { display: none; }
@media (min-width: 640px) {
  .br-sm { display: none; }
  .br-md { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn--primary {
  background: linear-gradient(135deg, #f3e6c2 0%, var(--gold-2) 45%, var(--gold) 100%);
  color: var(--navy-950);
  box-shadow: 0 10px 30px -12px rgba(228, 210, 164, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #f8eed3 0%, #ecdcb2 45%, #d4b77c 100%);
  box-shadow: 0 14px 36px -12px rgba(228, 210, 164, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}
.btn--lg { min-height: 60px; padding: 14px 34px; font-size: 1.02rem; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
  border-color: var(--line-mid);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.85rem; }
.btn[disabled], fieldset[disabled] .btn {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-3);
  border-color: transparent;
}
.icon-arrow { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow, .card:hover .icon-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 14, 29, 0.97);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  min-width: 0;
}
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__title {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--font-latin);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  white-space: nowrap;
}
.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold-2); }
.site-header__cta {
  margin-left: auto;
  flex: none;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-2);
  background: rgba(228, 210, 164, 0.08);
  transition: background-color 0.2s, color 0.2s;
}
.site-header__cta:hover { background: var(--gold-2); color: var(--navy-950); }
@media (min-width: 1080px) {
  .site-nav { display: block; }
  .site-header__cta { margin-left: 8px; }
  .brand__title { font-size: 0.8rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 84px;
  background:
    radial-gradient(60% 45% at 50% 34%, rgba(201, 169, 106, 0.16) 0%, rgba(201, 169, 106, 0) 70%),
    radial-gradient(120% 70% at 50% 0%, rgba(42, 61, 100, 0.6) 0%, rgba(10, 18, 36, 0) 60%),
    var(--navy-900);
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero__rail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--gold);
  fill: var(--gold);
  opacity: 0.22;
}
.hero__inner {
  container-type: inline-size;
  width: 100%;
  max-width: calc(1080px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__eyebrow {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold);
}
.hero__area {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.hero__area-sep { width: 22px; height: 1px; background: var(--gold); opacity: 0.7; }
.hero__area-city { color: var(--ink-2); font-size: 0.92rem; }

.hero__domain {
  margin-top: 14px;
  font-family: var(--font-latin);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 0 60px rgba(228, 210, 164, 0.18);
  overflow-wrap: anywhere;
  /* 文字数に応じたサイズ（vw フォールバック → コンテナ単位） */
  font-size: calc((100vw - 2.5rem) / 6.8);
}
.hero__domain-tld { color: var(--gold-2); font-weight: 500; }
.hero__domain--s  { font-size: min(calc((100vw - 2.5rem) / 6), 8.25rem); font-size: min(calc(100cqi / 6), 8.25rem); }
.hero__domain--m  { font-size: min(calc((100vw - 2.5rem) / 7), 7.5rem);  font-size: min(calc(100cqi / 7), 7.5rem); }
.hero__domain--l  { font-size: min(calc((100vw - 2.5rem) / 8.2), 6.75rem); font-size: min(calc(100cqi / 8.2), 6.75rem); }
.hero__domain--xl { font-size: min(calc((100vw - 2.5rem) / 9.8), 6rem);   font-size: min(calc(100cqi / 9.8), 6rem); }

.hero__lead {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__sub {
  max-width: 40em;
  margin: 16px auto 0;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  line-height: 1.85;
  color: var(--ink-2);
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.badge {
  padding: 6px 16px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  font-family: var(--font-latin);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  line-height: 1.6;
}
.badge--gold { border-color: var(--gold); color: var(--gold-2); }
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 420px;
  margin: 32px auto 0;
}
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; justify-content: center; max-width: none; }
}

.hero__set {
  max-width: 980px;
  margin: 52px auto 0;
  padding: 24px 18px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(13, 23, 48, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__set-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.hero__set-count {
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--gold-2);
  font-size: 1.25rem;
}
.hero__set-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}
@media (min-width: 480px) {
  .hero__set-list { display: flex; flex-wrap: wrap; justify-content: center; }
  .hero__set-list > li { display: flex; flex: 1 1 auto; min-width: 140px; }
  .hero__set-list .set-chip { flex: 1; }
  .hero__set-list .set-chip__domain { white-space: nowrap; }
}
.set-chip {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  min-width: 0;
}
@media (min-width: 480px) {
  .set-chip { flex-direction: column; align-items: center; justify-content: center; padding: 10px 8px; }
}
.set-chip:hover { border-color: var(--gold); background: rgba(201, 169, 106, 0.06); }
.set-chip__domain {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.set-chip__station { font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.1em; }
.hero__terms {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.hero__terms strong { color: var(--gold-2); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 128px 0; } }
.section--route { background: var(--navy-900); }
.section--domains { background: var(--navy-850); }
.section--process { background: var(--navy-900); }
.section--contact { background: var(--navy-950); }
.section--light {
  background: var(--ivory);
  color: var(--paper-ink);
  color-scheme: light;
}
.section--light-alt { background: var(--ivory-2); }

.section-head { max-width: 760px; margin-bottom: 44px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 60px; } }
.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.section-head__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section--light .section-head__eyebrow { color: var(--gold-deep); }
.section-head__title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-wrap: balance;
}
.section-head__lead {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.06rem;
}
.section--light .section-head__lead { color: var(--paper-ink-2); }
.section-head__lead strong { color: var(--gold-2); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible,
.js.reveal-all [data-reveal] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Route map ---------- */
.route-wrap {
  padding: 32px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--navy-850);
}
@media (min-width: 1024px) { .route-wrap { padding: 48px 40px 36px; } }
.route-dir {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.route-dir__line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-mid), var(--line), var(--line-mid)); }
.route-note {
  margin-top: 28px;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--ink-3);
}

.route { --dot: 18px; --rail: 3px; position: relative; }
.route__stop {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  padding: 4px 0 30px;
}
.route__stop:last-child { padding-bottom: 0; }
/* 縦レイアウト：ドットから次のドットへ伸びるレール */
.route__stop::after {
  content: "";
  position: absolute;
  left: calc(20px - var(--rail) / 2);
  top: 22px;
  width: var(--rail);
  height: 100%;
  background: var(--teal-deep);
  border-radius: 2px;
}
.route__stop:last-child::after { display: none; }
/* 次の駅との間に途中駅がある区間は点線 */
.route__stop:has(+ .has-gap)::after {
  background: repeating-linear-gradient(180deg, var(--teal-deep) 0 6px, transparent 6px 11px);
}
.route__dot {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: center;
  position: relative;
  z-index: 1;
  width: var(--dot);
  height: var(--dot);
  margin-top: 4px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  background: var(--navy-850);
  transition: transform 0.3s var(--ease);
}
.route__omit {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: -18px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--teal-deep);
  border-radius: 50%;
  background: var(--navy-850);
}
.route__label {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.route__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.route__romaji {
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.route__city { flex-basis: 100%; font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.08em; line-height: 1.6; }
.route__here {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(201, 169, 106, 0.14);
  color: var(--gold-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.7;
}
.route__domains {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.route__domain {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  font-family: var(--font-latin);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
  overflow-wrap: anywhere;
}
a.route__domain:hover { border-color: var(--teal); color: var(--ink); }
.route__domain.is-current {
  border-color: var(--gold);
  background: var(--gold-2);
  color: var(--navy-950);
}
.route__stop.is-current .route__dot {
  border-color: var(--gold-2);
  background: var(--gold-2);
  box-shadow: 0 0 0 6px rgba(228, 210, 164, 0.16);
}
.route__stop.is-current .route__name { color: var(--gold-2); }
@media (prefers-reduced-motion: no-preference) {
  .route__stop.is-current .route__dot::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1px solid var(--gold-2);
    animation: ring 2.8s var(--ease) infinite;
  }
}
@keyframes ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

/* 横レイアウト（1024px 以上） */
@media (min-width: 1024px) {
  .route-dir { display: flex; }
  .route {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    --dot: 22px;
    --rail: 4px;
  }
  .route__stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 6px;
  }
  .route__stop::after {
    left: 50%;
    top: calc(var(--dot) / 2 - var(--rail) / 2);
    width: 100%;
    height: var(--rail);
  }
  .route__stop:has(+ .has-gap)::after {
    background: repeating-linear-gradient(90deg, var(--teal-deep) 0 8px, transparent 8px 14px);
  }
  .route__dot { margin-top: 0; }
  .route__omit { left: -6px; top: calc(var(--dot) / 2 - 6px); width: 12px; height: 12px; }
  .route__label { flex-direction: column; align-items: center; gap: 0; margin-top: 18px; }
  .route__name { font-size: 1.45rem; }
  .route__city { flex-basis: auto; margin-top: 2px; }
  .route__domains { flex-direction: column; align-items: center; margin-top: 14px; }
  .route__domain { white-space: nowrap; font-size: 0.74rem; padding: 3px 10px; }
}

/* ---------- Domain cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.cards__item { display: flex; min-width: 0; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 26px 24px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 55%),
    var(--navy-800);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.card:hover {
  border-color: rgba(201, 169, 106, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}
a.card:focus-visible { outline: none; box-shadow: var(--focus); }
.card.is-current {
  border-color: var(--gold);
  background:
    linear-gradient(160deg, rgba(228, 210, 164, 0.12), rgba(228, 210, 164, 0) 60%),
    var(--navy-800);
}
.card__top { display: flex; align-items: center; gap: 10px; }
.card__num {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.card__tld {
  padding: 1px 9px;
  border: 1px solid var(--line-mid);
  border-radius: 4px;
  font-family: var(--font-latin);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.card__current {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold-2);
  color: var(--navy-950);
  font-family: var(--font-latin);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.card__domain {
  margin-top: 22px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  overflow-wrap: anywhere;
}
.card__domain-tld { color: var(--gold-2); font-weight: 500; }
.card { container-type: inline-size; }
.card__domain--xl { font-size: min(clamp(1.4rem, 1.15rem + 1vw, 1.75rem), calc(100cqi / 9.6)); }
.card__domain--l { font-size: min(clamp(1.4rem, 1.15rem + 1vw, 1.75rem), calc(100cqi / 8)); }
.card__station {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
}
.card__station-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}
.card__city { font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.06em; }
.card__desc {
  display: block;
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--ink-2);
}
.card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal);
  overflow-wrap: anywhere;
}
.card__foot--current { color: var(--gold-2); }
.card__desc + .card__foot { border-top: 0; }

/* ---------- Strategy ---------- */
.strategy { display: grid; gap: 48px; }
.strategy__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  /* 追従する左カラムは .strategy__grid の中だけで動くので、下の注記に重ならない */
  .strategy__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .strategy__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.strategy .section-head__title { margin-top: 16px; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--paper-line);
}
.stats__item {
  padding: 18px 4px;
  border-bottom: 1px solid var(--paper-line);
}
.stats__item:nth-child(odd) { border-right: 1px solid var(--paper-line); padding-right: 16px; }
.stats__item:nth-child(even) { padding-left: 18px; }
.stats dt {
  font-family: var(--font-latin);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-ink-2);
}
.stats dd {
  margin-top: 2px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper-ink);
}
.stats__item:last-child dd { font-size: 1.3rem; padding-top: 0.7rem; }
.stats__plus { margin: 0 0.35em; color: var(--gold-deep); }

.values { display: grid; gap: 0; counter-reset: v; }
.value {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 12px;
  padding: 26px 0;
  border-top: 1px solid var(--paper-line);
}
.value:last-child { border-bottom: 1px solid var(--paper-line); }
.value__num {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  padding-top: 0.3rem;
}
.value__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.55;
  letter-spacing: 0.06em;
}
.value p { margin-top: 8px; font-size: 0.98rem; color: var(--paper-ink-2); }
.disclaimer {
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(19, 30, 54, 0.04);
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--paper-ink-2);
}

/* ---------- Use cases ---------- */
.uses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-line);
}
@media (min-width: 640px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.use {
  padding: 30px 26px 32px;
  background: var(--ivory);
}
.use__icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.use__title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.08em;
  line-height: 1.55;
}
.use p { margin-top: 8px; font-size: 0.98rem; color: var(--paper-ink-2); }
.use { transition: background-color 0.3s var(--ease); }
.use:hover { background: #fbf9f4; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; } }
.step {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--navy-850);
}
@media (min-width: 1024px) {
  .step { border-radius: 0; border-right-width: 0; padding: 28px 22px 30px; }
  .step:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .step:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-right-width: 1px; }
}
.step__num {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.step__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  line-height: 1.55;
}
.step p { margin-top: 8px; font-size: 0.94rem; color: var(--ink-2); }
.process-notes {
  margin-top: 28px;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.process-notes li { position: relative; padding-left: 1.2em; }
.process-notes li::before { content: "・"; position: absolute; left: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--paper-line); }
.faq__item { border-bottom: 1px solid var(--paper-line); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 2.2em;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
  border-radius: 4px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "Q";
  position: absolute;
  left: 0.2em;
  top: 21px;
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--gold-deep);
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 1.6px solid var(--paper-ink-2);
  border-bottom: 1.6px solid var(--paper-ink-2);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item summary:focus-visible { outline-color: var(--gold-deep); }
.faq__body { padding: 0 8px 24px 2.2em; color: var(--paper-ink-2); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .contact { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
}
.terms {
  margin-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.terms__item {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
}
.terms__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: 0.15em;
}
.contact__targets {
  margin-top: 20px;
  font-family: var(--font-latin);
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.contact__panel {
  padding: 28px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--navy-850);
}
@media (min-width: 640px) { .contact__panel { padding: 40px 36px; } }

.notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.8;
}
.notice p + p { margin-top: 6px; }
.notice--warn {
  border: 1px solid rgba(228, 210, 164, 0.45);
  background: rgba(228, 210, 164, 0.08);
  color: var(--ink);
}
.notice--info {
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.04);
}
.notice a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.notice__admin { font-size: 0.8rem; color: var(--ink-2); }

.form__fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field { margin-bottom: 20px; }
.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.req, .opt {
  padding: 0 7px;
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.req { background: var(--gold-2); color: var(--navy-950); }
.opt { border: 1px solid var(--line-mid); color: var(--ink-3); }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-sm);
  background: rgba(6, 11, 23, 0.6);
  font-size: 1rem; /* iOS のズーム防止 */
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(228, 210, 164, 0.22);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { margin-top: 6px; font-size: 0.78rem; color: var(--ink-3); }
.field__error { margin-top: 6px; font-size: 0.8rem; color: var(--danger); font-weight: 700; }
.field--check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px 12px;
  align-items: start;
  margin: 28px 0 24px;
}
.field--check input {
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  accent-color: var(--gold-2);
}
.field--check label {
  display: block;
  margin: 0;
  font-weight: 400;
  font-size: 0.86rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.field--check .field__error { grid-column: 2; }
fieldset[disabled] .field { opacity: 0.55; }
fieldset[disabled] input, fieldset[disabled] textarea { cursor: not-allowed; }
.form__note {
  margin-top: 16px;
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--ink-3);
}
.form__note strong { color: var(--ink); }

.form-result {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--teal-deep);
  border-radius: var(--radius-sm);
  background: rgba(98, 195, 183, 0.07);
  font-size: 0.88rem;
}
.form-result:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.form-result p + p { margin-top: 8px; }
.form-result__title { font-weight: 700; color: var(--teal); font-size: 1.1rem; }
.form-error { margin: 20px 0 0; font-weight: 700; }
.form-error:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
/* スパム対策の入力欄（人には見せない） */
.form__hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* contact.php が返す結果ページ（JS 無効時） */
.result-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px var(--gutter);
  background: var(--navy-900);
}
.result-page__box {
  width: 100%;
  max-width: 640px;
  padding: 40px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--navy-850);
}
.result-page__box > * + * { margin-top: 18px; }
.result-page__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.5;
}
.result-page__errors { padding-left: 1.2em; list-style: disc; color: var(--danger); }
.form-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.form-result__copied { margin-top: 10px; font-size: 0.8rem; color: var(--teal); min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line-soft);
  background: var(--navy-950);
  color: var(--ink-3);
  font-size: 0.86rem;
}
.site-footer__inner { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 4fr 6fr; gap: 64px; }
  .site-footer__copy { grid-column: 1 / -1; }
}
.site-footer__title {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.site-footer__sub { margin-top: 8px; color: var(--ink-2); }
.site-footer__domains {
  margin-top: 12px;
  font-family: var(--font-latin);
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.site-footer__notes { display: grid; gap: 8px; line-height: 1.8; }
.site-footer__notes li { position: relative; padding-left: 1.2em; }
.site-footer__notes li::before { content: "※"; position: absolute; left: 0; }
.site-footer__copy {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-latin);
  letter-spacing: 0.08em;
}

/* ---------- Highlights（ヒーロー直下の3つの特長） ---------- */
.highlights {
  position: relative;
  padding: 64px 0;
  background: var(--navy-950);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 1024px) { .highlights { padding: 88px 0; } }
.highlights__list { display: grid; gap: 16px; }
@media (min-width: 900px) { .highlights__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.highlight {
  position: relative;
  padding: 30px 26px 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(228, 210, 164, 0.08), rgba(228, 210, 164, 0) 50%),
    var(--navy-900);
  overflow: hidden;
}
.highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 106, 0));
}
.highlight__kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-latin);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.highlight__num {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gold-2);
}
.highlight__title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.38rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #fff;
}
.highlight p:last-child { margin-top: 12px; font-size: 0.96rem; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
  padding: 34px 26px;
  border: 1px solid rgba(201, 169, 106, 0.45);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(228, 210, 164, 0.16), rgba(228, 210, 164, 0) 60%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1fr auto; gap: 40px; padding: 44px 52px; margin-top: 72px; }
}
.cta-band__eyebrow {
  font-family: var(--font-latin);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.cta-band__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: #fff;
}
.cta-band__text { margin-top: 10px; font-size: 0.96rem; color: var(--ink-2); }
.cta-band .btn { white-space: nowrap; }
@media (max-width: 899px) { .cta-band .btn { width: 100%; white-space: normal; } }
.cta-band--light { color-scheme: dark; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  .js .mobile-cta {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 11, 23, 0.94);
    border-top: 1px solid var(--line-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }
  .js .mobile-cta.is-shown { transform: none; }
  .mobile-cta .btn { min-height: 52px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero__bg, .form, .form-result, .skip-link, .mobile-cta, .cta-band { display: none !important; }
  body, .section, .hero { background: #fff !important; color: #000 !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 極小画面（〜359px） ---------- */
@media (max-width: 359px) {
  .brand__title { letter-spacing: 0.1em; font-size: 0.68rem; }
  .brand__sub { font-size: 0.64rem; letter-spacing: 0.08em; }
  .site-header__cta { padding: 7px 12px; font-size: 0.74rem; }
  .site-header__inner { gap: 12px; }
  .hero__eyebrow { letter-spacing: 0.2em; }
}
@media (max-width: 479px) {
  .hero__set-title { flex-direction: column; gap: 2px; }
}
