/* MISEBIRAKI 紹介ページ
   色: 素案の実測値 (地 #f7f5f3 / 墨 #2f2f31 / 金 #c9a44f) を起点に OKLCH で段を作った。
   文字と地の差は全組み合わせで 4.5:1 以上 (最小は 金茶の字 × 金茶の淡い面 = 5.1)。
   形: 面は角 4px、ボタンだけ丸端。影は墨の色相に寄せた 1 種類。 */

:root {
  /* 色 (hex は oklch が使えない環境向け) */
  --paper: #f6f3ef;
  --paper-deep: #e7e3d9;
  --surface: #fcfbf8;
  --tint: #e9ddc1;
  --ink: #292623;
  --ink-soft: #4c4742;
  --ink-muted: #605a54;
  --kincha: #75541a;
  --gold: #caaa5b;
  --band: #25221f;
  --band-face: #332f2c;
  --band-deep: #1c1916;
  --on-dark: #f6f3ee;
  --on-dark-soft: #cecac2;
  --line: #d8d4cc;
  --line-dark: #4a4541;

  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-latin: "Josefin Sans", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", sans-serif;

  --fs-body: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-h2: clamp(1.5rem, 0.9rem + 3vw, 2.75rem);
  --fs-h2-split: clamp(1.5rem, 0.9rem + 3vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --sec-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --head-h: 3.75rem;
  --radius: 4px;
  --shadow: 0 1px 2px rgb(41 38 35 / 0.05), 0 14px 32px -18px rgb(41 38 35 / 0.28);

  --dur-ui: 0.22s;
  --dur-press: 0.12s;
  --dur-reveal: 0.7s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (color: oklch(0 0 0)) {
  :root {
    --paper: oklch(0.966 0.007 85);
    --paper-deep: oklch(0.915 0.015 85);
    --surface: oklch(0.988 0.004 90);
    --tint: oklch(0.9 0.04 88);
    --ink: oklch(0.27 0.008 60);
    --ink-soft: oklch(0.4 0.01 60);
    --ink-muted: oklch(0.47 0.012 65);
    --kincha: oklch(0.47 0.085 78);
    --gold: oklch(0.75 0.105 88);
    --band: oklch(0.255 0.007 60);
    --band-face: oklch(0.31 0.008 60);
    --band-deep: oklch(0.215 0.007 60);
    --on-dark: oklch(0.965 0.007 85);
    --on-dark-soft: oklch(0.84 0.012 85);
    --line: oklch(0.87 0.012 85);
    --line-dark: oklch(0.4 0.008 60);
    --shadow: 0 1px 2px oklch(0.27 0.02 60 / 0.05), 0 14px 32px -18px oklch(0.27 0.03 60 / 0.3);
  }
}

@media (min-width: 48em) {
  :root { --head-h: 4.5rem; }
}

/* ---------- 土台 ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  letter-spacing: 0.03em;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
strong { font-weight: 700; }

::selection { background: var(--kincha); color: var(--on-dark); }

:focus-visible {
  outline: 2px solid var(--kincha);
  outline-offset: 3px;
  border-radius: 2px;
}
.band :focus-visible, .foot :focus-visible { outline-color: var(--gold); }

/* 文節のまとまり。行の終わりに 1〜2 字だけ落ちるのを防ぐ */
.ph { display: inline-block; }
.ln { display: block; }
.nb { white-space: nowrap; }

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-110%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(100% - var(--gutter) * 2, 70rem);
  margin-inline: auto;
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5em 1.75em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform var(--dur-ui) var(--ease-out),
    background-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
}
.btn--s { min-height: 2.75rem; padding-inline: 1em; font-size: 0.9375rem; letter-spacing: 0.04em; }
.btn--l {
  min-height: 3.75rem;
  padding-inline: clamp(1.5rem, 6vw, 3.25rem);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
}
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--light { background: var(--on-dark); color: var(--ink); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .btn--ink:hover { background: var(--kincha); }
  .btn--light:hover { background: var(--tint); }
}
.btn:active {
  transform: scale(0.97);
  transition-duration: var(--dur-press);
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
}

/* 文中のリンク */
.link {
  color: var(--kincha);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding-block: 0.45rem;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.5rem) / 100% 1px no-repeat;
  transition: background-size var(--dur-ui) var(--ease-out);
}
@media (hover: hover) {
  .link:hover { background-size: 100% 2px; }
}
.link:active { opacity: 0.7; }

