/*
 * SECOND WEDDING — styles
 * Layout: 縦にめくるアルバム。全幅の写真と、余白の多いアイボリーの紙面が交互に現れる。
 *         金は細い罫線・数字・小さな見出しだけに使う。ブランドの世界観として単一（ライト）テーマ。
 */
:root {
  /* Color — ブランドカラー */
  --ivory: #F8F5EF;
  --gold: #C9AE87;
  --brown: #362C26;
  --white: #FFFFFF;
  --black: #1E1E1E;
  /* 派生色 */
  --paper: #FDFBF7;            /* 白に近い紙色 */
  --gold-ink: #8A6E47;         /* 小さな文字用の金（アイボリー上で読める濃さ） */
  --gold-soft: rgba(201, 174, 135, 0.38);
  --ink: #362C26;
  --ink-soft: #6A5D54;
  --rule: rgba(54, 44, 38, 0.14);
  --line-green: #06C755;
  --error: #9B3B2E;

  /* Type */
  --f-mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --f-latin: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --f-ui: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --fs-xl: clamp(1.625rem, 1.2rem + 2vw, 2.5rem);
  --fs-hero: clamp(1.875rem, 1.1rem + 4vw, 4rem);

  /* Space */
  --sec-y: clamp(5rem, 4rem + 6vw, 9rem);
  --wrap: 1120px;
  --hdr-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

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

[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-mincho);
  font-size: var(--fs-base);
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* 上部のセーフエリア帯（ノッチ部分）を塗る */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ivory);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

.ln { display: inline-block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brown); color: var(--ivory); padding: 8px 16px; font-family: var(--f-ui); font-size: var(--fs-sm);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.wrap--narrow { max-width: calc(760px + 48px); }

.sec { padding-block: var(--sec-y); }
.sec--dark { background: var(--brown); color: var(--ivory); }

/* ---------- Reveal ---------- */
[data-reveal] { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-pending { opacity: 0; transform: translateY(24px); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--f-latin);
  font-style: italic;
  font-size: var(--fs-md);
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  line-height: 1.4;
}
.eyebrow--light, .shead--light .eyebrow { color: var(--gold); }

