/* 結婚相談所 ふたりの栞（デモ）
   地は白、字は深緑。ローズは「しおりの帯」と線・面・大きな字だけ。小さな字にローズは使わない（濃いローズ #A04F60 にする） */
:root {
  --g: #2F4F4F;
  --g2: #4A6767;
  --r: #C76D7E;
  --rd: #A04F60;
  --pr: #FAF1F3;
  --pg: #EEF3F2;
  --line: rgba(47, 79, 79, .15);
  --line2: rgba(47, 79, 79, .28);
  --fh: "Kaisei HarunoUmi", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --fb: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --hd: 76px;
  --notch: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body { margin: 0; background: #fff; color: var(--g); font-family: var(--fb); font-size: 16px; line-height: 1.95; letter-spacing: .04em; font-weight: 400; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
p + p { margin-top: 1em; }
h1, h2, h3, h4 { font-family: var(--fh); font-weight: 500; margin: 0; line-height: 1.5; letter-spacing: .06em; font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.nw { display: inline-block; }
.num, .yen, td, .tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--rd); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap--n { max-width: 860px; }

/* しおりの形（下の端が山形） */
.shiori-shape { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--notch)), 0 100%); }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.hd__in { max-width: 1320px; margin: 0 auto; height: var(--hd); padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo { display: block; width: 150px; height: auto; overflow: visible; }
.logo .lg-r { fill: var(--r); }
.logo .lg-g { fill: var(--g); }
.logo .lg-name { font-family: var(--fh); font-weight: 700; font-size: 23px; fill: var(--g); letter-spacing: .06em; }
.logo .lg-sub { font-family: var(--fb); font-weight: 500; font-size: 10px; fill: var(--g2); letter-spacing: .32em; }
.demo { flex: none; font-size: 10px; line-height: 1; letter-spacing: .14em; padding: 4px 6px 3px; border: 1px solid var(--line2); border-radius: 2px; color: var(--g2); margin-left: -6px; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 26px; }
.gnav a { position: relative; display: block; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .06em; padding: 6px 0; white-space: nowrap; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; margin: auto; width: 22px; height: 2px; background: var(--r); transform: scaleX(0); transition: transform .3s ease; }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav__sp { display: none; }
.hd__tel { flex: none; display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; text-align: right; }
.hd__tel small { font-size: 11px; letter-spacing: .1em; color: var(--g2); }
.hd__tel b { font-size: 18px; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.menu { display: none; margin-left: auto; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 6px; background: #fff; color: var(--g); font: 500 13px/1 var(--fb); letter-spacing: .1em; cursor: pointer; }
.menu__bars { position: relative; width: 18px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.menu__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border-radius: 6px; background: var(--g); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: .08em; line-height: 1.4; border: 1px solid var(--g); transition: background .25s ease, color .25s ease; position: relative; overflow: hidden; }
.btn::before { content: ""; width: 7px; height: 16px; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%); flex: none; transform-origin: top; transition: transform .3s ease; }
.btn:hover { background: #253f3f; }
.btn:hover::before { transform: scaleY(1.35); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.btn--sm::before { height: 13px; width: 6px; }
.btn--w { background: #fff; color: var(--g); border-color: #fff; }
.btn--w:hover { background: var(--pr); }
.btn--line { background: #fff; color: var(--g); border-color: var(--g); }
.btn--line:hover { background: var(--pg); }
.tl { display: inline-block; color: var(--g); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--r); letter-spacing: .06em; }
.tl:hover { text-decoration-thickness: 2px; }
.more { margin-top: 36px; }

/* ---------- 区画 ---------- */
.sec { padding: 104px 0; position: relative; }
.sec--pr { background: var(--pr); }
.sec--pg { background: var(--pg); }
.sec--tight { padding: 72px 0; }
.sec + .sec:not(.sec--pr):not(.sec--pg):not(.cta) { border-top: 1px solid var(--line); }
.h2 { display: flex; align-items: flex-start; gap: 14px; font-size: clamp(24px, 2.6vw, 31px); margin-bottom: 32px; }
.h2::before { content: ""; flex: none; width: 13px; height: 28px; margin-top: .26em; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%); }
.h3 { font-size: 20px; margin-bottom: 12px; }
.lead { font-size: 17px; }
.note { font-size: 14px; color: var(--g2); line-height: 1.8; }
.cap { margin-top: 10px; font-size: 13px; letter-spacing: .08em; color: var(--g2); }
.ph-img { border-radius: 4px; width: 100%; object-fit: cover; }

/* 2列（見出しを左に、本文を右に） */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }
.split .h2 { margin-bottom: 0; }
.split__body { border-left: 1px solid var(--line); padding-left: 48px; max-width: 640px; }
.ruled p { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.ruled p:first-child { padding-top: 0; }

/* ---------- 栞カード（本のページ＋右上にしおり） ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--line2); border-radius: 3px; padding: 36px 40px 34px; box-shadow: 5px 5px 0 -1px #fff, 5px 5px 0 0 var(--line2); }
.card::before { content: ""; position: absolute; top: -10px; right: 34px; width: 14px; height: 62px; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%); }
.card--nob::before { display: none; }
.card__h { font-family: var(--fh); font-size: 19px; font-weight: 500; margin-bottom: 14px; padding-right: 40px; letter-spacing: .06em; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid var(--line); font-weight: 400; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { font-size: 13px; color: var(--g2); letter-spacing: .1em; padding-top: 0; border-bottom: 1px solid var(--line2); }
.tbl th[scope="row"] { font-weight: 500; white-space: nowrap; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .yen { font-size: 20px; font-weight: 500; letter-spacing: .02em; }
.tbl .yen small { font-size: 13px; margin-left: 2px; }
.tbl .nb { font-weight: 500; color: var(--rd); }
.tbl small.in { display: block; font-size: 13px; color: var(--g2); line-height: 1.7; margin-top: 4px; }
.tbl--kv th { width: 34%; }
.tbl tfoot td, .tbl .sum th, .tbl .sum td { border-top: 1px solid var(--line2); }
.tbl .sum td { font-weight: 700; }

/* ---------- 最初の画面 ---------- */
.hero { position: relative; display: grid; grid-template-columns: 38fr 62fr; height: 80vh; min-height: 560px; max-height: 860px; overflow: hidden; }
.hero__l { position: relative; display: flex; align-items: center; padding: 0 44px 0 calc(max(24px, 2.6vw) + 88px + 48px); }
.hero__band { position: absolute; top: 0; left: max(24px, 2.6vw); width: 88px; height: 60vh; min-height: 420px; max-height: 620px; background: var(--r); --notch: 22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 22px), 0 100%); display: flex; justify-content: center; padding-top: 40px; }
.hero__band span { writing-mode: vertical-rl; font-family: var(--fh); font-weight: 500; color: #fff; font-size: 26px; line-height: 1.55; letter-spacing: .14em; white-space: nowrap; font-feature-settings: normal; }
.hero__h { font-size: clamp(28px, 2.35vw, 36px); font-weight: 700; line-height: 1.6; letter-spacing: .08em; }
.hero__p { margin-top: 22px; font-size: 16px; }
.hero__acts { margin-top: 30px; }
.hero__free { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--g2); }
.hero__link { margin-top: 18px; font-size: 15px; }
.hero__ph { position: relative; height: 100%; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; border-radius: 0 0 0 4px; }

html.js .hero__band { animation: bandDrop 1.2s cubic-bezier(.22, .8, .25, 1) .15s both; }
html.js .hero__band span { animation: fadeIn .4s ease 1.4s both; }
@keyframes bandDrop { 0% { transform: translateY(-100%); } 86% { transform: translateY(1.2%); } 100% { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 下層のページの頭（短いしおりが下りてくる） */
.phd { position: relative; padding: 76px 0 64px; }
.phd__in { position: relative; padding-left: 64px; }
.phd__band { position: absolute; top: -76px; left: 0; width: 26px; height: 168px; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%); }
html.js .phd__band { animation: bandDrop 1s cubic-bezier(.22, .8, .25, 1) .1s both; }
.phd__h { font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: .1em; }
.phd__p { margin-top: 20px; max-width: 40em; font-size: 17px; }
.phd--pic { padding-top: 0; }
.phd--pic .phd__band { top: 0; }
.phd--pic .phd__in { padding-top: 60px; }

/* 下層の頭の写真・絵（幅いっぱい） */
.banner { position: relative; height: 40vh; min-height: 260px; max-height: 420px; overflow: hidden; background: var(--pr); }
.banner img, .banner svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-cap { max-width: 1120px; margin: 10px auto 0; padding: 0 24px; font-size: 13px; letter-spacing: .08em; color: var(--g2); }

/* 写真と本文の2列 */
.pair { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.pair--r { grid-template-columns: 6fr 5fr; }
.pair__ph figure { margin: 0; }

/* ---------- 入会から成婚まで（短い版・トップ） ---------- */
.z1s { position: relative; margin: 8px 0 40px; padding-top: 14px; }
.z1s__band { position: absolute; top: 0; left: -24px; right: -24px; height: 14px; background: var(--r); transform-origin: left; }
.z1s ol { position: relative; display: flex; justify-content: space-between; padding: 0 2%; }
.z1s li { position: relative; width: 58px; height: 214px; background: var(--line2); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%); }
.z1s li::before { content: ""; position: absolute; inset: 0 1px 1px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%); }
.z1s li span { position: relative; display: block; margin: 0 auto; padding-top: 22px; writing-mode: vertical-rl; font-family: var(--fh); font-weight: 500; font-size: 18px; letter-spacing: .12em; line-height: 1; height: 100%; font-feature-settings: normal; }
.z1s li.is-start::before { background: var(--pr); }
html.js .z1s .z1s__band { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.3, .7, .2, 1); }
html.js .z1s li { opacity: 0; transform: translateY(-14px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(.35s + var(--i) * .1s); }
html.js .z1s.is-in .z1s__band { transform: scaleX(1); }
html.js .z1s.is-in li { opacity: 1; transform: none; }

/* ---------- 料金の内訳（Z-2） ---------- */
.z2 { position: relative; }
.z2__row + .z2__row { margin-top: 34px; }
.z2__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; font-weight: 500; }
.z2__t b { font-family: var(--fb); font-size: 22px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.z2__line { position: relative; display: flex; align-items: stretch; }
.z2__bar { display: flex; width: calc(78% * var(--w)); height: 72px; transform-origin: left; }
.z2__seg { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 12px; font-size: 13px; line-height: 1.45; overflow: hidden; white-space: nowrap; }
.z2__seg b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.z2__seg--a { width: 13.37%; background: var(--g); color: #fff; }
.z2__seg--b { width: 38.5%; background: var(--pg); border: 1.5px solid var(--g); color: var(--g); }
.z2__seg--c { width: 48.13%; background: var(--r); color: #fff; }
.z2__seg--c b { font-size: 21px; font-weight: 700; }
.z2__bar--n .z2__seg--a { width: 25.77%; }
.z2__bar--n .z2__seg--b { width: 74.23%; }
.z2__extra { align-self: center; margin-left: -10px; padding: 8px 12px; border: 1.5px dashed var(--g2); background: rgba(255, 255, 255, .88); font-size: 13px; line-height: 1.55; max-width: 230px; border-radius: 3px; }
.z2__no { margin-top: 22px; font-weight: 500; }
.z2__legend { display: none; }
html.js .z2 .z2__bar { transform: scaleX(0); transition: transform 1s cubic-bezier(.3, .7, .2, 1); }
html.js .z2 .z2__row + .z2__row .z2__bar { transition-delay: .25s; }
html.js .z2 .z2__extra { opacity: 0; transition: opacity .5s ease 1.1s; }
html.js .z2.is-in .z2__bar { transform: scaleX(1); }
html.js .z2.is-in .z2__extra { opacity: 1; }
/* 小さな版（トップ） */
.z2--s .z2__bar { height: 40px; width: calc(100% * var(--w)); }
.z2--s .z2__seg { padding: 0; }
.z2--s .z2__row + .z2__row { margin-top: 22px; }
.z2--s .z2__t { font-size: 14px; }
.z2--s .z2__t b { font-size: 19px; }
.z2--s .z2__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13px; }
.z2__legend li { display: flex; align-items: center; gap: 8px; }
.z2__legend i { width: 16px; height: 12px; display: block; }
.z2__legend .a { background: var(--g); }
.z2__legend .b { background: var(--pg); border: 1.5px solid var(--g); }
.z2__legend .c { background: var(--r); }

/* 料金（トップ） */
.fee { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.outside { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.outside b { font-weight: 500; }

/* ---------- 流れ（Z-1・入会から成婚までのページ） ---------- */
.flow { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
.z1 { position: sticky; top: calc(var(--hd) + 28px); }
.z1__in { position: relative; padding-left: 0; }
.z1__track { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--pr); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%); }
.z1__fill { position: absolute; inset: 0; background: var(--r); transform-origin: top; transform: scaleY(var(--p, 1)); transition: transform .35s ease; }
.z1 ol { position: relative; padding: 18px 0 40px; }
.z1 li { position: relative; display: block; padding: 0 0 0 44px; min-height: 68px; }
.z1 li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 22px; border-top: 1.5px solid var(--g); }
.z1 a { text-decoration: none; display: block; }
.z1__n { display: block; font-family: var(--fh); font-weight: 500; font-size: 18px; line-height: 1.6; transition: color .3s ease; }
.z1__s { display: block; font-size: 13px; line-height: 1.6; color: var(--g2); }
.z1 li.is-cur .z1__n { color: var(--rd); }
.z1__br { position: absolute; left: 226px; top: 4px; padding-left: 12px; font-size: 12px; line-height: 1.5; color: var(--rd); font-weight: 500; white-space: nowrap; }
.z1__br::before { content: ""; position: absolute; left: 0; top: 2px; bottom: -14px; width: 7px; border: 1.5px solid var(--rd); border-right: 0; }
.tag-act { display: inline-block; margin-left: 8px; padding: 2px 8px 1px; background: var(--rd); color: #fff; font-family: var(--fb); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; vertical-align: 3px; border-radius: 2px; }
.steps > li { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hd) + 24px); }
.steps > li:last-child { border-bottom: 0; margin-bottom: 0; }
.step__h { display: flex; align-items: center; gap: 14px; font-size: 24px; margin-bottom: 18px; }
.step__h::before { content: ""; width: 10px; height: 22px; flex: none; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 5px), 0 100%); }
.step__body { display: grid; grid-template-columns: 1fr; gap: 24px; }
.step__body--ph { grid-template-columns: 1fr 220px; align-items: start; }
.step__body figure { margin: 0; }
.step .tl { margin-top: 16px; }

