/* inaco LP 共通スタイル（index.html / menu.html）
   方針：宿の「しつらえ」。生成りの紙、明朝の見出し、墨とロゴの緑。差し色の黄緑は印だけに使う。
   モチーフは「吊るした札」。料金も、流れの4ステップも、紐から下がる札として見せる。 */

:root {
  --paper: #f6f1e7;
  --paper-2: #eee6d6;
  --card: #fffdf8;
  --ink: #1f1d19;
  --ink-2: #4b463d;
  --ink-3: #6b6458;
  --line: #e3d9c6;
  --line-2: #cdbfa6;
  --green: #086b34;
  --green-dark: #0c4a29;
  --green-pale: #e3eed8;
  --lime: #7dbf2f;
  --lime-dark: #4f8a1a;
  --lime-light: #a8d86a;

  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --latin: "Cormorant Garamond", "Shippori Mincho B1", Georgia, serif;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* 和紙のような粒子 */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.27 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  color: var(--paper);
  background: var(--green);
}

a {
  color: var(--green);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  text-wrap: balance;
}

p,
li,
label {
  text-wrap: pretty;
}

/* 見出しや短い項目は、文節の切れ目でだけ改行する */
h1,
h2,
h3,
h4,
legend,
label,
.items li,
.plan-list li,
.ba-points span,
.footer a {
  word-break: auto-phrase;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.num {
  font-family: var(--latin);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(203, 189, 164, 0.5);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark img {
  display: block;
  height: auto;
}

.brand-jp {
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--ink-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:not(.btn):hover::after,
.nav a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a[aria-current] {
  color: var(--ink);
}

.nav .btn {
  color: var(--paper);
}

/* スマホ・タブレットのメニュー（details で開閉。JSなしでも動く） */
.nav-sp {
  display: none;
}

.nav-sp summary {
  display: grid;
  place-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  list-style: none;
  border-radius: 50%;
  background: var(--green);
}

.nav-sp summary::-webkit-details-marker {
  display: none;
}

.nav-sp summary span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.4s var(--ease);
}

.nav-sp[open] summary span:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-sp[open] summary span:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

.nav-sp-panel {
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  padding: 24px var(--gutter) 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(60, 45, 20, 0.35);
}

.nav-sp[open] .nav-sp-panel {
  animation: drop 0.45s var(--ease) both;
}

.nav-sp-panel ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.nav-sp-panel li {
  border-bottom: 1px solid var(--line);
}

.nav-sp-panel li a {
  display: block;
  padding: 14px 0;
  font-family: var(--mincho);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-sp-panel .btn {
  width: 100%;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--paper);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn::after {
  content: "→";
  font-family: var(--latin);
  font-weight: 600;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn--sub {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.btn--sub:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.btn--small {
  padding: 8px 20px;
  font-size: 13px;
}

.btn--small::after {
  display: none;
}

/* ---------- セクション共通 ---------- */
.section {
  position: relative;
  overflow: clip;
  padding: clamp(64px, 8vw, 112px) 0;
}

.section > .wrap {
  position: relative;
  z-index: 1;
}

/* 節ごとの透かし漢字 */
.section[data-kanji]::after {
  content: attr(data-kanji);
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: -0.06em;
  font-family: var(--mincho);
  font-size: clamp(220px, 30vw, 440px);
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  opacity: 0.045;
  pointer-events: none;
}

.section--split-left[data-kanji]::after {
  right: auto;
  left: -0.06em;
}

.section--tint {
  background: var(--paper-2);
}

.section--ink {
  color: var(--paper);
  background: var(--ink);
}

.section--ink[data-kanji]::after {
  color: var(--paper);
  opacity: 0.05;
}

.section h2 {
  font-family: var(--mincho);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.section-lead {
  max-width: 680px;
  margin-top: 22px;
  color: var(--ink-2);
}

.section-body {
  margin-top: 40px;
}

.section--ink .section-lead {
  color: rgba(246, 241, 231, 0.82);
}

/* 縦組みの見出しを脇に置く節 */
.section--split > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.section--split .section-head {
  order: 2;
  position: sticky;
  top: calc(var(--header) + 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.section--split-left > .wrap {
  grid-template-columns: auto minmax(0, 1fr);
}

.section--split-left .section-head {
  order: 0;
  align-items: flex-start;
}

.section--split .section-main > :first-child {
  margin-top: 0;
}

h2.vertical {
  writing-mode: vertical-rl;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.6;
  letter-spacing: 0.14em;
}

/* スクロールで現れる（動きを減らす設定では最初から表示） */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
  }

  .js [data-stagger] > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  .js [data-reveal].is-in,
  .js [data-stagger].is-in > * {
    opacity: 1;
    transform: none;
  }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 104px);
}

/* 背景に大きく「宿」 */
.hero::before {
  content: "宿";
  position: absolute;
  right: -0.08em;
  bottom: -0.22em;
  font-family: var(--mincho);
  font-size: clamp(320px, 46vw, 680px);
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  opacity: 0.05;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.hero h1 {
  font-family: var(--mincho);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: initial;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  color: var(--green);
}

.hero-lead {
  max-width: 560px;
  margin-top: 36px;
  color: var(--ink-2);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.hero-facts li {
  padding: 4px 14px;
  color: var(--green-dark);
  border: 1px solid rgba(10, 122, 58, 0.35);
  border-radius: 999px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-visual {
  position: relative;
  container-type: inline-size;
  padding-bottom: 120px;
}

.hero-site {
  --u: 1.7cqw;
  margin-left: 30%;
  --hs-h: clamp(420px, 44vw, 560px);
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--hs-h);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 60px 100px -50px rgba(60, 45, 20, 0.55), 0 14px 30px -18px rgba(60, 45, 20, 0.35);
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg) rotate(1deg);
  transform-origin: 60% 50%;
}

.hero-site .mock-url {
  flex-shrink: 0;
}

.hero-site-scroll {
  position: relative;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(#000 82%, transparent);
}

.hs-page {
  padding-bottom: calc(var(--u) * 4);
  font-family: var(--font);
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .hs-page {
    animation: browse 16s ease-in-out 2.4s infinite alternate;
    animation-play-state: paused;
  }

  .hero-site.is-playing .hs-page {
    animation-play-state: running;
  }
}

/* お客さんがページを読み進めるように、ゆっくり下までスクロールする */
@keyframes browse {
  0%,
  12% {
    transform: none;
  }
  88%,
  100% {
    transform: translateY(calc(-100% + var(--hs-h) - var(--u) * 4.4));
  }
}

.hs-hero {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0 calc(var(--u) * 3);
  overflow: hidden;
  border-radius: calc(var(--u) * 1.2);
}

.hs-hero .new-copy {
  top: 10%;
  right: auto;
  left: 7%;
  text-align: left;
  font-size: calc(var(--u) * 4.6);
}

.hs-h {
  margin: calc(var(--u) * 4) calc(var(--u) * 3) calc(var(--u) * 1.6);
  font-family: var(--mincho);
  font-size: calc(var(--u) * 2.4);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.hs-rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--u) * 1.4);
  margin: 0 calc(var(--u) * 3);
}

.hs-room {
  aspect-ratio: 3 / 4;
  border-radius: calc(var(--u) * 0.8);
}

.hs-room--a {
  background: linear-gradient(160deg, #d8b98a, #a97c4f 60%, #6d4c31);
}

.hs-room--b {
  background: repeating-linear-gradient(90deg, #c9bf8f 0 calc(var(--u) * 4), #b8ad7c calc(var(--u) * 4) calc(var(--u) * 4.2)), #c9bf8f;
}

.hs-room--c {
  background: linear-gradient(200deg, #9db48c, #5f8a5a 55%, #2f5a3a);
}

.hs-news {
  display: flex;
  gap: calc(var(--u) * 2);
  margin: 0 calc(var(--u) * 3);
  padding: calc(var(--u) * 1.2) 0;
  font-size: calc(var(--u) * 1.5);
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.hs-news b {
  font-family: var(--latin);
  font-weight: 600;
  color: var(--green);
}

.hs-access {
  display: flex;
  gap: calc(var(--u) * 2);
  margin: calc(var(--u) * 4) calc(var(--u) * 3) 0;
}

.hs-map {
  flex: 0 0 45%;
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent 48%, #f4e9d2 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 60%, #f4e9d2 60% 64%, transparent 64%),
    radial-gradient(circle at 62% 38%, var(--green) 0 6%, transparent 7%),
    #dfe6cf;
  border-radius: calc(var(--u) * 0.8);
}

.hs-lines {
  display: grid;
  align-content: start;
  gap: calc(var(--u) * 1.2);
  flex: 1;
}

.hs-lines i {
  height: calc(var(--u) * 1);
  background: var(--line);
  border-radius: 99px;
}

.hs-lines i:last-child {
  width: 60%;
}

.hero-site-caption {
  position: absolute;
  top: -32px;
  right: 0;
  font-size: 12px;
  color: var(--ink-2);
}

/* 料金は、宿の鍵札のように吊るす */
.hero-price {
  position: absolute;
  left: -80px;
  bottom: 0;
  z-index: 2;
  width: 210px;
  padding: 40px 24px 8px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px 10px 28px 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 60px -30px rgba(60, 45, 20, 0.35), 0 8px 18px -10px rgba(60, 45, 20, 0.2);
  transform-origin: 50% -64px;
  transform: rotate(1.5deg);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.8s var(--ease);
}

/* 紐 */
.hero-price::before {
  content: "";
  position: absolute;
  top: -64px;
  left: 50%;
  width: 10px;
  height: 82px;
  margin-left: -5px;
  background:
    radial-gradient(circle at 50% 4px, var(--ink-2) 3.5px, transparent 4px) no-repeat,
    linear-gradient(to right, transparent calc(50% - 0.75px), var(--ink-3) calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px)) no-repeat 0 4px / 100% 100%;
}

/* 札の穴 */
.hero-price::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
}

.hero-price-item {
  padding: 14px 0;
}

.hero-price-item + .hero-price-item {
  border-top: 1px dashed var(--line-2);
}

.hero-price-item .name {
  font-family: var(--mincho);
  font-size: 17px;
  font-weight: 700;
}

.hero-price-item .price {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}

.hero-price-item .price strong {
  margin: 0 2px;
  font-size: 34px;
  line-height: 1.1;
  color: var(--ink);
}

.hero-plan-status {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

.hero-price-note {
  padding: 14px 0 22px;
  font-size: 13px;
  text-align: center;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

/* 読み込み時の演出 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hang {
  0% {
    opacity: 0;
    transform: translateY(-40px) rotate(-7deg);
  }
  45% {
    opacity: 1;
    transform: rotate(4deg);
  }
  70% {
    transform: rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: rotate(var(--rest, 1.5deg));
  }
}

/* 吊るしたあとも、風でかすかに揺れ続ける */
@keyframes sway {
  from {
    transform: rotate(var(--rest, 1.5deg));
  }
  to {
    transform: rotate(calc(var(--rest, 1.5deg) - 1.8deg));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 span,
  .hero-lead,
  .hero-facts,
  .hero-cta {
    animation: rise 1s var(--ease) both;
  }

  .hero h1 span:nth-child(2) {
    animation-delay: 0.15s;
  }

  .hero-lead {
    animation-delay: 0.3s;
  }

  .hero-facts {
    animation-delay: 0.42s;
  }

  .hero-cta {
    animation-delay: 0.52s;
  }

  .hero-price {
    animation: hang 1.6s var(--ease) 0.35s both, sway 5.5s ease-in-out 1.95s infinite alternate;
  }
}

/* ---------- お悩み（自分で印をつける） ---------- */
.worries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.worry {
  margin: 0;
  padding: 26px 22px 18px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.worry legend {
  float: left;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
  padding: 0 0 14px;
  font-family: var(--mincho);
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.worry-kanji {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 22px;
  color: var(--paper);
  background: var(--green);
  border-radius: 50%;
}

.worry label {
  clear: both;
  display: flex;
  gap: 12px;
  padding: 9px 8px;
  margin: 0 -8px;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.worry label:hover {
  background: var(--paper);
}

.worry label:has(input:checked) {
  background: var(--green-pale);
}

.worry input {
  appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  background: var(--card);
  border: 1.5px solid var(--ink-3);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.worry input::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid var(--card);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.worry input:checked {
  background: var(--green);
  border-color: var(--green);
}

.worry input:checked::after {
  transform: rotate(45deg) scale(1);
}

.worry-result {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 14px 16px 14px 26px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 20px 40px -20px rgba(31, 29, 25, 0.6);
  transition: background 0.4s var(--ease);
}

html:not(.js) .worry-result {
  display: none;
}

.worry-count {
  flex-shrink: 0;
  font-size: 34px;
  line-height: 1;
}

.worry-count small {
  font-family: var(--latin);
  font-variant-numeric: lining-nums;
  font-size: 17px;
  color: rgba(246, 241, 231, 0.75);
}

.worry-meter {
  display: grid;
  grid-template-columns: repeat(12, 8px);
  gap: 4px;
  flex-shrink: 0;
}

.worry-meter span {
  height: 22px;
  background: rgba(246, 241, 231, 0.18);
  border-radius: 2px;
  transition: background 0.3s var(--ease), transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.worry-meter span.on {
  background: var(--lime);
  transform: scaleY(1.15);
}

.worry-count .num {
  display: inline-block;
}

.worry-count .num.bump {
  animation: bump 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes bump {
  40% {
    transform: translateY(-6px) scale(1.18);
  }
}

.worry-message {
  flex: 1;
  font-size: 14px;
}

.worry-result .btn {
  flex-shrink: 0;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.worry-result .btn:hover {
  color: var(--paper);
  background: transparent;
}

/* ---------- ビフォーアフター ---------- */
.ba {
  margin-left: 0;
  margin-right: 0;
  container-type: inline-size;
}

.ba-frame {
  --pos: 50%;
  --u: 1cqw;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 50px 90px -50px rgba(60, 45, 20, 0.55), 0 12px 24px -16px rgba(60, 45, 20, 0.3);
}

.ba-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.ba-after {
  clip-path: inset(0 0 0 var(--pos));
}

.mock-url {
  display: flex;
  align-items: center;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 14px;
  white-space: nowrap;
  gap: calc(var(--u) * 0.8);
  height: calc(var(--u) * 4.4);
  padding: 0 calc(var(--u) * 2);
  font-family: var(--font);
  font-size: calc(var(--u) * 1.35);
  color: #555;
  background: #ece9e3;
  border-bottom: 1px solid #d8d3ca;
}

.mock-url::before {
  content: "";
  width: calc(var(--u) * 5);
  height: calc(var(--u) * 1.1);
  margin-right: calc(var(--u) * 1);
  background: radial-gradient(circle, #e0645a 45%, transparent 48%) 0 50% / calc(var(--u) * 1.6) 100% repeat-x;
  opacity: 0.8;
}

.mock-warn {
  flex-shrink: 0;
  padding: 0 calc(var(--u) * 0.8);
  color: #b3261e;
  background: #fbe3e1;
  border-radius: 99px;
}

.mock-lock {
  width: calc(var(--u) * 0.9);
  height: calc(var(--u) * 0.8);
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 calc(var(--u) * -0.45) 0 calc(var(--u) * -0.12) var(--green);
}

/* 移行前：2010年代の手作りサイト */
.old {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: "MS PGothic", "Osaka", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: calc(var(--u) * 1.45);
  line-height: 1.5;
  letter-spacing: 0;
  color: #222;
  background: #f4f4f4 repeating-linear-gradient(45deg, #f4f4f4 0 6px, #ececec 6px 12px);
}

.old p,
li,
label {
  text-wrap: pretty;
}

/* 見出しや短い項目は、文節の切れ目でだけ改行する */
h1,
h2,
h3,
h4,
legend,
label,
.items li,
.plan-list li,
.ba-points span,
.footer a {
  word-break: auto-phrase;
}

p {
  margin: 0;
}

.old-head {
  padding: calc(var(--u) * 1.2) calc(var(--u) * 2);
  color: #fff;
  background: linear-gradient(#4f7fd8, #1d3f99);
  border-bottom: 3px solid #f0c000;
}

.old-logo {
  font-family: "MS PMincho", serif;
  font-size: calc(var(--u) * 2.8);
  font-weight: 700;
  text-shadow: 2px 2px 0 #102466;
}

.old-ticker {
  margin-top: calc(var(--u) * 0.4);
  color: #ffef5a;
  font-weight: 700;
}

.old-body {
  flex: 1;
  display: flex;
  gap: calc(var(--u) * 1.6);
  padding: calc(var(--u) * 1.6) calc(var(--u) * 2);
}

.old-side {
  flex: 0 0 22%;
  margin: 0;
  padding: calc(var(--u) * 1);
  list-style: none;
  background: #e5ecff;
  border: 1px solid #9fb2e6;
}

.old-side li {
  padding: calc(var(--u) * 0.45) 0;
  color: #0b33c9;
  text-decoration: underline;
}

.old-side li::before {
  content: "▶ ";
  color: #d22;
}

.old-main {
  flex: 1;
  padding: calc(var(--u) * 1.2);
  background: #fff;
  border: 1px solid #bbb;
}

.old-photo {
  display: grid;
  place-items: center;
  height: calc(var(--u) * 12);
  margin-bottom: calc(var(--u) * 1.2);
  font-size: calc(var(--u) * 1.6);
  font-weight: 700;
  color: #999;
  background: #ddd;
  border: 1px dashed #aaa;
}

.old-h {
  margin-bottom: calc(var(--u) * 0.4) !important;
  font-weight: 700;
  color: #c00;
}

.old-counter {
  margin-top: calc(var(--u) * 1.2) !important;
}

.old-counter b {
  padding: 0 calc(var(--u) * 0.4);
  font-family: "Courier New", monospace;
  color: #3f3;
  background: #000;
}

.old-flash {
  margin-top: calc(var(--u) * 1) !important;
  padding: calc(var(--u) * 0.6);
  font-size: calc(var(--u) * 1.2);
  color: #777;
  background: #eee;
  border: 1px solid #ccc;
}

.old-foot {
  padding: calc(var(--u) * 0.8) calc(var(--u) * 2);
  font-size: calc(var(--u) * 1.15);
  color: #666;
  text-align: center;
  background: #ddd;
}

/* 移行後：inaco で整えたサイト */
.new {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: calc(var(--u) * 1.4);
  color: var(--ink);
  background: var(--paper);
}

.new-nav {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: calc(var(--u) * 2.4);
  padding: calc(var(--u) * 1.4) calc(var(--u) * 3);
  font-size: calc(var(--u) * 1.3);
  color: var(--ink-2);
}

.new-logo {
  margin-right: auto;
  font-family: var(--mincho);
  font-size: calc(var(--u) * 2.2);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2em;
}

.new-book {
  padding: calc(var(--u) * 0.6) calc(var(--u) * 1.6);
  color: var(--paper);
  background: var(--green);
  border-radius: 99px;
}

.new-hero {
  position: relative;
  flex: 1;
  margin: 0 calc(var(--u) * 3);
  overflow: hidden;
  border-radius: calc(var(--u) * 1);
}

.new-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.new-copy {
  position: absolute;
  top: 12%;
  right: 7%;
  text-align: right;
  font-family: var(--mincho);
  font-size: calc(var(--u) * 4.2);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.new-news {
  display: flex;
  gap: calc(var(--u) * 2);
  padding: calc(var(--u) * 1.6) calc(var(--u) * 3) calc(var(--u) * 2);
  font-size: calc(var(--u) * 1.3);
  color: var(--ink-2);
}

.new-news > span:first-child {
  font-family: var(--latin);
  font-weight: 600;
  color: var(--green);
}

/* 境目のつまみ */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(31, 29, 25, 0.25);
  pointer-events: none;
}

.ba-handle::before {
  content: "⟷";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  font-size: 22px;
  color: var(--paper);
  background: var(--green);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(31, 29, 25, 0.5);
}

.ba-handle span {
  position: absolute;
  top: 56px;
  padding: 3px 12px;
  font-family: var(--latin);
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 99px;
}

.ba-handle span:first-child {
  right: 14px;
  color: var(--paper);
  background: rgba(31, 29, 25, 0.78);
}

.ba-handle span:last-child {
  left: 14px;
  color: var(--ink);
  background: var(--lime);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-frame:has(.ba-range:focus-visible) .ba-handle::before {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .ba.is-in .ba-frame {
    animation: peek 2.4s var(--ease) 0.4s 1;
  }
}

/* 最初に一度だけ、つまみが動くことを見せる */
@keyframes peek {
  35% {
    --pos: 26%;
  }
  70% {
    --pos: 70%;
  }
}

@property --pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

/* 変わるところに付けた番号の丸。指す要素の角に付ける */
.mock-warn,
.old-ticker,
.old-flash,
.mock-host,
.new-book,
.pin-host {
  position: relative;
}

.mock-host {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.8);
}

.pin {
  position: absolute;
  top: -11px;
  right: -14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-family: var(--latin);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(246, 241, 231, 0.6), 0 6px 14px -6px rgba(31, 29, 25, 0.6);
}

.pin--before {
  background: #b3261e;
}

/* 長い行は右端が移行後の側に隠れるので、左の角に付ける */
.old-ticker .pin,
.old-flash .pin {
  right: auto;
  left: -14px;
}

.pin--after {
  background: var(--green);
}

.pin::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid;
  border-color: inherit;
  border-radius: 50%;
  opacity: 0;
}

.pin--before::after {
  border-color: #b3261e;
}

.pin--after::after {
  border-color: var(--green);
}

@media (prefers-reduced-motion: no-preference) {
  .js .ba.is-in .pin::after {
    animation: ping 2.4s var(--ease) infinite;
  }
}

@keyframes ping {
  0% {
    opacity: 0.8;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.ba-after .mock-url,
.ba-after .new-news {
  padding-left: 52%;
}

.ba-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}

.ba-legend-title {
  margin-bottom: 10px;
  font-family: var(--mincho);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.ba-legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legend;
}

.ba-legend-list li {
  counter-increment: legend;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.ba-legend-list li::before {
  content: counter(legend);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-family: var(--latin);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--paper);
  border-radius: 50%;
}

.ba-legend-list--before li::before {
  background: #b3261e;
}

.ba-legend-list--after li::before {
  background: var(--green);
}

.ba-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.ba figcaption {
  margin-top: 8px;
}

/* ---------- 流れ ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* 横に渡した紐 */
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 30' preserveAspectRatio='none'%3E%3Cpath d='M0 2 Q500 40 1000 2' fill='none' stroke='%23f6f1e7' stroke-opacity='.45' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 70px;
}

.steps li:nth-child(1) { --rest: -1.6deg; --drop: 14px; }
.steps li:nth-child(2) { --rest: 1.1deg; --drop: 22px; }

.tag {
  position: relative;
  height: 100%;
  padding: 46px 24px 30px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 10px 10px 26px 26px;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8);
  transform-origin: 50% calc(-70px + var(--drop));
  transform: rotate(var(--rest));
  rotate: var(--tilt, 0deg);
  transition: rotate 0.8s var(--ease);
}

.tag::before {
  content: "";
  position: absolute;
  top: calc(-70px + var(--drop));
  left: 50%;
  width: 1.5px;
  height: calc(88px - var(--drop));
  margin-left: -0.75px;
  background: rgba(246, 241, 231, 0.55);
}

.tag::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--ink);
  border-radius: 50%;
}

.tag h3 {
  word-break: keep-all;
  font-family: var(--mincho);
  font-size: 19px;
  font-weight: 600;
}

.tag h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--latin);
  font-size: 46px;
  font-style: italic;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--green);
}

.tag p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  .js .steps[data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .steps .tag {
    opacity: 0;
  }

  .js .steps.is-in .tag {
    animation: hang 1.5s var(--ease) both, sway 6s ease-in-out infinite alternate;
    animation-delay: calc(var(--i, 0) * 140ms), calc(1.5s + var(--i, 0) * 140ms);
  }

}

/* ---------- プラン ---------- */
.plans {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  padding-top: 56px;
}

.plans::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 30' preserveAspectRatio='none'%3E%3Cpath d='M0 2 Q500 40 1000 2' fill='none' stroke='%231f1d19' stroke-opacity='.35' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

.plan::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 50%;
  width: 1.5px;
  height: 60px;
  margin-left: -0.75px;
  background: var(--ink-3);
}

.plan::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--paper-2);
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 40px 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.plan--coming {
  background: var(--paper-2);
  border-style: dashed;
}

.plan-status {
  align-self: flex-start;
  margin-top: 28px;
  padding: 4px 14px;
  font-size: 14px;
  color: var(--green-dark);
  border: 1px solid currentColor;
  border-radius: 999px;
}

.plan h3 {
  margin-top: 0;
  font-family: var(--mincho);
  font-size: 28px;
  font-weight: 600;
}

.plan-pos {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}

.plan-price {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.plan-price strong {
  margin: 0 4px;
  font-size: 60px;
  line-height: 1;
}

.plan-init {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.plan-list {
  flex: 1;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.plan-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--line);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 5px;
  height: 10px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan .btn {
  margin-top: 32px;
}

/* ---------- 表（比較・料金メニュー） ---------- */
.table-scroll {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--card);
}

.table th,
.table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr {
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: rgba(238, 230, 214, 0.5);
}

.table thead th {
  font-family: var(--mincho);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
}

.table .c {
  width: 170px;
  text-align: center;
  white-space: nowrap;
}

.table .r {
  font-family: var(--latin);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  text-align: right;
  white-space: nowrap;
}

.table thead small {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink-2);
}

.table .yes::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border: 2.5px solid var(--green);
  border-radius: 50%;
}

.table .no {
  color: var(--ink-3);
}

.table .opt {
  font-size: 13px;
  color: var(--ink-2);
}

.table small {
  font-size: 13px;
  color: var(--ink-2);
}

.table .detail {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}

.table-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.diff {
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.diff-title {
  position: relative;
  padding: 4px 48px 4px 0;
  font-family: var(--mincho);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.diff-title::-webkit-details-marker {
  display: none;
}

.diff-title:hover {
  color: var(--green);
}

.diff-title::before,
.diff-title::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink-2);
  transition: transform 0.35s var(--ease);
}

.diff-title::before {
  transform: rotate(90deg);
}

.diff[open] .diff-title::before {
  transform: rotate(0deg);
}

.diff[open] > .table-scroll {
  margin-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  .diff[open] > .table-scroll,
  .diff[open] > .diff-common {
    animation: rise 0.5s var(--ease) both;
  }
}

.diff-common {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.diff-common .sub-label {
  font-size: 15px;
}

/* ---------- オプション ---------- */
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.option {
  padding: 30px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.option:hover {
  border-color: var(--line-2);
  box-shadow: 0 20px 40px -24px rgba(60, 45, 20, 0.3);
}

.option-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.option h3 {
  font-family: var(--mincho);
  font-size: 19px;
  font-weight: 600;
}

.option-price {
  flex-shrink: 0;
  font-family: var(--latin);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
  color: var(--green-dark);
}

.option-price small {
  font-family: var(--font);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-2);
}

.option p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}

.more-link {
  margin-top: 40px;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 26px 48px 26px 0;
  position: relative;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.7;
  list-style: none;
  transition: color 0.2s;
}

.faq summary:hover {
  color: var(--green);
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* ＋ / − */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 38px;
  width: 16px;
  height: 1.5px;
  background: var(--ink-2);
  transition: transform 0.35s var(--ease);
}

.faq summary::before {
  transform: rotate(90deg);
}

.faq details[open] summary::before {
  transform: rotate(0deg);
}

.faq .q,
.faq .a {
  flex-shrink: 0;
  width: 22px;
  font-family: var(--latin);
  font-size: 26px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}

.faq .a {
  color: var(--lime-dark);
}

.faq .answer {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 0 48px 30px 0;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .answer {
    animation: rise 0.5s var(--ease) both;
  }
}

/* ---------- 無料診断 ---------- */
#contact {
  padding-top: clamp(56px, 7vw, 96px);
}

.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  color: var(--paper);
  background-color: var(--green-dark);
  /* 青海波を薄く */
  background-image:
    radial-gradient(circle at 100% 150%, transparent 24%, rgba(246, 241, 231, 0.035) 24%, rgba(246, 241, 231, 0.035) 28%, transparent 28%, transparent 36%, rgba(246, 241, 231, 0.035) 36%, rgba(246, 241, 231, 0.035) 40%, transparent 40%, transparent 48%, rgba(246, 241, 231, 0.035) 48%, rgba(246, 241, 231, 0.035) 52%, transparent 52%),
    radial-gradient(circle at 0 150%, transparent 24%, rgba(246, 241, 231, 0.035) 24%, rgba(246, 241, 231, 0.035) 28%, transparent 28%, transparent 36%, rgba(246, 241, 231, 0.035) 36%, rgba(246, 241, 231, 0.035) 40%, transparent 40%, transparent 48%, rgba(246, 241, 231, 0.035) 48%, rgba(246, 241, 231, 0.035) 52%, transparent 52%),
    radial-gradient(circle at 50% 100%, transparent 24%, rgba(246, 241, 231, 0.035) 24%, rgba(246, 241, 231, 0.035) 28%, transparent 28%, transparent 36%, rgba(246, 241, 231, 0.035) 36%, rgba(246, 241, 231, 0.035) 40%, transparent 40%, transparent 48%, rgba(246, 241, 231, 0.035) 48%, rgba(246, 241, 231, 0.035) 52%, transparent 52%);
  background-size: 80px 40px;
  border-radius: 10px;
}

.contact h2 {
  font-size: clamp(26px, 3.2vw, 38px);
}

.contact-copy p {
  margin-top: 22px;
  color: rgba(246, 241, 231, 0.86);
}

.contact-copy .note {
  font-size: 13px;
  color: rgba(246, 241, 231, 0.78);
}

.diagnosis {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.6);
}

.field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-weight: 700;
}

.field em {
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-style: normal;
  color: var(--paper);
  background: var(--green);
  border-radius: 99px;
}

.field input[type="url"],
.field input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  resize: vertical;
}

.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(125, 191, 47, 0.35);
}

.field textarea::placeholder,
.field input::placeholder {
  color: var(--ink-3);
}

.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(125, 191, 47, 0.35);
}

.field--choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field--choice legend {
  width: 100%;
  margin-bottom: 6px;
}

.field--choice label {
  position: relative;
  font-weight: 400;
}

.field--choice input {
  position: absolute;
  opacity: 0;
}

.field--choice label span,
.field--choice label {
  cursor: pointer;
}

.field--choice label {
  padding: 8px 16px;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  transition: all 0.2s;
}

.field--choice label:has(input:checked) {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
}

.field--choice label:has(input:focus-visible) {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.diagnosis-sent {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--green-dark);
  background: var(--green-pale);
  border-radius: 6px;
}

.diagnosis-sent[hidden] {
  display: none;
}

.diagnosis-sent textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 6px;
}

.diagnosis .btn {
  width: 100%;
  margin-top: 6px;
  padding: 17px 24px;
  font-size: 16px;
  white-space: normal;
}

/* ---------- フッター ---------- */
.footer {
  padding: clamp(64px, 9vw, 112px) 0 36px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.footer > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "grid closing"
    "bottom bottom";
  column-gap: clamp(40px, 6vw, 96px);
}

.foot-grid {
  grid-area: grid;
  align-self: end;
}

.foot-bottom {
  grid-area: bottom;
}

.foot-closing {
  grid-area: closing;
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--green);
}

