/* サブページ共通。配色・フォント・フッターはトップ（index.html）と同じ値を使う */
:root {
  color-scheme: light;
  --c-yellow: #F5C518;
  --c-paper: #FFFDF6;
  --c-ink: #16130F;
  --c-text: #16130F;
  --c-text-2: #5C5546;
  --c-text-2-on-yellow: #4A4128;
  --c-note-bg: #FFF6CC;
  --c-on-ink: #FFFDF6;
  --c-on-ink-2: #BDB49C;
  --c-on-ink-3: #8A826E;
  --c-rule: #D9D0B8;
  --f-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --f-code: "M PLUS 1 Code", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --line: 2px;
  --line-thin: 1.5px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--c-paper); color: var(--c-text); font-family: var(--f-jp); font-weight: 500; font-size: 16.5px; line-height: 1.9; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--c-yellow); }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wide { max-width: 1120px; }
.on-ink { background: var(--c-ink); color: var(--c-on-ink); }
.on-yellow { background: var(--c-yellow); color: var(--c-text); }
div[lang="ja"] :is(p, h1, h2, h3, li, dt, dd) { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }

/* ヘッダー */
.top { padding-block: 12px 0; }
.top .wrap { display: flex; align-items: center; gap: 16px; max-width: 760px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; border: var(--line) solid var(--c-ink); background: var(--c-ink); }
.brand span { font-weight: 900; font-size: 17px; }
.ph { padding-block: 20px 36px; }
.ph h1 { font-weight: 900; line-height: 1.3; font-size: clamp(28px, 7.4vw, 44px); letter-spacing: -.01em; }
.ph .lead { margin-top: 8px; font-size: 16px; line-height: 1.7; color: var(--c-text-2-on-yellow); }

/* 本文 */
main { padding-block: 40px 72px; }
main h2 { margin-top: 48px; padding-bottom: 6px; border-bottom: var(--line) solid var(--c-ink); font-size: 22px; font-weight: 900; line-height: 1.5; }
main h2:first-child { margin-top: 0; }
main h3 { margin-top: 28px; font-size: 17px; font-weight: 900; line-height: 1.6; }
main p { margin-top: 12px; }
main ul, main ol { margin-top: 12px; padding-left: 1.4em; }
main ul { list-style: disc; }
main ol { list-style: decimal; }
main li { margin-top: 6px; }
main li::marker { color: var(--c-text-2); }
main a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 700; }
a[href^="mailto:"] { white-space: nowrap; }
main p.mail a { display: inline-flex; align-items: center; min-height: 44px; }
.back { margin-top: 0; font-size: 15px; }
.back a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: var(--line-thin) solid var(--c-ink); font-weight: 700; }
.store a { display: inline-flex; align-items: center; min-height: 44px; }
.qa + .store { border-top: 0; margin-top: 32px; padding-top: 0; }
main li, .tbl dd { text-wrap: pretty; }
.store { margin-top: 48px; padding-top: 16px; border-top: var(--line-thin) solid var(--c-rule); font-size: 15px; }
.meta { margin-top: 8px; font-size: 14px; color: var(--c-text-2); }
.note { margin-top: 16px; padding: 14px 16px; border: var(--line-thin) solid var(--c-ink); background: var(--c-note-bg); font-size: 15px; line-height: 1.8; }
.note p:first-child { margin-top: 0; }

/* 表（特商法・外部サービス）。スマホでは項目名を上に積む */
.tbl { margin-top: 16px; border-top: var(--line) solid var(--c-ink); }
.tbl .r { display: grid; grid-template-columns: 11em 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: var(--line-thin) solid var(--c-rule); }
.tbl dt { font-weight: 900; font-size: 15px; line-height: 1.7; }
.tbl dd { min-width: 0; line-height: 1.8; }
.tbl dd p { margin-top: 6px; }
.tbl dd p:first-child { margin-top: 0; }
.tbl dd ul { margin-top: 6px; }
.tbl .links { list-style: none; padding: 0; margin-top: 4px; }
.tbl .links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 600px) {
  .tbl .r { grid-template-columns: 1fr; gap: 2px; }
  main h2 { font-size: 20px; }
}

/* よくある質問 */
.qa { margin-top: 8px; }
.qa details { border-bottom: var(--line-thin) solid var(--c-rule); }
div[lang="ja"] .qa summary { word-break: auto-phrase; overflow-wrap: anywhere; }
.qa summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 900; line-height: 1.6; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--f-code); font-size: 22px; line-height: 1.4; }
.qa details[open] summary::after { content: "−"; }
.qa .a { padding: 0 0 16px; }
.qa .a p:first-child { margin-top: 0; }

/* フッター（トップと同じ） */
.foot { padding-block: 36px max(36px, env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 13px; line-height: 1.8; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; }
.foot .brand img { border-color: var(--c-on-ink-3); }
.foot .brand span { font-weight: 700; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; text-decoration: none; color: var(--c-on-ink); font-weight: 700; border-bottom: var(--line-thin) solid var(--c-on-ink-3); }
.foot .tm { margin-top: 8px; color: var(--c-on-ink-2); font-size: 12px; line-height: 1.7; }
