/* DEMOデザイン事務所（見本）
   考え：二色刷り（青と蛍光ピンク）の印刷物のように作る。ピンクの版は「乗算」で重ね、重なりは濃い紫になる。
   角は丸めない（紙の断ち）。強い動きは最初の画面の1か所（版ずれと網点）に集め、ほかは指を乗せたときだけ動く。
   色：青 #2441A6（文字と面）・ピンク #FF4FA7（版・図形だけ。文字には使わない）・薄青 #EEF0FB・薄ピンク #FFE3F1・紙 #FFFFFF
   字体：見出しは太いゴシック（欧文は Avenir Next）、本文はゴシック。どちらも端末の字体（外から読み込まない）。 */

:root {
  --paper: #FFFFFF;
  --blue: #2441A6;
  --blue-d: #1A3185;
  --pink: #FF4FA7;
  --blue-l: #EEF0FB;
  --pink-l: #FFE3F1;
  --display: "Avenir Next", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--blue); font-family: var(--sans); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
img, svg, canvas { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--paper); color: var(--blue); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 8px; }
.demo-band { margin: 0; padding: 6px 16px; background: var(--pink-l); color: var(--blue); font-size: 13px; line-height: 1.5; text-align: center; font-weight: 700; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .wrap { padding-left: 40px; padding-right: 40px; } }
.narrow { max-width: 820px; }

/* ---------------------------------------------------------------- ヘッダー */
.hd { position: relative; border-bottom: 3px solid var(--blue); background: var(--paper); z-index: 20; }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.mark { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--blue); text-decoration: none; }
.mark-sq { position: relative; width: 30px; height: 30px; flex: none; }
.mark-sq::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--blue); }
.mark-sq::after { content: ""; position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; background: var(--pink); mix-blend-mode: multiply; }
.mark-t { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: .02em; }
.mark-t span { font-size: 15px; margin-left: 6px; letter-spacing: .04em; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-weight: 800; font-size: 15px; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--pink); }
.toc summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 72px; padding: 0 18px; border: 3px solid var(--blue); font-weight: 800; cursor: pointer; white-space: nowrap; }
.toc summary::-webkit-details-marker { display: none; }
.toc[open] summary { background: var(--blue); color: #FFFFFF; }
.toc nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px solid var(--blue); padding: 4px 16px 20px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 12px; min-height: 60px; border-bottom: 2px solid var(--pink-l); font-family: var(--display); font-weight: 800; font-size: 26px; text-decoration: none; }
.toc a[aria-current="page"]::before { content: ""; width: 14px; height: 14px; background: var(--pink); flex: none; }
@media (min-width: 1000px) { .nav { display: block; } .toc { display: none; } }

/* ---------------------------------------------------------------- ボタン（指を乗せるとピンクの版がずれて見える） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 8px 28px; border: 3px solid var(--blue);
  font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.3; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.btn-main { background: var(--blue); color: #FFFFFF; }
.btn-line { background: var(--paper); color: var(--blue); }
.btn-white { background: var(--paper); color: var(--blue); border-color: var(--paper); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--pink); }
.btn-wide { width: 100%; }
.acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------------------------------------------------------------- 最初の画面 */
.hero { --mx: .06em; --my: .04em; padding: 28px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .32em; font-family: var(--display); font-weight: 800; font-size: clamp(58px, 15vw, 128px); line-height: 1.04; letter-spacing: -.01em; }
.words li { position: relative; }
.w-b { position: relative; }
.w-p { position: absolute; left: 0; top: 0; color: var(--pink); mix-blend-mode: multiply; transform: translate(var(--mx), var(--my)); transition: transform .3s ease-out; pointer-events: none; }
.hero-h { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .04em; margin: 28px 0 8px; line-height: 1.4; }
.hero-lead { margin: 0; max-width: 32em; }
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: center; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reg { position: absolute; width: 30px; height: 30px; border: 2px solid var(--blue); border-radius: 50%; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--blue); }
.reg::before { left: 50%; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; }
.reg::after { top: 50%; left: -8px; right: -8px; height: 2px; margin-top: -1px; }
.reg-1 { left: 10px; top: 10px; }
.reg-2 { right: 10px; bottom: 10px; }
@media (min-width: 1000px) {
  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; }
  .hero-h { font-size: 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .w-p { animation: reg-in 1.3s cubic-bezier(.2, .8, .2, 1) backwards; }
  .words li:nth-child(2) .w-p { animation-delay: .12s; }
  .words li:nth-child(3) .w-p { animation-delay: .24s; }
  .words li:nth-child(4) .w-p { animation-delay: .36s; }
  @keyframes reg-in { from { transform: translate(.38em, .24em); opacity: 0; } 40% { opacity: 1; } }
}

