:root {
  --ink: #14262a;
  --ink-2: #465a5e;
  --teal: #0d5b63;
  --teal-d: #083f46;
  --mist: #eff6f4;
  --line: #d2dfdd;
  --pin: #c8421c;
  --pin-d: #a53513;
  --sun: #ffcf3f;
  --green: #067a3e;
  --green-d: #045c2e;
  --paper: #fff;
  --r: 14px;
  --wrap: 1120px;
  --head: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; text-wrap: balance; word-break: auto-phrase; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--teal-d); }
svg { display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--ink); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 26px; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-main { background: var(--pin); color: #fff; }
.btn-main:hover { background: var(--pin-d); color: #fff; }
.btn-line { background: var(--green); color: #fff; }
.btn-line:hover { background: var(--green-d); color: #fff; }
.btn-sub { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sub:hover { background: var(--ink); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ヘッダー */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--head); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.22rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo svg { width: 24px; height: 32px; flex: none; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 12px; color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav a:hover { background: var(--mist); }
.site-head .btn { min-height: 44px; padding: 8px 20px; font-size: .95rem; }
.menu-btn { display: none; }

/* ファーストビュー */
.hero { background: var(--mist); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: 44px; align-items: center; padding-block: 68px 76px; }
.eyebrow { font-weight: 700; color: var(--teal); }
.hero h1 { margin-top: 12px; font-size: clamp(1.72rem, 4.1vw, 2.95rem); line-height: 1.4; font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { display: inline-block; }
.hero h1 .mark { background: linear-gradient(transparent 64%, var(--sun) 64% 94%, transparent 94%); }
.hero .lead { margin-top: 20px; max-width: 36em; font-size: 1.05rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badges li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 700; }
.badges svg { width: 18px; height: 18px; flex: none; }
.hero .btns { margin-top: 26px; }
.hero .btns .btn { padding-inline: 20px; }
.note { color: var(--ink-2); font-size: .88rem; line-height: 1.75; }
.hero .note { margin-top: 10px; }
.map { filter: drop-shadow(0 22px 34px rgba(8, 63, 70, .16)); }
.map svg { width: 100%; height: auto; }
.pin-in { animation: drop .7s .35s cubic-bezier(.2, 1.2, .4, 1) both; transform-box: fill-box; transform-origin: 50% 100%; }
.ring { animation: ring 2.6s 1.1s ease-out infinite both; transform-box: fill-box; transform-origin: center; }
.bubble { animation: show .4s .95s ease-out both; }
@keyframes drop { from { transform: translateY(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ring { from { transform: scale(.35); opacity: .8; } to { transform: scale(1.15); opacity: 0; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }

/* 各章 */
.sec { padding-block: 84px; }
.tint { background: var(--mist); }
.sec-head { max-width: 800px; margin-bottom: 36px; }
.sec-head h2, .h2 { font-size: clamp(1.6rem, 3.1vw, 2.2rem); font-weight: 800; }
.sec-head p { margin-top: 14px; }

/* 対応している業種 */
.rows { border-top: 2px solid var(--ink); }
.rows > div { display: grid; grid-template-columns: 14em minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; font-size: 1.06rem; }
.rows + .note { margin-top: 18px; }

/* お悩み */
.worry ul { display: grid; gap: 12px; }
.worry li { position: relative; padding: 15px 20px 15px 54px; background: #fff; border-radius: 12px; font-weight: 600; }
.worry li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 18px; height: 18px; border: 2px solid var(--teal); border-radius: 5px; }
.worry li::after { content: ""; position: absolute; left: 26px; top: 23px; width: 6px; height: 11px; border: solid var(--teal); border-width: 0 3px 3px 0; transform: rotate(42deg); }
.worry .answer { margin-top: 28px; font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 800; color: var(--teal); }

/* サービス */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#flow .two { gap: 48px; }
.split { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 0 56px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.card h3 { font-size: 1.32rem; color: var(--teal-d); }
.card > p { margin-top: 10px; }
.list { display: grid; gap: 9px; margin-top: 18px; }
.list li { position: relative; padding-left: 26px; }
.list li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 9px; height: 9px; border-radius: 50%; background: var(--pin); }
.notes { display: grid; gap: 7px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.notes li, .notes p { color: var(--ink-2); font-size: .9rem; line-height: 1.75; padding-left: 1.15em; text-indent: -1.15em; }

/* 特徴 */
.feats { columns: 2; column-gap: 56px; }
.feats > div { break-inside: avoid; padding-bottom: 36px; }
.feats h3 { position: relative; padding-left: 30px; font-size: 1.16rem; }
.feats h3 svg { position: absolute; left: 0; top: .12em; width: 18px; height: 24px; }
.feats p { margin-top: 10px; }

/* ごあいさつ */
.letter { background: var(--mist); border-radius: var(--r); padding: clamp(28px, 5vw, 56px); }
.letter .who { font-size: 1.15rem; font-weight: 700; }
.letter h3 { margin-top: 32px; font-size: 1.12rem; color: var(--teal); }
.letter h3 + p, .letter h3 + ul { margin-top: 10px; }
.letter p + p { margin-top: 12px; }

/* 無料診断 */
.diag { background: var(--teal-d); color: #fff; }
.diag .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.diag p { margin-top: 16px; }
.diag .btns { margin-top: 28px; }
.sheet { background: #fff; color: var(--ink); border-radius: var(--r); padding: 30px 32px; }
.sheet h3 { font-size: 1.1rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.sheet li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sheet li:last-child { border-bottom: 0; padding-bottom: 0; }
.sheet li svg { position: absolute; left: 0; top: 1.15em; width: 21px; height: 21px; }

/* 料金 */
.price-group { margin-top: 52px; }
.price-group > h3 { font-size: 1.36rem; padding-left: 14px; border-left: 6px solid var(--pin); }
.price-group > h3 + p { margin-top: 8px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.plan h4 { font-size: 1.08rem; }
.plan .yen { margin: 4px 0 14px; font-size: 1rem; font-weight: 700; color: var(--teal-d); line-height: 1.3; font-variant-numeric: tabular-nums; }
.plan .yen b { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; }
.plan p + p { margin-top: 10px; }
.price-group .notes { border-top: 0; padding-top: 0; }

/* ご注意 */
.cautions { display: grid; gap: 14px; }
.cautions li { position: relative; padding: 0 0 14px 26px; border-bottom: 1px solid var(--line); }
.cautions li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 9px; height: 9px; background: var(--teal); border-radius: 2px; }
.cautions + p { margin-top: 20px; }
.cautions ~ .btns { margin-top: 28px; }

/* ご依頼の流れ */
.flow-col > h3 { font-size: 1.22rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.steps { margin-top: 24px; }
.steps li { position: relative; padding: 0 0 28px 58px; }
.steps li::before { content: ""; position: absolute; left: 18px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .num { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.steps h4 { font-size: 1.06rem; padding-top: 5px; }
.steps p { margin-top: 6px; }

/* よくある質問 */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 48px 20px 0; font-weight: 700; font-size: 1.04rem; line-height: 1.6; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 3px; margin-top: -1px; background: var(--pin); border-radius: 2px; }
.faq summary::after { transform: rotate(90deg); transition: transform .2s; }
.faq details[open] summary::after { transform: none; }
.faq .a { padding: 0 48px 24px 0; }
.faq .a ul { margin-block: 10px; }
.faq .a p + p { margin-top: 10px; }
.faq + p { margin-top: 24px; }
.faq ~ .btns { margin-top: 18px; }

/* 問い合わせ */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 32px; align-items: start; }
.contact .sec-head { grid-column: 1 / -1; margin-bottom: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); }
.field + .field { margin-top: 22px; }
.field > label, .field > .label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 7px; }
.req { display: inline-block; white-space: nowrap; background: var(--pin); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 11px 14px; border: 1.5px solid #8ba09f; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; line-height: 1.6;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(13, 91, 99, .25); outline-offset: 0; box-shadow: none; }
.field [aria-invalid="true"] { border-color: var(--pin); background: #fff6f3; }
.err { margin-top: 6px; color: var(--pin-d); font-size: .9rem; font-weight: 700; }
.err:empty { display: none; }
.agree { display: flex; align-items: flex-start; gap: 10px; }
.agree input { width: 24px; min-height: 24px; height: 24px; margin: 3px 0 0; flex: none; accent-color: var(--teal); }
.agree label { font-weight: 600; }
.agree .req { margin-left: 8px; }
.hp + .field { margin-top: 22px; }
.form-end { margin-top: 28px; }
.form-end .btn { width: 100%; }
.form-end .btn[disabled] { background: #8a9a9a; cursor: wait; }
.form-msg { margin-top: 14px; font-weight: 700; color: var(--pin-d); }
.form-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.offline { font-weight: 600; }
.offline + .btns { margin-top: 18px; }
.line-box { text-align: center; }
.line-box img { width: 190px; max-width: 100%; height: auto; margin: 0 auto; display: block; border: 1px solid var(--line); border-radius: 10px; }
.line-box .btn { width: 100%; margin-top: 18px; }
.line-box p { margin-top: 16px; text-align: left; font-size: .94rem; }

/* フッター */
.site-foot { background: var(--ink); color: #dfe9e8; padding-block: 56px 48px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--sun); }
.site-foot .logo { color: #fff; }
.site-foot .logo:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 16px; }
.foot-note { margin-top: 24px; padding-top: 22px; border-top: 1px solid #3b5054; font-size: .9rem; line-height: 1.8; }
.foot-note p + p { margin-top: 10px; }

/* スマホの下のボタン */
.dock { display: none; }

/* ほかのページ */
.page { padding-block: 56px 84px; }
.page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.page h1 + * { margin-top: 28px; }
.page h2 { margin-top: 40px; font-size: 1.18rem; color: var(--teal); }
.page h2 + * { margin-top: 10px; }
.page p + p { margin-top: 10px; }
.page .list { margin-top: 10px; }
.page .plain { color: var(--ink-2); font-size: .94rem; margin-top: 10px; }
.page .rows > div { grid-template-columns: 9em minmax(0, 1fr); }
.page .date { margin-top: 40px; }
.page .btns { margin-top: 28px; }
.thanks h2 { margin-top: 40px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: auto; padding: 0; background: none; border: 0; cursor: pointer; order: 3; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }
  .menu-btn span { position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -8px; }
  .menu-btn span::after { top: 8px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .site-head .wrap { gap: 8px; }
  .site-head .head-cta { margin-left: auto; order: 2; }
  .site-head .head-cta + .menu-btn, .menu-btn { margin-left: 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(8, 63, 70, .1); }
  .nav.open { display: block; }
  .nav ul { display: block; padding: 8px 20px 16px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav li:last-child a { border-bottom: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 56px; }
  .map { max-width: 480px; width: 100%; margin-inline: auto; }
  .diag .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .plans.three { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .sec { padding-block: 60px; }
  .two, .plans, .split { grid-template-columns: minmax(0, 1fr); }
  .feats { columns: 1; }
  .feats > div:last-child { padding-bottom: 0; }
  .rows > div, .page .rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .card, .plan, .sheet { padding: 24px 22px; }
  .faq .a { padding-right: 0; }
  .hero .btns .btn, .diag .btns .btn, .sec .btns .btn { width: 100%; }
  body.has-dock { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .dock .btn { min-height: 54px; padding: 8px 6px; font-size: .95rem; }
  .site-head .head-cta { display: none; }
  .menu-btn { margin-left: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin-in, .ring, .bubble { animation: none; }
  .btn, .faq summary::after { transition: none; }
}

@media print {
  .site-head, .dock, .menu-btn { display: none; }
}