/* ---------- ヘッダー ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.head.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgb(41 38 35 / 0.5);
}
.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--head-h);
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark { width: 1.625rem; height: 1.625rem; flex: none; }
.logo__seam { stroke: var(--gold); }
.logo__word {
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  padding-top: 0.2em; /* Josefin Sans は字面が上に寄るので、枠の中心に合わせる */
}
.logo:active { opacity: 0.7; }
@media (min-width: 22.5em) {
  .logo__word { font-size: 0.875rem; letter-spacing: 0.14em; }
}
@media (min-width: 26em) {
  .logo__word { font-size: 0.9375rem; letter-spacing: 0.26em; }
  .logo { gap: 0.7rem; }
}
@media (min-width: 48em) {
  .logo__mark { width: 2rem; height: 2rem; }
  .logo__word { font-size: 1.0625rem; letter-spacing: 0.32em; }
  .btn--s { padding-inline: 1.6em; }
}

/* ---------- 冒頭 ---------- */

.hero {
  /* 戸の、開いたときに見えている幅 */
  --door: clamp(10px, 11vw - 34px, 180px);
  position: relative;
  z-index: 1;
  background: var(--surface);
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .hero { overflow: hidden; }
}

.hero__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  background-color: var(--paper-deep);
  pointer-events: none;
}
.hero__door--l {
  left: 0;
  transform: translateX(calc(-100% + var(--door)));
  background-image: linear-gradient(to left, transparent 14px, var(--line) 14px, var(--line) 15px, transparent 15px);
  box-shadow: 10px 0 28px -20px rgb(41 38 35 / 0.45);
}
.hero__door--r {
  right: 0;
  transform: translateX(calc(100% - var(--door)));
  background-image: linear-gradient(to right, transparent 14px, var(--line) 14px, var(--line) 15px, transparent 15px);
  box-shadow: -10px 0 28px -20px rgb(41 38 35 / 0.45);
}
.hero__seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  z-index: 3;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  pointer-events: none;
}
/* 冒頭の下に残る、金の短い線 (素案の縦線) */
.hero__thread {
  position: absolute;
  left: calc(50% - 1px);
  bottom: -2rem;
  width: 2px;
  height: 4rem;
  z-index: 3;
  background: var(--gold);
}

.hero__in {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.25rem, 2rem + 6vw, 6.5rem) clamp(5.5rem, 4.5rem + 5vw, 8.5rem);
  padding-inline: calc(var(--door) + var(--gutter));
  text-align: center;
}

.hero__tag {
  color: var(--kincha);
  font-weight: 700;
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.0625rem);
  letter-spacing: 0.16em;
  line-height: 1.7;
}
.hero__title {
  margin-top: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  font-family: var(--font-display);
  font-weight: 500;
  /* 狭い幅は 2 行 (きょう、/ みせびらき。)、広い幅は 1 行 */
  font-size: clamp(2.5rem, 12.5vw, 3.75rem);
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}
@media (min-width: 45em) {
  .hero__title { font-size: clamp(3.5rem, 5.4vw, 5.75rem); letter-spacing: 0.1em; }
}
.hero__lead {
  margin-top: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.93rem + 0.4vw, 1.1875rem);
  line-height: 2;
}

