/* ============================================
   面影の灯 ― 人生を、未来へ受け継ぐアーカイブ
   v2: 白磁と墨。箱をやめて、余白で区切る。
   ============================================ */
:root {
  --bg: #fcfbf8;
  --ink: #1f1d1a;
  --ink-soft: #6d675e;
  --flame: #b78a3f;
  --hairline: rgba(31, 29, 26, .14);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  line-height: 2.1;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 5vw;
  transition: background .5s ease, padding .5s ease;
}
.site-header.is-scrolled {
  background: rgba(252, 251, 248, .92);
  backdrop-filter: blur(10px);
  padding: 14px 5vw;
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .flame-mark { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; }
.brand .b-name { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .3em; }
.hero-on .site-header:not(.is-scrolled) .b-name { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.3); }

.global-nav ul { display: flex; gap: 34px; list-style: none; align-items: center; }
.global-nav a { font-size: .8rem; letter-spacing: .18em; font-weight: 400; position: relative; padding: 4px 0; }
.global-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1px;
  background: currentColor; transition: width .4s ease, left .4s ease;
}
.global-nav a:not(.nav-cta):hover::after { width: 100%; left: 0; }
.hero-on .site-header:not(.is-scrolled) .global-nav a { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.nav-cta { border: 1px solid currentColor; padding: 10px 26px !important; letter-spacing: .22em; border-radius: 6px; transition: background .4s ease, color .4s ease, border-color .4s ease; }
.site-header.is-scrolled .nav-cta { border-color: var(--ink); }
.site-header.is-scrolled .nav-cta:hover { background: var(--ink); color: var(--bg); }
.hero-on .site-header:not(.is-scrolled) .nav-cta:hover { background: rgba(255,255,255,.92); color: var(--ink); text-shadow: none; }

.nav-toggle { display: none; }

/* ---------- ヒーロー（クロスフェード） ---------- */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 2.4s ease, transform 8s linear;
}
.hero-slide.on { opacity: 1; transform: scale(1.0); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(22, 19, 15, .38);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 0 6vw; }
.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  letter-spacing: .3em; line-height: 1.9; font-weight: 500;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  opacity: 0; animation: heroRise 2s ease .8s forwards;
}
.hero .h-sub {
  margin-top: 26px; font-size: clamp(.82rem, 1.5vw, .95rem);
  letter-spacing: .28em; font-weight: 300; color: rgba(255,255,255,.88);
  opacity: 0; animation: heroRise 2s ease 1.6s forwards;
}
.hero .h-cta {
  display: inline-block; margin-top: 54px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.85); color: #fff;
  padding: 16px 58px; font-size: .84rem; letter-spacing: .3em;
  transition: background .5s ease, color .5s ease;
  opacity: 0; animation: heroRise 2s ease 2.4s forwards;
}
.hero .h-cta:hover { background: rgba(255,255,255,.94); color: var(--ink); }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* left:50%固定の要素用（translateX(-50%)を保ったまま浮き上がる） */
@keyframes heroRiseCentered { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.75); font-size: .6rem; letter-spacing: .4em;
  opacity: 0; animation: heroRiseCentered 2s ease 3s forwards;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 52px; margin: 10px auto 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.8), transparent);
  animation: heroLine 2.6s ease infinite;
}
@keyframes heroLine { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 共通 ---------- */
section { padding: 150px 6vw; }
.sec-inner { max-width: 1060px; margin: 0 auto; }
.sec-label {
  display: block; text-align: center;
  font-size: .64rem; letter-spacing: .5em; color: var(--flame);
  margin-bottom: 30px; font-weight: 400;
}
.sec-title {
  text-align: center; font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: .26em; line-height: 1.9; margin-bottom: 26px;
}
.sec-lead { text-align: center; font-size: .9rem; color: var(--ink-soft); letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.rv1 { transition-delay: .15s; } .rv2 { transition-delay: .3s; } .rv3 { transition-delay: .45s; }

/* ---------- ステートメント ---------- */
.statement { padding: 190px 6vw; text-align: center; }
.st-line {
  font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.9rem);
  letter-spacing: .22em; line-height: 2.4; color: var(--ink);
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.st-line + .st-line { margin-top: 66px; }
.st-line.is-visible { opacity: 1; transform: none; }
.st-line .thin { color: var(--ink-soft); font-size: .78em; }
.st-line .flame { color: var(--flame); }

/* ---------- 作品例 ---------- */
.works { padding-top: 0; }
/* 流れ→作品例の間隔（作品例が中盤に移動したため上余白を確保） */
.flow + .works { padding-top: 40px; }
.works-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.work {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4;
}
.work .w-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(var(--sz, 1));
  transition: transform 1.6s ease;
}
.work:hover .w-bg { transform: scale(calc(var(--sz, 1) + .05)); }
.work::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,19,15,.62), transparent 55%);
  transition: background .6s ease;
}
.work:hover::after { background: linear-gradient(to top, rgba(22,19,15,.75), rgba(22,19,15,.15)); }
.work .w-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 28px; color: #fff;
}
.work .w-text h3 { font-size: 1.02rem; letter-spacing: .16em; line-height: 1.9; }
.work .w-text p { font-size: .72rem; letter-spacing: .12em; color: rgba(255,255,255,.82); margin-top: 6px; font-weight: 300; }
.work .w-more {
  display: inline-block; margin-top: 14px; font-size: .66rem; letter-spacing: .3em;
  border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 3px;
  opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease;
}
.work:hover .w-more { opacity: 1; transform: none; }
.works .fiction-note {
  text-align: center; margin-top: 40px; font-size: .7rem; color: var(--ink-soft); letter-spacing: .14em;
}

