/* 家族葬 よあけ灯（デモ） */
:root {
  --ink: #2F3742;
  --ai: #5D7A99;      /* 線・面・大きな字だけ */
  --ai-d: #4A6582;    /* 小さな字・ボタン */
  --hai: #9A9A9A;     /* 罫線・区切りだけ */
  --usu: #EEF2F6;
  --hai15: rgba(154, 154, 154, .15);
  --min: "Hina Mincho", "Yu Mincho", "YuMincho", serif;
  --goth: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --head-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--goth); font-size: 16px; line-height: 1.95; letter-spacing: .02em;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere; word-break: normal; line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ai-d); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--min); font-weight: 400; line-height: 1.5; margin: 0; letter-spacing: .06em; }
.num { font-variant-numeric: tabular-nums; font-family: var(--goth); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- ヘッダー ---------- */
.head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid #E3E7EC; }
.head__in { display: flex; align-items: center; gap: 28px; height: var(--head-h); width: min(1240px, 100% - 40px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo { display: block; height: 46px; width: auto; overflow: visible; }
.logo__name { font-family: var(--min); font-size: 25px; fill: var(--ink); letter-spacing: .08em; }
.logo__sub { font-family: var(--goth); font-size: 9.5px; fill: var(--ai-d); letter-spacing: .5em; }
.demo { font-size: 10px; letter-spacing: .12em; color: #6B737D; border: 1px solid #C9CED4; padding: 0 5px; line-height: 16px; flex: none; }
.gnav { margin-left: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.gnav a { position: relative; color: var(--ink); text-decoration: none; font-size: 14.5px; padding: 6px 0; white-space: nowrap; }
.gnav a:hover { color: var(--ai-d); }
.gnav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 22px; height: 2px; margin-left: -11px; background: var(--ai); }
.head__tel { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--ink); line-height: 1.15; flex: none; padding-left: 22px; border-left: 1px solid #DDE2E8; }
.head__tel small { font-size: 11px; color: var(--ai-d); letter-spacing: .2em; }
.head__tel b { font-family: var(--min); font-weight: 400; font-size: 25px; letter-spacing: .04em; }
.menu { display: none; }

/* ---------- 共通の部品 ---------- */
.sec { padding: 96px 0; }
.sec--usu { background: var(--usu); }
.sec--tight { padding: 64px 0; }
.hd { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3vw, 31px); margin-bottom: 28px; }
.hd svg, .mark { width: 12px; height: 18px; flex: none; color: var(--ai); }
.hd--s { font-size: clamp(21px, 2.4vw, 25px); margin-bottom: 20px; }
.lead { font-size: 17px; }
.dawn { height: 2px; position: relative; margin: 0; border: 0; }
.dawn::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hai); }
.dawn::after { content: ""; position: absolute; left: 50%; top: -0.5px; width: 80px; margin-left: -40px; height: 2px; background: var(--ai); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 12px 30px; background: var(--ai-d); color: #fff; text-decoration: none; border-radius: 2px; font-size: 16px; letter-spacing: .06em; border: 0; cursor: pointer; font-family: var(--goth); }
.btn:hover { background: #3E5770; }
.tlink { color: var(--ai-d); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.bigtel { font-family: var(--min); font-size: clamp(30px, 4vw, 40px); color: var(--ink); text-decoration: none; letter-spacing: .04em; line-height: 1.2; }
.small { font-size: 14px; color: #555E69; }
figure { margin: 0; }
figcaption { font-size: 13px; color: #555E69; margin-top: 8px; letter-spacing: .06em; }

/* 見積書のカード */
.card { position: relative; background: #fff; border: 1px solid var(--hai); padding: 32px 30px; }
.card--mihon::after { content: "見本"; position: absolute; top: 12px; right: 12px; font-size: 12px; letter-spacing: .3em; padding: 1px 4px 1px 8px; border: 1px solid var(--hai); color: #555E69; line-height: 1.5; }

/* ---------- トップ 最初の画面 ---------- */
.hero { position: relative; height: max(560px, calc(85svh - var(--head-h))); min-height: 520px; overflow: hidden; color: #fff; background: #50657E; }
.hero__ph, .hero__ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__ph img { object-fit: cover; object-position: 50% 70%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,48,64,.05) 0%, rgba(37,48,64,.18) 40%, rgba(37,48,64,.52) 100%); }
.hero__night { position: absolute; inset: 0; background: #1F2C3E; opacity: 0; }
.js .hero__night { animation: yoake 6s ease-out both; }
@keyframes yoake { from { opacity: .82; } to { opacity: 0; } }
.hero__town { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58px; color: #2E3A4A; }
.hero__body { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; }
.hero__lead { font-family: var(--min); font-size: clamp(22px, 2.7vw, 30px); letter-spacing: .14em; margin-bottom: 18px; text-shadow: 0 1px 14px rgba(20,28,40,.45); }
.hero__small { font-size: 14px; letter-spacing: .2em; margin-bottom: 2px; text-shadow: 0 1px 3px rgba(20,28,40,.45); }
.hero__tel { display: inline-block; font-family: var(--min); font-size: clamp(54px, 8.4vw, 104px); line-height: 1.12; color: #fff; text-decoration: none; letter-spacing: .03em; text-shadow: 0 2px 22px rgba(20,28,40,.45); }
.hero__note { font-size: 15px; margin: 14px auto 18px; max-width: 34em; text-shadow: 0 1px 3px rgba(20,28,40,.45); }
.hero__link { color: #fff; text-underline-offset: 6px; text-decoration-thickness: 1px; font-size: 15px; text-shadow: 0 1px 3px rgba(20,28,40,.45); }

/* ---------- トップ 各区画 ---------- */
.now { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: end; }
.now__call { border-left: 1px solid var(--hai); padding-left: 40px; }
.now__call .btn { margin-bottom: 22px; }
.now__call small { display: block; font-size: 13px; color: var(--ai-d); letter-spacing: .2em; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hai); }
.plan { padding: 22px 26px 24px; border-right: 1px solid #D5D9DE; }
.plan:last-child { border-right: 0; }
.plan__name { display: block; background: var(--ai); color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .2em; padding: 6px 14px; margin: -22px -26px 18px; }
.plan__what { min-height: 3.8em; margin-bottom: 10px; font-size: 15px; word-break: auto-phrase; }
.plan__yen, .betsu-same { font-size: 22px; font-weight: 700; line-height: 1.6; }
.plan__yen span { font-size: 22px; }
.plan__tax { font-size: 13px; font-weight: 400; color: #555E69; margin-left: 4px; white-space: nowrap; }
.card--plans { padding: 0; }
.card--plans .plans { border-top: 0; }
.card--plans .plan__name { margin: -22px -26px 18px; }
.betsu-box { border-top: 1px solid var(--hai); padding: 22px 26px 26px; }
.betsu-box h3 { font-family: var(--goth); font-weight: 700; font-size: 22px; letter-spacing: .04em; margin-bottom: 6px; }
.betsu-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.betsu-list li { font-size: 22px; font-weight: 700; line-height: 1.6; }
.betsu-list li:not(:last-child)::after { content: "／"; color: var(--hai); font-weight: 400; margin: 0 .3em; }
.betsu-list .to { font-weight: 400; }

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.split--rev { grid-template-columns: 1fr 1fr; }
.split--rev > :first-child { order: 2; }

.qa { margin: 0; border-top: 1px solid var(--hai); }
.qa > div { display: grid; grid-template-columns: 22em 1fr; gap: 12px 48px; padding: 26px 0; border-bottom: 1px solid #D5D9DE; }
.qa dt { font-weight: 700; }
.qa dd { margin: 0; }

.info { width: 100%; border-collapse: collapse; }
.info th, .info td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid #D5D9DE; font-weight: 400; }
.info th { width: 13em; color: var(--ai-d); padding-right: 24px; font-size: 15px; }
.info tr:first-child th, .info tr:first-child td { border-top: 1px solid var(--hai); }

/* ---------- 下層の頭 ---------- */
.phead { padding: 72px 0 56px; }
.phead h1 { display: flex; align-items: center; gap: 14px; font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 22px; }
.phead h1 svg { width: 15px; height: 22px; color: var(--ai); flex: none; }
.phead p { max-width: 40em; font-size: 17px; }

/* お急ぎの方へ */
.ois-tel { margin: 28px 0 0; }
.ois-tel a { font-family: var(--min); font-size: clamp(48px, 9vw, 96px); line-height: 1.15; color: var(--ink); text-decoration: none; letter-spacing: .03em; }
.ois-tel small { display: block; font-size: 15px; color: var(--ai-d); margin-top: 4px; }
.ask { list-style: none; margin: 0; padding: 0; }
.ask li { display: grid; grid-template-columns: 14px 13em 1fr; gap: 0 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid #D5D9DE; font-size: 17px; }
.ask li:first-child { padding-top: 0; }
.ask .mark { width: 10px; height: 15px; align-self: center; }
.ask b { font-size: 19px; }
.card--ask { padding: 30px 34px; }
.after-ask { margin-top: 24px; font-size: 17px; }
.stack > * + * { margin-top: 72px; }
.side-ph { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.ois-end { text-align: center; padding: 72px 0 88px; }
.ois-end a.big { font-family: var(--min); font-size: clamp(44px, 7vw, 76px); color: var(--ink); text-decoration: none; line-height: 1.2; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 28px; }

/* 流れ */
.day { display: grid; grid-template-columns: 9.5em 1fr; gap: 0 48px; padding: 56px 0; border-top: 1px solid #D5D9DE; }
.day:first-of-type { border-top: 1px solid var(--hai); }
.day__no { font-family: var(--min); color: var(--ai); font-size: 21px; line-height: 1.4; letter-spacing: .1em; }
.day__no span { display: block; font-size: 52px; letter-spacing: 0; line-height: 1.1; }
.day h2 { font-size: 25px; margin-bottom: 18px; }
.day__body.has-ph { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.day__body.has-ph--l { grid-template-columns: 300px 1fr; }
.day__body.has-ph--l figure { order: -1; }
.todo { margin-top: 22px; background: var(--usu); padding: 18px 22px; }
.todo b { display: block; color: var(--ai-d); font-size: 15px; margin-bottom: 6px; }
.todo ul { margin: 0; padding: 0; list-style: none; }
.todo li { padding-left: 1.2em; position: relative; }
.todo li::before { content: ""; position: absolute; left: 0; top: .9em; width: .55em; height: 1px; background: var(--ai); }

/* 費用 */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pcard { padding: 0 0 26px; display: flex; flex-direction: column; }
.pcard h3 { background: var(--ai); color: #fff; font-family: var(--goth); font-weight: 700; font-size: 19px; letter-spacing: .2em; padding: 10px 22px; }
.pcard .yen { font-size: 22px; font-weight: 700; padding: 18px 22px 4px; }
.pcard .what { padding: 0 22px 12px; border-bottom: 1px solid #D5D9DE; margin: 0 0 14px; }
.pcard .inc { padding: 0 22px; font-size: 15px; }
.pcard .inc b { display: block; color: var(--ai-d); margin-bottom: 4px; }
.pcard .inc ul { margin: 0; padding: 0; list-style: none; }
.pcard .inc li { padding: 3px 0 3px 1em; position: relative; border-bottom: 1px dotted #D5D9DE; }
.pcard .inc li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: .45em; height: 1px; background: var(--ai); }
.pcard.card--mihon::after { top: 9px; right: 10px; color: #fff; border-color: rgba(255,255,255,.7); }
.under3 { margin-top: 22px; font-size: 17px; }
.btable { width: 100%; border-collapse: collapse; font-size: 22px; }
.btable caption { text-align: left; }
.btable th, .btable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #D5D9DE; vertical-align: top; font-weight: 700; line-height: 1.55; }
.btable thead th { background: var(--ai-d); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .1em; padding: 9px 16px; border: 0; }
.btable td:last-child { font-weight: 400; }
.card--tbl { padding: 46px 0 0; }
.card--tbl.card--mihon::after { top: 11px; }
.pay { max-width: 40em; }

/* 式場 */
.wide-ph { margin-top: 36px; }
.wide-ph img { width: 100%; aspect-ratio: 1500 / 700; object-fit: cover; object-position: 50% 62%; }
.room { padding: 64px 0; border-top: 1px solid #D5D9DE; }
.room:first-of-type { border-top: 0; }
.room .split { grid-template-columns: 1.3fr 1fr; }
.room--r .split { grid-template-columns: 1fr 1.3fr; }
.room--r .split > figure { order: 2; }
.room h2 { font-size: 25px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.room h2 svg { width: 11px; height: 17px; color: var(--ai); }
.kaisha { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.kaisha figure img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 50%; width: 100%; }
.card--info { padding: 10px 28px; margin-top: 36px; }
.card--info .info tr:first-child th, .card--info .info tr:first-child td { border-top: 0; }
.card--info .info tr:last-child th, .card--info .info tr:last-child td { border-bottom: 0; }
.map { margin-top: 36px; }
.map svg { width: 100%; height: auto; display: block; }

/* 事前相談 */
.entry { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hai); }
.entry > div { padding: 26px 26px 28px; border-right: 1px solid #D5D9DE; display: flex; flex-direction: column; gap: 10px; }
.entry > div:last-child { border-right: 0; }
.entry h3 { font-family: var(--goth); font-weight: 700; font-size: 19px; color: var(--ai-d); letter-spacing: .1em; }
.entry .bigtel { font-size: 30px; }
.entry .btn { align-self: flex-start; margin-top: auto; }
.not-line { margin-top: 20px; font-size: 17px; font-weight: 700; }
.form { margin-top: 8px; display: grid; gap: 22px; }
.form__row { display: grid; gap: 6px; }
.form__lb { font-weight: 700; font-size: 15px; }
.req { color: #8A3B3B; font-weight: 400; font-size: 13px; margin-left: .4em; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=date], .form textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid var(--hai); border-radius: 2px; background: #fff; min-height: 50px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ai); outline-offset: 1px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks label, .agree { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.checks input, .agree input { width: 20px; height: 20px; accent-color: var(--ai-d); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.thanks { border: 1px solid var(--hai); padding: 28px; font-size: 17px; }

/* ---------- 図 ---------- */
.fig { margin-top: 8px; }
.fig__title { font-family: var(--min); font-size: 21px; letter-spacing: .1em; margin-bottom: 18px; color: var(--ink); }
.fig__note { font-size: 14px; color: #555E69; margin-top: 16px; }

/* Z-1 流れ */
.flow { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto auto auto auto; column-gap: 0; }
.flow__day { grid-row: 1; border-left: 1px solid var(--hai); padding: 0 0 12px 12px; font-family: var(--min); color: var(--ai); font-size: 17px; letter-spacing: .1em; }
.flow__day:last-of-type { border-right: 1px solid transparent; }
.flow__day--1 { grid-column: 1 / 5; }
.flow__day--2 { grid-column: 5 / 6; }
.flow__day--3 { grid-column: 6 / 7; }
.flow__day--4 { grid-column: 7 / 8; }
.flow__line { grid-row: 2; grid-column: 1 / -1; align-self: start; height: 1.5px; background: var(--ai); margin-top: 11px; transform-origin: 0 50%; }
.flow__pt { grid-row: 2; position: relative; padding: 32px 10px 0 12px; }
.flow__pt::before { content: ""; position: absolute; left: 12px; top: 5px; width: 13px; height: 13px; border: 1.5px solid var(--ai); border-radius: 50%; background: #fff; }
.flow__pt.p1::before { background: var(--ai); }
.flow__pt b { display: block; font-family: var(--min); font-weight: 400; font-size: 17px; line-height: 1.45; }
.flow__pt span { display: block; font-size: 13.5px; color: #555E69; line-height: 1.6; margin-top: 4px; }
.flow__pt.p1 { grid-column: 1; } .flow__pt.p2 { grid-column: 2; }
.flow__pt.p3 { grid-column: 3; } .flow__pt.p4 { grid-column: 4; }
.flow__pt.p5 { grid-column: 5; } .flow__pt.p6 { grid-column: 6; }
.flow__pt.p7 { grid-column: 7; }
.flow__band { position: relative; background: var(--usu); color: var(--ai-d); font-size: 14.5px; font-weight: 700; padding: 9px 14px; margin-top: 12px; line-height: 1.5; }
.flow__band--24 { grid-row: 3; grid-column: 1 / 5; margin-right: -9%; }
.flow__band--7 { grid-row: 4; grid-column: 1 / -1; margin-right: 0; padding-right: 34px; }
.flow__band--7::after { content: ""; position: absolute; right: -18px; top: 50%; margin-top: -18px; border: 18px solid transparent; border-left: 18px solid var(--usu); border-right: 0; }
.flow--short .flow__pt span, .flow--short .flow__band { display: none; }
.flow--short .flow__pt { padding-bottom: 4px; }
.sec--usu .flow__pt::before { background: var(--usu); }
.sec--usu .flow__pt.p1::before { background: var(--ai); }
.js .flow .flow__line { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.3,.1,.2,1); }
.js .flow .flow__pt, .js .flow .flow__band { opacity: .18; transition: opacity .5s ease; }
.js .flow.is-in .flow__line { transform: none; }
.js .flow.is-in .flow__pt, .js .flow.is-in .flow__band { opacity: 1; }
.flow.is-in .flow__pt.p2 { transition-delay: .2s; } .flow.is-in .flow__pt.p3 { transition-delay: .4s; }
.flow.is-in .flow__pt.p4 { transition-delay: .6s; } .flow.is-in .flow__pt.p5 { transition-delay: .85s; }
.flow.is-in .flow__pt.p6 { transition-delay: 1.1s; } .flow.is-in .flow__pt.p7 { transition-delay: 1.35s; }
.flow.is-in .flow__band { transition-delay: 1.6s; }

/* Z-2 費用の内訳 */
.bars { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) 7.6em 30px 15.5em; grid-template-rows: repeat(3, auto); row-gap: 18px; align-items: center; }
.bars__name { grid-column: 1; font-family: var(--min); font-size: 18px; }
.bars__track { grid-column: 2; }
.bars__bar { display: flex; transform-origin: 0 50%; }
.bars__bar span { font-size: 14px; line-height: 1.45; padding: 10px 10px; background: var(--usu); border-right: 1px solid #fff; }
.bars__bar span:nth-child(2) { background: var(--hai15); }
.bars__bar span:nth-child(3) { background: var(--usu); }
.bars__bar .s1 { flex: 0 0 34.6154%; } /* 198,000 / 572,000 */
.bars__yen { grid-column: 3; font-size: 20px; font-weight: 700; padding-left: 12px; white-space: nowrap; }
.bars__con { grid-column: 4; height: 1px; background: var(--ai); }
.bars__box { grid-column: 5; grid-row: 1 / 4; border: 1.5px dashed var(--ai); padding: 16px 18px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.bars__box b { font-family: var(--min); font-weight: 400; font-size: 16px; display: block; margin-bottom: 8px; line-height: 1.5; }
.bars__box ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.bars__box li { padding: 5px 0; border-top: 1px solid #DDE2E8; line-height: 1.5; }
.js .bars .bars__bar { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.3,.1,.2,1); }
.js .bars .bars__box { opacity: .18; transition: opacity .6s ease 1.1s; }
.js .bars.is-in .bars__bar { transform: none; }
.js .bars.is-in .bars__box { opacity: 1; }
.bars.is-in .r2 .bars__bar, .bars.is-in .bars__bar.r2 { transition-delay: .15s; }
.bars.is-in .bars__bar.r3 { transition-delay: .3s; }

/* Z-3 間取り */
.plan-svg { width: 100%; height: auto; display: block; max-width: 880px; }
.plan-svg text { font-family: var(--goth); fill: var(--ink); }
.plan-svg .rm { font-family: var(--min); font-size: 22px; }
.plan-svg .nb { font-size: 17px; fill: var(--ai-d); font-variant-numeric: tabular-nums; }

/* Z-4 見積書 */
.est { max-width: 820px; margin-inline: auto; padding: 40px 44px 36px; }
.est h3 { font-size: 28px; letter-spacing: .4em; text-align: center; margin-bottom: 4px; }
.est__case { text-align: center; font-size: 14px; color: #555E69; margin-bottom: 26px; }
.est__part + .est__part { margin-top: 26px; }
.est__part h4 { margin: 0; background: var(--ai-d); color: #fff; font-size: 15px; letter-spacing: .08em; padding: 7px 14px; font-weight: 700; }
.est table { width: 100%; border-collapse: collapse; font-size: 15px; }
.est th, .est td { padding: 9px 14px; border-bottom: 1px solid #D5D9DE; text-align: left; font-weight: 400; vertical-align: top; }
.est thead th { font-size: 13px; color: #555E69; padding-top: 6px; padding-bottom: 6px; }
.est td.y, .est th.y { text-align: right; white-space: nowrap; }
.est tr.sum td, .est tr.sum th { font-weight: 700; border-bottom: 1.5px solid var(--ai-d); font-size: 16px; }
.est__foot { font-size: 13.5px; color: #555E69; margin-top: 18px; }
.est__sign { display: flex; justify-content: flex-end; align-items: flex-end; gap: 14px; margin-top: 24px; font-size: 14px; }
.est__sign span { display: inline-block; width: 190px; border-bottom: 1px solid var(--hai); height: 28px; }
.js .est .est__part { opacity: .18; transition: opacity .7s ease; }
.js .est.is-in .est__part { opacity: 1; }
.est.is-in .est__part.e2 { transition-delay: .4s; }
.est.is-in .est__part.e3 { transition-delay: .8s; }

/* 出てくる動き */
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js .fade.is-in { opacity: 1; transform: none; }

/* ---------- フッター ---------- */
.foot { background: #2F3742; color: #E6EAEF; padding: 64px 0 120px; margin-top: 0; }
.foot__in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .logo__name { fill: #fff; }
.foot .logo__sub { fill: #B9C6D6; }
.foot .logo { color: #B9C6D6; }
.foot__info { margin-top: 16px; font-size: 14px; color: #C9D1DA; }
.foot__info a { color: #fff; text-decoration: none; }
.foot__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 40px; font-size: 14px; }
.foot__nav a { color: #E6EAEF; text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid #47515E; font-size: 12px; color: #AEB7C2; }

/* スマホの電話の帯 */
.telbar { display: none; }

/* ---------- 幅ごと ---------- */
@media (max-width: 1080px) {
  .gnav ul { gap: 18px; }
  .gnav a { font-size: 13.5px; }
  .head__in { gap: 18px; }
  .bars { grid-template-columns: 5em minmax(0, 1fr) 7em 22px 13em; }
}
@media (max-width: 960px) {
  :root { --head-h: 64px; }
  .head__in { gap: 12px; width: calc(100% - 28px); }
  .logo { height: 40px; }
  .gnav { position: fixed; top: var(--head-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid #DDE2E8; padding: 6px 24px 18px; display: none; margin: 0; }
  .is-menu .gnav { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid #EEF0F3; }
  .gnav a[aria-current="page"]::after { left: auto; right: 0; bottom: 50%; margin: 0 0 -1px; }
  .head__tel { margin-left: auto; padding-left: 0; border-left: 0; }
  .head__tel b { font-size: 21px; }
  .menu { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 48px; height: 48px; background: none; border: 1px solid #D5D9DE; border-radius: 2px; color: var(--ink); cursor: pointer; padding: 0; flex: none; }
  .menu__bars, .menu__bars::before { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; }
  .menu__bars::before { content: ""; position: absolute; top: 6px; }
  .menu__label { font-size: 9px; letter-spacing: .1em; line-height: 1; margin-top: 6px; }
  .telbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 60px; align-items: center; justify-content: center; gap: 12px; background: var(--ai-d); color: #fff; text-decoration: none; font-size: 15px; letter-spacing: .08em; box-shadow: 0 -1px 0 rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
  .telbar b { font-family: var(--min); font-weight: 400; font-size: 23px; letter-spacing: .03em; }
  .foot { padding-bottom: 110px; }
  .now, .split, .split--rev, .side-ph, .kaisha { grid-template-columns: 1fr; gap: 36px; }
  .split--rev > :first-child { order: 0; }
  .now__call { border-left: 0; padding-left: 0; border-top: 1px solid var(--hai); padding-top: 28px; }
  .qa > div { grid-template-columns: 1fr; gap: 6px; }
  .room .split, .room--r .split { grid-template-columns: 1fr; }
  .room--r .split > figure { order: 0; }
  .day__body.has-ph, .day__body.has-ph--l { grid-template-columns: 1fr; gap: 24px; }
  .day__body.has-ph--l figure { order: 0; }
  .kaisha figure img { aspect-ratio: 16 / 10; }
  .cards3 { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .entry > div { border-right: 0; border-bottom: 1px solid #D5D9DE; }
  .entry > div:last-child { border-bottom: 0; }
  /* 図 Z-2 縦に積む */
  .bars { grid-template-columns: 4.6em minmax(0, 1fr) auto; row-gap: 14px; }
  .bars__con { display: none; }
  .bars__box { grid-column: 1 / -1; grid-row: auto; margin-top: 18px; position: relative; }
  .bars__box::before { content: ""; position: absolute; left: 50%; top: -19px; height: 18px; width: 1px; background: var(--ai); }
  .bars__box b, .bars__box ul { font-size: 14px; }
}
@media (max-width: 860px) {
  /* 図 Z-1 縦にする */
  .flow { grid-template-columns: 26px 26px 30px minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; }
  .flow__day { grid-column: 4 / 5 !important; border-left: 0; border-top: 1px solid var(--hai); padding: 8px 0 6px 10px; margin-left: -10px; }
  .flow__pt.ds { border-left: 0; }
  .flow__day--1 { grid-row: 1 !important; } .flow__day--2 { grid-row: 6 !important; } .flow__day--3 { grid-row: 8 !important; } .flow__day--4 { grid-row: 10 !important; }
  .flow__line { grid-column: 3; grid-row: 2 / 12; width: 1.5px; height: auto; margin: 0 0 0 11px; align-self: stretch; transform-origin: 50% 0; }
  .flow__pt { grid-column: 3 / 5 !important; padding: 2px 0 14px 40px; }
  .flow__pt::before { left: 5px; top: 6px; }
  .flow__pt.p1 { grid-row: 2; } .flow__pt.p2 { grid-row: 3; } .flow__pt.p3 { grid-row: 4; }
  .flow__pt.p4 { grid-row: 5; } .flow__pt.p5 { grid-row: 7; } .flow__pt.p6 { grid-row: 9; }
  .flow__pt.p7 { grid-row: 11; }
  .flow__band { margin: 0; writing-mode: vertical-rl; text-orientation: mixed; font-size: 13px; padding: 10px 3px; letter-spacing: .06em; }
  .flow__band .tcy { text-combine-upright: all; }
  .flow__band--24 { grid-column: 2; grid-row: 2 / 7; margin-right: 0; margin-bottom: 0; }
  .flow__band--7 { grid-column: 1; grid-row: 2 / 12; padding-right: 3px; padding-bottom: 22px; }
  .flow__band--7::after { right: 50%; top: auto; bottom: -14px; margin: 0 -13px 0 0; border: 13px solid transparent; border-top: 14px solid var(--usu); border-bottom: 0; }
  .flow--short { grid-template-columns: 30px minmax(0, 1fr); }
  .flow--short .flow__day { grid-column: 2 / 3 !important; }
  .flow--short .flow__line { grid-column: 1; }
  .flow--short .flow__pt { grid-column: 1 / 3 !important; }
  .js .flow .flow__line { transform: scaleY(0); }
  .js .flow.is-in .flow__line { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap, .narrow { width: calc(100% - 36px); }
  .head__in { width: calc(100% - 24px); gap: 8px; }
  .logo { height: 36px; }
  .head__tel { display: none; }
  .brand { margin-right: auto; }
  .sec { padding: 64px 0; }
  .sec--tight { padding: 48px 0; }
  .hero { height: calc(88svh - var(--head-h)); min-height: 540px; }
  .hero__ph img { object-position: 42% 60%; }
  .hero__body { bottom: 44px; padding: 0 18px; }
  .hero__lead { font-size: 19px; letter-spacing: .05em; }
  .hero__small { font-size: 13px; letter-spacing: .12em; }
  .hero__tel { font-size: calc(100vw * .85 / 6.6); }
  .hero__note { font-size: 14px; text-align: left; }
  .hero__town { height: 40px; }
  .hero__link { font-size: 14px; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid #D5D9DE; }
  .plan__what { min-height: 0; }
  .plan__yen, .betsu-list li, .betsu-box h3 { font-size: 20px; }
  .betsu-box, .plan { padding-left: 20px; padding-right: 20px; }
  .plan__name, .card--plans .plan__name { margin-left: -20px; margin-right: -20px; }
  .card { padding: 24px 20px; }
  .card--plans { padding: 0; }
  .card--tbl { padding: 44px 0 0; }
  .btable { font-size: 17px; }
  .btable thead { display: none; }
  .btable tr { display: block; padding: 12px 16px; border-bottom: 1px solid #D5D9DE; }
  .btable th, .btable td { display: block; border: 0; padding: 0; }
  .btable td:nth-child(2) { font-size: 20px; }
  .btable td:last-child { font-size: 14px; color: #555E69; }
  .btable td:last-child::before { content: "払う先　"; color: var(--ai-d); }
  .ask li { grid-template-columns: 10px 1fr; gap: 4px 14px; }
  .ask li > span:last-child { grid-column: 2; }
  .card--ask { padding: 24px 20px; }
  .phead { padding: 48px 0 40px; }
  .day { grid-template-columns: 1fr; padding: 40px 0; gap: 10px; }
  .day__no { display: flex; align-items: baseline; gap: 8px; }
  .day__no span { font-size: 36px; }
  .info th { width: 7.5em; padding-right: 12px; font-size: 14px; }
  .card--info { padding: 6px 16px; }
  .est { padding: 34px 16px 26px; }
  .est h3 { font-size: 24px; }
  .est table { font-size: 14px; }
  .est th, .est td { padding: 8px 6px; }
  .est .q { font-size: 12.5px; }
  .dates { grid-template-columns: 1fr; }
  .bars { grid-template-columns: 4em minmax(0, 1fr); }
  .bars__yen { grid-column: 2; padding-left: 0; margin-top: -10px; font-size: 18px; }
  .bars__name { font-size: 16px; }
  .bars__bar span { font-size: 12.5px; padding: 8px 6px; }
  .ois-end a.big { font-size: calc((100vw - 36px) * .8 / 6.6); }
  .ois-tel a { font-size: calc((100vw - 36px) * .85 / 6.6); }
  .foot__nav { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__night { display: none; }
}
.card--plans.card--mihon::after { top: 9px; right: 10px; color: #fff; border-color: rgba(255,255,255,.7); z-index: 1; }
.hero__note br { display: inline; }
@media (max-width: 640px) { .hero__note br { display: none; } }
.nowrap { white-space: nowrap; }
.flow__pt.ds { border-left: 1px solid var(--hai); }
@media (max-width: 640px) {
  .hd { font-size: 22px; letter-spacing: .03em; }
  .betsu-list { display: block; }
  .betsu-list li { padding: 4px 0; border-bottom: 1px dotted #D5D9DE; }
  .betsu-list li:last-child { border-bottom: 0; }
  .betsu-list li:not(:last-child)::after { content: none; }
}
@media (max-width: 860px) { .flow__pt.ds { border-left: 0; } }
.side-ph--s { grid-template-columns: 1fr 240px; gap: 36px; }
.phead--ois { padding-bottom: 64px; }
@media (max-width: 960px) { .side-ph--s { grid-template-columns: 1fr; } .side-ph--s figure { max-width: 300px; } }
@media (max-width: 640px) { .ois-tel small { font-size: 13.5px; letter-spacing: 0; } }
.flow__pt .n { font-style: normal; font-size: 12px; color: var(--ai-d); margin-right: 6px; border: 1px solid var(--ai); display: inline-block; min-width: 18px; height: 18px; line-height: 16px; text-align: center; vertical-align: 2px; }
.day__no .num-m { font-family: var(--min); }
.day__no .mark { width: 16px; height: 24px; }
.fig--panel { background: #fff; border: 1px solid #DDE2E8; padding: 36px 40px 30px; }
.fig--panel .flow__pt::before { background: #fff; }
.fig--panel .flow__pt.p1::before { background: var(--ai); }
@media (max-width: 640px) { .fig--panel { padding: 24px 14px 20px; } }
@media (min-width: 861px) { .flow__pt { padding-right: 6px; } .flow__pt b { font-size: 15.5px; letter-spacing: .02em; } }
.bars .r1 { grid-row: 1; } .bars .r2 { grid-row: 2; } .bars .r3 { grid-row: 3; }
.bars__bar span { flex-basis: auto; }
.bars.is-in .bars__bar.b2 { transition-delay: .15s; } .bars.is-in .bars__bar.b3 { transition-delay: .3s; }
@media (max-width: 960px) { .bars__box { grid-row: 4 !important; } }
@media (max-width: 640px) {
  .bars .bars__name.r1, .bars .bars__track.r1 { grid-row: 1; } .bars .bars__yen.r1 { grid-row: 2; }
  .bars .bars__name.r2, .bars .bars__track.r2 { grid-row: 3; } .bars .bars__yen.r2 { grid-row: 4; }
  .bars .bars__name.r3, .bars .bars__track.r3 { grid-row: 5; } .bars .bars__yen.r3 { grid-row: 6; }
  .bars__box { grid-row: 7 !important; }
  .btable th, .btable td { font-weight: 700; }
}
/* Z-2 組み直し: 額は棒の右端に、点線の箱へ線でつなぐ */
.bars { grid-template-columns: 5.5em minmax(0, 1fr) 15.5em !important; }
.bars__track { display: flex; align-items: center; min-width: 0; }
.bars__bar { width: calc(var(--w) * (100% - 8.4em)); flex: none; }
.bars__yen { padding-left: 12px; font-size: 20px; font-weight: 700; white-space: nowrap; flex: none; }
.bars__con { flex: 1 1 auto; min-width: 16px; height: 1px; background: var(--ai); margin-left: 10px; }
.bars__box { grid-column: 3; }
@media (max-width: 960px) {
  .bars { grid-template-columns: 4.6em minmax(0, 1fr) !important; }
  .bars__box { grid-column: 1 / -1; }
  .bars__con { display: none; }
}
@media (max-width: 640px) {
  .bars { grid-template-columns: 4em minmax(0, 1fr) !important; }
  .bars__track { flex-wrap: wrap; }
  .bars__bar { width: calc(var(--w) * 100%); }
  .bars__yen { flex-basis: 100%; padding: 6px 0 0; font-size: 18px; }
  .bars .bars__name.r1, .bars .bars__track.r1 { grid-row: 1; }
  .bars .bars__name.r2, .bars .bars__track.r2 { grid-row: 2; }
  .bars .bars__name.r3, .bars .bars__track.r3 { grid-row: 3; }
  .bars__box { grid-row: 4 !important; }
  .bars__name { align-self: start; padding-top: 8px; }
}
.plan-svg--t { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 640px) { .plan-svg--w { display: none; } .plan-svg--t { display: block; } }
.phead--shiki { padding-bottom: 32px; }
.phead--shiki h1 { margin-bottom: 0; }
.jz2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 80px 0 96px; }
.jz2__not { border-left: 1px solid var(--hai); padding-left: 48px; }
@media (max-width: 960px) { .jz2 { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; } .jz2__not { border-left: 0; padding-left: 0; border-top: 1px solid var(--hai); padding-top: 40px; } }
