/* =========================================================
   NagiLab — アプリケーション開発
   配色：安全緑を明るく振った緑。面は白と薄いミント。注意は琥珀
   書体：和文 Noto Sans JP ／ 欧文・数字 Outfit ／ ラベル Roboto Mono
   ========================================================= */

:root {
  /* color */
  --white:       #ffffff;
  --bg:          #fbfdfc;   /* ほぼ白。わずかに緑 */
  --mint:        #eef8f2;   /* 明るい面 */
  --mint-deep:   #dff0e7;
  --rule:        #dceae2;
  --rule-soft:   #ebf3ee;
  --green:       #0e7c4f;   /* 主役 */
  --green-lite:  #12a06a;   /* ホバー・アクセント */
  --green-deep:  #0a5236;   /* 見出し */
  --green-dark:  #073b27;   /* 濃い面・フッター */
  --amber:       #9a6512;   /* 注意。白地でAAを満たす濃さ */
  --amber-soft:  rgba(154, 101, 18, .16);
  --ink:         #16241d;
  --body:        #4c5c54;
  --muted:       #64766c;   /* AAを満たす濃さに */

  /* type */
  --sans:    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --display: "Outfit", "Noto Sans JP", sans-serif;
  --mono:    "Roboto Mono", ui-monospace, monospace;

  --fs-hero:  clamp(28px, 3.8vw, 44px);
  --fs-h2:    clamp(22px, 2.6vw, 30px);
  --fs-h3:    18px;
  --fs-lead:  17px;    /* 各セクションの導入文 */
  --fs-body:  16px;    /* 主要な段落 */
  --fs-dense: 15px;    /* 表・ステップ・FAQなど密度の高いところ */
  --fs-note:  13.5px;  /* 注記・キャプション */
  --fs-micro: 12px;    /* 等幅のラベル */

  --lh-body: 1.8;      /* 和文14〜16pxは1.75〜1.85が読みやすい */
  --lh-head: 1.42;

  /* space */
  --sp-section: clamp(56px, 6.5vw, 84px);
  --measure: 1120px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, p, li, summary, dd, td, th { word-break: auto-phrase; }

/* 見出しは行の長さを揃え、本文は末尾の孤立行を避ける */
h1, h2, h3, .talk-voice, .cta-text { text-wrap: balance; }

p, li, dd { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--green-lite); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 60;
}

.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap.narrow { max-width: 760px; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 253, 252, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.masthead.is-scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 10px 30px -26px rgba(7, 59, 39, .7);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--green); }

.logo-mark { width: 30px; height: 30px; flex: none; display: block; }

.logo-text {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--green-deep);
}

.logo-accent { color: var(--green); }

.masthead-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }

.masthead-nav a {
  text-decoration: none;
  color: var(--body);
  padding-block: 5px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.masthead-nav a:hover { color: var(--green); border-bottom-color: var(--green-lite); }

.masthead-nav .nav-cta {
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 500;
  transition: background-color .18s ease, transform .18s ease;
}

.masthead-nav .nav-cta:hover { background: var(--green-lite); color: var(--white); transform: translateY(-2px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88dvh, 820px);  /* 画面の大半を占める。空きすぎない上限つき */
  padding-block: clamp(48px, 6vw, 88px);
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(18, 160, 106, .12) 0%, transparent 62%),
    radial-gradient(48% 60% at 6% 96%, rgba(18, 160, 106, .09) 0%, transparent 60%),
    var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 124, 79, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 124, 79, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(64% 60% at 74% 26%, #000 0%, transparent 74%);
  pointer-events: none;
}

/* ヒーローだけ左右いっぱいに使う（他のセクションは1120pxのまま） */
.hero > .wrap { max-width: 1560px; padding-inline: clamp(24px, 5vw, 88px); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--mint);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--green);
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  font-size: var(--fs-hero);
  line-height: var(--lh-head);
  letter-spacing: .01em;
}

.hero-title .nb { display: inline-block; }

.hero-title em { font-style: normal; color: var(--green); white-space: nowrap; }

/* マーカーは擬似要素を背面に回さず、文字自身の背景として描く
   （z-index:-1 は親に重なり文脈がないと背景の裏へ抜ける） */
.hero-title em {
  background: linear-gradient(transparent 66%, rgba(18, 160, 106, .22) 66%);
  padding-inline: 2px;
}