/* ---------- 選ばれる理由 ---------- */
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; max-width: 1040px; margin: 0 auto; }
.reason { text-align: center; position: relative; }
.reason:nth-child(2) { transform: translateY(56px); }
@media (max-width: 900px) { .reason:nth-child(2) { transform: none; } }
.reason .r-no {
  font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 5rem); font-weight: 500;
  color: rgba(31,29,26,.07); line-height: 1; display: block; margin-bottom: -.3em;
  letter-spacing: 0;
}
.reason .r-img {
  aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 34px; position: relative;
  border-radius: 2px; box-shadow: 0 24px 60px -20px rgba(31,29,26,.28);
}
.reason .r-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(31,29,26,0) 55%, rgba(31,29,26,.18) 100%);
  opacity: 0; transition: opacity .8s ease;
}
.reason:hover .r-img::after { opacity: 1; }
.reason .r-img img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.88);
  transform: scale(var(--sz, 1));
  transition: transform 1.8s cubic-bezier(.16,1,.3,1);
}
.reason:hover .r-img img { transform: scale(calc(var(--sz, 1) + .07)); }
.reason h3 {
  font-size: 1.6rem; letter-spacing: .5em; text-indent: .5em; margin-bottom: 18px;
  opacity: 0; transform: translateY(14px); transition: opacity .9s ease .1s, transform .9s ease .1s;
}
.reason.is-visible h3 { opacity: 1; transform: none; }
.reason p {
  font-size: .84rem; color: var(--ink-soft); letter-spacing: .08em; line-height: 2.3;
  max-width: 280px; margin: 0 auto;
  opacity: 0; transform: translateY(14px); transition: opacity .9s ease .25s, transform .9s ease .25s;
}
.reason.is-visible p { opacity: 1; transform: none; }
.reasons-line {
  max-width: 1040px; margin: 0 auto 90px; height: 1px; background: var(--hairline);
  position: relative; overflow: hidden;
}
.reasons-line::after {
  content: ""; position: absolute; inset: 0; background: var(--flame);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.16,1,.3,1);
}
.reasons-line.is-visible::after { transform: scaleX(1); }

