@charset "UTF-8";
/* ==========================================================================
   株式会社SYO  style.css
   コンセプト：「くもったガラスを、ひと拭きで」
   ・見出し  ：Dela Gothic One（作業車のラッピング文字のような力強さ＝情熱）
   ・本文    ：BIZ UDPゴシック（ユニバーサルデザイン書体。60代以上の方にも読みやすい）
   ・配色    ：ガラスの白／インクの紺／指定色シアン #00A3C4／くもりのミスト（赤系は不使用）
   ・モチーフ：スクイジーのひと拭き（ヒーロー動画と見出しの登場）、浴室やキッチンのタイル目地（サービス一覧）
   ========================================================================== */

:root {
  --paper: #F4F8F9;       /* 拭き上げたガラスの白 */
  --white: #FFFFFF;
  --ink: #0D3442;         /* 文字・線画の紺 */
  --ink-soft: #3E5F6B;    /* 補足文字（紙色上 6.9:1） */
  --cyan: #00A3C4;        /* メインカラー（ご指定） */
  --cyan-ink: #00708A;    /* 紙色の上で文字に使うシアン（5.3:1） */
  --cyan-light: #6FD0E4;  /* 紺地の上で文字に使うシアン（7.4:1） */
  --ink-deep: #08222C;    /* シアン地の上で小さな文字に使う紺（5.5:1） */
  --mist: #DCEFF3;        /* くもり */
  --grout: #C9E0E6;       /* タイル目地 */
  --amber: #8A4B00;       /* エラー表示（赤系を避けたアンバー） */

  --ff-display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-body: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --space: clamp(64px, 9vw, 128px);
  --header-h: 64px;
  --ease: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 1100px) { :root { --header-h: 80px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ff-body); font-size: 16px; line-height: 1.9; letter-spacing: .03em;
  line-break: strict; word-break: auto-phrase;
  overflow-x: hidden;
}
@media (max-width: 767px) { body { font-size: 15px; padding-bottom: 56px; } }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp { display: inline; }
@media (min-width: 768px) { .sp { display: none; } }

/* 見出し（Dela Gothic One） */
.display { font-family: var(--ff-display); font-weight: 400; line-height: 1.32; letter-spacing: .02em; font-feature-settings: "palt" 1; }
.h-xl { font-size: clamp(32px, 4.8vw, 80px); line-height: 1.2; }
.h-l  { font-size: clamp(23px, 3.3vw, 40px); }
.h-m  { font-size: clamp(18px, 2vw, 24px); }
.h-s  { font-size: clamp(19px, 2vw, 23px); }
.lead { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.95; max-width: 34em; }
.muted { color: var(--ink-soft); }
.note { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* リンク */
.link { color: var(--cyan-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: rgba(0, 112, 138, .35); transition: color .2s, text-decoration-color .2s; }
.link:hover { color: var(--ink); text-decoration-color: var(--cyan); }

/* ボタン：ホバーすると、スクイジーで拭き取るように左から色が切り替わる（先端に“刃”の線が走る） */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-wipe: var(--cyan); --btn-fg-hover: var(--ink-deep); --btn-blade: rgba(255, 255, 255, .95);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 0 28px; border: 2px solid var(--ink); border-radius: 4px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 15px; letter-spacing: .08em; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 rgba(8, 34, 44, .28);
  transition: color .35s var(--ease), transform .12s, box-shadow .12s;
}
.btn::before {
  content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: calc(100% + 6px);
  background: linear-gradient(90deg, var(--btn-wipe) calc(100% - 6px), var(--btn-blade) calc(100% - 6px));
  transform: translateX(-101%); transition: transform .5s var(--ease);
}
.btn:focus-visible { color: var(--btn-fg-hover); }
.btn:focus-visible::before { transform: translateX(0); }
@media (hover: hover) {
  .btn:hover { color: var(--btn-fg-hover); }
  .btn:hover::before { transform: translateX(0); }
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(8, 34, 44, .28); }
.btn .ico { width: 18px; height: 18px; }
.btn-line { --btn-bg: rgba(255, 255, 255, .85); --btn-fg: var(--ink); --btn-wipe: var(--ink); --btn-fg-hover: #fff; --btn-blade: var(--cyan); box-shadow: none; }
.btn-line:active { box-shadow: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn[disabled]::before { display: none; }
.btn[disabled]:hover { color: var(--btn-fg); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-color: var(--grout); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 34px; height: 34px; }
.logo-type { display: flex; flex-direction: column; line-height: 1; }
.logo-type small { font-size: 10px; letter-spacing: .3em; font-weight: 700; }
.logo-type b { font-family: var(--ff-display); font-weight: 400; font-size: 24px; letter-spacing: .06em; margin-top: 3px; }
.gnav { display: none; }
.header-cta { display: none; }
.nav-toggle { position: relative; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; width: 24px; height: 3px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 23px; } .nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--header-h) 0 0; z-index: 99; overflow-y: auto; background: var(--paper); padding: 16px var(--gutter) 120px; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease), visibility .45s; }
.drawer.is-open { visibility: visible; clip-path: inset(0 0 0 0); }
.drawer-list a { display: block; padding: 13px 0; font-family: var(--ff-display); font-size: 19px; text-decoration: none; border-bottom: 1px solid var(--grout); }
.drawer-list a[aria-current="page"] { color: var(--cyan-ink); }
.drawer .btn { width: 100%; margin-top: 16px; }
body.is-locked { overflow: hidden; }
@media (min-width: 1100px) {
  .nav-toggle, .drawer { display: none; }
  .gnav { display: block; }
  .gnav ul { display: flex; gap: 28px; }
  .gnav a { position: relative; display: block; padding: 6px 0; font-weight: 700; font-size: 15px; text-decoration: none; }
  .gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-cta { display: inline-flex; min-height: 46px; padding: 0 22px; font-size: 14px; box-shadow: 0 2px 0 rgba(8, 34, 44, .28); }
}

