/* CHIBITTO LP。色はロゴに合わせて「生成り・墨・黄色」の3色（marketing/instagram/style.css と同じ） */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --card: #fffdf8;
  --ink: #111111;
  --muted: #55524c;
  --accent: #ffd23f;
  --line: #111111;
  --radius: 18px;
  --gutter: 20px;
  --maxw: 1120px;
  --sticky-h: 0px;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); font-weight: 500; font-size: 16px; line-height: 1.8; padding-bottom: var(--sticky-h); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.kicker { font-family: "Archivo Black", sans-serif; font-size: 13px; letter-spacing: .16em; margin-bottom: 8px; }
.hero .kicker { font-family: inherit; font-weight: 900; letter-spacing: .04em; font-size: 14px; }
.mark { background: linear-gradient(transparent 60%, var(--accent) 60%); padding: 0 .04em; }
.tag { display: inline-block; font-size: 12px; line-height: 1.5; color: var(--muted); background: var(--card); border: 1px solid #cfc9bb; border-radius: 999px; padding: 2px 10px; }
.tag--inline { vertical-align: middle; margin-left: 4px; }

/* ボタン（押せる高さ 48px 以上） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font-weight: 900; font-size: 16px; text-decoration: none; border: 3px solid var(--line); background: var(--card); line-height: 1.3; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease; }
.btn--primary { background: var(--accent); box-shadow: 4px 4px 0 var(--line); }
.btn--primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn--small { min-height: 40px; padding: 6px 16px; font-size: 14px; border-width: 2px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; }
.btn--wide { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #2a6df4; outline-offset: 3px; }
.ig { width: 22px; height: 22px; flex: none; border: 2.5px solid currentColor; border-radius: 7px; position: relative; }
.ig::before { content: ""; position: absolute; inset: 4px; border: 2.5px solid currentColor; border-radius: 50%; }
.ig::after { content: ""; position: absolute; top: 2px; right: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.link-arrow { font-weight: 700; text-underline-offset: 4px; padding: 12px 4px; }
.link-arrow::after { content: " ↓"; }

/* 下書きの表示 */
.draft { background: #2b2b2b; color: #fff; font-size: 13px; line-height: 1.6; padding: 8px var(--gutter); }
.draft summary { cursor: pointer; }
.draft b { background: var(--accent); color: var(--ink); padding: 0 6px; border-radius: 4px; margin-right: 4px; }
.draft ul { list-style: disc; padding: 6px 0 4px 20px; }

/* ヘッダー */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); background: rgba(244, 241, 234, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.top__logo { display: block; flex: none; }
.top__logo img { height: 42px; width: auto; max-width: none; }

/* 1. ヒーロー */
.hero { padding: 20px var(--gutter) 40px; display: grid; gap: 22px; max-width: var(--maxw); margin: 0 auto; }
.hero__title { font-size: clamp(30px, 9.6vw, 58px); font-weight: 900; line-height: 1.32; letter-spacing: .01em; margin: 6px 0 16px; }
.hero__lead { font-size: 16px; font-weight: 700; color: #2a2926; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; }
.hero__cta .btn--primary { width: 100%; }
.hero__note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.hero__visual { position: relative; border: 3px solid var(--line); border-radius: 28px; background: var(--accent); overflow: hidden; aspect-ratio: 16 / 11; order: -1; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__illust { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 6% 6% 9%; }
.hero__illust::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: #fff3c2; top: 8%; left: 13%; }
.hero__visual .tag { position: absolute; left: 12px; bottom: 12px; }
.fig { display: block; overflow: visible; }
.fig-main { fill: #fffdf8; stroke: var(--line); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.fig-shadow { fill: var(--line); stroke: var(--line); stroke-width: 3; stroke-linejoin: round; }
.hero__illust .fig { position: relative; height: 92%; width: auto; }
.hero__illust .fig--back { height: 70%; margin-right: -4%; }

/* セクション共通 */
.sec { padding: 56px var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.sec--alt { max-width: none; background: var(--paper-2); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.sec--alt > * { max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.sec__title { font-size: clamp(25px, 6.6vw, 40px); font-weight: 900; line-height: 1.4; margin-bottom: 20px; }
.sec__lead { color: #2a2926; margin-top: -6px; margin-bottom: 24px; }

/* 2. 商品紹介 */
.cards { display: grid; gap: 14px; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card__num { font-family: "Archivo Black", sans-serif; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.card h3 { font-size: 19px; font-weight: 900; line-height: 1.5; margin: 2px 0 6px; }
.card p { font-size: 15px; }
.heads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.heads__item { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 14px 16px; text-align: center; }
.heads__item .fig { height: 150px; width: auto; margin: 0 auto 10px; }
.heads__item h3 { font-size: 20px; font-weight: 900; }
.heads__item p { font-size: 14px; line-height: 1.7; text-align: left; }
.heads__note { grid-column: 1 / -1; font-size: 14px; color: #2a2926; }

/* 3. 利用シーン */
.scenes { display: grid; gap: 12px; }
.scenes li { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.scenes__em { display: inline-block; font-weight: 900; font-size: 17px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 2px 14px; margin-bottom: 8px; }
.scenes p { font-size: 15px; }

/* 4. 制作例 */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work { position: relative; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.work img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.work figcaption { padding: 8px 12px 10px; font-size: 13px; line-height: 1.5; }
.work .kind { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 900; background: var(--ink); color: var(--paper); padding: 2px 10px; border-radius: 999px; }
.work .kind[data-kind="デザイン案"] { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.works-empty { text-align: center; background: var(--card); border: 2px dashed #8d887c; border-radius: var(--radius); padding: 24px 18px; }
.works-empty__frames { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.works-empty__frames span { width: 28%; max-width: 120px; aspect-ratio: 4 / 5; border-radius: 12px; background: repeating-linear-gradient(135deg, #ece7db 0 10px, #f6f2e9 10px 20px); border: 1.5px solid #cfc9bb; }
.works-empty p { font-weight: 700; margin-bottom: 14px; }

/* 5. 注文の流れ */
.flow { counter-reset: step; display: grid; gap: 12px; }
.flow li { counter-increment: step; position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 70px; }
.flow li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); border: 2px solid var(--line);
  font-family: "Archivo Black", sans-serif; font-size: 17px; display: grid; place-items: center; line-height: 1; }
.flow b { font-size: 17px; font-weight: 900; }
.flow p { font-size: 15px; }

/* 6. 価格 */
.price { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.price__dm { font-size: 17px; font-weight: 700; padding-bottom: 18px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.price__dm b { background: linear-gradient(transparent 60%, var(--accent) 60%); }
.price__list { border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.price__list > div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid #d9d3c5; }
.price__list > div:first-child { border-top: 0; }
.price__list dt { font-weight: 900; font-size: 18px; }
.price__list dd { font-family: "Archivo Black", "Zen Maru Gothic", sans-serif; font-size: 28px; }
.kv > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid #d9d3c5; }
.kv > div:first-child { border-top: 0; }
.kv dt { font-weight: 900; }
.kv dd { font-size: 15px; }
.price__note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.price__note:empty { display: none; }

/* 7. パッケージ */
.pkg { display: grid; gap: 16px; }
.pkg__frame { aspect-ratio: 16 / 10; border-radius: var(--radius); border: 2px dashed #8d887c; background: repeating-linear-gradient(135deg, #e3ddcf 0 12px, #ebe6da 12px 24px); display: grid; place-items: center; text-align: center; font-size: 14px; color: var(--muted); font-weight: 700; }
.pkg__list li { position: relative; padding: 8px 0 8px 30px; font-weight: 700; border-bottom: 1px solid #cfc9bb; }
.pkg__list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid var(--line); }

/* 8. FAQ */
.faq details { border-top: 2px solid var(--line); }
.faq details:last-child { border-bottom: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-weight: 900; font-size: 16px; padding: 16px 40px 16px 0; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: "Archivo Black", sans-serif; font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; font-size: 15px; }
.faq a { text-underline-offset: 3px; }

/* 9. 最後の相談 */
.cta { background: var(--ink); color: var(--paper); padding: 56px var(--gutter); text-align: center; }
.cta > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta__title { font-size: clamp(24px, 6.4vw, 36px); font-weight: 900; line-height: 1.45; margin-bottom: 12px; }
.cta__lead { font-size: 15px; margin-bottom: 18px; color: #e5e0d4; }
.copybox { display: flex; align-items: center; gap: 10px; background: #2a2a2a; border: 1.5px dashed #8d887c; border-radius: 14px; padding: 12px 12px 12px 16px; margin-bottom: 18px; text-align: left; }
.copybox__text { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.6; }
.copybox .btn--ink { background: var(--paper); color: var(--ink); border-color: var(--paper); flex: none; }
.cta .btn--primary { color: var(--ink); box-shadow: 4px 4px 0 #555; }
.cta__sub { font-size: 13px; margin-top: 16px; color: #cfc9bb; }
.cta__sub a { color: var(--accent); }

/* フッター */
.foot { padding: 36px var(--gutter) 28px; text-align: center; }
.foot__logo { width: 120px; margin: 0 auto 16px; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 14px; }
.foot__nav a { padding: 8px 0; text-underline-offset: 3px; }
.foot__copy { font-family: "Archivo Black", sans-serif; font-size: 12px; letter-spacing: .08em; margin-top: 14px; color: var(--muted); }

/* スマホの下の相談ボタン（ヒーローのボタンが見えなくなったら出す） */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(244, 241, 234, .95);
  border-top: 2px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.sticky.is-on { transform: none; }
.sticky .btn { min-height: 52px; box-shadow: 3px 3px 0 var(--line); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 40; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.debug { position: fixed; right: 8px; top: 64px; z-index: 50; width: min(340px, 92vw); max-height: 50vh; overflow: auto; background: #fff; border: 2px solid #2a6df4; border-radius: 10px; padding: 8px 10px; font: 12px/1.5 ui-monospace, monospace; white-space: pre-wrap; }

/* PC */
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .top__logo img { height: 46px; }
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
  .hero__visual { order: 0; aspect-ratio: 1 / 1.02; }
  .hero__cta .btn--primary { width: auto; }
  .hero__lead { font-size: 17px; }
  .sec { padding: 88px var(--gutter); }
  .sec--alt > * { max-width: calc(var(--maxw) - 80px); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .heads { max-width: 720px; margin: 36px auto 0; }
  .heads__item .fig { height: 190px; }
  .scenes { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .works { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .flow { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .flow li { padding: 70px 16px 18px; }
  .price { max-width: 720px; padding: 32px 36px; }
  .pkg { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; }
  .faq { max-width: 820px; }
  .cta { padding: 88px var(--gutter); }
  .sticky { display: none; }
  body { padding-bottom: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky, .toast { transition: none; }
}