.hero-lead { margin: 0 0 20px; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--ink); max-width: 29em; }

.hero-sub { margin: 0 0 32px; font-size: var(--fs-body); line-height: var(--lh-body); max-width: 34em; }

.hero-sub strong { color: var(--green-deep); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 14px 26px -18px rgba(14, 124, 79, .9); }
.btn-primary:hover { background: var(--green-lite); transform: translateY(-2px); }

.btn-ghost { border-color: var(--rule); color: var(--green-deep); background: var(--white); }
.btn-ghost:hover { border-color: var(--green-lite); color: var(--green); transform: translateY(-2px); }

/* ---------- signature: 限界を迎えた台帳 ---------- */

.ledger {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 34px 60px -44px rgba(7, 59, 39, .55);
}

.ledger-lead {
  margin: 0;
  padding: 13px 16px;
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-soft);
}

.ledger-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--mint);
}

.ledger-file {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-rows { flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.sheet { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12px; line-height: 1.6; table-layout: fixed; }

.sheet th,
.sheet td {
  border: 1px solid var(--rule-soft);
  padding: 8px;
  text-align: left;
  font-weight: 400;
  color: var(--body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet thead th {
  background: var(--mint);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  letter-spacing: .06em;
}

.sheet .rownum {
  width: 34px;
  background: var(--mint);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

.sheet tbody tr:first-child td:not(.rownum) { color: var(--green-deep); font-weight: 500; background: #f6fbf8; }

.sheet .dup td:not(.rownum) { color: var(--amber); background: var(--amber-soft); }

.sheet .blank td:last-child { background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber); }

.sheet .ghost td {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  background: #fbfdfc;
}

.notes { display: grid; gap: 7px; padding: 15px 16px; border-top: 1px solid var(--rule); background: #fdfefd; }

.note { font-size: 13px; line-height: 1.7; color: var(--amber); padding-left: 17px; position: relative; }

.note::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 10px;
  height: 1px;
  background: var(--amber);
}

/* ---------- stats ---------- */

.stats { background: var(--white); border-block: 1px solid var(--rule); padding-block: clamp(36px, 4.5vw, 54px); }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 34px; }

.stat { border-left: 3px solid var(--green-lite); padding-left: 20px; }

.stat-num {
  margin: 0 0 8px;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green);
  letter-spacing: -.01em;
}

.stat-num .unit {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  letter-spacing: .04em;
  margin-left: 7px;
}

.stat-num .tilde { font-size: .66em; color: var(--muted); margin-inline: 3px; }

.stat-label { margin: 0; font-size: var(--fs-note); line-height: 1.85; }

.stats-caption { margin: 0 0 22px; font-size: var(--fs-note); line-height: 1.8; color: var(--muted); }

.stats-caption strong { color: var(--body); font-weight: 500; }

.stats-inline { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--rule); }

/* ---------- Before → After ---------- */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.appmock {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 34px 60px -44px rgba(7, 59, 39, .5);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--green-dark);
}

.app-dots { display: inline-flex; gap: 5px; }

.app-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); }

.app-title { font-size: 12.5px; font-weight: 500; color: #dff0e7; letter-spacing: .04em; }

.app-body { display: grid; grid-template-columns: 116px minmax(0, 1fr); }

.app-side {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 8px;
  background: #f4f8f5;
  border-right: 1px solid var(--rule-soft);
  font-size: 11.5px;
  color: var(--muted);
}

.app-side span { padding: 7px 10px; border-radius: 6px; }

.app-side .is-current { background: var(--green); color: #fff; font-weight: 500; }

.app-main { padding: 14px; min-width: 0; }

.app-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }

.app-search {
  flex: 1 1 130px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.app-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--body);
  white-space: nowrap;
}

.app-chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }

.app-chip.is-warn { border-color: var(--amber); color: var(--amber); }

.app-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12px; }

.app-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.app-table td { padding: 9px 8px; border-bottom: 1px solid var(--rule-soft); color: var(--body); white-space: nowrap; }

.app-table tr.is-late td { background: var(--amber-soft); }

.app-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 11px;
}

.app-state {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 11px;
  color: var(--body);
}

.app-state.is-done { border-color: var(--mint-deep); background: var(--mint); color: var(--green-deep); }

.app-state.is-late { border-color: var(--amber); color: var(--amber); font-weight: 500; }

.fixes { margin: 0; padding: 0; list-style: none; display: grid; gap: 26px; }