/* ---------- hero（画面いっぱい・縦組みの見出し） ---------- */
/* トップページだけ、ヘッダーを動画の上に透明で重ねる */
body[data-page="index"] .site-header:not(.is-scrolled) { background: transparent; }
.hero { --hh: max(100svh, 520px); position: relative; height: var(--hh); overflow: hidden; background: var(--mist); }
.hero-media { position: absolute; inset: 0; }
/* 縦長画面は縦長の動画（街が下・空が上）。下端そろえで街を常に見せる */
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(244,248,249,0) 70%, rgba(244,248,249,.92) 100%); }
.hero-body { position: absolute; inset: 0; z-index: 1; }

/* SP：見出しは空いっぱいに、右上から縦に。画面下に一行とボタン */
.hero-title {
  position: absolute; top: calc(var(--header-h) + 20px); right: var(--gutter);
  writing-mode: vertical-rl; font-size: clamp(40px, min(17vw, 8.2svh), 72px); line-height: 1.16; letter-spacing: .06em;
}
.hero-title .line { display: block; }
.hero-side { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16px; }
.hero-tagline {
  margin-bottom: 10px; font-weight: 700; font-size: 13px; letter-spacing: .06em; line-height: 1.6;
  text-shadow: 0 0 6px var(--paper), 0 0 3px var(--paper), 0 0 1px var(--paper);
}
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-actions .btn { min-height: 54px; padding: 0 8px; font-size: 14px; letter-spacing: .04em; }
/* タブレット縦：動画の太陽と重ならない大きさに */
@media (max-aspect-ratio: 1/1) and (min-width: 600px) {
  .hero-title { font-size: 56px; }
  .hero-side { right: auto; width: min(520px, calc(100% - var(--gutter) * 2)); }
}

