/*
 * 新デザイン（A案）のスタイル。旧 style.css とは独立。
 * 決定事項: 白地＋黒の太字。基調色は青。ミント・コーラルは四角の動きと小さな飾りだけ（白地の文字には使わない）。
 */
:root {
  --ink: #101010;
  --paper: #ffffff;
  --mist: #f3f4f8;
  --line: #dfe1ea;
  --sub: #5a5d6b;
  --blue: #022bfc;
  --blue-deep: #0120c2;
  --blue-soft: #e8ecff;
  --mint: #20e5cf;
  --coral: #fd756a;
  --yellow: #ffc93c;
  --f-display: "Outfit", "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --hd-h: 68px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.85;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 700; font-size: 16px; line-height: 1;
  padding: 18px 28px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .25s, border-color .25s;
}
.btn-sm { padding: 11px 18px; font-size: 14px; }
/* 背景スライド（codequest: ボタン｜背景スライド） */
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.btn-blue:hover::before { transform: scaleX(1); }
.btn-line { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd-in { height: var(--hd-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.hd-logo { display: block; width: 104px; flex: none; }
.hd-nav { display: flex; align-items: center; gap: 28px; }
.hd-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0;
}
/* 下線スライド（codequest: リンク｜下線スライド） */
.hd-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c, var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.hd-nav a:not(.btn):hover::after, .hd-nav a.is-active::after { transform: scaleX(1); }

/* 長さ違いの3本が×に揃う（codequest: ハンバーガー 応用） */
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; padding: 0; margin-right: -8px; }
.burger span { position: absolute; left: 10px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), width .35s var(--ease), top .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; width: 24px; }
.burger span:nth-child(2) { top: 21px; width: 15px; }
.burger span:nth-child(3) { top: 28px; width: 20px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; width: 24px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { width: 0; opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; width: 24px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: var(--hd-h) 0 0; z-index: 39; background: var(--paper); overflow-y: auto; }
.mnav-in { display: grid; gap: 4px; padding: 24px var(--gutter) 40px; }
.mnav a:not(.btn) { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mnav a:not(.btn)::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--blue)); }
.mnav .btn { margin-top: 24px; }
.mnav:not([hidden]) .mnav-in > * { animation: mnav-in .4s var(--ease) both; }
.mnav:not([hidden]) .mnav-in > *:nth-child(2) { animation-delay: .04s; }
.mnav:not([hidden]) .mnav-in > *:nth-child(3) { animation-delay: .08s; }
.mnav:not([hidden]) .mnav-in > *:nth-child(4) { animation-delay: .12s; }
.mnav:not([hidden]) .mnav-in > *:nth-child(5) { animation-delay: .16s; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 860px) {
  .hd-nav { display: none; }
  .burger { display: block; }
  :root { --hd-h: 60px; }
  .hd-logo { width: 88px; }
}

/* ---------- section basics ---------- */
.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec-mist { background: var(--mist); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--blue); border-radius: 2px; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.sec-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
.sec-lead { color: var(--sub); font-size: 16.5px; }

