/* =========================================================
   ExitPlan — 下層ページ共通コンポーネント
   （style.css のトークン・eyebrow・btn・card・route・stats・tabs を前提）
   ========================================================= */

/* ---------- ページ冒頭（下層ヒーロー） ---------- */
.phero { position: relative; overflow: hidden; background: var(--bg); min-height: min(calc(58 * var(--svh, 1svh)), 560px); display: flex; align-items: flex-end; }
.phero__bg {
  position: absolute; left: -10%; top: -10%; width: 120%; height: 120%;
  object-fit: cover; object-position: 50% 30%;
  filter: blur(36px) grayscale(.7) sepia(.3) brightness(.32); opacity: .5;
}
.phero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb),.6) 0%, rgba(var(--bg-rgb),.2) 40%, rgba(var(--bg-rgb),.8) 80%, var(--bg) 100%); }
.phero__inner { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(120px,16vw,200px) var(--gutter) clamp(48px,6vw,88px); }
.phero__title { margin: clamp(20px,2.4vw,32px) 0 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(1.75rem,3.6vw,2.75rem); line-height: 1.5; letter-spacing: .06em; }
.phero__title--letter { font-size: clamp(1.5rem,3vw,2.5rem); line-height: 1.65; max-width: 24em; }
.phero__sub { margin: clamp(20px,2.4vw,32px) 0 0; max-width: 36em; font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--sub-inv); text-wrap: pretty; }
.phero__from { margin: clamp(20px,2.4vw,28px) 0 0; font-size: 13px; letter-spacing: .12em; color: var(--muted-inv); }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 24px; font-size: 12px; letter-spacing: .12em; color: var(--muted-inv); }
.crumb a { min-height: 32px; display: inline-flex; align-items: center; }
.crumb__sep { color: var(--accent); opacity: .7; font-family: var(--serif-en); }
.crumb [aria-current] { color: var(--text-inv); }

/* ---------- セクション骨格 ---------- */
.sec { position: relative; overflow: clip; background: var(--bg); }
.sec--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.sec__inner { position: relative; max-width: 1440px; margin: 0 auto; padding: clamp(80px,9vw,140px) var(--gutter); }
.sec--tight .sec__inner { padding-top: clamp(56px,6vw,96px); padding-bottom: clamp(56px,6vw,96px); }
.sec__rule { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--border-inv); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px,5vw,96px); align-items: start; }
.split__head { align-self: start; }
.h2--lg { font-size: clamp(30px,3.4vw,46px); }
.h2--md { font-size: clamp(26px,2.6vw,36px); }
.h2--sm { font-size: clamp(22px,2vw,30px); line-height: 1.6; }
.h3 { margin: 0; font-family: var(--serif-ja); font-weight: 500; font-size: 20px; line-height: 1.6; letter-spacing: .04em; }
.en-title { margin: 0; font-family: var(--serif-en); font-weight: 400; font-size: clamp(28px,3vw,40px); letter-spacing: .1em; line-height: 1; color: var(--text-inv); }
.lead { margin: 0; font-size: clamp(15px,1.2vw,16px); line-height: 2; letter-spacing: .04em; text-wrap: pretty; max-width: 36em; }
.lead + .lead { margin-top: 24px; }
.lead strong, .body strong, .note strong { font-weight: 500; color: var(--accent-l); }
.note { margin: 24px 0 0; font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: var(--muted-inv); max-width: 40em; text-wrap: pretty; }
.stack > * + * { margin-top: clamp(20px,2.4vw,28px); }
.mt-3 { margin-top: clamp(28px,3vw,40px); }
.mt-4 { margin-top: clamp(40px,5vw,64px); }
.mt-5 { margin-top: clamp(56px,7vw,96px); }
.center { text-align: center; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }

/* ---------- 箇条（こんな状況ではありませんか） ---------- */
.check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 clamp(24px,4vw,64px); border-top: 1px solid var(--border-inv); }
.check li { position: relative; padding: 18px 0 18px 28px; border-bottom: 1px solid var(--border-inv); font-size: 15px; line-height: 1.9; letter-spacing: .04em; }
.check li::before {
  content: ""; position: absolute; left: 4px; top: 29px; width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--accent-l); background: rgba(217,188,133,.15); box-shadow: 0 0 8px rgba(217,188,133,.4);
}

/* ---------- 項目カード（含む領域 / 私たちの基準） ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px,2vw,28px); }
.item {
  position: relative; padding: 28px 24px 26px; background: var(--card);
  border: 1px solid var(--border-inv); border-radius: 4px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.item::before, .item::after { content: ""; position: absolute; width: 12px; height: 12px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.item::before { left: -1px; top: -1px; border-left: 1px solid var(--accent-l); border-top: 1px solid var(--accent-l); }
.item::after { right: -1px; bottom: -1px; border-right: 1px solid var(--accent-l); border-bottom: 1px solid var(--accent-l); }
.item:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--accent-l), 0 24px 48px -24px rgba(0,0,0,.6); }
.item:hover::before, .item:hover::after { opacity: 1; }
.item__no { position: absolute; right: 20px; top: 18px; font-family: var(--serif-en); font-size: 18px; color: var(--accent); }
.item__title { margin: 0; padding-right: 40px; font-family: var(--serif-ja); font-weight: 500; font-size: 20px; line-height: 1.6; letter-spacing: .06em; }
.item__text { margin: 12px 0 0; font-size: 14px; line-height: 1.9; letter-spacing: .04em; color: var(--sub-inv); }
.item--big .item__no { position: static; display: block; font-size: clamp(28px,2.6vw,36px); line-height: 1; margin-bottom: 18px; }
.item--big .item__title { padding-right: 0; }

/* ---------- D8: 申し入れから出口までの航路 ---------- */
.route--flow { max-width: 760px; padding-top: clamp(40px,5vw,64px); padding-bottom: clamp(40px,5vw,64px); }
.route--flow .route__steps { gap: clamp(40px,5vw,64px); }
.route--flow .route__head { flex-wrap: wrap; }
.route__name--h3 { margin: 0; font-weight: 500; }
.route__text { margin: 8px 0 0; max-width: 34em; font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--sub-inv); text-wrap: pretty; }
.route__text strong { font-weight: 500; color: var(--accent-l); }
.route__fork { position: absolute; left: -45px; top: 12px; width: 28px; height: 96px; pointer-events: none; }
.route__fork svg { display: block; width: 100%; height: 100%; overflow: visible; }
.route__sealmark {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--accent-l); font-family: var(--serif-en); font-size: 10px; letter-spacing: .1em; color: var(--accent-l);
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 3px rgba(217,188,133,.5), 0 0 10px rgba(217,188,133,.35); margin-left: 4px; align-self: center;
}
.flow__close { max-width: 30em; }
.flow__note { max-width: 36em; }

/* ---------- D7: 事業の価値が生まれる流れ（現行の図の形を継承） ---------- */
.scheme-grid { display: grid; gap: clamp(40px,5vw,64px); }
.scheme-grid__head .lead { max-width: 34em; }
.scheme { margin: 0; }
.scheme__head { display: flex; align-items: center; gap: 16px; font-family: var(--serif-ja); font-size: 15px; letter-spacing: .12em; color: var(--muted-inv); }
.scheme__head::after { content: ""; flex: 1; height: 1px; background: var(--border-inv); }
.scheme__svg { display: block; width: 100%; max-width: 620px; height: auto; margin: clamp(20px,3vw,32px) auto 0; overflow: visible; }
.scheme__svg .sc-rule { fill: none; stroke: rgba(217,188,133,.5); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.scheme__svg .sc-gold { fill: none; stroke: var(--accent-l); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(217,188,133,.35)); }
.scheme__svg .sc-fill { fill: rgba(var(--card-rgb), .45); stroke: none; }
.scheme__svg .sc-fill--gold { fill: rgba(217,188,133,.06); }
.scheme__svg .sc-head { fill: rgba(217,188,133,.55); }
.scheme__svg .sc-head--gold { fill: var(--accent-l); }
.scheme__svg .sc-logo path { fill: var(--text-inv); }
.scheme__svg .sc-icon { fill: none; stroke: var(--text-inv); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.scheme__svg .sc-icon circle[r="4.8"] { stroke: var(--text-inv); }
.scheme__svg .sc-icon .sc-icon--gold { stroke: var(--accent-l); }
.scheme__svg .sc-pill { fill: none; stroke: rgba(217,188,133,.5); stroke-width: 1; }
.scheme__svg text { fill: var(--text-inv); }
.scheme__svg .sc-en { font-family: var(--serif-en); font-size: 36px; letter-spacing: .04em; }
.scheme__svg .sc-ttl { font-family: var(--serif-ja); font-size: 30px; letter-spacing: .18em; }
.scheme__svg .sc-sub { font-family: var(--sans-ja); font-size: 13.5px; letter-spacing: .06em; fill: var(--sub-inv); }
.scheme__svg .sc-label { font-family: var(--serif-ja); font-size: 12.5px; letter-spacing: .1em; fill: var(--accent-l); }
.scheme__svg .sc-pilltxt { font-family: var(--serif-ja); font-size: 14px; letter-spacing: .1em; }
.scheme__svg .sc-muted { font-family: var(--serif-ja); font-size: 12.5px; letter-spacing: .06em; fill: var(--muted-inv); }
.scheme-grid__pay .lead { max-width: 34em; }
@media (min-width: 1024px) {
  .scheme-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: clamp(48px,6vw,112px); }
  .scheme-grid__head { grid-column: 1; grid-row: 1; }
  .scheme-grid__pay { grid-column: 1; grid-row: 2; align-self: end; padding-top: clamp(40px,5vw,64px); border-top: 1px solid var(--border-inv); }
  .scheme { grid-column: 2; grid-row: 1 / 3; }
  .scheme__svg { margin-left: auto; margin-right: 0; }
}

/* ---------- 淡色（紙）セクション / 手紙 ---------- */
.paper { position: relative; background: var(--light-bg); color: var(--text); }
.paper .eyebrow { color: var(--accent-d); }
.wave { display: block; width: 100%; height: clamp(24px,3.4vw,48px); }
.wave path { fill: var(--bg); }
.wave--flip { transform: scaleY(-1); }
.letter-wrap { max-width: 720px; margin: 0 auto; padding: clamp(56px,7vw,104px) var(--gutter) clamp(72px,8vw,128px); }
.chapter { position: relative; padding: clamp(56px,7vw,96px) 0; border-top: 1px solid var(--border-l); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter__no { display: flex; align-items: center; gap: 16px; font-family: var(--serif-en); font-size: 12px; letter-spacing: .32em; color: var(--accent-d); }
.chapter__no::after { content: ""; width: 40px; height: 1px; background: var(--accent); }
.chapter__title { margin: 20px 0 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(24px,2.4vw,32px); line-height: 1.6; letter-spacing: .05em; }
.chapter__body { margin-top: clamp(28px,3vw,40px); font-size: 16px; line-height: 2.1; letter-spacing: .04em; text-wrap: pretty; }
.chapter__body p { margin: 0; }
.chapter__body p + p, .chapter__body ul + p, .chapter__body p + ul { margin-top: 1.6em; }
.chapter__body strong { font-weight: 500; background: linear-gradient(transparent 68%, rgba(184,149,90,.28) 68%); }
.pull {
  margin: clamp(32px,4vw,48px) 0; padding: 4px 0 4px 24px; border-left: 1px solid var(--accent);
  font-family: var(--serif-ja); font-size: clamp(19px,1.8vw,24px); line-height: 1.9; letter-spacing: .05em; color: var(--text);
}
.pull p { margin: 0; }
.chapter__list { list-style: none; margin: 1.6em 0; padding: 0; }
.chapter__list li { position: relative; padding-left: 22px; }
.chapter__list li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--accent-d); }
.etching { display: block; width: min(100%, 220px); height: auto; margin: 0 0 clamp(24px,3vw,36px); color: var(--accent-d); }
.chapter--mid .chapter__title { margin-top: 1.6em; }
.sign { margin-top: clamp(40px,5vw,64px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sign__name { font-family: var(--serif-ja); font-size: clamp(24px,2.4vw,32px); letter-spacing: .2em; line-height: 1.4; }
.sign__role { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.sign__seal { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--accent-d); display: flex; align-items: center; justify-content: center; font-family: var(--serif-en); font-size: 14px; color: var(--accent-d); box-shadow: inset 0 0 0 3px var(--light-bg), inset 0 0 0 4px rgba(140,106,54,.5); }
.letter-cta { margin-top: clamp(56px,7vw,96px); padding-top: clamp(40px,5vw,56px); border-top: 1px solid var(--border-l); }
.letter-cta .h3 { font-size: clamp(20px,1.8vw,24px); }
.letter-cta p { margin: 12px 0 0; font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--muted); }
.btn--light, .btn--light:hover { color: var(--text-inv); background-image: url(/assets/button-solid.svg); }
.chapnav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: clamp(28px,3vw,40px) 0 0; padding: 0; list-style: none; font-size: 12px; letter-spacing: .14em; }
.chapnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--sub-inv); }
.chapnav a:hover { color: var(--accent-l); }
.chapnav__no { font-family: var(--serif-en); font-size: 13px; letter-spacing: .1em; color: var(--accent); }

