/* 方針：白＋水色系の青1色＋墨色。線の飾り・2色ボタン・ぼかしは使わず、面とカードと余白で整理する */
:root {
  --blue: #0b86d4;
  --blue-dark: #086dad;
  --blue-soft: #e8f5fd;
  --ink: #17242f;
  --text: #4a5a67;
  --muted: #7b8a95;
  --soft: #f4f8fb;
  --border: #e2eaf0;
  --line: #06b556;
  --line-dark: #049646;
  --header-h: 76px;
  --r-card: 16px;
  --r-btn: 10px;
  --shadow: 0 1px 2px rgb(23 36 47 / .04), 0 12px 32px -16px rgb(23 36 47 / .18);
  --space: clamp(72px, 8.5vw, 120px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-num: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; color-scheme: light; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.95 "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-feature-settings: "palt";
  letter-spacing: .04em;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: #bde2f8; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
svg[hidden] { display: none; } /* SVG には hidden 属性が効かないため明示する */
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-head); font-weight: 700; line-height: 1.55; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
a { color: inherit; }
.num { font-family: var(--font-num); font-weight: 700; font-feature-settings: "tnum"; letter-spacing: -.015em; }
.ph { display: inline-block; } /* 文節のまとまり。途中で改行しない */
.head h2, .head__lead, .note, .hero__lead, .panel__title, .panel__lead, .conclusion { text-wrap: balance; }

.container { width: min(1080px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); }
.container--form { width: min(700px, 100% - 32px); }

/* ---------- ボタン：単色 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; padding: 8px 24px;
  border: 0; border-radius: var(--r-btn);
  color: #fff; background: var(--blue);
  font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: .05em; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { box-shadow: 0 10px 22px -12px rgb(11 134 212 / .75); }
.btn--line { background: var(--line); box-shadow: 0 10px 22px -12px rgb(6 181 86 / .75); }
.btn__arrow { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn__icon { width: 22px; height: 22px; flex: none; }
.btn--white { background: #fff; color: var(--blue-dark); box-shadow: 0 10px 24px -14px rgb(0 40 70 / .6); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--primary:hover { background: var(--blue-dark); }
  .btn--line:hover { background: var(--line-dark); }
  .btn--white:hover { background: var(--blue-soft); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn--sm { min-height: 44px; gap: 7px; padding: 6px 16px; font-size: 13px; white-space: nowrap; box-shadow: none; }
.btn--sm .btn__icon { width: 17px; height: 17px; }
.btn--sm .btn__arrow { width: 12px; height: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn { min-width: 270px; }
.cta--center { justify-content: center; }

/* ---------- ヘッダー（透過しない） ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); padding-inline: 32px 20px;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header.is-scrolled { box-shadow: 0 6px 20px -14px rgb(23 36 47 / .3); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); line-height: 1.3; text-decoration: none; white-space: nowrap; }
.logo svg { width: 38px; height: 38px; flex: none; color: var(--blue); }
.logo span { display: grid; }
.logo small { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.logo b { font-size: 20px; font-weight: 900; letter-spacing: .04em; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { padding-block: 6px; color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .25s; }
.nav a:hover { color: var(--blue); }
.header__actions { display: flex; gap: 8px; }

/* ---------- ファーストビュー：左に文字、右に写真（重ねない・ぼかさない） ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); min-height: min(660px, calc(100svh - var(--header-h))); background: #fff; }
.hero__text { align-self: center; justify-self: end; width: 100%; max-width: 580px; padding: 48px 32px 56px 32px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 900; letter-spacing: .05em; line-height: 1.45; }
.hero__area { display: table; margin-bottom: 22px; padding: 5px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 14px; font-weight: 700; letter-spacing: .08em; line-height: 1.8; }
.hero__lead { margin-top: 24px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 2; }
.hero__lead strong { margin-inline: 2px; color: var(--blue); }
.hero__lead b { font-size: 1.5em; }
.hero .cta { margin-top: 36px; }
.hero .cta .btn { flex: 1 1 230px; min-width: 0; }
.hero__photo { position: relative; min-height: 360px; overflow: hidden; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }

/* ---------- 共通セクション ---------- */
.section { padding-block: var(--space); }
.section--soft { background: var(--soft); }
.section--tight { padding-top: 0; }
.head { margin-bottom: clamp(40px, 5vw, 60px); text-align: center; }
.head__en { margin-bottom: 10px; color: var(--blue); font: 700 13px/1.6 var(--font-num); letter-spacing: .16em; text-transform: uppercase; }
.head h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: .06em; }
.head__lead { margin-top: 18px; font-size: 15px; }
.note { margin-top: 20px; color: var(--muted); font-size: 12px; text-align: center; }