/* ---------- 栞カードの見本（Z-4） ---------- */
.z4wrap { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; }
.z4 { position: relative; width: 100%; max-width: 420px; background: #fff; border: 1.5px solid var(--g); border-radius: 4px; padding: 46px 30px 34px; }
.z4__hole { position: absolute; top: 16px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border: 1.5px solid var(--g); border-radius: 50%; background: var(--pr); }
.z4__rib { position: absolute; top: -46px; left: 50%; width: 10px; height: 64px; margin-left: -5px; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 5px), 0 100%); }
.z4__mi { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border: 1.5px solid var(--g); font-size: 12px; line-height: 1.4; letter-spacing: .14em; }
.z4__h { font-family: var(--fh); font-size: 16px; font-weight: 500; margin: 8px 0 8px; }
.z4 dl { margin: 0; }
.z4 dt { font-size: 12.5px; line-height: 1.4; padding-top: 10px; color: var(--g); font-weight: 500; }
.z4 dd { margin: 0; height: 26px; border-bottom: 1px solid var(--line2); }
.z4 dd.tall { height: 52px; background: linear-gradient(transparent 25px, var(--line2) 25px, var(--line2) 26px, transparent 26px); }
.z4__ans { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 0 4px; font-size: 13px; }
.z4__ans span { display: inline-flex; align-items: center; gap: 6px; }
.z4__ans span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--g); border-radius: 50%; }
.z4__cut { margin: 22px -30px 4px; border-top: 2px dotted var(--r); }
.z4__memo { height: 130px; background: repeating-linear-gradient(transparent 0 31px, var(--line2) 31px 32px); }
html.js .z4 { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
html.js .z4.is-in { opacity: 1; transform: none; }

/* ---------- やめるときのお金（Z-3） ---------- */
.z3 { position: relative; padding-top: 54px; }
.z3__line { position: absolute; left: 0; right: 0; top: 86px; height: 2px; background: var(--g); transform-origin: left; }
.z3__line::after { content: ""; position: absolute; right: -2px; top: -5px; border-left: 9px solid var(--g); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.z3 ol { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1.5fr; }
.z3 li { position: relative; padding: 0 22px 0 0; }
.z3 li + li { padding-left: 22px; border-left: 1px dashed var(--line2); }
.z3__p { display: block; min-height: 46px; font-weight: 500; font-size: 14px; line-height: 1.6; padding-bottom: 12px; }
.z3__dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--g); margin: -6px 0 18px; }
.z3__v { font-size: 15px; line-height: 1.75; }
.z3__v b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--g); }
.z3__f { display: block; margin-top: 10px; padding: 8px 12px; background: var(--pg); font-size: 13px; line-height: 1.7; border-radius: 3px; }
.z3__tag { position: absolute; top: -54px; display: inline-flex; align-items: flex-start; justify-content: center; width: 40px; height: 52px; padding-top: 6px; background: var(--r); color: #fff; font-family: var(--fh); font-size: 12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 8px), 0 100%); }
.z3__co { left: 0; width: auto; padding: 6px 12px 0; height: 46px; font-size: 14px; letter-spacing: .06em; }
.z3__act { left: -46px; background: var(--rd); width: auto; padding: 5px 10px 0; height: 40px; font-family: var(--fb); font-size: 12px; font-weight: 500; }
.z3__note { margin-top: 26px; text-align: right; font-size: 13px; color: var(--g2); }
html.js .z3 .z3__line { transform: scaleX(0); transition: transform 1s cubic-bezier(.3, .7, .2, 1); }
html.js .z3 li { opacity: 0; transition: opacity .5s ease; transition-delay: calc(.6s + var(--i) * .25s); }
html.js .z3.is-in .z3__line { transform: scaleX(1); }
html.js .z3.is-in li { opacity: 1; }

/* 3枚のカード（やめるとき）・計算の例 */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.cards3 .card { padding: 30px 26px 26px; }
.cards3 .card__h { font-size: 17px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cards2 .card { padding: 30px 30px 24px; }
.cards2 .tbl td, .cards2 .tbl th { padding: 12px 6px; font-size: 14.5px; }
.cards2 .tbl .r { font-size: 15.5px; }

/* 縦に並べる3つ（ふたりの栞のやり方など） */
.marks > li { position: relative; padding: 26px 0 26px 44px; border-bottom: 1px solid var(--line); }
.marks > li:first-child { padding-top: 0; }
.marks > li:first-child::before { top: 4px; }
.marks > li::before { content: ""; position: absolute; left: 6px; top: 30px; width: 12px; height: 26px; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%); }
.marks b { display: block; font-family: var(--fh); font-weight: 500; font-size: 19px; margin-bottom: 6px; letter-spacing: .06em; }
.marks--s > li { padding: 14px 0 14px 34px; }
.marks--s > li::before { left: 4px; top: 21px; width: 9px; height: 18px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%); }
.marks--s > li:first-child::before { top: 7px; }