/* ---------- 5つの行動指針 ---------- */
.creed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-inv); }
.creed li { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px,3vw,48px); padding: clamp(28px,3vw,40px) 0; border-bottom: 1px solid var(--border-inv); }
.creed__word { display: flex; flex-direction: column; gap: 10px; width: 2.4em; }
.creed__no { font-family: var(--serif-en); font-size: 13px; letter-spacing: .2em; color: var(--accent); }
.creed__kanji { font-family: var(--serif-ja); font-size: clamp(30px,3.2vw,42px); line-height: 1; letter-spacing: .1em; color: var(--accent-l); text-shadow: 0 0 3px rgba(217,188,133,.1); }
.creed__title { margin: 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(19px,1.6vw,22px); line-height: 1.6; letter-spacing: .06em; }
.creed__text { margin: 10px 0 0; font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--sub-inv); max-width: 36em; text-wrap: pretty; }

/* ---------- 会社情報 / お知らせ ---------- */
.dl { margin: clamp(24px,3vw,40px) 0 0; border-top: 1px solid var(--border-inv); }
.dl > div { display: grid; grid-template-columns: minmax(96px, 160px) 1fr; gap: 12px 24px; padding: 16px 0; border-bottom: 1px solid var(--border-inv); font-size: 15px; line-height: 1.9; letter-spacing: .04em; }
.dl dt { color: var(--muted-inv); letter-spacing: .1em; }
.dl dd { margin: 0; }
.news { list-style: none; margin: clamp(24px,3vw,40px) 0 0; padding: 0; border-top: 1px solid var(--border-inv); }
.news li { display: grid; grid-template-columns: minmax(96px, 140px) 1fr; gap: 12px 24px; padding: 16px 0; border-bottom: 1px solid var(--border-inv); font-size: 15px; line-height: 1.9; letter-spacing: .04em; }
.news time { font-family: var(--serif-en); font-size: 16px; letter-spacing: .1em; color: var(--accent-l); font-variant-numeric: tabular-nums; }
.disclaimer { margin: clamp(28px,3vw,40px) 0 0; font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: var(--muted-inv); }
@media (max-width: 639.98px) { .dl > div, .news li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- お問い合わせフォーム ---------- */
.form { max-width: 760px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(24px,3vw,48px); }
.field { position: relative; margin-top: clamp(24px,2.6vw,32px); }
.field label { display: flex; align-items: baseline; gap: 10px; font-size: 13px; letter-spacing: .1em; color: var(--muted-inv); }
.req { font-size: 11px; letter-spacing: .2em; color: var(--accent-l); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 56px; padding: 14px 0; margin: 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(184,149,90,.4); border-radius: 2px 2px 0 0;
  color: var(--text-inv); font: inherit; font-size: 16px; letter-spacing: .04em; line-height: 1.6; outline: none;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--accent-l) 50%), linear-gradient(135deg, var(--accent-l) 50%, transparent 50%); background-position: calc(100% - 16px) 26px, calc(100% - 11px) 26px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; cursor: pointer; }