.fixes li { padding-left: 22px; border-left: 3px solid var(--green-lite); }

.fixes li { position: relative; }

/* 取り消し線の下に、置き換わったことを示す小さな矢印 */
.fix-before::after {
  content: "↓";
  display: inline-block;
  margin-left: 8px;
  color: var(--green-lite);
  text-decoration: none;
  font-size: 12px;
}

.fix-before {
  margin: 0 0 6px;
  font-size: var(--fs-note);
  color: var(--amber);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.fix-after { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }

.fix-after strong { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ---------- 中間CTA ---------- */

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 40px;
  padding: 26px 30px;
  background: var(--mint);
  border-radius: var(--radius);
}

.cta-text { margin: 0; font-size: var(--fs-body); font-weight: 500; color: var(--ink); line-height: 1.7; }

/* ---------- sections ---------- */

.section { padding-block: var(--sp-section); }

.section-alt { background: var(--white); border-block: 1px solid var(--rule); }

.section-tint { background: linear-gradient(180deg, var(--mint) 0%, var(--bg) 100%); }

.section-title {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: .02em;
}

.section-contact .section-title { color: var(--white); }

.section-lead { margin: 0 0 44px; max-width: 36em; font-size: var(--fs-body); line-height: var(--lh-body); }

/* ---------- こんなとき（会話） ---------- */

.talk { margin-top: 40px; display: grid; gap: 0; }

.talk-row {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding-block: 30px;
  border-top: 1px solid var(--rule);
}

.talk-row:last-child { border-bottom: 1px solid var(--rule); }

.talk-ask { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }

.talk-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--muted);
  flex: none;
  margin-top: 8px;
}

.talk-avatar svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }

.talk-mark { display: inline-flex; width: 17px; height: 17px; color: var(--green); vertical-align: -3px; margin-right: 6px; }

.talk-mark svg { width: 17px; height: 17px; }

.talk-name { display: flex; align-items: center; }

.talk-voice {
  position: relative;
  margin: 0;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.75;
  color: var(--ink);
}

/* 吹き出しの尾。左のアイコン（話し手）に向ける */
.talk-voice::before,
.talk-voice::after {
  content: "";
  position: absolute;
  top: 22px;
  left: -9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid var(--rule);
}

.talk-voice::after { left: -8px; border-right-color: var(--white); }

.talk-answer { padding-top: 4px; }

.talk-name {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--green);
}

.talk-answer p:last-child { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }

.talk-answer strong { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  .talk-row { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
}

/* ---------- できること（罫線の一覧） ---------- */

.svc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--rule);
}

.svc-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule);
}

.svc-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--green);
}

.svc-icon svg { width: 21px; height: 21px; stroke-linecap: round; stroke-linejoin: round; }

.svc-item h3 {
  grid-column: 2;          /* 見出しと本文をどちらも右の段に置く */
  margin: 4px 0 8px;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
}

.svc-item p { grid-column: 2; margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }

@media (max-width: 720px) {
  .svc { grid-template-columns: 1fr; }
}

/* ---------- strength ---------- */

.strength-wrap {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.strength-head { position: sticky; top: 100px; }

.strength-head .section-title { margin-bottom: 14px; }

.strength-lead { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }

.strength-lead strong { color: var(--green-deep); font-weight: 700; }

.strength { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 0; }

.strength-item {
  background: transparent;
  border: none;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  padding: 24px 0 26px;
  position: relative;
}

.strength-item:first-child { border-top: none; padding-top: 0; }

.strength-item::before { display: none; }

.strength-item h3 {
  margin: 0 0 10px;
  padding-left: 26px;
  position: relative;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
}

.strength-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--green-lite);
  border-bottom: 2px solid var(--green-lite);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.strength-item p { margin: 0 0 0 26px; font-size: var(--fs-body); line-height: var(--lh-body); }

@media (max-width: 860px) {
  .strength-wrap { grid-template-columns: 1fr; }
  .strength-head { position: static; }
}

/* ---------- works ---------- */

.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }

.work {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.work:hover { transform: translateY(-2px); box-shadow: 0 30px 48px -36px rgba(7, 59, 39, .6); }

.work img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--rule);
  background: var(--mint);
}

/* 画像の縦横比がまちまちなので、枠を揃えて見出しの高さを合わせる */
.work:not(.work-lead) img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.work-body { padding: 24px 24px 28px; }