/* 値付け。狭い幅は品書きの 2 行、広い幅は横並び */
.hero__price {
  display: grid;
  width: min(100%, 21rem);
  margin: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem) auto 0;
  border-top: 1px solid var(--line);
}
.hero__priceItem {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.hero__price dt {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}
.hero__price dd {
  color: var(--kincha);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  white-space: nowrap;
}
.hero__price .fig {
  font-size: clamp(1.5rem, 0.9rem + 3vw, 2.375rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-inline: 0.06em;
}
@media (min-width: 40em) {
  .hero__price {
    display: flex;
    justify-content: center;
    width: auto;
    border-top: 0;
  }
  .hero__priceItem {
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.25rem clamp(1.25rem, 3vw, 2.5rem);
    border-bottom: 0;
  }
  .hero__priceItem + .hero__priceItem { border-left: 1px solid var(--line); }
}

.hero__cta { margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.hero__note {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.6em; }
.hero__facts li::before {
  content: "";
  width: 0.7em;
  height: 2px;
  background: var(--gold);
}

/* 戸がひらく。入場の一度きり */
@media (prefers-reduced-motion: no-preference) {
  .hero__door--l { animation: door-l 1.25s var(--ease-expo) 0.2s both; }
  .hero__door--r { animation: door-r 1.25s var(--ease-expo) 0.2s both; }
  .hero__seam { animation: seam 1.05s var(--ease-expo) 0.2s both; }
  .hero__in > * { animation: unveil 0.9s var(--ease-expo) both; }
  .hero__in > :nth-child(1) { animation-delay: 0.4s; }
  .hero__in > :nth-child(2) { animation-delay: 0.48s; }
  .hero__in > :nth-child(3) { animation-delay: 0.56s; }
  .hero__in > :nth-child(4) { animation-delay: 0.64s; }
  .hero__in > :nth-child(5) { animation-delay: 0.72s; }
  .hero__in > :nth-child(6) { animation-delay: 0.8s; }
}
@keyframes door-l { from { transform: translateX(0); } }
@keyframes door-r { from { transform: translateX(0); } }
@keyframes seam { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes unveil { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 節の共通 ---------- */

.sec { padding-block: var(--sec-y); }
.sec--about { padding-bottom: 0; }
.sec--why, .sec--how { background: var(--paper); }
.sec--what, .sec--faq { background: var(--surface); }
.sec--price, .sec--who { background: var(--paper-deep); }

.eyebrow {
  color: var(--kincha);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.28em;
  line-height: 1.4;
}
.eyebrow--dark { color: var(--gold); }

.sec__title {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.45;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
}
.sec__head { margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.75rem); }

@media (min-width: 60em) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }
  .split > .sec__head {
    position: sticky;
    top: calc(var(--head-h) + 2.5rem);
    margin-bottom: 0;
  }
  .split .sec__title { font-size: var(--fs-h2-split); }
}

/* ---------- ABOUT YOU ---------- */

.worries { border-top: 1px solid var(--line); }
.worries li {
  position: relative;
  padding: 1.3em 0 1.3em 2.1em;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.25rem);
  line-height: 1.7;
}
.worries li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: calc(1.3em + 0.85em - 1px);
  width: 0.9em;
  height: 2px;
  background: var(--gold);
}

.answer {
  margin-top: var(--sec-y);
  padding: clamp(3.5rem, 2.5rem + 6vw, 7rem) var(--gutter);
  background: var(--paper-deep);
  text-align: center;
}
.answer__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 0.85rem + 2vw, 2.25rem);
  line-height: 1.9;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

/* ---------- WHY: 比べの表 ---------- */