/* 見出しの登場：スクイジーで上から下へ拭き取るように現れる（書体の読み込み後に一度だけ。main.js が .fonts-ready を付ける） */
.js .hero-title .line { position: relative; clip-path: inset(0 -10% 100% -10%); }
.js .hero-side { opacity: 0; }
.fonts-ready .hero-title .line { animation: wipe-down 1s var(--ease) .1s forwards; }
.fonts-ready .hero-title .line::after { content: ""; position: absolute; left: -6%; right: -6%; top: 0; height: 5px; background: var(--cyan); animation: blade-down 1s var(--ease) .1s forwards; }
.fonts-ready .hero-title .line:nth-child(2), .fonts-ready .hero-title .line:nth-child(2)::after { animation-delay: .45s; }
.fonts-ready .hero-side { animation: appear .6s ease 1.15s forwards; }
@keyframes wipe-down { to { clip-path: inset(0 -10% -4% -10%); } }
@keyframes blade-down { 0% { top: 0; opacity: 1; } 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes appear { to { opacity: 1; } }

/* 横長画面：見出しを動画の「地面」に立たせ、街の建物と並ぶ“もう一棟”にする。
   動画は画面を覆うように拡大縮小されるので、その倍率（--s）から地面の高さと建物の端を計算する。
   動画内の位置：地面 y=900、左のビルの右端 x=418、右の家の左端 x=1500（1920×1080 基準） */
@media (min-aspect-ratio: 1/1) {
  .hero {
    --s: max(calc(100vw / 1920), calc(var(--hh) / 1080));
    --ground: calc(var(--hh) / 2 + 360 * var(--s));
    --fs: clamp(56px, calc((var(--ground) - var(--header-h) - 5svh) / 6.6), 150px);
  }
  .hero-media video, .hero-media img { object-position: 50% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(244,248,249,0) 80%, rgba(244,248,249,.5) 100%); }
  /* 見出し：家の左に、長い行の下端を地面にそろえて立てる（縦書きは右の行から読むので、行の頭は上でそろえる） */
  .hero-title {
    top: auto; right: calc(50% - 540 * var(--s) + 40px); bottom: calc(var(--hh) - var(--ground));
    font-size: var(--fs);
  }
  /* 一行とボタン：見出しの左に、同じく地面へ下端をそろえる（見出しの幅 ＝ 2行 × 1.16em） */
  .hero-side {
    left: auto; right: calc(50% - 540 * var(--s) + 40px + 2.32 * var(--fs) + 48px); bottom: calc(var(--hh) - var(--ground));
    width: clamp(220px, 18vw, 300px);
  }
  .hero-tagline { margin-bottom: 14px; font-size: clamp(13px, 1vw, 15px); }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .btn { min-height: 56px; font-size: 15px; letter-spacing: .08em; }
}

/* ---------- リード文（ヒーローの直後） ---------- */
.lead-band { background: var(--paper); padding-block: clamp(56px, 9vw, 120px); }
.lead-band-text { font-size: clamp(21px, 2.9vw, 38px); line-height: 1.65; letter-spacing: .03em; max-width: 21em; }

/* ---------- sections ---------- */
.section { padding-block: var(--space); }

/* 日本語の改行：文節の途中で折り返さない（Safari向けに、見出しは .ib で文節を固定） */
h1, h2, h3, .case-list li, .tile-name, .call-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
.ib { display: inline-block; }
.section--mist { background: var(--mist); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #fff; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }

/* タイル（サービス一覧）：目地＝背景色、タイル＝白 */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--grout); }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 18px 14px 20px; background: var(--white); text-decoration: none; isolation: isolate; }
.tile img { width: 100%; aspect-ratio: 640 / 400; object-fit: cover; object-position: 50% 60%; }
.tile-name { font-family: var(--ff-display); font-weight: 400; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.4; }
.tile-text { font-size: 13px; line-height: 1.75; color: var(--ink-soft); }
.tile-for { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--cyan-ink); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 40%, rgba(0,163,196,.16) 48%, rgba(255,255,255,0) 56%); transform: translateX(-100%); }
.tile:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
@media (hover: hover) {
  .tile:hover { background: #FBFEFF; }
  .tile:hover::after { transform: translateX(100%); transition: transform .7s var(--ease); }
  .tile:hover .tile-name { color: var(--cyan-ink); }
}
.tile-name { transition: color .3s; }
@media (min-width: 1000px) { .tile { padding: 26px 22px 24px; } .tile-text { font-size: 14px; } }
.tiles > li { display: flex; }
.tiles > li > .tile { flex: 1; }
/* 横長タイル（遺品整理）：行をまたいで、絵を左・文字を右に */
.tiles > .is-wide { grid-column: 1 / -1; }
@media (min-width: 600px) {
  /* 上下の 1fr で、文字のまとまりを絵の高さの中央に置く */
  .is-wide .tile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; gap: 8px 24px; align-items: start; }
  .is-wide .tile img { grid-row: 1 / -1; align-self: center; }
  .is-wide .tile-name { grid-row: 2; }
  .is-wide .tile-text { grid-row: 3; max-width: 30em; }
  .is-wide .tile-for { grid-row: 4; margin-top: 0; }
}
@media (min-width: 1000px) {
  .is-wide .tile { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 40px; }
}
/* SP：1列。絵を左、文字を右に */
@media (max-width: 599px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: 112px 1fr; gap: 2px 16px; align-items: start; padding: 16px; }
  .tile img { grid-row: span 3; align-self: center; }
  .tile-name { font-size: 15px; letter-spacing: 0; }
  .tile-for { padding-top: 2px; }
}