/* よくあるご質問 */
.faq { border-top: 1px solid var(--line2); }
.faq > div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line2); }
.faq dt { font-family: var(--fh); font-weight: 500; font-size: 18px; line-height: 1.7; letter-spacing: .05em; position: relative; padding-left: 26px; }
.faq dt::before { content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 18px; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%); }
.faq dd { margin: 0; }

/* ---------- はじめてのご相談（深緑の区画） ---------- */
.cta { background: var(--g); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.cta__in { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 48px; align-items: start; }
.cta__band { width: 64px; height: 250px; margin-top: -96px; overflow: visible; }
.cta__band path { fill: none; stroke: #fff; stroke-width: 1.5; }
.cta__h { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: .08em; color: #fff; }
.cta__p { margin-top: 18px; font-size: 17px; }
.cta__acts { margin-top: 30px; }
.cta__tel { margin-top: 16px; font-size: 14px; letter-spacing: .06em; }
.cta__tel a { text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- フッター ---------- */
.ft { background: var(--pg); padding: 64px 0 28px; font-size: 14px; }
.ft__in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.ft .logo { width: 170px; }
.ft__ad { margin-top: 18px; line-height: 1.9; }
.ft__ad a { text-decoration: none; font-variant-numeric: tabular-nums; }
.ft__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; align-content: start; }
.ft__nav a { text-decoration: none; }
.ft__nav a:hover { text-decoration: underline; text-decoration-color: var(--r); text-underline-offset: 5px; }
.ft__copy { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--g2); }

/* スマホの下の帯 */
.sbar { display: none; }

/* ---------- 写真・絵 ---------- */
.lounge .ln { fill: none; stroke: var(--g); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lounge .ln2 { fill: none; stroke: var(--g); stroke-width: 1; stroke-opacity: .35; }
.lounge .pr { fill: #F3DDE2; }
.lounge .w { fill: #fff; }
.lounge .pg { fill: var(--pg); }
.lounge .wd { fill: #EBD9C3; }

.room2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: end; }
.room2 figure { margin: 0; }
.room2 .tall img { aspect-ratio: 663 / 896; }
.room2 .sm img { aspect-ratio: 4 / 5; object-position: 45% 50%; }

/* ---------- フォーム ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.ways > div { padding: 30px 28px 30px 0; }
.ways > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.ways h3 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.ways h3::before { content: ""; width: 9px; height: 18px; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%); }
.ways .tel { display: inline-block; font-size: 24px; font-weight: 500; letter-spacing: .04em; text-decoration: none; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.ways .btn { margin-top: 16px; }
.form { max-width: 760px; }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 12px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row__l { font-weight: 500; padding-top: 10px; line-height: 1.6; }
.req, .opt { display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 6px; border-radius: 2px; vertical-align: 2px; letter-spacing: .06em; font-weight: 500; }
.req { background: var(--rd); color: #fff; }
.opt { border: 1px solid var(--line2); color: var(--g2); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form select, .form textarea { width: 100%; font: 400 16px/1.6 var(--fb); color: var(--g); padding: 11px 14px; border: 1px solid var(--line2); border-radius: 4px; background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--rd); outline-offset: 0; border-color: transparent; }
.hint { display: block; font-size: 13px; color: var(--g2); margin-top: 6px; line-height: 1.6; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.choices input { width: 18px; height: 18px; accent-color: var(--g); margin: 0; }
.dates { display: grid; gap: 10px; }
.dates > div { display: grid; grid-template-columns: 52px 1fr 130px; gap: 10px; align-items: center; font-size: 14px; }
.form__pv { margin-top: 28px; font-size: 14px; line-height: 1.8; }
.agree { margin-top: 14px; }
.agree label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--g); margin: 0; }
.form__send { margin-top: 26px; }
.form__send .btn { min-width: 280px; font: inherit; font-weight: 500; cursor: pointer; }
.form__after { margin-top: 12px; font-size: 13px; color: var(--g2); }
.form.is-checked :invalid { border-color: var(--rd); }
.form__msg { display: none; margin-top: 14px; padding: 12px 16px; background: var(--pr); border-left: 3px solid var(--rd); font-size: 14px; }
.form.is-checked .form__msg { display: block; }

/* ---------- 見えたら出す ---------- */
html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
html.js .rv.is-in { opacity: 1; transform: none; }
html.js .h2::before { transform: translateY(-40%); opacity: 0; transition: transform .6s cubic-bezier(.3, .7, .2, 1), opacity .4s ease; }
html.js .h2.is-in::before { transform: none; opacity: 1; }

/* ---------- 画面の幅ごと ---------- */
@media (max-width: 1199px) {
  .gnav { position: fixed; top: var(--hd); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line2); padding: 8px 24px 28px; display: none; max-height: calc(100vh - var(--hd)); overflow-y: auto; }
  body.is-menu .gnav { display: block; }
  .gnav ul { display: block; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { padding: 16px 0 16px 22px; font-size: 16px; }
  .gnav a::after { left: 0; right: auto; top: 50%; bottom: auto; width: 8px; height: 16px; margin: -8px 0 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%); transform: none; opacity: .25; }
  .gnav a[aria-current="page"]::after { opacity: 1; }
  .gnav__sp { display: block; margin-top: 20px; font-size: 14px; }
  .gnav__sp .btn { width: 100%; }
  .gnav__sp p { margin-top: 12px; }
  .menu { display: inline-flex; }
  .hd__tel { margin-left: auto; }
  .hd__tel + .btn { margin-left: 0; }
  .menu { margin-left: 0; }
}
@media (max-width: 1023px) {
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; }
  .hero__ph { order: -1; }
  .hero__l { position: static; }
  .hero__ph { height: 46vh; min-height: 280px; }
  .hero__ph img { border-radius: 0; object-position: 64% 62%; }
  .hero__band { left: 20px; width: 64px; height: 33vh; min-height: 230px; max-height: 300px; padding-top: 22px; z-index: 2; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%); }
  .hero__band span { font-size: 17px; line-height: 1.6; letter-spacing: .12em; }
  .hero__l { display: block; padding: 34px 24px 56px; }
  .hero__h { font-size: clamp(26px, 6.6vw, 36px); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__body { border-left: 0; padding-left: 0; }
  .fee { grid-template-columns: 1fr; gap: 48px; }
  .flow { grid-template-columns: 1fr; gap: 48px; }
  .z1 { position: relative; top: 0; max-width: 420px; }
  .z4wrap { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .z4wrap > div:last-child { justify-self: stretch; }
  .cards3 { grid-template-columns: 1fr; gap: 24px; }
  .pair, .pair--r { grid-template-columns: 1fr; gap: 32px; }
  .faq > div { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 860px) {
  .cards2 { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .ways > div, .ways > div + div { padding: 24px 0; border-left: 0; }
  .ways > div + div { border-top: 1px solid var(--line); }
  .z3 { padding-top: 0; padding-left: 0; }
  .z3__line { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; }
  .z3__line::after { right: auto; left: -5px; top: auto; bottom: -2px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--g); border-bottom: 0; }
  html.js .z3 .z3__line { transform: scaleY(0); }
  html.js .z3.is-in .z3__line { transform: scaleY(1); }
  .z3 ol { grid-template-columns: 1fr; }
  .z3 li, .z3 li + li { padding: 0 0 34px 40px; border-left: 0; }
  .z3__dot { position: absolute; left: 1px; top: 6px; margin: 0; }
  .z3__p { min-height: 0; padding-bottom: 6px; font-size: 15px; }
  .z3__tag { position: relative; top: 0; margin-bottom: 8px; }
  .z3__co { left: 0; }
  .z3__act { position: relative; left: 0; display: inline-flex; margin: 0 0 8px; }
  .z3 li.has-act { padding-top: 0; }
  .z3__note { text-align: left; }
  .z2__line { flex-direction: column; align-items: stretch; }
  .z2__bar { width: calc(100% * var(--w)); height: 58px; }
  .z2__extra { align-self: flex-end; margin: -8px -4px 0 0; position: relative; max-width: 260px; }
  .z2:not(.z2--s) .z2__seg { padding: 0; }
  .z2:not(.z2--s) .z2__seg > * { display: none; }
  .z2:not(.z2--s) .z2__legend { display: block; margin-top: 12px; font-size: 13.5px; }
  .z2:not(.z2--s) .z2__legend li { margin-top: 4px; }
}
@media (max-width: 767px) {
  :root { --hd: 64px; }
  body { font-size: 15.5px; padding-bottom: 64px; }
  .wrap { padding: 0 20px; }
  .hd__in { padding: 0 14px 0 16px; gap: 12px; }
  .logo { width: 124px; }
  .hd__tel, .hd__btn { display: none; }
  .menu { margin-left: auto; }
  .sec { padding: 72px 0; }
  .sec--tight { padding: 56px 0; }
  .card { padding: 30px 20px 24px; }
  .card::before { right: 22px; }
  .tbl th, .tbl td { padding: 13px 6px; }
  .tbl--4 thead { display: none; }
  .tbl--4 tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl--4 tr:last-child { border-bottom: 0; }
  .tbl--4 th, .tbl--4 td { border: 0; padding: 0; }
  .tbl--4 .when { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: var(--g2); }
  .tbl--4 .inc { grid-column: 1 / -1; font-size: 13px; color: var(--g2); padding-top: 4px; }
  .tbl--kv th, .tbl--kv td { display: block; width: auto; }
  .tbl--kv th { padding-bottom: 0; border-bottom: 0; }
  .tbl--kv td { padding-top: 2px; }
  .tbl--kv tr { display: block; border-bottom: 1px solid var(--line); }
  .tbl--kv tr:last-child { border-bottom: 0; }
  .tbl--kv tr th, .tbl--kv tr td { border-bottom: 0; }
  .tbl--doc th { white-space: normal; }
  .z1s { margin-top: 0; }
  .z1s ol { padding: 0; }
  .z1s li { width: 40px; height: 186px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%); }
  .z1s li::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%); }
  .z1s li span { font-size: 15px; padding-top: 16px; letter-spacing: .08em; }
  .z1s__band { left: -20px; right: -20px; height: 12px; }
  .z1__br { left: auto; right: 0; }
  .step__body--ph { grid-template-columns: 1fr; }
  .step__body--ph figure { max-width: 300px; }
  .z4 { padding: 44px 20px 28px; }
  .z4__cut { margin-left: -20px; margin-right: -20px; }
  .cta { padding: 64px 0 72px; }
  .cta__in { grid-template-columns: 1fr; gap: 0; }
  .cta__band { width: 40px; height: 120px; margin: -64px 0 20px; }
  .ft__in { grid-template-columns: 1fr; gap: 32px; }
  .ft__nav { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .row__l { padding-top: 0; }
  .dates > div { grid-template-columns: 44px 1fr; }
  .dates > div select { grid-column: 2; }
  .form__send .btn { width: 100%; min-width: 0; }
  .phd { padding: 56px 0 44px; }
  .phd__in { padding-left: 44px; }
  .phd__band { top: -56px; width: 20px; height: 128px; }
  .phd--pic { padding-top: 0; }
  .phd--pic .phd__band { top: 0; }
  .phd--pic .phd__in { padding-top: 44px; }
  .banner { height: 34vh; min-height: 220px; }
  .room2 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 60px; align-items: center; justify-content: center; gap: 10px; background: var(--g); color: #fff; text-decoration: none; font-weight: 500; font-size: 15.5px; letter-spacing: .08em; padding-bottom: env(safe-area-inset-bottom); }
  .sbar::before { content: ""; width: 9px; height: 20px; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 5px), 0 100%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 767px) { .tbl--kv thead { display: none; } .tbl--doc td { font-size: 14.5px; } }
.banner .lounge { width: 100%; height: 100%; }
.ph-img > .lounge { width: 100%; height: 100%; display: block; }
@media (min-width: 861px) {
  .z3__line { top: 118px; }
  .z3__p { display: flex; align-items: flex-end; height: 56px; min-height: 0; padding-bottom: 0; }
  .z3__dot { margin: 2px 0 18px; }
}
@media (max-width: 860px) { .z3__line { bottom: 72px; } .z3__note { padding-left: 40px; margin-top: 4px; } }
/* カウンセラーと相談室の頭（写真を左に大きく） */
.chd { display: grid; grid-template-columns: 55fr 45fr; align-items: stretch; min-height: 520px; }
.chd__ph { margin: 0; }
.chd__ph img { width: 100%; height: 100%; min-height: 520px; max-height: 640px; object-fit: cover; object-position: 60% 60%; }
.chd__ph .cap { padding-left: 24px; }
.chd__tx { position: relative; padding: 96px 48px 56px 104px; align-self: start; }
.chd__tx .phd__band { top: 0; left: 48px; }
@media (max-width: 1023px) {
  .chd { grid-template-columns: 1fr; min-height: 0; }
  .chd__ph img { min-height: 0; height: 46vh; min-height: 260px; }
  .chd__tx { padding: 48px 24px 24px 76px; }
  .chd__tx .phd__band { left: 24px; top: -30px; }
}
@media (max-width: 767px) { .chd__tx { padding: 40px 20px 16px 60px; } .chd__tx .phd__band { left: 20px; width: 20px; height: 120px; } }
.room2 figure .ph-img { height: auto; }
#heya .pair { grid-template-columns: 7fr 5fr; }
@media (max-width: 1023px) { .chd__ph .cap { text-align: right; padding-right: 20px; } .chd__tx .phd__band { top: 0; } #heya .pair { grid-template-columns: 1fr; } }
/* 無料相談の頭（お茶の写真。縦長なので、広い画面では右半分に置き、左はしおりの帯） */
.sban { position: relative; height: 36vh; min-height: 260px; max-height: 380px; display: grid; grid-template-columns: 1fr 1fr; background: var(--pr); overflow: hidden; }
.sban img { grid-column: 2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.sban__band { position: absolute; top: 0; left: 50%; margin-left: -120px; width: 60px; height: 78%; background: var(--r); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%); }
.sban::before { content: ""; position: absolute; left: 8%; right: 54%; top: 50%; border-top: 1px solid var(--line2); }
html.js .sban__band { animation: bandDrop 1.1s cubic-bezier(.22, .8, .25, 1) .1s both; }
@media (max-width: 767px) {
  .sban { display: block; height: 36vh; }
  .sban img { position: absolute; inset: 0; }
  .sban::before { display: none; }
  .sban__band { left: auto; right: 20px; margin: 0; width: 40px; height: 64%; z-index: 1; }
}
.sban img { position: absolute; right: 0; top: 0; width: 50%; height: 100%; }
@media (max-width: 767px) { .sban img { width: 100%; } .dates > div { grid-template-columns: 66px 1fr; } }
.sban { display: block; }
.sban img { grid-column: auto; width: 60%; }
.sban__band { left: 40%; margin-left: -100px; }
.sban::before { left: 6%; right: calc(60% + 140px); }
@media (max-width: 767px) { .sban img { width: 100%; } .sban__band { left: auto; margin: 0; } }
@media (min-width: 768px) { .sban img { width: 46%; object-position: 50% 58%; } .sban__band { left: 54%; } .sban::before { right: calc(46% + 140px); } }
figure.z2, figure.z3, figure.z4 { margin: 0; } figure.z1s { margin-left: 0; margin-right: 0; } figure.z4 { margin: 0 auto; }