/* 見えたら少し動く（codequest: fadeInUp）。最初から読める状態で、動きは控えめ。
   animation-timeline 非対応のブラウザではそのまま表示される。 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rv-in { from { opacity: .001; transform: translateY(24px); } }

/* ---------- hero ---------- */
/* 見出しは中央に1行（スマホは2行）。背後の Canvas に点のマス目と流れる四角を描く。 */
.hero { position: relative; overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* 文字のある中央では四角を薄くする */
  -webkit-mask-image: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(0,0,0,.12) 55%, #000 100%);
          mask-image: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(0,0,0,.12) 55%, #000 100%);
}
.hero-in {
  position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 22px;
  min-height: clamp(520px, 72vh, 720px); align-content: center; padding-block: clamp(64px, 9vw, 112px);
}
.hero h1 { font-size: clamp(26px, 3.9vw, 54px); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; }
/* 見出しの下の4事業。青い文字だけ（頭の四角は付けない） */
.hero-tag { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .16em; color: var(--blue); margin-top: -16px; }
.hero h1 .blue { color: var(--blue); }
.nowrap { white-space: nowrap; }
.hero-lead { color: var(--sub); font-size: clamp(15px, 1.6vw, 18px); max-width: 44em; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 13px; color: var(--sub); }
.sp-only { display: none; }
@media (max-width: 640px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .hero h1 { font-size: clamp(21px, 7vw, 34px); white-space: normal; }
  .hero-in { min-height: 560px; padding-bottom: 104px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-art canvas {
    -webkit-mask-image: radial-gradient(ellipse 70% 38% at 50% 50%, rgba(0,0,0,.12) 55%, #000 100%);
            mask-image: radial-gradient(ellipse 70% 38% at 50% 50%, rgba(0,0,0,.12) 55%, #000 100%);
  }
}

/* ---------- 見出し（全セクション共通）：左端から線を引き、イタリックの英語見出し＋ミントのピリオド ---------- */
.sec { overflow-x: clip; }
.line-label { display: flex; align-items: center; gap: 20px; margin-inline: calc(50% - 50vw); margin-bottom: clamp(32px, 4.5vw, 48px); }
.line-label-bar { flex: 1; height: 2px; background: var(--ink); }
.line-label-pad { flex: 1; }
.line-label-text { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.line-label-text .dot { color: var(--mint); }
.c-head { display: grid; justify-items: center; text-align: center; gap: 16px; max-width: 720px; margin: 0 auto clamp(56px, 8vw, 96px); }
@media (max-width: 820px) { .line-label { gap: 12px; } .line-label-pad { flex: .15; } }

/* ---------- Free Check（無料診断） ---------- */
.pains { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 960px; }
.pain { position: relative; min-height: 96px; display: grid; align-items: center; padding: 22px 24px 22px 52px; border-radius: 12px; background: var(--mist); overflow: hidden; transition: background .5s ease; }
.pains p { position: relative; font-size: clamp(15.5px, 1.6vw, 17.5px); line-height: 1.7; min-width: 0; transition: opacity .5s ease .1s; }
.pains b { font-weight: 700; background: linear-gradient(transparent 62%, rgba(255, 201, 60, .55) 62%); }
/* 左の目印：ロゴの4色の小さな四角 */
.pain-mark { position: absolute; left: 22px; top: 50%; display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; transform: translateY(-50%); }
.pain-mark i { width: 7px; height: 7px; border-radius: 1.5px; transition: opacity .3s, transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.pain-mark i:nth-child(2) { transition-delay: .06s; } .pain-mark i:nth-child(3) { transition-delay: .12s; } .pain-mark i:nth-child(4) { transition-delay: .18s; }
/* 組み上がる動き：JS が is-ready を付けたときだけ、最初はカードを隠しておく */
.pain-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 30), 1fr); grid-auto-rows: 1fr; gap: 2px; pointer-events: none; }
.pain-tiles i { background: var(--c); opacity: 0; transform: scale(.3); border-radius: 2px; }
.pains.is-ready .pain:not(.is-done) { background: transparent; }
.pains.is-ready .pain:not(.is-done) p { opacity: 0; }
.pains.is-ready .pain:not(.is-done) .pain-mark i { opacity: 0; transform: scale(.4); }
.pain.is-go .pain-tiles i { animation: pain-tile .5s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: var(--d); }
@keyframes pain-tile { 0% { opacity: 0; transform: scale(.3); } 45% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.pains-answer { text-align: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 3vw, 32px); line-height: 1.5; margin: clamp(40px, 6vw, 64px) 0 clamp(40px, 6vw, 64px); }
.pains-answer b { color: var(--blue); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.offer-photo { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.offer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.offer-text { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.offer-text h3 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; line-height: 1.3; }
.offer-text h3 b { color: var(--blue); }
.offer-text > p { color: var(--sub); }
.offer-note { color: var(--sub); font-size: 12.5px; }
/* 条件の並び：2×2が基本。横幅に余裕がある画面（1100px以上）だけ4つ横並び。言葉の途中では折り返さない */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0 6px; border-block: 1px solid var(--line); width: 100%; max-width: 420px; }
.specs > div { padding: 12px 0 12px 14px; border-left: 1px solid var(--line); min-width: 0; }
.specs > div:nth-child(odd) { border-left: 0; padding-left: 0; }
.specs > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) {
  .specs { grid-template-columns: repeat(4, auto); justify-content: start; max-width: none; }
  .specs > div { padding: 12px 18px; border-left: 1px solid var(--line); border-bottom: 0; }
  .specs > div:nth-child(-n+2) { border-bottom: 0; }
  .specs > div:first-child { border-left: 0; padding-left: 0; }
}
.specs dt { font-size: 12px; color: var(--sub); font-weight: 700; }
.specs dd { margin: 2px 0 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.specs dd b { color: var(--blue); }
.specs dd small { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; margin-left: 2px; white-space: nowrap; }
@media (max-width: 820px) { .pains { grid-template-columns: 1fr; } .offer { grid-template-columns: 1fr; } }

/* ---------- Services：4事業を階段で（見出しの■と事業名は青、積み木は4色） ---------- */
.stairs { --blk: 34px; --gap: 6px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.step { display: grid; gap: 18px; align-content: end; min-width: 0; }
.step-text { display: grid; gap: 8px; align-content: start; }
.step-no { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--sub); }
.rec { font-family: var(--f-body); letter-spacing: .04em; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); padding: 2px 10px; border-radius: 999px; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: clamp(19px, 2vw, 23px); font-weight: 800; color: var(--blue); }
.step-title::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 3px; background: var(--blue); }
.step-text p { color: var(--sub); font-size: 15px; }
.step-text .step-note { color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.7; padding-left: 12px; border-left: 3px solid var(--yellow); }
.step-text .step-price { color: var(--ink); font-size: 14px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.step-price b { font-family: var(--f-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.step-price em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #9b3326; background: #ffe9e6; padding: 0 7px; border-radius: 4px; }
.step-more { font-weight: 700; font-size: 14px; text-decoration: none; }
.step-more:hover { text-decoration: underline; }
/* 積み木：STEP の数だけ段を積み、各段は列の横幅いっぱいに6個並べる（スマホでは非表示。代わりに上部に小さな階段を固定） */
.blocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.blocks i { display: block; aspect-ratio: 1; border-radius: 5px; background: var(--c); }
.floor { height: 2px; background: var(--line); margin-top: 6px; border-radius: 1px; }
@media (max-width: 820px) {
  .stairs { --blk: 22px; --gap: 4px; grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .floor { display: none; }
}

/* スマホだけ：画面上部に固定する小さな階段（読み進めた段まで積み木を積む） */
.sv-sticky { display: none; }
@media (max-width: 820px) {
  .step .blocks { display: none; }
  .step { grid-template-columns: 1fr; }
  .step .step-text { grid-column: 1; }
  .sv-sticky { display: block; position: sticky; top: var(--hd-h); z-index: 5; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 10px var(--gutter) 8px;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
  .sv-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; }
  .sv-mini-col { display: grid; justify-items: center; gap: 6px; }
  /* 各段を横に3個並べる（PCの積み木と同じ考え方）。狭い画面でも柱が列の幅に収まるよう、幅から大きさを決める */
  .sv-mini-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; width: min(100%, 72px); }
  .sv-mini-stack i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--c); transition: opacity .35s, transform .35s cubic-bezier(.3, .6, .3, 1); }
  .sv-mini-col small { font-size: 11px; font-weight: 700; color: var(--blue); white-space: nowrap; transition: color .3s; }
  .sv-mini-col.off .sv-mini-stack i { opacity: .14; transform: translateY(-6px); }
  .sv-mini-col.off small { color: #b3b7c6; }
}

/* ---------- Column（お役立ち記事）：箱をやめ、行の左の四角が塗られるだけ ---------- */
.col-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.col-top a { font-weight: 700; text-decoration: none; }
.col-list { list-style: none; margin: clamp(32px, 5vw, 48px) 0 0; padding: 0; }
.col-list a { display: grid; grid-template-columns: 18px 120px 1fr auto; gap: 20px; align-items: baseline; padding: 22px 0; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.col-list li:last-child a { border-bottom: 1px solid var(--line); }
.col-list .sq { width: 12px; height: 12px; border-radius: 2px; background: var(--line); transition: background .25s, transform .25s var(--ease); }
.col-list a:hover .sq { background: var(--blue); transform: scale(1.3); }
.col-list a:hover h3 { color: var(--blue); }
.col-list time { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.col-body { display: grid; gap: 4px; min-width: 0; }
.col-list h3 { font-family: var(--f-body); font-weight: 700; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; transition: color .2s; }
.col-excerpt { font-size: 14px; color: var(--sub); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-list .cat { font-size: 12.5px; font-weight: 700; color: var(--blue); white-space: nowrap; }
/* アイキャッチ付きの行：左の四角の代わりに小さなアイキャッチ */
.col-list a.has-thumb { grid-template-columns: 184px 110px 1fr auto; align-items: center; padding-block: 18px; }
.col-thumb { display: block; overflow: hidden; border-radius: 6px; }
.col-thumb img { display: block; width: 100%; height: auto; transition: transform .35s var(--ease); }
.col-list a.has-thumb:hover .col-thumb img { transform: scale(1.04); }
@media (max-width: 820px) {
  .col-list a { grid-template-columns: 14px 1fr; gap: 6px 14px; }
  .col-list time, .col-list .col-body { grid-column: 2; }
  .col-list .cat { grid-column: 2; grid-row: 1; }
  .col-list .sq { grid-row: 1 / span 3; align-self: start; margin-top: 6px; }
  .col-list a.has-thumb { grid-template-columns: clamp(104px, 30vw, 160px) 1fr; align-items: start; }
  .col-list .col-thumb { grid-row: 1 / span 3; margin-top: 2px; }
}

/* ---------- Contact（締めの案内）：箱を使わず、文字とボタンだけ ---------- */
.end { display: grid; justify-items: center; text-align: center; gap: 18px; max-width: 760px; margin: 0 auto; }
.end-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.end-note { font-size: 13px; color: var(--sub); }
@media (max-width: 640px) { .end-cta { width: 100%; } .end-cta .btn { flex: 1 1 100%; } }

/* ========== 下層ページ（2026/11/6：トップページと同じ部品でデザインだけを新しくした） ========== */

/* 英語見出しが長いとき、狭い画面では折り返す */
@media (max-width: 480px) { .line-label-text { white-space: normal; font-size: 28px; text-align: right; } }

/* ページの一番上：パンくず → 線つきの英語見出し → ページ名 */
.p-hero { padding-block: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 72px); background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px); background-size: 26px 26px; background-position: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--sub); margin-bottom: clamp(24px, 4vw, 40px); }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.p-hero .line-label { margin-bottom: 20px; }
.p-hero-head { display: grid; justify-items: center; text-align: center; gap: 14px; max-width: 760px; margin: 0 auto; }
.p-hero-name { display: flex; align-items: baseline; gap: clamp(12px, 1.6vw, 20px); min-width: 0; }
.p-hero-label .line-label-text { white-space: nowrap; text-align: left; }
/* ページ名（h1）：英語見出しの横に、小さめに */
.p-hero-title { font-size: clamp(15px, 1.8vw, 21px); font-weight: 700; line-height: 1.3; white-space: nowrap; }
.p-hero-head .sec-lead { background: rgba(255, 255, 255, .86); padding: 2px 8px; border-radius: 6px; }

/* 写真つきのカード（枠は使わない。写真・青い見出し・説明） */
.cards { display: grid; gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: grid; gap: 12px; align-content: start; min-width: 0; }
.card-photo { margin: 0 0 6px; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-title { display: flex; align-items: flex-start; gap: 10px; font-size: clamp(19px, 2vw, 22px); font-weight: 800; color: var(--blue); line-height: 1.45; }
.card-title::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--blue); margin-top: .42em; }
.card-desc { color: var(--sub); font-size: 15px; line-height: 1.9; }
.card-note { font-size: 14px; font-weight: 700; line-height: 1.75; padding-left: 12px; border-left: 3px solid var(--yellow); }
.sec-note { margin-top: clamp(28px, 4vw, 40px); text-align: center; color: var(--sub); font-size: 14px; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }

/* 流れ：写真と文章を左右交互に。番号は英語見出しと同じイタリック＋ミントのピリオド */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 6vw, 72px); }
.flow-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.flow-row:nth-child(even) .flow-photo { order: 2; }
.flow-photo { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); }
.flow-photo img { width: 100%; height: 100%; object-fit: cover; }
.flow-text { display: grid; gap: 12px; }
.flow-no, .value-num { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1; color: var(--ink); }
.flow-no .dot { color: var(--mint); }
@media (max-width: 760px) { .flow-row { grid-template-columns: 1fr; } .flow-row:nth-child(even) .flow-photo { order: 0; } }

