/* 漫画メーカー LP v2 — 劇画エディトリアル（生成り／黒ベタ／赤1アクセント＋網点トーン） */
:root {
  --cream: #EFEAE0;
  --paper: #F7F3EB;       /* コマ（パネル）の地。生成りより一段明るい紙 */
  --ink: #15120E;         /* ベタ・線・本文。やや濃いめの黒で劇画感 */
  --accent: #E5484D;
  --accent-ink: #C12E33;
  --muted: #6B665C;
  --line: #DED8CC;
  --on-ink: #F4EFE6;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); }
a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* 網点トーン（ユーティリティ）。劇画の“地”として薄く敷く。盛りすぎない。 */
.tone { position: relative; }
.tone::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(var(--ink) 1.1px, transparent 1.2px);
  background-size: 7px 7px; opacity: 0.06;
}
.tone > * { position: relative; z-index: 1; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(239, 234, 224, 0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 2px solid var(--ink);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 1.02rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; border: 1.5px solid var(--ink); }
.nav a { margin-left: 22px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.nav a:hover { color: var(--accent-ink); }

/* ===== ヒーロー ===== */
.hero { padding: 70px 0 60px; overflow: hidden; }
.hero .container { display: flex; align-items: center; gap: 52px; }
.hero .copy { flex: 1 1 0; min-width: 0; }
.hero .brand-row { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 7px 14px 7px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.hero .brand-row img { width: 40px; height: 40px; border-radius: 10px; }
.hero .brand-row .name { font-size: 0.98rem; font-weight: 900; letter-spacing: .04em; }
.hero .tagline {
  font-size: clamp(2.3rem, 5.6vw, 3.5rem); font-weight: 900; line-height: 1.12;
  letter-spacing: -0.01em; overflow-wrap: anywhere;
}
.hero .tagline .r { color: var(--accent-ink); }
/* 見出しの下に手書き風のベタ下線（赤）。1アクセントを“引く”動きで使う。 */
.hero .tagline .u { position: relative; white-space: nowrap; }
.hero .tagline .u::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 2px; height: 12px; z-index: -1;
  background: var(--accent); opacity: 0.22; transform: rotate(-1deg);
}
.hero .sub { color: var(--muted); font-size: 1.06rem; margin-top: 18px; max-width: 460px; }
.hero .badges { margin-top: 26px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  padding: 13px 26px; border-radius: 12px; font-weight: 800;
  box-shadow: 4px 4px 0 rgba(21, 18, 14, 0.18);
}
.btn-store.soon { background: var(--muted); cursor: default; box-shadow: none; }
.btn-store .t { text-align: left; line-height: 1.2; }
.btn-store .t small { display: block; font-size: 0.66rem; font-weight: 600; opacity: 0.82; letter-spacing: .08em; }
.btn-store.soon .t small { opacity: 1; }  /* 近日公開バッジ（muted地）はAAを満たすよう不透明に */
.hero .note { margin-top: 13px; font-size: 0.8rem; color: var(--muted); }
.hero .visual { flex: 0 0 280px; display: flex; justify-content: center; position: relative; }
/* 端末モックの背後に集中線風のトーンを薄く。 */
.hero .visual::before {
  content: ""; position: absolute; width: 360px; height: 360px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(21,18,14,0.05) 0 30%, transparent 31%) ,
              repeating-conic-gradient(from 0deg at 50% 50%, rgba(21,18,14,0.05) 0deg 1.4deg, transparent 1.4deg 7deg);
  border-radius: 50%; z-index: 0;
}
.hero .visual .device { width: 268px; transform: rotate(3deg); position: relative; z-index: 1; }

/* ===== セクション見出し（左寄せ・劇画エディトリアル） ===== */
section { padding: 64px 0; position: relative; }
section[id] { scroll-margin-top: 76px; }  /* 追従ヘッダー分、アンカー着地をずらす */
.band { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sec-head { margin-bottom: 36px; max-width: 760px; }
.sec-head .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 900; letter-spacing: .14em; color: var(--accent-ink);
  text-transform: none; margin-bottom: 12px;
}
.sec-head .kicker::before { content: ""; width: 22px; height: 4px; background: var(--accent); display: inline-block; }
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.15rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; }
.sec-title .r { color: var(--accent-ink); }
.sec-lead { color: var(--muted); font-size: 1rem; margin-top: 12px; }