.shead { display: grid; gap: 12px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.shead__title { font-size: var(--fs-xl); line-height: 1.6; letter-spacing: 0.08em; }
.shead__title::after {
  content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin-top: 24px;
}
.lead { font-size: var(--fs-md); line-height: 2.1; max-width: 34em; }
.note { font-family: var(--f-ui); font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.8; }
.note--light { color: rgba(248, 245, 239, 0.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--f-ui); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.1em; line-height: 1.4;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.btn--dark { background: var(--brown); color: var(--ivory); }
.btn--dark:hover { background: var(--black); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: #BC9F76; }
.btn--ivory { background: var(--ivory); color: var(--brown); }
.btn--ivory:hover { background: var(--white); }
.btn--glass { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn--line { background: var(--line-green); color: var(--white); }
.btn--line:hover { background: #05B34C; }
.btn.is-disabled { background: transparent; color: var(--ink-soft); border: 1px dashed var(--rule); cursor: not-allowed; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn__arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: width 0.35s var(--ease); }
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; transform: skewX(45deg); transform-origin: right;
}
.btn:hover .btn__arrow { width: 26px; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 50;
  color: var(--white);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.hdr.is-solid { background: rgba(248, 245, 239, 0.94); color: var(--brown); box-shadow: 0 1px 0 var(--rule); backdrop-filter: blur(8px); }
.hdr__in {
  height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1360px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
}
.logo {
  display: inline-flex; align-items: baseline; gap: 0.5em; text-decoration: none;
  font-family: var(--f-latin); font-size: 1.0625rem; letter-spacing: 0.24em; line-height: 1; white-space: nowrap;
}
.logo__b { font-style: italic; letter-spacing: 0.14em; }
.hdr__nav { display: none; }
.hdr__tools { display: flex; align-items: center; gap: 6px; }
.hdr__cta { display: none; }

.lang { display: inline-flex; font-family: var(--f-latin); font-size: 0.8125rem; letter-spacing: 0.1em; }
.lang__btn {
  background: none; border: 0; padding: 8px 6px; cursor: pointer; opacity: 0.55; min-height: 40px;
  transition: opacity 0.3s;
}
.lang__btn + .lang__btn { border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 35%, transparent); }
.lang__btn.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.menu-btn {
  width: 48px; height: 48px; display: grid; place-content: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn__bar { display: block; width: 24px; height: 1px; background: currentColor; transition: transform 0.4s var(--ease); }
.menu-btn.is-open .menu-btn__bar:nth-child(1) { transform: translateY(4px) rotate(20deg); }
.menu-btn.is-open .menu-btn__bar:nth-child(2) { transform: translateY(-4px) rotate(-20deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 45; background: var(--ivory); color: var(--brown);
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--hdr-h) + 24px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
}
.mmenu__nav { display: grid; }
.mmenu__nav a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-size: 1.125rem; letter-spacing: 0.1em; text-decoration: none;
  animation: mm-in 0.6s var(--ease) both; animation-delay: calc(var(--i) * 50ms);
}
.mmenu__ctas { display: grid; gap: 12px; }
@keyframes mm-in { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 1080px) {
  .hdr__nav { display: flex; gap: clamp(16px, 1.6vw, 28px); font-family: var(--f-ui); font-size: 0.8125rem; letter-spacing: 0.1em; }
  .hdr__nav a { text-decoration: none; padding: 8px 0; position: relative; }
  .hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform 0.4s var(--ease); }
  .hdr__nav a:hover::after { transform: scaleX(1); }
  .hdr__cta { display: inline-flex; margin-left: 10px; }
  .menu-btn, .mmenu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(92svh, 860px); display: flex; align-items: flex-end;
  padding-top: calc(var(--hdr-h) + 40px); padding-bottom: clamp(56px, 8vh, 96px);
  overflow: hidden; background: var(--brown);
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: -2;
}
.hero__media img { object-fit: cover; object-position: 50% 22%; animation: hero-zoom 14s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 30, 30, 0.38) 0%, rgba(30, 30, 30, 0) 22%),
    linear-gradient(0deg, rgba(30, 24, 20, 0.86) 0%, rgba(30, 24, 20, 0.55) 38%, rgba(30, 24, 20, 0) 68%);
}
.hero__in { display: grid; gap: 18px; }
.hero__in > * { animation: rise 1.4s var(--ease) both; }
.hero__in > :nth-child(2) { animation-delay: 0.15s; }
.hero__in > :nth-child(3) { animation-delay: 0.35s; }
.hero__in > :nth-child(4) { animation-delay: 0.5s; }
.hero__in > :nth-child(5) { animation-delay: 0.65s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero__eyebrow {
  font-family: var(--f-ui); font-size: var(--fs-sm); letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero__eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--gold); flex: none; }
@media (min-width: 768px) { .hero__eyebrow { letter-spacing: 0.18em; gap: 12px; } .hero__eyebrow::before { width: 28px; } }
.hero__title { font-size: var(--fs-hero); line-height: 1.5; letter-spacing: 0.06em; font-weight: 500; }
.hero__sub { font-size: var(--fs-md); line-height: 2; letter-spacing: 0.08em; opacity: 0.94; }
.hero__brand {
  font-family: var(--f-latin); font-size: 0.9375rem; letter-spacing: 0.42em; color: var(--gold);
  padding-top: 6px; display: grid; gap: 6px;
}
.hero__tagline { font-family: var(--f-mincho); font-size: var(--fs-sm); letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 10px; }
.hero__ctas .btn { flex: 1 1 220px; max-width: 340px; }
.photo-note {
  font-family: var(--f-ui); font-size: 0.6875rem; letter-spacing: 0.08em; line-height: 1.4;
}
.photo-note--hero {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 14px; color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero__media img { object-position: 50% 40%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(30, 30, 30, 0.35) 0%, rgba(30, 30, 30, 0) 20%),
      linear-gradient(90deg, rgba(30, 24, 20, 0.78) 0%, rgba(30, 24, 20, 0.45) 38%, rgba(30, 24, 20, 0) 65%);
  }
  .hero__in { max-width: calc(var(--wrap) + 48px); }
}

