/* ==========================================================
   Lio株式会社 トップページ
   色や文字はここの :root でまとめて変更できます
   ========================================================== */
:root {
  --accent: #b3262d;
  --accent-400: color-mix(in srgb, var(--accent) 70%, white);
  --accent-700: color-mix(in srgb, var(--accent) 72%, black);

  --bg: #f3f2f2;
  --surface: #eae9e9;
  --text: #201f1d;
  --divider: color-mix(in srgb, #201f1d 16%, transparent);

  --n-100: #f8f4f4;
  --n-300: #d7d3d3;
  --n-400: #bab6b6;
  --n-700: #605d5d;
  --n-800: #444141;
  --n-900: #2d2b2b;

  --font: "Archivo", "Noto Sans JP", sans-serif;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(80px, 10vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}
img { display: block; max-width: 100%; }
a { color: var(--accent-700); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.fill { width: 100%; height: 100%; object-fit: cover; }
.plate {
  filter: sepia(.22) saturate(.82) contrast(1.05);
  border: 6px solid var(--surface);
  outline: 1px solid var(--divider);
  overflow: hidden;
}

/* ---------- 共通パーツ ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: var(--pad-y) var(--pad-x); }
.sec { border-top: 1px solid var(--divider); scroll-margin-top: 72px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .24em; color: var(--accent); }
.h2 { font-weight: 900; letter-spacing: .01em; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.4; }
.text { font-size: 20px; line-height: 1.95; text-align: justify; }
.muted { color: var(--n-700); }
.stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font); font-weight: 600; font-size: 14px; line-height: 1.2;
  color: var(--text); background: transparent;
  border: 1px solid transparent; border-radius: 4px;
  padding: 9px 16px;
}
.btn svg { display: block; flex: none; }
.btn-primary { color: var(--accent); border-color: var(--accent); }
.btn-primary:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--divider); border-radius: 4px;
}
.card-kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.card-title { font-size: 24px; font-weight: 500; line-height: 1.2; }
.card-body { font-size: 20px; line-height: 1.85; opacity: .8; flex: 1; }

.tag-outline {
  display: inline-flex; align-self: flex-start;
  font-size: 10px; padding: 3px 10px; border-radius: 3px;
  border: 1px solid var(--accent); color: var(--accent);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--divider);
}
.header-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
}
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.logo:hover { color: var(--text); }
.logo-mark { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: .04em; }
.logo-sub { font-size: 11px; letter-spacing: .18em; color: var(--n-700); }
.gnav { display: flex; flex-shrink: 0; white-space: nowrap; gap: clamp(14px, 2vw, 28px); font-size: 14px; }
.gnav a { color: var(--text); text-decoration: none; }
.gnav a:hover { color: var(--accent); }
.header-tel {
  display: flex; flex-shrink: 0; white-space: nowrap; flex-direction: column; align-items: flex-end;
  text-decoration: none; color: var(--text); line-height: 1.15;
}
.header-tel .num { font-size: 22px; font-feature-settings: "tnum"; letter-spacing: .03em; }
.header-tel .note { font-size: 10px; color: var(--n-700); }
.header-cta { flex-shrink: 0; white-space: nowrap; font-size: 14px; padding: 10px 18px; }
@media (max-width: 1099px) { .gnav, .header-tel { display: none; } }

/* ---------- トップ画面（スクロールで動くコラージュ） ---------- */
.hero { position: relative; height: 260svh; }
.hero-stage {
  position: sticky; top: var(--hdr, 73px);
  height: calc(100svh - var(--hdr, 73px)); min-height: 540px; overflow: hidden;
}
.hero-set { position: absolute; inset: 0; }
.hero-sp { display: none; }
.hero-img { position: absolute; overflow: hidden; will-change: transform, opacity; }
.hero-o1, .hero-o2 {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; text-align: center; padding: 0 24px;
}
.hero-o1 { gap: 28px; background: color-mix(in srgb, black 30%, transparent); }
.hero-intro {
  font-weight: 900; font-size: clamp(32px, 4.4vw, 64px); letter-spacing: .02em; line-height: 1.5;
  color: white; text-wrap: balance;
}
.hero-scroll { position: absolute; bottom: 28px; font-size: 13px; letter-spacing: .3em; color: white; }
.hero-o2 { gap: 22px; opacity: 0; }
.hero-o2 .eyebrow { font-size: 13px; font-weight: 400; letter-spacing: .32em; }
.hero-title {
  font-weight: 900; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.25; letter-spacing: .01em;
  text-wrap: balance; max-width: 11em;
  background: color-mix(in srgb, var(--bg) 82%, transparent); padding: 6px 18px;
}
.hero-sub {
  font-size: 20px; color: var(--n-800); letter-spacing: .08em;
  background: color-mix(in srgb, var(--bg) 82%, transparent); padding: 4px 14px;
}

/* ---------- 文章の形の検索 ---------- */
.finder { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.finder-inner {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 18px; font-size: clamp(22px, 2.8vw, 34px); line-height: 1.6;
}
.finder select {
  appearance: none; -webkit-appearance: none;
  font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--accent);
  padding: 2px 34px 4px 6px; border-radius: 0;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.finder .btn { font-size: 16px; padding: 10px 22px; margin-left: 8px; }

/* ---------- 写真で相談 ---------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.photo-body { display: flex; flex-direction: column; gap: 28px; }
.photo-body .text { max-width: 34em; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--divider);
}
.steps li { padding: 18px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { padding-right: 0; }
.steps li + li { border-left: 1px solid var(--divider); }
.steps .no { font-size: 13px; color: var(--accent); font-feature-settings: "tnum"; }
.steps .label { font-size: 20px; }
.photo-cta { font-size: 15px; padding: 12px 24px; align-self: flex-start; }
.photo-img { aspect-ratio: 4 / 5; max-height: 620px; width: 100%; }

/* ---------- 選ばれる理由 ---------- */
.reasons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.reason {
  border-top: 1px solid var(--text); padding-top: 26px; margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.reason .no { font-size: 44px; line-height: 1; font-weight: 800; color: var(--accent); font-feature-settings: "tnum"; }
.reason h3 { font-weight: 700; font-size: 22px; }
.reason p { font-size: 20px; line-height: 1.9; text-align: justify; }

/* ---------- 施工事例 ---------- */
.works { background: color-mix(in srgb, var(--n-900) 78%, black); color: var(--n-100); scroll-margin-top: 72px; }
.works .wrap { max-width: 1280px; }
.works .eyebrow { color: var(--accent-400); }
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.works-more {
  font-size: 15px; padding: 10px 20px; color: var(--n-100);
  border-color: color-mix(in srgb, var(--n-100) 40%, transparent);
}
.works-more:hover { color: white; background: color-mix(in srgb, white 8%, transparent); }
.works-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.work { display: flex; flex-direction: column; gap: 18px; }
.work-img { aspect-ratio: 4 / 3; width: 100%; overflow: hidden; }
.work-body {
  display: flex; flex-direction: column; gap: 8px; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--n-100) 22%, transparent);
}
.work-place { font-size: 12px; letter-spacing: .08em; color: var(--n-400); }
.work h3 { font-weight: 700; font-size: 22px; }
.work p { font-size: 20px; line-height: 1.85; color: var(--n-300); }

/* ---------- こだわり ---------- */
.process-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px clamp(40px, 6vw, 96px); align-items: end;
}
.process-list { display: flex; flex-direction: column; border-top: 1px solid var(--divider); }
.process-item {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--divider);
}
.process-img { aspect-ratio: 3 / 2; width: 100%; }
.process-body { display: flex; flex-direction: column; gap: 12px; }
.process-body .step { font-size: 13px; letter-spacing: .2em; color: var(--accent); font-feature-settings: "tnum"; }
.process-body h3 { font-weight: 700; font-size: 24px; }
.process-body p { font-size: 20px; line-height: 1.9; text-align: justify; }

/* ---------- 料金 ---------- */
.price-lead { font-size: 20px; line-height: 1.8; }
.cards3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.plan { padding: 32px 28px; gap: 16px; }
.plan.featured { border-color: var(--accent); }
.plan-price {
  display: flex; align-items: baseline; gap: 6px; padding: 16px 0;
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
}
.plan-price .amount { font-size: 40px; font-weight: 800; font-feature-settings: "tnum"; }
.plan-price .unit { font-size: 20px; }

/* ---------- 代表あいさつ ---------- */
.greeting .wrap {
  max-width: 1100px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.ceo-img { aspect-ratio: 3 / 4; width: 100%; max-width: 420px; justify-self: center; }
.greeting-body { display: flex; flex-direction: column; gap: 28px; }
.greeting-body .text { line-height: 2; }
.sign { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--divider); padding-top: 18px; }
.sign .role { font-size: 13px; color: var(--n-700); }
.sign .name { font-size: 28px; font-weight: 700; letter-spacing: .12em; }

/* ---------- お客様の声 ---------- */
.voice-card { padding: 28px; gap: 14px; border-style: dashed; min-height: 200px; }
.voice-card .card-kicker { font-size: 11px; letter-spacing: .16em; }
.voice-card .card-title { font-size: 20px; }

/* ---------- 相談窓口 ---------- */
.contact-box {
  border: 1px solid var(--accent);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center;
}
.contact-box .sec-head { align-items: center; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px; width: 100%; max-width: 880px;
}
.contact-btn { flex-direction: column; gap: 6px; padding: 22px 16px; }
.contact-btn .big { font-size: 19px; }
.contact-btn .tel { font-size: 22px; font-feature-settings: "tnum"; }
.contact-btn .small { font-size: 11px; font-weight: 400; color: var(--n-700); }

/* ---------- 会社概要 ---------- */
.company .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 80px);
}
.company-info { display: flex; flex-direction: column; gap: 32px; }
.table { width: 100%; border-collapse: collapse; font-size: 20px; }
.table th, .table td { padding: 16px 0; border-bottom: 1px solid var(--divider); text-align: left; vertical-align: top; }
.table th { width: 7em; font-weight: 600; letter-spacing: .06em; color: color-mix(in srgb, var(--text) 60%, transparent); }
.table .num { font-feature-settings: "tnum"; }
.map { min-height: 360px; border: 1px solid var(--divider); background: var(--surface); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--divider); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo-mark { font-size: 34px; }
.footer-brand .company { font-size: 13px; }
.footer-brand .addr { font-size: 12px; color: var(--n-700); }
.copyright { font-size: 12px; letter-spacing: .1em; color: var(--n-700); }

/* ---------- スマホ下部の固定ボタン ---------- */
.sp-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--divider);
}
.sp-bar .btn { min-height: 48px; font-size: 16px; }

/* ---------- スマホ（759px以下） ---------- */
@media (max-width: 759px) {
  body { padding-bottom: 72px; }
  .hero { height: 220svh; }
  .hero-pc { display: none; }
  .hero-sp { display: block; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .sp-bar { display: grid; }
}
@media (max-width: 400px) { .logo-sub { display: none; } }
