/* ── 白と墨。差し色は青銅ひとつ。余白で品を出す ─────────────────── */
:root {
  /* Meiryo UI 優先。無い環境は OS 標準の日本語 UI 書体へ落とす */
  --ui: "Meiryo UI", Meiryo, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --ivory:  #FCFBF9;
  --panel:  #F2EFEA;
  --panel-2:#E8E4DC;
  --ink:    #1A1917;
  --ink-2:  #55524C;
  --ink-3:  #8A867E;
  --bronze: #9A7B52;
  --pink:   #F5E5E7;   /* 淡い紅。面に敷く */
  --pink-2: #D9A2AB;   /* 効かせる紅 */
  --pink-3: #B87F8A;   /* 小さな文字に使える濃さ */
  --line:   #DEDAD2;
  --line-2: #C7C2B8;
  --ok:     #5E7A63;
}
* { box-sizing: border-box; }
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--ui);
  font-size: 15px; line-height: 2.05; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-family: var(--ui); font-weight: 400; text-wrap: balance; }
.lat { font-family: var(--ui); letter-spacing: .24em; }

.band {
  background: var(--ink); color: var(--ivory);
  font-size: 11.5px; letter-spacing: .05em; padding: 8px 20px; text-align: center;
}

/* ── 画面ごとのパネル。左に大きく余白を取る ─────────────────── */
.panel {
  position: relative;
  min-height: 100vh; scroll-snap-align: start;
  display: grid; align-content: center;
  padding: 96px clamp(24px, 10vw, 170px) 104px;
  border-bottom: 1px solid var(--line);
}
.inner { width: 100%; max-width: 880px; }

/* 細い縦罫が伸びる。動きはこれだけに絞る */
.rule {
  position: absolute; left: clamp(24px, 10vw, 170px); top: 0;
  width: 1px; height: 0; background: var(--line-2);
  transition: height 1.4s cubic-bezier(.2,.8,.3,1);
}
.panel.on .rule { height: 68px; }

.rv { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.3,1); }
.panel.on .rv { opacity: 1; transform: none; }
.panel.on .rv:nth-of-type(2) { transition-delay: .12s; }
.panel.on .rv:nth-of-type(3) { transition-delay: .24s; }
.panel.on .rv:nth-of-type(4) { transition-delay: .36s; }
.panel.on .rv:nth-of-type(5) { transition-delay: .46s; }

.eyebrow { font-size: 10.5px; letter-spacing: .38em; color: var(--bronze); margin: 0 0 26px; }
.big { font-size: clamp(27px, 4.4vw, 50px); line-height: 1.62; letter-spacing: .09em; }
.big em { font-style: normal; border-bottom: 2px solid var(--pink-2); padding-bottom: 4px; }
.sub { color: var(--ink-2); font-size: 15px; max-width: 50ch; margin: 26px 0 0; }
.hr { width: 46px; height: 2px; background: var(--pink-2); margin: 30px 0; }

/* ヒーローに淡い紅を敷く */
#p1::before {
  content: ""; position: absolute; z-index: -1;
  left: -10vw; bottom: -14vh;
  width: min(58vw, 680px); height: min(58vw, 680px);
  background: radial-gradient(closest-side, var(--pink), transparent 74%);
  opacity: .85; pointer-events: none;
}
#p1 { isolation: isolate; }

/* ── 1枚目 ─────────────────────────────────────────────────── */
#p1 { padding-top: 74px; }
#p1 .inner { max-width: 940px; }
.mark { font-size: 10.5px; letter-spacing: .5em; color: var(--ink-3); margin: 0 0 18px; }
.logo { font-size: clamp(52px, 11vw, 122px); line-height: .96; letter-spacing: .06em; }
.logo small { display: block; font-family: var(--ui); font-size: 14px; letter-spacing: .34em; color: var(--ink-2); margin-top: 20px; }
.lead1 { margin: 40px 0 0; font-size: 16px; color: var(--ink-2); max-width: 44ch; line-height: 2.1; }
.scrollcue { margin-top: 56px; font-size: 9.5px; letter-spacing: .32em; color: var(--ink-3); }
.scrollcue i { display: block; width: 1px; height: 50px; margin: 12px 0 0; background: var(--line-2); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.28); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ── 1枚目の立ち上がり ─────────────────────────────────────
   派手に動かさず、字間・1文字ずつの浮上・細い線の伸びだけで組む */