/* ===== できること（本物のコマ割り） ===== */
/* 生成りの“ページ”の上に、細い黒線のコマを不揃いに並べ、ガター（地色）で区切る。 */
.koma-page {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  border: 2.5px solid var(--ink); background: var(--cream); padding: 12px;
}
.koma {
  position: relative; background: var(--paper); border: 1.5px solid var(--ink);
  padding: 22px 22px 24px; display: flex; flex-direction: column; min-height: 150px; min-width: 0;
}
.koma .ico { width: 40px; height: 40px; color: var(--ink); margin-bottom: 14px; }
.koma .ico svg { width: 100%; height: 100%; display: block; }
.koma h3 { font-size: 1.06rem; font-weight: 900; margin-bottom: 7px; }
.koma p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
/* コマ番号（右上に小さく・劇画のページ番号風） */
.koma .no { position: absolute; top: 8px; right: 10px; font-size: 0.7rem; font-weight: 900; color: var(--line); }
/* 不揃いのコマ割り：上＝広2／中＝3／下＝広1 */
.koma.k1 { grid-column: span 4; }
.koma.k2 { grid-column: span 2; }
.koma.k3 { grid-column: span 2; }
.koma.k4 { grid-column: span 2; }
.koma.k5 { grid-column: span 2; }
.koma.k6 { grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; gap: 18px; }
.koma.k6 .ico { margin-bottom: 0; flex: 0 0 auto; }
.koma.k6 .txt h3 { margin-bottom: 4px; }