/* 会社概要：理念（左に文章、右に Mission / Vision / Philosophy） */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-text { display: grid; gap: 20px; }
.prose { color: var(--sub); font-size: 15.5px; line-height: 2; }
.mvp { list-style: none; margin: 0; padding: 0; display: grid; }
.mvp li { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.mvp li:last-child { border-bottom: 1px solid var(--line); }
.mvp img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.mvp-label { display: block; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 20px; color: var(--blue); }
.mvp-statement { font-size: 15.5px; font-weight: 700; line-height: 1.7; margin-top: 2px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .mvp li { grid-template-columns: 72px 1fr; } .mvp img { width: 72px; height: 72px; } }

/* 大切にしていること（4つ） */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); }
/* 4つの価値：名前を主役に、番号は小さく。番号の文字と上の線は、価値ごとの色（青・ミント・コーラル・イエロー） */
.value { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 22px; }
.value::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.value::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); transform-origin: left; }
.value-no { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 18px; line-height: 1; letter-spacing: .04em; color: var(--c); }
.value-name { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.3; color: var(--ink); }
.value-lead { font-weight: 700; font-size: 15.5px; line-height: 1.7; color: var(--blue); }
/* 動き：画面に入ると、色の線が左から引かれる */
.anim .value::after { transition: transform 1.1s var(--ease); transition-delay: calc(var(--rv-d, 0s) + .1s); }
.anim .value:not(.is-in)::after { transform: scaleX(0); }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* 会社情報など、項目名と内容の表 */
.info { margin: 0 auto; max-width: 860px; border-top: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 700; font-size: 14.5px; color: var(--blue); }
.info dd { margin: 0; font-size: 15px; line-height: 1.85; min-width: 0; overflow-wrap: anywhere; }
/* お問い合わせの案内欄：左の文章と左端をそろえる（.info の margin:auto だと、狭い欄では右に寄って見えるため） */
.info-compact { margin: 0; max-width: none; width: 100%; }
.info-compact > div { grid-template-columns: 120px 1fr; padding: 14px 0; }
@media (max-width: 640px) { .info > div, .info-compact > div { grid-template-columns: 1fr; gap: 4px; } }