#p1 .mark {
  opacity: 0; letter-spacing: .95em;
  transition: opacity 1.1s ease, letter-spacing 1.7s cubic-bezier(.2,.8,.3,1);
}
#p1.lit .mark { opacity: 1; letter-spacing: .5em; }

.logo .ch {
  display: inline-block; opacity: 0; transform: translateY(32px);
  transition: opacity .9s ease, transform 1.15s cubic-bezier(.16,.86,.24,1);
}
#p1.lit .logo .ch { opacity: 1; transform: none; }

.logo small { opacity: 0; transition: opacity 1.2s ease .75s; }
#p1.lit .logo small { opacity: 1; }

/* 屋号の下に細い紅の線が伸びる */
.hair {
  display: block; height: 1px; width: 0; margin: 26px 0 0;
  background: var(--pink-2);
  transition: width 1.8s cubic-bezier(.2,.8,.3,1) .6s;
}
#p1.lit .hair { width: min(340px, 48%); }

#p1 .lead1, #p1 .scrollcue {
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.3,1);
}
#p1.lit .lead1 { transition-delay: 1s; }
#p1.lit .scrollcue { transition-delay: 1.3s; }
#p1.lit .lead1, #p1.lit .scrollcue { opacity: 1; transform: none; }

/* 1枚目の縦罫も、読み込み時に伸ばす */
#p1 .rule { height: 0; transition: height 1.5s cubic-bezier(.2,.8,.3,1) .25s; }
#p1.lit .rule { height: 68px; }

/* 淡い紅がゆっくり呼吸する */
#p1::before { animation: breathe 16s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0);      opacity: .76; }
  50%      { transform: scale(1.13) translate3d(2.5vw, -1vh, 0); opacity: 1; }
}

/* ── 悩み ──────────────────────────────────────────────────── */
.pains { list-style: none; margin: 34px 0 0; padding: 0; max-width: 640px; }
.pains li { padding: 19px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; gap: 22px; align-items: baseline; }
.pains li span { font-family: var(--ui); font-size: 11.5px; color: var(--pink-3); letter-spacing: .1em; }
.pains li { transition: background .3s, padding-left .3s; }
.pains li:hover { background: var(--pink); padding-left: 12px; }

/* ── 医療脱毛との違い ──────────────────────────────────────── */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1px; margin-top: 34px; background: var(--line); border: 1px solid var(--line); }
.col { background: var(--ivory); padding: 28px 26px; }
.col.us { background: var(--pink); }
.col h3 { font-size: 19px; letter-spacing: .1em; margin-bottom: 3px; }
.col .who { font-size: 10.5px; letter-spacing: .22em; color: var(--ink-3); margin: 0 0 18px; }
.col ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.col li { padding: 7px 0 7px 20px; position: relative; line-height: 1.9; }
.col li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 1px; background: var(--line-2); }
.col.us li::before { background: var(--pink-2); }
.col.us li { color: var(--ink); }

/* ── 料金シミュレーター ────────────────────────────────────── */
.sim { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; margin-top: 32px; align-items: start; }
.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.part {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--ivory); padding: 12px 13px; font-size: 13.5px;
  transition: background .22s;
}
.part:hover { background: var(--panel); }
.part input { accent-color: var(--pink-3); margin: 0; }
.part.sel { background: var(--pink); }
.part.sel b { color: var(--pink-3); }
.part b { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }

.times { display: flex; gap: 1px; margin: 22px 0 0; background: var(--line); border: 1px solid var(--line); }
.time {
  flex: 1; font: inherit; font-size: 13.5px; padding: 13px 0; cursor: pointer;
  background: var(--ivory); color: var(--ink-2); border: none;
  transition: background .22s, color .22s;
}
.time[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }

.total { border: 1px solid var(--pink-2); padding: 30px 26px; position: sticky; top: 26px; background: var(--ivory); }
.total .v { color: var(--ink); }
.total .k { font-size: 10.5px; letter-spacing: .26em; color: var(--ink-3); }
.total .v { font-family: var(--ui); font-size: 42px; line-height: 1.24; letter-spacing: .01em; font-variant-numeric: tabular-nums; margin: 6px 0 0; }
.total dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 22px 0 0; font-size: 12.5px; }
.total dt { color: var(--ink-3); } .total dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.total .sep { height: 1px; background: var(--line); margin: 18px 0; }
.total .fine { font-size: 11.5px; color: var(--ink-3); line-height: 1.85; margin: 0; }