/* 見出しまわり */
.intro { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 40em; }
.more { margin-top: 32px; }

/* ご家庭 / 法人 */
.split { display: grid; gap: 4px; background: var(--grout); padding: 4px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-half { background: var(--white); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.split-half img { width: min(100%, 360px); }
.square-list { display: grid; gap: 10px; }
.square-list li { position: relative; padding-left: 22px; line-height: 1.7; }
.square-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--cyan); }
.split-half .link { margin-top: auto; align-self: flex-start; }

/* 作業のときに必ずやること（紺地） */
.rules { display: grid; gap: 40px; }
@media (min-width: 900px) { .rules { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } .rules > h2 { position: sticky; top: calc(var(--header-h) + 32px); } }
.rule-list { counter-reset: rule; }
.rule-list li { padding-block: 24px; border-top: 1px solid rgba(255,255,255,.2); color: #CFE2E8; }
.rule-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.rule-list h3 { color: #fff; font-family: var(--ff-display); font-weight: 400; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; }
.rule-list p { margin-top: 8px; max-width: 34em; }
.rules-foot { margin-top: 28px; }
.link--light { color: var(--cyan-light); }
.link--light:hover { color: #fff; }

/* たとえば、こんなとき */
.cases { display: grid; gap: 40px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .cases { grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; } }
.case-label { font-size: 14px; font-weight: 700; color: var(--cyan-ink); margin-bottom: 8px; }
.case-list li { padding-block: 14px; border-bottom: 1px solid var(--grout); font-size: clamp(15px, 1.5vw, 18px); font-weight: 700; line-height: 1.6; }
.cases-foot { margin-top: 36px; max-width: 34em; }

/* 流れ（順番があるので番号を使う） */
.steps { display: grid; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; padding-bottom: 36px; }
.step::before { counter-increment: step; content: counter(step); grid-row: span 3; font-family: var(--ff-display); font-size: 44px; line-height: 1; color: var(--cyan); text-align: center; }
.step::after { content: ""; position: absolute; left: 30px; top: 58px; bottom: 6px; width: 4px; background: var(--grout); }
.step:last-child::after { display: none; }
.step h3 { font-family: var(--ff-display); font-weight: 400; font-size: 20px; line-height: 1.45; padding-top: 4px; }
.step p { font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
@media (min-width: 1000px) {
  .steps--row { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps--row .step { grid-template-columns: 1fr; padding: 76px 0 0; }
  .steps--row .step::before { position: absolute; top: 0; left: 0; text-align: left; font-size: 52px; }
  .steps--row .step::after { display: block; left: 64px; right: -32px; top: 24px; bottom: auto; width: auto; height: 4px; }
  .steps--row .step:last-child::after { display: none; }
}
.step-note { margin-top: 8px; font-size: 14px; background: var(--mist); padding: 8px 12px; }

/* メッセージ */
.message { display: grid; gap: 40px; }
@media (min-width: 900px) { .message { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; } }
.message-figure { background: var(--white); border: 4px solid var(--grout); }
.message-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.message-body { display: grid; gap: 1.1em; margin-top: 28px; max-width: 36em; }
.signature { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.signature small { font-size: 14px; color: var(--ink-soft); }
.signature span { font-family: var(--ff-display); font-size: 19px; letter-spacing: .12em; }

/* エリア */
.area { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .area { grid-template-columns: 5fr 6fr; gap: 72px; } }
.pref { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--grout); width: fit-content; }
.pref li { background: var(--white); padding: 10px 18px; font-weight: 700; }
.pref li:first-child { background: var(--ink); color: #fff; }
.map { position: relative; aspect-ratio: 4 / 3; border: 4px solid var(--grout); background: var(--mist); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* お問い合わせ（シアンの面） */
.call { background: var(--cyan); color: var(--ink-deep); padding-block: clamp(64px, 9vw, 120px); }
.call-inner { display: grid; gap: 32px; }
@media (min-width: 1000px) { .call-inner { grid-template-columns: 1fr auto; align-items: end; gap: 64px; } }
.call-title { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.25; }
.call-text { margin-top: 18px; max-width: 30em; font-weight: 700; font-size: clamp(15px, 1.2vw, 17px); }
.call .btn-ink { --btn-wipe: #fff; --btn-fg-hover: var(--ink); --btn-blade: var(--ink); min-height: 62px; font-size: 16px; padding-inline: 40px; }

/* ---------- 下層ページ ---------- */
.page-head { padding: calc(var(--header-h) + clamp(36px, 6vw, 80px)) 0 clamp(36px, 6vw, 72px); }
.page-head-inner { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .page-head-inner { grid-template-columns: 7fr 4fr; gap: 64px; } }
.page-head h1 { font-size: clamp(28px, 4.4vw, 54px); line-height: 1.25; }
.page-head .lead { margin-top: 24px; }
.page-head-figure { background: var(--white); border: 4px solid var(--grout); max-width: 420px; }
.page-head-figure img { width: 100%; aspect-ratio: 640 / 380; object-fit: cover; }
body[data-page="estimate"] .page-head-figure, body[data-page="contact"] .page-head-figure, body[data-page="privacy"] .page-head-figure { display: none; }
@media (min-width: 900px) { .page-head-figure { max-width: none; } .page-head-figure img { aspect-ratio: 640 / 440; } body[data-page="estimate"] .page-head-figure, body[data-page="contact"] .page-head-figure, body[data-page="privacy"] .page-head-figure { display: block; } }
.crumb { border-top: 1px solid var(--grout); border-bottom: 1px solid var(--grout); }
.crumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; font-size: 13px; color: var(--ink-soft); }
.crumb li + li::before { content: "／"; margin-right: 8px; color: var(--grout); }
.crumb a { color: var(--cyan-ink); }

/* サービス詳細 */
.jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--grout); }
@media (min-width: 900px) { .jump { grid-template-columns: repeat(4, 1fr); } }
.jump a { position: relative; display: block; height: 100%; background: var(--white); padding: 12px 12px 12px 16px; font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.5; transition: background-color .2s; }
.jump a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cyan); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.jump a:hover::before, .jump a:focus-visible::before { transform: scaleY(1); }
@media (min-width: 600px) { .jump a { padding: 14px 16px; font-size: 15px; } }
.jump a:hover { background: var(--mist); }
.svc { display: grid; gap: 28px; padding-block: clamp(56px, 8vw, 104px); border-top: 4px solid var(--grout); }
.svc:first-child { border-top: 0; }
@media (min-width: 900px) { .svc { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; } }
.svc-figure { background: var(--white); border: 4px solid var(--grout); }
.svc-figure img { width: 100%; aspect-ratio: 640 / 440; }
.svc h2 { font-size: clamp(21px, 2.6vw, 30px); }
.svc-for { margin-top: 10px; font-weight: 700; color: var(--cyan-ink); font-size: 15px; }
.svc-body > p { margin-top: 18px; max-width: 36em; }
.svc-cols { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 700px) { .svc-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.svc-cols h3 { font-size: 15px; font-weight: 700; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 4px solid var(--cyan); width: fit-content; }
.svc .note { margin-top: 20px; }
.price { background: var(--white); border: 4px solid var(--grout); padding: clamp(28px, 5vw, 48px); }
.price p { margin-top: 12px; max-width: 40em; }

/* 会社 */
.value { display: grid; gap: 10px; padding-block: 32px; border-top: 4px solid var(--grout); }
@media (min-width: 900px) { .value { grid-template-columns: 5fr 7fr; gap: 64px; } }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 4px solid var(--grout); }
.table th, .table td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grout); line-height: 1.8; }
.table th { width: 28%; font-weight: 700; white-space: nowrap; background: #F9FCFD; }
.table tr:last-child > * { border-bottom: 0; }
@media (max-width: 599px) {
  .table th, .table td { display: block; width: 100%; padding: 14px 18px; }
  .table th { border-bottom: 0; padding-bottom: 0; background: none; color: var(--cyan-ink); }
}

/* FAQ */
.faq { border-top: 4px solid var(--grout); }
.faq details { border-bottom: 4px solid var(--grout); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 20px 0; font-weight: 700; font-size: 16px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--cyan-ink); }
.faq summary::before { content: "Q"; font-family: var(--ff-display); font-size: 21px; line-height: 1; color: var(--cyan-ink); }
.faq summary::after { content: "＋"; font-weight: 700; color: var(--cyan-ink); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 0 0 28px; }
.faq-a::before { content: "A"; font-family: var(--ff-display); font-size: 21px; line-height: 1.2; }
.faq-a p { max-width: 40em; }

/* フォーム */
.form { max-width: 860px; }
.form-error { margin-bottom: 32px; padding: 18px 22px; background: #FFF4E5; border-left: 6px solid var(--amber); color: var(--amber); font-weight: 700; line-height: 1.8; }
.form-error[hidden] { display: none; }
.field { display: grid; gap: 10px; padding-block: 22px; border-top: 1px solid var(--grout); }
@media (min-width: 800px) { .field { grid-template-columns: 240px 1fr; gap: 32px; } .field > .label { padding-top: 14px; } }
fieldset.field { display: block; border: 0; border-top: 1px solid var(--grout); margin: 0; padding-inline: 0; min-width: 0; }
fieldset.field::after { content: ""; display: table; clear: both; }
fieldset.field > legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
fieldset.field > legend + * { clear: both; }
@media (min-width: 800px) { fieldset.field > legend { width: 240px; margin: 0; padding-top: 10px; } fieldset.field > legend + * { clear: none; margin-left: 272px; } }
.label { font-weight: 700; line-height: 1.6; }
.label em { font-style: normal; font-size: 13px; margin-left: 6px; color: var(--cyan-ink); }
.label em.opt { color: var(--ink-soft); font-weight: 400; }
.input, .textarea { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--grout); border-radius: 4px; background: var(--white); font-size: 16px; line-height: 1.6; }
.textarea { min-height: 200px; resize: vertical; }
.input:hover, .textarea:hover { border-color: #A9C9D2; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,163,196,.25); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--amber); }
.help { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.err { font-size: 14px; font-weight: 700; color: var(--amber); }
.err:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border: 2px solid var(--grout); border-radius: 4px; background: var(--white); cursor: pointer; transition: border-color .2s; }
.choice:hover span { border-color: #A9C9D2; }
.choice span::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--ink-soft); background: var(--white); flex-shrink: 0; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--ink); font-weight: 700; }
.choice input:checked + span::before { border-color: var(--ink); background: var(--cyan); box-shadow: inset 0 0 0 3px var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.agree { padding-top: 28px; border-top: 1px solid var(--grout); }
.submit { margin-top: 32px; }
.submit .btn { width: 100%; max-width: 420px; }
.submit .btn[disabled] { opacity: .55; cursor: progress; }
.privacy { display: grid; gap: 28px; max-width: 46em; font-size: 15px; }
.privacy h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }

/* 認証コード：6マスのタイル */
.code-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 4px; background: var(--grout); max-width: 460px; margin-top: 32px; }
.code-tiles input { width: 100%; min-width: 0; aspect-ratio: 4 / 5; border: 0; border-radius: 0; background: var(--white); text-align: center; font-family: var(--ff-display); font-size: clamp(26px, 7vw, 40px); -moz-appearance: textfield; }
.code-tiles input::-webkit-outer-spin-button, .code-tiles input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.code-tiles input:focus { outline: none; background: var(--mist); box-shadow: inset 0 -6px 0 var(--cyan); }
.verify-meta { margin-top: 16px; font-size: 15px; }
.verify-meta b { font-family: var(--ff-display); font-weight: 400; }