.work-kind { margin: 0 0 10px; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .14em; color: var(--green-lite); }

.work h3 { margin: 0 0 12px; font-size: var(--fs-h3); font-weight: 700; color: var(--ink); line-height: 1.55; }

.work p { margin: 0; font-size: var(--fs-dense); line-height: var(--lh-body); }

/* 代表例：1本だけ大きく見せる */
.work-lead { grid-column: 1 / -1; display: block; }

.work-hero { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--rule); }

.work-lead-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 3vw, 44px);
  padding: 34px;
  align-items: start;
}

.work-lead .work-body { padding: 0; }

.work-zoom { margin: 0; }

.work-zoom img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.work-zoom figcaption {
  margin-top: 10px;
  font-size: var(--fs-note);
  line-height: 1.75;
  color: var(--muted);
}

.work-lead h3 { font-size: 20px; margin-bottom: 14px; }

.work-lead > .work-body > p { font-size: var(--fs-body); }

.work-points { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.work-points li { position: relative; padding-left: 26px; font-size: var(--fs-dense); line-height: 1.95; }

.work-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--green-lite);
  border-bottom: 2px solid var(--green-lite);
  transform: rotate(-45deg);
  border-radius: 1px;
}

@media (max-width: 760px) {
  .work-lead-body { grid-template-columns: 1fr; padding: 24px; }
  .work-lead h3 { font-size: 18px; }
}

/* ---------- flow ---------- */

.flow {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
  position: relative;
}

/* 縦の導線 */
.flow::before {
  content: "";
  position: absolute;
  left: 21px;          /* 丸の中心（44px ÷ 2 − 線幅1px） */
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: var(--mint-deep);
}

.flow > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 0 34px;
}

.flow > li::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green-lite);
  color: var(--green);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.flow-body { min-width: 0; }

.flow h3 { margin: 0 0 6px; font-size: var(--fs-h3); font-weight: 700; color: var(--ink); line-height: 1.55; }

.flow p { margin: 0; font-size: var(--fs-dense); line-height: var(--lh-body); }

.flow-total {
  margin: -22px 0 8px;
  padding: 16px 20px;
  background: var(--mint);
  border-radius: var(--radius-sm);
  font-size: var(--fs-dense);
  line-height: 1.85;
}

.flow-total strong { color: var(--green-deep); font-weight: 700; }

.flow-note {
  margin: 18px 0 0;
  font-size: var(--fs-note);
  line-height: 1.85;
  color: var(--muted);
}

.flow-note strong { color: var(--body); font-weight: 700; }

/* ---------- 進め方のステップ中身 ---------- */

.step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 8px; }

.step-head h3 { margin: 0; }

.step-span { font-size: var(--fs-note); color: var(--muted); }

.step-cost.is-paid { color: var(--amber); background: var(--amber-soft); }

.step-cost {
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--green);
  background: var(--mint);
  border-radius: 999px;
  padding: 3px 12px;
}

.step-lead { margin: 0 0 16px; font-size: var(--fs-dense); line-height: var(--lh-body); }

.step-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.step-col { background: var(--white); padding: 16px 18px 18px; }

.step-col p:last-child { margin: 0; font-size: var(--fs-dense); line-height: 1.85; }

.step-col strong { color: var(--ink); font-weight: 700; }

.step-col u { text-decoration: none; border-bottom: 1px solid var(--mint-deep); }

.step-label {
  margin: 0 0 6px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .06em;
}

.step-you .step-label { color: var(--amber); }

.step-me .step-label { color: var(--green); }

@media (max-width: 680px) {
  .step-split { grid-template-columns: 1fr; }
}

/* ---------- 進め方に置く見本 ---------- */

.sample {
  margin: 18px 0 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 16px 18px 18px;
}

.sample-cap {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  color: var(--muted);
}

.sample-note { margin: 12px 0 0; font-size: var(--fs-note); color: var(--muted); line-height: 1.75; }

/* 見積書の見本 */
.quote { width: 100%; border-collapse: collapse; font-size: var(--fs-note); }

.quote th {
  text-align: left;
  font-weight: 500;
  font-size: var(--fs-micro);
  color: var(--muted);
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.quote td { padding: 11px 8px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; line-height: 1.7; }

.quote .num { text-align: right; white-space: nowrap; font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green-deep); }

.quote .plan { font-weight: 700; color: var(--ink); white-space: nowrap; }