.field select option { background: var(--panel); color: var(--text-inv); }
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(178,171,160,.5); }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent-l); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); pointer-events: none; }
.field:focus-within .field__line { transform: scaleX(1); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-bottom-color: #E0836E; }
.field.is-error label { color: #E0836E; }
.field__err { display: none; margin-top: 8px; font-size: 12px; letter-spacing: .06em; color: #E0836E; }
.field.is-error .field__err { display: flex; align-items: center; gap: 6px; }
.agree { margin-top: clamp(28px,3vw,40px); }
.agree label { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; line-height: 1.8; letter-spacing: .04em; color: var(--text-inv); cursor: pointer; }
.agree input { flex: none; width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--accent-l); }
.agree a { color: var(--accent-l); border-bottom: 1px solid rgba(217,188,133,.5); }
.agree.is-error label { color: #E0836E; }
.form__note { margin: clamp(24px,3vw,32px) 0 0; font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: var(--muted-inv); text-wrap: pretty; }
.form__submit { margin-top: clamp(28px,3vw,40px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.form__submit .btn { cursor: pointer; }
.form__submit .btn:disabled { opacity: .5; cursor: default; transform: none; }
.form__status { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--border-inv); border-radius: 2px; font-size: 14px; line-height: 1.8; letter-spacing: .04em; color: var(--sub-inv); }
.form__status[hidden] { display: none; }
.form__status.is-ng { border-color: rgba(224,131,110,.5); color: #E0836E; }
.form__status.is-ok { border-color: rgba(217,188,133,.55); color: var(--accent-l); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- プライバシーポリシー ---------- */
.legal { max-width: 760px; }
.legal__pre { margin: 0; font-size: 15px; line-height: 2; letter-spacing: .04em; text-wrap: pretty; }
.article { padding: clamp(32px,4vw,48px) 0 0; }
.article + .article { margin-top: clamp(24px,3vw,40px); border-top: 1px solid var(--border-inv); }
.article__title { margin: 0; display: flex; align-items: baseline; gap: 14px; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(19px,1.6vw,22px); line-height: 1.6; letter-spacing: .06em; }
.article__no { font-family: var(--serif-en); font-size: 22px; color: var(--accent); }
.article p { margin: 18px 0 0; font-size: 15px; line-height: 2; letter-spacing: .04em; text-wrap: pretty; }
.tlist { list-style: none; margin: 14px 0 0; padding: 0; }
.tlist li { font-size: 15px; line-height: 2; letter-spacing: .04em; padding-left: 1em; text-indent: -1em; }
.legal__addr { margin: 18px 0 0; font-size: 15px; line-height: 2; letter-spacing: .04em; }
.legal__date { margin-top: 18px; font-size: 13px; color: var(--muted-inv); letter-spacing: .08em; }

/* ---------- 404 ---------- */
.p404 { position: relative; min-height: var(--svh100, 100svh); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--bg); }
.p404__inner { position: relative; padding: 140px var(--gutter) 96px; display: flex; flex-direction: column; align-items: center; max-width: 640px; }
.owl { width: clamp(120px,16vw,180px); height: auto; color: var(--accent-l); margin-bottom: clamp(24px,3vw,40px); filter: drop-shadow(0 0 8px rgba(217,188,133,.25)); }
.p404__code { font-family: var(--serif-en); font-size: 12px; letter-spacing: .32em; color: var(--accent); }
.p404__title { margin: 16px 0 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(26px,3vw,40px); line-height: 1.5; letter-spacing: .06em; }
.p404__text { margin: clamp(20px,2.4vw,28px) 0 0; font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--sub-inv); }
.p404__text + .p404__text { margin-top: 12px; }
.p404 .btn { margin-top: clamp(32px,3vw,44px); }

/* ---------- 関連サービス（現在のページ） ---------- */
.card[aria-current="page"] { outline-color: rgba(217,188,133,.6); box-shadow: 0 0 0 1px rgba(217,188,133,.45), 0 30px 60px -30px rgba(0,0,0,.8); }
.card__here { font-family: var(--serif-en); font-size: 11px; letter-spacing: .28em; color: var(--accent); }

@media (min-width: 1024px) {
  .split__head--sticky { position: sticky; top: 120px; }
}

/* ---------- 小さなユーティリティ ---------- */
.mt-2 { margin-top: 14px; }
.h2--top { margin-top: 0; }
.lead--muted { color: var(--muted-inv); }
ol.route__steps, ol.creed, ol.chapnav { list-style: none; margin-left: 0; padding-left: 0; }
.req--opt { color: var(--muted-inv); }
.agree .req { margin-left: 8px; }
.chapter__title--mid { margin-top: clamp(28px,3vw,40px); }

/* 段落の文節まとまり（現行サイトと同じ）: PC はまとまりを崩さず折り返し、スマホは普通に流す */
.s { display: inline-block; max-width: 100%; }   /* 文のかたまり: スマホでも1かたまりに（9/29）。入りきらなければ文の頭で改行する */
/* 流れ図の両端ラベル（申し入れ / 出口） */
.route__end { display: block; position: relative; margin-left: 0; font-family: var(--serif-ja); font-size: 13px; letter-spacing: .16em; color: var(--accent-l); }
.route__end--start { margin-bottom: clamp(24px,3vw,36px); }
.route__end--goal { margin-top: clamp(24px,3vw,36px); }

/* =========================================================
   代表からの手紙: 現行サイトと同じ手書き風の書体（Klee One）と点線の罫線
   罫線は 38px ごと（行の高さ）。本文・引用・箇条・段落の間をすべて 38px の倍数にして線に揃える
   ========================================================= */
@font-face { font-family: "Klee One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/font/klee-one-400.woff2") format("woff2"); }
@font-face { font-family: "Klee One"; font-style: normal; font-weight: 600; font-display: swap; src: url("/font/klee-one-600.woff2") format("woff2"); }
.chapter__body {
  --lh: 38px; --dash-on: 5px; --dash-off: 5px;
  position: relative; z-index: 0;
  font-family: "Klee One", var(--serif-ja); font-size: calc(17.5px * 1.015); line-height: var(--lh); letter-spacing: .02em;
}
.chapter__body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), rgba(140,106,54,.3) calc(var(--lh) - 1px), rgba(140,106,54,.3) var(--lh));
  -webkit-mask-image: repeating-linear-gradient(to right, #000 0, #000 var(--dash-on), transparent var(--dash-on), transparent calc(var(--dash-on) + var(--dash-off)));
  mask-image: repeating-linear-gradient(to right, #000 0, #000 var(--dash-on), transparent var(--dash-on), transparent calc(var(--dash-on) + var(--dash-off)));
}
.chapter__body > * { margin: 0 0 var(--lh); }
.chapter__body > *:last-child { margin-bottom: 0; }
.chapter__body p + p, .chapter__body ul + p, .chapter__body p + ul { margin-top: 0; }
.chapter__body strong { font-weight: 600; }
.chapter__body .pull { padding: 0 0 0 20px; font-family: "Klee One", var(--serif-ja); font-size: 20px; line-height: var(--lh); letter-spacing: .03em; }
.chapter__body .chapter__list { margin: 0 0 var(--lh); }
.chapter__body .chapter__list li { line-height: var(--lh); }
.chapter__body .chapter__list li::before { top: calc(var(--lh) / 2 - 3px); }
.chapter__body .chapter__title--mid { margin: 0 0 var(--lh); line-height: calc(var(--lh) * 2); font-size: clamp(24px,2.4vw,30px); }
/* 段落・引用・箇条の間も 1 行分（罫線 1 本分）空ける */
.chapter__body > p, .chapter__body > ul, .chapter__body > blockquote, .chapter__body > h2 { margin: 0 0 var(--lh); }
.chapter__body > *:last-child { margin-bottom: 0; }
.chapter__body > blockquote.pull { margin: 0 0 var(--lh); padding: 0 0 0 20px; }


/* =========================================================
   領域と業態: 比較用の3案（view.html「現在地」で切替。<html data-record="book|door|lamp">）
   ========================================================= */
/* 数字の周りの円は消す（全案共通） */
.stat__ring::before, .stat__ring::after { display: none; }
.stat__ring { width: auto; aspect-ratio: auto; }

.rv--book, .rv--door, .rv--lamp { display: none; }
:root[data-record] .rv--0 { display: none; }
:root[data-record="book"] .rv--book, :root[data-record="door"] .rv--door, :root[data-record="lamp"] .rv--lamp { display: block; }
.dx__btn { display: block; width: 100%; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dx__btn:focus-visible { outline: 2px solid var(--accent-l); outline-offset: 3px; }
.dx__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.is-open > .dx__body { grid-template-rows: 1fr; }
.dx__clip { overflow: hidden; min-height: 0; }
.dx__items { list-style: none; margin: 0; padding: 0; }

/* ---------- 魔導書の章: 革装の本を見開きで。目次の章を押すとその章のページが開く ---------- */
.book { margin-top: clamp(28px,3vw,40px); padding: clamp(10px,1.4vw,16px); border-radius: 6px;
  background: linear-gradient(135deg, #2a1f14, #1a130c 55%, #241a10); box-shadow: 0 40px 60px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(217,188,133,.35), inset 0 0 0 7px #1a130c, inset 0 0 0 8px rgba(217,188,133,.4); }
.book__pages { display: grid; grid-template-columns: 1fr; background: linear-gradient(90deg, #efe6d2, #f5eedf 48%, #e2d6bd 50%, #f5eedf 52%, #efe6d2); border-radius: 3px; color: var(--text); box-shadow: inset 0 0 40px rgba(120,90,50,.25); }
.book__page { position: relative; padding: clamp(24px,4vw,48px) clamp(20px,4vw,48px); }
.book__page::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(140,106,54,.35); pointer-events: none; }
@media (min-width: 1024px) { .book__pages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1023.98px) { .book__pages { background: linear-gradient(180deg, #f5eedf, #efe6d2); } .book__page + .book__page { padding-top: 0; } .book__page + .book__page::before { top: -1px; border-top: 0; } .book__page:first-child::before { bottom: -1px; border-bottom: 0; } }
.book__toc { list-style: none; margin: 0; padding: 0; }
.book__ch { border-bottom: 1px dashed rgba(140,106,54,.4); }
.book__ch .dx__btn { display: flex; align-items: baseline; gap: 12px; padding: 16px 4px; }
.book__no { font-family: var(--serif-en); font-size: 15px; color: var(--accent-d); }
.book__name { font-family: var(--serif-ja); font-size: clamp(17px,1.5vw,20px); letter-spacing: .08em; }
.book__leader { flex: 1; border-bottom: 1px dotted rgba(140,106,54,.5); transform: translateY(-4px); }
.book__mark { flex: none; width: 10px; height: 18px; background: var(--accent-d); clip-path: polygon(0 0,100% 0,100% 100%,50% 75%,0 100%); transform: translateY(2px); transition: transform .4s var(--ease), background .3s; }
.book__ch.is-open .book__mark { transform: translateY(8px); background: #A33A2E; }
.book__ch .dx__items { padding: 0 4px 18px 32px; font-family: "Klee One", var(--serif-ja); font-size: 15px; line-height: 2; color: #3A3F4A; transform-origin: top; transform: rotateX(-50deg); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.book__ch.is-open .dx__items { transform: none; opacity: 1; }
.book__ch .dx__items li::before { content: "—  "; color: var(--accent-d); }

/* ---------- 鍵と扉: 7枚の扉。押すと両開きに開いて奥に業態が見える ---------- */
.doors { list-style: none; margin: clamp(28px,3vw,40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px,3vw,32px) clamp(12px,2vw,24px); }
@media (min-width: 768px) { .doors { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .doors { grid-template-columns: repeat(7, 1fr); } }
.door { display: flex; flex-direction: column; gap: 10px; }
.door__lintel { margin: 0; min-height: 2.8em; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; font-family: var(--serif-ja); font-size: 14px; line-height: 1.4; letter-spacing: .06em; }
.door__lintel span { font-family: var(--serif-en); font-size: 12px; color: var(--accent); }
.door__frame { position: relative; aspect-ratio: 3 / 5; border: 1px solid rgba(217,188,133,.6); border-radius: 999px 999px 2px 2px; outline: 1px solid rgba(184,149,90,.25); outline-offset: 5px; overflow: hidden; perspective: 900px;
  background: radial-gradient(ellipse 80% 60% at 50% 70%, rgba(217,188,133,.28), rgba(217,188,133,.04) 70%), #120f0b; }
.door__inside { position: absolute; inset: 22% 8% 8%; display: flex; align-items: center; justify-content: center; }
.door__inside .dx__items { display: flex; flex-direction: column; gap: 6px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--text-inv); opacity: 0; transition: opacity .5s .35s; }
.door.is-open .door__inside .dx__items { opacity: 1; }
.door__frame .dx__btn { position: absolute; inset: 0; display: flex; }
.door__leaf { position: relative; flex: 1; height: 100%; background: linear-gradient(180deg, #3a2a1a, #22180e); border: 1px solid rgba(217,188,133,.35); transition: transform .9s cubic-bezier(.6,.05,.25,1); box-shadow: inset 0 0 0 6px rgba(0,0,0,.25), inset 0 0 0 7px rgba(217,188,133,.2); }
.door__leaf--l { transform-origin: left center; border-radius: 999px 0 0 0 / 60% 0 0 0; }
.door__leaf--r { transform-origin: right center; border-radius: 0 999px 0 0 / 0 60% 0 0; }
.door.is-open .door__leaf--l { transform: rotateY(-100deg); }
.door.is-open .door__leaf--r { transform: rotateY(100deg); }
.door__keyhole { position: absolute; right: 6px; top: 55%; width: 8px; height: 14px; background: radial-gradient(circle at 50% 30%, var(--accent-l) 0 2.5px, transparent 3px), linear-gradient(var(--accent-l), var(--accent-l)) 50% 80% / 2px 7px no-repeat; filter: drop-shadow(0 0 4px rgba(217,188,133,.6)); }
.door:hover .door__leaf { filter: brightness(1.15); }

/* ---------- ランタン: 1本の糸に吊られた7つの灯り。押すと灯がともり、照らされた下に業態が浮かぶ ---------- */
.lamps { position: relative; list-style: none; margin: clamp(28px,3vw,40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 768px) { .lamps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .lamps { grid-template-columns: repeat(7, 1fr); } .lamps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; border-top: 1px solid rgba(217,188,133,.4); border-radius: 50% / 0 0 100% 100%; } }
.lamp { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lamp .dx__btn { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lamp__cord { width: 1px; height: 28px; background: rgba(217,188,133,.5); }
.lamp__body { width: 56px; height: 90px; transform-origin: 50% 0; animation: lamp-sway 5s ease-in-out infinite; }
.lamp:nth-child(2n) .lamp__body { animation-delay: -2s; }
@keyframes lamp-sway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.lamp__body svg { width: 100%; height: 100%; overflow: visible; }
.lamp__cap, .lamp__base { fill: #2b2117; stroke: var(--accent-l); stroke-width: .8; }
.lamp__ring { fill: none; stroke: var(--accent-l); stroke-width: .8; }
.lamp__glass { fill: rgba(217,188,133,.06); stroke: var(--accent-l); stroke-width: .8; transition: fill .6s; }
.lamp__flame { fill: rgba(217,188,133,.25); transition: fill .5s, filter .5s; }
.lamp.is-open .lamp__glass { fill: rgba(255,210,130,.35); }
.lamp.is-open .lamp__flame { fill: #ffd68a; filter: drop-shadow(0 0 6px #ffcf70) drop-shadow(0 0 16px rgba(255,190,90,.8)); animation: flicker 1.8s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scaleY(1); } 40% { transform: scaleY(1.12) translateY(-.5px); } 70% { transform: scaleY(.94); } }
.lamp__flame { transform-origin: 20px 40px; }
.lamp .dx__btn:hover .lamp__flame { fill: rgba(255,214,138,.6); }
.lamp__label { display: flex; flex-direction: column; gap: 2px; }
.lamp__no { font-family: var(--serif-en); font-size: 12px; color: var(--accent); }
.lamp__name { font-family: var(--serif-ja); font-size: 14px; line-height: 1.5; letter-spacing: .06em; }
.lamp__light { width: 100%; }
.lamp__light .dx__items { margin-top: 10px; padding: 14px 8px 16px; background: radial-gradient(ellipse 90% 80% at 50% 0%, rgba(255,205,120,.2), transparent 75%); font-size: 13px; line-height: 1.9; color: var(--text-inv); }
@media (prefers-reduced-motion: reduce) { .lamp__body, .lamp.is-open .lamp__flame { animation: none; } }
@media (max-width: 767.98px) { .door__frame { aspect-ratio: 4 / 5; } .doors { gap: 18px 14px; } }

/* ランタン採用（支給 SVG）。押すと蝋燭に火がともり、窓の内側が照らされる */
.rv--lamp { display: block !important; }
.lamp__body { width: 72px; height: 83px; }
.lamp__svg { width: 100%; height: 100%; overflow: visible; }
.lamp__glow { opacity: 0; transition: opacity .6s var(--ease); }
.lamp__wax { opacity: .55; transition: opacity .4s; }
.lamp__fire { opacity: 0; transform-origin: 100px 122px; transform: scale(.3); transition: opacity .35s, transform .5s var(--ease-star); }
.lamp__halo { opacity: .35; filter: blur(4px); }
.lamp.is-open .lamp__glow { opacity: 1; }
.lamp.is-open .lamp__wax { opacity: .95; }
.lamp.is-open .lamp__fire { opacity: 1; transform: scale(1); }
.lamp.is-open .lamp__flame { animation: flicker 1.6s ease-in-out infinite; transform-origin: 100px 122px; }
.lamp.is-open .lamp__svg { filter: drop-shadow(0 0 10px rgba(255,200,110,.35)); }
.lamp .dx__btn:hover .lamp__fire { opacity: .45; transform: scale(.7); }
.lamp.is-open .dx__btn:hover .lamp__fire { opacity: 1; transform: scale(1); }
@media (max-width: 639.98px) { .lamp__body { width: 64px; height: 74px; } }

/* ランタン: 横に渡した棒に、上のリングを引っ掛けて吊るす */
.lamps::before { display: none !important; }
.lamps { gap: 0 16px; }
.lamp { position: relative; padding-top: 18px; }
.lamp::before { content: ""; position: absolute; left: -8px; right: -8px; top: 26px; height: 2px; background: linear-gradient(180deg, #e5cc94, #9c7a40); box-shadow: 0 1px 2px rgba(0,0,0,.6); z-index: 2; }
.lamp:first-child::before, .lamps > .lamp:nth-child(2n+1)::before { left: 0; }
.lamp .dx__btn { gap: 12px; }
/* リング（SVG の y=4〜28）が棒をくぐる位置に合わせる */
.lamp__body { margin-top: 0; transform-origin: 50% 7%; }
.lamp__svg { position: relative; z-index: 3; }
/* 灯りがランタンから下へ広がり、番号・名前・業態まで照らす */
.lamp::after { content: ""; position: absolute; left: -12%; right: -12%; top: 40px; bottom: -8px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 18%, rgba(255,205,120,.30), rgba(255,190,100,.12) 45%, transparent 75%);
  opacity: 0; transition: opacity .7s var(--ease); }
.lamp.is-open::after { opacity: 1; }
.lamp .dx__btn, .lamp__light { position: relative; z-index: 1; }
.lamp__light .dx__items { background: none; margin-top: 4px; padding: 8px 6px 24px; }
.lamp__label, .lamp__light .dx__items { transition: color .6s, text-shadow .6s; }
.lamp.is-open .lamp__name, .lamp.is-open .dx__items { color: #fbeccb; text-shadow: 0 0 10px rgba(255,200,110,.45); }
.lamp.is-open .lamp__no { color: #f0cf8a; text-shadow: 0 0 8px rgba(255,200,110,.5); }
.lamps > .lamp { margin-bottom: 28px; }
/* 棒をリングの中心に通す（リング中心 = SVG の y16/230） */
.lamp::before { top: calc(18px + 83px * 16 / 230 - 1px); left: -9px; right: -9px; }
@media (max-width: 639.98px) { .lamp::before { top: calc(18px + 74px * 16 / 230 - 1px); } }
/* 灯りを業態の下端まで届かせる */
.lamp::after { top: 30px; bottom: -24px; background: radial-gradient(ellipse 62% 78% at 50% 12%, rgba(255,205,120,.32), rgba(255,190,100,.14) 50%, rgba(255,190,100,.05) 72%, transparent 88%); }
/* 棒の継ぎ目をなくす（端の処理は列数ごとに） */
.lamps > .lamp:nth-child(2n+1)::before { left: -9px; }
.lamps > .lamp:first-child::before { left: 0; }
@media (max-width: 767.98px) { .lamps > .lamp:nth-child(2n+1)::before { left: 0; } .lamps > .lamp:nth-child(2n)::before { right: 0; } }
@media (min-width: 768px) and (max-width: 1279.98px) { .lamps > .lamp:nth-child(4n+1)::before { left: 0; } .lamps > .lamp:nth-child(4n)::before { right: 0; } }
@media (min-width: 1280px) { .lamps > .lamp:last-child::before { right: 0; } }
/* 灯りは円く柔らかく減衰させ、四角い縁が出ないようにする */
.lamp::after { left: -20%; right: -20%; top: 10px; bottom: -40px; background: radial-gradient(closest-side at 50% 32%, rgba(255,205,120,.30), rgba(255,190,100,.13) 55%, rgba(255,190,100,.04) 80%, transparent 100%); }
.lamp::after { top: 0; bottom: -90px; background: radial-gradient(closest-side at 50% 40%, rgba(255,205,120,.30), rgba(255,190,100,.15) 50%, rgba(255,190,100,.06) 78%, transparent 100%); }

/* ランタン: 横棒をやめ、上から垂れる縦の棒の先にリングを掛けて吊るす */
.lamp { padding-top: 34px; }
.lamp::before, .lamps > .lamp:first-child::before, .lamps > .lamp:nth-child(n)::before {
  left: 50%; right: auto; top: 0; width: 2px; height: 36px; margin-left: -1px;
  background: linear-gradient(90deg, #9c7a40, #e5cc94 50%, #9c7a40); box-shadow: none; z-index: 2;
}
@media (max-width: 639.98px) { .lamp::before, .lamps > .lamp:nth-child(n)::before { height: 36px; top: 0; } }
/* 灯り: 全体をぼかさず、ランタンの真下の文字だけを細い光の筋で照らす */
.lamp::after { left: 12%; right: 12%; top: calc(34px + 83px * .82); bottom: 0; background: radial-gradient(ellipse 55% 95% at 50% 0%, rgba(255,205,120,.26), rgba(255,195,105,.1) 55%, transparent 80%); }
@media (max-width: 639.98px) { .lamp::after { top: calc(34px + 74px * .82); left: 6%; right: 6%; } }
/* 光の筋の上端をぼかして、ランタンの下からにじみ出るように */
.lamp::after { top: calc(34px + 83px * .6); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent 100%); background: radial-gradient(ellipse 58% 85% at 50% 12%, rgba(255,205,120,.30), rgba(255,195,105,.12) 55%, transparent 82%); }
@media (max-width: 639.98px) { .lamp::after { top: calc(34px + 74px * .6); } }
/* ランタン: 横の棒を戻す（列のすき間をなくし、各セルの上端に棒を通して縦棒をそこから吊るす） */
.lamps { column-gap: 0; }
.lamp { padding-left: 8px; padding-right: 8px; background: linear-gradient(180deg, #e5cc94, #9c7a40) 0 0 / 100% 2px no-repeat; }

/* =========================================================
   整列の点検（2026-09-25）
   ========================================================= */
/* 下層ヒーロー: 見出しだけになったので高さを詰める */
.phero { min-height: 0; }
.phero__inner { padding-top: clamp(128px,14vw,184px); padding-bottom: clamp(40px,5vw,72px); }
/* 見出しと本文の2列: 右の列の上端を、左の見出し（h2）の上端に揃える */
@media (min-width: 1024px) {
  .split { align-items: start; }
  .split > .split__head .h2 { margin-top: 0; }
  .split > .split__head .eyebrow + .h2 { margin-top: clamp(20px,2.4vw,32px); }
  .split > :not(.split__head) { padding-top: calc(var(--eyebrow-h, 0px)); }
  .split:has(> .split__head .eyebrow) { --eyebrow-h: calc(17px + clamp(20px,2.4vw,32px)); }
}
/* サービス概要の図: 見出し「事業の価値が」と図の見出し「関わりから、出口まで」の上端を揃え、図の左右を見出しの罫線に合わせる */
.scheme-grid { align-items: start; }
.scheme-grid__head .h2 { margin-top: 0; }
.scheme__head { line-height: 1.5; min-height: 0; }
.scheme__svg { max-width: none; width: 100%; margin: clamp(20px,3vw,32px) 0 0; }
@media (min-width: 1024px) {
  .scheme-grid__head .h2 { line-height: 1.5; }
  /* 図の見出しの文字の上端 ＝ 見出しh2の1行目の文字の上端 になるよう、h2 の行間ぶん下げる */
  .scheme__head { margin-top: calc((clamp(30px,3.4vw,46px) * 1.5 - 15px * 1.5) / 2); }
  .scheme-grid__pay { align-self: start; margin-top: clamp(40px,5vw,64px); }
}
@media (min-width: 1024px) { .scheme__head { margin-top: calc((clamp(30px,3.4vw,46px) - 15px) / 4); } }
@media (min-width: 1024px) {
  .scheme__head { margin-top: calc((clamp(30px,3.4vw,46px) - 15px) / 4 - 6.5px); }
  #lead .split > div:not(.split__head) > .en-title { margin-top: 10px; }
}
/* 下層: ページ見出しの直後のセクションは上の余白を詰める */
.phero + .sec > .sec__inner, .phero + .sec > .container { padding-top: clamp(32px,4vw,56px); }
.phero { min-height: 0 !important; align-items: flex-start; }
.phero__inner { padding-top: clamp(120px,12vw,160px) !important; padding-bottom: clamp(32px,4vw,56px) !important; }

/* ランタン: 押せることが分かるように
   ・未点灯の炎が、左から順に一瞬ふっと灯りかける（波のように）
   ・名前の下に小さな「灯す」ボタン。点灯中は「消す」に変わる
   ・カーソル／タップで少し持ち上がる */
.lamp .dx__btn { cursor: pointer; transition: transform .35s var(--ease); }
.lamp .dx__btn:hover, .lamp .dx__btn:focus-visible { transform: translateY(-3px); }
.lamp:not(.is-open) .lamp__fire { animation: lamp-hint 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .6s); }
.lamps > .lamp:nth-child(1) { --i: 0; } .lamps > .lamp:nth-child(2) { --i: 1; } .lamps > .lamp:nth-child(3) { --i: 2; } .lamps > .lamp:nth-child(4) { --i: 3; } .lamps > .lamp:nth-child(5) { --i: 4; } .lamps > .lamp:nth-child(6) { --i: 5; } .lamps > .lamp:nth-child(7) { --i: 6; }
@keyframes lamp-hint { 0%, 78%, 100% { opacity: 0; transform: scale(.3); } 84% { opacity: .55; transform: scale(.75); } 90% { opacity: 0; transform: scale(.4); } }
.lamp__hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px 4px 8px; border: 1px solid rgba(217,188,133,.45); border-radius: 999px; font-size: 11px; letter-spacing: .14em; color: var(--accent-l); transition: background .3s, border-color .3s; }
.lamp__hint i { width: 6px; height: 9px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: var(--accent-l); opacity: .5; }
.lamp .dx__btn:hover .lamp__hint { background: rgba(217,188,133,.12); border-color: var(--accent-l); }
.lamp__hint-off { display: none; }
.lamp.is-open .lamp__hint-on { display: none; }
.lamp.is-open .lamp__hint-off { display: inline; }
.lamp.is-open .lamp__hint { border-color: rgba(217,188,133,.25); color: var(--muted-inv); }
.lamp.is-open .lamp__hint i { background: #ffd68a; opacity: 1; box-shadow: 0 0 6px #ffcf70; }
@media (prefers-reduced-motion: reduce) { .lamp:not(.is-open) .lamp__fire { animation: none; } }
.lamp__label { align-items: center; }
.lamp__hint { align-self: center; }

/* =========================================================
   ランタンの登場: 横棒が左から伸び、縦棒がしなりながら下り、ランタンが吊られて慣性で揺れる
   （.lamps に .is-armed で待機、.is-in で順に登場。--i は左からの番号）
   ========================================================= */
.lamps.is-armed .lamp { background-size: 0% 2px; }
.lamps.is-armed .lamp::before { transform: scaleY(0); transform-origin: 50% 0; }
.lamps.is-armed .lamp__body { opacity: 0; transform: translateY(-26px) rotate(0deg); animation: none; }
.lamps.is-armed .lamp__label { opacity: 0; transform: translateY(8px); }
.lamps.is-in .lamp { background-size: 100% 2px; transition: background-size .45s cubic-bezier(.6,0,.3,1) calc(var(--i) * .16s); }
.lamps.is-in .lamp::before { animation: rod-flex .9s cubic-bezier(.3,1.4,.5,1) calc(var(--i) * .16s + .25s) both; }
.lamps.is-in .lamp__body { opacity: 1; transform: none;
  transition: opacity .4s ease calc(var(--i) * .16s + .45s);
  animation: lamp-drop 1.9s cubic-bezier(.2,.8,.3,1) calc(var(--i) * .16s + .45s) both, lamp-sway 5s ease-in-out calc(var(--i) * .16s + 2.35s) infinite; }
.lamps.is-in .lamp__label { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--i) * .16s + .9s), transform .6s var(--ease) calc(var(--i) * .16s + .9s); }
/* 縦棒: 伸びきるときに少し行きすぎて戻る（しなり） */
@keyframes rod-flex { 0% { transform: scaleY(0); } 55% { transform: scaleY(1.18) skewX(3deg); } 75% { transform: scaleY(.94) skewX(-2deg); } 90% { transform: scaleY(1.03) skewX(.6deg); } 100% { transform: scaleY(1) skewX(0); } }
/* ランタン: 下りてきて吊られた勢いで大きく揺れ、だんだん収まる */
@keyframes lamp-drop {
  0% { transform: translateY(-26px) rotate(0deg); }
  22% { transform: translateY(3px) rotate(9deg); }
  40% { transform: translateY(0) rotate(-7deg); }
  56% { transform: rotate(5deg); }
  70% { transform: rotate(-3deg); }
  83% { transform: rotate(1.5deg); }
  100% { transform: rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) { .lamps.is-armed .lamp, .lamps.is-armed .lamp::before, .lamps.is-armed .lamp__body, .lamps.is-armed .lamp__label { background-size: 100% 2px; transform: none; opacity: 1; animation: none; } }

/* ランタン（波の登場）: 旧の横棒・登場アニメは使わず、綱は SVG、縦棒とランタンは同じ支点で一緒に振れる */
.lamps.is-wave .lamp { background: none; }
.lamp__rope { position: absolute; left: 0; right: 0; top: -30px; height: 60px; pointer-events: none; z-index: 4; }
.lamp__rope svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lamp__rope path { fill: none; stroke: #d6bb82; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.lamps.is-wave .lamp::before { transform-origin: 50% 0; transform: translateY(var(--ry, 0px)) rotate(var(--ang, 0deg)) scaleY(0); transition: none; animation: none; }
.lamps.is-wave .lamp.is-hung::before { transform: translateY(var(--ry, 0px)) rotate(var(--ang, 0deg)) scaleY(1); }
.lamps.is-wave .lamp__body { animation: none !important; transform-origin: 50% -34px; opacity: 0; transform: translateY(calc(var(--ry, 0px) - 30px)) rotate(var(--ang, 0deg)); }
.lamps.is-wave .lamp.is-hung .lamp__body { opacity: 1; transform: translateY(var(--ry, 0px)) rotate(var(--ang, 0deg)); transition: opacity .25s ease; }
.lamps.is-wave .lamp__label { opacity: 0; transform: translateY(8px); transition: opacity .5s ease .35s, transform .6s var(--ease) .35s; }
.lamps.is-wave .lamp.is-hung .lamp__label { opacity: 1; transform: none; }
@media (max-width: 639.98px) { .lamps.is-wave .lamp__body { transform-origin: 50% -34px; } }
/* スキーム図（作成されたSVGをそのまま）: ページの文字設定を持ち込まない */
.scheme__svg--raw { letter-spacing: normal; word-spacing: normal; line-height: normal; font-feature-settings: normal; font-kerning: auto; }
.scheme__svg--raw { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }

/* =========================================================
   お問い合わせ（9/28）: 現行サイトと同じ並び。紹介文の下に、薄い板の上へ枠つきの入力欄を3列で並べる
   ========================================================= */
.clead { max-width: 820px; }
.cbox { margin-top: clamp(48px,6vw,80px); padding: clamp(24px,3vw,40px) clamp(16px,2.4vw,32px); background: rgba(26,24,21,.72); border: 1px solid var(--border-inv); border-radius: 2px; }
.cbox__title { margin: 0 0 clamp(16px,2vw,24px); font-family: var(--serif-en); font-weight: 400; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted-inv); }
.form--grid { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 14px; }
.form--grid .hp { grid-column: 1 / -1; }
.form--grid .field { margin: 0; display: grid; gap: 8px; min-width: 0; }
.form--grid .field--w2 { grid-column: span 2; }
.form--grid .field--wide, .form--grid .agree, .form--grid .form__foot, .form--grid .form__status, .form--grid .form__ts { grid-column: 1 / -1; }
.form__ts:empty { display: none; }   /* 確認が要らないとき・本番以外では場所をとらない */
.form--grid .field label { font-size: 12.5px; letter-spacing: .08em; color: var(--sub-inv); }
.form--grid .field input, .form--grid .field select, .form--grid .field textarea {
  min-height: 48px; padding: 10px 14px;
  background-color: #1F1D1A; border: 1px solid rgba(184,149,90,.32); border-radius: 2px;
  transition: border-color .25s, background-color .25s;
}
.form--grid .field input:hover, .form--grid .field select:hover, .form--grid .field textarea:hover { border-color: rgba(217,188,133,.55); }
.form--grid .field input:focus, .form--grid .field select:focus, .form--grid .field textarea:focus { border-color: var(--accent-l); background-color: #25221E; }
.form--grid .field select { background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; padding-right: 40px; }
.form--grid .field textarea { min-height: 7.5em; line-height: 1.9; }
.form--grid .field.is-error input, .form--grid .field.is-error select, .form--grid .field.is-error textarea { border-color: #E0836E; }
.form--grid .agree { margin: 6px 0 0; }
.form--grid .agree input { width: 20px; height: 20px; margin-top: 4px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.form__foot .form__note { margin: 0; max-width: 46ch; }
.form__foot .form__submit { margin: 0; }
.form--grid .form__status { margin: 0; }
@media (max-width: 1023.98px) { .form--grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .form--grid .field--w2 { grid-column: 1 / -1; } }
@media (max-width: 639.98px) {
  .form--grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .form--grid .field--w2 { grid-column: auto; }
  .cbox { padding: 20px 16px 24px; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__foot .form__submit { justify-content: center; }
}
.form--grid .agree input { -webkit-appearance: none; appearance: none; position: relative; background: #1F1D1A; border: 1px solid rgba(184,149,90,.45); border-radius: 2px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.form--grid .agree input:hover { border-color: var(--accent-l); }
.form--grid .agree input:checked { background: var(--accent-l); border-color: var(--accent-l); }
.form--grid .agree input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.form--grid .agree input:focus-visible { outline: 1px solid var(--accent-l); outline-offset: 2px; }
.form--grid .agree.is-error input { border-color: #E0836E; }

/* =========================================================
   下層ページの背景（9/28）: トップと同じく、ページ全体に淡い金のモヤを一続きに敷く
   セクションごとの黒い地は透明にして、境目で色が切れないようにする（手紙の紙・404 はそのまま）
   ========================================================= */
#main:has(> .phero) {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 50% 440px at 72% 360px, rgba(217,188,133,.05), transparent 72%),
    radial-gradient(ellipse 36% 400px at 14% 340px, rgba(60,48,32,.35), transparent 75%),
    radial-gradient(ellipse 38% 560px at 18% 1180px, rgba(217,188,133,.045), transparent 72%),
    radial-gradient(ellipse 60% 600px at 64% 1260px, rgba(40,32,22,.45), transparent 75%),
    radial-gradient(ellipse 44% 520px at 82% 1960px, rgba(217,188,133,.045), transparent 72%),
    radial-gradient(ellipse 60% 540px at 30% 1980px, rgba(40,32,22,.45), transparent 75%);
  /* 模様は 2400px ごとに繰り返す。つなぎ目で切れて横線が出ないよう、どの楕円も1枚の中で消えきる位置と大きさにする */
  background-size: 100% 2400px;
  background-repeat: repeat-y;
}
/* 暗い地の淡いグラデーションは色の段が縞に見えやすいので、目に見えないほど薄い粒子を重ねて段をならす */
#main:has(> .phero)::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .045;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
#main:has(> .phero) > * { position: relative; z-index: 1; }
#main:has(> .phero) > .phero,
#main:has(> .phero) > .sec,
#main:has(> .phero) > .sec--tint { background: transparent; }
/* 冒頭のぼかし写真は使わない（強いぼかしと暗さの重ねで横縞のざらつきが出るため）。モヤは上の背景のグラデーションで出す */
#main:has(> .phero) .phero__bg, #main:has(> .phero) .phero__veil { display: none; }

/* お問い合わせ: 全体の枠をカードと同じ意匠に（線と角の段は main.js の [data-frame] が実寸で描く） */
.cbox { position: relative; background: none; border: 0; padding: clamp(44px,4.6vw,64px) clamp(36px,4.4vw,64px); }
.frame__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; filter: drop-shadow(0 24px 24px rgba(0,0,0,.45)); }
.cbox > :not(.frame__svg) { position: relative; z-index: 1; }
.cbox__title { text-align: center; color: #c3a468; }
@media (max-width: 639.98px) { .cbox { padding: 40px 30px 40px; } }

/* スキーム図の文字: Illustrator 側で「プロポーショナルメトリクス（詰め）」がかかった幅で左端の位置が書き出されている。
   SVG にはその設定が残らないので、ここで同じ詰め（palt）を効かせて、Illustrator と同じ幅・同じ中央に戻す */
.scheme__svg--raw text { font-feature-settings: "palt"; }

/* サービス概要: ページ見出しは画面に出さない（読み上げ用に残す）。ヘッダーの下からすぐ図のセクションを始める */
.phero--notitle .phero__inner { padding-top: 72px !important; padding-bottom: 0 !important; }

/* 会社概要（9/28）: 見出しは日本語で。右の列の「行動指針を見る」は、左の表の最後の線（事業内容の下）に下端をそろえる */
.en-title--ja { font-family: var(--serif-ja); font-weight: 500; letter-spacing: .08em; }
#company .split { align-items: stretch; }
.co-side { display: flex; flex-direction: column; }
.co-side__btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 1023.98px) { .co-side__btn { margin-top: 32px; } }

/* =========================================================
   申し入れから面談、その後の流れ（9/28・案2）
   画面を止め、左（スマホは上）に6つの点の航路を出したまま、右（スマホは下）に今の工程を大きく切り替える。
   JS（js/pflow.js）が動かないとき・動きを減らす設定のときは、工程を縦に並べて全部見せる（.is-ready が無い状態）
   ========================================================= */
.pflow { position: relative; margin-top: clamp(24px,3vw,40px); }
.pflow__map { display: none; }
.pflow__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.pflow__card { display: grid; gap: 8px; }
.pflow__cno { font-family: var(--serif-en); font-size: 22px; line-height: 1; color: var(--accent-l); }
.pflow__cname { margin: 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(20px,1.8vw,24px); letter-spacing: .08em; line-height: 1.5; color: var(--text-inv); }
.pflow__text { margin: 0; font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--sub-inv); }
.pflow__text .s { display: block; }
.pflow__text strong { color: var(--text-inv); font-weight: 500; }
.pflow__count { display: none; }

.pflow.is-ready { height: calc(380 * var(--svh, 1svh)); margin-top: 0; }
.pflow.is-ready .pflow__stage { position: sticky; top: 0; height: var(--svh100, 100svh); box-sizing: border-box; padding-top: 96px; padding-bottom: 32px; display: flex; flex-direction: column; justify-content: center; }
.pflow.is-ready .pflow__stage > .eyebrow { margin-bottom: clamp(32px,calc(6 * var(--vh, 1vh)),64px); }
.pflow.is-ready .pflow__grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(48px,7vw,120px); align-items: center; }

/* 航路（全体を常に見せる） */
.pflow.is-ready .pflow__map { display: block; position: relative; padding-left: 40px; }
.pflow__track, .pflow__gold { position: absolute; left: 7px; top: 14px; bottom: 14px; width: 1px; }
.pflow__track { background: repeating-linear-gradient(180deg, rgba(217,188,133,.45) 0 4px, transparent 4px 9px); }
.pflow__gold { background: var(--accent-l); box-shadow: 0 0 6px rgba(217,188,133,.7); transform-origin: top; transform: scaleY(var(--g, 0)); transition: transform .7s var(--ease); }
.pflow__pts { list-style: none; margin: 0; padding: 0; }
.pflow__pt { position: relative; display: flex; align-items: center; gap: 16px; padding: clamp(10px,calc(2 * var(--vh, 1vh)),20px) 0; opacity: .35; transition: opacity .5s; }
.pflow__pt::before { content: ""; position: absolute; left: -40px; top: 50%; width: 14px; height: 14px; margin-top: -7px; transform: rotate(45deg); border: 1px solid var(--accent-l); background: var(--bg); transition: background .4s, box-shadow .4s; }
.pflow__pt.is-on { opacity: 1; }
.pflow__pt.is-on::before { background: var(--accent-l); box-shadow: 0 0 10px rgba(217,188,133,.8); }
.pflow__no { font-family: var(--serif-en); font-size: 15px; color: var(--accent-l); min-width: 24px; }
.pflow__name { font-family: var(--serif-ja); font-weight: 500; font-size: clamp(17px,1.5vw,21px); letter-spacing: .08em; color: var(--text-inv); transition: color .4s; }
.pflow__pt.is-now .pflow__name { color: var(--accent-l); }
.pflow__branch { font-size: 12px; letter-spacing: .08em; color: var(--muted-inv); opacity: 0; transform: translateX(-6px); transition: opacity .5s, transform .6s var(--ease); }
.pflow__branch::before { content: "↘ "; }
.pflow__pt.is-on .pflow__branch { opacity: 1; transform: none; }

/* 今の工程（大きく） */
.pflow.is-ready .pflow__cards { display: block; position: relative; min-height: 300px; }
.pflow.is-ready .pflow__card { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pflow.is-ready .pflow__card.is-now { opacity: 1; transform: none; }
.pflow.is-ready .pflow__cno { font-size: clamp(40px,4vw,56px); }
.pflow.is-ready .pflow__cname { margin-top: 10px; font-size: clamp(28px,2.8vw,40px); }
.pflow.is-ready .pflow__text { margin-top: 12px; font-size: clamp(15px,1.25vw,18px); }
.pflow.is-ready .pflow__count { display: block; margin-top: clamp(24px,calc(4 * var(--vh, 1vh)),40px); font-family: var(--serif-en); font-size: 13px; letter-spacing: .2em; color: var(--muted-inv); text-align: right; }
.pflow__count b { font-weight: 400; color: var(--accent-l); }

@media (max-width: 1023.98px) {
  .pflow.is-ready { height: calc(360 * var(--svh, 1svh)); }
  .pflow.is-ready .pflow__stage { padding-top: 84px; justify-content: center; }
  .pflow.is-ready .pflow__stage > .eyebrow { margin: clamp(8px,calc(3 * var(--vh, 1vh)),28px) 0 clamp(20px,calc(4 * var(--vh, 1vh)),36px); }
  .pflow.is-ready .pflow__grid { grid-template-columns: 1fr; gap: clamp(28px,calc(5 * var(--vh, 1vh)),48px); align-items: start; }
  /* 航路は横向きに（6つの点と短い名前） */
  .pflow.is-ready .pflow__map { padding: 30px 0 0; }
  .pflow__track, .pflow__gold { left: 7px; right: 7px; top: 7px; bottom: auto; width: auto; height: 1px; }
  .pflow__track { background: repeating-linear-gradient(90deg, rgba(217,188,133,.45) 0 4px, transparent 4px 9px); }
  .pflow__gold { transform-origin: left; transform: scaleX(var(--g, 0)); }
  .pflow__pts { display: flex; justify-content: space-between; }
  .pflow__pt { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; width: 15%; }
  .pflow__pt::before { left: 0; top: -30px; margin-top: 0; width: 12px; height: 12px; }
  .pflow__no { font-size: 12px; min-width: 0; }
  .pflow__name { font-size: 11.5px; letter-spacing: .02em; line-height: 1.4; }
  .pflow__branch { display: none; }
  .pflow.is-ready .pflow__cards { min-height: 230px; }
  .pflow.is-ready .pflow__cno { font-size: 34px; }
  .pflow.is-ready .pflow__cname { font-size: 26px; }
  .pflow.is-ready .pflow__text { font-size: 15px; line-height: 1.95; }
  .pflow.is-ready .pflow__count { text-align: left; margin-top: 12px; }
}

/* ---- 流れ（9/28 夕）: 全体を大きく。結びの「面談で終わりではなく〜」も同じ舞台の最後の場面として出す ---- */
.pflow__close { margin-top: 48px; }
.pflow__close-title { margin: 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(24px,2.4vw,34px); line-height: 1.7; letter-spacing: .06em; color: var(--text-inv); }
.pflow__close-note { margin: 20px 0 0; font-size: 15px; line-height: 2.1; letter-spacing: .04em; color: var(--sub-inv); }
.pflow__close-note .s { display: block; }
.pflow__close-note strong { color: var(--text-inv); font-weight: 500; }
.pflow.is-ready { height: calc(460 * var(--svh, 1svh)); }
.pflow.is-ready .pflow__right { position: relative; min-height: 380px; }
.pflow.is-ready .pflow__cards { min-height: 0; position: static; }
.pflow.is-ready .pflow__close { position: absolute; inset: 0 0 auto 0; margin: 0; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.pflow.is-ready.is-end .pflow__close { opacity: 1; transform: none; }
.pflow.is-ready.is-end .pflow__card.is-now { opacity: 0; }
.pflow.is-ready .pflow__count { transition: opacity .5s; }
.pflow.is-ready.is-end .pflow__count { opacity: 0; }
@media (min-width: 1024px) {
  .pflow.is-ready .pflow__stage { padding-top: 104px; padding-bottom: 40px; }
  .pflow.is-ready .pflow__stage > .eyebrow { margin-bottom: clamp(32px,calc(5 * var(--vh, 1vh)),56px); }
  .pflow.is-ready .pflow__grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .pflow.is-ready .pflow__map { padding-left: 52px; }
  .pflow__track, .pflow__gold { left: 9px; }
  .pflow__pt { gap: 20px; padding: clamp(14px,calc(2.9 * var(--vh, 1vh)),30px) 0; }
  .pflow__pt::before { left: -52px; width: 18px; height: 18px; margin-top: -9px; }
  .pflow__no { font-size: clamp(16px,1.3vw,20px); min-width: 30px; }
  .pflow__name { font-size: clamp(20px,1.9vw,28px); }
  .pflow__branch { font-size: 13px; }
  .pflow.is-ready .pflow__cno { font-size: clamp(56px,5.4vw,80px); }
  .pflow.is-ready .pflow__cname { margin-top: 14px; font-size: clamp(36px,3.6vw,54px); }
  .pflow.is-ready .pflow__text { margin-top: 20px; font-size: clamp(17px,1.45vw,21px); line-height: 2; }
  .pflow.is-ready .pflow__close-title { font-size: clamp(30px,3vw,44px); }
  .pflow.is-ready .pflow__close-note { margin-top: 24px; font-size: clamp(15px,1.25vw,18px); }
  .pflow.is-ready .pflow__count { font-size: 15px; }
}
@media (max-width: 1023.98px) {
  .pflow.is-ready { height: calc(420 * var(--svh, 1svh)); }
  .pflow.is-ready .pflow__right { min-height: 300px; }
  .pflow__pt::before { width: 14px; height: 14px; top: -31px; }
  .pflow__no { font-size: 13px; }
  .pflow__name { font-size: 12.5px; }
  .pflow.is-ready .pflow__cno { font-size: 44px; }
  .pflow.is-ready .pflow__cname { font-size: 30px; }
  .pflow.is-ready .pflow__text { font-size: 16px; }
  .pflow.is-ready .pflow__close-title { font-size: 23px; }
  .pflow.is-ready .pflow__close-note { font-size: 14px; line-height: 2; margin-top: 14px; }
}
@media (max-width: 1023.98px) { .pflow__name { word-break: keep-all; overflow-wrap: normal; letter-spacing: 0; } }
/* 結びの場面: 航路は「出口」だけを残して暗くする（線はそのまま） */
.pflow.is-ready.is-end .pflow__pt:not(:last-child) { opacity: .28; }
.pflow.is-ready.is-end .pflow__pt:not(:last-child)::before { box-shadow: none; }
.pflow.is-ready.is-end .pflow__pt:last-child .pflow__name { color: var(--accent-l); }
.pflow.is-ready.is-end .pflow__pt:last-child::before { box-shadow: 0 0 14px rgba(217,188,133,.95), 0 0 0 5px rgba(217,188,133,.14); }

/* =========================================================
   こんな状況ではありませんか（9/28 改）
   左に見出し（PC はスクロールしても残る）、右に6つの状況を2列で。箱や格子の線は使わず、
   アイコンは淡い光の円の中に置き、項目の下には金の細線を左から右へ消えていく形で引く（見出しの eyebrow と同じ語法）
   ========================================================= */
.sit-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px,6vw,112px); align-items: start; }
.sit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(8px,1.4vw,20px) clamp(32px,4vw,64px); }
.sit__item { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: clamp(18px,1.8vw,26px); padding: clamp(22px,2.4vw,32px) 0; }
/* 下の線: 小さな菱形から始まり、右へ溶けて消える */
.sit__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(217,188,133,.55), rgba(217,188,133,.18) 55%, transparent); }
.sit__item::before { content: ""; position: absolute; left: -3px; bottom: -3px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent-l); opacity: .7; }
/* アイコン: 細い円と、その内側の淡い光。外側にもう1本、点線の円 */
.sit__icon { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,188,133,.14), rgba(217,188,133,.03) 62%, transparent 72%);
  box-shadow: inset 0 0 0 1px rgba(217,188,133,.42); transition: box-shadow .6s var(--ease), background .6s var(--ease); }
.sit__icon::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(217,188,133,.22); transition: transform 1.2s var(--ease), border-color .6s; }
.sit__icon img { position: relative; display: block; width: 44px; height: 44px; }
.sit__text { margin: 0; font-family: var(--serif-ja); font-size: clamp(15px,1.15vw,17px); line-height: 1.9; letter-spacing: .04em; color: var(--text-inv); text-wrap: pretty; }
@media (max-width: 1023.98px) {
  .sit-wrap { grid-template-columns: 1fr; gap: clamp(28px,5vw,48px); }
  .sit-wrap__head.split__head--sticky { position: static; }
}
@media (max-width: 639.98px) {
  .sit { grid-template-columns: minmax(0,1fr); gap: 0; }
  .sit__item { gap: 18px; padding: 18px 0; }
  .sit__icon { width: 64px; height: 64px; }
  .sit__icon::before { inset: -5px; }
  .sit__icon img { width: 34px; height: 34px; }
  .sit__text { font-size: 15px; line-height: 1.8; }
}

/* =========================================================
   含む領域（9/28）: 線画のアイコンと領域名を、角だけに金の金具が付いたタイルで並べる
   （状況の段の「丸いアイコン＋消えていく下線の一覧」とは別の語法。カード枠の角の段と同じ形を四隅に）
   6つは 3×2、7つは 4＋3（下の段は中央寄せ）。タブレットは2列、スマホは1列でアイコンを左に
   ========================================================= */
.dom { list-style: none; margin: clamp(36px,4.4vw,64px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px,1.8vw,24px); }
.dom__item { --w: calc((100% - 2 * clamp(16px,1.8vw,24px)) / 3); position: relative; flex: 0 0 var(--w); box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px,2.8vw,40px) clamp(24px,2.4vw,34px) clamp(30px,3vw,42px);
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(217,188,133,.07), transparent 70%), rgba(26,24,21,.55); }
.dom--7 .dom__item { --w: calc((100% - 3 * clamp(16px,1.8vw,24px)) / 4); }
/* 四隅の金具（段のついた L 字）: 線は角だけ、辺の中ほどは空ける */
.dom__item::before, .dom__item::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  --c: rgba(217,188,133,.62); --L: 22px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--L) 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--L),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--L) 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--L),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--L) 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--L),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--L) 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--L);
  background-repeat: no-repeat; }
.dom__item::after { inset: 5px; --c: rgba(217,188,133,.28); --L: 10px; }
.dom__icon { display: block; width: clamp(52px,4.4vw,64px); height: clamp(52px,4.4vw,64px); }
.dom__title { position: relative; margin: clamp(20px,2vw,28px) 0 0; padding-top: 16px; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(18px,1.5vw,21px); letter-spacing: .08em; line-height: 1.5; color: var(--text-inv); }
.dom__title::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 1px; background: var(--accent-l); }
.dom__title::after { content: ""; position: absolute; left: 30px; top: -2.5px; width: 5px; height: 5px; transform: rotate(45deg); background: var(--accent-l); }
.dom__text { margin: 12px 0 0; font-size: 14px; line-height: 1.95; letter-spacing: .04em; color: var(--sub-inv); text-wrap: pretty; }
.dom__text .s { display: inline; }
@media (max-width: 1023.98px) {
  .dom__item, .dom--7 .dom__item { --w: calc((100% - clamp(16px,1.8vw,24px)) / 2); }
}
@media (max-width: 639.98px) {
  .dom { gap: 14px; }
  .dom__item, .dom--7 .dom__item { --w: 100%; display: grid; grid-template-columns: 52px minmax(0,1fr); column-gap: 18px; padding: 22px 20px 24px; }
  .dom__icon { grid-row: 1 / 3; width: 52px; height: 52px; }
  .dom__title { margin: 0; padding-top: 12px; font-size: 17px; }
  .dom__text { margin-top: 6px; font-size: 13.5px; line-height: 1.85; }
}
/* 含む領域（9/28 改）: 地の暗い面はやめ、細い金の線でタイル全体を囲む。四隅の金具はその上に重ねて角を締める */
.dom__item { background: radial-gradient(ellipse 70% 50% at 18% 0%, rgba(217,188,133,.06), transparent 70%); box-shadow: inset 0 0 0 1px rgba(217,188,133,.3); }
.dom__item::before { --c: rgba(217,188,133,.8); }
.dom__item::after { inset: 6px; box-shadow: inset 0 0 0 1px rgba(217,188,133,.1); }

/* =========================================================
   行動指針のページ（9/29）: イラストを入れる
   ========================================================= */
/* 私たちの基準: 3列。箱では囲まず、列の間を上下に溶ける金の縦線で区切る。イラストは大きく、淡い光の上に */
.prin { list-style: none; margin: clamp(48px,6vw,88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.prin__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 clamp(24px,3.2vw,56px) clamp(8px,1vw,16px); }
.prin__item + .prin__item::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px; background: linear-gradient(180deg, transparent, rgba(217,188,133,.45) 30%, rgba(217,188,133,.45) 70%, transparent); }
.prin__item + .prin__item::after { content: ""; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; transform: rotate(45deg); background: var(--accent-l); opacity: .75; }
.prin__ill { display: block; width: clamp(150px,14vw,200px); height: auto; aspect-ratio: 1; padding: clamp(10px,1.2vw,18px); box-sizing: border-box;
  background: radial-gradient(circle, rgba(217,188,133,.1), rgba(217,188,133,.02) 60%, transparent 71%); }   /* 10/1: border-radius:50% で絵の四隅（天秤の皿・階段の旗など）が丸く切れていたので外す。後ろの光は丸いまま */
.prin__no { margin-top: clamp(22px,2.4vw,32px); font-family: var(--serif-en); font-size: 22px; line-height: 1; color: var(--accent-l); }
.prin__title { margin: 14px 0 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(18px,1.6vw,22px); line-height: 1.6; letter-spacing: .08em; color: var(--text-inv); }
.prin__text { margin: 12px 0 0; font-size: 14.5px; line-height: 2; letter-spacing: .04em; color: var(--sub-inv); text-wrap: pretty; max-width: 20em; }

/* 5つの行動指針: イラストと文を左右交互に。行の区切りは今までどおりの細線 */
.creed--ill li { grid-template-columns: clamp(180px,20vw,280px) auto minmax(0,1fr); grid-template-areas: "ill word body"; align-items: center; gap: clamp(24px,3.4vw,56px); }
.creed--ill li > .creed__ill { grid-area: ill; }
.creed--ill li > .creed__word { grid-area: word; }
.creed--ill li > div:last-child { grid-area: body; }
.creed--ill li:nth-child(even) { grid-template-columns: auto minmax(0,1fr) clamp(180px,20vw,280px); grid-template-areas: "word body ill"; }
.creed__ill { display: block; width: 100%; height: auto; aspect-ratio: 1; padding: clamp(14px,1.6vw,24px); box-sizing: border-box; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,188,133,.09), rgba(217,188,133,.02) 60%, transparent 71%); }
.creed--ill .creed__text { max-width: 34em; }

@media (max-width: 1023.98px) {
  .prin { grid-template-columns: minmax(0,1fr); gap: 0; max-width: 520px; margin-left: auto; margin-right: auto; }
  .prin__item { padding: clamp(32px,6vw,48px) 0; }
  .prin__item + .prin__item::before { left: 15%; right: 15%; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,188,133,.45) 30%, rgba(217,188,133,.45) 70%, transparent); }
  .prin__item + .prin__item::after { left: 50%; top: 0; margin: -3px 0 0 -3px; }
  .creed--ill li, .creed--ill li:nth-child(even) { grid-template-columns: auto minmax(0,1fr); grid-template-areas: "ill ill" "word body"; align-items: start; row-gap: 20px; }
  .creed--ill li > .creed__ill { width: min(62vw, 240px); justify-self: center; }
}
@media (max-width: 639.98px) {
  .creed--ill li, .creed--ill li:nth-child(even) { grid-template-columns: minmax(0,1fr); grid-template-areas: "ill" "word" "body"; row-gap: 14px; }
  .creed--ill .creed__word { flex-direction: row; align-items: baseline; gap: 14px; width: auto; }
}