/* 完了・404 */
.done { max-width: 40em; }
.done h1 { font-size: clamp(25px, 3.8vw, 44px); }
.done p { margin-top: 20px; }
.done .btn { margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D5E6EB; padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 5fr 3fr 3fr; gap: 56px; } }
.site-footer .logo { color: #fff; }
.footer-about { margin-top: 20px; max-width: 26em; line-height: 1.9; }
.site-footer h2 { font-size: 13px; font-weight: 700; color: var(--cyan-light); margin-bottom: 10px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer ul a { display: inline-block; padding-block: 5px; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9CB9C3; }

/* SP下部固定 */
.sp-bar { position: fixed; inset: auto 0 0; z-index: 90; display: grid; grid-template-columns: 1fr; background: var(--ink); transform: translateY(100%); transition: transform .35s var(--ease); }
.sp-bar.is-visible { transform: none; }
.sp-bar a { background: var(--cyan); color: var(--ink-deep) !important; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; color: #fff; font-weight: 700; text-decoration: none; }
.sp-bar .ico { width: 20px; height: 20px; }
@media (min-width: 768px) { .sp-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-title .line { clip-path: none; }
  .js .hero-title .line::after { display: none; }
  .js .hero-side { opacity: 1; }
}

/* 見積り依頼・お問い合わせのページでは、下部固定の見積りボタンを出さない */
body[data-page="estimate"] .sp-bar, body[data-page="contact"] .sp-bar { display: none; }
@media (max-width: 767px) { body[data-page="estimate"], body[data-page="contact"] { padding-bottom: 0; } }