/* 狭い幅: 行ごとのまとまりに組み替える */
.cmp__table, .cmp__table tbody, .cmp__table tr, .cmp__table th, .cmp__table td { display: block; }
.cmp__table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cmp__table tbody tr {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.cmp__table tbody tr:last-child { padding-bottom: 0; }
.cmp__table tbody th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-align: left;
  line-height: 1.5;
}
.cmp__table td { padding: 0; }
.cmp__table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
}
.cmp__table td.cmp__them {
  margin-top: 0.9rem;
  color: var(--ink-muted);
}
.cmp__table td.cmp__them::before { color: var(--ink-muted); }
.cmp__table td.cmp__us {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem 1.2rem;
  background: var(--tint);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.cmp__table td.cmp__us::before {
  color: var(--kincha);
  font-family: var(--font-latin);
  font-weight: 600;
  letter-spacing: 0.24em;
}

/* 広い幅: 表。MISEBIRAKI の列を 1 枚の面にして上下にはみ出させる */
@media (min-width: 48em) {
  .cmp { position: relative; isolation: isolate; padding-block: 1.25rem; }
  .cmp::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    right: 0;
    width: 44%;
    background: var(--tint);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .cmp__table { display: table; table-layout: fixed; }
  .cmp__table thead { display: table-header-group; position: static; width: auto; height: auto; clip-path: none; white-space: normal; }
  .cmp__table tbody { display: table-row-group; }
  .cmp__table tr, .cmp__table tbody tr { display: table-row; padding: 0; border: 0; }
  .cmp__table th, .cmp__table td { display: table-cell; }
  .cmp__table td::before { content: none; }

  .cmp__table thead td { width: 20%; }
  .cmp__table thead .cmp__them { width: 36%; }
  .cmp__table thead .cmp__us { width: 44%; }
  .cmp__table tbody th { white-space: nowrap; }

  .cmp__table th, .cmp__table td,
  .cmp__table td.cmp__them, .cmp__table td.cmp__us {
    margin: 0;
    padding: 1.6rem 1.5rem;
    background: none;
    border-radius: 0;
    text-align: left;
    vertical-align: middle;
  }
  .cmp__table tbody tr > * { border-top: 1px solid var(--line); }
  .cmp__table tbody tr > .cmp__us { border-top-color: rgb(117 84 26 / 0.22); }

  .cmp__table thead th { padding-block: 1.1rem; font-size: 0.9375rem; font-weight: 700; }
  .cmp__table thead .cmp__them { color: var(--ink-muted); }
  .cmp__table thead .cmp__us {
    color: var(--kincha);
    font-family: var(--font-latin);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.28em;
  }
  .cmp__table tbody th {
    padding-left: 0;
    font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.3125rem);
  }
  .cmp__table td.cmp__them { color: var(--ink-muted); }
  .cmp__table td.cmp__us {
    padding-inline: clamp(1.5rem, 3vw, 2.5rem);
    font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  }
  .cmp__table thead .cmp__us { padding-inline: clamp(1.5rem, 3vw, 2.5rem); }
}

/* ---------- WHAT WE DO ---------- */