/* =========================================================
   5つの行動指針（9/29・案2）
   画面を止め、左に大きなイラスト・右に字と見出しと説明を1つずつ。下に5つの小さなイラストの目次（今の項目が灯る）。
   5つ読み終えると、目次が大きくなって一覧になる（js/creed.js）。
   JS が動かない・動きを減らす設定のときは、5つを縦に並べて全部見せる（.is-ready が無い状態）
   イラストの画像そのものは丸く切り抜かない（小さいと四隅が欠ける）。丸い光は背景として敷くだけ
   ========================================================= */
.vc__ill { display: block; width: 100%; height: auto; aspect-ratio: 1; box-sizing: border-box; background: radial-gradient(circle closest-side, rgba(217,188,133,.12), rgba(217,188,133,.03) 70%, transparent); }
.vc__ills { display: none; }
.vc__texts { list-style: none; margin: 0; padding: 0; }
.vc__t { display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: clamp(20px,3vw,48px); padding: clamp(28px,3vw,40px) 0; border-bottom: 1px solid var(--border-inv); }
.vc__t:first-child { border-top: 1px solid var(--border-inv); }
.vc__no { font-family: var(--serif-en); font-size: 13px; letter-spacing: .2em; color: var(--accent); }
.vc__kanji { font-family: var(--serif-ja); font-size: clamp(30px,3.2vw,42px); line-height: 1; letter-spacing: .1em; color: var(--accent-l); }
.vc__title { margin: 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(19px,1.6vw,23px); line-height: 1.6; letter-spacing: .06em; color: var(--text-inv); }
.vc__text { margin: 10px 0 0; font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--sub-inv); max-width: 36em; text-wrap: pretty; }
.vc:not(.is-ready) .vc__t > .vc__no { grid-column: 1; } .vc:not(.is-ready) .vc__t > .vc__kanji { grid-column: 1; }
.vc:not(.is-ready) .vc__t > .vc__title, .vc:not(.is-ready) .vc__t > .vc__text { grid-column: 2; }
.vc:not(.is-ready) .vc__t > .vc__title { grid-row: 1 / 3; align-self: start; }
.vc__row { display: none; }