/* ---------- Concept ---------- */
.concept { background: var(--ivory); }
.concept__grid { display: grid; gap: 56px; }
/* 文章は中央揃えで、左右の余白を均等にする */
.concept__text { display: grid; gap: 40px; min-width: 0; justify-items: center; text-align: center; }
.concept__text .shead { margin-bottom: 0; justify-items: center; }
.concept__text .shead__title::after { margin-inline: auto; }
.concept__body { display: grid; gap: 1.4em; font-size: var(--fs-md); }
.letter {
  display: flex; flex-direction: row-reverse; justify-content: center; gap: 28px;
  width: 100%; max-width: 420px;
  padding: 36px 24px; background: var(--paper);
  border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft);
}
.letter__line {
  writing-mode: vertical-rl; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: 0.22em; line-height: 1.6; color: var(--brown);
}
:lang(en) .letter { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
:lang(en) .letter__line { writing-mode: horizontal-tb; font-family: var(--f-latin); font-style: italic; letter-spacing: 0.02em; }
.concept__closing { font-size: var(--fs-md); }
.concept__fig { margin: 0; }
.concept__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; }
@media (min-width: 900px) {
  .concept__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
  .letter { padding-inline: 40px; }
}

/* ---------- About ---------- */
.about { background: var(--white); padding-bottom: 0; }
.compare { display: grid; gap: 28px; margin-top: 48px; }
.compare__row { display: grid; gap: 10px; padding: 28px 24px; background: var(--ivory); min-width: 0; }
.compare__row--ours { background: var(--brown); color: var(--ivory); }
.compare__label { font-family: var(--f-ui); font-size: var(--fs-sm); letter-spacing: 0.14em; color: var(--ink-soft); }
.compare__label--ours { font-family: var(--f-latin); font-size: 1rem; letter-spacing: 0.24em; color: var(--gold); }
.compare__text { font-size: var(--fs-md); line-height: 1.9; }
.compare__text--ours { font-size: var(--fs-lg); }

.span { display: flex; align-items: center; height: 14px; margin-top: 10px; }
.span__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.span__line { flex: 1; height: 1px; }
.span--ahead .span__line { background: repeating-linear-gradient(90deg, var(--ink-soft) 0 4px, transparent 4px 9px); }
.span__arrow { width: 0; height: 0; border-left: 8px solid var(--ink-soft); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.span--past .span__dot { background: var(--gold); }
.span--past .span__line { background: var(--gold); height: 2px; }
.span__ends {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--f-ui); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--ink-soft); line-height: 1.5;
}
.compare__row--ours .span__ends { color: rgba(248, 245, 239, 0.7); }
@media (min-width: 900px) {
  .compare { grid-template-columns: 1fr 1fr; gap: 24px; }
  .compare__row { padding: 40px; }
}

.story { position: relative; margin: clamp(64px, 8vw, 112px) 0 0; isolation: isolate; color: var(--white); }
.story__img { width: 100%; height: clamp(380px, 62vw, 620px); object-fit: cover; object-position: 50% 45%; }
.story::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(0deg, rgba(30, 24, 20, 0.82) 0%, rgba(30, 24, 20, 0.3) 55%, rgba(30, 24, 20, 0.1) 100%);
}
.story__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 14px; justify-items: center; text-align: center;
  padding-block: 40px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.story__quote { font-size: var(--fs-xl); line-height: 1.7; letter-spacing: 0.12em; }
.story__tag { font-family: var(--f-ui); font-size: var(--fs-sm); letter-spacing: 0.2em; color: var(--gold); }