/* ── 流れ ──────────────────────────────────────────────────── */
.steps { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: s; max-width: 700px; }
.steps li { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 22px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--ui); font-size: 14px; color: var(--pink-3); letter-spacing: .1em; padding-top: 4px;
}
.steps h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: .08em; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ── 問い合わせ ────────────────────────────────────────────── */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 18px 24px; max-width: 760px; margin-top: 30px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f > label { font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); }
.f .req { color: var(--bronze); }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f textarea, .f select {
  font: inherit; font-size: 14px; padding: 11px 12px; width: 100%;
  background: var(--ivory); color: var(--ink); border: none; border-bottom: 1px solid var(--line-2);
}
.f select { border: 1px solid var(--line-2); }
.f textarea { min-height: 116px; resize: vertical; border: 1px solid var(--line-2); }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--bronze); }
.f .err { font-size: 11.5px; color: var(--bronze); min-height: 1.15em; }
.f.bad input, .f.bad textarea, .f.bad select { border-color: var(--bronze); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.consent input { accent-color: var(--bronze); margin-top: 6px; }
.submit {
  font: inherit; font-size: 14.5px; letter-spacing: .16em; padding: 15px 48px; margin-top: 6px;
  background: var(--ink); color: var(--ivory); border: none; cursor: pointer;
  transition: background .24s, transform .18s;
}
.submit:hover { background: var(--pink-2); color: var(--ink); transform: translateY(-1px); }
.sent { display: none; margin-top: 18px; padding: 13px 15px; border: 1px solid var(--ok); background: var(--panel); font-size: 13px; max-width: 760px; }
.sent.on { display: block; }

/* ── 実装メモ ──────────────────────────────────────────────── */
.tech { padding: 46px clamp(24px, 10vw, 170px) 50px; border-top: 1px solid var(--line); }
.tech .inner { max-width: 880px; }
.tech h2 { font-size: 12px; letter-spacing: .22em; color: var(--ink-3); margin-bottom: 20px; }
.techgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 22px 30px; }
.techgrid dt { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.techgrid dd { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.techgrid .m { font-family: var(--ui); letter-spacing: .04em; color: var(--pink-3); }

/* ── 法令表記 ──────────────────────────────────────────────── */
.legal { background: var(--panel); padding: 62px clamp(24px, 10vw, 170px) 82px; }
.legal .inner { max-width: 880px; }
.legal h2 { font-size: 17px; letter-spacing: .18em; margin-bottom: 22px; }
.legal dl { display: grid; grid-template-columns: 156px minmax(0,1fr); margin: 0; font-size: 13px; }
.legal dt, .legal dd { padding: 12px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.legal dt { color: var(--ink-3); font-size: 12.5px; }
.legal .note { font-size: 12px; color: var(--ink-2); margin: 26px 0 0; line-height: 1.95; }

/* ── 進捗ドットとページ上部へ ─────────────────────────────── */
.dots { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 5; display: grid; gap: 15px; }
.dots a { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background .34s, transform .34s; }
.dots a.on { background: var(--pink-2); transform: scale(1.7); }

.pagetop {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ink); color: var(--ivory); text-decoration: none;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .34s, transform .34s, background .24s;
}
.pagetop.on { opacity: 1; pointer-events: auto; transform: none; }
.pagetop:hover { background: var(--pink-2); color: var(--ink); }
.pagetop b { font-size: 15px; line-height: 1; }
.pagetop span { font-size: 7.5px; letter-spacing: .12em; margin-top: 3px; }

@media (max-width: 900px) {
  .sim { grid-template-columns: 1fr; gap: 26px; }
  .total { position: static; }
  .dots { display: none; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border-bottom: none; padding-bottom: 0; }
  .panel { padding: 78px 24px 84px; min-height: auto; }
  .rule { left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; scroll-behavior: auto; }
  .scrollcue i { animation: none; }
  .rv { opacity: 1 !important; transform: none !important; transition: none; }
  .panel .rule { height: 68px; transition: none; }
  .submit:hover, .pagetop:hover { transform: none; }
  #p1 .mark, .logo .ch, .logo small, #p1 .lead1, #p1 .scrollcue {
    opacity: 1 !important; transform: none !important; transition: none;
  }
  #p1 .mark { letter-spacing: .5em; }
  .hair { width: min(340px, 48%); transition: none; }
  #p1::before { animation: none; }
}
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