.vc.is-ready { height: calc(620 * var(--svh, 1svh)); margin-top: clamp(24px,3vw,40px); }
.vc.is-ready .vc__stage { position: sticky; top: 0; height: var(--svh100, 100svh); box-sizing: border-box; padding: 96px 0 32px; display: flex; flex-direction: column; justify-content: center; }
.vc.is-ready .vc__main { position: relative; display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(40px,6vw,96px); align-items: center; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.vc.is-ready.is-sum .vc__main { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.vc.is-ready .vc__ills { display: block; position: relative; width: min(100%, 420px, calc(46 * var(--svh, 1svh))); aspect-ratio: 1; justify-self: center; }
.vc.is-ready .vc__ills .vc__ill { position: absolute; inset: 0; padding: 8%; opacity: 0; transform: scale(.94); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.vc.is-ready .vc__ills .vc__ill.is-on { opacity: 1; transform: none; }
.vc.is-ready .vc__texts { position: relative; min-height: 320px; }
.vc.is-ready .vc__t { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; gap: 16px; padding: 0; border: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.vc.is-ready .vc__t.is-on { opacity: 1; transform: none; }
.vc.is-ready .vc__kanji { font-size: clamp(52px,5.4vw,76px); }
.vc.is-ready .vc__title { font-size: clamp(22px,2vw,28px); }
.vc.is-ready .vc__text { margin: 0; font-size: clamp(15px,1.2vw,17px); }
/* 目次 → 一覧 */
.vc.is-ready .vc__row { list-style: none; margin: clamp(20px,calc(4 * var(--vh, 1vh)),44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: clamp(12px,2vw,32px); transition: transform .9s var(--ease); }
.vc__cell { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; opacity: .35; transition: opacity .5s; }
.vc__cell.is-on, .vc.is-sum .vc__cell { opacity: 1; }
.vc__cell .vc__ill { width: clamp(52px,5.4vw,76px); padding: 4px; transition: width .9s var(--ease); }
.vc__ck { font-family: var(--serif-ja); font-size: 15px; letter-spacing: .2em; color: var(--accent-l); transition: font-size .9s var(--ease); }
.vc__ct { font-family: var(--serif-ja); font-weight: 500; font-size: 0; opacity: 0; letter-spacing: .04em; color: var(--text-inv); transition: opacity .6s .3s, font-size .9s var(--ease); }
.vc.is-sum .vc__row { transform: translateY(calc(-1 * var(--lift, 0px))); }
.vc.is-sum .vc__cell .vc__ill { width: clamp(120px,13vw,190px); padding: 10px; }
.vc.is-sum .vc__ck { font-size: clamp(26px,2.4vw,34px); }
.vc.is-sum .vc__ct { font-size: clamp(13px,1.1vw,15px); opacity: 1; }
@media (max-width: 1023.98px) {
  .vc.is-ready .vc__stage { padding-top: 80px; }
  .vc.is-ready .vc__main { grid-template-columns: 1fr; gap: 18px; }
  .vc.is-ready .vc__ills { width: min(58vw, 240px, calc(30 * var(--svh, 1svh))); }
  .vc.is-ready .vc__texts { min-height: 270px; }
  .vc.is-ready .vc__t { gap: 10px; }
  .vc.is-ready .vc__kanji { font-size: 40px; }
  .vc.is-ready .vc__title { font-size: 19px; }
  .vc.is-ready .vc__text { font-size: 14px; line-height: 1.9; }
  .vc.is-ready .vc__row { gap: 8px; }
  .vc__cell .vc__ill { width: 46px; padding: 2px; }
  .vc__ck { font-size: 12px; }
  .vc.is-sum .vc__row { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 18px; }
  .vc.is-sum .vc__cell:last-child { grid-column: 1 / -1; }
  .vc.is-sum .vc__cell .vc__ill { width: 96px; padding: 6px; }
  .vc.is-sum .vc__ck { font-size: 22px; }
  .vc.is-sum .vc__ct { font-size: 12px; }
}

/* ---- 5つの行動指針（9/29 改）: 紹介文は最後の一覧と同じ画面に。見出しは上に1本で ---- */
.vc-head { margin-bottom: clamp(8px,2vw,24px); }
.vc__lead { margin-top: 32px; }
.vc__lead-p { margin: 0 0 16px; font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--sub-inv); }
.vc.is-ready .vc__sum { position: relative; transition: transform .9s var(--ease); }
.vc.is-ready .vc__row { transition: none; }
.vc.is-ready.is-sum .vc__row { transform: none; }
.vc.is-ready.is-sum .vc__sum { transform: translateY(calc(-1 * var(--lift, 0px))); }
@media (min-width: 1024px) { .vc.is-sum .vc__cell .vc__ill { width: clamp(110px,10vw,150px); } }
@media (max-width: 1023.98px) {
  .vc.is-sum .vc__row { grid-template-columns: repeat(5, minmax(0,1fr)); row-gap: 0; }
  .vc.is-sum .vc__cell:last-child { grid-column: auto; }
  .vc.is-sum .vc__cell .vc__ill { width: 100%; max-width: 64px; padding: 2px; }
  .vc.is-sum .vc__ck { font-size: 15px; letter-spacing: .1em; }
  .vc.is-sum .vc__ct { display: none; }
}

/* ---- 5つの行動指針（9/29 改2）----
   見出し（私たちが目指す姿／5つの行動指針）は止まっている間ずっと舞台の上に。
   最後の場面は、1つずつの画面（.vc__steps）と同じ場所に重ねて、左に5つを縦に、右に紹介文（左揃え）を出す */
.vc__final { display: none; }
.vc.is-ready .vc__stage { display: grid; grid-template-rows: auto minmax(0,1fr); align-content: stretch; padding-top: 104px; }
.vc.is-ready .vc-head { margin: 0 0 clamp(12px,calc(3 * var(--vh, 1vh)),32px); }
.vc.is-ready .vc-head .h2 { margin-top: 10px; }
.vc.is-ready .vc__steps, .vc.is-ready .vc__final { grid-row: 2; grid-column: 1; align-self: center; }
.vc.is-ready .vc__steps { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.vc.is-ready.is-sum .vc__steps { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.vc.is-ready.is-sum .vc__main { opacity: 1; transform: none; }
.vc.is-ready .vc__row { margin-top: clamp(16px,calc(3 * var(--vh, 1vh)),40px); }
.vc.is-ready .vc__final { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(40px,6vw,96px); align-items: center; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) .2s, transform .8s var(--ease) .2s; pointer-events: none; }
.vc.is-ready.is-sum .vc__final { opacity: 1; transform: none; pointer-events: auto; }
.vc__flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(4px,calc(1 * var(--vh, 1vh)),12px); justify-self: center; }
.vc__fitem { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; column-gap: 18px; }
.vc__fitem .vc__ill { width: clamp(52px,calc(7 * var(--vh, 1vh)),76px); padding: 2px; }
.vc__fk { font-family: var(--serif-ja); font-size: clamp(22px,2vw,28px); letter-spacing: .12em; color: var(--accent-l); }
.vc__ft { font-family: var(--serif-ja); font-weight: 500; font-size: clamp(14px,1.1vw,16px); letter-spacing: .04em; color: var(--text-inv); }
.vc.is-ready .vc__lead { position: static; width: auto; transform: none; margin: 0; padding: 0; text-align: left; opacity: 1; transition: none; }
.vc.is-ready .vc__lead-p { margin: 0 0 18px; font-size: clamp(15px,1.2vw,17px); line-height: 2; color: var(--sub-inv); }
.vc.is-ready .vc__lead-p:first-child { color: var(--text-inv); }
.vc.is-ready .vc__lead-p:last-child { margin-bottom: 0; }
@media (max-width: 1023.98px) {
  .vc.is-ready .vc__stage { padding-top: 80px; padding-bottom: 20px; }
  .vc.is-ready .vc-head { margin-bottom: 10px; }
  .vc.is-ready .vc-head .h2 { font-size: 24px; margin-top: 4px; }
  .vc.is-ready .vc__ills { width: min(52vw, 200px, calc(24 * var(--svh, 1svh))); }
  .vc.is-ready .vc__main { gap: 10px; }
  .vc.is-ready .vc__row { margin-top: 10px; }
  .vc.is-ready .vc__final { grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: start; }
  .vc__flist { gap: 6px; justify-self: start; }
  .vc__fitem { grid-template-columns: auto; justify-items: center; row-gap: 2px; }
  .vc__fitem .vc__ill { width: 44px; }
  .vc__fk { font-size: 13px; letter-spacing: .1em; }
  .vc__ft { display: none; }
  .vc.is-ready .vc__lead-p { font-size: 13.5px; line-height: 1.9; margin-bottom: 12px; }
}
/* 見出しと中身を1つの塊にして、画面の中で上下の余白をそろえる（中身の行は高さなりに、全体を中央へ） */
.vc.is-ready .vc__stage { grid-template-rows: auto auto; align-content: center; padding-top: 92px; padding-bottom: 24px; }
.vc.is-ready .vc-head { margin-bottom: clamp(24px,calc(4.5 * var(--vh, 1vh)),48px); }
.vc.is-ready .vc__steps, .vc.is-ready .vc__final { align-self: start; }
.vc.is-ready .vc__final { align-self: center; }
@media (max-width: 1023.98px) { .vc.is-ready .vc__stage { padding-top: 76px; padding-bottom: 16px; } .vc.is-ready .vc-head { margin-bottom: 18px; } }
/* 塊の上端は creed.js が計算（--vc-y）。見出しの下に中身をそのまま続け、1つずつの画面と最後の一覧は同じ位置に重ねる */
.vc.is-ready .vc__stage { display: block; padding: 0; }
.vc.is-ready .vc__block { position: absolute; left: 0; right: 0; top: var(--vc-y, 96px); transition: top .8s var(--ease); }
.vc.is-ready .vc__body { position: relative; }
.vc.is-ready .vc__steps { position: relative; }
.vc.is-ready .vc__final { position: absolute; left: 0; right: 0; top: 0; align-self: auto; }
@media (max-width: 1023.98px) and (max-height: 720px) { .vc.is-ready .vc__ills { width: min(52vw, 200px, calc(21 * var(--svh, 1svh))); } .vc.is-ready .vc__texts { min-height: 250px; } }
/* 重さ対策（9/29）: 目次は最後の場面では隠れるので、大きさを変えない（行動指針のイラストは描き込みが多く、幅の変化のたびに描き直しが重い）。
   大きいイラストは合成の層に載せ、ふわっと出る間も描き直さない */
.vc.is-ready .vc__cell .vc__ill, .vc.is-sum .vc__cell .vc__ill { transition: none; width: clamp(52px,5.4vw,76px); padding: 4px; }
.vc.is-sum .vc__ck { font-size: 15px; transition: none; } .vc.is-sum .vc__ct { font-size: 0; opacity: 0; transition: none; }
.vc.is-sum .vc__row { transform: none; grid-template-columns: repeat(5, minmax(0,1fr)); }
.vc.is-sum .vc__cell:last-child { grid-column: auto; }
@media (max-width: 1023.98px) { .vc.is-ready .vc__cell .vc__ill, .vc.is-sum .vc__cell .vc__ill { width: 46px; padding: 2px; } .vc.is-sum .vc__ck { font-size: 12px; } }
.vc.is-ready .vc__ills .vc__ill { will-change: opacity, transform; }
.vc.is-ready .vc__steps, .vc.is-ready .vc__final { will-change: opacity, transform; }

/* ---- ランタンの灯り（9/29）: 台形。ランタンの下の口（狭い）から下へ向かって広がり、左右の辺は丸くにじむ ----
   形は SVG（上辺が狭く下辺が広い、辺をゆるく膨らませた台形＋ぼかし）、下へ行くほど薄くなる */
.lamp::after {
  left: -18%; right: -18%; top: calc(34px + 83px * .74 - 30px); bottom: -18px;
  -webkit-mask-image: none; mask-image: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.08' stop-color='%23ffd690' stop-opacity='.42'/%3E%3Cstop offset='.45' stop-color='%23ffc878' stop-opacity='.16'/%3E%3Cstop offset='1' stop-color='%23ffc070' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-20%25' y='-10%25' width='140%25' height='130%25'%3E%3CfeGaussianBlur stdDeviation='9'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M86 34 Q100 30 114 34 Q150 130 182 290 Q100 300 18 290 Q50 130 86 34 Z' fill='url(%23g)' filter='url(%23b)'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
@media (max-width: 639.98px) { .lamp::after { top: calc(34px + 74px * .74 - 30px); left: -8%; right: -8%; } }
/* 行動指針の目次: 切り替わりで2つ同時に灯って見えないよう、消える方はすぐ、灯る方は少し遅れて（9/29） */
.vc.is-ready .vc__cell { transition: opacity .12s linear; }
.vc.is-ready .vc__cell.is-on { transition: opacity .35s var(--ease) .1s; }
/* ランタンは6つ（9/29「建設」を外した）: タブレットは 3×2、PC は横一列6つ */
@media (min-width: 768px) { .lamps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .lamps { grid-template-columns: repeat(6, 1fr); } }

/* ---- ランタンの見せ方（9/29 案2）: 最初に左端だけ一瞬うっすら灯って中身が少し見え、そのあと順に触れたように揺れて炎が灯りかける ---- */
.lamps.is-demo .lamp:not(.is-open) .lamp__fire { animation: none; }
/* 一瞬の見本: 中身は半分ほどの明るさで開き、灯りも控えめ */
.lamp.is-peek > .dx__body { grid-template-rows: 1fr; }
.lamp.is-peek .dx__items { opacity: .5; }
.lamp.is-peek::after { opacity: .5; }
.lamp.is-peek .lamp__fire { opacity: .8; transform: scale(.85); }
.lamp.is-peek .lamp__name { color: #fbeccb; }
.lamp .dx__items { transition: opacity .6s var(--ease), color .6s, text-shadow .6s; }
/* 触れたように揺れて、炎が一瞬灯りかける（光は漏らさない） */
.lamp__svg { transform-origin: 50% 0; }
.lamps.is-demo .lamp.is-nudge .lamp__svg { animation: lamp-nudge 1.2s cubic-bezier(.3,1.6,.5,1); }
@keyframes lamp-nudge { 0% { transform: rotate(0); } 18% { transform: rotate(7deg); } 42% { transform: rotate(-4.5deg); } 66% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.lamps.is-demo .lamp.is-nudge:not(.is-open) .lamp__fire { animation: lamp-almost 1.2s ease-out; }
@keyframes lamp-almost { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: .85; transform: scale(.85); } 60% { opacity: .35; transform: scale(.6); } 100% { opacity: 0; transform: scale(.3); } }
@media (hover: hover) { .lamp:not(.is-open) .dx__btn:hover .lamp__fire { opacity: .7; transform: scale(.8); } }
[data-anim-off] .lamp__svg { animation: none !important; }
/* 含む領域（7つ）: 4列だと1行が15字ほどで文の区切りが崩れるので、6つと同じ3列に（3＋3＋1、最後は中央）（9/29） */
.dom--7 .dom__item { --w: calc((100% - 2 * clamp(16px,1.8vw,24px)) / 3); }
@media (max-width: 1023.98px) { .dom--7 .dom__item { --w: calc((100% - clamp(16px,1.8vw,24px)) / 2); } }
@media (max-width: 639.98px) { .dom--7 .dom__item { --w: 100%; } }
@media (max-width: 639.98px) { .dom__text { letter-spacing: .02em; } }
@media (max-width: 639.98px) { .dom__item, .dom--7 .dom__item { grid-template-columns: 44px minmax(0,1fr); column-gap: 14px; padding-left: 16px; padding-right: 14px; } .dom__icon { width: 44px; height: 44px; } }
/* 含む領域（7つ）: PC は前と同じ 4＋3 の2段（下の段は中央）に戻す（9/29）。4列でも文の区切りが崩れないよう、タイルの内側の余白と字間を少し詰める */
@media (min-width: 1024px) {
  .dom--7 .dom__item { --w: calc((100% - 3 * clamp(16px,1.8vw,24px)) / 4); padding-left: clamp(18px,1.6vw,24px); padding-right: clamp(16px,1.4vw,22px); }
  .dom--7 .dom__text { font-size: 13.5px; letter-spacing: .02em; }
}
/* ランタンの一瞬の見本（is-peek）は、中身を重ねて見せるだけにして、ページの高さを変えない（9/29） */
.lamp { position: relative; }
.lamp.is-peek-pos > .dx__body { position: absolute; left: 0; right: 0; top: 100%; z-index: 2; pointer-events: none; }
/* お問い合わせ（320px 幅など狭い画面）: 送信ボタンと注記が枠からはみ出さないように（9/29） */
.form__foot > * { min-width: 0; max-width: 100%; }
.form__submit .btn { max-width: 100%; box-sizing: border-box; }
@media (max-width: 359px) { .cbox { padding-left: 22px; padding-right: 22px; } .form__submit .btn { padding-left: 16px; padding-right: 52px; } }
.form--grid .agree label { flex-wrap: wrap; } .form--grid .agree label > span { min-width: 0; flex: 1 1 0; }

/* ---- 5つの行動指針・スマホ（10/1）: 04 実行の文が下のアイコンに重なっていた。
   番号と項目名（01 礼節）を絵の左に並べ、絵は少し小さく。見出しと本文はその下に ---- */
@media (max-width: 767.98px) {
  .vc.is-ready { --ill: min(36vw, 150px, calc(19 * var(--svh, 1svh))); }
  .vc.is-ready .vc__main { display: block; position: relative; }
  .vc.is-ready .vc__ills { position: absolute; top: 0; right: 0; width: var(--ill); z-index: 1; }
  /* 5つの文を同じ升目に重ねて置く → 枠の高さはいちばん長い文（04）に合う。切り替えても見出しや下のアイコンが上下しない */
  .vc.is-ready .vc__texts { min-height: 0; display: grid; }
  .vc.is-ready .vc__t { position: relative; inset: auto; grid-area: 1 / 1; }
  .vc.is-ready .vc__no { margin-top: calc(var(--ill) * .22); }
  .vc.is-ready .vc__kanji { min-height: calc(var(--ill) - var(--ill) * .22 - 28px); padding-right: calc(var(--ill) + 12px); }
}

/* ---- サービス概要「EP企業群」（10/3）: トップの「事業の広がり」の図を、文章の右（スマホは下）に置く ---- */
.egroup { position: relative; }
.egroup__grid { display: grid; gap: clamp(32px,5vw,64px); align-items: center; }
@media (min-width: 1024px) { .egroup__grid { grid-template-columns: minmax(0,5fr) minmax(0,6fr); } }
.egroup__body { margin-top: clamp(24px,3vw,40px); }
.egroup .net-art { margin: 0 auto; max-width: 680px; }
/* 動きはトップと同じ（js/main.js の makeNet。線と点は canvas、事業名は HTML の文字） */
@media (max-width: 639.98px) { .egroup .net-label { font-size: calc(33 / 1100 * 100cqw); } }   /* スマホは事業名どうしが近づくので、トップより一回り小さく */
/* 10/3: ランタンが2段以上に並ぶ幅（1280px 未満）では、一瞬の見本の中身が次の段の紐やランタンに重なっていた。
   見本の間だけ、そのランタンを上に重ね、中身の後ろを地の色で隠して、線が文字に掛からないようにする */
@media (max-width: 1279.98px) {
  .lamp.is-peek-pos { position: relative; z-index: 6; }
  .lamp.is-peek-pos > .dx__body .dx__items { background: radial-gradient(ellipse 90% 80% at 50% 0%, rgba(255,205,120,.2), transparent 75%), rgba(14,13,12,.94); border-radius: 2px; }
}
/* 10/3: 幅 320px など画面の低いスマホで、行動指針の最後の一覧の文章が下で切れていた。文字と間を少し詰める */
@media (max-width: 359.98px), (max-width: 1023.98px) and (max-height: 600px) {
  .vc.is-ready .vc__lead-p { font-size: 12.5px; line-height: 1.8; margin-bottom: 8px; }
  .vc__fitem .vc__ill { width: 36px; }
  .vc.is-ready .vc-head .h2 { font-size: 21px; }
}
/* 10/5（若樹さん「携帯で1画面に収まっていない」）: スマホは見出し・本文・図が開いた画面に収まるよう、余白と文字を詰め、図は残りの高さで大きさを決める */
@media (max-width: 767.98px) {
  #egroup .sec__inner { padding-top: 16px; padding-bottom: 56px; }
  .egroup__grid { gap: 14px; }
  .egroup .h2.h2--lg { font-size: 25px; line-height: 1.5; margin-top: 12px; }
  .egroup__body { margin-top: 14px; font-size: 14px; line-height: 1.85; }
  .egroup__body p + p { margin-top: 12px; }
  .egroup .net-art { width: min(100%, calc((var(--svh100, 100svh) - 418px) * 1100 / 900)); }
}
