/* ==========================================================================
   現場の右腕 — v5 「図面」リニューアル
   Concept: 御社の事務所を改修する施工図。朱書き＝改善提案。
   ========================================================================== */

:root {
  --paper: #f2efe6;
  --paper-2: #e8e4d6;
  --paper-3: #fbfaf5;
  --ink: #13203a;
  --ink-2: #3c4762;
  --ink-3: #6b7287;
  --line: rgba(19, 32, 58, .2);
  --line-soft: rgba(19, 32, 58, .1);
  --grid-minor: rgba(19, 32, 58, .045);
  --grid-major: rgba(19, 32, 58, .08);
  --yellow: #f5b800;
  --yellow-2: #ffd34d;
  --red: #c8381b;
  --blue-ink: #0d182e;

  --f-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-hand: "Klee One", "Hiragino Mincho ProN", serif;

  --wrap: 1160px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  word-break: auto-phrase;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.4;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 700; }
img, svg { display: block; max-width: 100%; }

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

.sp { display: inline; }
@media (min-width: 768px) { .sp { display: none; } }

.mono { font-family: var(--f-mono); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- common parts ---------- */
.sheet-no {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sheet-no::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--yellow);
}

.section { padding: 88px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 128px 0; } }

.sec-head { max-width: 760px; margin-bottom: 48px; }
@media (min-width: 900px) { .sec-head { margin-bottom: 64px; } }

.sec-title {
  font-size: clamp(24px, 6.4vw, 44px);
  font-weight: 900;
  letter-spacing: .01em;
}
.sec-lead {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 15px;
}
@media (min-width: 768px) { .sec-lead { font-size: 16.5px; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--block { width: 100%; }

.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink);
  border-radius: 4px;
}
.logo__mark svg { width: 26px; height: 26px; fill: none; stroke-width: 2.6; stroke-linecap: square; }
.logo__mark svg path:first-child { stroke: var(--yellow); }
.logo__mark svg path:last-child { stroke: var(--paper); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__ja { font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: .04em; }
.logo__en { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-3); margin-top: 3px; }
.logo--light .logo__mark { background: var(--yellow); }
.logo--light .logo__mark svg path:first-child { stroke: var(--ink); }
.logo--light .logo__mark svg path:last-child { stroke: var(--ink); }
.logo--light .logo__en { color: rgba(242, 239, 230, .55); }

/* ---------- movie（紹介動画） ---------- */
.movie__frame { max-width: 960px; }
.movie__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.movie__note { margin-top: 24px; font-size: 13px; color: var(--ink-3); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 239, 230, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.nav__links { display: none; }
.nav__toggle {
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 7px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper-3);
    border-bottom: 2px solid var(--ink);
    padding: 8px var(--gutter) 20px;
  }
  .nav__links.is-open a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
    font-family: var(--f-display);
    font-weight: 700;
  }
  .nav__links.is-open .nav__cta {
    margin-top: 14px;
    border: 2px solid var(--ink);
    background: var(--yellow);
    text-align: center;
    border-radius: 4px;
  }
}

