/*
  販売サイト 01 AI時短おたすけ帳 ― 大人クラシック（#サイト作成 01 2026-12-04）
  - CLAUDE.md 3章・brands/01_ai/brand.md 4〜5章
  - ネイビー #1F2A44／くすんだ金 #B8975A（小さな文字・細い線は濃い金 #80642F）
  - アイボリー #F7F3EA／墨色 #2B2B2B
  - 見出し Zen Old Mincho Bold／本文 Zen Kaku Gothic New Medium・Bold
  - スマホで見やすいことを優先する（CLAUDE.md 8章）
  - フォントのファイルは site/_tools/make_fonts.py で作る
*/
@font-face { font-family: "ZenOldMincho"; src: url("/assets/fonts/ZenOldMincho-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "ZenKakuGothicNew"; src: url("/assets/fonts/ZenKakuGothicNew-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "ZenKakuGothicNew"; src: url("/assets/fonts/ZenKakuGothicNew-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #1F2A44;
  --gold: #B8975A;
  --gold-dk: #80642F;
  --ivory: #F7F3EA;
  --ink: #2B2B2B;
  --sub-ink: #55565A;
  --card: #FFFDF8;
  --th-bg: #F1EADB;
  --line: rgba(128, 100, 47, 0.35);
  --font-head: "ZenOldMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "ZenKakuGothicNew", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ivory);
  overflow-wrap: anywhere;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin: 0;
  word-break: auto-phrase;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ===== ページの上（ブランド名）：下に金の細い二重線 ===== */
.site-head { background: var(--ivory); border-bottom: 3px double var(--gold-dk); }
.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: 4px; }
.site-head .name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: 0.06em; }

main { padding: 40px 0 56px; flex: 1; }
section + section { margin-top: 48px; }

/* ===== 最初の見出し：左に紺の帯と金の線（特典PDFと同じ「本の背」の形） ===== */
.hero { position: relative; padding: 8px 0 8px 28px; margin-bottom: 44px; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--navy); }
.hero::after { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.hero .label { font-size: 13px; letter-spacing: 0.18em; color: var(--gold-dk); margin-bottom: 6px; }
.hero h1 { font-size: 30px; letter-spacing: 0.04em; margin-bottom: 10px; }
.hero .catch { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.hero .who { font-size: 15px; color: var(--sub-ink); margin: 0; }

/* 見出しの下に金の短い線 */
.sec-title { font-size: 22px; margin-bottom: 20px; }
.sec-title::after { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin-top: 10px; }

/* ===== 商品の一覧（#販売ページ で足していく） ===== */
.empty { padding: 28px 20px; text-align: center; border: 1px dashed var(--line); color: var(--sub-ink); margin: 0; }
.cards { display: grid; gap: 20px; }
.card { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); }
.card:hover { border-color: var(--gold); }
.card .cover { aspect-ratio: 4 / 5; background: #E9E0CC; }  /* 有料商品のPDFは縦長 4:5（2026-12-04） */
.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-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--navy); }
.card .more { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--navy); }
.card .more::after { content: " →"; }

/* ===== 表（特商法の表記） ===== */
.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: var(--card); 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; color: var(--navy); background: var(--th-bg); }
.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; }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li + li { margin-top: 4px; }
.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(--navy); color: var(--ivory); font-size: 14px; padding: 28px 0 36px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.site-foot a { color: var(--ivory); }
.site-foot .mail { margin-bottom: 6px; }
.site-foot .copy { margin: 0; opacity: 0.85; }

/* =====================================================================
   キャラクター（ナガセさん・ヤナギさん）と、少しポップな飾り（2026-12-04 追加）
   - 使うのはトップページと販売ページだけ。特商法の表記・プライバシーポリシーなどの
     決まりごとのページには、キャラクターも飾りも入れない（2026-12-04 運営者の指示）
   - 絵は site/_tools/make_chara_01.mjs で書き出す（assets/img/chara/）
   - 動きは小さく、ゆっくり。動きを減らす設定の人には動かさない
   ===================================================================== */