.foot-logo {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 32px 64px;
}

.foot-grid .foot-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 16px;
}

.foot-grid .foot-brand p {
  margin: 0;
}

.foot-brand p {
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.9;
}

.footer h2 {
  font-family: var(--mincho);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.footer ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer a:hover {
  color: var(--green);
  text-decoration: underline;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink-2);
}

/* ---------- 料金メニュー（menu.html） ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 48px;
}

.page-head::before {
  content: "価";
  position: absolute;
  right: -0.06em;
  bottom: 0;
  font-family: var(--mincho);
  font-size: clamp(200px, 24vw, 340px);
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  opacity: 0.045;
  pointer-events: none;
}

.page-head h1 {
  font-family: var(--mincho);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600;
}

.page-head p {
  max-width: 680px;
  margin-top: 20px;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  .page-head h1 {
    animation: rise 1s var(--ease) both;
  }

  .page-head p {
    animation: rise 1s var(--ease) 0.15s both;
  }
}

.toc-bar {
  position: sticky;
  top: var(--header);
  z-index: 40;
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.toc {
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  font-size: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc a {
  display: inline-block;
  padding: 6px 16px;
  white-space: nowrap;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.toc a:hover,
.toc a[aria-current] {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
}

.menu-section {
  padding: 72px 0;
}

.menu-section:nth-of-type(even) {
  background: var(--paper-2);
}

@media (min-width: 1081px) {
  .page-menu main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .page-menu .page-head,
  .page-menu .menu-foot {
    grid-column: 1 / -1;
  }

  .page-menu .page-head .wrap,
  .page-menu .menu-foot .wrap,
  .page-menu .menu-section .wrap {
    max-width: none;
    padding: 0;
  }

  .page-menu .toc-bar {
    grid-column: 1;
    grid-row: 2 / span 20;
    align-self: start;
    top: calc(var(--header) + 24px);
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
  }

  .page-menu .toc-bar .wrap {
    padding: 0;
  }

  .page-menu .toc {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 32px 0 0;
    overflow: visible;
    mask-image: none;
    border-right: 1px solid var(--line-2);
  }

  .page-menu .toc a {
    padding: 6px 14px;
    border-color: transparent;
  }

  .page-menu .menu-section {
    grid-column: 2;
    padding: 64px 0 64px 56px;
    background: none;
    border-bottom: 1px solid var(--line);
  }

  .page-menu .page-head {
    padding-left: 0;
    padding-right: 0;
  }
}

.menu-section h2 {
  font-family: var(--mincho);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
}

.menu-section .desc {
  max-width: 760px;
  margin: 12px 0 28px;
  font-size: 15px;
  color: var(--ink-2);
}

.menu-section h2 + .table {
  margin-top: 28px;
}

.menu-section > .wrap > .table {
  border: 1px solid var(--line);
}

.menu-section .table + .sub-label,
.menu-section .items + .sub-label {
  margin-top: 32px;
}

.sub-label {
  margin-bottom: 12px;
  font-family: var(--mincho);
  font-size: 16px;
  font-weight: 700;
}

.items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
}

.items li {
  padding: 4px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.items li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 2px 0;
  vertical-align: middle;
  background: var(--green);
  border-radius: 50%;
}

.items--no li {
  background: transparent;
  border-style: dashed;
}

.items--no li::before {
  content: "×";
  width: auto;
  height: auto;
  margin: 0 6px 0 0;
  background: none;
  color: var(--ink-3);
}

.callout {
  margin-top: 24px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--card);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.menu-foot {
  padding: 72px 0 96px;
  border-top: 1px solid var(--line-2);
}

.menu-foot p {
  color: var(--ink-2);
}

.menu-foot .btn {
  margin-top: 28px;
}

.free {
  font-weight: 700;
  color: var(--green);
}

/* ---------- 画面幅ごとの調整 ---------- */
@media (max-width: 1080px) {
  .nav:not(.nav--always) {
    display: none;
  }

  .nav-sp {
    display: block;
  }

  .ba-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-visual {
    width: 100%;
    max-width: 620px;
    margin: 32px auto 0;
  }

  .hero-price {
    display: none;
  }

  .hero-site {
    margin-left: 0;
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .hero-site-caption {
    position: static;
    margin-top: 12px;
  }

  .section--split > .wrap,
  .section--split-left > .wrap {
    display: block;
  }

  .section--split .section-head {
    position: static;
    align-items: flex-start;
  }

  h2.vertical {
    writing-mode: horizontal-tb;
    font-size: clamp(26px, 5vw, 36px);
    letter-spacing: 0.04em;
  }

  h2.vertical br {
    display: none;
  }

  .section--split .section-main > :first-child {
    margin-top: 32px;
  }

  .worries {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }

  .steps::before {
    display: none;
  }

  .steps li {
    padding-top: 56px;
  }

  .steps li:nth-child(n) {
    --drop: 0px;
  }

  .tag::before {
    top: -56px;
    height: 70px;
  }

  .tag {
    transform-origin: 50% -56px;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .diff-common {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer > .wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "closing"
      "grid"
      "bottom";
  }

  .foot-closing {
    writing-mode: horizontal-tb;
    margin-bottom: 48px;
    font-size: clamp(30px, 6vw, 48px);
    letter-spacing: 0.04em;
    line-height: 1.4;
  }


  .foot-grid .foot-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 680px) {
  :root {
    --header: 60px;
  }

  body {
    font-size: 15px;
  }

  .brand-jp {
    display: none;
  }

  .brand-symbol {
    width: 44px;
  }

  .nav-sp summary {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(27px, 7.6vw, 34px);
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.85;
  }


  .nav--always {
    gap: 12px;
  }

  .nav--always a:not(.btn) {
    font-size: 13px;
  }

  .nav--always .btn {
    padding: 8px 14px;
  }

  .hero-facts {
    margin-top: 20px;
    gap: 6px;
    font-size: 12px;
  }

  .hero-facts li {
    padding: 3px 10px;
  }

  .hero-cta {
    margin-top: 24px;
    gap: 10px;
  }

  .hero-cta .btn {
    flex: 1;
    padding: 14px 16px;
    font-size: 14px;
  }

  .worry-result {
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 14px 18px;
    border-radius: 18px;
  }

  .worry-message {
    flex-basis: calc(100% - 80px);
    font-size: 13px;
  }

  .worry-result .btn {
    width: 100%;
  }

  /* スマホでは移行前と移行後を上下に並べる */
  .ba-frame {
    --u: 2.4cqw;
    display: grid;
    gap: 40px;
    aspect-ratio: auto;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .ba-layer {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    box-shadow: 0 30px 60px -36px rgba(60, 45, 20, 0.55);
  }

  .ba-after {
    clip-path: none;
  }

  .ba-layer::after {
    position: absolute;
    top: calc(var(--u) * 6);
    right: 10px;
    padding: 2px 12px;
    font-family: var(--latin);
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    border-radius: 99px;
  }

  .ba-before::after {
    content: "Before";
    color: var(--paper);
    background: rgba(31, 29, 25, 0.8);
  }

  .ba-after::after {
    content: "After";
    color: var(--ink);
    background: var(--lime);
  }

  .ba-handle,
  .ba-range {
    display: none;
  }

  .ba.is-in .ba-frame {
    animation: none;
  }

  .mock-url::before,
  .old-side {
    display: none;
  }

  .old-photo {
    height: calc(var(--u) * 10);
  }

  .new-nav > span:not(.new-logo):not(.new-book) {
    display: none;
  }

  .new-copy {
    top: 10%;
    font-size: calc(var(--u) * 4);
  }

  .new-news {
    flex-direction: column;
    gap: 0;
  }

  .ba-layer::after {
    top: auto;
    bottom: 8px;
  }

  .old,
  .new {
    padding-bottom: 34px;
  }

  .ba-after .new-copy {
    top: auto;
    bottom: 34%;
    right: auto;
    left: 7%;
    text-align: left;
  }

  /* 流れの札は横に並べ、指で送る */
  .steps {
    display: flex;
    gap: 14px;
    margin: 56px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .steps::before {
    display: block;
    left: 0;
    right: 0;
  }

  .steps li {
    flex: 0 0 76%;
    padding-top: 64px;
    scroll-snap-align: center;
  }

  .steps li:nth-child(n) {
    --drop: 16px;
  }

  .tag::before {
    top: calc(-64px + var(--drop));
    height: calc(80px - var(--drop));
  }

  .tag {
    transform-origin: 50% calc(-64px + var(--drop));
  }

  .hero-visual {
    margin-top: 16px;
    padding-bottom: 0;
  }

  .hero-site {
    --u: 2.4cqw;
    --hs-h: min(320px, 60svh);
    margin-left: 0;
    transform: perspective(1200px) rotateY(-6deg) rotate(1deg);
  }

  .hero-price {
    display: none;
  }

  .hero-site-caption {
    position: static;
    margin-top: 12px;
  }

  .plans::before,
  .plan::before {
    display: none;
  }

  .plans {
    padding-top: 0;
  }

  .ba-after .mock-url {
    padding-left: calc(var(--u) * 2);
  }

  .ba-after .new-news {
    padding-left: calc(var(--u) * 3);
  }

  .ba-legend {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ba-handle::before {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    font-size: 18px;
  }

  .ba-handle span {
    font-size: 13px;
  }

  .ba-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps,
  .plans,
  .options {
    grid-template-columns: 1fr;
  }

  .tag {
    padding: 42px 22px 26px;
  }

  .plans {
    gap: 48px;
  }

  .plan {
    padding: 40px 24px 28px;
  }

  .plan-price strong {
    font-size: 50px;
  }

  .option {
    padding: 24px 22px;
  }

  .worry-meter {
    flex: 1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .worry-meter span {
    height: 14px;
  }

  .worry-message {
    flex-basis: 100%;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid .foot-brand {
    grid-column: 1 / -1;
  }

  .table th,
  .table td {
    padding: 12px 12px;
  }

  .table .c {
    width: auto;
  }

  .menu-section .table td:first-child {
    width: 100%;
  }

  .faq summary {
    padding-right: 36px;
  }

  .faq .answer {
    padding-right: 0;
  }

  .foot-closing {
    font-size: clamp(30px, 9vw, 44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  body::before,
  .topbar,
  .toc-bar,
  .menu-foot .btn {
    display: none;
  }

  .menu-section {
    break-inside: avoid;
  }
}