@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 28px); }
  .nav__links a {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
  }
  .nav__links a:not(.nav__cta)::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--yellow);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
  .nav__cta {
    padding: 10px 18px;
    background: var(--ink);
    color: var(--paper) !important;
    border-radius: 4px;
  }
  .nav__cta:hover { background: var(--blue-ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 40px; }
.hero__grid { display: grid; gap: 48px; padding-bottom: 64px; }
@media (min-width: 1000px) {
  .hero { padding-top: 72px; }
  .hero__grid { grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; padding-bottom: 96px; }
}

.hero__title {
  font-size: clamp(31px, 8.4vw, 58px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: .005em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (min-width: 1000px) { .hero__title { font-size: clamp(36px, 3.9vw, 50px); } }
.hero__title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 .06em;
}
.hero__accent {
  color: var(--red);
  position: relative;
  white-space: nowrap;
}
.hero__accent::after {
  content: "";
  position: absolute;
  left: -6%; right: -6%; top: 6%; bottom: -4%;
  border: 2.5px solid var(--red);
  border-radius: 50%;
  transform: rotate(-4deg);
  opacity: .85;
  pointer-events: none;
}

.hero__lead {
  margin-top: 24px;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 34em;
}
@media (min-width: 768px) { .hero__lead { font-size: 17px; } }

.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn--primary { flex: 1 1 260px; }
.hero__actions .btn--ghost { flex: 0 1 auto; }
@media (min-width: 560px) { .hero__actions .btn--primary { flex: 0 1 auto; } }

.hero__facts {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, transparent 45%, var(--ink) 45%, var(--ink) 58%, transparent 58%);
  flex: none;
}

/* hero reveal stagger */
.hero .reveal:nth-child(1) { transition-delay: .05s; }
.hero .reveal:nth-child(2) { transition-delay: .15s; }
.hero .reveal:nth-child(3) { transition-delay: .25s; }
.hero .reveal:nth-child(4) { transition-delay: .35s; }
.hero .reveal:nth-child(5) { transition-delay: .45s; }
.hero .drawing.reveal { transition-delay: .3s; }

/* ---------- drawing sheet ---------- */
.drawing {
  margin: 0;
  position: relative;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  padding: 14px 14px 0;
  box-shadow: 10px 10px 0 rgba(19, 32, 58, .1);
}
.drawing::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.drawing__corner { position: absolute; width: 18px; height: 18px; border-color: var(--red); border-style: solid; }
.drawing__corner--tl { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.drawing__corner--br { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }

.plan { width: 100%; height: auto; overflow: visible; }
.plan text { font-family: var(--f-display); fill: var(--ink); }

.plan__dim line { stroke: var(--ink-3); stroke-width: 1; }
.plan__dim text { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-3); }

.plan__wall-outer path { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linejoin: miter; }
.plan__wall path { fill: none; stroke: var(--ink); stroke-width: 4; }
.plan__door path { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.plan__door path:nth-child(even) { stroke-dasharray: 3 3; }
.plan__fixture * { fill: none; stroke: var(--ink-3); stroke-width: 1.3; }
.plan__fixture rect[fill] { fill: url(#hatch); }
.plan__hatch { stroke: var(--ink-3); stroke-width: 1; }

.plan__num { font-family: var(--f-mono) !important; font-size: 13px; font-weight: 500; fill: var(--red) !important; }
.plan__name { font-size: 19px; font-weight: 900; }
.plan__sub { font-size: 11.5px; fill: var(--ink-3) !important; font-weight: 500; }

.plan__entrance path { fill: var(--ink); }
.plan__entrance text { font-size: 12px; font-weight: 700; }

.plan__redpen path { stroke: var(--red); stroke-width: 2; }
.plan__red-fill { fill: var(--red); }
.plan__redpen text { font-family: var(--f-hand) !important; fill: var(--red) !important; font-size: 15px; font-weight: 600; }

.room {
  fill: var(--yellow);
  opacity: 0;
  animation: room-cycle 12.5s infinite;
}
.room--2 { animation-delay: 2.5s; }
.room--3 { animation-delay: 5s; }
.room--4 { animation-delay: 7.5s; }
.room--5 { animation-delay: 10s; }
@keyframes room-cycle {
  0% { opacity: 0; }
  4%, 18% { opacity: .42; }
  24%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .room { animation: none; opacity: 0; }
  .room--2 { opacity: .35; }
}

.titleblock {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 12px -14px 0;
  border-top: 1.5px solid var(--ink);
}
.titleblock div {
  padding: 8px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  line-height: 1.4;
}
.titleblock div:nth-child(2n) { border-right: 0; }
.titleblock div:nth-child(n+3) { border-bottom: 0; }
.titleblock span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); }
.titleblock b { font-family: var(--f-display); font-size: 13.5px; }
@media (min-width: 600px) {
  .titleblock { grid-template-columns: 1.6fr 1fr .8fr .9fr; }
  .titleblock div { border-bottom: 0; }
  .titleblock div:nth-child(2n) { border-right: 1px solid var(--line); }
  .titleblock div:last-child { border-right: 0; }
}

/* ---------- issues (朱書き) ---------- */
.issue-list { border-top: 2px solid var(--ink); counter-reset: issue; }
.issue {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.issue__no {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding-top: 4px;
}
.issue__body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}
.issue__body p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.issue__fix {
  grid-column: 2;
  margin-top: 12px;
  font-family: var(--f-hand);
  font-weight: 600;
  color: var(--red);
  font-size: 16px;
  line-height: 1.6;
  transform: rotate(-1.2deg);
  transform-origin: left;
}
.issue__fix span {
  display: inline-grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  width: 28px; height: 28px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  transform: rotate(1.2deg);
}
/* red strike drawn on reveal */
.issue__body h3 { position: relative; display: inline; background-image: linear-gradient(var(--red), var(--red)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 58%; transition: background-size .9s var(--ease) .35s; }
.issue.is-in .issue__body h3 { background-size: 100% 2px; }

@media (min-width: 900px) {
  .issue { grid-template-columns: 64px 1fr 300px; align-items: start; padding: 30px 0; gap: 0 32px; }
  .issue__no { font-size: 15px; }
  .issue__body h3 { font-size: 21px; }
  .issue__fix { grid-column: 3; margin-top: 0; font-size: 17px; padding-left: 20px; border-left: 1.5px dashed rgba(200, 56, 27, .5); }
}

/* ---------- services (blueprint dark) ---------- */
.services {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(242, 239, 230, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 230, .06) 1px, transparent 1px),
    linear-gradient(rgba(242, 239, 230, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 230, .025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--paper);
}
.sec-head--light .sheet-no { color: rgba(242, 239, 230, .6); }
.sec-head--light .sec-lead { color: rgba(242, 239, 230, .78); }

.svc-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(6, 1fr); }
  .svc { grid-column: span 2; }
  .svc:nth-child(4) { grid-column: span 3; }
  .svc--wide { grid-column: span 3; }
}
@media (min-width: 720px) and (max-width: 1079px) {
  .svc--wide { grid-column: 1 / -1; }
}

.svc {
  position: relative;
  border: 1px solid rgba(242, 239, 230, .28);
  padding: 28px 24px 24px;
  background: rgba(13, 24, 46, .55);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease);
}
.svc:hover { border-color: var(--yellow); transform: translateY(-3px); }
.svc::before, .svc::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--yellow); border-style: solid;
}
.svc::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.svc::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.svc__head { display: flex; align-items: baseline; gap: 14px; }
.svc__no { font-family: var(--f-mono); font-size: 40px; font-weight: 500; line-height: 1; color: var(--yellow); }
.svc__head h3 { font-size: 22px; font-weight: 900; }
.svc__lead { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--paper); line-height: 1.7; }
.svc__list { margin-top: 18px; display: grid; gap: 8px; flex: 1; }
.svc--wide .svc__list { align-content: start; }
.svc__list li { position: relative; padding-left: 20px; font-size: 14.5px; color: rgba(242, 239, 230, .82); line-height: 1.65; }
.svc__list li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 9px; height: 2px; background: var(--yellow); }
.svc__ex {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed rgba(242, 239, 230, .28);
  font-size: 14px; color: rgba(242, 239, 230, .9); line-height: 1.7;
}
.svc__ex span {
  display: block;
  font-family: var(--f-hand);
  font-weight: 600;
  color: var(--yellow-2);
  font-size: 14px;
  margin-bottom: 2px;
}