.works { display: grid; gap: 0; }
.works__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.works__item:last-child { padding-bottom: 0; }
.works__no {
  grid-row: 1 / span 2;
  color: var(--kincha);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.125rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.works__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
.works__text {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}
@media (min-width: 40em) {
  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: clamp(2rem, 4vw, 3.5rem);
  }
  .works__item {
    display: block;
    padding-block: 1.5rem 0;
  }
  .works__no { display: block; font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); margin-bottom: 1rem; }
  /* 右の列を半段ずらして、順に進む感じを出す */
  .works__item:nth-child(even) { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
  .works__item:nth-child(odd) { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
  .works__item:nth-child(odd):nth-last-child(2) { margin-bottom: 0; }
}

/* ---------- PRICING ---------- */

.plans { display: grid; gap: 1.25rem; }
.plan {
  position: relative;
  padding: clamp(1.5rem, 1.1rem + 2.2vw, 3rem);
  border-radius: var(--radius);
}
.plan--base { background: var(--paper); }
.plan--semi {
  background: var(--surface);
  box-shadow: var(--shadow);
  padding-top: clamp(3.25rem, 2.8rem + 2.2vw, 4.5rem);
}
.plan__flag {
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 1.1rem + 2.2vw, 3rem);
  padding: 0.45em 1.1em 0.5em;
  background: var(--kincha);
  color: var(--on-dark);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
}
.plan__name {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  line-height: 1.2;
}
.plan__fig {
  font-weight: 500;
  font-size: clamp(2.5rem, 2rem + 2.4vw, 3.5rem);
  letter-spacing: 0.01em;
  font-feature-settings: "tnum";
}
.plan--semi .plan__fig { font-size: clamp(2.375rem, 1.4rem + 4.6vw, 4.75rem); }
.plan__from { font-weight: 500; font-size: 1.25rem; margin-left: 0.15em; }
.plan__unit {
  margin-left: 0.6em;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan__list {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.plan--semi .plan__list { color: var(--ink); }
.plan__list li {
  position: relative;
  padding-left: 1.6em;
}
.plan__list li + li { margin-top: 0.55rem; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.925em - 1px);
  width: 0.8em;
  height: 2px;
  background: var(--gold);
}
.plans__note {
  margin-top: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  color: var(--ink-soft);
}
.plans__note strong { color: var(--ink); }
.plans__note p + p { margin-top: 0.35rem; }

@media (min-width: 56em) {
  .plans {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: end;
  }
  /* セミオーダーの面を一段高く置く */
  .plan--base { margin-bottom: clamp(1rem, 2.5vw, 2.25rem); }
  .plans__note { margin-left: auto; width: min(100%, 44rem); }
}

/* ---------- 濃い帯 ---------- */

.band {
  background: var(--band);
  color: var(--on-dark);
}
.band__title, .close__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

/* FOUNDING PARTNERS: 見出しの側を一段明るい面にする */
.band--found .band__head {
  margin-inline: calc(var(--gutter) * -1);
  padding: clamp(3.5rem, 2.5rem + 5vw, 6.5rem) var(--gutter) clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background: var(--band-face);
}
.band__title {
  margin-top: 0.9rem;
  font-size: clamp(1.625rem, 1rem + 3.1vw, 3rem);
}
.band__body {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  color: var(--on-dark-soft);
}
.band__body p + p { margin-top: 0.75rem; }
.band__body .btn { margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem); }

@media (min-width: 60em) {
  .band--found {
    /* 左 5/12 を明るい面に。境目は .wrap の中の列の境目に合わせる */
    --edge: calc(50% - min(100% - var(--gutter) * 2, 70rem) / 2 + min(100% - var(--gutter) * 2, 70rem) * 5 / 12);
    background-image: linear-gradient(to right, var(--band-face) var(--edge), var(--band) var(--edge));
  }
  .band__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
  .band--found .band__head {
    margin: 0;
    padding: clamp(5rem, 9vw, 8rem) clamp(2rem, 4vw, 4rem) clamp(5rem, 9vw, 8rem) 0;
    background: none;
  }
  .band__body {
    padding: clamp(5rem, 9vw, 8rem) 0 clamp(5rem, 9vw, 8rem) clamp(2.5rem, 6vw, 6rem);
  }
}

/* ---------- HOW IT WORKS ---------- */

.steps { border-top: 1px solid var(--ink-muted); }
.steps__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.steps__no {
  grid-row: 1 / span 2;
  color: var(--kincha);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.15;
}
.steps__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.steps__text { margin-top: 0.4rem; color: var(--ink-soft); }
/* 四: 行き先。面で示す */
.steps__item--open {
  margin-top: 1.25rem;
  padding: 1.5rem 1.25rem 1.6rem;
  background: var(--tint);
  border-bottom: 0;
  border-radius: var(--radius);
}
.steps__item--open .steps__text { color: var(--ink); }