/* ---------- 流れ（sticky演出） ---------- */
.flow { background: #f6f4ee; }
.flow-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; max-width: 1060px; margin: 0 auto; }
.flow-visual { position: relative; }
.flow-visual-inner { position: sticky; top: 120px; aspect-ratio: 4 / 5; overflow: hidden; }
.flow-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease;
}
.flow-img.on { opacity: 1; }
.flow-steps-col { display: flex; flex-direction: column; }
.flow-step { padding: 11vh 0; border-bottom: 1px solid var(--hairline); }
.flow-step:last-child { border-bottom: none; }
.flow-step .f-no { font-size: .64rem; letter-spacing: .44em; color: var(--flame); display: block; margin-bottom: 16px; }
.flow-step h3 { font-size: 1.3rem; letter-spacing: .2em; margin-bottom: 16px; line-height: 1.9; }
.flow-step p { font-size: .86rem; color: var(--ink-soft); letter-spacing: .08em; }
.flow-step .f-mobile-img { display: none; }
.flow-note { text-align: center; margin-top: 80px; font-size: .82rem; color: var(--ink-soft); letter-spacing: .12em; }
.flow-note strong { color: var(--ink); font-weight: 500; }

/* ---------- 料金（松竹梅＋アドオン） ---------- */
#price {
  background: linear-gradient(180deg, var(--bg) 0%, #f5f0e6 16%, #f5f0e6 84%, var(--bg) 100%);
}
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  padding: 58px 34px 46px; text-align: center; cursor: pointer;
  position: relative;
  background: #fff; border: 1px solid var(--hairline);
  box-shadow: 0 8px 32px rgba(31,29,26,.05);
  transition: background .5s ease, box-shadow .5s ease, transform .5s ease;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 8px;
}
.plan::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 2px; background: var(--flame); opacity: .5;
  border-radius: 0 0 2px 2px;
}
.plan:hover { box-shadow: 0 16px 44px rgba(31,29,26,.1); transform: translateY(-4px); }
.plan.recommend {
  background: linear-gradient(180deg, #fff 0%, #fbf6ec 100%);
  border-color: rgba(183,138,63,.45);
  box-shadow: 0 14px 44px rgba(183,138,63,.14);
}
.plan.recommend::before { width: calc(100% - 2px); opacity: .75; }
.plan.selected { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.plan .p-rank { font-size: .62rem; letter-spacing: .5em; color: var(--flame); display: block; margin-bottom: 20px; }
.plan .p-pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-size: .62rem; letter-spacing: .26em;
  padding: 6px 22px; white-space: nowrap; font-weight: 400;
}
.plan h3 { font-size: 1.22rem; letter-spacing: .16em; margin-bottom: 26px; white-space: nowrap; }
.plan .p-price { font-family: var(--serif); font-size: 1.9rem; letter-spacing: .06em; }
.plan .p-price small { font-size: .58rem; color: var(--ink-soft); letter-spacing: .14em; font-family: var(--sans); }
.plan .p-desc { margin: 24px 0 28px; width: 100%; font-size: .78rem; color: var(--ink-soft); line-height: 2.1; letter-spacing: .06em; min-height: 4.2em; }
.plan ul { list-style: none; text-align: left; display: inline-block; flex: 1; }
.plan li { font-size: .78rem; padding: 7px 0 7px 22px; position: relative; letter-spacing: .05em; }
.plan li::before { content: "―"; position: absolute; left: 0; color: var(--flame); }
.plan li.p-opt { color: var(--ink-soft); font-size: .72rem; margin-top: 6px; }
.plan li.p-opt::before { content: "＋"; font-size: .7rem; top: 8px; }
.plan .p-select {
  display: inline-block; margin-top: auto; border-radius: 6px; font-size: .72rem; letter-spacing: .3em;
  border: 1px solid var(--ink); padding: 11px 36px; transition: background .4s ease, color .4s ease;
}
.plan.selected .p-select, .plan:hover .p-select { background: var(--ink); color: var(--bg); }

/* シミュレーター */
.sim { max-width: 720px; margin: 90px auto 0; }
.sim-head { text-align: center; font-size: .68rem; letter-spacing: .44em; color: var(--flame); margin-bottom: 50px; }
.sim-row { padding: 30px 0; border-bottom: 1px solid var(--hairline); }
.sim-row .s-label { font-size: .86rem; letter-spacing: .18em; margin-bottom: 18px; display: flex; align-items: baseline; gap: 14px; }
.sim-row .s-label small { font-size: .68rem; color: var(--ink-soft); letter-spacing: .08em; }
.sim-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.sim-opt {
  border: 1px solid var(--hairline); padding: 11px 24px; cursor: pointer; border-radius: 6px;
  font-size: .8rem; letter-spacing: .1em; background: transparent;
  font-family: var(--sans); font-weight: 300; color: var(--ink);
  transition: border-color .3s ease, background .3s ease;
}
.sim-opt:hover { border-color: var(--ink); }
.sim-opt.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.sim-opt .add { font-size: .68rem; opacity: .75; margin-left: 8px; }
.sim-warning {
  margin-top: 18px; padding: 20px 24px; border-radius: 4px; font-size: .76rem; line-height: 2.1;
  color: var(--ink-soft); background: rgba(183,138,63,.06);
  border-left: 2px solid var(--flame); display: none;
}
.sim-warning.show { display: block; }
.sim-warning strong { color: var(--ink); font-weight: 500; }
.sim-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 40px 0 10px;
}
.sim-total .t-label { font-size: .8rem; letter-spacing: .3em; }
.sim-total .t-price { font-family: var(--serif); font-size: 2.2rem; letter-spacing: .04em; }
.sim-total .t-price small { font-size: .6rem; color: var(--ink-soft); font-family: var(--sans); letter-spacing: .14em; }
.sim-note { font-size: .7rem; color: var(--ink-soft); letter-spacing: .08em; line-height: 2; }
.sim-cta-row { text-align: center; margin-top: 46px; }
.sim-cta {
  display: inline-block; background: var(--ink); color: var(--bg); border-radius: 6px;
  padding: 18px 74px; font-size: .84rem; letter-spacing: .3em;
  transition: opacity .4s ease;
}
.sim-cta:hover { opacity: .82; }

