/* ABOUT JAPAN 会員画面の共通スタイル。色はブランドサイト（about-japan.pages.dev）の体系に合わせる */
:root {
  --ink: #0d0c0f;          /* 夜の地 */
  --ink-2: #16141a;        /* 面 */
  --ink-3: #201d25;        /* 面（強） */
  --paper: #f3f0ea;        /* 文字 */
  --mute: #a39fa8;         /* 補足 */
  --rule: rgba(243, 240, 234, .14);
  --rule-strong: rgba(243, 240, 234, .32);
  --s-yellow: #f2c42b;     /* ヘリテージストライプ */
  --s-orange: #ef8a2c;
  --s-red: #df4430;
  --s-slate: #7896a8;
  --ok: #8fc79a;
  --warn: #f2c42b;
  --ng: #ef7a6a;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --rsm: 8px;
  --r: 12px;
  --rlg: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body);
  font-size: 15px; line-height: 1.7; letter-spacing: .02em;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.stripe { height: 4px; background: linear-gradient(90deg, var(--s-yellow) 0 25%, var(--s-orange) 25% 50%, var(--s-red) 50% 75%, var(--s-slate) 75% 100%); }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 96px; }
.brandbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.logo { font-family: var(--display); font-weight: 800; font-style: italic; font-variation-settings: "wdth" 80; letter-spacing: .06em; font-size: 20px; text-decoration: none; }
.logo .bolt { color: var(--s-yellow); font-style: normal; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 0 0 6px; }
h1, h2, h3 { font-weight: 700; letter-spacing: .04em; line-height: 1.35; margin: 0 0 12px; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
.muted { color: var(--mute); font-size: 13px; }
.small { font-size: 12px; }
.card { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; margin: 0 0 14px; }
.card.flat { background: transparent; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sep { height: 1px; background: var(--rule); margin: 14px 0; border: 0; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: var(--rsm); border: 1px solid var(--paper); background-color: var(--paper); color: var(--ink);
  font: 700 15px var(--body); letter-spacing: .06em; cursor: pointer; text-decoration: none; width: 100%;
}
.btn.ghost { background-color: transparent; color: var(--paper); border-color: var(--rule-strong); }
.btn.small { min-height: 38px; font-size: 13px; padding: 0 14px; width: auto; }
.btn.danger { background-color: transparent; color: var(--ng); border-color: var(--ng); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.main { min-height: 56px; }

/* 入力 */
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: 13px; color: var(--mute); margin-bottom: 6px; }
label.field > span b { color: var(--s-orange); font-weight: 500; margin-left: 6px; font-size: 11px; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--rsm); border: 1px solid var(--rule-strong);
  background-color: var(--ink-3); color: var(--paper); font: 16px var(--body);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--s-yellow); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 8px 0; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--s-yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 13px; cursor: pointer; }
.chips input { width: 16px; min-height: 16px; height: 16px; accent-color: var(--s-yellow); }

/* タブ */
/* iPhone の Safari は固定要素の backdrop-filter でちらつくので、不透明の地にする */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink);
  border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); z-index: 10; transform: translateZ(0); }
.tabs button { background: none; border: 0; color: var(--mute); font: 500 11px var(--body); letter-spacing: .06em; min-height: 58px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tabs button .i { font-size: 18px; line-height: 1; }
/* LINE の中のブラウザでは、スクロールでツールバーが出入りして画面の高さが変わり、下に固定したメニューがちらつく。
   上に置いて sticky にする（member.js が LINE を判定して html に in-line を付け、メニューをヘッダーの下へ移す） */
html.in-line .tabs { position: sticky; top: 0; bottom: auto; transform: none; padding-bottom: 0; border-top: 0; border-bottom: 1px solid var(--rule); }
html.in-line .tabs button { min-height: 52px; }
html.in-line .wrap { padding-bottom: 40px; }
html.in-line .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.tabs button[aria-selected="true"] { color: var(--paper); }
.tabs button[aria-selected="true"] .i { color: var(--s-yellow); }

/* 会員証 */
.member-card { position: relative; border-radius: var(--rlg); padding: 22px 20px 20px; overflow: hidden; border: 1px solid var(--rule-strong);
  background: linear-gradient(150deg, #1d1a22 0%, #0f0e12 100%); }
.member-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--s-yellow) 0 25%, var(--s-orange) 25% 50%, var(--s-red) 50% 75%, var(--s-slate) 75% 100%); }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: .14em;
  font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; }
.rank-silver { color: #c9ccd3; } .rank-gold { color: #e2bf62; } .rank-platinum { color: #e9e7f2; }
.rank-black { color: #f3f0ea; background: #000; } .rank-diamond { color: #a9e2f2; }
.qr-box { background: #fff; border-radius: var(--r); padding: 14px; margin: 16px auto 8px; width: 216px; height: 216px; display: grid; place-items: center; }
.qr-box img, .qr-box canvas { width: 188px; height: 188px; image-rendering: pixelated; }
.code { font-family: var(--mono); letter-spacing: .2em; font-size: 15px; text-align: center; }
.big { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big small { font-size: 14px; color: var(--mute); margin-left: 4px; font-family: var(--body); }
.neg { color: var(--ng); }
.bar { height: 6px; border-radius: 999px; background: var(--ink-3); overflow: hidden; margin: 10px 0 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--s-yellow), var(--s-orange)); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--mute); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.warn { color: var(--warn); border-color: var(--warn); }
.tag.ng { color: var(--ng); border-color: var(--ng); }
.notice { border-left: 3px solid var(--s-yellow); padding: 10px 14px; background: var(--ink-2); border-radius: 0 var(--rsm) var(--rsm) 0; font-size: 13px; margin: 0 0 14px; }
.notice.ng { border-left-color: var(--ng); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: var(--rsm);
  font-size: 14px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.toast.ng { background: var(--ng); color: #fff; }
.hidden { display: none !important; }
.demo-band { background: var(--s-yellow); color: var(--ink); font-size: 12px; text-align: center; padding: 6px 12px; font-weight: 700; letter-spacing: .06em; }