/* デザイン事業（Atelier Iroha） */
.brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.brand-logo { margin: 0; background: var(--paper); border-radius: 14px; overflow: hidden; }
.brand-logo img { width: 100%; height: auto; }
.brand-text { display: grid; gap: 16px; justify-items: start; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .brand { grid-template-columns: 1fr; } }

/* お問い合わせ：左に連絡先、右にフォーム */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 16px; position: sticky; top: calc(var(--hd-h) + 24px); }
.contact-form-wrap { display: grid; gap: 20px; min-width: 0; }
.privacy-note { font-size: 13px; color: var(--sub); line-height: 1.8; background: var(--mist); border-radius: 10px; padding: 16px 18px; }
.privacy-note strong { color: var(--ink); }
.contact-form { display: grid; gap: 22px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-group { display: grid; gap: 8px; }
.form-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.form-required { font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); padding: 1px 7px; border-radius: 4px; }
.form-input, .form-select, .form-textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.form-textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2, 43, 252, .15); }
.form-input.error, .form-select.error, .form-textarea.error { border-color: #d6453a; }
.form-error-msg { display: none; font-size: 13px; color: #c23a2f; }
.form-error-msg.visible { display: block; }
.form-submit { display: grid; gap: 12px; justify-items: start; }
.form-submit .btn { min-width: 220px; }
.btn.is-sending { opacity: .7; pointer-events: none; }
.form-send-error { display: none; font-size: 13.5px; color: #c23a2f; line-height: 1.8; }
.form-send-error.visible { display: block; }
.form-success { display: none; text-align: center; padding: 48px 24px; background: var(--mist); border-radius: 12px; }
.form-success.show { display: grid; gap: 12px; justify-items: center; }
.form-success-title { font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.form-success-text { color: var(--sub); line-height: 1.9; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } .contact-info { position: static; } .form-submit .btn { width: 100%; } }

/* 記事のカテゴリ絞り込み（GuideNav） */
.guide-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); }
.guide-cat-link { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); transition: border-color .2s, color .2s, background .2s; }
.guide-cat-link:hover { border-color: var(--blue); color: var(--blue); }
.guide-cat-link.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 記事ページ */
.art-wrap { max-width: 800px; }
.art-head { padding-block: clamp(28px, 5vw, 48px) clamp(28px, 4vw, 40px); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--sub); margin-bottom: 16px; }
.art-cat { font-weight: 700; color: #fff; background: var(--blue); padding: 2px 10px; border-radius: 4px; text-decoration: none; }
.art-title { font-family: var(--f-body); font-size: clamp(25px, 3.6vw, 36px); font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.art-excerpt { margin-top: 16px; color: var(--sub); font-size: 16px; line-height: 1.9; }
.art-supervisor { margin-top: 12px; font-size: 13px; color: var(--sub); }
.art-cover { display: block; width: 100%; height: auto; margin-bottom: 32px; }
.art-body { font-size: 16px; line-height: 2.05; padding-bottom: 16px; overflow-wrap: anywhere; }
.art-body > *:first-child { margin-top: 0; }
.art-body h2 { font-family: var(--f-body); font-size: clamp(21px, 2.6vw, 24px); font-weight: 700; line-height: 1.6; margin: 56px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.art-body h3 { display: flex; gap: 10px; font-family: var(--f-body); font-size: 18px; font-weight: 700; line-height: 1.6; margin: 40px 0 14px; }
.art-body h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--blue); margin-top: .55em; }
.art-body p { margin-bottom: 26px; }
.art-body a { color: var(--blue); text-decoration: underline; }
.art-body ul, .art-body ol { margin: 0 0 26px 1.4em; padding: 0; }
.art-body li { margin-bottom: 10px; }
.art-body ul > li { list-style: disc; }
.art-body ol > li { list-style: decimal; }
.art-body strong { font-weight: 700; background: linear-gradient(transparent 64%, rgba(255, 201, 60, .45) 64%); }
.art-body blockquote { margin: 0 0 26px; padding: 18px 22px; background: var(--mist); border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; }
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body img { width: 100%; border-radius: 10px; margin: 0 0 26px; }
/* 埋め込み動画。幅いっぱいに広げ、高さは16:9で自動的に決める（スマホでも比率が崩れない） */
.art-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 0 0 26px; border: 0; border-radius: 10px; background: #000; }
.art-body code { padding: 2px 7px; border-radius: 5px; background: var(--mist); font-size: .9em; }
.art-body pre { margin: 0 0 26px; padding: 20px; border-radius: 8px; background: #1a1c26; color: #eef0f8; overflow-x: auto; font-size: 13px; line-height: 1.8; }
.art-body pre code { background: none; padding: 0; color: inherit; }
/* 表は横に長くなっても、ページ全体は横スクロールさせない */
.art-body table { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 14px; display: block; overflow-x: auto; }
.art-body th, .art-body td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.art-body th { background: var(--mist); font-weight: 700; }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.art-tags span { background: var(--mist); padding: 3px 10px; border-radius: 999px; }
.art-cta { display: grid; gap: 16px; justify-items: center; text-align: center; margin: clamp(40px, 6vw, 64px) 0; padding: clamp(28px, 4vw, 40px) 20px; border-block: 2px solid var(--ink); }
.art-cta p { line-height: 1.9; }
.art-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 640px) { .art-cta-btns { width: 100%; } .art-cta-btns .btn { flex: 1 1 100%; } }
/* 記事の目次 */
.art-toc { margin: 0 0 40px; padding: 22px 24px; border-radius: 12px; background: var(--mist); }
.art-toc-title { font-family: var(--f-body); font-weight: 700; font-size: 14px; color: var(--sub); letter-spacing: .06em; margin-bottom: 10px; }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.art-toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.6; }
.art-toc a:hover { color: var(--blue); }
.art-toc-no { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 13px; color: var(--blue); }
.art-body h2 { scroll-margin-top: calc(var(--hd-h) + 20px); }
.art-nav { border-top: 1px solid var(--line); }
.art-nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-block: 8px; }
.art-nav-item { display: grid; gap: 4px; padding: 20px 16px; text-decoration: none; color: inherit; border-radius: 10px; transition: background .2s; min-width: 0; }
.art-nav-item:hover { background: var(--mist); }
.art-nav-item--next { text-align: right; }
.art-nav-label { font-size: 12.5px; font-weight: 700; color: var(--blue); }
.art-nav-name { font-weight: 700; font-size: 15px; line-height: 1.6; }
@media (max-width: 640px) { .art-nav-grid { grid-template-columns: 1fr; } .art-nav-item--next { text-align: left; } }