.quote .is-pick td { background: var(--mint); }

.pick {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  vertical-align: 1px;
}

/* 画面の下書きの見本 */
.wire { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fbfdfc; }

.wire-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--mint);
}

.wire-title { font-size: var(--fs-note); font-weight: 700; color: var(--green-deep); }

.wire-btn {
  font-size: 10.5px;
  color: var(--white);
  background: var(--green-lite);
  border-radius: 4px;
  padding: 3px 10px;
}

.wire-body { display: grid; grid-template-columns: 84px minmax(0, 1fr); }

.wire-side { padding: 12px 10px; border-right: 1px solid var(--rule-soft); display: grid; gap: 8px; align-content: start; }

.wire-side i { height: 9px; border-radius: 3px; background: var(--mint-deep); }

.wire-side i:first-child { background: var(--green-lite); }

.wire-main { padding: 12px; display: grid; gap: 10px; }

.wire-tools { display: flex; gap: 6px; }

.wire-tools .w-search { flex: 1; height: 16px; border-radius: 4px; border: 1px dashed var(--rule); }

.wire-tools .w-chip { width: 46px; height: 16px; border-radius: 999px; background: var(--mint-deep); }

.wire-rows { display: grid; gap: 7px; }

.wire-rows i { height: 11px; border-radius: 3px; background: #e9f1ec; }

.wire-rows i:nth-child(3) { background: var(--amber-soft); }

.wire-notes { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 4px; list-style: decimal; }

.wire-notes li {
  display: list-item;
  font-size: var(--fs-note);
  color: var(--muted);
  line-height: 1.75;
  padding: 0;
  border: none;
  counter-increment: none;
}

@media (max-width: 560px) {
  .quote th:nth-child(2), .quote td:nth-child(2) { display: none; }
}

/* ---------- tech ---------- */

.tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }

.tech-group h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 500;
}

.tech-note { margin: 0 0 14px; font-size: var(--fs-dense); line-height: 1.9; color: var(--body); }

.tech-group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.tech-group li {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--green-deep);
  background: var(--mint);
  border-radius: 999px;
  padding: 6px 15px;
}

/* ---------- price ---------- */

.price { width: 100%; border-collapse: collapse; font-size: var(--fs-dense); }

.price thead th {
  border-bottom: 2px solid var(--green-lite);
  padding: 0 12px 12px;
  text-align: left;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
}

.price td { border-bottom: 1px solid var(--rule); padding: 22px 12px; vertical-align: top; line-height: 1.85; }

.price .num { text-align: right; white-space: nowrap; }

.price td.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; color: var(--green); letter-spacing: .01em; }

.price strong { color: var(--green-deep); font-weight: 700; }

.price .muted { font-size: var(--fs-note); color: var(--muted); }

/* ---------- 料金の補足 ---------- */

.price-notes { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }

.price-notes li { position: relative; padding-left: 16px; font-size: var(--fs-note); color: var(--muted); line-height: 1.8; }

.price-notes li::before { content: "※"; position: absolute; left: 0; }

/* ---------- 取引の条件 ---------- */

.terms { margin: 0; border-top: 1px solid var(--rule); }

.terms > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}

.terms dt { font-weight: 700; color: var(--ink); font-size: var(--fs-body); line-height: 1.8; }

.terms dd { margin: 0; font-size: var(--fs-dense); line-height: var(--lh-body); }

.terms dd strong { color: var(--ink); font-weight: 700; }

@media (max-width: 680px) {
  .terms > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- 問い合わせフォームの導線 ---------- */

.btn-form {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--white);
  color: var(--green-deep);
  font-size: 17px;
  font-weight: 700;
  padding: 19px 24px;
  margin-bottom: 20px;
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .6);
}