/* お悩み */
.issues { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: stretch; }
.issues__photo { overflow: hidden; border-radius: var(--r-card); }
.issues__photo img { width: 100%; height: 100%; object-fit: cover; }
.issues__list { display: grid; gap: 16px; }
.issue { display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.issue__no { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 18px; }
.issue h3 { color: var(--blue-dark); font-size: 13px; letter-spacing: .08em; }
.issue p { margin-top: 2px; color: var(--ink); font-weight: 700; line-height: 1.75; }
.conclusion { width: fit-content; max-width: 100%; margin: 48px auto 0; padding: 18px 36px; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.7; text-align: center; }

/* 削減事例 */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.case__photo { position: relative; }
.case__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case__ward { position: absolute; left: 14px; top: 14px; padding: 3px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.case__body { padding: 22px 24px 24px; text-align: center; }
.case h3 { font-size: 18px; }
.case__label { margin-top: 14px; color: var(--muted); font-size: 12px; }
.case__year { color: var(--blue); font-weight: 700; line-height: 1.3; white-space: nowrap; }
.case__year b { margin-right: 3px; font-size: 42px; }
.case__month { margin-top: 14px; padding: 7px 12px; border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 500; }

/* 申し込みパネル */
.panel-wrap { padding-block: 8px var(--space); }
.panel { padding: clamp(40px, 5vw, 60px) 24px; border-radius: 24px; background: var(--blue); text-align: center; }
.panel__title { color: #fff; font-family: var(--font-head); font-size: clamp(22px, 2.7vw, 30px); font-weight: 900; letter-spacing: .06em; line-height: 1.6; }
.panel__lead { margin-top: 10px; color: #e4f4ff; font-size: 14px; }
.panel .cta { margin-top: 30px; }
.panel .btn--line { box-shadow: 0 10px 24px -14px rgb(0 40 70 / .6); }

/* 理由 */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reason { padding: 32px 28px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.reason__no { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; }
.reason h3 { margin: 18px 0 12px; font-size: 19px; }
.reason > p:last-child { font-size: 14px; }
.wide-photo { margin-top: 24px; overflow: hidden; border-radius: var(--r-card); }
.wide-photo img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; object-position: center 32%; }

/* 料金の基本 */
.basics { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stat { padding: 40px 36px; border-radius: var(--r-card); background: var(--blue-soft); text-align: center; }
.stat__label { color: var(--ink); font-size: 13px; font-weight: 700; }
.stat__value { color: var(--blue); line-height: 1.2; }
.stat__value b { font-size: clamp(72px, 9vw, 104px); }
.stat__value span { margin-left: 8px; font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.stat__note { margin-top: 8px; font-size: 12px; line-height: 1.8; text-align: left; }
.stat__source { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: left; }
.stat__source a { text-underline-offset: 3px; }
.basics__text h3 { margin-bottom: 16px; font-size: 22px; }
.basics__text p { font-size: 15px; }
.basics__text p + p { margin-top: 12px; }
.sub { margin: 72px 0 24px; font-size: 21px; text-align: center; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.way { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; }
.way h4 { margin-bottom: 8px; font-size: 18px; }
.way > p { font-size: 14px; }
.way dl { margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: var(--soft); }
.way dt { color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.way dd { color: var(--ink); font-size: 14px; font-weight: 500; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.point { padding: 22px 20px; border-radius: var(--r-card); background: var(--soft); }
.point span { color: var(--blue); font-size: 22px; }
.point p { margin-top: 8px; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.75; }

/* 流れ */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.step { position: relative; padding: 36px 24px 30px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); text-align: center; }
.step__no { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; }
.step h3 { margin: 18px 0 8px; font-size: 18px; }
.step p { font-size: 14px; }
/* カードの間の矢印（カードの縦中央に置く） */
.step + .step::before { content: ""; position: absolute; top: 50%; left: -29px; width: 14px; height: 18px; background: var(--blue); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); }

/* よくある質問 */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.faq summary { position: relative; display: block; padding: 20px 60px 20px 60px; color: var(--ink); font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.7; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 20px; top: 20px; color: var(--blue); font: 700 18px/1.5 var(--font-num); }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; color: var(--blue); font: 700 24px/1 var(--font-num); transform: translateY(-50%); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 28px 22px 60px; font-size: 14px; }

/* 対応エリア */
.area { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area li { width: 8em; padding: 9px 4px; border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 500; text-align: center; }

/* ---------- お問い合わせ ---------- */
.contact__line { margin-top: 28px; color: var(--ink); font-weight: 700; text-align: center; }
.contact__line a { margin-left: 8px; color: var(--line-dark); text-underline-offset: 4px; }
.form, .form__done { padding: 44px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > span { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
.field i { padding: 0 8px; border-radius: 4px; background: #d0364d; color: #fff; font-size: 10px; font-style: normal; line-height: 1.9; }
.field small { padding: 0 8px; border-radius: 4px; background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.9; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid #ccd9e2; border-radius: var(--r-btn); background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(11 134 212 / .14); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d0364d; background: #fff7f8; }
.field textarea { resize: vertical; }
.field ::placeholder { color: #97a6b1; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.agree a { color: var(--blue-dark); font-weight: 700; text-underline-offset: 3px; }
.form__error { padding: 12px 16px; border-radius: var(--r-btn); background: #fff0f2; color: #a8102f; font-size: 14px; }
.form__submit { width: 100%; min-height: 68px; font-size: 17px; }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__note { color: var(--muted); font-size: 12px; text-align: center; }
.form__done { text-align: center; }
.form__done h3 { margin-bottom: 12px; font-size: 21px; }
.form[hidden], .form__done[hidden], .form [hidden] { display: none; }

/* ---------- フッター ---------- */
.footer { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; }
.footer .logo { margin-bottom: 8px; text-align: left; }
.footer a { text-underline-offset: 3px; }
.bar { display: none; }

/* ---------- スクロールに合わせた控えめな表示（JS が .rv を付ける。画面外の要素だけ） ---------- */
.rv { opacity: 0; transform: translateY(16px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- プライバシーポリシー ---------- */
.policy { padding-block: 64px 96px; }
.policy h1 { margin-bottom: 32px; font-size: clamp(24px, 3.4vw, 32px); }
.policy__body { padding: 48px; border-radius: var(--r-card); background: #fff; font-size: 15px; }
.policy__body h2 { margin: 40px 0 12px; font-size: 18px; }
.policy__body p + p { margin-top: 12px; }
.policy__body ol { margin: 0; padding-left: 1.6em; list-style: decimal; }
.policy__body ul { margin-top: 12px; }
.policy__body ul li { padding-left: 1em; text-indent: -1em; }
.policy__body ul + p { margin-top: 12px; }

/* ---------- 画面が狭いとき ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: -1; min-height: 0; height: min(62vw, 38svh); }
  .hero__text { justify-self: center; max-width: 600px; padding: 28px 20px 48px; text-align: center; }
  .hero__area { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .issues { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .issues__photo img { aspect-ratio: 3 / 2; height: auto; }
  .cases, .reasons, .flow { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .reasons { gap: 16px; }
  .wide-photo { max-width: 480px; margin-inline: auto; margin-top: 16px; }
  .wide-photo img { aspect-ratio: 3 / 2; }
  .basics, .ways { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .basics { gap: 28px; }
  .points { grid-template-columns: 1fr 1fr; max-width: 560px; margin-inline: auto; }
  .flow { gap: 36px; }
  .step + .step::before { top: -27px; left: 50%; transform: translateX(-50%) rotate(90deg); }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; --space: 68px; }
  body { font-size: 15px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container, .container--narrow { width: calc(100% - 40px); }
  .header { padding-inline: 18px; }
  .logo svg { width: 32px; height: 32px; }
  .logo b { font-size: 17px; }
  .logo small { font-size: 9px; }
  .header__actions { display: none; }
  .hero h1 { font-size: clamp(27px, 7.8vw, 38px); }
  .hero__area { margin-bottom: 14px; font-size: 12px; }
  .hero__lead { margin-top: 14px; font-size: 14px; }
  .hero .cta { flex-direction: column; margin-top: 24px; }
  .hero .cta .btn { flex: none; }
  .cta { flex-direction: column; width: 100%; }
  .cta .btn { min-width: 0; width: 100%; min-height: 56px; }
  .section--tight { padding-top: 0; }
  .issue { gap: 16px; padding: 20px 18px; }
  .issue__no { width: 40px; height: 40px; font-size: 16px; }
  .conclusion { margin-top: 32px; padding: 18px 20px; border-radius: 16px; font-size: 17px; }
  .panel-wrap .container { width: calc(100% - 24px); }
  .panel { padding: 36px 18px; border-radius: 20px; }
  .stat { padding: 32px 22px; }
  .sub { margin-top: 56px; font-size: 19px; }
  .way { padding: 22px; }
  .points { gap: 12px; }
  .point { padding: 18px 16px; }
  .point p { font-size: 13px; }
  .faq summary { padding: 18px 48px 18px 48px; font-size: 15px; }
  .faq summary::before { left: 16px; top: 18px; }
  .faq summary::after { right: 16px; }
  .faq p { padding: 0 18px 20px 48px; }
  .area { gap: 8px; }
  .area li { width: calc((100% - 16px) / 3); }
  .form, .form__done { padding: 28px 18px; }
  .policy { padding-block: 40px 64px; }
  .policy__body { padding: 24px 20px; font-size: 14px; }

  .bar { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); transition: transform .35s var(--ease), visibility .35s; }
  .bar.is-hidden { transform: translateY(100%); visibility: hidden; }
  .bar .btn { min-height: 50px; gap: 7px; padding-inline: 8px; font-size: 14px; box-shadow: none; }
  .bar .btn__icon { width: 18px; height: 18px; }
  .bar .btn__arrow { width: 13px; height: 13px; }
}

/* 背の低いスマホでも、最初の画面に申し込みボタンが入るようにする */
@media (max-width: 767px) and (max-height: 720px) {
  .hero__photo { height: 26svh; }
  .hero__text { padding-top: 16px; }
  .hero h1 { font-size: 25px; }
  .hero__area { margin-bottom: 8px; }
  .hero__lead { margin-top: 8px; font-size: 13px; line-height: 1.8; }
  .hero .cta { gap: 10px; margin-top: 14px; }
  .hero .cta .btn { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