/* 吹き出し：白地に金の細い線。しっぽは左（顔のほう）に出す */
.talk { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; }
.talk .face { flex: none; width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); overflow: hidden; }
.talk .face img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateY(4%); }
.bubble { position: relative; background: #fff; border: 1.5px solid var(--gold); border-radius: 16px; padding: 10px 16px; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.7; }
.bubble::before, .bubble::after { content: ""; position: absolute; top: 18px; border-style: solid; }
.bubble::before { left: -11px; border-width: 8px 11px 8px 0; border-color: transparent var(--gold) transparent transparent; }
.bubble::after { left: -8.5px; border-width: 7px 10px 7px 0; border-color: transparent #fff transparent transparent; top: 19px; }
.bubble .who { display: block; font-size: 12px; font-weight: 700; color: var(--gold-dk); letter-spacing: 0.08em; margin-bottom: 2px; }
.bubble p { margin: 0; }

/* 見出しの右に、指をさすキャラクター（左上の見出しを指す） */
.head-point { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.head-point .sec-title { margin-bottom: 14px; }
.head-point .chara { flex: none; width: 112px; margin-bottom: -1px; transform: scaleX(-1); transform-origin: center bottom; }
.head-point .chara img { width: 100%; }

/* トップの最初：2人がならぶ */
.duo { display: flex; align-items: flex-end; justify-content: center; gap: 0; margin: -16px 0 8px; }
.duo img { width: 150px; }
.duo .y { margin-left: -18px; }
.duo-talk { margin-bottom: 44px; }

/* 案内役の紹介カード */
.ribbon { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--ivory); background: var(--navy); padding: 3px 12px 3px 10px; margin-bottom: 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); }
.cast { display: grid; gap: 16px; }
.cast-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: end; background: var(--card); border: 1px solid var(--line); padding: 16px 16px 0; position: relative; }
.cast-card::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(184, 151, 90, 0.35); pointer-events: none; }
.cast-card img { width: 96px; align-self: end; }
.cast-card .text { padding-bottom: 16px; }
.cast-card .role { font-size: 12px; font-weight: 700; color: var(--gold-dk); letter-spacing: 0.08em; margin: 0 0 2px; }
.cast-card h3 { font-size: 20px; margin-bottom: 6px; }
.cast-card .say { font-size: 14px; font-weight: 700; color: var(--navy); background: var(--th-bg); border-radius: 12px; padding: 6px 12px; margin: 0 0 8px; }
.cast-card .desc { font-size: 14px; color: var(--sub-ink); margin: 0; line-height: 1.75; }

/* 商品がまだないとき：ナガセさんの吹き出し */
.empty-talk { border: 1px dashed var(--line); padding: 20px 16px; background: rgba(255, 253, 248, 0.6); }
.empty-talk .talk { margin: 0; }


/* 区切りの飾り（金の線と、ひし形） */
.orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 40px 0; color: var(--gold); }
.orn::before, .orn::after { content: ""; height: 1px; width: 72px; background: var(--gold); }
.orn span { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* 動き：ふわっと出る・吹き出しがぽんと出る・指さしが小さくゆれる */
@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.5s both; transform-origin: left center; }
  .head-point .chara img { animation: nod 3.2s ease-in-out 1s infinite; transform-origin: 50% 100%; }
  .card:hover, .cast-card:hover { transform: translateY(-2px); 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 nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg); } }

@media (min-width: 600px) {
  .duo img { width: 190px; }
  .cast { grid-template-columns: 1fr 1fr; }
  .head-point .chara { width: 130px; }
}

.duo img { width: 140px; }
.duo .y { margin-left: -44px; }
@media (min-width: 600px) { .duo img { width: 180px; } .duo .y { margin-left: -56px; } }

