/* 相性精密診断の入口・プランの画面・診断の見本（src/pair.js）の見た目。公開用の build だけがつなぐ（学校版・配布用の1枚には入らない）。
   試作（src/pairproto.css・fix/1013-pair-proto）から、本番に出す部分を移した（試作の帯・部品の印の見た目は外した）。
   色は本体の変数（--bg・--panel・--fg・--muted・--line・--gold・--selected）をそのまま使う */
body.pp-open #dock, .pp-hide { display: none !important; }
.pp-root[hidden] { display: none !important; }

/* ヘッダーの入口：オルビナの全身（正方形の絵）＋下に字「相性診断」（2026-10-14 案7。お知らせ・設定と同じ「絵＋字」の形・うすい黄緑の地と縁） */
.v7-header .v7-header-right .pp-orbina-entry { box-sizing: border-box; padding: 0; width: 52px; min-width: 52px; height: 48px; min-height: 48px; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #B9C99A; border-radius: 10px; background: #F3F7E8; color: #2F4A22; cursor: pointer; }
.v7-header .v7-header-right .pp-orbina-entry:hover { background: #EAF1D8; }
.v7-header .v7-header-right .pp-orbina-entry:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pp-orbina-entry-img { width: 32px; height: 32px; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.pp-orbina-entry-label { display: block; font-size: 10px; line-height: 1.2; font-weight: 600; letter-spacing: 0; white-space: nowrap; color: #2F4A22; pointer-events: none; }
@media (max-width: 359px) {
  .v7-header .v7-header-right .pp-orbina-entry { width: 46px; min-width: 46px; height: 46px; min-height: 46px; }
  .pp-orbina-entry-img { width: 28px; height: 28px; }
}
/* 2026-10-14 巡回 N3：字は 11px（決まりの下限）・枠は正方形 52×52 */
.v7-header .v7-header-right .pp-orbina-entry { height: 52px; min-height: 52px; }
.pp-orbina-entry-label { font-size: 11px; }
@media (max-width: 359px) { .v7-header .v7-header-right .pp-orbina-entry { height: 46px; min-height: 46px; } }
/* はじめの3日だけの吹き出し（期間は画面で言わない・× で消せる・光らない・動かない）。
   2026-10-14 巡回 N1：本文に重ねず、ヘッダーのすぐ下の行（.pp-tip-row）に置いて本文を押し下げる */
.pp-tip-row { box-sizing: border-box; max-width: var(--page-width, 784px); margin: 0 auto; padding: 12px var(--page-pad, 16px) 4px; display: flex; justify-content: flex-end; }
.pp-tip-row[hidden] { display: none; }
.pp-tip-row .pp-tip { position: relative; }
.pp-tip { position: absolute; z-index: 55; width: min(296px, calc(100vw - 16px)); box-sizing: border-box; padding: 10px 44px 10px 14px; border: 1px solid #B9C99A; border-radius: 12px; background: #FFFDF2; color: var(--fg); box-shadow: 0 10px 24px -16px rgba(10, 32, 24, .5); font-size: 15px; line-height: 1.6; }
.pp-tip[hidden] { display: none; }
.pp-tip::before { content: ""; position: absolute; top: -7px; left: var(--tail, 24px); width: 12px; height: 12px; background: #FFFDF2; border-left: 1px solid #B9C99A; border-top: 1px solid #B9C99A; transform: rotate(45deg); }
.pp-tip-text { margin: 0; font-weight: 600; }
.pp-tip-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; }
.pp-tip-x:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.pp-menu { position: absolute; right: 12px; z-index: 60; width: min(320px, calc(100vw - 24px)); background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 16px 40px -20px rgba(10, 32, 24, .45); }
.pp-menu-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pp-menu-fig { width: 56px; height: 56px; aspect-ratio: 1 / 1; object-fit: contain; }
.pp-menu-say { margin: 0; font-family: var(--serif); }
.pp-menu-item { display: block; width: 100%; text-align: left; padding: 12px 14px; margin: 6px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font-size: 1rem; font-weight: 600; cursor: pointer; }
.pp-menu-item:hover, .pp-menu-item:focus-visible { background: var(--selected); }
.pp-menu-sub { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.pp-menu-close { margin-top: 4px; background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; text-decoration: underline; }


.pp-screen h1 { margin-top: 4px; }
.pp-back { margin-bottom: 4px; }
.pp-back-b { background: none; border: 0; color: var(--fg); padding: 8px 0; cursor: pointer; font-size: .95rem; }
.pp-who { color: var(--muted); margin-top: -4px; }
.pp-tools { display: flex; gap: 8px; justify-content: flex-end; margin: 4px 0 8px; }
.pp-mini { cursor: pointer; }

/* 章（開け閉め） */
.pp-chap { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin: 10px 0; overflow: hidden; }
.pp-chap > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.5; }
.pp-chap > summary::-webkit-details-marker { display: none; }
.pp-chap[open] > summary { border-bottom: 1px solid var(--line); }
.pp-chap-no { flex: none; min-width: 1.6em; color: var(--gold); font-family: var(--serif); font-weight: 700; }
.pp-chap-body { padding: 4px 16px 16px; }
.pp-chap-body p { line-height: 1.85; }
.pp-h3 { font-family: var(--serif); font-size: 1.02rem; margin: 18px 0 6px; padding-left: 10px; border-left: 3px solid var(--gold); }
.pp-list { padding-left: 1.3em; line-height: 1.8; }
.pp-list li { margin: 4px 0; }

/* オルビナのひと言 */
.pp-voice { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.pp-voice-fig { width: 48px; height: 48px; flex: none; aspect-ratio: 1 / 1; object-fit: contain; }
.pp-voice-bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; }
.pp-voice-bubble p { margin: 0; }
.pp-voice-who { font-size: .78rem; color: var(--muted); }

/* ふたりの大人の姿（正方形） */
.pp-art { display: flex; gap: 12px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.pp-art-one { display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(46%, 180px); }
.pp-art-one img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 12px; background: var(--bg); }
.pp-art-cap { font-size: .82rem; color: var(--muted); }

.pp-callout { background: var(--selected); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.pp-callout p { margin: 4px 0; }

/* 表 */
.pp-table-wrap { overflow-x: auto; margin: 10px 0; -webkit-overflow-scrolling: touch; }
.pp-table { border-collapse: collapse; width: 100%; font-size: .86rem; line-height: 1.55; }
.pp-table th, .pp-table td { border-bottom: 1px solid var(--line); padding: 6px 6px; text-align: left; vertical-align: top; }
.pp-table thead th { font-size: .78rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line); }
.pp-month { font-size: .8rem; }
.pp-month td, .pp-month th { padding: 4px 4px; white-space: nowrap; }
.pp-month tr.is-gap td { background: rgba(176, 106, 44, .1); font-weight: 600; }
.pp-lv { border-radius: 4px; }
.pp-lv-1 { color: var(--muted); }
.pp-lv-4 { color: #2f7a4f; font-weight: 600; }
.pp-lv-5 { color: #b1462e; font-weight: 700; }

/* プランの表 */
.pp-plan-table th[scope="row"] { font-weight: 600; font-size: .82rem; min-width: 7.5em; }
.pp-plan-table td { font-size: .82rem; }
.pp-plan-table .pp-col-3 { background: rgba(137, 102, 35, .07); }
.pp-plan-table td.is-none { color: var(--muted); text-align: center; }
.pp-buy { gap: 8px; flex-wrap: wrap; }
.pp-soon[disabled] { opacity: .6; cursor: not-allowed; }
.pp-new { border: 1px solid var(--gold); border-radius: 14px; padding: 12px 16px; }

/* 入口 */
.pp-date { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-select { min-height: 44px; font-size: 1rem; padding: 6px 10px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--panel); color: var(--fg); }
.pp-check, .pp-radio { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.pp-msg { color: var(--error); font-weight: 600; }
.pp-locked { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; color: var(--muted); background: var(--bg); }
.pp-locked-tag { margin-left: auto; font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
@media (max-width: 400px) {
  .pp-chap-body { padding: 4px 12px 14px; }
}

/* プランの表：スマホの幅では、1行ずつのカードに（4列だと神化の列が画面の外へ出るため） */
@media (max-width: 640px) {
  .pp-plan-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pp-plan-table, .pp-plan-table tbody, .pp-plan-table tr, .pp-plan-table th, .pp-plan-table td { display: block; width: 100%; }
  .pp-plan-table tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: var(--panel); }
  .pp-plan-table th[scope="row"] { background: var(--selected); font-size: .9rem; padding: 8px 12px; border: 0; }
  .pp-plan-table td { display: flex; gap: 10px; padding: 6px 12px; border: 0; border-top: 1px solid var(--line); font-size: .86rem; }
  .pp-plan-table td::before { content: attr(data-label); flex: none; width: 6.2em; color: var(--muted); font-size: .78rem; padding-top: 2px; }
  .pp-plan-table td.is-none { text-align: left; }
}

/* 章の見出し：番号と見出しを左にそろえ、開け閉めの丸は右はし（本体の .v7-fold の丸をそのまま使う） */
html details.v7-fold.pp-chap > summary { justify-content: flex-start; text-align: left; padding: 12px 14px; gap: 10px; }
html details.v7-fold.pp-chap > summary::after { margin-left: auto; }
.pp-chap-title { flex: 1 1 auto; min-width: 0; line-break: strict; text-wrap: pretty; }
.pp-month thead th { white-space: normal; min-width: 2.6em; }
.pp-subfold { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin: 10px 0; background: var(--bg); }

/* ==== 2026-10-14 見やすさ（オーナー「かなり見にくい」・375px の写真を見て直した所） ====
   ① 開け閉めの丸い＋／− → 本体と同じ若葉の色の「ひらく／とじる」（style.claude.css 1013-toggle）
   ② 章の中の文：16px・行間 1.95・段落の間 1em。改行で続いていた文は1行ずつの段落に（pp-paras）
   ③ 太字だけの行（「季節から見ると…」「交代で支え合う恋」など）は小見出しに（本文より大きく・上に余白）
   ④ 章の見出しの下の小見出し（pp-h3）は上の余白を広げる
   ⑤ 表はスマホで1行ずつのカード（「三分／咲き」のような語の途中の折れをなくす）。31日の表は横に動かす表のまま、字を大きく・左の列を止める
   ⑥ 目次（押すとその章をひらく）・はじめは「はじめに」だけ開く・章の終わりに「この章をとじる」 */
.pp-chap { border-radius: 16px; margin: 14px 0; }
.pp-chap > summary.pp-chap-sum { font-size: 1.15rem; line-height: 1.55; }
html details.v7-fold.pp-chap > summary { padding: 14px 14px 12px 16px; gap: 6px 10px; align-items: center; }
.pp-chap-no { min-width: 1.4em; }
.pp-chap-body { padding: 8px 18px 18px; font-size: 16px; }
.pp-chap-body p, .pp-chap-body li { font-size: 16px; line-height: 1.95; }
.pp-chap-body p { margin: 0 0 1em; }
.pp-paras { margin: 0 0 1em; }
.pp-paras p:last-child { margin-bottom: 0; }
.pp-lead { font-weight: 700; font-size: 1.06rem; line-height: 1.6 !important; margin: 1.6em 0 .5em !important; color: var(--fg); }
.pp-paras > .pp-lead:first-child { margin-top: .4em !important; }
.pp-labeled strong:first-child { display: inline-block; margin-right: .2em; padding: 0 .4em; border-radius: 6px; background: var(--selected); font-weight: 700; }
.pp-h3 { font-size: 1.1rem; line-height: 1.6; margin: 32px 0 10px; padding-left: 12px; }
.pp-chap-body > .pp-h3:first-child { margin-top: 12px; }
.pp-list { line-height: 1.95; margin: 0 0 1em; }
.pp-list li { margin: 0 0 10px; }
.pp-voice-bubble { padding: 10px 14px; }
.pp-voice-bubble p { line-height: 1.9; }
.pp-callout { padding: 14px 16px; margin: 14px 0; }
html[lang] body .pp-chap-close { display: flex; width: fit-content; margin: 24px 0 0 auto; }
.pp-tools { flex-wrap: wrap; margin: 8px 0 4px; }
html[lang] body .pp-tools .v7-toggle-btn { margin: 0; }
/* 目次 */
.pp-toc { margin: 12px 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.pp-toc-h { margin: 0 0 6px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.pp-toc-list { list-style: none; margin: 0; padding: 0; }
.pp-toc-list li + li { border-top: 1px solid var(--line); }
.pp-toc-b { display: flex; gap: 10px; align-items: baseline; width: 100%; min-height: 44px; padding: 10px 4px; border: 0; background: transparent; color: var(--fg); text-align: left; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.pp-toc-b:hover { background: var(--selected); }
.pp-toc-no { flex: none; min-width: 1.4em; color: var(--gold); font-family: var(--serif); font-weight: 700; }
.pp-toc-t { flex: 1 1 auto; min-width: 0; }
/* 表 */
.pp-table { font-size: .95rem; line-height: 1.7; }
.pp-table th, .pp-table td { padding: 8px 8px; }
.pp-month { font-size: .9rem; }
.pp-month td, .pp-month th { padding: 6px 8px; }
.pp-month th:first-child, .pp-month td:first-child { position: sticky; left: 0; background: var(--panel); z-index: 1; }
.pp-month tr.is-gap td:first-child { background: #F5E9DC; }
@media (max-width: 640px) {
  .pp-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pp-cards, .pp-cards tbody, .pp-cards tr, .pp-cards td { display: block; width: 100%; box-sizing: border-box; }
  .pp-cards tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: var(--panel); }
  .pp-cards td { display: flex; gap: 10px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); font-size: .95rem; }
  .pp-cards td:first-child { border-top: 0; background: var(--selected); font-weight: 700; }
  .pp-cards td:not(:first-child)::before { content: attr(data-label); flex: none; width: 6.6em; color: var(--muted); font-size: .85rem; padding-top: 2px; }
  .pp-cards td:empty { display: none; }
}
@media (max-width: 400px) {
  .pp-chap-body { padding: 6px 14px 16px; }
}
/* その人の絵の好み：誕生日の板（1013 A 群 .v1013-picker-sex）と同じ形（2つ並びの 48px のボタン・選んだ方は地の色と縁） */
.pp-sex { margin: 18px 0 4px; }
.pp-sex .v7-birth-label { margin: 0 0 4px; font-weight: 700; }
html[lang] body .pp-sex .v7-sex-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
html[lang] body .pp-sex .v7-sex-opt { min-height: 48px; border: 1px solid var(--control-line, var(--line)); border-radius: 16px; background: var(--panel); font-size: 16px; color: var(--fg); }
html[lang] body .pp-sex .v7-sex-opt[aria-pressed="true"] { background: var(--selected); border-color: var(--focus, currentColor); font-weight: 700; }
/* 章の見出し：番号と題は1行目に並べ、題の中で折り返す（ボタンは右。上の共通の規則の詳細度が高いので !important） */
html[lang] body details.v7-fold.pp-chap > summary { flex-wrap: nowrap !important; }
.pp-chap-title { flex: 1 1 0; }

/* 本番で足したもの（2026-10-14）：入れた誕生日の扱いの1行・見本の案内 */
.pp-private { margin: 4px 0 12px; padding: 8px 12px; border-left: 3px solid var(--toggle-line, #76915A); background: var(--selected); border-radius: 0 8px 8px 0; font-size: .92rem; line-height: 1.7; }
.pp-sample-note p { margin: 0; font-weight: 600; }
.pp-soon-list .pp-locked { margin: 8px 0; }
.pp-soon-list .v7-secondary { margin-top: 8px; }
.pp-msg { margin-top: 8px; }
/* 老眼・文字を大きくしている人へ（検査団 1014：80代以上の層で「見やすさ」が割れた）：この画面の小さな字の下限を上げる */
#pp-root .v7-note { font-size: 15px; line-height: 1.8; }
#pp-root .pp-private { font-size: 1rem; }
.pp-menu-sub { font-size: .9rem; }
#pp-root .pp-art-cap { font-size: .92rem; }
#pp-root .pp-locked-tag { font-size: .85rem; }
#pp-root .pp-plan-table td::before { font-size: .85rem; }
#pp-root .pp-plan-table td { font-size: .95rem; }
