/* 恋する命式 web — the same KOISURU DESIGN SYSTEM as the app (live5_app/koisuru-meishiki/DESIGN_SYSTEM.md): 生成り paper, 藍墨, 紅 actions, 金 premium, Mincho titles */
:root { --bg: #FAF6F0; --night: #221C38; --card: #FFFFFF; --rose: #C8455F; --roseSoft: #F6E3E6; --indigo: #44508F; --gold: #B8913A; --seal: #C0503A;
  --text: #2B2233; --sub: #766A72; --line: #E8DED3; --mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(72px + env(safe-area-inset-bottom)) env(safe-area-inset-left); }
main, .top, .foot { max-width: 560px; margin: 0 auto; padding: 0 18px; }
.top { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; }
.brand { font: 700 26px/1.3 var(--mincho); color: var(--night); text-decoration: none; letter-spacing: 3px; }
.sub { color: var(--sub); font-size: 12px; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; }
.hero { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 14px 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card, a.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 10px 0; color: inherit; text-decoration: none; }
a.card { padding: 0; overflow: hidden; }
a.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }
a.card .hook { display: block; font-weight: 800; padding: 8px 10px 0; line-height: 1.4; }
a.card .title { display: block; color: var(--rose); font-size: 12.5px; font-weight: 700; padding: 2px 10px 10px; }
.phero img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: top; border-radius: 14px; }
.ptitle { color: var(--rose); font-weight: 700; }
.fld { display: block; margin: 10px 0; } .fld span { display: block; font-weight: 700; font-size: 14px; }
.fld input { width: 100%; font-size: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
fieldset { border: 1px solid var(--line); } legend { font-weight: 800; }
.row { display: flex; flex-wrap: wrap; gap: 8px; } .pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; }
.chk { display: block; margin: 6px 0; color: var(--indigo); }
.cta, .cta2 { display: block; width: 100%; border: 0; border-radius: 12px; padding: 15px; font-size: 16px; font-weight: 700; margin: 10px 0; cursor: pointer; }
.cta { background: var(--rose); color: #fff; } .cta2 { background: #fff; color: var(--rose); border: 1px solid var(--rose); }
.err { color: #C62828; } .fine { color: var(--sub); font-size: 12px; } .pre { white-space: pre-line; }
.state { color: var(--indigo); font-weight: 700; font-size: 13px; }
.locked .lcard { border: 1px solid var(--gold); border-radius: 14px; background: var(--card); padding: 12px; margin: 8px 0; display: grid; gap: 2px; }
.lno { color: var(--gold); font-weight: 700; font-size: 12px; } .llearn { color: var(--sub); font-size: 13px; }
#sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 18px calc(8px + env(safe-area-inset-bottom)); background: rgba(250,246,240,.97); border-top: 1px solid var(--line); }
#sticky .cta { max-width: 524px; margin: 0 auto; }
.reveal { border: 1px solid var(--gold); color: var(--gold); text-align: center; border-radius: 14px; padding: 10px; font: 800 15px var(--mincho); background: #FBF5E6; animation: rv 1s ease-out; }
@keyframes rv { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.toc a { display: block; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.chapter { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 8px; }
.chapter .charts { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.chno { color: var(--gold); font-weight: 800; margin: 8px 0 0; } .key { color: var(--rose); font-weight: 800; font-size: 17px; }
.basis { background: #F4EEDF; border-radius: 10px; padding: 10px 12px; } .basis b { color: var(--gold); } .basis p { margin: 2px 0; font-size: 13.5px; }
.next { display: block; text-align: center; border: 1px solid var(--rose); color: var(--rose); border-radius: 12px; padding: 12px; margin: 12px 0; text-decoration: none; font-weight: 700; }
.totoc { display: block; text-align: right; color: var(--indigo); font-size: 13px; } .end { text-align: center; color: var(--sub); }
.pillars span { display: inline-block; background: var(--night); color: #fff; border-radius: 8px; padding: 4px 8px; margin: 2px; }
.score { font-size: 28px; font-weight: 800; color: var(--rose); } .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--indigo); }
.mrow { display: grid; grid-template-columns: 70px 1fr 32px; gap: 8px; align-items: center; margin: 4px 0; font-size: 13px; }
.sw { display: inline-block; width: 28px; height: 28px; border-radius: 6px; vertical-align: middle; }
.panel { margin: 10px 0; } .panel img { width: 100%; border-radius: 10px; } .panel figcaption { background: var(--bg); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.trow { display: flex; gap: 10px; align-items: center; margin: 10px 0; } .teaser { width: 84px; height: 126px; object-fit: cover; border-radius: 10px; }
.portrait { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; padding: 18px; } .modal .card { width: 100%; max-width: 560px; margin: 0 auto 40px; }
.foot { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; } .foot a { margin-right: 12px; color: var(--sub); }
/* LOCKED_CARD_TAP (Owner 2026-09-28): locked chapters / blurred person rows are buttons (chevron + press feedback) that lead to the purchase */
.locked .lcard { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; position: relative; padding-right: 32px; }
.locked .lcard .go, .trow.tap::after { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold); }
.locked .lcard:active, .trow.tap:active { background: #FBF5E6; }
.trow.tap { position: relative; cursor: pointer; border-radius: 12px; padding-right: 28px; } .trow.tap::after { content: "›"; }
/* LIVE5 membership: LINE button colours from the official LINE Login button guideline (#06C755; disabled = white + grey). The official icon asset is
   added when the LINE channel exists -- no self-drawn LINE icon */
.member { margin: 12px 0; } .line-on { display: block; text-align: center; background: #06C755; color: #fff; border-radius: 12px; padding: 14px; font-weight: 700; text-decoration: none; }
.line-on:hover { background: #05B34C; } .line-off { display: block; width: 100%; background: #fff; color: rgba(0,0,0,.4); border: 1px solid rgba(229,229,229,.6); border-radius: 12px; padding: 14px; font-weight: 700; }

/* くわしい読み解き (2026-09-28): conclusion stands out, the calculation is calm, periods / actions are lists; long words always wrap */
.insight .kicker { color: #B8913A; font-weight: 800; letter-spacing: 1px; }
.insight .lead { border-left: 4px solid #C8455F; background: #F6E3E6; border-radius: 8px; padding: 10px 12px; font-weight: 800; }
.insight .why { background: #F4EEDF; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.insight .why b, .insight .timing b, .insight .acts b { color: #44508F; display: block; margin-top: 6px; }
.insight .timing, .insight .acts { border-top: 1px solid #E8DED3; margin-top: 8px; padding-top: 4px; }
.card, .card p, .card h3 { overflow-wrap: anywhere; word-break: normal; }

/* 2026-09-29: membership / checkout / Owner-QA. Same tokens, no new colours except the official LINE green (member pages) */
.top { flex-wrap: wrap; } .toplink { margin-left: auto; font-size: 13px; color: var(--indigo); text-decoration: none; }
.hero .cta { text-decoration: none; text-align: center; } a.cta, a.cta2 { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.center { text-align: center; } .or { text-align: center; color: var(--sub); font-size: 13px; margin: 14px 0; } .member-in { text-align: center; }
.okmsg { background: #EEF6EE; border-radius: 10px; padding: 10px 12px; color: #2E6B34; font-weight: 700; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--sub); font-size: 14px; flex-shrink: 0; } .kv b { font-size: 14px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv.total b { font-size: 20px; color: var(--rose); }
.modal .sheet { max-height: 88vh; overflow-y: auto; }
.paym { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; }
.paym input { margin-top: 5px; flex-shrink: 0; } .paym-l { display: grid; gap: 6px; min-width: 0; }
.brands { display: flex; flex-wrap: wrap; gap: 6px; } .brand-chip { border: 1px solid #CFC6BD; border-radius: 6px; padding: 2px 8px; font-size: 12px; background: #fff; white-space: nowrap; }
.testtag { background: #FFF3C4; color: #6B4E00; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; font-weight: 700; }
.done h2 { color: var(--rose); } .hist { width: 100%; border-collapse: collapse; font-size: 13px; } .hist td, .hist th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
.wrap { overflow-x: auto; }
.qa-banner { background: #FFF3C4; color: #6B4E00; text-align: center; font-size: 12.5px; padding: 6px 12px; }
small.ko { display: block; color: #5B6B8C; font-size: 12px; line-height: 1.5; font-weight: 400; margin-top: 2px; }
/* NEW-MEMBER PRICE (2026-09-29): calm, same tokens -- normal price struck through in grey, member price in 紅, no flashing, no badge animation */
.priceblk { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.priceblk .was { color: var(--sub); margin: 2px 0; } .priceblk .was s { color: var(--sub); }
.priceblk .now { margin: 2px 0; } .priceblk .now b { color: var(--rose); font-size: 22px; } .priceblk .now small { color: var(--sub); }
.priceblk .tag { border: 1px solid var(--rose); color: var(--rose); border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.priceblk .invite { color: var(--indigo); margin: 6px 0; } .priceblk .invite b { color: var(--rose); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cta2.small { padding: 11px 6px; font-size: 14px; margin: 4px 0; }
.timer { font-variant-numeric: tabular-nums; }
/* 「購入済み」 (2026-09-29): the account's purchased readings; printing = the browser's 「PDFとして保存」 of the reading only */
.pitem { display: grid !important; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 14px !important; text-decoration: none; color: inherit; }
.pitem .fine { grid-column: 1; } .pitem .go { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--gold); font-size: 22px; }
@media print { .top, .foot, #sticky, .no-print, .totoc, .next, .qa-banner, small.ko { display: none !important; } body { padding: 0; background: #fff; } .chapter { break-inside: auto; } }

/* HOME CTA story + 「恋する命式とは？」 + form "why" (2026-09-29). Phones: 1 -> 2 -> 3 stacked; wide screens: left to right with connectors. Calm: no
   blinking, no urgency; the main CTA keeps its look. */
.story { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.story .st { position: relative; background: #FBF7FF; border: 1px solid #E9E0FA; border-radius: 12px; padding: 10px 12px 10px 40px; }
.story .st3 { background: transparent; border: 0; padding: 0 0 0 40px; }
.story .sn { position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--night); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 20px; }
.story .st3 .sn { background: var(--rose); top: 16px; }
.story .sq { margin: 0; font: 700 15.5px/1.5 var(--mincho); color: var(--text); } .story .sd { margin: 2px 0 0; font-size: 13.5px; color: var(--sub); }
.story .st + .st::before { content: "↓"; position: absolute; left: 18px; top: -15px; color: var(--gold); font-size: 12px; }
.story .cta { margin: 4px 0; }
@media (min-width: 768px) {   /* wide screens: 1 › 2 side by side (read left to right), then 3 = the main CTA across the width. Page width unchanged. */
  .story { grid-template-columns: 1fr 1fr; gap: 10px 22px; }
  .story .st:nth-child(2)::before { content: "›"; left: -16px; top: 50%; transform: translateY(-50%); font-size: 20px; }
  .story .st3 { grid-column: 1 / -1; }
  .story .st3::before { left: 50% !important; }
}
.intro summary { list-style: none; cursor: pointer; } .intro summary::-webkit-details-marker { display: none; }
.intro summary h2 { margin: 0; } .intro .more { color: var(--indigo); font-weight: 700; font-size: 14px; }
.intro[open] .more { display: none; } .intro .qa { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; } .intro .qa h3 { font-size: 15px; margin: 4px 0; }
.formwhy { background: #FBF7FF; border: 1px solid #E9E0FA; border-radius: 12px; padding: 12px; margin: 12px 0; }
.formwhy b { color: var(--indigo); } .formwhy p { margin: 4px 0; font-size: 13.5px; } .formwhy .pt { font-weight: 700; margin-top: 8px; }
.formwhy .chips { display: flex; flex-wrap: wrap; gap: 6px; } .formwhy .chips span { border: 1px solid #D9CCE8; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; color: var(--indigo); background: #fff; }
.social .voice { background: var(--bg); border-radius: 10px; padding: 8px 10px; }

/* 「アプリとして使う」 (HOME bottom, 2026-09-29): quieter than the free / member / purchase CTAs */
/* the install guide's parts are switched with the hidden attribute; .card / .cta2 set display, which would otherwise override it and show a
   button that does nothing (seen 2026-09-29 in the iPhone view) */
.install[hidden], .install [hidden] { display: none !important; }
.install { margin-top: 22px; } .install h2 { font-size: 16px; } .install p { font-size: 14px; line-height: 1.8; color: var(--ink2, #5A4E58); }
.install .steps { background: #F4EEE6; border-radius: 10px; padding: 10px 12px; } .install .cta2 { font-size: 15px; padding: 12px; }

/* policies / consent (2026-09-29) */
.policy h2 { font-size: 16px; margin-top: 20px; } .policy li { margin: 6px 0; line-height: 1.8; } .policy p { line-height: 1.8; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; } .ptable th, .ptable td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ptable th { width: 34%; font-weight: 700; } @media (max-width: 520px) { .ptable th, .ptable td { display: block; width: auto; } .ptable th { border-bottom: 0; padding-bottom: 0; } }
.consent { background: #F4EEE6; border-radius: 10px; padding: 10px 12px; margin: 10px 0; } .consent .chk { display: block; margin: 6px 0; }
.refundbox { background: #F4EEE6; border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-size: 13px; line-height: 1.7; } .refundbox p { margin: 4px 0; }
.chk.ack { display: flex; gap: 8px; align-items: center; font-weight: 700; margin: 8px 0; } .imgnote a { margin-left: 6px; }

/* PRICE_EVERYWHERE (Owner 2026-09-29): card / landing price lines */
.cprice { display: block; padding: 0 10px 4px; line-height: 1.35; }
#landing-price .cprice { padding: 0; }
.cprice .cw { display: block; color: var(--sub); font-size: 12px; } .cprice .cw s { color: var(--sub); }
.cprice .cn { display: block; } .cprice b { color: var(--rose); font-size: 17px; } .cprice small { color: var(--sub); font-size: 11px; }
.cprice .tag { border: 1px solid var(--rose); color: var(--rose); border-radius: 5px; padding: 0 5px; font-size: 11px; font-weight: 700; }
.cprice .cf { display: block; color: var(--sub); font-size: 11px; }
a.card .peek { display: block; color: var(--sub); font-size: 12px; padding: 0 10px 10px; }

/* PERSONAL CONTEXT form (Owner 2026-09-29) */
.fld select { width: 100%; font-size: 16px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.adultbox { background: #FBF7FF; border: 1px solid #E9E0FA; border-radius: 12px; padding: 10px; margin: 8px 0; }
.adultbox[hidden] { display: none; }

/* TOP CTA TICKER (Owner 2026-09-29) -- the Naco homepage ticker principle (partners_site.py .hero-ticker: two copies of one segment, translateX 0 -> -50 %).
   2026-09-30 Owner P0: ONE fixed-height line -- no phrase ever wraps, the band never changes height, the page below never moves; no phrase swapping
   (reduced motion = one still line). The Owner-QA Korean helper sits on the same line after each phrase. */
.cta-ticker { display: block; position: relative; overflow: hidden; height: 38px; background: var(--night, #221C38); color: #F4E9FF; text-decoration: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cta-ticker .track { display: flex; align-items: center; height: 38px; width: max-content; white-space: nowrap; animation: koisuru-ticker 95s linear infinite; will-change: transform; }
.cta-ticker .seg { display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.cta-ticker .seg span { font-size: 13.5px; line-height: 18px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.cta-ticker .seg .sep { margin: 0 16px; color: #E8C77A; font-weight: 400; font-size: 11px; }
@keyframes koisuru-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cta-ticker .track { animation: none; padding: 0 14px; } .cta-ticker .seg + .seg { display: none; } }
.cta-ticker .ko { display: inline; margin-left: 6px; font-size: 11px; line-height: 18px; font-weight: 400; color: #C9D3EA; white-space: nowrap; }
/* 鑑定中 presentation (Owner 2026-09-29) */
.loading { background: var(--night, #221C38); color: #fff; border-radius: 16px; padding: 16px 16px 18px; margin: 10px 0; }
.loading .ltitle { font-size: 18px; font-weight: 700; text-align: center; margin: 4px 0 10px; }
.loading .lmoon { text-align: center; color: #E8C77A; letter-spacing: 4px; font-size: 13px; }
.loading .lbar { display: flex; align-items: center; gap: 8px; } .loading .ltrack { flex: 1; height: 10px; border-radius: 5px; background: rgba(255,255,255,.14); overflow: hidden; }
.loading .lfill { height: 10px; width: 0; border-radius: 5px; background: linear-gradient(90deg, #F4A6B8, #E9688C 55%, #9B6BD8); transition: width .42s ease-out; }
.loading .lpct { width: 44px; text-align: right; color: #F6CFDB; font-weight: 800; font-variant-numeric: tabular-nums; }
.loading .lmsg { text-align: center; color: #E4D6F5; font-size: 13px; margin: 8px 0; }
.loading .lvis { min-height: 210px; display: flex; align-items: center; justify-content: center; }
.loading .lsteps { margin: 8px 0 0; padding: 0; list-style: none; } .loading .lsteps li { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; color: rgba(255,255,255,.38); }
.loading .lsteps li.done { color: #fff; } .loading .lsteps li.now { color: #FFD6E2; font-weight: 800; }
.loading .ldot { width: 18px; height: 18px; border-radius: 50%; border: 1.2px dashed rgba(255,255,255,.3); flex-shrink: 0; margin-top: 2px; text-align: center; font-size: 11px; line-height: 16px; }
.loading li.done .ldot { background: #E9688C; border: none; color: #fff; } .loading li.now .ldot { background: #FFD6E2; border: 2px solid #F08DAA; box-shadow: 0 0 0 4px rgba(240,141,170,.35); animation: lglow 1.2s ease-in-out infinite; }
@keyframes lglow { 50% { box-shadow: 0 0 0 7px rgba(240,141,170,.15); } }
@media (prefers-reduced-motion: reduce) { .loading li.now .ldot { animation: none; } .loading .lfill { transition: none; } }
.loading .lval { display: block; color: #F6CFDB; font-size: 12.5px; font-weight: 400; }
.loading .pillars4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.loading .pc { border: 1px solid rgba(232,199,122,.55); border-radius: 10px; padding: 8px 0; text-align: center; } .loading .pc.dm { border-color: #F08DAA; background: rgba(240,141,170,.14); }
.loading .pc small { display: block; color: rgba(255,255,255,.6); font-size: 11px; } .loading .pc b { display: block; font-size: 21px; font-weight: 500; } .loading .pc i { font-style: normal; color: #E8C77A; font-size: 11px; }
.loading .cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.loading .cal div { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 6px 0; text-align: center; font-size: 13px; }
.loading .cal .best { border-color: #F08DAA; background: rgba(240,141,170,.2); } .loading .cal .care { border: 1px dashed rgba(155,107,216,.8); } .loading .cal .now { outline: 1.5px solid #E8C77A; }
.loading .cal small { display: block; font-size: 10px; color: rgba(255,255,255,.6); } .loading .cap { color: rgba(228,214,245,.8); font-size: 11.5px; text-align: center; margin-top: 6px; }
.loading .ldone { text-align: center; } .loading .ldone b { display: inline-block; width: 44px; height: 44px; line-height: 44px; border-radius: 50%; background: #E9688C; font-size: 22px; }

/* Owner QA person-picture trace (QA browser only) -- scrolls sideways inside its card on a phone, never the page */
.qa-trace .tracewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.qa-trace table.trace { border-collapse: collapse; font-size: 12px; min-width: 640px; }
.qa-trace table.trace th, .qa-trace table.trace td { border: 1px solid #e5dcef; padding: 4px 6px; text-align: left; vertical-align: top; }

/* 恋愛傾向レーダー in the result (1.2.8) */
.rchart { text-align: center; }
.rbars { list-style: none; padding: 0; margin: 8px 0 0; }
.rbars li { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 13.5px; }
.rbars li span { width: 7.5em; flex-shrink: 1; }
.rbars li i { flex: 1; height: 8px; border-radius: 4px; background: #FBE7EC; overflow: hidden; display: block; }
.rbars li i b { display: block; height: 8px; background: #C8375A; border-radius: 4px; }
.rbars li em { width: 2.2em; text-align: right; font-style: normal; font-weight: 800; }
/* BOTTOM TABS + お支払い + CHECKOUT (Owner 2026-09-30): ホーム / 鑑定 / お支払い / 購入済み / マイページ fixed at the bottom with the safe area; the sticky
   purchase bar floats ABOVE the tabs with its own gap (never touching / overlapping); method tiles 3 per phone row, 2 on very narrow screens */
body.has-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line);
  padding: 4px env(safe-area-inset-right) calc(4px + env(safe-area-inset-bottom)) env(safe-area-inset-left); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; color: var(--sub); text-decoration: none; font-size: 11px; min-width: 0; }
.tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--rose); font-weight: 700; }
body.has-tabbar #sticky { bottom: calc(66px + env(safe-area-inset-bottom)); left: 10px; right: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); z-index: 19; }
body.has-tabbar main#product { padding-bottom: 88px; }
.modal { z-index: 50; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.pgroup { font-size: 14px; color: var(--sub); margin: 16px 0 8px; font-family: inherit; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ptile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 84px; padding: 10px 6px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 14px; font: inherit; color: var(--text); text-align: center; min-width: 0; }
button.ptile { cursor: pointer; } button.ptile.off { cursor: default; opacity: .62; }
.ptile b { font-size: 13px; line-height: 1.35; margin-top: 3px; word-break: break-word; } .ptile small { font-size: 11px; color: var(--sub); margin-top: 2px; }
.ptile .pglyph { font-size: 18px; color: var(--sub); line-height: 1; } .ptile.ok small { color: #1E7A4C; }
.ptile .tick { display: none; position: absolute; top: 4px; right: 8px; color: var(--rose); font-weight: 900; }
.ptile.on { border-color: var(--rose); background: var(--roseSoft); box-shadow: 0 0 0 2px rgba(200,69,95,.18); } .ptile.on .tick { display: block; } .ptile.on .pglyph { color: var(--rose); }
.ptile.brand { min-height: 58px; background: #FBF8F4; }
.pmore { max-height: 0; overflow: hidden; transition: max-height .35s ease; } .pmore.open { overflow: visible; }
.pmore-btn { display: block; margin: 12px auto 4px; background: none; border: 0; color: var(--indigo); font: 700 14.5px/1.6 inherit; padding: 8px 18px; cursor: pointer; }
.paystatus { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.paystatus b { color: var(--indigo); text-align: right; }
.buycard { display: flex; gap: 12px; background: #FBF8F4; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 6px 0 10px; }
.buycard img { width: 64px; height: 80px; object-fit: cover; object-position: top; border-radius: 10px; flex-shrink: 0; }
.buycard b { display: block; font-size: 16px; } .buycard .was { margin: 4px 0 0; font-size: 12.5px; color: var(--sub); } .buycard .mem { margin: 0; font-size: 13px; color: var(--rose); font-weight: 800; }
details.fold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; padding: 4px 0; }
details.fold summary { cursor: pointer; color: var(--indigo); font-weight: 700; padding: 8px 0; }
.half { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .half .cta, .half .cta2 { margin: 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .pmore { transition: none; } }
@media (max-width: 340px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }

/* PAY.JP TEST card field (payjp.js iframe) inside the checkout sheet */
.payjp-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; margin: 10px 0; background: #fff; min-height: 22px; }
/* CUSTOMER INSTALL GUIDE /install (Owner P0 2026-09-30) */
.install-head { text-align: center; }
.install-head .install-icon { display: block; margin: 4px auto 10px; border-radius: 22px; box-shadow: 0 2px 10px rgba(34,28,56,.18); }
/* HOME KEY VISUAL (Owner 2026-09-30 UI-regression order): the app's night-sky 「恋する命式」 picture heads the HOME hero card, same art / crop / height as
   the app (170 px band, the picture shifted up by 27 % of its height = 40.5 % of the card width) */
.hero-kv { margin: -16px -16px 14px; height: 170px; overflow: hidden; border-radius: 14px 14px 0 0; background: var(--night, #221C38); }
.hero-kv img { display: block; width: 100%; height: auto; margin-top: -40.5%; }