/* ===== 商品カード：表紙（4:5）を左、文字を右に（2026-12-05 #販売ページ 01-P001） ===== */
.card { display: grid; grid-template-columns: 108px 1fr; gap: 0; }
.card .cover { border-right: 1px solid var(--line); }
.card .body { padding: 14px 16px 16px; }
.card h3 { font-size: 17px; }
.card .lead { font-size: 14px; line-height: 1.75; }
@media (min-width: 600px) { .card { grid-template-columns: 180px 1fr; } .card h3 { font-size: 19px; } }

/* ===== 販売ページ（キャラクターは見出しの飾りだけ。セリフは入れない＝hanbai.md にないことを足さない） ===== */
.crumb { font-size: 13px; margin-bottom: 16px; }
.crumb a { color: var(--gold-dk); }
.crumb a::before { content: "← "; }
.sales .hero { margin-bottom: 24px; }
.hero .catch-lead { font-size: 15px; color: var(--ink); margin: 0; }
.sales .hero h1 { font-size: 26px; }
.sales-cover { max-width: 360px; margin: 0 auto 20px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(31, 42, 68, 0.12); }
.price-box { background: var(--card); border: 1px solid var(--line); padding: 18px 18px 20px; 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; color: var(--gold-dk); letter-spacing: 0.12em; }
.price-line .pv { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--navy); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 20px;
  background: var(--navy); color: var(--ivory); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4.5px var(--gold);
}
.btn:hover { background: #2A3858; }
.btn.is-pending { background: #8A8F9C; box-shadow: none; cursor: not-allowed; pointer-events: none; }
.btn .pending { font-size: 12px; font-weight: 700; background: var(--ivory); color: var(--navy); padding: 1px 8px; border-radius: 3px; }
ul.checks, ul.dia { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
ul.checks li { position: relative; padding: 12px 14px 12px 44px; background: var(--card); border: 1px solid var(--line); line-height: 1.7; }
ul.checks li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border: 2px solid var(--navy); border-radius: 2px; }
ul.checks li::after { content: ""; position: absolute; left: 19px; top: 16px; width: 6px; height: 11px; border: solid var(--gold-dk); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
ul.dia li { position: relative; padding-left: 22px; line-height: 1.75; }
ul.dia li::before { content: ""; position: absolute; left: 3px; top: 0.72em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.note { font-size: 13px; color: var(--sub-ink); line-height: 1.7; }
ol.toc { list-style: none; counter-reset: t; padding: 6px 16px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); }
ol.toc li { counter-increment: t; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--line); line-height: 1.6; }
ol.toc li:last-child { border-bottom: none; }
ol.toc li::before { content: counter(t); flex: none; width: 1.4em; font-family: var(--font-head); font-weight: 700; color: var(--gold-dk); }
dl.spec, dl.faq { margin: 0 0 1em; display: grid; gap: 10px; }
dl.spec div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; font-size: 15px; }
dl.spec dt { font-weight: 700; color: var(--gold-dk); }
dl.spec dd, dl.faq dd { margin: 0; }
dl.faq div { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; }
dl.faq dt { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
dl.faq dt::before { content: "Q. "; font-family: var(--font-head); color: var(--gold-dk); }
dl.faq dd::before { content: "A. "; font-family: var(--font-head); font-weight: 700; color: var(--gold-dk); }
.confirm { border-top: 3px double var(--gold-dk); padding-top: 28px; scroll-margin-top: 12px; }
.confirm .table th { width: 40%; }
.law-link { margin: 14px 0 18px; font-size: 14px; }
.buy-wrap { margin-top: 8px; }

/* ===== 受け取りページ ===== */
.receive-box { background: var(--card); border: 1px solid var(--line); padding: 22px 18px; margin-bottom: 40px; text-align: center; }
.receive-box .hint { font-size: 13px; color: var(--sub-ink); margin: 10px 0 0; }
.nw { display: inline-block; }
@media (max-width: 520px) { .confirm .table th { width: 100%; } }