/* ---------- 約束 ---------- */
.promise { background: #1f1d1a; color: #e9e4da; }
.promise .sec-label { color: #c9a45e; }
.promise .sec-title { color: #f3efe6; }
.promise-list { max-width: 700px; margin: 70px auto 0; }
.promise-item { display: flex; gap: 34px; padding: 34px 0; border-bottom: 1px solid rgba(233,228,218,.16); align-items: baseline; }
.promise-item:last-child { border-bottom: none; }
.promise-item .no { font-family: var(--serif); color: #c9a45e; font-size: 1.05rem; flex-shrink: 0; }
.promise-item h3 { font-size: 1rem; letter-spacing: .2em; margin-bottom: 10px; color: #f3efe6; }
.promise-item p { font-size: .8rem; color: #b6afa2; letter-spacing: .08em; line-height: 2.1; font-weight: 300; }

/* ---------- 声（横スライド） ---------- */
.voices-rail {
  display: flex; gap: 3px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -6vw; padding: 0 6vw;
}
.voices-rail::-webkit-scrollbar { display: none; }
.voice {
  flex: 0 0 min(560px, 86vw); scroll-snap-align: center;
  background: #f6f4ee; padding: 70px 60px;
}
.voice p { font-family: var(--serif); font-size: 1rem; line-height: 2.6; letter-spacing: .1em; }
.voice .v-who { margin-top: 34px; display: flex; align-items: center; gap: 16px; }
.voice .v-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: saturate(.85); }
.voice .v-who span { font-size: .72rem; color: var(--ink-soft); letter-spacing: .1em; line-height: 1.9; }
.voices-nav { display: flex; justify-content: center; gap: 20px; margin-top: 44px; }
.voices-nav button {
  width: 46px; height: 46px; border: 1px solid var(--hairline); background: transparent; border-radius: 6px;
  cursor: pointer; font-size: .9rem; color: var(--ink);
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.voices-nav button:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.voice-note { text-align: center; margin-top: 26px; font-size: .68rem; color: var(--ink-soft); letter-spacing: .1em; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 28px 44px 28px 4px;
  font-size: .9rem; letter-spacing: .1em; font-weight: 400; position: relative; line-height: 1.9;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "＋"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--flame); font-weight: 300; transition: transform .3s ease;
}
.faq-list details[open] summary::after { content: "－"; }
.faq-list .a-body { padding: 0 4px 30px; font-size: .82rem; color: var(--ink-soft); letter-spacing: .06em; line-height: 2.2; }

/* ---------- 相談・フォーム ---------- */
.contact { background: #f6f4ee; }
.contact-form { max-width: 620px; margin: 70px auto 0; }
.contact-form .row { margin-bottom: 30px; }
.contact-form label { display: block; font-size: .74rem; letter-spacing: .24em; margin-bottom: 10px; color: var(--ink); }
.contact-form label .req { color: var(--flame); font-size: .62rem; margin-left: 10px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 15px 4px; border: none; border-bottom: 1px solid var(--hairline);
  background: transparent; color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: .95rem; letter-spacing: .04em;
  transition: border-color .3s ease; border-radius: 0;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-bottom-color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .submit-row { text-align: center; margin-top: 50px; }
.contact-form button[type="submit"] {
  background: var(--ink); color: var(--bg); border: none; cursor: pointer; border-radius: 6px;
  padding: 18px 80px; font-size: .84rem; letter-spacing: .34em; font-family: var(--sans);
  transition: opacity .4s ease;
}
.contact-form button[type="submit"]:hover { opacity: .82; }
.contact-form .f-note { text-align: center; margin-top: 22px; font-size: .68rem; color: var(--ink-soft); letter-spacing: .08em; line-height: 2; }
.contact-form .f-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-thanks { display: none; text-align: center; padding: 60px 20px; }
.form-thanks.show { display: block; }
.form-thanks h3 { font-size: 1.15rem; letter-spacing: .26em; margin-bottom: 16px; }
.form-thanks p { font-size: .84rem; color: var(--ink-soft); }

/* ---------- フッター ---------- */
.site-footer { padding: 90px 6vw 40px; text-align: center; }
.site-footer .f-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .4em; }
.site-footer .f-tag { font-size: .66rem; letter-spacing: .3em; color: var(--ink-soft); margin-top: 12px; }
.site-footer .f-links { display: flex; justify-content: center; gap: 34px; margin: 44px 0; flex-wrap: wrap; }
.site-footer .f-links a { font-size: .72rem; letter-spacing: .16em; color: var(--ink-soft); transition: color .3s ease; }
.site-footer .f-links a:hover { color: var(--ink); }
.site-footer .f-company { font-size: .7rem; color: var(--ink-soft); letter-spacing: .1em; line-height: 2.2; }
.site-footer .f-legal {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--hairline);
  font-size: .62rem; color: var(--ink-soft); letter-spacing: .06em; line-height: 2;
}

/* ---------- 追従CTA（モバイル） ---------- */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(252,251,248,.96); border-top: 1px solid var(--hairline);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
}
.sticky-cta a {
  display: block; background: var(--ink); color: var(--bg); text-align: center; border-radius: 6px;
  padding: 15px 0; font-size: .82rem; letter-spacing: .3em;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  section { padding: 100px 6vw; }
  .statement { padding: 130px 6vw; }
  .st-line + .st-line { margin-top: 46px; }
  .works-list { grid-template-columns: 1fr; }
  .work { aspect-ratio: 4 / 3; }
  .reasons-grid { grid-template-columns: 1fr; gap: 70px; max-width: 440px; }
  .flow-wrap { grid-template-columns: 1fr; gap: 0; }
  .flow-visual { display: none; }
  .flow-step { padding: 44px 0; }
  .flow-step .f-mobile-img { display: block; margin-top: 24px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
  .plans { grid-template-columns: 1fr; gap: 26px; }
  .plan.recommend { order: -1; }
  .voice { padding: 46px 30px; }

  .nav-toggle {
    display: block; z-index: 300; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; position: relative;
  }
  .nav-toggle span { position: absolute; left: 8px; width: 24px; height: 1px; background: var(--ink); transition: all .35s ease; }
  .hero-on .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
  body.nav-open .nav-toggle span { background: var(--ink); }
  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 20px; }
  .nav-toggle span:nth-child(3) { top: 26px; }
  body.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
  .global-nav {
    position: fixed; inset: 0; z-index: 200; background: rgba(252,251,248,.98);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .4s ease;
  }
  body.nav-open .global-nav { opacity: 1; pointer-events: all; }
  .global-nav ul { flex-direction: column; gap: 34px; }
  .global-nav a { color: var(--ink) !important; text-shadow: none !important; font-size: 1rem; }

  .sticky-cta { display: block; }
  body { padding-bottom: 64px; }
}
/* ---------- Apple風スクロール演出 ---------- */
/* 文字スクラブ：スクロールに合わせて一文字ずつ墨色が追いつく */
.statement.js-scrub .st-line { opacity: 1; transform: none; transition: none; }
.st-line .ch { color: rgba(31,29,26,.13); transition: color .5s ease; }
.st-line .ch.on { color: var(--ink); }
.st-line .flame .ch { color: rgba(183,138,63,.2); }
.st-line .flame .ch.on { color: var(--flame); }

/* モバイル流れ写真のズーム用クリップ */
.zoom-clip { display: none; }
@media (max-width: 860px) {
  .zoom-clip { display: block; overflow: hidden; margin-top: 24px; }
  .zoom-clip .f-mobile-img { margin-top: 0; transform: scale(var(--sz, 1)); }
}

/* 料金カード：順に立ち上がる */
.plans .plan { opacity: 0; transform: translateY(30px); }
.plans.is-visible .plan {
  opacity: 1; transform: translateY(0);
  transition: opacity 1.1s ease, transform 1.1s ease, box-shadow .5s ease;
}
.plans.is-visible .plan:nth-child(2) { transition-delay: .14s, .14s, 0s; }
.plans.is-visible .plan:nth-child(3) { transition-delay: .28s, .28s, 0s; }
.plans.is-visible .plan:hover {
  transform: translateY(-4px);
  transition: transform .5s ease, box-shadow .5s ease; transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .st-line { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity .5s ease; transform: none; }
  .hero h1, .hero .h-sub, .hero .h-cta, .hero-scroll { animation-duration: .01s; animation-delay: 0s; }
  .st-line .ch, .st-line .flame .ch { color: inherit; transition: none; }
  .plans .plan { opacity: 1; transform: none; }
}

/* ---------- カスタマイズページ ---------- */
.customize-main { max-width: 760px; margin: 0 auto; padding: 150px 6vw 60px; }
.plan-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.plan-tab {
  position: relative; background: transparent; border: none; cursor: pointer; border-radius: 8px;
  border-left: 1px solid var(--hairline); padding: 30px 10px 26px;
  font-family: var(--sans); color: var(--ink);
  transition: background .4s ease, box-shadow .4s ease;
}
.plan-tab:first-child { border-left: none; }
.plan-tab:hover { background: rgba(183,138,63,.05); }
.plan-tab.on { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.plan-tab .pt-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-size: .56rem; letter-spacing: .18em;
  padding: 4px 14px; white-space: nowrap; font-weight: 400;
}
.plan-tab .pt-name { display: block; font-family: var(--serif); font-size: 1.05rem; letter-spacing: .22em; }
.plan-tab .pt-price { display: block; margin-top: 8px; font-size: .78rem; color: var(--ink-soft); letter-spacing: .06em; }
.plan-desc { text-align: center; font-size: .82rem; color: var(--ink-soft); letter-spacing: .08em; padding: 26px 0 14px; }

.sim-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(252, 251, 248, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
}
.sim-bar-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 5vw calc(16px + env(safe-area-inset-bottom));
}
.sim-bar .sb-left { min-width: 0; }
.sim-bar .sb-summary {
  display: block; font-size: .64rem; color: var(--ink-soft); letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.sim-bar .sb-price { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em; }
.sim-bar .sb-price small { font-size: .58rem; color: var(--ink-soft); font-family: var(--sans); }
.sim-bar .sim-cta { padding: 15px 40px; white-space: nowrap; flex-shrink: 0; }
body.has-simbar { padding-bottom: 120px; }
@media (max-width: 600px) {
  .plan-tab .pt-name { font-size: .9rem; letter-spacing: .12em; }
  .plan-tab .pt-badge { font-size: .5rem; padding: 3px 8px; }
  .sim-bar .sim-cta { padding: 13px 22px; font-size: .74rem; letter-spacing: .18em; }
  .sim-bar .sb-price { font-size: 1.2rem; }
}

/* ---------- 流入チャネル（電話・LINE・Instagram・Facebook） ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 620px; margin: 0 auto 64px; }
.channel {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 12px 24px; border: 1px solid var(--hairline); border-radius: 8px;
  background: #fff; transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.channel:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 32px -18px rgba(31,29,26,.3); }
.channel .c-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--hairline);
  transition: background .35s ease, border-color .35s ease;
}
.channel .c-icon svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; }
.channel:hover .c-icon { background: var(--ink); border-color: var(--ink); }
.channel:hover .c-icon svg { stroke: var(--bg); }
.channel.channel-line:hover .c-icon { background: #06c755; border-color: #06c755; }
.channel.channel-instagram:hover .c-icon { background: #d6249f; border-color: #d6249f; }
.channel.channel-facebook:hover .c-icon { background: #1877f2; border-color: #1877f2; }
.channel .c-label { font-size: .78rem; letter-spacing: .12em; }
.channel .c-sub { font-size: .62rem; color: var(--ink-soft); letter-spacing: .08em; }
@media (max-width: 640px) {
  .channels { grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 420px; }
  .channel { padding: 22px 10px 18px; }
  .channel:last-child { grid-column: 1 / -1; }
}

/* ---------- 法務ページ ---------- */
.legal-main { max-width: 780px; margin: 0 auto; padding: 140px 6vw 100px; }
.legal-main > h1 { font-size: 1.5rem; letter-spacing: .2em; text-align: center; margin-bottom: 64px; line-height: 1.9; }
.legal-block { margin-bottom: 80px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block h2 { font-size: 1.2rem; letter-spacing: .18em; border-bottom: 1px solid var(--hairline); padding-bottom: 18px; margin-bottom: 30px; }
.legal-block h3.legal-sub { font-size: .92rem; letter-spacing: .1em; margin: 32px 0 14px; color: var(--ink); font-family: var(--sans); font-weight: 500; }
.legal-block h3.legal-sub:first-of-type { margin-top: 8px; }
.legal-block p { font-size: .85rem; color: var(--ink-soft); line-height: 2.2; letter-spacing: .04em; margin-bottom: 1em; }
.legal-block ul, .legal-block ol { padding-left: 1.4em; margin-bottom: 1em; }
.legal-block li { font-size: .85rem; color: var(--ink-soft); line-height: 2.1; letter-spacing: .04em; margin-bottom: .6em; }
.legal-block li strong { color: var(--ink); font-weight: 500; }
.legal-block .company-table { margin-top: 8px; }
.legal-block .company-table dl { display: grid; grid-template-columns: 168px 1fr; gap: 6px 20px; padding: 14px 0; border-bottom: 1px dashed var(--hairline); margin: 0; }
.legal-block .company-table dt { font-size: .78rem; letter-spacing: .08em; color: var(--ink); }
.legal-block .company-table dd { font-size: .82rem; color: var(--ink-soft); line-height: 2; }
@media (max-width: 640px) {
  .legal-block .company-table dl { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- ヒーロー上部：流入チャネルバー ---------- */
.hero-utility {
  position: absolute; top: 104px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.42); border-radius: 999px;
  padding: 8px; opacity: 0; animation: heroRiseCentered 2s ease 2s forwards;
}
.hero-utility .hu-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 148px; padding: 14px 20px; border-radius: 999px; color: #fff;
  font-size: .82rem; letter-spacing: .1em; white-space: nowrap;
  transition: background .35s ease;
}
.hero-utility .hu-item:hover { background: rgba(255,255,255,.18); }
.hero-utility .hu-item svg { width: 19px; height: 19px; stroke: #fff; fill: none; flex-shrink: 0; }
.hero-utility .hu-divider { width: 1px; margin: 10px 0; background: rgba(255,255,255,.32); flex-shrink: 0; }
@media (max-width: 860px) {
  .hero-utility { top: 86px; padding: 6px; }
  .hero-utility .hu-item { width: 52px; padding: 12px; font-size: 0; gap: 0; }
  .hero-utility .hu-item svg { width: 19px; height: 19px; }
}

/* ---------- 約束セクションの導入ビジュアル ---------- */
.promise-visual {
  max-width: 760px;
  margin: 0 auto 70px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.promise-visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.92);
}
@media (max-width: 860px) {
  .promise-visual { aspect-ratio: 16 / 9; margin-bottom: 50px; }
}

/* ---------- 姉妹サービス（メモリアム ペット） ---------- */
.sister { background: #f6f4ee; }
.sister-card {
  display: grid; grid-template-columns: .95fr 1.05fr; max-width: 980px; margin: 0 auto;
  background: #fff; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 50px -30px rgba(31,29,26,.42);
  transition: transform .5s ease, box-shadow .5s ease;
}
.sister-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -30px rgba(31,29,26,.5); }
.sister-card .sc-img { position: relative; overflow: hidden; min-height: 340px; }
.sister-card .sc-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s ease;
}
.sister-card:hover .sc-img img { transform: scale(1.05); }
.sister-card .sc-text { padding: 56px 46px; display: flex; flex-direction: column; justify-content: center; }
.sister-card .sc-kind { font-size: .62rem; letter-spacing: .4em; color: var(--flame); margin-bottom: 20px; }
.sister-card .sc-text h3 { font-size: 1.32rem; letter-spacing: .16em; line-height: 1.95; margin-bottom: 20px; }
.sister-card .sc-text p { font-size: .82rem; color: var(--ink-soft); letter-spacing: .06em; line-height: 2.2; }
.sister-card .sc-more {
  display: inline-block; margin-top: 32px; font-size: .72rem; letter-spacing: .28em;
  border: 1px solid var(--ink); border-radius: 6px; padding: 13px 34px; align-self: flex-start;
  transition: background .4s ease, color .4s ease;
}
.sister-card:hover .sc-more { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) {
  .sister-card { grid-template-columns: 1fr; }
  .sister-card .sc-img { min-height: 240px; aspect-ratio: 4/3; }
  .sister-card .sc-text { padding: 40px 28px; }
}