.years { padding-block: clamp(56px, 6vw, 88px) var(--sec-y); display: grid; gap: 24px; justify-items: center; text-align: center; }
.years__title { font-family: var(--f-ui); font-size: var(--fs-sm); letter-spacing: 0.2em; color: var(--ink-soft); }
.years__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 880px;
  border-top: 1px solid var(--rule);
}
.years__item {
  display: grid; gap: 4px; justify-items: center; padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
}
.years__item:not(:nth-child(3n + 1)) { border-left: 1px solid var(--rule); }
.years__num {
  font-family: var(--f-latin); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1; color: var(--gold-ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.years__num small { font-family: var(--f-ui); font-size: 0.6875rem; margin-left: 3px; letter-spacing: 0.06em; color: var(--ink-soft); }
.years__name { font-size: var(--fs-sm); letter-spacing: 0.12em; }
.years__item--extra {
  grid-column: 1 / -1; display: flex; justify-content: center; align-items: baseline; gap: 16px;
  border-left: 0 !important; background: var(--paper);
}
.years__note { font-size: var(--fs-sm); color: var(--ink-soft); }
@media (min-width: 900px) {
  .years__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .years__item:not(:nth-child(3n + 1)) { border-left: 0; }
  .years__item + .years__item { border-left: 1px solid var(--rule); }
}

/* ---------- Recommend ---------- */
.recommend { background: var(--ivory); }
.recommend__grid { display: grid; gap: 48px; }
.rcard { display: grid; gap: 24px; min-width: 0; }
.rcard__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rcard--partner .rcard__media img { object-position: 50% 30%; }
.rcard__body { display: grid; gap: 10px; }
.rcard__label { font-family: var(--f-latin); font-style: italic; color: var(--gold-ink); font-size: 1rem; line-height: 1.4; }
.rcard__title { font-size: var(--fs-lg); letter-spacing: 0.1em; line-height: 1.6; margin-bottom: 6px; }
.rcard__text { line-height: 2; }
.inbound {
  margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: grid; gap: 6px;
}
.inbound__label { font-family: var(--f-latin); font-style: italic; color: var(--gold-ink); line-height: 1.4; }
.inbound__text { font-size: var(--fs-sm); line-height: 1.9; }
@media (min-width: 768px) {
  .recommend__grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
  .rcard:nth-child(2) { margin-top: 96px; }
  .inbound { grid-template-columns: 180px 1fr; align-items: baseline; }
}

/* ---------- Experience ---------- */
.experience { background: var(--white); }
.exp__grid { display: grid; gap: 56px; }
.exp { display: grid; gap: 20px; min-width: 0; }
.exp__media { overflow: hidden; }
.exp__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.exp:hover .exp__media img { transform: scale(1.03); }
.exp--attire .exp__media img { object-position: 50% 30%; }
.exp__body { display: grid; gap: 8px; }
.exp__label { font-family: var(--f-latin); font-style: italic; color: var(--gold-ink); line-height: 1.4; }
.exp__title { font-size: var(--fs-lg); letter-spacing: 0.1em; line-height: 1.6; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.exp__text { line-height: 2; }
.deliv { margin-top: 12px; padding: 20px; background: var(--ivory); display: grid; gap: 10px; }
.deliv__title { font-family: var(--f-ui); font-size: var(--fs-xs); letter-spacing: 0.16em; color: var(--gold-ink); line-height: 1.5; }
.deliv__list { display: grid; }
.deliv__item { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule); }
.deliv__name { letter-spacing: 0.08em; line-height: 1.6; }
.deliv__desc { font-family: var(--f-ui); font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.7; }
.tag {
  font-family: var(--f-ui); font-size: var(--fs-xs); letter-spacing: 0.12em; line-height: 1;
  padding: 6px 10px; border: 1px solid var(--gold); color: var(--gold-ink);
}
@media (min-width: 768px) {
  .exp__grid { grid-template-columns: 1fr 1fr; gap: 72px clamp(32px, 4vw, 64px); }
}

/* ---------- Schedule ---------- */
.schedule__sub {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-family: var(--f-ui); font-size: var(--fs-sm); letter-spacing: 0.12em; color: rgba(248, 245, 239, 0.8);
  margin-bottom: 20px;
}
.schedule__sub span { color: var(--gold); }
.tbar { display: flex; gap: 3px; height: 44px; margin-bottom: 8px; }
.tbar__seg {
  flex-basis: 0; position: relative; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-latin); font-size: 0.9375rem; color: var(--brown); font-variant-numeric: lining-nums;
}
.tbar__seg--0 { background: var(--gold); }
.tbar__seg--1 { background: rgba(201, 174, 135, 0.45); color: var(--ivory); }
.tbar__seg--2 { background: #E2D2BA; }
.tbar__min::after { content: "′"; }
.tlist { display: grid; margin-top: 24px; border-top: 1px solid rgba(248, 245, 239, 0.18); }
.tlist__item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: 20px 0; border-bottom: 1px solid rgba(248, 245, 239, 0.18);
}
.tlist__time { font-family: var(--f-latin); font-size: 1.0625rem; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.tlist__title { font-size: var(--fs-md); letter-spacing: 0.08em; }
.tlist__dur { font-family: var(--f-ui); font-size: var(--fs-sm); color: rgba(248, 245, 239, 0.75); white-space: nowrap; }
.tlist__item--later { border-bottom-style: dashed; }
.tlist__item--later .tlist__time { font-family: var(--f-ui); font-size: var(--fs-sm); letter-spacing: 0.1em; }
.schedule .note { margin-top: 20px; }

/* ---------- Plan ---------- */
.plan { background: var(--ivory); }
.plan__frame {
  max-width: 820px; margin-inline: auto; text-align: center;
  display: grid; gap: 14px; justify-items: center;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 72px);
  border: 1px solid var(--gold-soft); outline: 1px solid var(--gold-soft); outline-offset: -10px;
  background: var(--paper);
}
.plan__frame .shead__title::after { margin-inline: auto; }
.plan__lead { font-size: var(--fs-lg); line-height: 1.9; letter-spacing: 0.08em; margin-top: 12px; }
.plan__text { color: var(--ink-soft); }
.plan__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; width: 100%; }
.plan__ctas .btn { flex: 1 1 220px; max-width: 320px; }

