/*
 * サポート・プライバシーポリシー・利用規約・404 だけで読む追加の CSS（/support/・/privacy/・/terms/・/404.html）
 * 土台は /assets/css/site.css。ここには site.css の部品で足りない所だけを書く（色は site.css の変数だけを使う）。
 * 変えたら、上の 4 ページの読み込み（/assets/css/pages/support.css?v=…）の値を変える（/assets/* は 1 年キャッシュする）。
 */

/* ページの頭の連絡先の 1 行 */
.support-contact { margin-top: 14px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.support-contact a { font-weight: 700; overflow-wrap: anywhere; }

/* よくある質問への入口: 分類ごとの Q の一覧 */
.qgroups { display: grid; gap: 36px 48px; }
@media (min-width: 900px) { .qgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qgroup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.qgroup-head small { font-size: 13px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.qlist { list-style: none; }
.qlist li { border-bottom: 1px solid var(--rule); }
.qlist a { display: grid; grid-template-columns: 1.7em 1fr; padding: 10px 0 11px; color: var(--ink); text-decoration: none; font-size: 15.5px; line-height: 1.65; }
.qlist a::before { content: "Q"; font-family: var(--font-data); color: var(--blue); }
.qlist a:hover span { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.qgroup-more { margin-top: 12px; font-size: 15px; }

/* お問い合わせ: 書いていただきたいこと */
.contact-draft { max-width: 44em; margin-bottom: 10px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.contact-items { max-width: 44em; padding-left: 1.4em; }

/* データの削除: 削除するもの・しないものの 3 列 */
.wipe { display: grid; gap: 32px; }
@media (min-width: 900px) { .wipe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.wipe-col h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 16.5px; line-height: 1.5; }
.wipe-col h3 small { font-size: 13px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.wipe-col--keep h3 { border-bottom-style: dashed; }
.wipe-col ul { list-style: none; }
.wipe-col li { padding: 10px 0 11px; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.8; color: var(--ink-2); }

/* 本文の箇条書き: 広い画面でも 1 行を長くしすぎない（.sec-lead と同じくらいの幅） */
.doc-sec .prose { max-width: 44em; }

/* 札を添えた項目名（ご利用の前に） */
.spec dt .tag { margin-top: 4px; white-space: normal; }

/* メールアドレス */
.mail-addr a { font-weight: 700; overflow-wrap: anywhere; }
.spec--contact .mail-addr { font-size: 17px; }

/* 短い行で終わらせない（1 文字だけの行を出さない） */
.qlist a, .wipe-col li, .doc-body li, .spec dd, .next a span, .legal p { text-wrap: pretty; }

/* 404 の本文 */
.legal-body { display: grid; gap: clamp(48px, 6vw, 72px); padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.legal-body .sub-head { margin-bottom: 16px; }

/* 利用規約・プライバシーポリシーの本文（.legal）。条は h2、項は ol（1. 2. …）、号は入れ子の ol（(1) (2) …） */
.legal { max-width: 44em; font-size: 16px; line-height: 1.95; }
.legal > * + * { margin-top: 1em; }
.legal h2 { margin-top: 2.6em; padding-top: 1em; border-top: 1px solid var(--rule-2); font-size: clamp(19px, .5vw + 16px, 22px); line-height: 1.5; }
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 1.8em; font-size: 17px; line-height: 1.55; }
.legal ol, .legal ul { padding-left: 1.6em; }
.legal li + li { margin-top: .45em; }
.legal ol ol { margin-top: .45em; list-style: none; counter-reset: go; padding-left: 2.4em; }
.legal ol ol > li { counter-increment: go; position: relative; }
.legal ol ol > li::before { content: "(" counter(go) ")"; position: absolute; left: -2.4em; width: 2.1em; text-align: right; font-variant-numeric: tabular-nums; }
.legal .table-wrap { margin-top: 1.2em; }
.legal .table { font-size: 14.5px; }
.legal .table th, .legal .table td { padding: 10px 12px; }
/* 表の項目名は文節で折る（「利用者設定」の「定」だけが次の行に行かないように） */
.legal .table th { text-wrap: balance; }
/* 表の項目名（tbody th）は語の途中で折らない。折ってよい所（「の」「と」「・」の後）には <wbr> を入れてある。
   表の列は、折れない最も長い語の幅より狭くならない（「アカウ／ント」のように語の途中で折れないように） */
.legal .table tbody th { word-break: keep-all; }
.legal-history { margin-top: 3em; padding-top: 1.2em; border-top: 2px solid var(--ink); }
.legal-lead { margin-top: 10px; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); max-width: 42em; }
.legal-supp { margin-top: 2.6em; padding-top: 1em; border-top: 1px solid var(--rule-2); }
.legal-supp-title { font-weight: 700; }
.legal-supp-title + p { margin-top: .4em; }
.legal-history h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 17px; }
.legal .spec dt { word-break: normal; }
.legal .table tbody th { width: 9.5em; min-width: 7.5em; }
@media (max-width: 699px) { .legal .table tbody th { width: auto; min-width: 6em; } }
@media (min-width: 600px) and (max-width: 699px) { .legal .table--wide { min-width: 38em; } }
/* 600px 未満: 3〜4 列の表（第 7 条・第 8 条・改定の履歴）は行ごとに積み、td の data-label を項目名として左に出す（横に動かさないと
   「事業者の所在国」の列が見えないため）。見出しの行は読み上げのために残し、見た目だけ隠す */
@media (max-width: 599px) {
  .legal .table--wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .legal .table--wide, .legal .table--wide tbody, .legal .table--wide tr { display: block; width: 100%; }
  .legal .table--wide { border-top: 2px solid var(--ink); }
  .legal .table--wide tr { padding: 12px 12px 10px; border-bottom: 1px solid var(--rule); }
  .legal .table--wide th, .legal .table--wide td { display: block; width: auto; min-width: 0; padding: 0; border-bottom: 0; }
  .legal .table--wide td[data-label] { padding-top: 6px; }
  .legal .table--wide td[data-label]::before { content: attr(data-label); display: block; font-size: 12.5px; line-height: 1.7; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }
}
/* 480px 未満: 2 列の表（第 2 条など）も行ごとに積み、項目名（th）の下に内容（td）を置く（320px で右の列が 1 行 8〜9 字に折れるため）。見出しの行は読み上げのために残し、見た目だけ隠す。th の scope="row" はそのまま */
@media (max-width: 479px) {
  .legal .table:not(.table--wide) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .legal .table:not(.table--wide), .legal .table:not(.table--wide) tbody, .legal .table:not(.table--wide) tr { display: block; width: 100%; }
  .legal .table:not(.table--wide) { border-top: 2px solid var(--ink); }
  .legal .table:not(.table--wide) tr { padding: 12px 12px 10px; border-bottom: 1px solid var(--rule); }
  .legal .table:not(.table--wide) th, .legal .table:not(.table--wide) td { display: block; width: auto; min-width: 0; padding: 0; border-bottom: 0; }
  .legal .table:not(.table--wide) td { padding-top: 4px; }
}
/* 900px 以上: 2 列の表は項目名の列を 38%、3〜4 列の表は 26% にする（9.5em だと 1280px でも項目名が 5〜7 行に折れた） */
@media (min-width: 900px) { .legal .table tbody th { width: 38%; } .legal .table--wide tbody th { width: 26%; } .legal .table--wide thead th { word-break: keep-all; } }