@media (min-width: 54em) {
  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
    border-top: 0;
    align-items: stretch;
  }
  .steps__item {
    display: block;
    position: relative;
    padding: 2rem clamp(1rem, 2vw, 2rem) 2.25rem 0;
    border-bottom: 0;
    border-top: 1px solid var(--ink-muted);
  }
  .steps__no { display: block; margin-bottom: 1.1rem; font-size: clamp(2.5rem, 2rem + 1.4vw, 3.25rem); }
  .steps__item--open {
    margin-top: -1.25rem;
    margin-bottom: -1.25rem;
    padding: 3.25rem clamp(1.5rem, 2.5vw, 2.5rem) 3.5rem;
    border-top: 0;
    box-shadow: var(--shadow);
  }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq__item {
  padding-block: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.faq dt {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-items: baseline;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.faq__q {
  color: var(--kincha);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 1.125em;
}
.faq dd {
  margin-top: 0.6rem;
  padding-left: 1.9rem;
  color: var(--ink-soft);
}

/* ---------- WHO WE ARE ---------- */

.who {
  padding: clamp(1.25rem, 0.4rem + 4.2vw, 4rem);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.who__role {
  color: var(--kincha);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
}
.who__slash { margin-inline: 0.2em; }
.who__name {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  letter-spacing: 0.12em;
  line-height: 1.4;
}
.who__bio {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  line-height: 2.05;
}
.who__meta {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.who__meta > div {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.who__meta dt {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 2.1;
}
.who__web { display: block; color: var(--ink-soft); }
.who__note {
  margin-top: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  color: var(--ink-soft);
  text-align: center;
}
@media (min-width: 54em) {
  .who__meta > div { grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1rem; }
  .who {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .who__bio { margin-top: 0; }
}

/* ---------- 結び ---------- */

.close {
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
  text-align: center;
}
.close__title { font-size: clamp(1.625rem, 0.9rem + 3.6vw, 3.5rem); }
.close__text {
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  color: var(--on-dark-soft);
}
.close__thread {
  width: 2px;
  height: 3.5rem;
  margin: clamp(1.75rem, 1.5rem + 1vw, 2.5rem) auto;
  background: var(--gold);
}

/* ---------- フッター ---------- */

.foot {
  background: var(--band-deep);
  color: var(--on-dark-soft);
  padding-bottom: env(safe-area-inset-bottom);
}
.foot__grid {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(3rem, 2.5rem + 2.5vw, 4.5rem) 2rem;
}
.foot__logo { line-height: 1.6; }
.foot__word {
  color: var(--on-dark);
  font-family: var(--font-latin);
  font-size: 1.0625rem;
  letter-spacing: 0.3em;
}
.foot__by {
  font-family: var(--font-latin);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.foot__h {
  color: var(--on-dark);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.foot__dl { margin-top: 0.6rem; font-size: 0.9375rem; }
.foot__dl > div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 0.3rem;
}
.foot__dl dt { font-weight: 700; }
.foot__nav ul { display: grid; }
.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--on-dark);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: var(--line-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  transition: text-decoration-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.foot__nav a[lang="en"] { font-family: var(--font-latin); letter-spacing: 0.08em; font-size: 1rem; }
@media (hover: hover) {
  .foot__nav a:hover { color: var(--gold); text-decoration-color: var(--gold); }
}
.foot__nav a:active { opacity: 0.7; }
.foot__base {
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line-dark);
}
.foot__copy {
  font-family: var(--font-latin);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
}
@media (min-width: 48em) {
  .foot__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
    column-gap: clamp(1.5rem, 4vw, 4rem);
  }
}
@media (min-width: 64em) {
  .foot__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); }
  .foot__nav ul { grid-template-columns: repeat(2, max-content); column-gap: 2rem; }
}

/* ---------- スクロールで出す (一度きり) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--dur-reveal) var(--ease-expo) var(--d, 0ms),
    transform var(--dur-reveal) var(--ease-expo) var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* 金の線は上から伸ばす */
.js [data-reveal="thread"] {
  opacity: 1;
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.js [data-reveal="thread"].is-in { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal="thread"] {
    transform: none;
    transition: opacity 0.3s linear;
  }
  .js [data-reveal="thread"] { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .head { position: static; }
  .hero__door, .hero__seam { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