/* ---------- 締めの案内とフッターの境目の積み木（トップページ） ---------- */
#contact-cta.has-deco { padding-bottom: clamp(16px, 3vw, 32px); }
.stack-deco { position: relative; height: var(--h, 200px); }
.stack-deco canvas { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; display: block; }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: #c9ccd8; font-size: 14px; }
.ft-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-block: 64px 40px; }
.ft-brand { display: grid; gap: 16px; max-width: 30em; }
.ft-brand img { width: 120px; }
.ft-sub a { color: #fff; }
.ft-nav { display: grid; gap: 8px; align-content: start; }
.ft-nav a { color: #fff; text-decoration: none; }
.ft-nav a:hover { text-decoration: underline; }
.ft-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 32px; font-size: 12.5px; }

/* ---------- page transition（薄いグレー地に9マスの四角を描いてから開く） ---------- */
.pt { position: fixed; inset: 0; z-index: 100; background: var(--mist); display: grid; place-items: center; visibility: hidden; clip-path: inset(50% 0); pointer-events: none; }
.pt-grid { display: grid; grid-template-columns: repeat(3, 20px); gap: 5px; }
.pt-grid i { width: 20px; height: 20px; border-radius: 3px; transform: scale(0); }
/* 前のページから移ってきたときは、覆った状態から始める */
html.pt-in .pt { visibility: visible; clip-path: inset(0); }

/* ---------- keyword marquee（ファーストビュー直下を流れる帯） ---------- */
.mq { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; }
.mq-track { display: flex; width: max-content; animation: mq 40s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 14px; padding-right: 48px; font-family: var(--f-display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.mq-item::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--blue)); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .mq { padding-block: 14px; }
  .mq-item { font-size: 15px; gap: 10px; padding-right: 32px; }
  .mq-item::before { width: 8px; height: 8px; }
}