/* ---------- Flow ---------- */
.flow { background: var(--ivory); padding-top: 0; }
.steps { position: relative; display: grid; max-width: 760px; }
.steps::before {
  content: ""; position: absolute; left: 31px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 100%);
}
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step__num {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold);
  display: grid; place-content: center; justify-items: center; line-height: 1; position: relative; z-index: 1;
  font-family: var(--f-latin); font-size: 1.375rem; color: var(--brown); font-variant-numeric: lining-nums;
}
.step__num small { font-family: var(--f-ui); font-size: 0.5625rem; letter-spacing: 0.16em; color: var(--gold-ink); margin-bottom: 4px; }
.step:last-child .step__num { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.step:last-child .step__num small { color: var(--gold); }
.step__body { padding-top: 10px; display: grid; gap: 4px; }
.step__title { font-size: var(--fs-md); letter-spacing: 0.1em; line-height: 1.7; }
.step__text { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.9; font-family: var(--f-ui); }
@media (min-width: 900px) {
  .flow .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .flow .shead { position: sticky; top: calc(var(--hdr-h) + 48px); }
}

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq__list { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa__h { font-size: inherit; }
.qa__q {
  width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
  padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--f-mincho); font-size: var(--fs-base); line-height: 1.7; letter-spacing: 0.06em;
}
.qa__mark { font-family: var(--f-latin); font-size: 1.375rem; color: var(--gold-ink); line-height: 1; }
.qa__mark--a { color: var(--ink-soft); margin-right: 16px; float: left; }
.qa__icon { position: relative; width: 14px; height: 14px; justify-self: end; }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--brown);
  transition: transform 0.4s var(--ease);
}
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__inner { overflow: hidden; }
.qa__inner p {
  padding: 0 0 24px 0; font-family: var(--f-ui); font-size: var(--fs-sm); line-height: 2; color: var(--ink);
}
@media (min-width: 768px) { .qa__inner p { padding-left: 40px; } }
.qa:not(.is-open) .qa__a { visibility: hidden; transition: grid-template-rows 0.45s var(--ease), visibility 0s 0.45s; }

