/* =========================================================
   漫画LP（柏木 啓蔵）style.css
   採用漫画LP（2026_09_28_けーぞーさんの漫画チラシ・LP/LP）の色・書体・部品を写して削ったもの
   世界観: 白いWebキャンバス / 漫画の黒線 / 濃紺 / 希少な黄色
   ========================================================= */

:root {
  color-scheme: light;
  --canvas: #F7F6F2;
  --paper: #FFFFFF;
  --paper-2: #EEECE6;
  --ink: #0F1A30;
  --ink-2: #283246;
  --muted: #5A6172;
  --rule: #D8D5CC;
  --ghost: #B4B0A5;
  --signal: #FFD400;
  --focus: #1A56DB;

  --line: 3px;
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1240px;
  --header-h: 60px;

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --fs-body: 1rem;
  --fs-h2: clamp(1.625rem, 1.05rem + 2.3vw, 2.75rem);
  --fs-lead: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fw-heavy: 900;             /* 極太。スマホ幅では700（900のフォントはPC幅だけで読み込むため） */
}

@media (max-width: 767px) {
  :root { --line: 2.5px; --header-h: 52px; }
}
@media (max-width: 899px) {
  :root { --fw-heavy: 700; }   /* FVの見出し（.fv__title）だけは900のまま。必要な文字だけの900を読み込む */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: .02em;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p, li, dd, summary { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
p, ul, ol, dl, dd, dt, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-feature-settings: "palt"; letter-spacing: .01em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.nb { display: inline-block; }
@media (max-width: 359px) { .nb { display: inline; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; color: var(--ink);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }

.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.45; }
.h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 700; line-height: 1.5; }
.note { font-size: .8125rem; line-height: 1.75; color: var(--muted); }

.marker {
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% .34em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .04em;
}

/* イラスト（透過。枠なしで背景に置く） */
.illust { display: block; aspect-ratio: 1 / 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border: 2px solid var(--ink); border-radius: 0;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--line { background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn__arrow {
  width: 9px; height: 9px; margin-top: -4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
}
.btn--xl { min-height: 72px; padding: 12px 40px; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); flex-direction: column; gap: 2px; }
.btn__sub { font-size: .75rem; font-weight: 400; letter-spacing: .06em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgb(247 246 242 / .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header[data-scrolled] { border-bottom-color: var(--rule); }
.site-header__inner {
  height: 100%; width: min(1360px, 100% - var(--gutter) * 2); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__name { font-weight: var(--fw-heavy); font-size: 1.125rem; letter-spacing: .08em; white-space: nowrap; }
.brand__by { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.gnav { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); }
.gnav ul { display: flex; gap: clamp(4px, 1.6vw, 24px); }
.gnav a { text-decoration: none; }
.gnav ul a { display: block; padding: 8px 6px; font-size: .9375rem; font-weight: 700; color: var(--ink); }
.gnav ul a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.gnav__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .9375rem; white-space: nowrap;
}
.gnav__cta:hover { background: #22304F; }
.gnav__wide { display: none !important; }
@media (min-width: 1024px) { .gnav__wide { display: flex !important; } }
@media (max-width: 520px) { .brand__by { display: none; } }

/* =========================================================
   1 FV（PC：絵の左側に文字を重ねる／スマホ：絵の上部に見出し、下に本文）
   ========================================================= */
.fv { position: relative; }
.fv__img { width: 100%; aspect-ratio: 4 / 5; max-height: 72svh; object-fit: cover; object-position: 50% 50%; border-bottom: var(--line) solid var(--ink); }
.fv__text { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.fv__title {
  position: absolute; top: clamp(20px, 6vw, 40px); left: var(--gutter); right: var(--gutter);
  font-size: clamp(1.625rem, 1rem + 3.4vw, 2.25rem); font-weight: 900; line-height: 1.5;
}
.fv__line { display: block; }
.fv__body { padding: 28px 0 56px; }
.fv__lead { font-size: var(--fs-lead); font-weight: 700; color: var(--ink); }
.fv__actions { display: flex; flex-wrap: wrap; gap: 16px 20px; margin: 24px 0 14px; }
.fv__actions .btn { flex: 1 1 240px; }

@media (min-width: 900px) {
  .fv__img { aspect-ratio: 16 / 9; min-height: 520px; max-height: calc(100svh - var(--header-h)); }
  .fv__text {
    position: absolute; inset: 0; width: auto; margin: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 0 40px var(--gutter); max-width: max(42%, 520px);
  }
  .fv__title { position: static; font-size: clamp(2rem, 1rem + 2.2vw, 3.25rem); line-height: 1.45; }
  .fv__body { padding: 28px 0 0; }
  .fv__actions .btn { flex: 0 0 auto; }
}

/* =========================================================
   2 見本を読む（縦スクロールでページを上から順に並べる）
   スマホは画面幅いっぱい、PCは中央の1列（最大720px）
   ========================================================= */
.sample { padding: clamp(72px, 9vw, 128px) 0 clamp(72px, 9vw, 128px); background: var(--paper); border-bottom: 1px solid var(--rule); }
.sample__head { max-width: 720px; }
.sample__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); font-weight: var(--fw-heavy); }
.sample__lead { margin-top: 20px; font-size: var(--fs-lead); }
.sample__note { margin-top: 16px; }
.sample__skip { margin-top: 12px; font-size: .875rem; }
.sample__skip a { display: inline-block; padding: 12px 0; color: var(--muted); text-underline-offset: 4px; }
.manga { margin: 32px auto 0; width: min(720px, 100%); display: grid; gap: 0; }
.manga__page img { width: 100%; }
.manga__link { position: relative; display: block; color: inherit; text-decoration: none; }

/* スマホ幅だけ：タップで拡大の案内（表紙）と、拡大できる印（本文ページ） */
.zoom-hint, .zoom-mark { display: none; }
@media (max-width: 899px) {
  .zoom-hint {
    position: absolute; right: 10px; bottom: 10px;
    display: flex; align-items: flex-end; gap: 2px;
    padding: 6px 12px 6px 4px; border-radius: 999px;
    background: rgb(15 26 48 / .82); color: #fff;
    font-size: .875rem; font-weight: 700; line-height: 1.2; letter-spacing: .04em;
  }
  .zoom-hint img { width: 56px; height: auto; margin-top: -32px; }
  .zoom-hint__text { padding-bottom: 6px; white-space: nowrap; }
  /* 表紙が画面に入ったとき：いったん表紙の中央に大きく出し、右下へ縮みながら戻る（main.js が --hx / --hy を計算） */
  .zoom-hint { transform-origin: center; transition: transform .7s var(--ease); }
  .zoom-hint.is-intro { transform: translate(var(--hx, 0), var(--hy, 0)) scale(1.9); transition: none; }
  .zoom-mark {
    position: absolute; right: 10px; bottom: 10px; display: block;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgb(15 26 48 / .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 22px no-repeat;
  }
}
@media (min-width: 900px) {
  .manga__link { cursor: default; }
}
.manga__page + .manga__page { border-top: 1px solid var(--rule); }
@media (min-width: 768px) {
  .manga { gap: 4px; }
  .manga__page + .manga__page { border-top: 0; }
}
.sample__after { max-width: 720px; margin-top: 40px; display: grid; justify-items: center; gap: 20px; text-align: center; }
.sample__after-text { font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); font-weight: var(--fw-heavy); color: var(--ink); line-height: 1.6; }
.sample__after .btn { width: min(100%, 420px); }

/* =========================================================
   3 この漫画ができるまで
   ========================================================= */
.making { padding: clamp(80px, 10vw, 144px) 0; }
.making__steps { display: grid; gap: 40px; margin-top: 40px; counter-reset: step; }
.making__step .illust { width: min(280px, 72vw); margin-bottom: 20px; }
.making__name { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; font-weight: var(--fw-heavy); }
.making__no {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 2px solid var(--ink); background: var(--signal); font-size: .9375rem; font-variant-numeric: tabular-nums;
}
.making__step p { margin-top: 8px; max-width: 24em; }
.making__close {
  margin-top: clamp(48px, 6vw, 72px); padding: 4px 0 4px 24px; border-left: 4px solid var(--ink);
  font-size: clamp(1.125rem, 1rem + .7vw, 1.4375rem); font-weight: 700; line-height: 1.8; color: var(--ink);
}
@media (min-width: 900px) {
  .making__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .making__step .illust { width: 100%; }
}

/* =========================================================
   4 相談できること・事例
   ========================================================= */
.services { padding: clamp(80px, 10vw, 144px) 0; background: var(--paper); border-block: 1px solid var(--rule); }
.services__lead { margin-top: 20px; font-size: var(--fs-lead); max-width: 40em; }
.cards { display: grid; gap: 16px; margin-top: 40px; }
.card { padding: 24px; background: var(--canvas); border-top: var(--line) solid var(--ink); }
.card__name { font-size: 1.1875rem; font-weight: var(--fw-heavy); line-height: 1.5; }
.card p { margin-top: 8px; font-size: .9375rem; line-height: 1.85; }
.card--key { background: var(--ink); color: #D9DEE8; border-top-color: var(--signal); }
.card--key .card__name { color: #fff; font-size: 1.375rem; }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--key { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card--key { grid-column: 1 / -1; padding: 32px 40px; }
  .card--key p { font-size: 1.0625rem; max-width: 46em; }
}

.cases { margin-top: clamp(64px, 8vw, 104px); }
.cases__lead { margin-top: 12px; max-width: 44em; }
.case { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.case__title { font-weight: 700; color: var(--ink); font-size: 1.0625rem; line-height: 1.6; }
.case__change { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.case__before { color: var(--muted); }
.case__arrow { color: var(--ink); font-weight: 700; }
.case__after { font-weight: var(--fw-heavy); color: var(--ink); }
.case--featured {
  margin-top: 28px; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px);
  background: var(--ink); border: 0;
}
.case--featured .case__title { color: #fff; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }
.case--featured .case__change { margin-top: 16px; gap: 8px 20px; }
.case--featured .case__before { color: #C9D0DD; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); font-weight: 700; }
.case--featured .case__arrow { color: #fff; }
.case--featured .case__after { color: var(--signal); font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); line-height: 1.2; }
.cases__note { margin-top: 20px; }

/* =========================================================
   5 担当者
   ========================================================= */
.profile { padding: clamp(80px, 10vw, 144px) 0; }
.profile__grid { display: grid; gap: 40px; }
.profile__photo { width: min(360px, 76%); border-bottom: var(--line) solid var(--ink); background: var(--paper-2); }
.profile__title { font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.375rem); }
.profile__name { margin: 20px 0 16px; font-size: 1.25rem; font-weight: var(--fw-heavy); color: var(--ink); letter-spacing: .12em; }
.profile__name span { display: block; font-size: .875rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.profile__text > p:not(.kicker):not(.profile__name) { max-width: 38em; }
.profile__text > p + p { margin-top: .8em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; max-width: 38em; }
.stats div { padding: 14px 12px; background: var(--paper); border-top: 2px solid var(--ink); }
.stats dt { font-size: .75rem; font-weight: 700; color: var(--muted); line-height: 1.5; }
.stats dd { font-size: .875rem; color: var(--ink); font-weight: 700; }
.stats dd { line-height: 1.4; }
.stats b { font-size: clamp(1.25rem, .9rem + 1.2vw, 1.75rem); font-weight: var(--fw-heavy); margin-right: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 1024px) {
  .profile__grid { grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: 72px; align-items: start; }
  .profile__photo { width: 100%; position: sticky; top: calc(var(--header-h) + 40px); }
}

/* =========================================================
   6 FAQ
   ========================================================= */
.faq { padding: clamp(80px, 9vw, 128px) 0; background: var(--paper); border-top: 1px solid var(--rule); }
.faq__list { margin-top: 28px; border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 52px 20px 0; min-height: 64px;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem); font-weight: 700; color: var(--ink); line-height: 1.6;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transition: rotate .2s var(--ease);
}
.qa summary::after { rotate: 90deg; }
.qa[open] summary::after { rotate: 0deg; }
.qa summary:hover { text-decoration: underline; text-underline-offset: 5px; }
.qa__a { padding: 0 52px 24px 0; font-size: .9375rem; }
@media (min-width: 1024px) {
  .faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; }
  .faq__list { margin-top: 0; }
}

/* =========================================================
   7 相談の案内
   ========================================================= */
.cta__panel { --focus: var(--signal); background: var(--ink); color: #D9DEE8; }
.cta__inner {
  width: min(1040px, 100% - var(--gutter) * 2); margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) 0;
  display: grid; gap: 32px; justify-items: center; text-align: center;
}
.cta__illust { width: min(240px, 60vw); }
.cta__keizo { width: 100%; height: auto; }
.cta__label {
  display: inline-flex; padding: 4px 16px; background: var(--signal); color: var(--ink);
  font-weight: var(--fw-heavy); font-size: clamp(.9375rem, .9rem + .3vw, 1.125rem);
}
.cta__title { margin-top: 20px; color: #fff; font-size: clamp(1.875rem, 1rem + 4vw, 3.5rem); font-weight: var(--fw-heavy); line-height: 1.35; }
.cta__text { margin: 20px auto 0; max-width: 34em; font-size: var(--fs-lead); }
.cta__text + .cta__text { margin-top: 8px; }
.cta__body .btn--xl { margin-top: 32px; width: min(100%, 480px); box-shadow: 5px 5px 0 #000; border-color: var(--signal); }
.cta__body .btn--xl:hover { box-shadow: 7px 7px 0 #000; }
.cta__small { margin: 12px auto 0; max-width: 38em; font-size: .875rem; color: #C9D0DD; }
.cta__where { color: #fff; font-weight: 700; }
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 48px; justify-items: start; text-align: left; align-items: center; }
  .cta__illust { width: 100%; }
  .cta__text, .cta__small { margin-inline: 0; }
}

/* ---------- footer ---------- */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }
.site-footer__inner { display: grid; gap: 6px; }
.site-footer__name { font-weight: 700; color: var(--ink); }
.site-footer__ga { margin-block: 6px; max-width: 48em; }
.site-footer__ga a { text-underline-offset: 3px; }

/* =========================================================
   漫画の拡大表示（スマホ幅）
   ========================================================= */
body:has(dialog[open]) { overflow: hidden; }
.zoom {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; background: #111; color: #fff;
  display: none; flex-direction: column;
}
.zoom[open] { display: flex; }
.zoom::backdrop { background: #111; }
.zoom__bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  background: var(--ink); border-bottom: 1px solid #2E3A56;
}
.zoom__title { flex: 1; font-size: .875rem; font-weight: 700; }
.zoom__btn {
  min-height: 44px; padding: 0 12px; border: 1px solid #4A5672; background: transparent; color: #fff;
  font-size: .8125rem; font-weight: 700; cursor: pointer;
}
.zoom__btn:disabled { opacity: .35; cursor: default; }
.zoom__btn--close { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.zoom :focus-visible { outline-color: var(--signal); }
.zoom__scroll { flex: 1; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.zoom__img { display: block; width: 200%; max-width: none; height: auto; }
.zoom__help { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); font-size: .75rem; color: #C9D0DD; background: var(--ink); }

/* =========================================================
   Motion
   .motion は JS が動き、視差効果を減らす設定がない時だけ付く。
   付かない場合、すべて完成状態で表示される。
   ========================================================= */
@keyframes lineRise {
  from { clip-path: inset(0 0 100% 0); transform: translateY(.45em); }
  to   { clip-path: inset(-20% -5% -20% -5%); transform: none; }
}
@keyframes markerIn { from { background-size: 0% .34em; } to { background-size: 100% .34em; } }

.motion .fv__line1 { animation: lineRise .62s var(--ease) both; }
.motion .fv__line2 { animation: lineRise .62s var(--ease) .1s both; }
.motion .fv__line2 .marker { animation: markerIn .45s var(--ease) .55s both; }

.motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