/* ---------- Pick Up（アイキャッチだけを横一列に並べ、横にスクロール） ---------- */
.sec.pu { padding-block: clamp(56px, 7vw, 88px) 0; }
.pu-track {
  list-style: none; margin: 0; padding: 4px 0 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.pu-track::-webkit-scrollbar { display: none; }
.pu-track li { scroll-snap-align: start; min-width: 0; }
.pu-track a { display: block; border-radius: 10px; transition: transform .3s var(--ease); }
.pu-track a:hover { transform: translateY(-4px); }
.pu-track a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.pu-track img { display: block; width: 100%; height: auto; }
.pu-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.pu-ctrl[hidden] { display: none; }
.pu-dots { display: flex; gap: 8px; }
.pu-dots i { width: 10px; height: 10px; border-radius: 2px; background: var(--line); transition: background .25s, transform .25s var(--ease); }
.pu-dots i.on { background: var(--blue); transform: scale(1.2); }
.pu-nav { display: flex; gap: 10px; }
.pu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper, #fff); color: var(--ink); font: 700 18px var(--f-display); cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.pu-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.pu-btn:disabled { opacity: .25; cursor: default; }
@media (max-width: 1024px) { .pu-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
  /* スマホ：画面の端までスクロールさせ、次の1枚を少し見せる */
  .pu-track { grid-auto-columns: 84%; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .pu-nav { display: none; }
}

/* ---------- サービスページ ---------- */
/* 各事業：片方に説明、もう片方に見本の絵。偶数番目は左右を入れ替える */
.svc { scroll-margin-top: var(--hd-h); overflow: hidden; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.svc-rev .svc-head { order: 2; }
.svc-head { position: relative; display: grid; gap: 16px; min-width: 0; }
.svc-head > *:not(.svc-bign) { position: relative; z-index: 1; }
/* 背景の大きな番号：サービス名の真裏に置く。数字の外形を1本の線にしたSVG（src/data/bign-digits.json）。白地は薄いグレー、グレー地は白の線 */
.svc-head > .svc-name-wrap { position: relative; isolation: isolate; z-index: 0; }
.svc-head > .svc-step { z-index: 2; }
.svc-head > .svc-step span, .svc-head > .svc-step { background-clip: padding-box; }
.svc-name-wrap .svc-name { position: relative; z-index: 1; }
/* サービス名の最後の1文字と「0」が少し重なる位置に置く（名前の幅に合わせて囲みを縮める） */
.svc-head > .svc-name-wrap { justify-self: start; }
.svc-bign { position: absolute; left: calc(100% - .55em); top: 50%; z-index: 0; height: var(--bign-h, clamp(84px, 8.4vw, 118px)); width: auto; transform: translateY(-50%); overflow: visible; pointer-events: none; font-size: clamp(28px, 3.6vw, 40px); }
.svc-bign path { fill: none; stroke: var(--bign-c, #d9dce6); stroke-width: var(--bign-w, 3.6px); vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.sec-mist .svc-bign { --bign-c: #fff; --bign-w: 4px; }
.svc-step { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--sub); }
.svc-step .sq { width: 12px; height: 12px; border-radius: 2px; background: var(--c); }
.svc-name { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.3; color: var(--blue); }
.svc-lead { color: var(--sub); font-size: 15.5px; line-height: 1.95; }
.svc-price { font-size: 15px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
.svc-price b { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 36px); font-variant-numeric: tabular-nums; }
.svc-price-wrap { display: grid; gap: 6px; }
.svc-body { display: grid; gap: 14px; min-width: 0; }
.svc-sub { font-size: 13px; font-weight: 700; color: var(--sub); letter-spacing: .04em; }
.svc-media { display: grid; gap: 2px; font-size: 15.5px; font-weight: 700; }
/* 作業の流れ：番号つきの四角を線でつなぐ */
.svc-flow { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.svc-flow li { position: relative; display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.svc-flow li::before { content: ""; position: absolute; top: 21px; left: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); z-index: 0; }
.svc-flow li:last-child::before { display: none; }
.svc-flow-no { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--n); color: #fff; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 14px; box-shadow: 0 8px 18px -10px var(--n); }
.svc-flow li:nth-child(4) .svc-flow-no { color: var(--ink); }
.svc-flow li:nth-child(2) .svc-flow-no { color: var(--ink); }
.note-y { color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.75; padding-left: 12px; border-left: 3px solid var(--yellow); }
.svc-small { font-size: 12.5px; color: var(--sub); line-height: 1.7; }
/* メニューと料金 */
.svc-menu { margin: 0; display: grid; }
.svc-menu div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.svc-menu div:last-child { border-bottom: 1px solid var(--line); }
.svc-menu dt { font-weight: 700; min-width: 0; }
.svc-menu dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-check li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; font-weight: 700; }
.svc-check li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c); transform: translateY(-2px); }
.svc-term { font-weight: 700; font-size: 15px; }
/* システム開発：事例が大きいので、上に名前と料金、下に横長の事例 */
.svc-wide .svc-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
.svc-wide .svc-head { max-width: 640px; }
.svc-wide .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.work-text { display: grid; gap: 14px; align-content: start; }

/* ---------- 見本の絵（スマホ・ブラウザ・チャット）。中身はすべて飾り ---------- */
.mock { position: relative; display: grid; place-items: center; min-height: 420px; }
.mock-tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #fff; border-radius: 10px; padding: 8px 12px; box-shadow: 0 12px 30px -12px rgba(16, 16, 16, .28); z-index: 2; }
.mock-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--k); }
/* スマホ */
.mock-phone { width: min(270px, 74%); aspect-ratio: 9 / 18.5; border-radius: 38px; background: #101010; padding: 11px; box-shadow: 0 40px 70px -36px rgba(2, 43, 252, .45); }
.mock-screen { height: 100%; border-radius: 28px; background: #fff; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; }
.mock-prof { display: flex; align-items: center; gap: 12px; padding: 20px 16px 12px; }
.mock-ava { width: 44px; height: 44px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--blue), var(--mint), var(--coral), var(--yellow), var(--blue)); }
.mock-ava i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.mock-bars { display: grid; gap: 7px; flex: 1; }
.mock-bars i { display: block; height: 7px; border-radius: 4px; background: var(--mist); }
.mock-bars i:first-child { width: 70%; background: #e3e6ef; }
.mock-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mock-tabs span { height: 26px; position: relative; }
.mock-tabs span:first-child::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 2px; background: var(--ink); }
.mock-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-content: start; }
.mock-posts i { aspect-ratio: 1; background: var(--t); position: relative; }
.mock-posts i::after { content: ""; position: absolute; right: 7px; top: 7px; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent rgba(255, 255, 255, .95); }
/* ブラウザ・検索・地図 */
.mock-browser { width: min(420px, 92%); border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 70px -36px rgba(32, 229, 207, .6); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--mist); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dae4; }
.mock-bar span { flex: 1; height: 16px; margin-left: 10px; border-radius: 8px; background: #fff; }
.mock-page { display: grid; gap: 12px; padding: 18px; }
.mock-hero { position: relative; display: grid; gap: 8px; padding: 22px 18px; border-radius: 10px; background: var(--mist); }
.mock-line { display: block; height: 9px; border-radius: 5px; background: #d7dae4; }
.mock-line.w80 { width: 80%; } .mock-line.w60 { width: 60%; } .mock-line.w40 { width: 40%; }
.mock-line.light { background: var(--mist); }
.mock-btn { display: block; width: 84px; height: 22px; border-radius: 6px; background: var(--blue); margin-top: 4px; }
.mock-blocks { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 4px; }
.mock-blocks i { width: 14px; height: 14px; border-radius: 3px; background: var(--t); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-cards i { height: 52px; border-radius: 8px; background: var(--mist); }
.mock-search { position: absolute; left: 0; bottom: 18%; width: 210px; display: grid; gap: 7px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 16px 36px -14px rgba(16, 16, 16, .3); z-index: 1; }
.mock-q { display: block; height: 18px; border-radius: 9px; border: 1.5px solid var(--line); margin-bottom: 4px; }
.mock-map { position: absolute; right: 0; bottom: 6%; width: 150px; height: 110px; border-radius: 12px; z-index: 1; box-shadow: 0 16px 36px -14px rgba(16, 16, 16, .3);
  background: linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%), linear-gradient(0deg, transparent 58%, #fff 58% 64%, transparent 64%), #e7f6f3; }
.mock-pin { position: absolute; left: 50%; top: 40%; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--coral); transform: translate(-50%, -50%) rotate(-45deg); }
.mock-pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
/* チャット */
.mock-chat { width: min(420px, 100%); border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 70px -36px rgba(253, 117, 106, .55); }
.mock-chat-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13.5px; }
.mock-chat-top i { width: 10px; height: 10px; border-radius: 2px; background: var(--coral); }
.mock-msgs { display: grid; gap: 12px; padding: 18px 16px 20px; background: #fbfbfd; }
.mock-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.7; }
.mock-msg.me { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.mock-msg.ai { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mock-cal { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 10px 12px; border-radius: 10px; background: var(--mist); font-size: 12.5px; font-weight: 700; }
.mock-cal b { font-family: var(--f-display); font-size: 16px; color: var(--coral); }

/* 制作事例 */
.work { display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 28px); border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.work-head { display: flex; align-items: center; gap: 16px; }
.work-head img { width: 64px; height: 64px; flex: none; }
.work-tag { font-size: 12.5px; color: var(--sub); font-weight: 700; }
.work-title { font-size: 19px; font-weight: 800; }
.work-desc { font-size: 15px; color: var(--sub); line-height: 1.9; }
/* YouTube：押すまでは画像だけ */
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.yt-lite:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(16, 16, 16, .78); }
.yt-play::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* ご相談の流れ：4つの段階を線でつなぎ、各段階に小さな絵。番号は各色の文字だけ（四角は付けない） */
.flow-tl { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.flow-tl::before, .flow-tl::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 74px; height: 2px; }
.flow-tl::before { background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.flow-tl::after { background: linear-gradient(90deg, var(--blue), var(--mint), var(--coral), var(--yellow)); transform-origin: left; }
.flow-tl li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; }
.flow-pic { width: 148px; height: 148px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 22px 40px -26px var(--c); margin-bottom: 10px; }
.flow-no { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .04em; color: var(--c); }
.flow-title { font-size: 18px; font-weight: 800; color: var(--blue); }
.flow-desc { font-size: 14.5px; color: var(--sub); line-height: 1.85; max-width: 22em; }
.flow-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--mist); }
.flow-tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
/* 小さな絵 */
.pic-form { width: 72px; display: grid; gap: 6px; padding: 10px; border-radius: 8px; background: var(--mist); }
.pic-form i { display: block; height: 8px; border-radius: 4px; background: #d7dae4; }
.pic-form i:nth-child(2) { width: 70%; }
.pic-form b { display: block; height: 14px; border-radius: 4px; background: var(--blue); margin-top: 2px; }
/* 02：ノートパソコンでのオンライン相談。画面に2人の顔、下に通話のボタン、話している吹き出し */
.pic-call { position: relative; display: grid; justify-items: center; margin-top: 6px; }
.pic-screen { width: 92px; height: 62px; border-radius: 7px 7px 3px 3px; background: #101010; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 3px; }
.pic-tile { position: relative; border-radius: 3px; background: var(--bg); overflow: hidden; }
.pic-tile::before { content: ""; position: absolute; left: 50%; top: 26%; width: 12px; height: 12px; border-radius: 50%; background: var(--k); transform: translateX(-50%); }
.pic-tile::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 26px; height: 15px; border-radius: 13px 13px 0 0; background: var(--k); transform: translateX(-50%); }
.pic-ctrl { grid-column: 1 / -1; display: flex; justify-content: center; gap: 4px; padding: 1px 0 0; }
.pic-ctrl i { width: 6px; height: 6px; border-radius: 50%; background: #5b5f6d; }
.pic-ctrl i.end { width: 10px; border-radius: 3px; background: var(--coral); }
.pic-base { width: 112px; height: 7px; margin-top: 1px; border-radius: 0 0 6px 6px; background: linear-gradient(#cfd3de, #b9bdca); position: relative; }
.pic-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18px; height: 3px; border-radius: 0 0 3px 3px; background: #a6aab8; transform: translateX(-50%); }
.pic-bubble { position: absolute; left: -20px; top: -18px; display: flex; gap: 3px; padding: 7px 9px; border-radius: 10px 10px 10px 2px; background: var(--mint); box-shadow: 0 6px 12px -6px rgba(16, 16, 16, .3); }
.pic-bubble i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.anim .flow-tl.is-in .pic-bubble i { animation: typing 1.2s infinite; }
.pic-bubble i:nth-child(2) { animation-delay: .15s; } .pic-bubble i:nth-child(3) { animation-delay: .3s; }
.pic-doc { width: 66px; height: 84px; border-radius: 6px; background: #fff; border: 1.5px solid var(--line); padding: 10px 8px; display: grid; gap: 6px; align-content: start; position: relative; }
.pic-doc i { display: block; height: 6px; border-radius: 3px; background: #d7dae4; }
.pic-doc i:nth-child(odd) { width: 75%; }
.pic-doc b { position: absolute; right: -10px; bottom: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; color: #fff; font-size: 15px; }
.pic-chart { display: flex; align-items: end; gap: 6px; height: 64px; }
.pic-chart i { width: 14px; height: var(--h); border-radius: 3px 3px 0 0; background: var(--k); }
/* 動き：線が左から一定の速さで伸び、線が届くと絵・番号・文が出る */
.anim .flow-tl::after { transition: transform 2s linear .2s; }
.anim .flow-tl:not(.is-in)::after { transform: scaleX(0); }
.anim .flow-tl li > * { transition: opacity .5s ease, transform .55s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(.2s + var(--i) * .6s); }
.anim .flow-tl li > :not(.flow-pic) { transition-delay: calc(.35s + var(--i) * .6s); }
.anim .flow-tl:not(.is-in) li > .flow-pic { opacity: 0; transform: scale(.6); }
.anim .flow-tl:not(.is-in) li > :not(.flow-pic) { opacity: 0; transform: translateY(8px); }
.anim .flow-tl.is-in .pic-chart i { animation: chart-up .6s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(2.1s + var(--n, 0) * .1s); }
@keyframes chart-up { from { height: 0; } }
.anim .flow-tl.is-in .pic-bubble { animation: bubble-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1.2s both; }
@keyframes bubble-pop { from { transform: scale(0); } }

@media (max-width: 820px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-rev .svc-head { order: 0; }
  .mock { min-height: 360px; }
  .svc-bign { --bign-h: 72px; }
  .svc-flow li { font-size: 12.5px; }
  .svc-flow-no { width: 38px; height: 38px; font-size: 13px; }
  .svc-flow li::before { top: 18px; }
  .svc-wide .work { grid-template-columns: minmax(0, 1fr); }
  .flow-tl { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .flow-tl::before, .flow-tl::after { display: none; }
}

/* 公式LINE の QR コード（PCだけ。スマホはボタンからそのまま LINE が開く） */
.line-qr { display: inline-flex; align-items: center; gap: 14px; margin-top: 6px; padding: 10px 16px 10px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--sub); font-size: 12.5px; line-height: 1.6; text-decoration: none; text-align: left; transition: border-color .2s; }
.line-qr:hover { border-color: var(--blue); }
.line-qr img { width: 84px; height: 84px; display: block; image-rendering: pixelated; }
.end .line-qr { justify-self: center; }
@media (max-width: 820px), (hover: none) { .line-qr { display: none; } }

/* =====================================================================
   ページ内の動き（2026/11/9）。すべて html.anim が付いているときだけ（JSが動き、動きを減らす設定でないとき）。
   JSが動かなければ、最初から全部見えている。
   ===================================================================== */
/* 1. 見出しの線が引かれる：線が左から伸び → 英語が現れ → ミントのピリオドがぽんと出る */
.anim .line-label .line-label-bar { transform-origin: left; transition: transform .9s var(--ease); }
.anim .line-label .line-label-text { transition: opacity .6s ease .45s, transform .6s var(--ease) .45s, clip-path .7s var(--ease) .45s; }
.anim .line-label .dot { display: inline-block; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) 1s, opacity .2s 1s; }
.anim .line-label:not(.is-in) .line-label-bar { transform: scaleX(0); }
.anim .line-label:not(.is-in) .line-label-text { opacity: 0; transform: translateX(-12px); clip-path: inset(0 100% 0 0); }
.anim .line-label:not(.is-in) .dot { transform: scale(0); opacity: 0; }
.p-hero-name .p-hero-title { transition: opacity .6s ease .7s; }
.anim .line-label:not(.is-in) .p-hero-title { opacity: 0; }
/* 2. 文章や要素が少し下からふわっと出る（兄弟の中で 0.08 秒ずつずらす） */
.anim .rv { transition: opacity .7s ease var(--rv-d, 0s), transform .8s var(--ease) var(--rv-d, 0s); }
.anim .rv:not(.is-in) { opacity: 0; transform: translateY(16px); }
/* 3. Free Check の写真：小さな四角が並んで消えると写真が見える */
.offer-photo { position: relative; }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--mc, 10), 1fr); grid-auto-rows: 1fr; pointer-events: none; }
.mosaic i { background: var(--c); }
.mosaic.is-go i { animation: mosaic-out .5s var(--ease) forwards; animation-delay: var(--d); }
@keyframes mosaic-out { to { opacity: 0; transform: scale(.2); } }
/* 5. 読み進み具合（確認用）：ヘッダーの下に4色の細い線 */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--mint) 25% 50%, var(--coral) 50% 75%, var(--yellow) 75%); }

/* ---------- サービスページの動き ---------- */
/* 大きな番号：左から描かれていく */
/* 大きな番号：各輪郭のいちばん上から、左右に分かれて一定の速さで描かれる。2桁目は少し遅れて */
.anim .svc-bign .bign-a { stroke-dasharray: 0 1; }
.anim .svc-bign .bign-b { stroke-dasharray: 0 1 0 0; }
.anim .svc.is-in .svc-bign .bign-a { animation: bign-a 2.4s linear both; animation-delay: calc(.2s + var(--dd, 0s)); }
.anim .svc.is-in .svc-bign .bign-b { animation: bign-b 2.4s linear both; animation-delay: calc(.2s + var(--dd, 0s)); }
@keyframes bign-a { from { stroke-dasharray: 0 1; } to { stroke-dasharray: .501 1; } }
@keyframes bign-b { from { stroke-dasharray: 0 1 0 0; } to { stroke-dasharray: 0 .499 .501 0; } }

/* 作業の流れ：01→05 が順に点き、点線が伸びる */
.anim .svc-flow-no { transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; transition-delay: calc(.35s + var(--k) * .22s); }
.anim .svc-flow li::before { transform-origin: left; transition: transform .3s ease; transition-delay: calc(.5s + var(--k) * .22s); }
.anim .svc:not(.is-in) .svc-flow-no { transform: scale(.4); opacity: 0; }
.anim .svc:not(.is-in) .svc-flow li::before { transform: scaleX(0); }
/* スマホの見本：投稿の四角が上から1枚ずつ積み上がる。周りのラベルはゆっくり浮き沈み */
.anim .mock-posts i { transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; transition-delay: calc(.3s + var(--i) * .07s); }
.anim .svc:not(.is-in) .mock-posts i { transform: translateY(-40px); opacity: 0; }
.mock-tag { transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1); transition-delay: var(--td, .8s); }
.anim .svc:not(.is-in) .mock-tag { opacity: 0; transform: scale(.8) translateY(8px); }
.anim .svc.is-in .mock-tag { animation: tag-bob 4.5s ease-in-out infinite; animation-delay: calc(var(--td, .8s) + .6s); }
@keyframes tag-bob { 50% { translate: 0 -6px; } }
/* ブラウザの見本：画面 → 検索結果 → 地図（ピンが落ちて弾む）の順に */
.mock-browser, .mock-search, .mock-map { transition: opacity .5s ease, transform .6s var(--ease); }
.mock-search { transition-delay: .5s; } .mock-map { transition-delay: .8s; }
.anim .svc:not(.is-in) .mock-browser { opacity: 0; transform: translateY(20px); }
.anim .svc:not(.is-in) .mock-search { opacity: 0; transform: translateX(-20px); }
.anim .svc:not(.is-in) .mock-map { opacity: 0; transform: translateX(20px); }
.anim .svc.is-in .mock-pin { animation: pin-drop .7s cubic-bezier(.3, 1.4, .5, 1) 1.2s both; }
@keyframes pin-drop { 0% { opacity: 0; translate: 0 -40px; } 60% { opacity: 1; } 100% { translate: 0 0; } }
/* チャットの見本：「入力中…」のあと、吹き出しが1つずつ届く（JS が順に is-shown を付ける） */
.anim .mock-msg:not(.is-shown), .anim .mock-cal:not(.is-shown) { display: none; }
.mock-msg.is-shown, .mock-cal.is-shown { animation: msg-in .4s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.mock-typing { justify-self: start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.mock-typing.me { justify-self: end; background: var(--blue); border-color: var(--blue); }
.mock-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b7bac6; animation: typing 1s infinite; }
.mock-typing.me i { background: #c9d2ff; }
.mock-typing i:nth-child(2) { animation-delay: .15s; } .mock-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .5; } }

/* ---------- scroll squares ---------- */
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