/* ---------- Contact ---------- */
.contact { background: var(--ivory); }
.contact__hero { position: relative; isolation: isolate; color: var(--white); overflow: hidden; }
.contact__img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; z-index: -2;
}
.contact__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(30, 24, 20, 0.85), rgba(30, 24, 20, 0.35)); }
.contact__head { display: grid; gap: 16px; padding-block: clamp(96px, 12vw, 160px) clamp(120px, 14vw, 180px); text-align: center; justify-items: center; }
.contact__title { font-size: var(--fs-xl); line-height: 1.7; letter-spacing: 0.1em; }
.contact__sub { font-size: var(--fs-base); line-height: 2; opacity: 0.92; max-width: 30em; }
.contact__body { margin-top: -88px; padding-bottom: var(--sec-y); position: relative; }
.contact__card {
  max-width: 720px; margin-inline: auto; background: var(--white);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px);
  box-shadow: 0 30px 60px -30px rgba(54, 44, 38, 0.35);
}
.line-box { display: grid; gap: 12px; text-align: center; }
.line-box__title { font-size: var(--fs-lg); letter-spacing: 0.1em; line-height: 1.6; }
.line-box__text { font-family: var(--f-ui); font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.8; }
.divider { display: flex; align-items: center; gap: 16px; margin: 36px 0 28px; color: var(--ink-soft); font-family: var(--f-latin); font-style: italic; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.form__title { font-size: var(--fs-md); letter-spacing: 0.1em; text-align: center; margin-bottom: 24px; }

.form { display: grid; gap: 22px; font-family: var(--f-ui); }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__label { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.08em; line-height: 1.5; padding: 0; }
.badge {
  font-size: 0.6875rem; letter-spacing: 0.08em; padding: 3px 8px; line-height: 1.3;
  border: 1px solid var(--rule); color: var(--ink-soft); font-weight: 400;
}
.badge--req { background: var(--brown); border-color: var(--brown); color: var(--ivory); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; font-size: 1rem; /* iOSの自動ズーム防止のため16px */
  color: var(--ink); background: var(--ivory); border: 1px solid transparent; border-bottom-color: var(--rule);
  border-radius: 0; padding: 14px 16px; line-height: 1.6; letter-spacing: 0.04em;
  transition: border-color 0.3s, background-color 0.3s;
}
.form textarea { resize: vertical; min-height: 160px; }
.form input::placeholder, .form textarea::placeholder { color: #A39689; }
.form input:focus, .form textarea:focus { outline: none; background: var(--white); border-color: var(--gold); }
.has-error input, .has-error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-sm); line-height: 1.6; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; flex: 1 1 140px; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; text-align: center;
  border: 1px solid var(--rule); font-size: var(--fs-sm); line-height: 1.5; letter-spacing: 0.06em;
  transition: all 0.3s var(--ease);
}
.choice.is-checked span { border-color: var(--brown); background: var(--brown); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; font-size: var(--fs-sm); line-height: 1.7; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.consent__box { flex: none; width: 22px; height: 22px; border: 1px solid var(--ink-soft); background: var(--white); position: relative; margin-top: 1px; }
.consent input:checked + .consent__box { background: var(--brown); border-color: var(--brown); }
.consent input:checked + .consent__box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--ivory); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.consent input:focus-visible + .consent__box { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.consent__text a { color: var(--gold-ink); text-underline-offset: 3px; }
.consent__text .badge { margin-left: 8px; vertical-align: 1px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  padding: 16px 18px; border: 1px solid var(--error); background: #FBF1EE; color: var(--error);
  font-size: var(--fs-sm); line-height: 1.8; display: grid; gap: 4px;
}
.form-alert:focus { outline: none; }
.btn--submit { margin-top: 6px; min-height: 60px; font-size: 1rem; letter-spacing: 0.2em; }
.form-done { text-align: center; padding: 32px 8px; display: grid; gap: 12px; font-family: var(--f-ui); font-size: var(--fs-sm); line-height: 1.9; }
.form-done:focus { outline: none; }
.form-done__title { font-family: var(--f-mincho); font-size: var(--fs-lg); letter-spacing: 0.1em; color: var(--brown); }

/* ---------- Footer ---------- */
.ftr {
  background: var(--black); color: rgba(248, 245, 239, 0.86);
  padding-top: 72px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  font-family: var(--f-ui); font-size: var(--fs-sm);
}
.ftr__in { display: grid; gap: 48px; }
.ftr__brand { display: grid; gap: 14px; }
.logo--footer { font-size: 1.375rem; color: var(--ivory); }
.ftr__tagline { font-family: var(--f-mincho); letter-spacing: 0.14em; color: var(--gold); }
.ftr__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ftr__h { font-family: var(--f-latin); font-style: italic; color: var(--gold); margin-bottom: 12px; font-size: 1rem; }
.ftr__list { display: grid; gap: 4px; }
.ftr__list a, .ftr__list .is-soon { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 0; text-decoration: none; letter-spacing: 0.08em; }
.ftr__list a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.ftr__list .is-soon { color: rgba(248, 245, 239, 0.5); }
.ftr__list .is-soon small { font-size: 0.6875rem; border: 1px solid rgba(248, 245, 239, 0.25); padding: 1px 6px; }
.ftr__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(248, 245, 239, 0.14); display: grid; gap: 6px; font-size: var(--fs-xs); color: rgba(248, 245, 239, 0.55); letter-spacing: 0.06em; }
.ftr__copy { font-family: var(--f-latin); letter-spacing: 0.14em; }
@media (min-width: 900px) {
  .ftr__in { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

/* ---------- Sticky CTA (smartphone) ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px;
  padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
  background: rgba(248, 245, 239, 0.94); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--rule);
  transform: translateY(110%); transition: transform 0.5s var(--ease);
}
.sticky.is-visible { transform: none; }
.sticky .btn { min-height: 52px; }
.sticky__main { flex: 1; }
.sticky__line { flex: none; padding: 0 18px; }
@media (min-width: 1080px) { .sticky { display: none; } }
@media (max-width: 1079px) { .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Sub pages ---------- */
.page { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 48px); padding-bottom: 96px; background: var(--ivory); }
.back { font-family: var(--f-ui); font-size: var(--fs-sm); color: var(--gold-ink); text-decoration: none; letter-spacing: 0.08em; }
.page__title { font-size: var(--fs-xl); letter-spacing: 0.1em; margin: 24px 0 32px; }
.page__intro { margin-bottom: 40px; }
.page__sec { padding-block: 24px; border-top: 1px solid var(--rule); font-family: var(--f-ui); font-size: var(--fs-sm); line-height: 2; }
.page__sec h2 { font-family: var(--f-mincho); font-size: var(--fs-md); letter-spacing: 0.08em; margin-bottom: 10px; }
.page__sec p + p { margin-top: 8px; }
.page__sec ul { display: grid; gap: 4px; }
.page__sec li { padding-left: 1.2em; position: relative; }
.page__sec li::before { content: ""; position: absolute; left: 0.2em; top: 0.95em; width: 6px; height: 1px; background: var(--gold); }
.page__date { margin-top: 32px; font-family: var(--f-ui); font-size: var(--fs-sm); text-align: right; }
.draft { margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--gold); background: var(--paper); font-family: var(--f-ui); font-size: var(--fs-sm); line-height: 1.8; }
.ph { background: rgba(201, 174, 135, 0.22); color: var(--brown); padding: 1px 6px; outline: 1px dashed var(--gold); }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.dl dt { color: var(--ink-soft); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.dl--company { font-family: var(--f-ui); font-size: var(--fs-sm); line-height: 2; border-top: 1px solid var(--rule); padding-top: 24px; }
