/* ---- フォント（scripts/subset-fonts.sh で生成したページ限定サブセット） ---- */
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 500; font-display: swap; src: url("../assets/fonts/mplus-rounded-500.woff2") format("woff2"); }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 800; font-display: swap; src: url("../assets/fonts/mplus-rounded-800.woff2") format("woff2"); }

/* ---- トークン（ネオブルータリズム × ポップ） ---- */
:root {
  --pink: #F0609A; --blue: #6EC1F0; --yellow: #F7D64A; --mint: #6DDBB0; --purple: #A889F5; --orange: #F0A24C;
  --ink: #2B2350; --paper: #FFF3C4; --cream: #FFFBEA; --line: #06C755;
  --bw: 4px;                       /* 枠線の太さ */
  --shadow: 6px 6px 0 var(--ink);  /* ハードシャドウ */
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  --font: "M PLUS Rounded 1c", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-weight: 500; color: var(--ink); line-height: 1.7; overflow-x: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(43, 35, 80, .16) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
h1, h2, h3 { font-weight: 800; margin: 0 0 .4em; line-height: 1.25; }
p { margin: 0 0 .8em; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ---- 共通部品 ---- */
.section { max-width: 1140px; margin: 0 auto; padding: 72px 20px; }
.section__label { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; display: flex; align-items: center; gap: 14px; margin: 0 0 6px; opacity: .85; }
.section__label::after { content: ""; flex: 1; height: 3px; background: var(--ink); opacity: .18; border-radius: 2px; }
.section__title { font-size: clamp(30px, 4.5vw, 46px); }
.section__lead, .note { opacity: .8; }
.num { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 14px; border: 3px solid var(--ink); border-radius: 10px; }

.line-cta { display: inline-flex; align-items: center; gap: .5em; background: var(--pink); color: var(--ink); font-weight: 800; text-decoration: none;
  padding: 14px 28px; border-radius: 16px; border: var(--bw) solid var(--ink); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.line-cta:hover { transform: translate(3px, 3px); box-shadow: var(--shadow-sm); }
.line-cta:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.line-cta--small { padding: 8px 16px; font-size: 14px; border-width: 3px; box-shadow: var(--shadow-sm); border-radius: 12px; }
.line-cta--big { font-size: 20px; padding: 18px 36px; }
.line-cta__icon { font-size: 1.2em; }

/* ---- ヘッダー ---- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.brand { font-weight: 800; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand small { font-size: .6em; opacity: .6; }

/* ---- Hero（グラデのパネル） ---- */
.hero { padding: 28px 20px 8px; }
.hero__panel { position: relative; overflow: hidden; max-width: 1140px; margin: 0 auto; min-height: min(70vh, 640px); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--purple) 55%, var(--blue)); color: #fff; border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink), 8px 8px 0 4px var(--pink); }
.hero__panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1.5px, transparent 1.6px); background-size: 22px 22px; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; width: 100%; padding: 56px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.eyebrow { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; padding: 4px 14px; border-radius: 10px; border: 3px solid var(--ink); box-shadow: var(--shadow-sm); rotate: -1.5deg; }
.hero h1 { font-size: clamp(36px, 5.5vw, 58px); margin: .35em 0 .3em; }
.pop-title .word:last-child .ch:last-child { color: var(--pink); }
.lead { font-size: clamp(15px, 2vw, 18px); opacity: .95; margin-bottom: 1.4em; }
.hero__text { text-shadow: 2px 2px 0 rgba(43, 35, 80, .35); }
.stickers { display: grid; grid-template-columns: repeat(2, 130px); gap: 22px; justify-content: center; }
.sticker { display: grid; place-items: center; width: 130px; height: 130px; font-size: 64px; background: var(--c, var(--yellow)); border: var(--bw) solid var(--ink); border-radius: 26px; box-shadow: var(--shadow); rotate: var(--tilt, 0deg); }
.sticker:nth-child(2) { translate: 0 18px; }
.sticker:nth-child(3) { translate: 0 -10px; }

/* ---- ポップ文字（main.js が .word > .ch に分割） ---- */
.pop-title .word { display: inline-block; white-space: nowrap; }
.pop-title .ch { display: inline-block; }
html:not(.no-gsap) .pop-title.is-split .ch { opacity: 0; transform: translateY(.6em) scale(.6); }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in, html.no-gsap .reveal { opacity: 1; transform: none; }

/* ---- サービスカード（色つき・傾き・コミック斜線） ---- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; margin-top: 36px; }
.card { position: relative; overflow: hidden; background: var(--c, var(--pink)); border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 60px 20px 20px; box-shadow: var(--shadow); rotate: var(--tilt, 0deg); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card__icon { font-size: 36px; display: block; margin-bottom: 6px; }
.card h3 { font-size: 21px; margin-bottom: .3em; }
.card p { margin: 0; font-size: 14px; opacity: .85; }
.card::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(115deg, var(--ink) 0 8px, transparent 8px 30px); }
.card:hover::after { animation: slash .5s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes slash { 0% { opacity: .35; translate: -70% 0; } 100% { opacity: 0; translate: 70% 0; } }

/* ---- 流れ ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.step { position: relative; background: var(--cream); border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 56px 18px 20px; text-align: center; box-shadow: var(--shadow); }
.step__num { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--c, var(--pink)); color: var(--ink); font-family: var(--mono); font-weight: 700; border: 3px solid var(--ink); border-radius: 10px; }
.step h3 { font-size: 18px; }
.step p { margin: 0; font-size: 14px; opacity: .85; }
.step__icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 12px; font-size: 42px; border-radius: 20px; border: 3px solid var(--ink); background: var(--c, var(--pink)); box-shadow: var(--shadow-sm); }

/* ---- 料金 ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0 20px; }
.plan { background: var(--c, var(--cream)); border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); rotate: var(--tilt, 0deg); }
.plan--hot { box-shadow: 8px 8px 0 var(--ink), 8px 8px 0 4px var(--pink); }
.plan h3 { font-size: 22px; }
.plan__time { font-family: var(--mono); opacity: .75; margin: 0; font-size: 14px; }
.plan__price { font-size: 34px; font-weight: 800; margin: 0 0 .4em; }
.plan p:last-child { font-size: 14px; opacity: .85; margin: 0; }
.note { font-family: var(--mono); font-size: 13px; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 28px 0 0; display: grid; gap: 14px; }
.faq-item { background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; font-size: 22px; color: var(--pink); transition: rotate .2s; }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { padding-bottom: 16px; margin: 0; }

/* ---- CTA / フッター ---- */
.cta { max-width: 1140px; margin: 16px auto 0; padding: 0 20px 72px; text-align: center; }
.cta > * { position: relative; }
.cta { --panel-pad: 64px 20px; }
.cta::before { content: none; }
.cta__wrap { display: contents; }
.cta__sticker { display: grid; place-items: center; width: 150px; height: 150px; margin: 0 auto 8px; font-size: 72px; border-radius: 30px; border: var(--bw) solid var(--ink); background: var(--pink); box-shadow: var(--shadow); rotate: -4deg; }
.cta h2 { font-size: clamp(26px, 4.5vw, 44px); margin: 16px 0 28px; }
.footer { background: var(--ink); color: #fff; text-align: center; padding: 32px 20px; font-size: 14px; border-top: var(--bw) solid var(--ink); }
.footer p { margin: 0; }
.footer__note { opacity: .6; font-family: var(--mono); font-size: 12px; }

/* ---- レスポンシブ ---- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
  .hero { padding: 16px 14px 8px; }
  .hero__panel { border-radius: 22px; box-shadow: 6px 6px 0 var(--ink), 6px 6px 0 3px var(--pink); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 40px 20px 48px; }
  .stickers { grid-template-columns: repeat(4, 64px); gap: 14px; margin-top: 8px; }
  .sticker { width: 64px; height: 64px; font-size: 32px; border-radius: 16px; border-width: 3px; box-shadow: var(--shadow-sm); }
  .sticker:nth-child(2), .sticker:nth-child(3) { translate: 0 0; }
  .section { padding: 56px 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { rotate: calc(var(--tilt, 0deg) * .6); }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .pop-title .ch { opacity: 1 !important; transform: none !important; }
  .card:hover::after { animation: none; }
}