.btn-form:hover { background: #eafaf1; transform: translateY(-2px); }

.contact-alt { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--fs-note); line-height: 1.8; color: #a9c6b6; }

.contact-alt a { color: #dff3e8; }


/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0 24px;
}

.faq details[open] { border-color: var(--mint-deep); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--green-lite);
  border-bottom: 2px solid var(--green-lite);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq p { margin: 0; padding: 0 0 22px; font-size: var(--fs-dense); line-height: var(--lh-body); }

/* ---------- contact ---------- */

.section-contact {
  background:
    radial-gradient(70% 90% at 90% 10%, rgba(18, 160, 106, .35) 0%, transparent 60%),
    var(--green-dark);
  color: #c3ddce;
  padding-block: var(--sp-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

.contact-lead { margin: 0; max-width: 27em; font-size: var(--fs-lead); line-height: var(--lh-body); }

.contact-box {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.contact-mail { margin: 0 0 16px; font-family: var(--display); font-size: clamp(18px, 2.3vw, 25px); font-weight: 500; line-height: 1.5; }

.contact-mail a { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--green-lite); padding-bottom: 5px; }

.contact-mail a:hover { color: #a8f0cc; border-bottom-color: #a8f0cc; }

.contact-note { margin: 0 0 16px; font-size: var(--fs-note); color: #93b6a3; line-height: 1.8; }

/* ---------- about ---------- */

.about { width: 100%; border-collapse: collapse; font-size: var(--fs-dense); border-top: 1px solid var(--rule); }

.about th,
.about td { border-bottom: 1px solid var(--rule); padding: 20px 12px; text-align: left; vertical-align: top; line-height: 1.9; }

.about th { width: 150px; font-weight: 500; color: var(--green-deep); }

/* ---------- footer ---------- */

.footer {
  background: var(--green-dark);
  color: #90ae9e;
  padding-top: 48px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-note);
}

.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 30px; }

.footer-name {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: #eaf6f0;
  letter-spacing: .01em;
}

.footer .logo-mark { width: 28px; height: 28px; }

.footer-meta { margin: 0; font-size: var(--fs-note); }

.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 36px; }

.footer-nav a { text-decoration: none; font-size: 14px; }

.footer-nav a:hover { color: #eaf6f0; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; }

.footer-copy { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }

.masthead-nav a.is-current { color: var(--green); border-bottom-color: var(--green-lite); }

/* 相談するボタンは現在地の表示を受けない（緑地に緑文字で消えるため） */
.masthead-nav .nav-cta.is-current { color: var(--white); border-bottom-color: transparent; }

/* ---------- スマホの固定ボタン ---------- */

.mobile-cta { display: none; }

@media (max-width: 780px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 253, 252, .94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
  }

  .mobile-cta .btn { display: block; width: 100%; text-align: center; padding-block: 14px; }

  /* 固定ボタンでフッターが隠れないように */
  body { padding-bottom: 76px; }
}

/* ---------- reveal ---------- */

/* JSが動く環境でだけ隠す。落ちても本文は必ず見える */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease-out, transform .45s ease-out; }

.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .masthead-nav { gap: 18px; font-size: 13px; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead, .hero-sub { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* 狭い画面ではナビを折り返して横スクロールさせる。リンクは消さない */
@media (max-width: 780px) {
  .masthead-inner { flex-wrap: wrap; min-height: 0; padding-block: 12px 8px; }
  .masthead-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 20px;
    padding-bottom: 6px;
  }
  .masthead-nav::-webkit-scrollbar { display: none; }
  .masthead-nav a { white-space: nowrap; }
  .masthead-nav .nav-cta { padding: 8px 18px; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issues, .strength { grid-template-columns: 1fr; }
  .br-pc { display: none; }
}

@media (max-width: 680px) {
  .flow::before { left: 18px; }
  .flow > li { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 16px 0 22px; }
  .flow > li::before { width: 38px; height: 38px; font-size: 13.5px; }
  .about th { width: 112px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-strip { padding: 22px 22px 24px; }
  .cta-strip .btn { width: 100%; text-align: center; }

  /* 料金表は列が潰れるのでカードに組み替える */
  .price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .price, .price tbody, .price tr, .price td { display: block; width: 100%; }
  .price tr {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--white);
    padding: 18px 18px 8px;
    margin-bottom: 12px;
  }
  .price td { border: none; padding: 0 0 12px; text-align: left; }
  .price td.num { text-align: left; }
  .price td[data-label="目安"]::before,
  .price td[data-label="制作期間"]::before {
    content: attr(data-label) "：";
    font-family: var(--sans);
    font-size: var(--fs-note);
    font-weight: 400;
    color: var(--muted);
  }
}

@media (max-width: 480px) {
  :root { --fs-lead: 16px; --fs-body: 15.5px; --fs-dense: 14.5px; }
  .price td { padding: 18px 6px; }
  .price thead th { padding-inline: 6px; }
  .contact-box { padding: 26px 22px; }
  .card, .issue, .strength-item { padding: 26px 22px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