/* ---------- kintone explainer ---------- */
.kt-answer {
  position: relative;
  background: var(--paper-3);
  border: 2.5px solid var(--ink);
  padding: 28px 22px 26px;
  box-shadow: 8px 8px 0 var(--yellow);
}
.kt-answer__q {
  font-family: var(--f-hand); font-weight: 600; color: var(--red); font-size: 18px;
}
.kt-answer__a {
  margin-top: 6px;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(22px, 5.6vw, 36px); line-height: 1.45;
  text-wrap: balance;
}
.kt-answer__a em {
  font-style: normal;
  background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%);
}
.kt-answer__sub { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 46em; }
@media (min-width: 900px) { .kt-answer { padding: 40px 44px; } }

.kt-visual {
  margin-top: 40px;
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
}
.kt-visual__before { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
.kt-visual__before li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  font-size: 14px; font-weight: 700;
  color: var(--ink-2);
  text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px;
}
.kt-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; }
.kt-visual__arrow svg { width: 64px; height: 24px; fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.kt-phone {
  width: 240px;
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: var(--paper-3);
  padding: 14px 14px 18px;
  box-shadow: 8px 8px 0 rgba(19, 32, 58, .12);
}
.kt-phone__bar {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  background: var(--ink); color: var(--paper);
  padding: 6px 10px; border-radius: 10px 10px 4px 4px;
}
.kt-phone__apps { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kt-phone__apps li {
  font-size: 12.5px; font-weight: 700; text-align: center;
  padding: 12px 4px;
  border: 1.5px solid var(--ink);
  background: #fff;
  border-radius: 6px;
}
.kt-phone__apps li:nth-child(4) { background: var(--yellow); }
.kt-phone__search { margin-top: 10px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.kt-phone__search span { font-family: var(--f-mono); font-size: 10.5px; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 6px; margin-right: 6px; }
@media (min-width: 820px) {
  .kt-visual { grid-template-columns: 1fr auto auto; justify-content: center; gap: 28px; }
  .kt-visual__before { justify-self: end; }
  .kt-visual__arrow svg { transform: none; width: 80px; }
}

.kt-reasons-title { margin-top: 64px; font-size: clamp(21px, 4.8vw, 28px); font-weight: 900; }
.kt-reasons { margin-top: 22px; display: grid; gap: 16px; }
@media (min-width: 720px) { .kt-reasons { grid-template-columns: 1fr 1fr; gap: 20px; } }
.kt-reason {
  border: 1.5px solid var(--ink);
  background: var(--paper-3);
  padding: 22px 22px 24px;
  position: relative;
}
.kt-reason__word {
  font-family: var(--f-display); font-weight: 900;
  font-size: 46px; line-height: 1;
  color: var(--ink);
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 5px solid var(--yellow);
}
.kt-reason__copy { margin-top: 16px; font-family: var(--f-display); font-weight: 900; font-size: 18px; line-height: 1.5; color: var(--red); }
.kt-reason__body { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }

.kt-extra { margin-top: 24px; display: grid; gap: 10px; }
@media (min-width: 720px) { .kt-extra { grid-template-columns: 1fr 1fr; gap: 14px 20px; } }
.kt-extra li {
  padding: 14px 18px 14px 46px;
  position: relative;
  background: var(--paper-2);
  border-left: 4px solid var(--ink);
  font-size: 14.5px; line-height: 1.7;
}
.kt-extra li b { display: block; font-family: var(--f-display); font-size: 16px; }
.kt-extra li::before {
  content: "＋"; position: absolute; left: 16px; top: 13px;
  font-family: var(--f-mono); font-weight: 500; font-size: 18px; color: var(--red);
}
.kt-note { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------- day (before / after) ---------- */
.day__grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .day__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

.day__col { padding: 28px 22px; border: 1.5px solid var(--ink); background: var(--paper-3); position: relative; }
.day__col--before { background: var(--paper-2); }
.day__col--after { box-shadow: 8px 8px 0 var(--yellow); }
.day__label {
  display: inline-block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .15em;
  padding: 4px 14px;
  border: 1.5px solid var(--ink);
  margin-bottom: 20px;
}
.day__col--after .day__label { background: var(--ink); color: var(--paper); }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: baseline; position: relative; }
.timeline time {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  background: inherit; position: relative; z-index: 1;
  text-align: center; padding: 2px 0;
}
.day__col--before .timeline time { background: var(--paper-2); color: var(--ink-3); }
.day__col--after .timeline time { background: var(--paper-3); color: var(--ink); }
.timeline p { font-size: 15px; line-height: 1.7; }
.day__col--before .timeline p { color: var(--ink-2); }
.day__col--after .timeline p { font-weight: 700; }

/* ---------- why (compare) ---------- */
.why { background: var(--paper-2); }
.compare { border: 1.5px solid var(--ink); background: var(--paper-3); }
.compare__row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.compare__row:last-child { border-bottom: 0; }
.compare__row > span { padding: 14px 18px; font-size: 14.5px; line-height: 1.6; }
.compare__row > span[role="rowheader"] {
  font-family: var(--f-display); font-weight: 900; font-size: 15px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.compare__row > span:nth-child(2) { color: var(--ink-3); }
.compare__row > span:nth-child(2)::before { content: "一般的なIT会社："; font-size: 12px; display: block; font-family: var(--f-mono); letter-spacing: .04em; }
.compare__row > span:nth-child(3) { font-weight: 700; background: rgba(245, 184, 0, .14); }
.compare__row > span:nth-child(3)::before { content: "現場の右腕："; font-size: 12px; display: block; color: var(--red); font-family: var(--f-mono); letter-spacing: .04em; font-weight: 500; }
.compare__row--head { display: none; }

@media (min-width: 760px) {
  .compare__row { grid-template-columns: 180px 1fr 1fr; }
  .compare__row > span { padding: 20px 24px; font-size: 15.5px; }
  .compare__row > span[role="rowheader"] { border-bottom: 0; border-right: 1px solid var(--line); display: flex; align-items: center; }
  .compare__row > span:nth-child(2)::before, .compare__row > span:nth-child(3)::before { display: none; }
  .compare__row > span:nth-child(3) { border-left: 2px solid var(--ink); }
  .compare__row--head { display: grid; background: var(--ink); color: var(--paper); }
  .compare__row--head > span { font-family: var(--f-display); font-weight: 700; padding: 14px 24px; font-size: 14px; }
  .compare__row--head > span:nth-child(2) { color: rgba(242, 239, 230, .65); }
  .compare__row--head > span:nth-child(3) { background: var(--yellow); color: var(--ink); border-left: 2px solid var(--ink); }
}

/* ---------- pricing ---------- */
.num { font-family: var(--f-mono); font-weight: 500; letter-spacing: -.02em; }
.unit { font-family: var(--f-display); font-weight: 700; }

.step0 {
  display: grid;
  gap: 16px;
  border: 2px solid var(--ink);
  background: var(--paper-3);
  padding: 26px 22px;
  position: relative;
  margin-bottom: 72px;
}
.step0__tag, .price-block__step {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em;
  background: var(--ink); color: var(--paper);
  padding: 4px 10px; justify-self: start; align-self: start;
}
.step0 h3 { font-size: 24px; font-weight: 900; }
.step0 p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.step0 p b { color: var(--ink); background: linear-gradient(transparent 65%, rgba(245, 184, 0, .55) 65%); }
.step0__price { display: flex; align-items: baseline; gap: 6px; }
.step0__price .num { font-size: 64px; line-height: 1; color: var(--red); }
.step0__price .unit { font-size: 22px; }
@media (min-width: 860px) {
  .step0 { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 32px 36px; }
  .step0__price .num { font-size: 84px; }
}

.price-block { margin-bottom: 72px; }
.price-block__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.price-block__head h3 { font-size: 24px; font-weight: 900; }
.price-block__head small { font-size: 14px; font-weight: 500; color: var(--ink-3); }

.build-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .build-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1120px) { .build-grid { grid-template-columns: repeat(3, 1fr); } }

.plan, .ret {
  position: relative;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  padding: 26px 22px 22px;
  display: flex; flex-direction: column;
}
.plan--rec, .ret--rec { box-shadow: 8px 8px 0 var(--yellow); border-width: 2.5px; }
.plan__badge {
  position: absolute; top: -14px; left: 18px;
  font-family: var(--f-display); font-size: 12.5px; font-weight: 700;
  background: var(--red); color: #fff;
  padding: 3px 12px;
}
.plan__cat { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.plan__name { margin-top: 6px; font-size: 21px; font-weight: 900; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 4px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.plan__price .num { font-size: 48px; line-height: 1; }
.plan__price .unit { font-size: 16px; }
.plan__desc { margin-top: 14px; font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.plan__list, .ret__list { margin-top: 14px; display: grid; gap: 7px; flex: 1; align-content: start; }
.plan__list li, .ret__list li {
  position: relative; padding-left: 22px; font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.plan__list li::before, .ret__list li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 13px; height: 13px; border: 1.5px solid var(--ink);
  background: linear-gradient(135deg, transparent 42%, var(--ink) 42%, var(--ink) 58%, transparent 58%);
}
.plan__term { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }

.price-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

.retainer { display: grid; gap: 22px; }
@media (min-width: 860px) { .retainer { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; } }
.ret__name { font-size: 22px; font-weight: 900; }
.ret__price { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.ret__price .num { font-size: 46px; line-height: 1; }
.ret__price .unit { font-size: 15px; }
.ret__desc { margin-top: 14px; font-size: 14.5px; font-weight: 700; }
.ret--rec { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ret--rec .ret__price { border-color: var(--yellow); }
.ret--rec .ret__price .num { color: var(--yellow); }
.ret--rec .ret__list li { color: rgba(242, 239, 230, .85); }
.ret--rec .ret__list li::before { border-color: var(--yellow); background: linear-gradient(135deg, transparent 42%, var(--yellow) 42%, var(--yellow) 58%, transparent 58%); }

/* add-on unit prices */
.addon {
  margin-top: 40px;
  border: 1.5px solid var(--ink);
  background: var(--paper-3);
}
.addon__head { padding: 22px 22px 6px; }
.addon__head h4 { font-size: 20px; font-weight: 900; }
.addon__head p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.addon__table { margin-top: 10px; border-top: 1.5px solid var(--ink); }
.addon__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.addon__row:last-child { border-bottom: 0; }
.addon__row b { display: block; font-family: var(--f-display); font-size: 16px; }
.addon__row span:not(.num):not(.unit) { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }
.addon__price { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.addon__price .num { font-size: 28px; line-height: 1; }
.addon__price .unit { font-size: 13.5px; }
.addon__notes {
  padding: 16px 22px 20px;
  background: var(--paper-2);
  border-top: 1.5px solid var(--ink);
  display: grid; gap: 6px;
  font-size: 14px;
}
.addon__notes li { position: relative; padding-left: 18px; }
.addon__notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 2px; background: var(--red); }
@media (min-width: 720px) {
  .addon__head { padding: 28px 32px 8px; }
  .addon__row { grid-template-columns: 1fr 210px; align-items: center; gap: 24px; padding: 16px 32px; }
  .addon__price { justify-content: flex-end; }
  .addon__notes { padding: 18px 32px 22px; }
}

.price-terms { margin-top: 24px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.price-terms li { position: relative; padding-left: 16px; }
.price-terms li::before { content: "※"; position: absolute; left: 0; color: var(--ink-3); }

/* model case */
.case {
  border: 2px solid var(--ink);
  background: var(--paper-3);
  position: relative;
}
.case__head { padding: 22px 22px 0; }
.case__tag { font-family: var(--f-hand); font-weight: 600; color: var(--red); font-size: 17px; }
.case__head h3 { font-size: 21px; font-weight: 900; margin-top: 2px; }
.case__body { display: grid; gap: 28px; padding: 18px 22px 26px; }
@media (min-width: 900px) {
  .case__head { padding: 30px 36px 0; }
  .case__body { grid-template-columns: 1fr 1fr; gap: 48px; padding: 22px 36px 34px; align-items: center; }
}
.case__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.case__table th { text-align: left; font-weight: 400; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.case__table td { text-align: right; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.case__total th, .case__total td { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 14px; font-weight: 700; color: var(--ink); font-size: 17px; }
.case__total td { color: var(--red); font-size: 22px; }

.case__bars { display: grid; gap: 16px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.bar__label { font-size: 13.5px; font-weight: 700; }
.bar__val { font-family: var(--f-mono); font-weight: 500; font-size: 14px; grid-row: 1; grid-column: 2; }
.bar__track { grid-column: 1 / -1; height: 22px; background: var(--paper-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: 0; transition: width 1.4s var(--ease) .2s; }
.case.is-in .bar__fill { width: var(--w); }
.bar__fill--us { background: var(--yellow); border-right: 2px solid var(--ink); }
.bar__fill--hire { background: repeating-linear-gradient(-45deg, var(--ink-3) 0 6px, var(--ink-2) 6px 12px); }
.case__note { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------- flow ---------- */
.flow { background: var(--paper-2); }
.flow__list { display: grid; gap: 0; counter-reset: flow; }
.flow__item {
  position: relative;
  padding: 0 0 32px 64px;
}
.flow__item::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 12px);
}
.flow__item:last-child::before { display: none; }
.flow__no {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 500; font-size: 18px;
  background: var(--paper-3); border: 2px solid var(--ink);
}
.flow__item:first-child .flow__no { background: var(--yellow); }
.flow__item h3 { font-size: 19px; font-weight: 900; padding-top: 6px; }
.flow__item p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }

@media (min-width: 1000px) {
  .flow__list { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .flow__item { padding: 64px 0 0; }
  .flow__item::before {
    left: 50px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
  }
  .flow__item h3 { font-size: 18px; }
}

/* ---------- profile ---------- */
.profile__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .profile__grid { grid-template-columns: 340px 1fr; gap: 72px; align-items: start; } }

.profile__card {
  border: 1.5px solid var(--ink);
  background: var(--paper-3);
  padding: 30px 26px;
  box-shadow: 10px 10px 0 rgba(19, 32, 58, .1);
}
.profile__avatar {
  width: 96px; height: 96px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
}
.profile__avatar svg { width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.profile__avatar .helmet { fill: var(--yellow); }
.profile__co { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.profile__name { font-family: var(--f-display); font-size: 28px; font-weight: 900; line-height: 1.3; }
.profile__tags { margin-top: 18px; display: grid; gap: 8px; }
.profile__tags li { font-size: 13.5px; padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); }

.profile__text .sec-title { margin-bottom: 24px; }
.profile__text > p:not(.sheet-no):not(.profile__sign) { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); }
.analog-list {
  margin: 22px 0 6px;
  padding: 18px 20px;
  border: 1.5px dashed rgba(200, 56, 27, .55);
  background: var(--paper-3);
  display: grid;
  gap: 6px;
  position: relative;
}
.analog-list li {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}
.analog-list::after {
  content: "→ ぜんぶ解決済み";
  font-family: var(--f-hand);
  font-weight: 600;
  color: var(--red);
  font-size: 17px;
  transform: rotate(-2deg);
  justify-self: end;
  margin-top: 4px;
}
@media (min-width: 600px) {
  .analog-list { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
  .analog-list::after { grid-column: 1 / -1; }
}

.profile__sign {
  margin-top: 28px;
  font-family: var(--f-hand); font-weight: 600; font-size: 20px;
  text-align: right;
}

/* ---------- faq ---------- */
.faq { background: var(--paper-2); }
.faq__wrap { max-width: 880px; }
.faq__list { border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 40px;
  position: relative;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.6;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "Q"; position: absolute; left: 0; top: 21px;
  font-family: var(--f-mono); font-weight: 500; font-size: 18px; color: var(--red);
}
.qa summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa p { padding: 0 8px 24px 40px; font-size: 15px; color: var(--ink-2); position: relative; }
.qa p::before { content: "A"; position: absolute; left: 0; top: 0; font-family: var(--f-mono); font-weight: 500; font-size: 18px; color: var(--ink); line-height: 1.6; }

/* ---------- contact ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding-top: 0;
}
.contact .hazard--top { margin-bottom: 88px; }
@media (min-width: 900px) { .contact .hazard--top { margin-bottom: 120px; } }
.contact .sheet-no { color: rgba(242, 239, 230, .6); }
.contact__grid { display: grid; gap: 44px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; } }
.contact__copy > p:not(.sheet-no) { margin-top: 20px; color: rgba(242, 239, 230, .82); font-size: 15.5px; }
.contact__points { margin-top: 28px; display: grid; gap: 10px; }
.contact__points li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; }
.contact__points li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  border: 2px solid var(--yellow);
  background: linear-gradient(135deg, transparent 42%, var(--yellow) 42%, var(--yellow) 58%, transparent 58%);
}

.form {
  background: var(--paper-3);
  color: var(--ink);
  padding: 26px 20px;
  border: 2px solid var(--yellow);
  display: grid; gap: 18px;
}
@media (min-width: 600px) { .form { padding: 34px 32px; } }
.form__row { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.form__row--half { grid-template-columns: 1fr; gap: 18px; }
.form__row--half > div { display: grid; gap: 6px; }
@media (min-width: 560px) { .form__row--half { grid-template-columns: 1fr 1fr; gap: 14px; } }
.form label, .form legend { font-family: var(--f-display); font-weight: 700; font-size: 14px; padding: 0; }
.form legend { margin-bottom: 8px; }
.req { font-family: var(--f-body); font-size: 11px; font-weight: 700; color: #fff; background: var(--red); padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.form select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 36px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 184, 0, .5); }
.form [aria-invalid="true"] { border-color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 9px 14px;
  font-size: 14px; font-weight: 700; font-family: var(--f-body);
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  transition: background .15s, border-color .15s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.form__status { font-size: 14px; min-height: 1em; }
.form__status.is-error { color: var(--red); font-weight: 700; }
.form__status.is-ok { color: #1f7a4d; font-weight: 700; }
.form__status a { color: inherit; }
.form__privacy { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
.form__privacy a { color: var(--ink-2); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { background: var(--blue-ink); color: var(--paper); padding: 44px 0 110px; }
@media (min-width: 960px) { .footer { padding-bottom: 44px; } }
.footer__inner { display: grid; gap: 14px; }
.footer__desc { font-size: 13.5px; color: rgba(242, 239, 230, .7); }
.footer__links { font-size: 13px; }
.footer__links a { color: rgba(242, 239, 230, .7); }
.footer__links a:hover { color: var(--paper); }
.footer__copy { font-family: var(--f-mono); font-size: 12px; color: rgba(242, 239, 230, .5); }

/* ---------- mobile dock CTA ---------- */
.dock {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 40;
  display: flex; align-items: center; justify-content: center;
  min-height: 56px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-display); font-weight: 900; font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(140%);
  transition: transform .35s var(--ease);
}
.dock.is-shown { transform: none; }
@media (min-width: 960px) { .dock { display: none; } }

/* ---------- paperless tools (cost varies by tool) ---------- */
.tools {
  margin-top: 40px;
  border: 2px solid var(--ink);
  background: var(--paper-3);
}
.tools__head { padding: 26px 22px 8px; }
.tools__tag { font-family: var(--f-hand); font-weight: 600; color: var(--red); font-size: 17px; }
.tools__head h4 { margin-top: 2px; font-size: clamp(20px, 4.6vw, 26px); font-weight: 900; }
.tools__head > p:last-child { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); max-width: 54em; }
.tools__head b { color: var(--ink); background: linear-gradient(transparent 65%, rgba(245, 184, 0, .5) 65%); }

.tools__list { display: grid; gap: 12px; padding: 18px 16px 6px; }
@media (min-width: 720px) { .tools__list { grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px 22px 8px; } }
@media (min-width: 1120px) { .tools__list { grid-template-columns: repeat(5, 1fr); } }

.tool {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 16px 16px 14px;
  display: flex; flex-direction: column;
}
.tool--base { border: 2px solid var(--ink); background: rgba(245, 184, 0, .1); }
.tool__role {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--paper); background: var(--ink-2);
  align-self: flex-start; padding: 2px 8px;
}
.tool--base .tool__role { background: var(--ink); }
.tool h5 { margin: 10px 0 0; font-family: var(--f-display); font-size: 17px; font-weight: 900; line-height: 1.4; }
.tool__what { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.tool__cost { margin: 12px 0 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.tool__cost div { border-top: 1px dashed var(--line); padding-top: 8px; }
.tool__cost dt { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.tool__cost dd { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 18px; line-height: 1.4; }
.tool__cost small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 12px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }
.tool__point { margin-top: 12px; font-size: 13px; font-weight: 700; line-height: 1.6; display: flex; gap: 6px; }
.tool__point span { color: var(--red); flex: none; }

.combos { margin: 14px 16px 0; padding: 20px 18px; background: var(--ink); color: var(--paper); }
@media (min-width: 720px) { .combos { margin: 16px 22px 0; padding: 22px 26px; } }
.combos__title { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--yellow); }
.combos__list { margin-top: 12px; display: grid; gap: 10px; counter-reset: combo; }
.combos__list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(242, 239, 230, .18);
  counter-increment: combo;
}
.combos__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.combos__list li::before {
  content: counter(combo); grid-row: span 3;
  width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px;
  border: 1.5px solid var(--yellow); color: var(--yellow);
}
.combos__list b { font-family: var(--f-display); font-size: 15.5px; }
.combos__list span { font-size: 13.5px; color: rgba(242, 239, 230, .75); }
.combos__list em { font-style: normal; font-family: var(--f-mono); font-weight: 500; font-size: 18px; color: var(--paper); }
.combos__list em small { font-family: var(--f-body); font-size: 12px; color: rgba(242, 239, 230, .7); margin-left: 6px; }
@media (min-width: 860px) {
  .combos__list li { grid-template-columns: 28px 240px 1fr auto; align-items: center; gap: 12px; }
  .combos__list li::before { grid-row: auto; }
  .combos__list em { text-align: right; }
}
.combos__note { margin-top: 14px; font-size: 13.5px; color: rgba(242, 239, 230, .85); }
.tools__fine { padding: 14px 22px 20px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

/* ---------- build approach: custom vs plugin ---------- */
.ways { margin-top: 40px; border: 2px solid var(--ink); background: var(--paper-3); }
.ways__head { padding: 26px 22px 8px; }
.ways__head h4 { margin-top: 2px; font-size: clamp(20px, 4.6vw, 26px); font-weight: 900; }
.ways__head > p:last-child { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); max-width: 56em; }
.ways__head b { color: var(--ink); background: linear-gradient(transparent 65%, rgba(245, 184, 0, .5) 65%); }
.ways__grid { display: grid; gap: 14px; padding: 18px 16px 4px; }
@media (min-width: 760px) { .ways__grid { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 22px 6px; } }
.way { border: 2px solid var(--ink); background: #fff; padding: 18px 18px 16px; }
.way__label {
  display: inline-block;
  font-family: var(--f-display); font-weight: 700; font-size: 12.5px;
  padding: 2px 10px; background: var(--paper-2); border: 1px solid var(--line);
}
.way h5 { margin: 10px 0 0; font-family: var(--f-display); font-size: 20px; font-weight: 900; }
.way__spec { margin: 12px 0 0; display: grid; gap: 0; }
.way__spec div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-top: 1px dashed var(--line); }
@media (min-width: 560px) { .way__spec div { grid-template-columns: 9.5em 1fr; gap: 12px; } }
.way__spec dt { font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--ink-3); }
.way__spec dd { margin: 0; font-size: 14px; line-height: 1.7; }
.way__spec dd b { font-weight: 700; }
.way__zero { color: var(--red); font-family: var(--f-mono); font-size: 18px; }
.ways__note { padding: 14px 22px 20px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.way__sub { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }

/* HP care choice */
.plan__care {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--paper-2);
  border-left: 3px solid var(--yellow);
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
}
.plan__care b { display: block; font-family: var(--f-display); font-size: 13.5px; color: var(--ink); }

/* ---------- existing tools / systems ---------- */
.existing {
  margin-bottom: 72px;
  border: 2px solid var(--ink);
  background: var(--paper-3);
}
.existing__head { padding: 24px 22px 4px; }
.existing__head h4 { margin-top: 2px; font-size: clamp(20px, 4.6vw, 26px); font-weight: 900; }
.existing__grid { display: grid; gap: 14px; padding: 16px 16px 20px; }
@media (min-width: 760px) { .existing__grid { grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 22px 24px; } }
.existing__item { background: #fff; border: 1.5px solid var(--line); padding: 18px 18px 16px; }
.existing__item h5 { margin: 0; font-family: var(--f-display); font-size: 18px; font-weight: 900; }
.existing__item h5::before { content: "✓ "; color: var(--red); }
.existing__item p { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.existing__price { padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; color: var(--ink) !important; }

/* ---------- self-hosting persuasion ---------- */
.selfhost {
  margin-top: 56px;
  border: 2px solid var(--ink);
  background: var(--paper-3);
  padding: 26px 20px 24px;
  position: relative;
}
@media (min-width: 900px) { .selfhost { padding: 36px 40px 32px; } }
.selfhost__tag { font-family: var(--f-hand); font-weight: 600; color: var(--red); font-size: 17px; }
.selfhost__title { margin-top: 2px; font-size: clamp(21px, 4.8vw, 28px); font-weight: 900; }
.selfhost__answer {
  margin-top: 16px;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(18px, 4.2vw, 24px); line-height: 1.55;
}
.selfhost__answer em { font-style: normal; background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%); }
.selfhost__reasons { margin-top: 22px; display: grid; gap: 12px; counter-reset: sh; }
@media (min-width: 760px) { .selfhost__reasons { grid-template-columns: 1fr 1fr; gap: 16px; } }
.selfhost__reasons li {
  counter-increment: sh;
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 16px 16px 16px 56px;
}
.selfhost__reasons li::before {
  content: counter(sh);
  position: absolute; left: 14px; top: 16px;
  width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 500; font-size: 15px;
  border: 2px solid var(--ink); background: var(--yellow);
}
.selfhost__reasons h4 { font-size: 16.5px; font-weight: 900; line-height: 1.5; }
.selfhost__reasons p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.selfhost__fair { margin-top: 18px; padding: 16px 18px; background: var(--paper-2); border-left: 4px solid var(--ink-3); }
.selfhost__fair-title { font-family: var(--f-display); font-weight: 900; font-size: 15.5px; }
.selfhost__fair ul { margin-top: 8px; display: grid; gap: 4px; }
.selfhost__fair li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-2); }
.selfhost__fair li::before { content: "・"; position: absolute; left: 0; }
.selfhost__fair > p:last-child { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.selfhost__close { margin-top: 18px; font-size: 15px; line-height: 1.85; }
.selfhost__close b { background: linear-gradient(transparent 65%, rgba(245, 184, 0, .5) 65%); }

/* ---------- LINE app ---------- */
.lineapp { background: var(--paper-2); }
.lineapp__grid { display: grid; gap: 28px; align-items: center; justify-items: center; }
@media (min-width: 960px) {
  .lineapp__grid { grid-template-columns: auto auto 1fr; gap: 32px; justify-items: stretch; }
}
.lphone {
  width: 290px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(19, 32, 58, .14);
  justify-self: center;
}
.lphone__top {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 10px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  font-size: 12.5px;
}
.lphone__back { font-size: 20px; line-height: 1; color: var(--ink-3); }
.lphone__chat { background: #8fa6c4; padding: 14px 12px; display: grid; gap: 10px; }
.lbub {
  max-width: 85%;
  padding: 8px 11px;
  font-size: 12.5px; line-height: 1.55;
  border-radius: 14px;
  background: #fff;
  justify-self: start;
}
.lcard { background: #fff; border-radius: 14px; padding: 12px 12px 10px; font-size: 12px; max-width: 88%; justify-self: start; }
.lcard__title { font-family: var(--f-display); font-weight: 900; font-size: 13.5px; padding-bottom: 6px; border-bottom: 2px solid #06c755; }
.lcard dl { margin: 8px 0 0; display: grid; gap: 4px; }
.lcard dl div { display: grid; grid-template-columns: 3em 1fr; gap: 6px; }
.lcard dt { color: var(--ink-3); }
.lcard dd { margin: 0; font-weight: 700; }
.lcard__btn {
  display: block; margin-top: 10px; text-align: center;
  background: #06c755; color: #fff; font-weight: 700;
  border-radius: 8px; padding: 7px 0;
}
.lphone__menu { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid #e6e6e6; }
.lphone__menu li {
  font-size: 11.5px; font-weight: 700; text-align: center;
  padding: 14px 2px;
  border-right: 1px solid #eee; border-bottom: 1px solid #eee;
}
.lphone__menu li:nth-child(3n) { border-right: 0; }
.lphone__menu li.is-on { background: #e8f8ee; color: #058a3c; }

.lineapp__flow { display: grid; justify-items: center; gap: 4px; font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.lineapp__flow svg { width: 64px; height: 24px; fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
@media (min-width: 960px) { .lineapp__flow svg { transform: none; width: 80px; } }

.lineapp__body { width: 100%; }
.lineapp__body h3 { font-size: clamp(20px, 4.4vw, 26px); font-weight: 900; }
.lineapp__list { margin-top: 16px; display: grid; gap: 10px; }
@media (min-width: 600px) { .lineapp__list { grid-template-columns: 1fr 1fr; } }
.lineapp__list li {
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  padding: 12px 14px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.6;
}
.lineapp__list b { display: block; font-family: var(--f-display); font-size: 15.5px; color: var(--ink); }
.lineapp__price {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--ink); color: var(--paper);
  font-size: 14.5px; line-height: 1.7;
}
.lineapp__price b { color: var(--yellow); font-family: var(--f-display); font-size: 16px; }
.lineapp__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.75; }
@media (max-width: 959px) { .lineapp__flow svg { margin: 20px 0; } }

/* ---------- privacy（個人情報の取り扱い） ---------- */
.nav__back { font-family: var(--f-display); font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.legal__body { max-width: 760px; }
.legal .sec-title { margin-bottom: 24px; }
.legal__lead { color: var(--ink-2); }
.legal h2 { margin: 44px 0 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); font-size: 19px; font-weight: 900; }
.legal p + p { margin-top: 12px; }
.legal ul { margin-bottom: 12px; display: grid; gap: 6px; }
.legal ul li { position: relative; padding-left: 18px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 2px; background: var(--yellow); }
.legal__date { margin-top: 56px; font-size: 14px; color: var(--ink-3); text-align: right; }