/* ===== 素材 → 完成 ===== */
.ba { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.ba-col { text-align: center; }
.ba-label { color: var(--muted); font-size: 0.86rem; margin-top: 16px; font-weight: 700; letter-spacing: .02em; }
.ba-arrow { font-size: 2.4rem; color: var(--accent); font-weight: 900; line-height: 1; }
.materials { position: relative; width: 300px; height: 250px; margin: 0 auto; }
.materials .m { position: absolute; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 rgba(21,18,14,0.12); }
.materials .m-bg { height: 146px; top: 44px; left: 4px; transform: rotate(-7deg); z-index: 1; }
.materials .m-a  { height: 146px; top: 24px; left: 150px; transform: rotate(7deg); z-index: 2; }
.materials .m-b  { height: 172px; top: 48px; left: 96px; transform: rotate(-2deg); z-index: 3; }
.ba .page { height: 250px; width: auto; border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 rgba(21,18,14,0.16); display: block; }

/* ===== スクリーンショット（黒スリムベゼル端末） ===== */
.shots { display: flex; gap: 28px; overflow-x: auto; padding: 10px 4px 18px; scroll-snap-type: x mandatory; }
.shot { flex: 0 0 auto; width: 240px; scroll-snap-align: center; }
.shot:nth-child(odd) .device { transform: rotate(-1.5deg); }
.shot:nth-child(even) .device { transform: rotate(1.5deg); }
.device {
  position: relative; background: #100E0B; border-radius: 38px; padding: 7px;
  box-shadow: 0 22px 48px rgba(21, 18, 14, 0.28), 0 5px 14px rgba(21, 18, 14, 0.14);
}
.device .screen { position: relative; aspect-ratio: 1320 / 2868; border-radius: 31px; overflow: hidden; background: #000; }
.device .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device .statusbar { position: absolute; top: 0; left: 0; right: 0; height: 5%; background: #EEEAE1; z-index: 1; }
.device .statusbar.alt { background: #BEBBB4; }  /* 書き出し画面など、上部が淡いグレーのスクショ用 */
.device .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 30%; height: 14px; background: #100E0B; border-radius: 99px; z-index: 2; }
.shot .cap { color: var(--ink); font-size: 0.88rem; margin-top: 16px; font-weight: 800; padding-left: 4px; }
.shot .cap::before { content: ""; display: inline-block; width: 12px; height: 3px; background: var(--accent); margin-right: 7px; vertical-align: middle; }

/* ===== 作例ギャラリー（紙のように・黒枠＋ベタ影） ===== */
.works { display: flex; justify-content: center; align-items: flex-start; gap: 44px; flex-wrap: wrap; }
.work { margin: 0; }
.work:nth-child(odd)  { transform: rotate(-1.3deg); }
.work:nth-child(even) { transform: rotate(1deg); }
/* 平積み：完成ページの背後に同型の紙を少しずらして重ね、“刷り上がった束”に見せる（本屋の平積み風） */
.work .stack { position: relative; display: inline-block; }
.work .stack img { position: relative; z-index: 2; height: 440px; width: auto; max-width: 100%; display: block; border: 2.5px solid var(--ink); background: #fff; }
.work .stack::after { content: ""; position: absolute; inset: 0; z-index: 1; border: 2px solid var(--ink); background: var(--paper); transform: translate(5px, 6px); }
.work .stack::before { content: ""; position: absolute; inset: 0; z-index: 0; border: 2px solid var(--ink); background: var(--paper); transform: translate(10px, 12px); box-shadow: 5px 6px 0 rgba(21,18,14,0.12); }
.work figcaption { color: var(--ink); font-size: 0.9rem; margin-top: 20px; font-weight: 800; text-align: center; }

/* ===== 無料 / Pro（ベタ＝黒） ===== */
.pro-wrap { background: var(--ink); color: var(--on-ink); padding: 48px 44px; position: relative; overflow: hidden; }
/* ベタの上に白網点トーンを薄く */
.pro-wrap::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,239,230,0.9) 1px, transparent 1.1px);
  background-size: 9px 9px; opacity: 0.06; pointer-events: none;
}
.pro-wrap .sec-head { position: relative; }
.pro-wrap .sec-title { color: var(--on-ink); }
.pro-wrap .sec-lead { color: rgba(244, 239, 230, 0.74); }
.pro-wrap .kicker { color: #ff8b8e; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.plan { background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(244, 239, 230, 0.22); padding: 26px; }
.plan.pro { border-color: var(--accent); }
.plan h3 { font-size: 1.18rem; font-weight: 900; margin-bottom: 12px; }
.plan h3 .tag { font-size: 0.74rem; font-weight: 800; color: var(--ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.plan ul { list-style: none; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: rgba(244, 239, 230, 0.92); font-size: 0.95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

/* ===== フッター ===== */
.site-footer { border-top: 2px solid var(--ink); padding: 28px 0 46px; color: var(--muted); font-size: 0.88rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; }
.site-footer nav a { color: var(--ink); text-decoration: none; margin-left: 18px; font-weight: 700; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { color: var(--accent-ink); }

/* タップ領域（最低44px）。文字サイズ・位置は変えず、当たり判定だけ確保。 */
.brand { min-height: 44px; }
.nav a, .site-footer nav a, .doc .back { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== 文書ページ（privacy 等） ===== */
.doc { max-width: 760px; margin: 0 auto; padding: 44px 22px 80px; }
.doc .back { display: inline-block; margin-bottom: 22px; font-weight: 700; text-decoration: none; }
.doc h1 { font-size: 2rem; font-weight: 900; margin-bottom: 6px; }
.doc .updated { color: var(--muted); margin-bottom: 26px; }
.doc h2 { font-size: 1.22rem; font-weight: 900; margin: 34px 0 10px; }
.doc h2[id] { scroll-margin-top: 76px; }  /* お問い合わせ等への同ページジャンプを追従ヘッダー下に隠さない */
.doc p { margin: 10px 0; }
.doc ul { margin: 10px 0 10px 22px; }
.doc li { margin: 5px 0; }
.todo { color: var(--accent-ink); font-weight: 700; background: rgba(229, 72, 77, 0.08); padding: 1px 6px; border-radius: 5px; }

/* スクロール・リビール（JS有効＋Reduce Motion 無効のときだけ。控えめ・一度だけ） */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ===== レスポンシブ ===== */
@media (max-width: 860px) {
  .koma-page { grid-template-columns: repeat(2, 1fr); }
  .koma.k1, .koma.k2, .koma.k3, .koma.k4, .koma.k5, .koma.k6 { grid-column: span 1; }
  .koma.k6 { flex-direction: column; align-items: flex-start; }
  .koma.k6 .ico { margin-bottom: 14px; }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 38px; }
  .hero .container { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero .visual { align-self: center; flex: 0 0 auto; }
  .hero .visual .device { width: 230px; transform: none; }
  .hero .visual::before { width: 280px; height: 280px; }
  .hero .sub { max-width: none; }
  .nav { display: none; }
  .pro-wrap { padding: 32px 22px; }
  .ba { flex-direction: column; gap: 22px; }
  .ba-arrow { transform: rotate(90deg); }
  .materials { transform: scale(0.9); transform-origin: top center; }
}
@media (max-width: 600px) {
  .koma-page { grid-template-columns: 1fr; }
}