/* ---------------------------------------------------------------- 段 */
.sec { padding: 64px 0; }
.sec-blue { background: var(--blue); color: #FFFFFF; }
.sec-blue a { color: #FFFFFF; }
.sec-pink { background: var(--pink-l); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 60px); line-height: 1.1; letter-spacing: .01em; margin: 0 0 32px; }
.h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0 0 10px; line-height: 1.4; }
.lead-s { margin: -16px 0 28px; }
.nb { display: inline-block; white-space: nowrap; }
.sec-more { margin: 20px 0 0; }
.sec-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.small { font-size: 14px; }
.two { display: grid; gap: 32px; }
@media (min-width: 900px) { .two { grid-template-columns: 5fr 7fr; gap: 64px; } .sec { padding: 96px 0; } }

/* できること（行ごと。図形は指を乗せると回る） */
.svcs { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--blue); }
.svc { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 24px 0; border-bottom: 3px solid var(--blue); text-decoration: none; color: var(--blue); }
.svc-h { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 54px); line-height: 1.15; }
.svc-d { display: block; margin-top: 8px; max-width: 36em; font-size: 16px; }
.svc-sh { width: 64px; height: 64px; transition: transform .45s cubic-bezier(.2, .8, .2, 1); isolation: isolate; }
.svc:hover .svc-h, .svc:focus-visible .svc-h { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.svc:hover .svc-sh, .svc:focus-visible .svc-sh { transform: rotate(-14deg) scale(1.12); }
@media (min-width: 768px) { .svc { padding: 32px 0; gap: 32px; } .svc-sh { width: 108px; height: 108px; } }
.sp { fill: var(--pink); mix-blend-mode: multiply; }
.sp-l { fill: var(--pink-l); }
.sb { fill: var(--blue); }
.sb-l { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.pw { fill: var(--paper); }
.pt { font-family: var(--display); font-weight: 800; fill: var(--blue); }
.pt-l { font-size: 44px; letter-spacing: .02em; }
.pt-m { font-size: 26px; }
.pt-s { font-size: 16px; letter-spacing: .18em; }
.pt-w { fill: #FFFFFF; }

/* 進め方（順番があるので番号を付ける） */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { border-top: 3px solid #FFFFFF; padding-top: 14px; }
.st-n { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--pink-l); }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: 21px; margin: 10px 0 4px; line-height: 1.4; }
.steps p { margin: 0; font-size: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px 48px; } }

/* 作例（架空） */
.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
@media (min-width: 900px) { .posters { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.poster { margin: 0; }
.poster svg { display: block; width: 100%; height: auto; border: 3px solid var(--blue); isolation: isolate; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.poster:hover svg { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: 8px 8px 0 var(--pink); }
.poster figcaption { font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* 料金の目安 */
.fee { width: 100%; border-collapse: collapse; }
.fee th, .fee td { padding: 14px 0; border-bottom: 2px solid var(--blue); vertical-align: top; text-align: left; }
.fee th { font-weight: 700; padding-right: 16px; }
.fee td { text-align: right; font-family: var(--display); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 相談への案内（トンボの付いた青い面） */
.cta { padding: 40px 0 88px; }
.crop { position: relative; margin: 20px 4px; }
.crop-w { background: var(--blue); color: #FFFFFF; padding: 48px 24px; text-align: center; }
.crop-w p { margin: 12px auto 24px; max-width: 32em; }
.cta-h { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.25; margin: 0; }
.cm { position: absolute; width: 14px; height: 14px; }
.cm-tl { left: -18px; top: -18px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.cm-tr { right: -18px; top: -18px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.cm-bl { left: -18px; bottom: -18px; border-right: 2px solid var(--blue); border-top: 2px solid var(--blue); }
.cm-br { right: -18px; bottom: -18px; border-left: 2px solid var(--blue); border-top: 2px solid var(--blue); }
.crop-w .btn-white:hover { box-shadow: 6px 6px 0 var(--pink); }
.crop-w :focus-visible { outline-color: #FFFFFF; }
.sec-blue :focus-visible { outline-color: #FFFFFF; }
@media (min-width: 768px) { .crop { margin: 28px 8px; } .crop-w { padding: 72px 40px; } .cm { width: 22px; height: 22px; } .cm-tl, .cm-bl { left: -28px; } .cm-tr, .cm-br { right: -28px; } .cm-tl, .cm-tr { top: -28px; } .cm-bl, .cm-br { bottom: -28px; } }

/* ページの見出し（版がずれた大きな字） */
.ph { padding: 16px 0 48px; border-bottom: 3px solid var(--blue); }
.crumb { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.crumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.ph-h { position: relative; display: inline-block; margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 9vw, 92px); line-height: 1.1; letter-spacing: -.01em; }
.ph-b { position: relative; }
.ph-p { position: absolute; left: 0; top: 0; color: var(--pink); mix-blend-mode: multiply; transform: translate(.05em, .035em); pointer-events: none; }
.ph-lead { margin: 20px 0 0; max-width: 38em; }

/* できること（詳しく） */
.sd { padding: 40px 0; border-bottom: 3px solid var(--blue); scroll-margin-top: 16px; }
.sd:first-child { padding-top: 0; }
.sd-head { display: flex; align-items: center; gap: 16px; }
.sd-head .svc-sh { width: 56px; height: 56px; flex: none; }
.sd-h { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 48px); margin: 0; line-height: 1.2; }
.sd-lead { margin: 14px 0 24px; max-width: 40em; }
.sd-cols { display: grid; gap: 28px; }
@media (min-width: 900px) { .sd-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .9em; width: 12px; height: 12px; background: var(--pink); }
.note { margin-top: 40px; padding: 24px; background: var(--blue-l); }
.note p { margin: 0; }

/* 事務所について */
.ways { display: grid; gap: 28px; }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.way { border-top: 8px solid var(--pink); padding-top: 16px; }
.way h3 { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 0 0 8px; line-height: 1.35; }
.way p { margin: 0; }
.facts { margin: 0; max-width: 860px; }
.facts > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 2px solid var(--blue); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
@media (min-width: 768px) { .facts > div { grid-template-columns: 9em 1fr; } }

/* アクセス */
.acc { display: grid; gap: 32px; }
@media (min-width: 900px) { .acc { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }
.acc .btn-wide { margin-top: 16px; }
.map { margin: 0 0 4px; }
.map svg { display: block; width: 100%; height: auto; border: 3px solid var(--blue); isolation: isolate; }
.map figcaption { font-size: 14px; margin-top: 6px; }
.m-road { stroke: var(--blue-l); stroke-width: 30; fill: none; }
.m-route { stroke: var(--pink); stroke-width: 6; stroke-dasharray: 2 12; stroke-linecap: round; fill: none; mix-blend-mode: multiply; }
.map .pt-s { font-size: 19px; letter-spacing: .04em; }
.map .pt-m { font-size: 26px; }

/* よくある質問 */
.faq { margin: 0; display: grid; gap: 0 56px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } }
.qa { padding: 24px 0 28px; border-top: 3px solid var(--blue); }
.qa dt { display: flex; gap: 16px; align-items: flex-start; font-weight: 800; font-size: 19px; line-height: 1.55; }
.qa-q { flex: none; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: .9; text-shadow: .08em .06em 0 var(--pink); }
.qa dd { margin: 12px 0 0 46px; }

/* お問合せ（短い文つき） */
.form { display: grid; }
.field { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.field > label, .field > legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 800; margin-bottom: 8px; padding: 0; }
.opt { font-size: 13px; font-weight: 700; padding: 0 8px; background: var(--pink-l); line-height: 1.8; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; min-height: 56px; padding: 0 14px; font: inherit; color: var(--blue); background: var(--paper); border: 3px solid var(--blue); border-radius: 0; }
.field textarea { padding: 12px 14px; min-height: 160px; resize: vertical; }
.warn { margin: 0 0 10px; padding: 10px 14px; font-size: 15px; background: var(--pink-l); border-left: 6px solid var(--pink); }
.count { margin: 6px 0 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.choices { display: grid; gap: 8px; }
@media (min-width: 600px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border: 3px solid var(--blue-l); cursor: pointer; font-weight: 700; line-height: 1.5; }
.choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-l); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

/* フッター（大きな DEMO の字の版ずれ） */
.ft { background: var(--blue); color: #FFFFFF; padding: 56px 0 24px; overflow: hidden; }
.ft a { color: #FFFFFF; }
.ft :focus-visible { outline-color: #FFFFFF; }
.ft-big { position: relative; margin: 0 0 40px; font-family: var(--display); font-weight: 800; font-size: clamp(96px, 27vw, 340px); line-height: .8; letter-spacing: -.03em; }
.ft-b { position: relative; color: #FFFFFF; }
.ft-p { position: absolute; left: 0; top: 0; color: var(--pink); mix-blend-mode: multiply; transform: translate(.04em, .03em); }
.ft-in { display: grid; gap: 28px; }
@media (min-width: 900px) { .ft-in { grid-template-columns: 2fr 1fr; gap: 64px; } }
.ft-dl { margin: 0; font-size: 15px; }
.ft-dl > div { display: grid; grid-template-columns: 4em 1fr; gap: 10px; padding: 4px 0; }
.ft-dl dt { font-weight: 800; }
.ft-dl dd { margin: 0; }
.ft-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ft-nav a { display: flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: none; }
.ft-nav a:hover { text-decoration: underline; }
.ft-small { margin: 32px 0 0; padding-top: 16px; border-top: 2px solid #4A63BF; font-size: 13px; }

/* 「見本のため〜」の小窓 */
.pop { border: 3px solid var(--blue); border-radius: 0; padding: 28px 24px 24px; width: min(90vw, 400px); background: var(--paper); color: var(--blue); box-shadow: 10px 10px 0 var(--pink); }
.pop::backdrop { background: rgba(36, 65, 166, .35); }
.pop-t { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0 0 8px; line-height: 1.45; }
.pop-s { margin: 0; font-size: 15px; }
.pop-close { margin-top: 18px; width: 100%; min-height: 52px; border: 3px solid var(--blue); background: var(--blue); color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 16px; cursor: pointer; }
.pop-close:focus-visible { outline-color: var(--pink); }

@media (prefers-reduced-motion: reduce) {
  .btn, .svc-sh, .poster svg, .w-p { transition: none; }
  .btn:hover { transform: none; }
  .poster:hover svg { transform: none; }
}
