/*
  販売サイト 02 副業スタートマップ ― ポップで、物語を感じられる（#サイト作成 02 2026-12-04）
  - CLAUDE.md 3章・brands/02_fukugyo/brand.md 4〜5章
  - アンバー #FFB020／黄緑 #A8D44E（この2色の上に、白い文字・明るい文字を置かない）
  - やわらかい白 #FFFCF3／濃いブラウン #3A2E1F
  - すべて Zen Maru Gothic（見出し Black／本文 Medium・Bold）
  - 色えんぴつのような、少しゆらいだ線（角の丸みを不ぞろいに）と、紙のざらつき
  - スマホで見やすいことを優先する（CLAUDE.md 8章）
  - フォントのファイルは site/_tools/make_fonts.py 02 で作る
*/
@font-face { font-family: "ZenMaruGothic"; src: url("/assets/fonts/ZenMaruGothic-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "ZenMaruGothic"; src: url("/assets/fonts/ZenMaruGothic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "ZenMaruGothic"; src: url("/assets/fonts/ZenMaruGothic-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --amber: #FFB020;
  --green: #A8D44E;
  --amber-lt: #FFE7B3;
  --green-lt: #E6F3C8;
  --brown: #3A2E1F;
  --sub-ink: #6B5A43;
  --bg: #FFFCF3;
  --line: rgba(58, 46, 31, 0.28);
  --font: "ZenMaruGothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  /* 手描きのような、少しゆらいだ角 */
  --wobble: 255px 18px 225px 16px / 16px 225px 18px 255px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  color: var(--brown);
  background: var(--bg) url("/assets/img/paper.png") repeat;
  background-size: 320px;
  overflow-wrap: anywhere;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { font-family: var(--font); font-weight: 900; color: var(--brown); line-height: 1.45; margin: 0; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--brown); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ===== ページの上 ===== */
.site-head { border-bottom: 2px dashed var(--line); }
.site-head .wrap { display: flex; align-items: center; height: 64px; }
.site-head a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.site-head img { width: 40px; height: 40px; border-radius: 50%; }
.site-head .name { font-weight: 900; font-size: 18px; letter-spacing: 0.04em; }

main { padding: 40px 0 56px; flex: 1; }
section + section { margin-top: 48px; }

/* ===== 決まりごとのページ（特商法の表記・プライバシーポリシー）：飾りを入れない ===== */
.page-title { font-size: 24px; margin-bottom: 8px; }
.page-note { font-size: 14px; color: var(--sub-ink); margin-bottom: 28px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-top: 1px solid var(--line); }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table th { width: 34%; font-weight: 700; background: #F6F1E4; }
.table td p:last-child { margin-bottom: 0; }
@media (max-width: 520px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table th { border-bottom: none; padding-bottom: 4px; }
  .table td { padding-top: 4px; }
}
.doc h2 { font-size: 18px; margin: 32px 0 10px; }
.date { font-size: 14px; color: var(--sub-ink); margin-top: 32px; }

/* 見本の印（運営者の了承前だけ。了承されたら消す） */
.sample-flag { margin: 0 0 24px; padding: 10px 14px; font-size: 14px; font-weight: 700; background: #FFF1C9; color: #5A4300; border: 1px solid #E2C46A; }
.todo { background: #FFF1C9; padding: 0 4px; }

/* ===== ページの下：うすい黄緑に、濃いブラウンの文字 ===== */
.site-foot { background: var(--green-lt); border-top: 2px dashed var(--line); font-size: 14px; padding: 28px 0 36px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.site-foot .mail { margin-bottom: 6px; }
.site-foot .copy { margin: 0; opacity: 0.85; }

/* =====================================================================
   キャラクター（フミ・ミオ・シュン）と、ポップな飾り
   - 使うのはトップページと販売ページだけ。特商法の表記・プライバシーポリシーなどの
     決まりごとのページには、キャラクターも飾りも入れない（2026-12-04 運営者の指示）
   - 絵は site/_tools/make_chara_02.mjs で書き出す（assets/img/chara/）
   ===================================================================== */

/* 最初の見出し：アンバーのマーカーと、地図の点線 */
.hero { text-align: center; padding: 8px 0 0; }
.hero .label { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 14px; border: 2px solid var(--brown); border-radius: var(--wobble); background: var(--green-lt); margin-bottom: 14px; }
.hero h1 { font-size: 30px; display: inline; padding: 0 6px; background: linear-gradient(transparent 58%, var(--amber-lt) 58%); }
.hero .catch { font-size: 17px; font-weight: 700; margin: 16px 0 6px; }
.hero .who { font-size: 15px; color: var(--sub-ink); margin: 0; }

/* 3人がならぶ：足もとに、地図の点線の道 */
.trio { display: flex; justify-content: center; align-items: flex-end; margin: 18px 0 0; padding-bottom: 14px;
  background: radial-gradient(circle, rgba(58,46,31,0.4) 1.8px, transparent 2.2px) bottom center / 14px 8px repeat-x; }
.trio img { width: 112px; }
.trio img + img { margin-left: -14px; }

/* 吹き出し：白地に濃いブラウンのゆらいだ線 */
.talk { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0; }
.talk .face { flex: none; width: 62px; height: 62px; border-radius: 50%; background: var(--amber-lt); border: 2px solid var(--brown); overflow: hidden; }
.talk .face img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1) translateY(6%); }
.bubble { position: relative; background: #fff; border: 2px solid var(--brown); border-radius: 22px 18px 24px 16px / 18px 24px 16px 22px; padding: 10px 16px; font-size: 15px; font-weight: 700; line-height: 1.7; }
.bubble::before, .bubble::after { content: ""; position: absolute; border-style: solid; }
.bubble::before { left: -12px; top: 18px; border-width: 8px 12px 8px 0; border-color: transparent var(--brown) transparent transparent; }
.bubble::after { left: -8px; top: 20px; border-width: 6px 9px 6px 0; border-color: transparent #fff transparent transparent; }
.bubble .who { display: block; font-size: 12px; color: var(--sub-ink); margin-bottom: 2px; }
.bubble p { margin: 0; }

/* 見出し：アンバーのうすい札 */
.sec-title { display: inline-block; padding: 2px 16px; border: 2px solid var(--brown); border-radius: var(--wobble); background: var(--amber-lt); font-size: 20px; }
.sec-lead { font-size: 14px; color: var(--sub-ink); margin: 10px 0 18px; }

/* 見出しの右で、手のひらで「こちらです」と示すキャラクター */
.head-point { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-bottom: 2px dashed var(--line); margin-bottom: 18px; }
.head-point .sec-title { margin-bottom: 14px; }
.head-point .chara { flex: none; width: 104px; transform: scaleX(-1); }

/* 登場人物の紹介カード：うすいアンバー・黄緑の地 */
.cast { display: grid; gap: 16px; }
.cast-card { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: end; background: #fff; border: 2px solid var(--brown); border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px; padding: 14px 14px 0; }
.cast-card.c1 { background: var(--amber-lt); }
.cast-card.c2 { background: var(--green-lt); }
.cast-card img { width: 90px; }
.cast-card .text { padding-bottom: 14px; }
.cast-card .role { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 10px; border: 1.5px solid var(--brown); border-radius: 999px; background: #fff; margin: 0 0 4px; }
.cast-card h3 { font-size: 20px; margin-bottom: 6px; }
.cast-card .say { font-size: 14px; font-weight: 700; background: #fff; border-radius: 12px; padding: 6px 12px; margin: 0 0 8px; }
.cast-card .desc { font-size: 14px; margin: 0; line-height: 1.75; }
.story-note { font-size: 13px; color: var(--sub-ink); text-align: center; margin: 14px 0 0; }

/* 商品がまだないとき */
.empty-talk { border: 2px dashed var(--line); border-radius: var(--wobble); padding: 16px; background: rgba(255,255,255,0.6); }
.empty-talk .talk { margin: 0; }

/* 商品カード（#販売ページ で足していく） */
.cards { display: grid; gap: 20px; }
.card { display: block; text-decoration: none; color: inherit; background: #fff; border: 2px solid var(--brown); border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px; overflow: hidden; }
.card .cover { aspect-ratio: 16 / 9; background: var(--amber-lt); border-bottom: 2px solid var(--brown); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 20px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card .lead { font-size: 15px; color: var(--sub-ink); margin-bottom: 12px; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--sub-ink); }
.card .price { font-weight: 900; font-size: 20px; color: var(--brown); }
.card .more { display: inline-block; margin-top: 14px; padding: 6px 18px; border: 2px solid var(--brown); border-radius: var(--wobble); background: var(--amber); color: var(--brown); font-weight: 700; }

/* 区切り：点線の道と、地図のピン */
.road { margin: 40px auto; width: 220px; height: 22px; background:
  radial-gradient(circle, var(--amber) 6px, var(--brown) 6.5px, var(--brown) 8px, transparent 8.5px) center / 22px 22px no-repeat,
  radial-gradient(circle, rgba(58,46,31,0.4) 1.8px, transparent 2.2px) center / 14px 22px repeat-x; }

/* 動き：ふわっと出る・吹き出しがぽんと出る・手を示すキャラが小さくゆれる */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s ease-out both; }
  .rise.d1 { animation-delay: 0.15s; } .rise.d2 { animation-delay: 0.3s; } .rise.d3 { animation-delay: 0.45s; }
  .pop { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.6s both; transform-origin: left center; }
  .head-point .chara img { animation: sway 3s ease-in-out 1s infinite; transform-origin: 50% 100%; }
  .trio img { animation: hop 2.8s ease-in-out infinite; }
  .trio img:nth-child(2) { animation-delay: 0.4s; } .trio img:nth-child(3) { animation-delay: 0.8s; }
  .card:hover, .cast-card:hover { transform: translateY(-2px) rotate(-0.4deg); transition: transform 0.2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
@keyframes hop { 0%, 80%, 100% { transform: translateY(0); } 88% { transform: translateY(-5px); } }

@media (min-width: 600px) {
  .trio img { width: 150px; }
  .cast { grid-template-columns: 1fr 1fr 1fr; }
  .cast-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .head-point .chara { width: 124px; }
}

/* =====================================================================
   販売ページ・受け取りページ（#販売ページ 02-P001 2026-12-06）
   - アンバー・黄緑の上の文字は、すべて濃いブラウン（白い文字を置かない）
   - キャラクターは「こんな人に」の見出しの飾りだけ。最終確認・受け取りページには入れない
   ===================================================================== */
.phr { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; text-wrap: pretty; }
.bubble p { word-break: keep-all; text-wrap: pretty; }
.crumb { font-size: 13px; margin-bottom: 16px; }
.crumb a::before { content: "← "; }
.sales .hero, .receive .hero { margin-bottom: 24px; }
.sales .hero h1, .receive .hero h1 { font-size: 26px; display: inline; }
.hero .catch-lead { font-size: 15px; margin: 16px 0 0; }
.sales-cover { max-width: 340px; margin: 0 auto 20px; border: 2px solid var(--brown); border-radius: 10px; overflow: hidden; box-shadow: 4px 6px 0 rgba(58, 46, 31, 0.14); }
.price-box { background: #fff; border: 2px solid var(--brown); border-radius: var(--wobble); padding: 18px 18px 16px; margin-bottom: 48px; text-align: center; }
.price-line { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.price-line .pl { font-size: 13px; font-weight: 700; padding: 0 10px; border: 1.5px solid var(--brown); border-radius: 999px; background: var(--green-lt); }
.price-line .pv { font-weight: 900; font-size: 26px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 20px;
  background: var(--amber); color: var(--brown); text-decoration: none; font-weight: 900; font-size: 17px; letter-spacing: 0.04em;
  border: 2px solid var(--brown); border-radius: var(--wobble); box-shadow: 0 4px 0 var(--brown);
}
.btn:hover { background: #FFBE45; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--brown); }
.btn.is-pending { background: #E9E2D2; color: var(--sub-ink); box-shadow: none; cursor: not-allowed; pointer-events: none; border-style: dashed; }
.btn .pending { font-size: 12px; font-weight: 700; background: #fff; color: var(--brown); border: 1.5px solid var(--brown); padding: 0 8px; border-radius: 999px; }
.btn-note { font-size: 13px; color: var(--sub-ink); margin: 12px 0 0; text-align: center; }
ul.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
ul.checks li { position: relative; padding: 12px 14px 12px 46px; background: #fff; border: 2px solid var(--brown); border-radius: 18px 14px 20px 12px / 14px 20px 12px 18px; line-height: 1.7; }
ul.checks li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border: 2px solid var(--brown); border-radius: 5px 3px 6px 4px; background: var(--green-lt); }
ul.checks li::after { content: ""; position: absolute; left: 20px; top: 16px; width: 6px; height: 11px; border: solid var(--brown); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
ul.gains { list-style: none; margin: 16px 0 12px; padding: 4px 0; background: #fff; border: 2px solid var(--brown); border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px; }
ul.gains li { position: relative; padding: 12px 14px 12px 50px; line-height: 1.7; border-bottom: 2px dashed rgba(58, 46, 31, 0.16); }
ul.gains li:last-child { border-bottom: none; }
ul.gains li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); border: 2px solid var(--brown); box-sizing: border-box; }
ul.gains li::after { content: ""; position: absolute; left: 23px; top: 18px; width: 5px; height: 10px; border: solid var(--brown); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.note { font-size: 13px; color: var(--sub-ink); line-height: 1.7; }
ol.toc { list-style: none; padding: 6px 16px; margin: 16px 0 12px; background: #fff; border: 2px solid var(--brown); border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px; }
ol.toc li { padding: 10px 0; border-bottom: 2px dotted rgba(58, 46, 31, 0.2); line-height: 1.6; }
ol.toc li:last-child { border-bottom: none; }
ul.extras { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
ul.extras li { background: var(--green-lt); border: 2px solid var(--brown); border-radius: 14px 18px 12px 16px / 18px 12px 16px 14px; padding: 10px 14px; font-size: 15px; line-height: 1.7; }
dl.spec { margin: 0; }
dl.spec div { display: grid; grid-template-columns: 4em 1fr; gap: 8px; font-size: 15px; }
dl.spec dt { font-weight: 900; }
dl.spec dd { margin: 0; }
.memo { margin-top: 16px; background: rgba(255, 255, 255, 0.7); border: 2px dashed var(--line); border-radius: var(--wobble); padding: 14px 16px; font-size: 15px; }
.memo p:last-child { margin-bottom: 0; }
.faq { display: grid; gap: 8px; margin-top: 16px; }
.faq details { background: #fff; border: 2px solid var(--brown); border-radius: 14px 18px 12px 16px / 18px 12px 16px 14px; }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 11px 40px 11px 14px; font-weight: 700; line-height: 1.6; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; font-weight: 900; }
.faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--brown); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] summary { border-bottom: 2px dashed rgba(58, 46, 31, 0.16); }
.faq .ans { padding: 10px 14px 12px; font-size: 15px; line-height: 1.75; }
.faq .ans::before { content: "A. "; font-weight: 900; }
.confirm { margin-top: 56px; border-top: 3px dashed var(--brown); padding-top: 28px; }
.confirm .table { margin-top: 16px; }
.confirm .table th { width: 40%; }
#confirm-title { scroll-margin-top: 16px; }
.law-link { margin: 14px 0 10px; font-size: 14px; }
.pay-note { font-weight: 900; text-align: center; margin: 18px 0 12px; }
@media (max-width: 520px) { .confirm .table th { width: 100%; } }
.receive-box { background: #fff; border: 2px solid var(--brown); border-radius: var(--wobble); padding: 22px 18px; margin-bottom: 40px; text-align: center; }
.receive-box .hint { font-size: 13px; color: var(--sub-ink); margin: 10px 0 0; }
.receive section p { margin-top: 12px; }

/* 商品カード：表紙（縦長4:5）を大きく、その下に名前・ひとこと・価格 */
.card .cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, var(--amber-lt), var(--green-lt)); }
.card .cover img { position: absolute; top: 7%; bottom: 7%; left: 50%; height: 86%; width: auto; transform: translateX(-50%); object-fit: contain; border: 1.5px solid var(--brown); border-radius: 4px; }
.card .pname { font-size: 12px; font-weight: 700; color: var(--sub-ink); margin: 0 0 4px; line-height: 1.6; }
