/* LabQSL（世界版）の画面
   2026-10-13 に3人の専門家案をまとめ、文字の大きさ・余白・ページ幅を Apple（apple.com）に寄せたもの。
   ・Appleに倣う点：白と温かみのある明るい灰色（#F5F5F7）を交互に敷き、区切り線ではなく余白で区切る。
     見出しは大きく太く字間を詰める。文章の幅は約980px、読ませる部分は約690px。ボタンは楕円、面は大きな角丸
   ・Appleと変える点（60〜70代が説明書なしで使えるため）：本文は17pxではなく19px（「文字を大きく」で22px）、
     補足の文字も含めて全文字AAA相当のコントラスト、押せる所は48px以上
   ・カードの表面：写真の上に白いラベル（コールサイン）、下に白い帯（交信データ）。どんな写真でも同じように読める
   ・わかりにくい言葉には「？」を付け、押すかマウスを乗せると、その場の下に説明が開く（浮かせない：拡張機能に消された実例があるため）
   青（--accent）は「照合済み」と主ボタンとリンクだけに使う。地の色は青くしない（全部青だと寒くなるため）。 */
:root {
  --paper: #FFFFFF;
  --band: #F5F5F7;       /* Appleと同じ、ごくわずかに温かい明るい灰色 */
  --surface: #FFFFFF;
  --ink: #1D1D1F;        /* 本文 16.8:1 */
  --ink-2: #4F4F54;      /* 補足 白で8.1:1・灰色の地で7.5:1 */
  --rule-soft: #D2D2D7;  /* 区切り線（使うのは表の中だけ） */
  --accent: #0F4C9A;     /* 照合済み・主ボタン・リンク 白で8.3:1・灰色の地で7.7:1 */
  --accent-dark: #0A3570;
  --accent-tint: #EAF1FB;
  --amber-ink: #6B4200;  /* カードのみ・未登録 8.6:1 */
  --amber-tint: #FFF4DC;
  --help-tint: #F5F5F7;
  --help-ink: #4F4F54;
  --error-ink: #6E120B;
  --error-tint: #FCEDEB;
  --focus: #FFD42A;
  /* 書体：英字は Roboto（POTA公式サイトと同じ、癖のない読みやすさ）。和文は Noto Sans JP（Robotoと対で作られた書体）。
     コールサインは Roboto Mono（0に斜線が入りOと見分けられる。素のRobotoの0には斜線がない） */
  --sans: 'Roboto', 'Noto Sans JP', -apple-system, 'Segoe UI', 'Hiragino Sans', sans-serif;
  --call: 'Roboto Mono', ui-monospace, Menlo, monospace;
  /* 文字の大きさ（見出し以外）：標準=17px・大=21px・特大=25px。--t は標準に対する倍率で、
     補足・表・ヘルプ・案内などの文字はすべて calc(◯px * var(--t)) で同じ割合で変わる。
     見出し・ロゴ・上部のメニュー・カードの表面は変えない（見出しは元から大きく、カードは絵柄の一部のため） */
  --base: 17px;   /* 標準＝Apple の製品ページの本文と同じ 17px */
  --t: 0.895;     /* 17/19。見出し以外の文字はこの倍率で一緒に変わる（一番小さい 15px 指定でも 13.4px） */
  --radius: 18px;        /* 面の角丸（Appleのカード） */
}
html.size-1 { --base: 21px; --t: 1.105; } /* 大 */
html.size-2 { --base: 25px; --t: 1.316; } /* 特大 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--base)/1.58 var(--sans); -webkit-font-smoothing: antialiased; }
html[lang="ja"] body { line-height: 1.8; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
p a, dd a, .small a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; background-color: var(--focus); color: var(--ink) !important; box-shadow: 0 0 0 6px var(--focus); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; padding: 12px 16px; z-index: 10; }

.wrap { max-width: 1028px; margin: 0 auto; padding: 0 24px; } /* 中身の幅は 980px */
.narrow { max-width: 740px; }                                  /* 読ませる部分は 692px */
.center { text-align: center; }
.band { background: var(--band); }
.sub { color: var(--ink-2); }
.small { font-size: 0.84em; color: var(--ink-2); }
.gap-top { margin-top: 16px; }
.callsign { font-family: var(--call); font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }

/* ===== 見出しの大きさ（Appleの段階に合わせる） ===== */
h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.07; font-weight: 700; letter-spacing: -0.025em; }
html[lang="ja"] h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.3; letter-spacing: 0; }
.h2, .sec h2, .facts h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 40px; }
html[lang="ja"] .h2, html[lang="ja"] .sec h2, html[lang="ja"] .facts h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; letter-spacing: 0; }
.lead { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.45; color: var(--ink-2); margin-top: 20px; }
html[lang="ja"] .lead { line-height: 1.7; }

/* ===== ヘッダー：細く、白地に髪の毛ほどの線 ===== */
.top { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--rule-soft); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(180%) blur(20px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tools > a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 17px; color: var(--ink); }
.tools > a.signup { min-height: 40px; background: var(--accent); color: #fff; font-weight: 500; border-radius: 980px; padding: 0 18px; margin-left: 8px; }
.tools > a.signup:hover { background: var(--accent-dark); text-decoration: none; }
.langs { display: inline-flex; padding: 3px; background: var(--band); border-radius: 980px; margin-right: 4px; }
.langs a, .langs span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 980px; font-size: 16px; color: var(--ink); }
.langs span { background: #fff; font-weight: 500; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.langs a:hover { text-decoration: none; background: #E8E8ED; }
.head-search { display: flex; flex: 1 1 240px; max-width: 280px; background: var(--band); border-radius: 980px; padding: 3px 3px 3px 16px; }
.head-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; font: 700 18px var(--call); text-transform: uppercase; color: var(--ink); }
.head-search input:focus { outline: 0; }
.head-search:focus-within { box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent); }
.head-search input::placeholder { font-family: var(--sans); font-weight: 400; text-transform: none; color: var(--ink-2); }
.head-search button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 980px; background: var(--ink); color: #fff; font: 500 16px var(--sans); cursor: pointer; }
@media (max-width: 719px) {
  .wrap { padding: 0 20px; }
  .top .wrap { gap: 4px 8px; padding-top: 6px; padding-bottom: 8px; }
  .tools .login { display: none; }
  .head-search { order: 3; }
}

/* ===== ボタン：楕円 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 1.5px solid var(--accent); border-radius: 980px; background: var(--accent); color: #fff; font: 500 calc(19px * var(--t))/1.2 var(--sans); cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn.line { background: transparent; color: var(--accent); }
.btn.line:hover { background: var(--accent-tint); color: var(--accent-dark); }
.btn.full { width: 100%; }

/* ===== 状態の印（色＋形＋文字） ===== */
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.84em; white-space: nowrap; padding: 3px 12px 3px 8px; border-radius: 980px; line-height: 1.5; }
.st svg { width: 18px; height: 18px; flex: none; }
.st.m, .st.ok { background: var(--accent-tint); color: var(--accent); }
.st.c { background: var(--amber-tint); color: var(--amber-ink); }

/* ===== ヘルプ（？）=====
   <details> なので、JSが無くても押せば開く。開いた説明はページの流れの中に出る（上に浮かせない）。
   マウスのある端末では、world.js がマウスを乗せただけで開くようにする。 */
.help { display: inline; }
.help summary { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0 2px; vertical-align: middle; border: 1.5px solid var(--help-ink); border-radius: 50%; color: var(--help-ink); background: transparent; font: 500 calc(15px * var(--t))/1 var(--sans); cursor: pointer; list-style: none; position: relative; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: ""; position: absolute; inset: -10px; } /* 押せる範囲を46pxに広げる */
.help[open] summary { background: var(--help-ink); color: #fff; }
.help-body { display: block; margin: 10px 0 6px; padding: 14px 18px; background: var(--help-tint); border-radius: 12px; color: var(--ink); font: 400 calc(17px * var(--t))/1.6 var(--sans); text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; }
.band .help-body { background: #fff; }
html[lang="ja"] .help-body { line-height: 1.75; }

/* ===== 入力の間違い ===== */
.err { margin-top: 14px; padding: 14px 18px; border-radius: 12px; background: var(--error-tint); color: var(--error-ink); font-size: calc(17px * var(--t)); text-align: left; }

/* ===== トップ ===== */
.hero { padding: 88px 0 40px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--accent); font-size: calc(19px * var(--t)); margin-bottom: 18px; }
.kicker b { background: var(--accent); color: #fff; padding: 2px 12px; border-radius: 980px; font-weight: 500; }
.hero .lead { max-width: 30em; margin-left: auto; margin-right: auto; }
.search { max-width: 640px; margin: 44px auto 0; padding: 28px; background: var(--band); border-radius: var(--radius); text-align: left; }
.search label { display: block; font-weight: 700; font-size: calc(21px * var(--t)); margin-bottom: 2px; }
.search .hint { font-size: calc(17px * var(--t)); color: var(--ink-2); margin-bottom: 16px; }
.search .row { display: flex; gap: 10px; flex-wrap: wrap; }
.search input { flex: 1 1 220px; min-width: 0; height: 60px; padding: 0 20px; border: 1px solid var(--rule-soft); border-radius: 14px; font: 700 28px var(--call); text-transform: uppercase; color: var(--ink); background: #fff; }
.search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.search input[aria-invalid="true"] { border-color: #9B1C12; }
.search input::placeholder { color: #6A6A70; font: 400 calc(22px * var(--t)) var(--sans); text-transform: none; }
.search .btn { min-height: 60px; flex: 0 1 auto; }
@media (max-width: 520px) { .search .btn { width: 100%; } .search { padding: 20px; } }
.sample { max-width: 640px; margin: 72px auto 0; }
.sample figcaption { margin-top: 14px; font-size: calc(17px * var(--t)); color: var(--ink-2); text-align: center; }

.facts { padding: 104px 0; }
.qa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; }
@media (min-width: 760px) {
  .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa > div:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 項目が奇数のとき、最後の1つで段を埋める */
}
.qa > div { padding: 32px 30px; background: #fff; border-radius: var(--radius); }
.qa dt { font-weight: 700; font-size: calc(22px * var(--t)); line-height: 1.3; margin-bottom: 10px; }
html[lang="ja"] .qa dt { font-size: calc(20px * var(--t)); line-height: 1.5; }
.qa dd { color: var(--ink-2); }
.cta-band { padding: 104px 0 112px; }
.cta-band p { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 28px; }
html[lang="ja"] .cta-band p { line-height: 1.6; letter-spacing: 0; }

/* ===== QSLカードの表面 =====
   写真（または既定の地）をカード全面に敷き、文字は白い面の上にだけ置く。
   ・左上のラベル：送り主のコールサイン（一番大きく）と運用地
   ・下に浮かべた面：宛先・状態の印・交信データ・「TNX QSO · 73」と検証リンク
   ラベルと面は白を少し透かしたすりガラス（後ろをぼかして白を重ねる）。写真の色が面越しに見えて絵が隠れず、
   ぼかしと白の重ねで細部が消えるので、写真の明るさ・色に関係なく文字は読める（最も暗い写真でも本文10.8:1・補足7.7:1）。
   ぼかしに対応しないブラウザでは、下の @supports で白を濃くして読みやすさを保つ。 */
.qsl { --ink-2: #36363A; /* カードの中の補足は濃いめ：すりガラス越しに最も暗い写真でも7.7:1 */ position: relative; aspect-ratio: 14 / 9; border-radius: 14px; overflow: hidden; container-type: inline-size; background: #DADDE3; color: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.35); }
.qsl .photo { position: absolute; inset: 0; }
.qsl .photo svg { width: 100%; height: 100%; }
.qsl .label { position: absolute; left: 4cqw; top: 4cqw; max-width: calc(100% - 8cqw); background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5); border-radius: 1.6cqw; padding: 1.3cqw 2.8cqw 1.2cqw; box-shadow: 0 0.5cqw 2cqw rgba(0, 0, 0, 0.14); }
.qsl .label .callsign { display: block; font-size: 10.5cqw; line-height: 1; letter-spacing: -0.01em; }
.qsl .label .where { display: block; margin-top: 0.8cqw; font: 500 max(13px, 2.6cqw)/1.2 var(--sans); color: var(--ink-2); letter-spacing: 0.02em; }
.qsl .panel { position: absolute; left: 3cqw; right: 3cqw; bottom: 3cqw; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5); border-radius: 2cqw; padding: 1.6cqw 3cqw 1.2cqw; box-shadow: 0 0.6cqw 2.4cqw rgba(0, 0, 0, 0.14); }
.qsl .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; margin-bottom: 0.8cqw; }
.qsl .panel-head .to { font-size: max(13px, 2.6cqw); color: var(--ink-2); letter-spacing: 0.06em; }
.qsl .panel-head .to .callsign { font-size: max(15px, 4.2cqw); color: var(--ink); margin-left: 1.2cqw; letter-spacing: 0; }
.qsl .cells { display: grid; grid-template-columns: 1.5fr 0.9fr 0.8fr 0.8fr 0.7fr; gap: 0 2cqw; }
.qsl .cells span { display: block; font-size: max(13px, 2.1cqw); color: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase; }
.qsl .cells b { display: block; font: 700 max(13px, 3.2cqw)/1.2 var(--call); white-space: nowrap; }
.qsl .panel-foot { display: flex; justify-content: space-between; gap: 2cqw; margin-top: 0.9cqw; padding-top: 0.8cqw; border-top: 1px solid rgba(0, 0, 0, 0.12); font-size: max(13px, 2.1cqw); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.qsl .panel-foot span:first-child { font-style: italic; }
.qsl .seal { display: inline-flex; align-items: center; gap: 1cqw; font: 500 max(13px, 2.6cqw)/1 var(--sans); padding: max(3px, 0.8cqw) 1.8cqw; border-radius: 980px; white-space: nowrap; }
.qsl .seal svg { width: max(14px, 3.2cqw); height: max(14px, 3.2cqw); }
.qsl .seal.m { background: var(--accent); color: #fff; }
.qsl .seal.c { background: #fff; color: var(--amber-ink); border: max(2px, 0.4cqw) solid var(--amber-ink); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .qsl .label, .qsl .panel { background: rgba(255, 255, 255, 0.94); }
}
/* 小さく並ぶとき（一覧）：コールサイン・宛先・状態を優先し、交信データは日付とバンドだけ。運用地と検証リンクは省く */
@container (max-width: 360px) {
  .qsl:not(.o-portrait) .cells { grid-template-columns: 1.4fr 1fr; }
  .qsl:not(.o-portrait) .cells .opt, .qsl:not(.o-portrait) .panel-foot, .qsl:not(.o-portrait) .label .where { display: none; }
  .qsl:not(.o-portrait) .label .callsign { font-size: 12cqw; }
}
/* 縦のカードは高さに余裕があるので、項目を省くのは、ごく小さいとき（一覧の縮小表示）だけ */
@container (max-width: 220px) {
  .qsl.o-portrait .cells .opt, .qsl.o-portrait .panel-foot, .qsl.o-portrait .label .where { display: none; }
  .qsl.o-portrait .label .callsign { font-size: 12cqw; }
}

/* ===== 局のページ ===== */
.station { padding: 72px 0 80px; }
.station .callsign.big { font-size: clamp(56px, 12vw, 104px); line-height: 1; letter-spacing: -0.02em; display: block; }
.station .meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }
.station .name { font-size: calc(24px * var(--t)); font-weight: 500; }
.station .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.copied { margin-top: 12px; font-weight: 500; color: var(--accent); }
.facts-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; } /* 欄の数は公開設定で変わる。どの段も横幅いっぱいに伸ばし、半端な空きを作らない */
.facts-grid > div { flex: 1 1 170px; padding: 22px 24px; background: var(--band); border-radius: var(--radius); }
.facts-grid > div:has(details[open]) { flex-basis: 100%; }
.facts-grid dt { font-size: calc(16px * var(--t)); color: var(--ink-2); }
.facts-grid dd { font-size: calc(22px * var(--t)); font-weight: 500; margin-top: 4px; }
.facts-grid dd.num { font-size: calc(40px * var(--t)); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.sec { padding: 96px 0; }
.sec-plain { padding: 40px 0; }
.cards { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: calc(17px * var(--t)); }
.empty { color: var(--ink-2); }

/* 交信表：PCは表、スマホは1件ずつの行に組み替える */
.log { width: 100%; border-collapse: collapse; font-size: calc(18px * var(--t)); }
.log th { text-align: left; font-size: calc(15px * var(--t)); color: var(--ink-2); font-weight: 500; padding: 10px 12px 12px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: bottom; }
.log td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.log td.callsign { font-size: calc(19px * var(--t)); }
.log .nowrap { white-space: nowrap; }
.log td .mk { display: none; }
.log-help { margin-top: 20px; }
@media (max-width: 719px) {
  .log thead { position: absolute; left: -9999px; }
  .log, .log tbody { display: block; }
  .log tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
  .log td { display: block; padding: 0; border: 0; font-weight: 500; }
  .log td.callsign { order: 1; flex: 1 1 auto; font-size: calc(21px * var(--t)); font-weight: 700; }
  .log td.stc { order: 2; }
  .log td.when { order: 3; flex-basis: 100%; color: var(--ink-2); font-size: calc(17px * var(--t)); font-weight: 400; }
  .log td.qd { order: 4; }
  .log td .mk { display: inline; font-weight: 400; color: var(--ink-2); }
}

/* ===== 未登録の局（スマホが主役） ===== */
.claim-head { padding: 64px 0 8px; }
.claim-head .callsign { font-size: clamp(52px, 14vw, 88px); line-height: 1.02; letter-spacing: -0.02em; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; background: var(--amber-tint); border-radius: 14px; color: #3A2600; font-size: calc(18px * var(--t)); margin-top: 20px; }
.notice svg { width: 24px; height: 24px; flex: none; margin-top: 3px; }
.waiting { margin-top: 32px; padding: 32px 28px; background: var(--band); border-radius: var(--radius); }
.waiting .count { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
html[lang="ja"] .waiting .count { line-height: 1.45; letter-spacing: 0; }
.waiting p { margin-top: 10px; color: var(--ink-2); }
.waiting .btn { margin-top: 24px; }
.steps { counter-reset: s; }
.steps li { position: relative; padding: 16px 0 16px 60px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 14px; width: 42px; height: 42px; background: var(--band); border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; }
.incoming li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--rule-soft); }
.incoming li:first-child { border-top: 1px solid var(--rule-soft); }
.incoming .callsign { font-size: calc(24px * var(--t)); }
.incoming .q { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 14px; font-size: calc(18px * var(--t)); }
.incoming .q span { white-space: nowrap; }
.nomail { display: grid; gap: 8px; padding: 28px; background: var(--band); border-radius: var(--radius); }
.nomail h3 { display: flex; gap: 10px; align-items: center; font-size: calc(21px * var(--t)); }
.nomail svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
/* 画面下に固定する登録ボタン：本文の登録ボタンが見えていないときだけ出す（world.js）。JSが無ければ出ない */
.sticky-cta { position: sticky; bottom: 0; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(20px); border-top: 1px solid var(--rule-soft); padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); z-index: 5; }
@media (min-width: 720px) { .sticky-cta { display: none !important; } }

/* ===== フッター：灰色の地に小さめの文字（Apple） ===== */
.foot { padding: 28px 0 40px; background: var(--band); font-size: calc(16px * var(--t)); color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.textsize { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.textsize-label { color: var(--ink); font-weight: 500; }
.textsize-opts { display: inline-flex; padding: 3px; background: #fff; border-radius: 980px; box-shadow: 0 0 0 1px var(--rule-soft); }
.textsize-opts button { min-height: 44px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 980px; background: transparent; color: var(--ink); font: 500 16px var(--sans); cursor: pointer; }
.textsize-opts button:nth-child(2) { font-size: 19px; }
.textsize-opts button:nth-child(3) { font-size: 22px; }
.textsize-opts button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 719px) { .textsize { margin-left: 0; } }

@media (max-width: 719px) {
  .hero { padding-top: 56px; }
  .facts, .sec, .cta-band { padding: 64px 0; }
  .station { padding: 48px 0 56px; }
  .claim-head { padding-top: 40px; }
  .sample { margin-top: 48px; }
}
@media (prefers-reduced-motion: no-preference) { .btn, a, .langs a { transition: background-color .15s; } }
@media print { .top, .sticky-cta, .foot { display: none; } }

/* スマホ：見出しと長い文章は左揃え（中央寄せの長文は行頭が毎回ずれて、年配の方には読みにくい） */
.kicker { flex-wrap: wrap; justify-content: center; }
.kicker b { white-space: nowrap; }
@media (max-width: 719px) {
  .hero .center, .hero .wrap.center { text-align: left; }
  .kicker { justify-content: flex-start; }
  .hero .lead { margin-left: 0; }
  .facts h2.center, .cta-band .center, .sample figcaption { text-align: left; }
}

/* ===== 改行の位置 =====
   ・日本語：文節の切れ目で改行する（word-break: auto-phrase。「送っ｜て」のような言葉の途中では切らない）。
     句読点・小さい「ゃ」などを行頭に置かない厳しめの禁則（line-break: strict）
   ・見出し・ボタン・短い文：行の長さをそろえ、最後の行に1語だけ残さない（text-wrap: balance）
   ・本文：最後の行に1語だけ落ちるのを避ける（text-wrap: pretty）
   コールサインと交信データは、長いときに崩れないよう従来どおり（.callsign の overflow-wrap: anywhere） */
html[lang="ja"] body { word-break: auto-phrase; line-break: strict; }
h1, h2, h3, .lead, .kicker, .count, .qa dt, .cta-band p, .btn, figcaption { text-wrap: balance; }
p, dd, li, .notice, .hint, .err, .help-body { text-wrap: pretty; }
.callsign, .qsl, .log td { word-break: normal; }

/* ===== トップの見本カード（4枚を重ね、1枚ずつ見せる） ===== */
.sample-stack { display: grid; }
.sample-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.sample-card.is-on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.sample-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.sample-pick button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 980px; background: var(--band); color: var(--ink); font: 400 calc(16px * var(--t)) var(--sans); cursor: pointer; }
.sample-pick button:hover { background: #E8E8ED; }
.sample-pick button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .sample-card, .sample-card.is-on { transition: none; } }
@media (max-width: 719px) { .sample-pick { justify-content: flex-start; gap: 6px; } .sample-pick button { padding: 0 13px; font-size: calc(15px * var(--t)); } }

/* ===== ヘッダーの文字の大きさ（A を3段階の大きさで並べる。言葉を読まなくても分かる） ===== */
.tsize { display: inline-flex; align-items: center; padding: 3px; background: var(--band); border-radius: 980px; margin-right: 6px; }
.tsize button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 6px; border: 0; border-radius: 980px; background: transparent; color: var(--ink); font-family: var(--sans); font-weight: 500; line-height: 1; cursor: pointer; }
.tsize button:nth-child(1) { font-size: 14px; }
.tsize button:nth-child(2) { font-size: 18px; }
.tsize button:nth-child(3) { font-size: 23px; }
.tsize button:hover { background: #E8E8ED; }
.tsize button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 700; }
/* 並び：PC＝ロゴ・検索・文字の大きさ・言語・ログイン・登録を1行に
         スマホ＝1段目 ロゴと登録／2段目 言語と文字の大きさ／3段目 検索欄（3段で高くなるので、上に貼り付けない） */
.tsize { margin-left: auto; }
.tools { margin-left: 0; }
.langs { margin-right: 0; }
@media (max-width: 719px) {
  .top { position: static; }
  .logo { order: 1; }
  .tools { order: 2; margin-left: auto; }
  .langs { order: 3; }
  .tsize { order: 4; margin-left: 0; }
  .head-search { order: 5; flex: 1 1 100%; max-width: none; }
}

/* ===== 「LabQSL でできること」のしるし ===== */
.qa > div { position: relative; }
.qa-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); }
.qa-icon svg { width: 30px; height: 30px; }
.qa-icon svg rect[fill="#fff"] { fill: var(--accent-tint); }

/* ===== 第2回 4-search-centered：中央寄せのまま、灰色の検索カードを磨く =====
   ・見出し→サブコピー→検索カード→見本カードを中央の1本の軸にそろえる（Appleの製品ページの組み方）
   ・「無料」の札は廃止（言葉はサブコピー／見出しへ）
   ・検索カード：#F5F5F7・角丸28px。見出しと補足はカード内も中央。白い楕円の欄の中の右端に青い楕円ボタン
   ・欄の縁 #86868B（3.5:1）。入力中は青い縁＋淡い青の輪。間違いは赤茶の縁＋「！」付きの案内
   ・例の文字は #4F4F54（白で8.1:1） */
.hero { padding: 104px 0 96px; }
.hero h1 { max-width: 15em; margin: 0 auto; }
.hero .lead { max-width: 27em; margin: 24px auto 0; }
.search { max-width: 660px; margin: 52px auto 0; padding: 32px 32px 34px; background: var(--band); border-radius: 28px; text-align: center; }
.search label { display: block; font-weight: 700; font-size: calc(23px * var(--t)); letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 6px; color: var(--ink); }
html[lang="ja"] .search label { font-size: calc(22px * var(--t)); letter-spacing: 0; }
.search .hint { font-size: calc(17px * var(--t)); color: var(--ink-2); margin: 0 auto 22px; max-width: 30em; }
.search .row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; padding: 6px; background: #fff; border: 1px solid #86868B; border-radius: 980px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.search .row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px var(--accent-tint); }
.search input { flex: 1 1 auto; min-width: 0; height: 60px; padding: 0 6px 0 22px; border: 0; border-radius: 980px; background: transparent; font: 700 28px var(--call); letter-spacing: .04em; }
.search input:focus { outline: 0; border: 0; box-shadow: none; }
.search input::placeholder { color: #A1A1A6; font: 400 calc(19px * var(--t)) var(--sans); letter-spacing: 0; }
.search .btn { flex: none; width: auto; min-height: 60px; padding: 0 30px; font-size: calc(19px * var(--t)); }
.search .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.search .row:has(input[aria-invalid="true"]) { border-color: #9B1C12; box-shadow: 0 0 0 1px #9B1C12; }
.search input[aria-invalid="true"] { border: 0; }
.search .err { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 14px 18px; background: #fff; color: var(--error-ink); border-radius: 16px; text-align: left; font-size: calc(17px * var(--t)); }
.search .err::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.35em; height: 1.35em; margin-top: .12em; border-radius: 50%; background: var(--error-ink); color: #fff; font-weight: 700; font-size: .9em; }
.sample { margin-top: 88px; }
@media (max-width: 719px) {
  .hero { padding: 56px 0 72px; }
  .hero h1, .hero .lead { margin-left: 0; }
  .search { margin-top: 40px; text-align: left; }
  .search .hint { margin-left: 0; }
  .sample { margin-top: 56px; }
}
@media (max-width: 560px) {
  .search { padding: 22px 18px; border-radius: 24px; }
  .search .row { flex-wrap: wrap; padding: 0; border: 0; background: transparent; gap: 10px; }
  .search .row:focus-within, .search .row:has(input[aria-invalid="true"]) { box-shadow: none; }
  .search input { flex: 1 1 100%; height: 60px; padding: 0 20px; background: #fff; border: 1px solid #86868B; }
  .search input:focus { border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px var(--accent-tint); }
  .search input[aria-invalid="true"] { border: 1px solid #9B1C12; box-shadow: 0 0 0 1px #9B1C12; }
  .search .btn { width: 100%; }
}

/* ===== 「LabQSL でできること」：Apple の機能紹介のような大小のタイル（ベントーグリッド） =====
   ・一番伝えたい「無料」だけを横長の大きなタイルにして強弱を付ける（地は温かい白から淡い青へ）。残り4つは白いタイル
   ・見出しは短い一言を大きく、説明は1〜2行。挿絵はタイルいっぱいに */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.tile { display: flex; flex-direction: column; background: #fff; border-radius: 28px; overflow: hidden; grid-column: span 3; }
.tile-art { padding: 28px 28px 0; }
.tile-art svg { display: block; width: 100%; height: auto; max-height: 200px; }
.tile-text { padding: 20px 32px 34px; }
.tile h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
html[lang="ja"] .tile h3 { font-size: clamp(22px, 2.3vw, 26px); line-height: 1.4; letter-spacing: 0; }
.tile p { margin-top: 10px; color: var(--ink-2); font-size: calc(18px * var(--t)); }
/* 主役のタイル：横長・黒地・大きな見出し。挿絵は右、文字は左 */
.tile-hero { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; background: linear-gradient(120deg, #FFF8EE 0%, #FFFFFF 45%, #EAF1FB 100%); color: var(--ink); } /* 黒は重いので、温かい白から淡い青へごくわずかに移る明るい地に */
.tile-hero .tile-art { order: 2; padding: 36px 40px 36px 0; }
.tile-hero .tile-art svg { max-height: 240px; }
.tile-hero .tile-text { padding: 48px 20px 48px 48px; }
.tile-hero h3 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
html[lang="ja"] .tile-hero h3 { font-size: clamp(32px, 4vw, 48px); line-height: 1.25; }
.tile-hero p { color: var(--ink-2); font-size: calc(19px * var(--t)); max-width: 26em; }
/* 下の4つ：PCでは2×2 */
@media (max-width: 759px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tile, .tile-hero { grid-column: 1 / -1; }
  .tile-hero { grid-template-columns: minmax(0, 1fr); }
  .tile-hero .tile-art { order: 0; padding: 28px 28px 0; }
  .tile-hero .tile-text { padding: 20px 28px 32px; }
  .tile-text { padding: 18px 28px 30px; }
}

/* ===== 「ずっと、無料。」をもう一段目立たせる：はっきりした地・「無料」を青・3つの約束 ===== */
.tile-hero { background: radial-gradient(120% 140% at 0% 0%, #FFE9D2 0%, rgba(255, 233, 210, 0) 55%), linear-gradient(120deg, #FFF6EA 0%, #FFFFFF 45%, #D9E7FA 100%); box-shadow: inset 0 0 0 1px rgba(15, 76, 154, 0.08); }
.tile-hero h3 .accent { color: var(--accent); }
.tile-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.tile-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: calc(18px * var(--t)); color: var(--ink); }
.tile-points svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* ===== 「さらに詳しく見る」：タイルの中で下に開く（上に浮かせない）。<details> なのでJSなしでも動く ===== */
.tile { align-self: start; }
.tile-more { margin-top: 18px; }
.tile-more summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 0; color: var(--accent); font-weight: 500; font-size: calc(18px * var(--t)); cursor: pointer; list-style: none; }
.tile-more summary::-webkit-details-marker { display: none; }
.tile-more summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.tile-more .plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.tile-more .plus::before, .tile-more .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s ease; }
.tile-more .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.tile-more[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.tile-more .when-open, .tile-more[open] .when-closed { display: none; }
.tile-more[open] .when-open { display: inline; }
.tile-more-body { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.tile-more-body p { margin-top: 0; color: var(--ink); font-size: calc(18px * var(--t)); line-height: 1.65; }
html[lang="ja"] .tile-more-body p { line-height: 1.85; }
.tile-more-body p + p { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .tile-more .plus::before, .tile-more .plus::after { transition: none; } }

/* 下の4枚：見出し・短い説明・「さらに詳しく見る」は中央にそろえる（Appleの機能紹介と同じ）。
   開いた詳しい説明は複数行の文章なので左揃えのまま（中央寄せの長文は行頭がずれて読みにくい） */
.tile:not(.tile-hero) .tile-text { text-align: center; }
.tile:not(.tile-hero) .tile-text p { margin-left: auto; margin-right: auto; max-width: 30em; }
.tile:not(.tile-hero) .tile-more summary { justify-content: center; }
.tile:not(.tile-hero) .tile-more-body { text-align: left; }

/* 検索カードの見出し（コールサインで調べる）：もう一段大きく太く。カードの中の主役なので */
.search label, html[lang="ja"] .search label { font-size: calc(30px * var(--t)); font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
html[lang="ja"] .search label { letter-spacing: 0; }

/* 検索カードの見出しのしるし：虫めがねのレンズに電波の弧（＝局を探す）。ボタンと同じ青 */
.search label { display: inline-flex; align-items: center; justify-content: center; gap: 0.35em; }
.search .search-icon { width: 1.15em; height: 1.15em; flex: none; color: var(--accent); }
@media (max-width: 560px) { .search label, html[lang="ja"] .search label { font-size: calc(25px * var(--t)); } } /* スマホ：しるしと見出しを1行に収める */

/* 入力欄の例の文字（例：JA1ABC）：入力する文字と同じ大きさにそろえる。
   大きさが違うと同じベースラインに置かれて、小さい例の文字が下に寄って見えるため */
.search input::placeholder { font-size: inherit; line-height: normal; }

/* ===== ヘッダーを一回り小さく（Apple のナビゲーションのように細い帯・小さな文字。主役の見出しを邪魔しない）=====
   見た目は小さくしても、押せる範囲は見えない余白で 44px を保つ（::after で広げる） */
.top .wrap { min-height: 52px; gap: 6px 10px; }
.logo { font-size: 18px; min-height: 44px; gap: 8px; }
.logo svg { width: 24px; height: 24px; }
.tools > a { font-size: 14px; min-height: 44px; padding: 0 10px; }
.tools > a.signup { min-height: 32px; padding: 0 14px; font-size: 14px; }
.langs, .tsize { padding: 2px; }
.langs a, .langs span { min-height: 30px; padding: 0 11px; font-size: 13px; position: relative; }
.tsize button { min-width: 30px; min-height: 30px; padding: 0 4px; position: relative; }
.tsize button:nth-child(1) { font-size: 12px; }
.tsize button:nth-child(2) { font-size: 15px; }
.tsize button:nth-child(3) { font-size: 18px; }
.langs a::after, .tsize button::after, .tools > a.signup::after { content: ""; position: absolute; inset: -7px -2px; }
.tools > a.signup { position: relative; }
.head-search { padding: 2px 2px 2px 14px; }
.head-search input { height: 34px; font-size: 15px; }
.head-search input::placeholder { font-size: 14px; }
.head-search button { min-height: 34px; padding: 0 14px; font-size: 14px; }
.hero h1 .accent { color: #0284C7; } /* チェック円(.free-pill svg)と同色。大きい文字なので白地4.1:1で可 */
.nb { white-space: nowrap; } /* 見出しで、ひとかたまりの言葉（すぐ届く。・ずっと無料。・always free.）を途中で改行しない */
.lead .free { color: #A51D14; font-weight: 800; } /* 無料は見出しで推さず、説明文の中で赤の太字にしてさりげなく伝える（白地で7.5:1） */

/* ===== タイルの組み替え（2026-10-14）：主役は「すぐ届く」。無料は小さなタイルの1つに =====
   小さなタイル5枚を、PCでは3枚＋2枚の2段に並べる（6列の格子で 2列幅×3、3列幅×2） */
@media (min-width: 760px) {
  .bento > .tile:not(.tile-hero) { grid-column: span 2; }
  .bento > .tile:nth-child(n+5) { grid-column: span 3; }
}

/* 説明文の最後の1文（無料で使えること）：太字の赤だとどぎついので、細めのオレンジ（焦げたオレンジ）で添える。
   白地で 6.0:1（純粋なオレンジ #E8730C は 3.0:1 で文字には薄すぎる） */
.lead .free-note { color: #A04A00; font-weight: 500; }
.lead .free-note { display: block; margin-top: 8px; } /* この1文は独立した1行にして、途中で折れないようにする */
.lead .free-note { font-size: 0.86em; } /* 本文より一回り小さく */

/* ===== 「無料で使える」の一文：説明文から切り離して、淡いオレンジのピルに入れる =====
   地 #FFF4E8、文字 #8F4100（6.6:1）。ピルは1行に収め、収まらない幅では中で言葉の切れ目で折り返す */
.lead .free-note { display: none; }
.free-pill { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 8px 18px 8px 14px; max-width: 100%; background: #FFF4E8; border: 1px solid #F6D9B8; border-radius: 22px; color: #8F4100; font-size: calc(16px * var(--t)); font-weight: 500; line-height: 1.5; text-align: left; }
.free-pill svg { width: 20px; height: 20px; flex: none; }
.free-pill { font-size: calc(18px * var(--t)); }
.free-pill span { text-wrap: balance; }

/* 「無料で使える」ピルの色：アンバーからスカイブルーへ（2026-10-14）。
   地 #E6F4FC・縁 #B9DDF2・文字 #0B4F7C（7.7:1）。ボタンの深い青（#0F4C9A）とは、地が淡い空色であることで見分けがつく */
.free-pill { background: #E6F4FC; border-color: #B9DDF2; color: #0B4F7C; }
.free-pill svg { color: #0284C7; }
.free-pill svg path { stroke: #E6F4FC; }
.search label span { text-wrap: balance; } /* 長い見出しが2行になっても、行の長さをそろえる */

/* ===== 「LabQSL でできること」：タイル（11-balanced で整理）=====
   ・紺（主役の1枚だけ）／白／温かい砂色／淡い青／温かいクリーム
   ・「さらに詳しく見る」は絵に重ねず、説明の直下に置く（<details> のまま。タイルの中で下に開く。浮かせない）
   ・見出しの大きさは、ファーストビューの見出し（h1）を超えない
   ・旧 .tile / .tile-* の指定は使わない（本番では削除してよい） */
.facts { padding: 96px 0 72px; }
.facts h2 { text-align: left; max-width: 980px; margin: 0 auto 48px; font-weight: 700; }
.bento { gap: 20px; }
.ft { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 32px; background: #fff; grid-column: span 3; color: var(--ink); isolation: isolate; }
.ft-fast { grid-column: 1 / -1; background: radial-gradient(90% 120% at 100% 100%, #123F85 0%, rgba(18,63,133,0) 60%), #0B2B5E; color: #fff; }
.ft-free { grid-column: span 2; background: linear-gradient(160deg, #FFF3DC 0%, #F8DDB0 100%); }
.ft-match { grid-column: span 4; background: #fff; }
.ft-wait { grid-column: span 3; background: linear-gradient(170deg, #FFFFFF 0%, #DCE8F8 100%); }
.ft-adif { grid-column: span 3; background: #fff; }
.ft-award { grid-column: 1 / -1; background: linear-gradient(120deg, #FFF3DC 0%, #FFFBF3 55%, #FFFFFF 100%); }
.ft-text { padding: 40px 36px 20px; text-align: left; }
.ft h3 { font-size: clamp(28px, 2.9vw, 36px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
html[lang="ja"] .ft h3 { font-size: clamp(25px, 2.4vw, 30px); line-height: 1.35; letter-spacing: 0; }
.ft-fast h3 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.025em; line-height: 1.08; }
html[lang="ja"] .ft-fast h3 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; letter-spacing: 0; }
.ft-fast h3 .accent { color: #9CC8FF; }
.ft p { margin-top: 14px; color: #3D3D42; font-size: calc(19px * var(--t)); max-width: 24em; text-wrap: pretty; }
.ft-fast p { color: #DCE7F7; }
.ft-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ft-points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 980px; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 500; font-size: calc(18px * var(--t)); }
.ft-points svg { width: 22px; height: 22px; flex: none; color: #9CC8FF; }
.ft-art { flex: 1 1 auto; margin-top: auto; display: flex; align-items: flex-end; min-height: 200px; }
.ft-art svg { display: block; width: 100%; height: auto; }
/* 横長のタイル：左に文字、右に絵（絵は縁まで） */
@media (min-width: 720px) {
  .ft-fast, .ft-match, .ft-award { flex-direction: row; }
  .ft-fast .ft-text, .ft-match .ft-text, .ft-award .ft-text { flex: 0 0 46%; align-self: center; padding: 44px 8px 44px 44px; }
  .ft-fast .ft-text { flex-basis: 44%; }
  .ft-fast .ft-art, .ft-match .ft-art, .ft-award .ft-art { flex: 1 1 auto; margin: 0; align-items: stretch; min-height: 280px; }
  .ft-fast .ft-art svg, .ft-match .ft-art svg, .ft-award .ft-art svg { height: 100%; }
}
/* 「さらに詳しく見る」：説明の直下。右の丸い＋が青（<details> のまま、JSなし） */
.ft-more { margin-top: 22px; }
.ft-more summary { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 5px 5px 5px 20px; border-radius: 980px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.14); color: var(--ink); font-weight: 500; font-size: calc(18px * var(--t)); cursor: pointer; list-style: none; }
.ft-more summary::-webkit-details-marker { display: none; }
.ft-more summary:hover { background: #F5F5F7; }
.ft-more summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ft-more .plus { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--accent); transition: transform .25s ease; }
.ft-more .plus::before, .ft-more .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); }
.ft-more .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.ft-more[open] .plus { transform: rotate(45deg); }
.ft-more .when-open, .ft-more[open] .when-closed { display: none; }
.ft-more[open] .when-open { display: inline; }
.ft-more-body { margin-top: 16px; padding: 20px 22px; background: rgba(255, 255, 255, 0.82); border-radius: 16px; max-width: 40em; }
.ft-more-body p { margin: 0; max-width: none; color: var(--ink); font-size: calc(18px * var(--t)); line-height: 1.65; }
html[lang="ja"] .ft-more-body p { line-height: 1.85; }
.ft-more-body p + p { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .ft-more .plus { transition: none; } }
/* 開いたタイルは広げない：その列の中で下に伸びるだけ（他のタイルは元の高さのまま） */
.bento:has(.ft-more[open]) .ft { align-self: start; }
@media (min-width: 720px) {
  .ft-match:has(.ft-more[open]) .ft-text, .ft-award:has(.ft-more[open]) .ft-text { flex: 1 1 62%; padding-right: 24px; }
  .ft-match:has(.ft-more[open]) .ft-art, .ft-award:has(.ft-more[open]) .ft-art { flex: 0 0 36%; min-height: 0; align-items: flex-start; }
  .ft-match:has(.ft-more[open]) .ft-art svg, .ft-award:has(.ft-more[open]) .ft-art svg { height: auto; margin-top: 40px; }
}
/* 文字サイズ「大・特大」：細い列（無料）が窮屈にならないよう、無料と照合を3+3の縦型にする */
@media (min-width: 720px) {
  html.size-1 .ft-free, html.size-2 .ft-free, html.size-1 .ft-match, html.size-2 .ft-match { grid-column: span 3; }
  html.size-1 .ft-match, html.size-2 .ft-match { flex-direction: column; }
  html.size-1 .ft-match .ft-text, html.size-2 .ft-match .ft-text,
  html.size-1 .ft-match:has(.ft-more[open]) .ft-text, html.size-2 .ft-match:has(.ft-more[open]) .ft-text { flex: none; align-self: stretch; padding: 40px 36px 20px; }
  html.size-1 .ft-match .ft-art, html.size-2 .ft-match .ft-art,
  html.size-1 .ft-match:has(.ft-more[open]) .ft-art, html.size-2 .ft-match:has(.ft-more[open]) .ft-art { flex: 1 1 auto; min-height: 200px; align-items: flex-end; margin-top: auto; }
  html.size-1 .ft-match .ft-art svg, html.size-2 .ft-match .ft-art svg,
  html.size-1 .ft-match:has(.ft-more[open]) .ft-art svg, html.size-2 .ft-match:has(.ft-more[open]) .ft-art svg { height: auto; margin-top: 0; }
}
@media (max-width: 719px) {
  .facts { padding: 64px 0 48px; }
  .facts h2 { margin-bottom: 28px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ft, .ft-fast, .ft-free, .ft-match, .ft-wait, .ft-adif, .ft-award { grid-column: 1 / -1; border-radius: 24px; }
  .ft-text { padding: 28px 24px 20px; }
  .ft-art { min-height: 0; }
  .ft-art svg { max-height: 220px; }
  .ft-more { margin-top: 18px; }
}

/* ===== 案B：見本カードを主役に（ファーストビュー） ===== */
.hero-card { position: relative; overflow: hidden; padding: 88px 0 80px;
  background: radial-gradient(70% 60% at 100% 0%, #DCEBFA 0%, rgba(220,235,250,0) 70%), radial-gradient(70% 60% at 0% 100%, #FFE6D6 0%, rgba(255,230,214,0) 70%), linear-gradient(180deg, #FFFCF7 0%, #F4F8FD 100%); }
.hero-card .sample { max-width: 880px; margin: 52px auto 0; padding: 0 14px; position: relative; }
.hero-card .sample-stack { position: relative; padding: 0 0 6px; }
.hero-card .sample-stack::before, .hero-card .sample-stack::after { content: ""; position: absolute; inset: 0 0 6px; background: #fff; border-radius: 22px; box-shadow: 0 10px 24px rgba(40,50,80,.14), 0 0 0 1px rgba(0,0,0,.05); z-index: 0; }
.hero-card .sample-stack::before { transform: rotate(5deg) translate(26px, 8px); background: #FBEFE4; }
.hero-card .sample-stack::after { transform: rotate(2.6deg) translate(12px, 4px); background: #EAF1FB; }
.hero-card .sample-card { position: relative; z-index: 1; padding: 12px; background: #fff; border-radius: 24px; transform: rotate(-1.6deg); box-shadow: 0 2px 4px rgba(30,40,70,.12), 0 18px 40px rgba(30,40,70,.22), 0 0 0 1px rgba(0,0,0,.05); }
.hero-card .sample-card .qsl { border-radius: 14px; }
.hero-card .sample-pick { position: relative; z-index: 3; width: max-content; max-width: calc(100% - 20px); margin: -26px auto 0; padding: 6px; background: #fff; border-radius: 980px; box-shadow: 0 8px 22px rgba(30,40,70,.2), 0 0 0 1px rgba(0,0,0,.06); justify-content: center; }
.hero-card .sample figcaption { margin-top: 14px; }
.hero-card .search { position: relative; z-index: 4; max-width: 700px; margin: 28px auto 0; background: #fff; border: 2px solid var(--accent); border-radius: 28px; box-shadow: 0 2px 4px rgba(15,76,154,.12), 0 22px 44px rgba(30,40,70,.2); }
.hero-card .search .row { background: #F5F5F7; border-color: #86868B; }
@media (max-width: 719px) {
  .hero-card { padding: 48px 0 56px; }
  .hero-card .sample { margin-top: 36px; padding: 0 10px; }
  .hero-card .sample-card { padding: 7px; border-radius: 18px; transform: rotate(-1deg); }
  .hero-card .sample-stack::before { transform: rotate(3.5deg) translate(10px, 6px); }
  .hero-card .sample-stack::after { transform: rotate(1.8deg) translate(5px, 3px); }
  .hero-card .sample-pick { justify-content: center; margin-top: -22px; gap: 4px; }
  .hero-card .sample figcaption { text-align: left; }
  .hero-card .search { margin-top: 24px; }
}
@media (max-width: 560px) { .hero-card .search .row { background: transparent; } }

/* ===== 9：重ねない・余白を広げる（2026-10-14）=====
   依頼主の指摘：「切り替えボタンが見本カードに重なっているのはやめたい」「余白が狭くなっていない？」
   ・切り替えボタンはカードの下に独立して置く（マイナスのマージンで重ねない）
   ・上下の余白、見出し・説明・ピル・カード・検索の間を広げる。カード自体の幅も少し絞り、左右に空きを持たせる */
.hero-card { padding: 104px 0 112px; }
.hero-card .lead { margin-top: 26px; }
.hero-card .free-pill { margin-top: 26px; }
.hero-card .sample { max-width: 800px; margin-top: 72px; }
.hero-card .sample-pick { margin: 36px auto 0; }
.hero-card .sample figcaption { margin-top: 16px; }
.hero-card .search { margin-top: 56px; }
@media (max-width: 719px) {
  .hero-card { padding: 60px 0 80px; }
  .hero-card .lead { margin-top: 22px; }
  .hero-card .free-pill { margin-top: 20px; }
  .hero-card .sample { margin-top: 48px; }
  .hero-card .sample-pick { margin: 26px auto 0; }
  .hero-card .sample figcaption { margin-top: 12px; }
  .hero-card .search { margin-top: 36px; }
}

/* ===== 10：検索カードを主役に（2026-10-14）=====
   依頼主の指摘：「検索窓カードより見本カードが目立っている。本当は逆」
   ・順番：見出し → 説明 → ピル → 検索カード → 見本カード（検索を先に）
   ・検索カード：幅を広げ、入力欄とボタンを大きく、深い青の輪郭をはっきり、影も強く
   ・見本カード：幅を絞り、傾き・影を弱めて「見本」の役割に */
.hero-card .search { max-width: 780px; margin: 48px auto 0; padding: 30px 34px 34px; border-width: 3px; border-radius: 32px; box-shadow: 0 2px 4px rgba(15,76,154,.14), 0 28px 56px -18px rgba(15,76,154,.38); }
.hero-card .search label, html[lang="ja"] .hero-card .search label { font-size: calc(32px * var(--t)); margin-bottom: 6px; }
.hero-card .search .hint { font-size: calc(18px * var(--t)); margin-bottom: 20px; }
.hero-card .search input { height: 72px; font-size: 32px; }
.hero-card .search .btn { min-height: 72px; padding: 0 36px; font-size: calc(20px * var(--t)); }
.hero-card .sample { max-width: 560px; margin-top: 64px; }
.hero-card .sample-card { transform: rotate(-0.8deg); padding: 9px; box-shadow: 0 1px 3px rgba(30,40,70,.10), 0 10px 22px rgba(30,40,70,.12), 0 0 0 1px rgba(0,0,0,.05); }
.hero-card .sample-stack::before { transform: rotate(3deg) translate(14px, 5px); }
.hero-card .sample-stack::after { transform: rotate(1.6deg) translate(7px, 3px); }
.hero-card .sample-pick { margin-top: 28px; }
@media (max-width: 719px) {
  .hero-card .search { margin-top: 36px; padding: 22px 20px 24px; border-width: 2px; border-radius: 26px; }
  .hero-card .search label, html[lang="ja"] .hero-card .search label { font-size: calc(26px * var(--t)); }
  .hero-card .search input { height: 64px; font-size: 28px; }
  .hero-card .search .btn { min-height: 64px; }
  .hero-card .sample { margin-top: 44px; max-width: 420px; }
}

/* ===== 11：全体のバランス（2026-10-14）=====
   法則（PC／スマホ）
   ・面の角丸：大 32／24（タイル・検索カード・登録の呼びかけ）、中 24／18（見本カード）、小 16（開いた説明・エラー）、操作部品は楕円 980
   ・縦の余白：区切りの上下 96／64。区切りの中は 24 → 24 → 40 → 56（見出し→説明→ピル→検索→見本）、タイル間 20／16
   ・文字：見出し h1 52／32 ＞ h2 40／30 ＞ タイル主役 44／30 ＞ タイル 30／25 ＞ 説明 17。補足は 16 を下回らない（標準の大きさのとき）
   ・色：地は #F5F5F7 と白、上下の締めは同じ空色・桃色のやわらかい面（ファーストビューと登録の呼びかけで挟む）
   ・影：操作する面（検索）だけ青く沈める。見本・ボタン群は薄い影、タイルは影なし */

/* 区切りの見出し（できること）：ファーストビューの見出しより小さく */
.facts h2 { letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(32px, 3.9vw, 48px); }
html[lang="ja"] .facts h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; letter-spacing: 0; }

/* ファーストビュー：検索カードを 1280×800 の画面に収め、下は区切りの灰色へなめらかにつなぐ */
.hero-card { padding: 80px 0 72px;
  background: radial-gradient(70% 55% at 100% 0%, #DCEBFA 0%, rgba(220,235,250,0) 70%), radial-gradient(60% 45% at 0% 100%, #FFEBDD 0%, rgba(255,235,221,0) 70%), linear-gradient(180deg, #FFFCF7 0%, #F5F5F7 100%); }
.hero-card .lead { margin-top: 24px; }
.hero-card .free-pill { margin-top: 24px; }
.hero-card .search { margin-top: 40px; border-radius: 32px; }
.hero-card .sample { margin-top: 56px; }
.hero-card .sample-pick { margin-top: 24px; box-shadow: 0 2px 8px rgba(30,40,70,.10), 0 0 0 1px rgba(0,0,0,.06); }
.hero-card .sample-pick button { font-size: calc(18px * var(--t)); padding: 0 20px; }
.hero-card .sample figcaption, .sample figcaption { margin-top: 16px; font-size: calc(18px * var(--t)); }
.hero-card .sample-card { border-radius: 24px; }
.hero-card .sample-stack::before, .hero-card .sample-stack::after { border-radius: 24px; }

/* 登録の呼びかけ：ファーストビューと同じ空色・桃色のやわらかい面にして、ページを締める */
.cta-band { padding: 0 0 96px; background: var(--band); }
.cta-card { padding: 72px 40px; border-radius: 32px; box-shadow: inset 0 0 0 1px rgba(15, 76, 154, 0.10);
  background: radial-gradient(70% 90% at 100% 0%, #DCEBFA 0%, rgba(220,235,250,0) 70%), radial-gradient(60% 80% at 0% 100%, #FFEBDD 0%, rgba(255,235,221,0) 70%), #FFFCF7; }
.cta-band p { max-width: 20em; margin: 0 auto 32px; font-size: clamp(24px, 2.8vw, 34px); }
.cta-band .btn { min-height: 64px; padding: 0 44px; font-size: calc(20px * var(--t)); }

.foot { border-top: 1px solid var(--rule-soft); }

@media (max-width: 719px) {
  .hero-card { padding: 48px 0 56px; }
  .hero-card .lead { margin-top: 20px; }
  .hero-card .free-pill { margin-top: 20px; }
  .hero-card .search { margin-top: 32px; border-radius: 24px; }
  .hero-card .sample { margin-top: 40px; }
  .hero-card .sample-pick { margin-top: 20px; gap: 4px; }
  .hero-card .sample-pick button { padding: 0 14px; font-size: calc(18px * var(--t)); }
  .hero-card .sample figcaption { margin-top: 12px; }
  .hero-card .sample-card { border-radius: 18px; }
  .hero-card .sample-stack::before, .hero-card .sample-stack::after { border-radius: 18px; }
  .cta-band { padding-bottom: 64px; }
  .cta-card { padding: 40px 24px; border-radius: 24px; }
  .cta-band .btn { width: 100%; }
}

/* ===== 11（審査役の点検 REVIEW-10 の反映）===== */
/* A-3：見本の印と、自動切り替えの止める・再開 */
.sample-badge { position: absolute; top: -12px; right: 12px; z-index: 5; padding: 6px 16px; border-radius: 980px; background: var(--ink); color: #fff; border: 2px solid #fff; font-weight: 700; font-size: 16px; letter-spacing: .06em; line-height: 1.3; box-shadow: 0 2px 8px rgba(30,40,70,.2); }
.sample-pause { display: block; margin: 4px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--accent); font: 500 calc(18px * var(--t)) var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sample-pause[hidden] { display: none; }
@media (max-width: 719px) { .sample-badge { right: 6px; top: -14px; } .sample-pause { margin-left: 0; } }

/* D-3：見本の切り替えボタン（標準で16px以上・押す範囲を広く） */
.hero-card .sample-pick button { min-height: 48px; min-width: 48px; padding: 0 18px; }

/* A-4・D-1・D-4：ヘッダーの操作はすべて実寸44px以上。「文字の大きさ」のラベルを添える。文字は選んだ大きさに合わせて大きくなる */
:root { --hd: 1; --h: 1; }
html.size-1 { --hd: 1.12; --h: 1.1; }
html.size-2 { --hd: 1.25; --h: 1.2; }
.langs a::after, .tsize button::after, .tools > a.signup::after { content: none; }
.top .wrap { min-height: 60px; gap: 8px 12px; }
.logo { font-size: calc(18px * var(--hd)); }
.tools { gap: 8px; }
.tools > a { font-size: calc(15px * var(--hd)); min-height: 44px; padding: 0 12px; }
.tools > a.signup { min-height: 44px; padding: 0 18px; font-size: calc(15px * var(--hd)); margin-left: 0; }
.langs, .tsize { padding: 2px; margin: 0; }
.langs a, .langs span { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 14px; font-size: calc(14px * var(--hd)); }
.tsize { gap: 0; padding-left: 12px; }
.tsize button { min-width: 44px; min-height: 44px; padding: 0 4px; }
.top .tsize button:nth-of-type(1) { font-size: calc(14px * var(--hd)); }
.top .tsize button:nth-of-type(2) { font-size: calc(18px * var(--hd)); }
.top .tsize button:nth-of-type(3) { font-size: calc(22px * var(--hd)); }
.top .tsize { margin-left: auto; }
.top .tools { margin-left: 0; }
.tcap { margin-right: 6px; font-size: calc(14px * var(--hd)); font-weight: 500; color: var(--ink); white-space: nowrap; }
.tcap .short { display: none; }
@media (max-width: 719px) {
  .top .wrap { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; min-height: 56px; }
  .logo { order: 1; }
  .langs { order: 2; margin-left: auto; }
  .tools { order: 3; margin-left: 0; }
  .tsize { display: none; }   /* スマホは1段に収める。文字の大きさは下の「文字の大きさ 標準・大・特大」で選ぶ */
}
@media (max-width: 719px) {
  .top .wrap { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .langs a, .langs span { padding: 0 8px; min-width: 44px; }
  .tools > a.signup { padding: 0 12px; font-size: 14px; }
  .logo { font-size: 18px; }
}

/* D-4：見出しも、選んだ大きさに合わせて少しだけ大きくする（折り返しが崩れない比率） */
.hero h1 { font-size: calc(clamp(40px, 6.4vw, 64px) * var(--h)); }
html[lang="ja"] .hero h1 { font-size: calc(clamp(32px, 5.2vw, 52px) * var(--h)); }
.facts h2 { font-size: calc(clamp(32px, 3.9vw, 48px) * var(--h)); }
html[lang="ja"] .facts h2 { font-size: calc(clamp(28px, 3.4vw, 40px) * var(--h)); }
.ft h3 { font-size: calc(clamp(28px, 2.9vw, 36px) * var(--h)); }
html[lang="ja"] .ft h3 { font-size: calc(clamp(25px, 2.4vw, 30px) * var(--h)); }
.ft-fast h3 { font-size: calc(clamp(36px, 4.4vw, 56px) * var(--h)); }
html[lang="ja"] .ft-fast h3 { font-size: calc(clamp(30px, 3.6vw, 44px) * var(--h)); }
.cta-band p { font-size: calc(clamp(24px, 2.8vw, 34px) * var(--h)); }
html.size-1 .hero h1, html.size-2 .hero h1 { max-width: 16em; }

/* D-5：検索入力のフォーカスを、はっきりした青の太い枠＋淡い輪に */
.search .row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent), 0 0 0 9px rgba(15, 76, 154, .25); }
@media (max-width: 560px) {
  .search .row:focus-within { box-shadow: none; }
  .search input:focus { border: 1px solid var(--accent); box-shadow: 0 0 0 3px var(--accent), 0 0 0 9px rgba(15, 76, 154, .25); }
}

/* D-2：開く前の本文に置いた「？」（ヘルプ）：文章の流れの中で開く */
.ft p .help { display: inline; }
.ft p .help-body { margin: 10px 0 4px; font-size: calc(17px * var(--t)); max-width: 28em; }
.ft-wait p .help-body, .ft-adif p .help-body { background: #fff; }

/* A-1：スマホの最初の画面に、入力欄と「確認する」を収める（順番は変えない。詰めすぎず、段落間の余白は残す） */
@media (max-width: 719px) {
  .hero-card { padding-top: 40px; }
  .hero-card .lead { font-size: clamp(18px, 4.6vw, 20px); line-height: 1.65; margin-top: 16px; }
  .hero-card .free-pill { margin-top: 16px; }
  .hero-card .search { margin-top: 28px; padding: 20px 18px 22px; }
  .hero-card .search label, html[lang="ja"] .hero-card .search label { font-size: calc(24px * var(--t)); }
  .hero-card .search .hint { margin-bottom: 14px; }
}
@media (max-width: 719px) {
  .hero-card .sample-pick { width: auto; max-width: 100%; }
  .hero-card .sample-pick button { padding: 0 12px; min-width: 44px; }
  .sample-pause { padding-left: 0; }
}
@media (max-width: 719px) { html.size-1 { --h: 1.05; } html.size-2 { --h: 1.1; } }
.top .tsize { gap: 8px; padding: 2px 6px 2px 12px; }
/* 英語の見出しは元から大きいので、大・特大の増やし幅をさらに小さく（行の折り返しを崩さない） */
html[lang="en"].size-1 .hero h1 { font-size: calc(clamp(40px, 6.4vw, 64px) * 1.03); max-width: none; }
html[lang="en"].size-2 .hero h1 { font-size: calc(clamp(40px, 6.4vw, 64px) * 1.06); max-width: none; }
html[lang="en"].size-1 .hero h1, html[lang="en"].size-2 .hero h1 { text-wrap: balance; }

/* ===== 12: ヒーローの磨き込み（Apple流：背景は無地、主役は文字と1つの物、入れ物の入れ子を減らす） ===== */
.hero, .hero-card { background: linear-gradient(#FFFFFF 0%, #FFFFFF 38%, #F5F5F7 100%); padding: 96px 0 104px; }
.hero h1 { max-width: 14em; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
html[lang="ja"] .hero h1 { font-size: clamp(32px, 5.4vw, 64px); line-height: 1.22; letter-spacing: -0.01em; }
.hero .lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.75; color: var(--ink-2); margin-top: 28px; max-width: 24em; }
.hero .free-pill { margin-top: 22px; }
/* 検索：外側の入れ物をやめ、見出し＋ひとつの白い入力欄だけにする */
.hero .search { background: transparent; border: 0; box-shadow: none; padding: 0; max-width: 620px; margin-top: 64px; }
.hero .search label { font-size: calc(30px * var(--t)); }
.hero .search .row { padding: 7px; background: #fff; border: 1px solid #86868B; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.hero .search .hint { margin-bottom: 26px; }
/* 見本カード：紙の重なり・傾きをやめ、1枚を大きく、影をやわらかく */
.hero .sample { max-width: 760px; margin-top: 80px; }
.hero .sample-stack::before, .hero .sample-stack::after { display: none; }
.hero .sample-card { transform: none; padding: 0; background: transparent; box-shadow: 0 30px 60px -20px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.06); border-radius: 20px; }
.hero .sample-card .qsl { border-radius: 20px; }
.hero .sample-pick { margin: 28px auto 0; padding: 0; background: transparent; box-shadow: none; }
.hero .sample figcaption { margin-top: 12px; font-size: calc(16px * var(--t)); }
@media (max-width: 719px) {
  .hero, .hero-card { padding: 48px 0 64px; }
  .hero .search { margin-top: 36px; }
  .hero .sample { margin-top: 48px; }
}
.hero .lead { max-width: 30em; }
.hero .sample-pick button { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.hero .sample-pick button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 719px) {
  .hero .lead { max-width: none; font-size: calc(17px * var(--t)); line-height: 1.7; margin-top: 18px; }
  .hero .free-pill { margin-top: 16px; font-size: calc(16px * var(--t)); }
  .hero .search label { font-size: calc(24px * var(--t)); }
  .hero .search .hint { font-size: calc(16px * var(--t)); margin-bottom: 16px; }
  .hero .search { margin-top: 28px; }
}

/* ピル：枠線をやめ、Appleの「新機能」バッジのように、ごく淡い青の面＋小さな青い丸のチェックだけに */
.hero .free-pill { gap: 10px; padding: 10px 22px 10px 12px; background: rgba(2, 132, 199, .09); border: 0; border-radius: 980px; color: #0B4F7C; font-weight: 600; letter-spacing: .01em; box-shadow: none; }
.hero .free-pill svg { width: 24px; height: 24px; }
@media (max-width: 719px) { .hero .free-pill { padding: 9px 18px 9px 10px; } }

/* 「LabQSL でできること」：中央寄せ・見出しを大きく。ヒーローは白で終え、灰色の面との境目を戻す */
.hero, .hero-card { background: #fff; padding-bottom: 80px; }
.facts { padding-top: 80px; }
.facts h2, html[lang="ja"] .facts h2 { text-align: center; max-width: none; margin: 0 auto 56px; }
.facts h2 { font-size: calc(clamp(36px, 4.8vw, 60px) * var(--h)); line-height: 1.12; letter-spacing: -0.025em; }
html[lang="ja"] .facts h2 { font-size: calc(clamp(30px, 4.2vw, 52px) * var(--h)); line-height: 1.25; letter-spacing: -0.01em; }
@media (max-width: 719px) { .hero, .hero-card { padding-bottom: 56px; } .facts { padding-top: 56px; } }

/* ヘッダー・フッターは控えめに：見た目は小さく（高さ32px・文字13〜14px）、押せる範囲は見えない当たり判定で44px以上を保つ */
.top .wrap { min-height: 52px; }
.logo { font-size: 17px; }
.langs a, .langs span { position: relative; min-height: 32px; min-width: 0; padding: 0 12px; font-size: 13px; }
.top .tsize { gap: 2px; padding: 2px 4px 2px 12px; }
.tsize button { position: relative; min-width: 32px; min-height: 32px; }
.top .tsize button:nth-of-type(1) { font-size: 12px; }
.top .tsize button:nth-of-type(2) { font-size: 15px; }
.top .tsize button:nth-of-type(3) { font-size: 18px; }
.tcap { font-size: 13px; }
.tools > a { position: relative; min-height: 32px; font-size: 13px; padding: 0 10px; }
.tools > a.signup { min-height: 32px; padding: 0 14px; font-size: 13px; }
.langs a::after, .tsize button::after, .tools > a::after { content: ""; position: absolute; inset: -6px -3px; }
.foot, .foot .wrap { font-size: 14px; }
.foot { padding: 20px 0 28px; }
.textsize-label { font-size: 14px; }
.textsize button { min-height: 32px; font-size: 14px; position: relative; }
.textsize button::after { content: ""; position: absolute; inset: -6px -3px; }
.foot a { position: relative; }
.foot a::after { content: ""; position: absolute; inset: -10px -4px; }
@media (max-width: 719px) { .tools > a.signup { font-size: 13px; padding: 0 12px; } .langs a, .langs span { padding: 0 9px; } }

/* 登録の呼びかけ：別セクション。白地に、届いたカードが扇のように並ぶ */
.go { background: #fff; padding: 112px 0 120px; overflow: hidden; }
.go-eye { font-size: calc(17px * var(--t)); font-weight: 600; color: var(--accent); letter-spacing: .04em; margin: 0 0 14px; }
.go h2 { font-size: calc(clamp(36px, 5vw, 64px) * var(--h)); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0 auto; max-width: 14em; }
html[lang="ja"] .go h2 { font-size: calc(clamp(30px, 4.4vw, 56px) * var(--h)); line-height: 1.25; letter-spacing: -0.01em; }
.go h2 .accent { color: var(--accent); }
.go-sub { font-size: calc(20px * var(--t)); color: var(--ink-2); margin: 22px auto 0; max-width: 28em; }
.go-fan { position: relative; height: 230px; max-width: 760px; margin: 56px auto 48px; }
.go-card { position: absolute; bottom: 0; width: 240px; height: 160px; border-radius: 16px; padding: 16px 18px; text-align: left; color: #fff; box-shadow: 0 24px 40px -16px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); display: flex; flex-direction: column; justify-content: flex-end; }
.go-card b { font: 700 24px var(--call); letter-spacing: .02em; }
.go-card i { font: 500 14px var(--sans); font-style: normal; opacity: .92; margin-top: 2px; }
.gc1 { left: 4%;  transform: rotate(-9deg) translateY(10px); background: linear-gradient(160deg, #3A2E6B 0%, #C0587A 55%, #F2A65A 100%); }
.gc2 { left: 26%; transform: rotate(-3deg); background: linear-gradient(160deg, #0B4F7C 0%, #2AA0C8 60%, #BFE8F2 100%); }
.gc3 { left: 50%; transform: rotate(3deg) translateY(2px); background: linear-gradient(160deg, #26364F 0%, #6C86A8 55%, #E7EEF6 100%); }
.gc4 { left: 72%; transform: rotate(9deg) translateY(12px); background: linear-gradient(160deg, #1F4D3A 0%, #4C8F63 55%, #D3E7A8 100%); }
.go .btn { min-height: 64px; padding: 0 48px; font-size: calc(20px * var(--t)); }
@media (max-width: 719px) {
  .go { padding: 64px 0 72px; }
  .go-fan { height: 150px; margin: 36px auto 32px; }
  .go-card { width: 46%; height: 108px; padding: 10px 12px; }
  .go-card b { font-size: 16px; } .go-card i { font-size: 12px; }
  .gc1 { left: -4%; } .gc2 { left: 20%; } .gc3 { left: 38%; } .gc4 { left: 56%; }
  .go .btn { width: 100%; }
}

/* はじめかた：3つだけ・進み具合が見える・「やること」を最小に見せる */
.how { background: #EEF4FB; padding: 104px 0 96px; }
.how h2 { font-size: calc(clamp(34px, 4.6vw, 56px) * var(--h)); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0 auto; }
html[lang="ja"] .how h2 { font-size: calc(clamp(30px, 4.2vw, 52px) * var(--h)); letter-spacing: -0.01em; }
.how-list { list-style: none; margin: 56px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1040px; text-align: left; }
.how-list li { position: relative; background: #fff; border-radius: 28px; padding: 32px 28px 40px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.how-n { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 28px var(--sans); }
.how-list h3 { font-size: calc(24px * var(--t)); line-height: 1.3; font-weight: 700; margin: 0 0 8px; }
.how-list p { font-size: calc(17px * var(--t)); line-height: 1.7; color: var(--ink-2); }
.how-bar { position: absolute; left: 28px; right: 28px; bottom: 16px; height: 6px; border-radius: 3px; background: #E3EAF3; }
.how-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.how-tail { margin-top: 40px; font-size: calc(clamp(22px, 2.4vw, 30px) * var(--h)); font-weight: 700; }
.go { padding-top: 96px; }
/* 画面下に固定する登録バー（ヒーローを過ぎてから、最後の呼びかけが見えるまでの間だけ） */
.go-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 22px; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(20px); border-radius: 980px; box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); max-width: calc(100% - 24px); }
.go-bar[hidden] { display: none; }
.go-bar-chips { display: inline-flex; }
.go-bar-chips i { width: 34px; height: 24px; border-radius: 6px; margin-left: -10px; box-shadow: 0 0 0 2px #fff; }
.go-bar-chips i:first-child { margin-left: 0; }
.go-bar-chips .c1 { background: linear-gradient(160deg, #3A2E6B, #F2A65A); transform: rotate(-8deg); }
.go-bar-chips .c2 { background: linear-gradient(160deg, #0B4F7C, #BFE8F2); }
.go-bar-chips .c3 { background: linear-gradient(160deg, #1F4D3A, #D3E7A8); transform: rotate(8deg); }
.go-bar-text { font-size: calc(17px * var(--t)); font-weight: 700; white-space: nowrap; }
.go-bar .btn { min-height: 48px; padding: 0 24px; font-size: calc(17px * var(--t)); white-space: nowrap; }
@media (max-width: 719px) {
  .how { padding: 64px 0 56px; }
  .how-list { grid-template-columns: 1fr; margin-top: 36px; }
  .go-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; padding: 8px 8px 8px 16px; max-width: none; }
  .go-bar-chips { display: none; }
  .go-bar-text { white-space: normal; font-size: 15px; line-height: 1.3; }
}

/* 背景の入れ替え：できること＝淡い空色、はじめかた＝白、最後の呼びかけ＝灰色 */
.facts.band, .facts { background: #EEF4FB; }
.how { background: #fff; }
.go { background: #F5F5F7; }
.how-list li { background: #F5F5F7; }
.how-bar { background: #DCE3EC; }
.go-card, .go-bar-chips i { box-shadow: 0 24px 40px -16px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
/* できること背景：灰みのない、澄んだ空色に */
.facts.band, .facts { background: #E3F0FF; }
.facts.band, .facts { background: #F0F7FF; }

/* はじめかた：あたたかい色の絵を添え、1→2→3と色が移っていく。最後は少しお祝いの雰囲気に */
.how { background: radial-gradient(60% 40% at 50% 0%, #FFF3E2 0%, rgba(255,243,226,0) 100%), #fff; }
.how-list li { background: #fff; padding: 0 0 44px; border-radius: 28px; overflow: visible; gap: 14px; box-shadow: 0 18px 40px -22px rgba(15,40,90,.35), 0 0 0 1px rgba(0,0,0,.05); }
.how-art { border-radius: 28px 28px 0 0; padding: 18px 18px 0; height: 168px; display: grid; place-items: end center; overflow: hidden; }
.how-art svg { width: 100%; max-width: 240px; height: auto; display: block; }
.how-s1 .how-art { background: linear-gradient(160deg, #DCEBFF 0%, #EEF5FF 100%); }
.how-s2 .how-art { background: linear-gradient(160deg, #FFE9CC 0%, #FFF4E4 100%); }
.how-s3 .how-art { background: linear-gradient(160deg, #FFD9C2 0%, #FFEBD6 55%, #DCEBFF 100%); }
.how-n { margin: -28px 0 0 28px; position: relative; z-index: 1; box-shadow: 0 0 0 5px #fff; width: 52px; height: 52px; font-size: 26px; }
.how-s2 .how-n { background: #F59E0B; }
.how-s3 .how-n { background: #E8590C; }
.how-list li > div:not(.how-art) { padding: 0 28px; }
.how-bar { left: 28px; right: 28px; }
.how-s2 .how-bar i { background: #F59E0B; } .how-s3 .how-bar i { background: #E8590C; }
.how-tail { color: var(--accent); }
@media (max-width: 719px) { .how-art { height: 150px; } }
.how-list li > div:not(.how-art) { padding: 0 22px; }
.how-list p { text-wrap: pretty; }
.how-bar { left: 22px; right: 22px; }

/* 全体の背景のリズム：白 → 灰色（Appleの #F5F5F7）→ 白 → 淡い空色 → フッターの灰色。隣り合う面は必ず色が違う */
.hero, .hero-card { background: #fff; }
.facts.band, .facts { background: #F5F5F7; }
.how { background: #fff; }
.go { background: #EDF5FF; }
.how-list li { background: #fff; }
.foot { background: #F5F5F7; }

/* ヘッダーの区切り線を、国際郵便（エアメール）の縁取りに。太め・彩度を落とした赤と青で、サイトの青に馴染ませる */
/* ヘッダー内の上下に余裕を（縁取り9pxの上に、文字の下の余白を確保） */
.top .wrap { min-height: 76px; padding-top: 14px; padding-bottom: 23px; }
@media (max-width: 719px) { .top .wrap { min-height: 64px; padding-top: 10px; padding-bottom: 19px; } }
.top .wrap { min-height: 64px; padding-top: 10px; padding-bottom: 19px; }
@media (max-width: 719px) { .top .wrap { min-height: 58px; padding-top: 8px; padding-bottom: 17px; } }
/* ロゴを大きく（ヘッダーの帯は変えない） */
.logo { font-size: 24px; gap: 10px; }
.logo svg { width: 36px; height: 36px; }
@media (max-width: 719px) { .logo { font-size: 21px; } .logo svg { width: 30px; height: 30px; } }

/* フッターの上端にも、ヘッダーと同じ国際郵便の縁取りを（こちらは固定。ページの終わりの印） */
.foot { position: relative; border-top: 0; padding-top: 32px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: repeating-linear-gradient(-45deg, #C8585A 0 14px, #FFFFFF 14px 24px, #3B6BB0 24px 38px, #FFFFFF 38px 48px); }

/* フッターの「文字の大きさ」：PCはヘッダーに常にあるので外す。スマホはヘッダーに入らないので残す */
@media (min-width: 720px) { .foot .textsize { display: none; } }

/* フッター：リンクの段＋ひとこと・コピーライトの段（textsizeはPCでは外し、スマホ用は下で別に出す） */
.foot .foot-grid { display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-size: calc(15px * var(--t)); }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-note { margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.foot-note a { color: var(--ink-2); }
.foot-cp { margin-left: 8px; }
.foot { padding: 28px 0 36px; }
.foot .textsize { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (min-width: 720px) { .foot .textsize { display: none; } }
/* フッターは中央寄せ */
.foot .foot-grid { text-align: center; }
.foot-links { justify-content: center; }
.foot .textsize { justify-content: center; }
.foot-cp { margin-left: 0; }
.foot-note span { display: inline; }
/* 見出しの上の小さな言葉：存在感を出し、大見出しとの間も広げる */
.go-eye { font-size: calc(clamp(20px, 1.9vw, 26px) * var(--t)); font-weight: 700; letter-spacing: .02em; margin: 0 0 26px; }
@media (max-width: 719px) { .go-eye { font-size: calc(19px * var(--t)); margin-bottom: 18px; } }
/* 文字は元の大きさに戻す（余白は広いまま） */
.go-eye { font-size: calc(17px * var(--t)); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 719px) { .go-eye { font-size: calc(17px * var(--t)); } }

/* 点検を受けた整理：青は #0F4C9A に統一／朱は弱める／影をそろえる／注記は14px */
.tools > a.signup { background: var(--accent); }
.tools > a.signup:hover { background: #0B3C7A; }
.how-s3 .how-n { background: #D9772F; }
.how-s3 .how-bar i { background: #D9772F; }
.go-card { box-shadow: 0 14px 28px -14px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.06); }
.foot-note { font-size: 14px; }

/* フッター：縞をやめ、深い紺のベタ塗り＋白文字で重みを持たせる */
.foot::before { content: none; }
.foot { background: #0E2B57; color: #fff; border-top: 0; padding: 44px 0 48px; }
.foot-links a { color: #fff; font-size: calc(16px * var(--t)); }
.foot-note, .foot-note a, .foot .textsize-label { color: #D5DEEC; }
.foot-note { font-size: 14px; margin-top: 18px; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot a:focus-visible, .foot button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.foot .textsize button { background: rgba(255,255,255,.12); color: #fff; border: 0; }
.foot .textsize button[aria-pressed="true"] { background: #fff; color: #0E2B57; }
/* フッターの上下の見た目の余白をそろえる（リンクの当たり判定40pxぶんの内側の空きを差し引く） */
.foot { padding: 36px 0 39px; }

/* スマホの最初の画面に、入力欄と「確認する」を収める */
@media (max-width: 719px) {
  .hero, .hero-card { padding-top: 28px; }
  html[lang="ja"] .hero h1 { font-size: calc(clamp(30px, 8.6vw, 38px) * var(--h)); line-height: 1.25; }
  .hero .lead { font-size: calc(16px * var(--t)); line-height: 1.65; margin-top: 14px; text-wrap: pretty; }
  .hero .free-pill { margin-top: 14px; padding: 7px 14px 7px 10px; font-size: calc(15px * var(--t)); }
  .hero .search { margin-top: 22px; }
  .hero .search label, html[lang="ja"] .hero .search label { font-size: calc(22px * var(--t)); }
  .hero .search .hint { font-size: calc(15px * var(--t)); margin-bottom: 12px; }
}
@media (max-width: 719px) {
  .hero .search .row { border: 0; box-shadow: none; background: transparent; padding: 0; }
  .hero .search .row:focus-within, .hero .search .row:has(input[aria-invalid="true"]) { box-shadow: none; border: 0; }
  .hero .search label, html[lang="ja"] .hero .search label { font-size: calc(20px * var(--t)); white-space: nowrap; }
  .hero .free-pill span { text-wrap: nowrap; }
  .hero .free-pill { font-size: calc(14.5px * var(--t)); }
  html[lang="ja"] .hero h1 { line-height: 1.2; }
}
@media (max-width: 719px) {
  .hero .free-pill { gap: 8px; padding: 6px 12px 6px 8px; font-size: calc(14px * var(--t)); max-width: 100%; }
  .hero .free-pill svg { width: 20px; height: 20px; }
  .hero .free-pill span { text-wrap: balance; }
}
@media (max-width: 719px) { .hero, .hero-card { padding-top: 20px; } }

/* スマホも、PCと同じ中央寄せを基本にする */
@media (max-width: 719px) {
  .hero .center, .hero .wrap.center, .hero h1, .hero .lead, .hero .search, .hero .search .hint, .hero .search label { text-align: center; }
  .hero h1, .hero .lead, .hero .search .hint { margin-left: auto; margin-right: auto; }
  .hero .search label { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .facts h2.center, .cta-band .center, .sample figcaption, .facts h2 { text-align: center; }
  .how .center, .go .center { text-align: center; }
  .hero .free-pill { margin-left: auto; margin-right: auto; }
  .sample-pick { justify-content: center; }
}
@media (max-width: 719px) { .hero .search label > * { flex: 0 1 auto; } .hero .search label svg { flex: none; } }
/* スマホでもヘッダーは常に見える（縞→実線の切り替えも同じ） */
@media (max-width: 719px) { .top { position: sticky; top: 0; } }

/* はじめかたの結び：完了の印（緑のチェック）＋黒の太字＋補足一行 */
.how-tail { margin-top: 48px; color: var(--ink); font-size: inherit; font-weight: 400; }
.how-ck { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #1E7A4C; margin-bottom: 14px; }
.how-ck svg { width: 26px; height: 26px; }
.how-tail-main { font-size: calc(clamp(24px, 2.6vw, 32px) * var(--h)); font-weight: 700; line-height: 1.35; color: var(--ink); }
.how-tail-sub { margin: 8px auto 0; font-size: calc(17px * var(--t)); color: var(--ink-2); max-width: 28em; }

/* 最後の呼びかけ：相手への伝え方（コールサイン＝アドレス、そのまま送れる文面） */
.go-fan { height: 190px; margin: 44px auto 40px; }
.go-card { width: 210px; height: 140px; }
.go-card b { font-size: 21px; }
.tell { max-width: 760px; margin: 0 auto 44px; padding: 36px 32px 32px; background: #fff; border-radius: 28px; box-shadow: 0 18px 40px -24px rgba(15,40,90,.35), 0 0 0 1px rgba(0,0,0,.05); text-align: center; }
.tell h3 { font-size: calc(clamp(24px, 2.6vw, 32px) * var(--h)); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.tell-sub { margin: 10px auto 0; font-size: calc(17px * var(--t)); color: var(--ink-2); max-width: 28em; }
.tell-addr { display: inline-flex; align-items: baseline; margin: 24px 0 8px; padding: 12px 22px; border-radius: 980px; background: #F5F5F7; font-family: var(--call); font-weight: 700; font-size: calc(clamp(20px, 3vw, 28px) * var(--t)); }
.tell-host { color: var(--ink-2); }
.tell-call { color: var(--accent); }
.tell-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.tell-msg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 16px; padding: 14px 14px 14px 18px; border-radius: 18px; background: #F5F5F7; }
.tell-lang { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; min-width: 4.5em; }
.tell-msg p { font-size: calc(16px * var(--t)); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.tell-copy { min-height: 44px; padding: 0 18px; border: 0; border-radius: 980px; background: var(--accent); color: #fff; font: 600 calc(15px * var(--t)) var(--sans); cursor: pointer; white-space: nowrap; }
.tell-copy:hover { background: #0B3C7A; }
.tell-copy[data-done="1"] { background: #1E7A4C; }
@media (max-width: 719px) {
  .go-fan { height: 130px; margin: 28px auto 24px; }
  .go-card { width: 46%; height: 96px; }
  .tell { padding: 26px 18px 20px; border-radius: 24px; }
  .tell-msg { grid-template-columns: 1fr; padding: 14px; }
  .tell-copy { width: 100%; }
}
.go-fan { margin-bottom: 64px; }
@media (max-width: 719px) { .go-fan { margin-bottom: 40px; } }

/* 「コピーしたあと」の道すじ：メールでそのまま送れる／貼る先の一覧／声での言い方 */
.tell-actions { display: inline-flex; gap: 8px; align-items: center; }
.tell-mail { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 980px; border: 1.5px solid var(--accent); color: var(--accent); font: 600 calc(15px * var(--t)) var(--sans); white-space: nowrap; text-decoration: none; background: #fff; }
.tell-mail:hover { background: #EAF1FB; }
.tell-where { margin-top: 24px; padding-top: 22px; border-top: 1px solid #E5E5EA; }
.tell-where-t { font-size: calc(17px * var(--t)); font-weight: 700; }
.tell-where ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tell-where li { padding: 9px 16px; border-radius: 980px; background: #EEF4FB; color: #0B3C7A; font-size: calc(15px * var(--t)); font-weight: 600; }
.tell-voice { margin-top: 18px; font-size: calc(16px * var(--t)); color: var(--ink-2); }
.tell-voice b { display: block; color: var(--ink); font-size: calc(15px * var(--t)); margin-bottom: 2px; }
@media (max-width: 719px) {
  .tell-msg { grid-template-columns: 1fr; }
  .tell-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tell-mail, .tell-copy { width: 100%; justify-content: center; }
}

/* 伝え方：絵で1→2→3。文面は「見る」を押したときだけ開く */
.tell { max-width: 960px; padding: 40px 32px 28px; background: transparent; box-shadow: none; }
.tell-head { text-align: center; }
.tell-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.tell-steps li { position: relative; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 30px -20px rgba(15,40,90,.35), 0 0 0 1px rgba(0,0,0,.05); }
.tell-steps li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 74px; width: 12px; height: 12px; border-top: 4px solid var(--accent); border-right: 4px solid var(--accent); transform: rotate(45deg); z-index: 2; }
.ts-art { height: 150px; display: grid; place-items: end center; padding: 14px 14px 0; }
.ts-art svg { width: 100%; max-width: 230px; height: auto; display: block; }
.ts1 .ts-art { background: linear-gradient(160deg, #DCEBFF, #EEF5FF); }
.ts2 .ts-art { background: linear-gradient(160deg, #FFE9CC, #FFF4E4); }
.ts3 .ts-art { background: linear-gradient(160deg, #DDF3E6, #EEF9F2); }
.ts-body { padding: 16px 20px 24px; }
.ts-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 16px var(--sans); margin-bottom: 8px; }
.ts2 .ts-n { background: #D9772F; } .ts3 .ts-n { background: #1E7A4C; }
.ts-body h4 { font-size: calc(21px * var(--t)); font-weight: 700; line-height: 1.3; }
.ts-body p { margin-top: 6px; font-size: calc(16px * var(--t)); line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.tell-more { margin-top: 28px; text-align: center; }
.tell-more summary { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 980px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); cursor: pointer; font: 600 calc(16px * var(--t)) var(--sans); color: var(--accent); list-style: none; }
.tell-more summary::-webkit-details-marker { display: none; }
.tell-more .when-open { display: none; } .tell-more[open] .when-open { display: inline; } .tell-more[open] .when-closed { display: none; }
.tell-more .plus { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.tell-more .plus::before, .tell-more .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: #fff; transform: translate(-50%, -50%); }
.tell-more .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.tell-more[open] .plus::after { display: none; }
.tell-more-body { margin-top: 20px; padding: 28px 24px 24px; background: #fff; border-radius: 24px; box-shadow: 0 14px 30px -20px rgba(15,40,90,.35), 0 0 0 1px rgba(0,0,0,.05); }
@media (max-width: 719px) {
  .tell { padding: 24px 0 8px; }
  .tell-steps { grid-template-columns: 1fr; }
  .tell-steps li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -14px; transform: translateX(-50%) rotate(135deg); }
  .ts-art { height: 130px; }
}
.tell-steps li { overflow: visible; }
.ts-art { border-radius: 24px 24px 0 0; }
.ts-n { margin-bottom: 4px; }
.tell-steps li:not(:last-child)::after { top: 64px; right: -15px; background: #fff; padding: 0; border-radius: 2px; }

/* 70代の目線で：何の登録かを最後のボタンの上で伝える／小さい字を少し大きく */
.go-need { margin: 0 0 16px; font-size: calc(18px * var(--t)); font-weight: 600; color: var(--ink); }
.go .btn { min-height: 68px; padding: 0 44px; }
.tell-lang { font-size: 14px; }
.foot-note { font-size: 15px; }
.ts-body p { font-size: calc(17px * var(--t)); }
.ts-body h4 { font-size: calc(22px * var(--t)); }
.tell-where li { font-size: calc(16px * var(--t)); }

/* 登録ボタンの直下：「あとでお金がかかる？」への答えを3つ、チェックつきで */
.go-assure { list-style: none; margin: 22px auto 0; padding: 0; max-width: 34em; display: grid; gap: 10px; text-align: left; }
.go-assure li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: calc(17px * var(--t)); line-height: 1.6; color: var(--ink); }
.go-assure svg { width: 24px; height: 24px; margin-top: 2px; color: #1E7A4C; }
@media (max-width: 719px) { .go-assure { margin-top: 18px; } }

/* 最後のメインボタン：大きく、立体感と矢印で「ここがゴール」と分かるように */
.go .btn { min-height: 80px; padding: 0 56px 0 64px; gap: 16px; font-size: calc(clamp(22px, 2.2vw, 26px) * var(--t)); font-weight: 700; letter-spacing: .02em; box-shadow: 0 14px 30px -12px rgba(15,76,154,.65), 0 2px 0 rgba(255,255,255,.18) inset; transition: transform .15s ease, box-shadow .15s ease, background-color .15s; }
.go .btn::after { content: ""; width: 14px; height: 14px; border-top: 4px solid #fff; border-right: 4px solid #fff; transform: rotate(45deg); margin-left: 2px; flex: none; }
.go .btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(15,76,154,.7), 0 2px 0 rgba(255,255,255,.18) inset; background: #0B3C7A; }
.go .btn:active { transform: translateY(0); }
.go .btn:focus-visible { outline: 4px solid #0F4C9A; outline-offset: 4px; }
@media (max-width: 719px) { .go .btn { width: 100%; min-height: 72px; padding: 0 28px; } }
@media (prefers-reduced-motion: reduce) { .go .btn { transition: none; } .go .btn:hover { transform: none; } }

/* PCの最初の画面：標準ではゆったり（以前の余白）。文字「大・特大」のときだけ、入力欄が画面に入るよう少し詰める */
@media (min-width: 720px) {
  html.size-1 .hero, html.size-1 .hero-card { padding-top: 72px; }
  html.size-2 .hero, html.size-2 .hero-card { padding-top: 56px; }
  html.size-1 .hero .search { margin-top: 48px; }
  html.size-2 .hero .lead { margin-top: 20px; }
  html.size-2 .hero .free-pill { margin-top: 18px; }
  html.size-2 .hero .search { margin-top: 40px; }
  html.size-2 .hero .search .hint { margin-bottom: 18px; }
}

/* 世界中の局へ：全幅のタイル（「すぐ届く」の下）。澄んだ空色の地に、地球と各国のコールサイン */
.ft-world { grid-column: 1 / -1; background: linear-gradient(120deg, #EAF3FF 0%, #FFFFFF 60%, #FFF6EC 100%); }
@media (min-width: 720px) {
  .ft-world { flex-direction: row-reverse; }
  .ft-world .ft-text { flex: 0 0 46%; align-self: center; padding: 44px 44px 44px 8px; }
  .ft-world .ft-art { flex: 1 1 auto; margin: 0; align-items: stretch; min-height: 280px; }
  .ft-world .ft-art svg { height: 100%; }
}
.bento:has(.ft-more[open]) .ft-world { align-self: start; }

/* 洗練：扇のカードを「実物のQSLカード」に近づける（白い縁取り・風景・コールサインの札・照合の印）／3コマの絵は影と線をそろえる */
.go-card { padding: 0; width: 214px; height: 142px; border-radius: 16px; background: #fff; border: 5px solid #fff; overflow: hidden; display: block; color: inherit;
  box-shadow: 0 20px 36px -18px rgba(15,40,90,.45), 0 4px 10px -4px rgba(15,40,90,.22), 0 0 0 1px rgba(15,40,90,.07); }
.go-card .gc-art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 11px; }
.gc-call { position: absolute; left: 10px; top: 10px; padding: 3px 9px 4px; border-radius: 7px; background: rgba(255,255,255,.94); color: #1D1D1F; font: 700 15px/1.2 var(--call); letter-spacing: .02em; }
.gc-meta { position: absolute; left: 12px; bottom: 9px; color: #fff; font: 500 12px/1.2 var(--call); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.gc-ok { position: absolute; right: 9px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.gc-ok svg { width: 18px; height: 18px; }
.gc1 { background: #fff; } .gc2, .gc3, .gc4 { background: #fff; }
.go-fan { height: 200px; }
.gc1 { left: 6%;  transform: rotate(-9deg) translateY(16px); }
.gc2 { left: 28%; transform: rotate(-3deg) translateY(2px); }
.gc3 { left: 50%; transform: rotate(3deg) translateY(2px); }
.gc4 { left: 72%; transform: rotate(9deg) translateY(16px); }
.ts-art { height: 156px; }
.ts-art svg { max-width: 240px; }
.ts1 .ts-art { background: linear-gradient(165deg, #E3EEFF 0%, #F3F8FF 100%); }
.ts2 .ts-art { background: linear-gradient(165deg, #FFEBD2 0%, #FFF7EB 100%); }
.ts3 .ts-art { background: linear-gradient(165deg, #E0F4E8 0%, #F2FBF5 100%); }
@media (max-width: 719px) {
  .go-card { width: 46%; height: 98px; border-width: 4px; border-radius: 13px; }
  .gc-call { font-size: 12px; left: 6px; top: 6px; padding: 2px 6px 3px; }
  .gc-meta { font-size: 10px; left: 8px; bottom: 6px; }
  .gc-ok { width: 18px; height: 18px; right: 6px; bottom: 5px; } .gc-ok svg { width: 14px; height: 14px; }
  .go-fan { height: 140px; }
  .gc1 { left: -3%; } .gc2 { left: 20%; } .gc3 { left: 38%; } .gc4 { left: 56%; }
}
.go-fan { max-width: 900px; }
.go-card { width: 206px; height: 138px; }
.gc1 { left: 3%; } .gc2 { left: 27%; } .gc3 { left: 51%; } .gc4 { left: 75%; }
@media (max-width: 719px) { .gc1 { left: -3%; } .gc2 { left: 20%; } .gc3 { left: 38%; } .gc4 { left: 56%; } }
.gc3 .gc-meta { color: #26364F; text-shadow: none; }

/* 「できること」のタイルにも、ほかのセクションと同じやわらかい影を（影の規則をそろえる） */
.ft { box-shadow: 0 18px 38px -24px rgba(15,40,90,.38), 0 3px 8px -4px rgba(15,40,90,.12), 0 0 0 1px rgba(15,40,90,.05); }
.ft-fast { box-shadow: 0 24px 44px -24px rgba(10,30,70,.55), 0 3px 8px -4px rgba(10,30,70,.2); }

/* 「送ったあと」の3コマ：「はじめかた」のカードと同じ大きさ（幅1040・間隔20・角丸28・絵168）に合わせ、
   番号は絵の下で見出しと同じ行に並べて、見た目に違いをつける */
.tell { max-width: 1040px; }
.tell-steps { gap: 20px; margin-top: 36px; }
.tell-steps li { border-radius: 28px; box-shadow: 0 18px 40px -22px rgba(15,40,90,.35), 0 0 0 1px rgba(0,0,0,.05); }
.ts-art { height: 168px; border-radius: 28px 28px 0 0; }
.ts-body { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 10px; align-items: center; padding: 22px 24px 28px; }
.ts-n { grid-row: 1; width: 38px; height: 38px; margin: 0; font-size: 18px; box-shadow: 0 0 0 4px rgba(15,76,154,.12); }
.ts2 .ts-n { box-shadow: 0 0 0 4px rgba(217,119,47,.16); } .ts3 .ts-n { box-shadow: 0 0 0 4px rgba(30,122,76,.16); }
.ts-body h4 { grid-row: 1; margin: 0; }
.ts-body p { grid-column: 1 / -1; margin: 0; }
.tell-steps li:not(:last-child)::after { right: -17px; top: 78px; width: 14px; height: 14px; }
@media (max-width: 719px) { .ts-art { height: 150px; } .tell-steps li:not(:last-child)::after { right: auto; } }
.tell { padding-left: 0; padding-right: 0; }
.tell-head { padding: 0 20px; }
@media (max-width: 719px) { .tell-steps li:not(:last-child)::after { top: auto; bottom: -15px; left: 50%; right: auto; transform: translateX(-50%) rotate(135deg); } }

/* はじめかた1：本人確認の方法を、3つの箇条書きで */
.how-methods { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; }
.how-methods li { position: relative; padding-left: 28px; font-size: calc(17px * var(--t)); font-weight: 700; color: var(--ink); line-height: 1.5; }
.how-methods li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(15,76,154,.14); }
/* 入れ子の li に、カード用の見た目（影・余白・白地）が移らないようにする */
.how-list .how-methods li { display: block; background: none; box-shadow: none; border-radius: 0; padding: 0 0 0 28px; margin: 0; min-height: 0; gap: 0; }
.how-list .how-methods { gap: 8px; }
.how-list .how-methods li::after { content: none; }
/* 英語の見出しは「Electronic」が加わって長くなったので、スマホでは少し小さくして、文字「特大」でも最初の画面に入力欄とボタンを収める */
@media (max-width: 719px) {
  html[lang="en"] .hero h1, html[lang="en"].size-1 .hero h1, html[lang="en"].size-2 .hero h1 { font-size: calc(clamp(28px, 8.2vw, 36px) * var(--h)); line-height: 1.12; }
}
@media (max-width: 719px) { html.size-2 .hero .lead { line-height: 1.5; margin-top: 10px; } html.size-2 .hero .free-pill { margin-top: 10px; } html.size-2 .hero .search { margin-top: 18px; } }
/* 検索の見出しのマーク：虫眼鏡をやめ、「QSL」と書いた封筒に */
.search .search-icon { width: 2em; height: 1.42em; flex: none; color: var(--accent); }
@media (max-width: 719px) { .hero .search label .search-icon { width: 1.9em; height: 1.35em; } }
.search .search-icon { width: 2.1em; height: 1.49em; }
@media (max-width: 719px) { .hero .search label .search-icon { width: 2.2em; height: 1.56em; } }

/* 新しいロゴ（封筒＋LAB＋QSL）：ヘッダー・フッター */
.top .logo { gap: 0; min-height: 44px; }
.top .logo .logo-svg { display: block; width: auto; height: 36px; }
.foot .foot-logo { display: inline-flex; margin-bottom: 18px; }
.foot .foot-logo .logo-svg { display: block; width: auto; height: 38px; }
@media (max-width: 719px) { .top .logo .logo-svg { height: 30px; } .foot .foot-logo .logo-svg { height: 32px; } }

/* フッターの「Powered by HamLab」（紺地。ロゴは白版） */
.foot .powered { display: inline-flex; align-items: center; gap: 8px; color: #D5DEEC; text-decoration: none; vertical-align: middle; }
.foot .powered img { display: block; height: 26px; width: auto; }
.foot .powered:hover span { text-decoration: underline; }

/* コールサインのページ：ヘッダーに検索欄が入るので、1段に収める（折り返さない） */
@media (min-width: 1000px) {
  .top .wrap { flex-wrap: nowrap; }
  .top .wrap:has(.head-search) .tcap { display: none; }
  .top .head-search { flex: 1 1 150px; min-width: 130px; max-width: 230px; }
  .top .tools { flex: none; white-space: nowrap; }
  .top .tsize, .top .langs { flex: none; }
}

/* 「ご本人だけが見られます」の注記（鍵のマークは文字の高さに合わせる） */
.privacy-note { display: flex; gap: 14px; align-items: flex-start; margin: 0; font-size: calc(19px * var(--t)); line-height: 1.7; color: var(--ink); font-weight: 500; }
.privacy-note svg { flex: none; width: 30px; height: 30px; margin-top: 3px; color: var(--accent); }
@media (max-width: 719px) { .privacy-note { font-size: calc(17px * var(--t)); } .privacy-note svg { width: 26px; height: 26px; } }

/* 登録済みの局のページ：「あなたのコールサイン」と、届いている件数を中心に */
.station .sub { margin: 0 0 6px; font-size: calc(18px * var(--t)); color: var(--ink-2); }
.station .count { margin: 20px 0 0; font-size: calc(clamp(22px, 2.4vw, 28px) * var(--t)); font-weight: 700; line-height: 1.4; }
.station { padding-bottom: 36px; }

/* コールサインのページは、すべて中央寄せ */
.claim-head, .waiting, .station, .station .wrap, .sec.band .wrap.narrow, .sec-plain { text-align: center; }
.privacy-note { justify-content: center; text-align: center; }
.claim-head .notice { justify-content: center; text-align: left; }
.note-line { margin: 0; font-size: calc(18px * var(--t)); color: var(--ink-2); }
.steps { text-align: left; max-width: 34em; margin-left: auto; margin-right: auto; }
.nomail { text-align: center; }
.nomail h3 { justify-content: center; }
.btn.full { max-width: 520px; margin-left: auto; margin-right: auto; }
.count, .waiting p, .note-line, .claim-head p, .privacy-note { word-break: auto-phrase; text-wrap: balance; }

/* ヘッダーの区切りは、ふつうの実線に（縞のモチーフはやめた）。帯の高さも、実線に合わせて控えめに */
.top { border-bottom: 1px solid var(--rule-soft); }
.top .wrap { min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 719px) { .top .wrap { min-height: 56px; padding-top: 6px; padding-bottom: 6px; } }

/* 登録済みの局：おかえりなさい＋アカウントのアイコン（緑のチェックで「登録済み」） */
.acct-icon { position: relative; display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #EAF1FB; color: var(--accent); margin-bottom: 14px; }
.acct-icon > svg { width: 52px; height: 52px; }
.acct-icon .chk { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.acct-icon .chk svg { width: 30px; height: 30px; }
.station .welcome { margin: 0 0 10px; font-size: calc(clamp(24px, 3vw, 32px) * var(--t)); font-weight: 700; line-height: 1.3; }
.reg-pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 980px; background: #E4F4EA; color: #14532D; font-size: calc(16px * var(--t)); font-weight: 600; }
.station .meta.registered { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 10px 0 0; }

.station .meta.registered > span { white-space: nowrap; }

/* 届いている通数を、大きな字で目立たせる */
.count .num { display: inline-block; margin: 0 .12em; font-size: 2.1em; line-height: 1; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; vertical-align: -0.08em; }
.count .num { font-size: 2.7em; margin: 0 .08em; }
.station .meta.registered details.help { display: inline-block; vertical-align: middle; }
.station .meta.registered > span { display: inline-flex; align-items: center; gap: 8px; }

/* 通数（「N通」まで青く）／アバターはコールサインの左 */
.count .num { color: var(--accent); }
.count .num .unit { font-size: .5em; margin-left: .12em; font-weight: 800; }
.call-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.call-row .acct-icon { margin: 0; width: 76px; height: 76px; flex: none; }
.call-row .acct-icon > svg { width: 46px; height: 46px; }
.call-row .acct-icon .chk, .call-row .acct-icon .chk svg { width: 26px; height: 26px; }
@media (max-width: 719px) { .call-row { gap: 12px; } .call-row .acct-icon { width: 56px; height: 56px; } .call-row .acct-icon > svg { width: 34px; height: 34px; } .call-row .acct-icon .chk, .call-row .acct-icon .chk svg { width: 22px; height: 22px; } }
/* 数字だけを大きく（文字の2.7倍）。「通」は数字より小さく（文字の1.35倍）、続く「届」と同じベースラインに置いて下辺をそろえる。どちらも青 */
.count .num { display: inline; font-size: inherit; color: var(--accent); font-weight: 900; vertical-align: baseline; }
.count .num .n { font-size: 2.7em; line-height: 1; font-variant-numeric: tabular-nums; vertical-align: baseline; margin-right: .04em; }
.count .num .unit { font-size: 1.35em; font-weight: 800; line-height: 1; vertical-align: baseline; margin-right: .06em; }

/* ログイン画面（LabQSL専用の見た目。中央寄せ） */
.login-sec { padding: 56px 0 72px; text-align: center; }
.login-sec h1 { font-size: calc(clamp(30px, 4vw, 40px) * var(--h)); line-height: 1.2; margin: 0 0 24px; }
.same-acct { display: flex; align-items: center; gap: 16px; text-align: left; margin: 0 auto 28px; padding: 16px 20px; max-width: 460px; border-radius: 18px; background: #F3F8FF; box-shadow: 0 0 0 1px rgba(15,76,154,.14); }
.same-acct img { flex: none; height: 34px; width: auto; }
.same-acct p { margin: 0; font-size: calc(16px * var(--t)); line-height: 1.55; color: var(--ink); }
.login-sec .err { max-width: 460px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 14px; background: #FDECEA; color: var(--error-ink, #9B1C12); text-align: left; font-size: calc(17px * var(--t)); }
.login-form { max-width: 460px; margin: 0 auto; text-align: left; display: grid; gap: 8px; }
.login-form label { font-size: calc(17px * var(--t)); font-weight: 700; margin-top: 8px; }
.login-form input { height: 56px; padding: 0 16px; border: 1px solid #86868B; border-radius: 14px; font: 400 calc(18px * var(--t)) var(--sans); background: #fff; color: var(--ink); }
.login-form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15,76,154,.2); }
.login-form .btn { margin-top: 18px; min-height: 60px; }
.login-links { margin: 22px 0 0; font-size: calc(16px * var(--t)); }
.login-links .sep { margin: 0 10px; color: var(--ink-2); }
.legacy-note { max-width: 460px; margin: 0 auto 22px; padding: 18px 20px; border-radius: 18px; background: #FFF6E5; text-align: left; font-size: calc(16px * var(--t)); }
.legacy-note p { margin: 8px 0; }

/* ログイン画面：HamLab との共通の説明は、ボタンの下に、控えめに（HamLab を使っていない人も多いため） */
.same-acct { margin: 22px auto 0; max-width: 460px; padding: 12px 16px; border-radius: 14px; background: #F5F5F7; box-shadow: none; gap: 12px; }
.same-acct img { height: 26px; }
.same-acct p { font-size: calc(15px * var(--t)); color: var(--ink-2); line-height: 1.55; }
.same-acct p span { font-size: calc(14px * var(--t)); }
.login-links { margin-top: 18px; }

/* 登録画面 */
.login-sec .lead-s { max-width: 460px; margin: -8px auto 24px; font-size: calc(17px * var(--t)); color: var(--ink-2); line-height: 1.7; }
.login-form .hint { font-weight: 400; color: var(--ink-2); font-size: .9em; }
.login-form input[aria-invalid="true"] { border-color: #9B1C12; background: #FFF8F7; }
.field-err { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEA; font-size: calc(16px * var(--t)); line-height: 1.6; color: #9B1C12; font-weight: 600; }
.agree { max-width: 460px; margin: 16px auto 0; font-size: calc(15px * var(--t)); color: var(--ink-2); line-height: 1.7; }

/* HamLab の最初の案内 */
.intro-logo { display: block; margin: 0 auto 14px; height: 48px; width: auto; }
.intro-list { list-style: none; margin: 0 auto 22px; padding: 0; max-width: 460px; text-align: left; display: grid; gap: 10px; }
.intro-list li { position: relative; padding-left: 30px; font-size: calc(18px * var(--t)); line-height: 1.6; }
.intro-list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(15,76,154,.14); }
.trial-note { max-width: 460px; margin: 0 auto 24px; padding: 16px 20px; border-radius: 18px; background: #F3F8FF; box-shadow: 0 0 0 1px rgba(15,76,154,.14); text-align: left; }
.trial-note p { margin: 0 0 6px; font-size: calc(17px * var(--t)); line-height: 1.6; }
.trial-note p:last-child { margin: 0; color: var(--ink-2); font-size: calc(16px * var(--t)); }
.login-sec form { max-width: 460px; margin: 0 auto; }

/* コールサインの登録・本人確認 */
.step-mark { margin: 0 0 6px; font-size: calc(16px * var(--t)); font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.cs-inline { font-family: var(--sans); letter-spacing: .04em; }
.verify-box { max-width: 460px; margin: 0 auto 22px; padding: 22px 22px 24px; border: 1.5px solid var(--line, #D8DEE8); border-radius: 18px; background: #fff; text-align: left; }
.verify-box h2 { margin: 0 0 8px; font-size: calc(21px * var(--t)); }
.verify-box p { margin: 0 0 16px; font-size: calc(17px * var(--t)); line-height: 1.7; color: var(--ink-2); }
.verify-box .btn.full { max-width: none; }
.verify-box .ok { padding: 12px 16px; border-radius: 12px; background: var(--accent-tint); color: var(--ink); font-weight: 600; }
.code-in { font-size: calc(30px * var(--t)) !important; letter-spacing: .3em; text-align: center; }
.resend { margin-top: 14px; text-align: center; }
.linklike { background: none; border: 0; padding: 6px; color: var(--accent); text-decoration: underline; font: inherit; font-size: calc(16px * var(--t)); cursor: pointer; }
.note-sample { font-size: calc(20px * var(--t)) !important; color: var(--ink) !important; background: #FFFBEA; border: 1.5px dashed #C9A227; border-radius: 12px; padding: 14px 16px; text-align: center; }
.code-show { letter-spacing: .2em; }
.login-form input[type="file"] { padding: 12px; font-size: calc(16px * var(--t)); background: #fff; }

/* 送る画面 */
.login-form select { height: 56px; padding: 0 12px; border: 1px solid #86868B; border-radius: 14px; font: 400 calc(18px * var(--t)) var(--sans); background: #fff; color: var(--ink); }
.login-form select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15,76,154,.2); }
.again { margin: 28px 0 6px; font-size: calc(21px * var(--t)); }
.send-link { margin: 14px 0 0; }
.to-right { text-align: right; margin: 4px 0 0; }
.field-err .err-act { display: block; margin-top: 10px; text-align: center; }
.btn.mini { min-height: 40px; padding: 0 20px; font-size: calc(16px * var(--t)); background: #fff; }
.dev-code { margin: 0 0 14px; padding: 10px 14px; border: 1.5px dashed #C9A227; border-radius: 12px; background: #FFFBEA; font-size: calc(15px * var(--t)); }
.dev-code b { font-size: 1.3em; letter-spacing: .2em; }

/* 送る画面の結果枠の中では、文面を縦に並べる（枠からはみ出さないように） */
.verify-box .tell-list { margin-top: 6px; }
.verify-box .tell-msg { grid-template-columns: 1fr; padding: 14px; }
.verify-box .tell-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.verify-box .tell-msg p { overflow-wrap: anywhere; }

/* 免許状の写真：撮り方の絵と手順 */
.howto-fig { margin: 0 0 18px; }
.howto-fig svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.howto-fig figcaption { margin-top: 10px; font-size: calc(17px * var(--t)); line-height: 1.6; color: var(--ink); font-weight: 600; text-align: center; }
.howto-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.howto-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; font-size: calc(18px * var(--t)); line-height: 1.6; }
.howto-steps .n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: calc(20px * var(--t)); }
.note-sample-inline { display: inline-block; margin-top: 6px; padding: 8px 12px; background: #FFFBEA; border: 1.5px dashed #C9A227; border-radius: 10px; letter-spacing: .04em; }

/* スマホで撮った写真を送る（QR） */
.qr-box { display: flex; justify-content: center; margin: 4px 0 14px; }
.qr { width: 220px; height: 220px; padding: 12px; background: #fff; border: 1.5px solid #D8DEE8; border-radius: 16px; }
.qr svg { display: block; width: 100%; height: 100%; }
.small-note { margin: 0 0 12px; font-size: calc(16px * var(--t)); color: var(--ink-2); line-height: 1.6; }
.or-line { margin: 0 auto 14px; max-width: 460px; text-align: center; font-size: calc(17px * var(--t)); color: var(--ink-2); }
.handoff .resend { margin: 0 0 12px; text-align: center; }
.handoff [hidden] { display: none !important; }
.login-form [data-file-fields] { display: grid; gap: 8px; }
.login-form [data-file-fields][hidden] { display: none; }

/* スマホ・タブレット（指で操作する端末）では、QRコードは使わない。直接、写真を撮って送る */
@media (hover: none) and (pointer: coarse) {
  .handoff, .or-line { display: none !important; }
}

/* アカウントのメニュー（ヘッダー右端） */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.acct-menu { position: relative; }
.acct-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 6px; border-radius: 980px; background: #F5F5F7; cursor: pointer; font-size: calc(15px * var(--t)); font-weight: 600; color: var(--ink); max-width: 15em; }
.acct-menu summary::-webkit-details-marker { display: none; }
.acct-menu summary:hover { background: #ECECF0; }
.acct-avatar { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #E6EEF9; color: var(--accent); flex: none; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-avatar svg { width: 100%; height: 100%; }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 200px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px -12px rgba(15,40,90,.35), 0 0 0 1px rgba(0,0,0,.08); display: grid; gap: 2px; }
.acct-pop a, .acct-pop button { display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: none; text-align: left; font: 500 calc(17px * var(--t)) var(--sans); color: var(--ink); cursor: pointer; text-decoration: none; }
.acct-pop a:hover, .acct-pop button:hover { background: #F0F4FA; }
.acct-pop form { margin: 0; border-top: 1px solid #E5E5EA; padding-top: 4px; margin-top: 4px; }
@media (max-width: 520px) { .acct-name { display: none; } .acct-menu summary { padding-right: 10px; } }

/* 設定 */
.set-sec { max-width: 560px; margin: 0 auto 18px; padding: 22px 22px 24px; border: 1.5px solid #D8DEE8; border-radius: 18px; background: #fff; text-align: left; }
.set-sec h2 { margin: 0 0 6px; font-size: calc(21px * var(--t)); }
.set-sec > p { margin: 0 0 14px; font-size: calc(17px * var(--t)); color: var(--ink-2); line-height: 1.7; }
.set-sec .val { margin: 0 0 14px; font-size: calc(19px * var(--t)); font-weight: 600; }
.set-sec .login-form { max-width: none; }
.set-sec .btn { width: 100%; }
.avatar-big { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
.avatar-big .acct-avatar { width: 72px; height: 72px; }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #F5F5F7; font-size: calc(18px * var(--t)); }
.cs-list .call { font-family: var(--call, var(--sans)); font-weight: 700; letter-spacing: .03em; }
.flash-ok { max-width: 560px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px; background: var(--accent-tint); color: var(--ink); font-weight: 600; text-align: left; }
.acct-icon .acct-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* 退会 */
.wd-list { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 10px; font-size: calc(18px * var(--t)); line-height: 1.7; }
.login-form .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.login-form .check input { width: 28px; height: 28px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.login-form textarea { padding: 12px 16px; border: 1px solid #86868B; border-radius: 14px; font: 400 calc(17px * var(--t))/1.6 var(--sans); background: #fff; color: var(--ink); }
.btn.wd-go { background: #9B1C12; border-color: #9B1C12; }
.btn.wd-go:hover { background: #7C160E; border-color: #7C160E; }

/* ダッシュボード（自分のページ・本人・確認済み） */
.dash { padding-top: 8px; padding-bottom: 8px; }
.next-card { margin: 0 0 18px; padding: 20px 22px 22px; border-radius: 20px; background: #EAF1FB; border: 1.5px solid #B9CFEE; text-align: center; }
.next-label { margin: 0 0 6px; font-size: calc(15px * var(--t)); font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.next-text { margin: 0 0 14px; font-size: calc(21px * var(--t)); font-weight: 700; line-height: 1.5; color: var(--ink); }
.next-done { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: #F5F5F7; text-align: center; font-size: calc(18px * var(--t)); color: var(--ink-2); }
.stat-row { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row li { display: grid; gap: 2px; justify-items: center; padding: 14px 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.stat-n { font-family: var(--call, var(--sans)); font-weight: 700; font-size: calc(clamp(30px, 8vw, 44px) * var(--t)); line-height: 1.1; color: var(--accent); }
.stat-l { font-size: calc(15px * var(--t)); font-weight: 600; color: var(--ink-2); }
.dash-actions { display: grid; gap: 10px; }
.dash-actions .btn { width: 100%; }
@media (min-width: 560px) { .dash-actions { grid-template-columns: 1fr 1fr; } }

/* 届いたカードの一覧（並べ替え・絞り込み） */
.cards-sec .wrap { max-width: 1040px; }
.cards-ctl { max-width: 760px; margin: 0 auto 18px; padding: 18px 18px 20px; border: 1.5px solid #D8DEE8; border-radius: 18px; background: #fff; text-align: left; }
.ctl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 14px; }
.ctl-row label { display: grid; gap: 4px; font-size: calc(15px * var(--t)); font-weight: 700; color: var(--ink-2); }
.ctl-row select { height: 52px; padding: 0 10px; border: 1px solid #86868B; border-radius: 12px; font: 500 calc(17px * var(--t)) var(--sans); background: #fff; color: var(--ink); }
.ctl-go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ctl-go .btn { flex: 1 1 200px; }
.cards-count { margin: 0 0 14px; text-align: center; font-size: calc(18px * var(--t)); color: var(--ink-2); }
.cards-count b { color: var(--ink); font-size: 1.2em; }
.cards-sec .grp { margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); font-size: calc(24px * var(--t)); text-align: left; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 26px 0 8px; flex-wrap: wrap; }
.pager .pg { font-size: calc(18px * var(--t)); font-weight: 700; }
.all-link { margin: 18px 0 0; text-align: center; }

/* 表示の切り替え（カード／文字の一覧） */
.view-switch { display: inline-flex; margin: 0 auto 14px; padding: 4px; border-radius: 980px; background: #F0F0F3; }
.cards-sec .view-switch { display: flex; width: fit-content; }
.view-switch a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 980px; font: 600 calc(17px * var(--t)) var(--sans); color: var(--ink-2); text-decoration: none; }
.view-switch a[aria-current="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.card-open { display: block; color: inherit; text-decoration: none; border-radius: 14px; }
.card-open:hover { transform: translateY(-2px); }
.card-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-open { transition: transform .15s ease; }
.tbl-wrap { overflow-x: auto; }
.card-table .grp-row th { padding: 16px 10px 8px; font-size: calc(19px * var(--t)); text-align: left; border-bottom: 2px solid var(--accent); }
.card-table tr.card-row { cursor: pointer; }
.card-table tr.card-row:hover td { background: #F0F4FA; }
/* カードを1枚、大きく見る */
.card-detail .back-link { margin: 0 0 6px; text-align: left; font-size: calc(17px * var(--t)); }
.card-detail h1 { margin: 0 0 4px; }
.card-big { max-width: 640px; margin: 0 auto 22px; }
.detail-list { max-width: 560px; margin: 0 auto 22px; padding: 6px 20px; border: 1.5px solid #D8DEE8; border-radius: 18px; background: #fff; text-align: left; }
.detail-list > div { display: grid; grid-template-columns: 9em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #ECEEF2; font-size: calc(18px * var(--t)); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { font-weight: 700; color: var(--ink-2); }
.detail-list dd { margin: 0; }
.status-help { display: block; margin-top: 6px; font-size: calc(16px * var(--t)); color: var(--ink-2); line-height: 1.6; }
.detail-actions { display: grid; gap: 10px; max-width: 560px; margin: 0 auto; }
@media (max-width: 480px) { .detail-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* プロフィール（設定・公開表示） */
.radio-set { border: 0; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.radio-set legend { padding: 0; margin: 0 0 8px; font-size: calc(17px * var(--t)); font-weight: 700; }
.login-form .radio { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid #D8DEE8; border-radius: 14px; font-weight: 600; font-size: calc(17px * var(--t)); cursor: pointer; }
.login-form .radio input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.login-form .radio:has(input:checked) { border-color: var(--accent); background: #EAF1FB; }
.set-sec textarea { width: 100%; }
.pub-profile { max-width: 560px; margin: 0 auto; padding: 22px; border: 1.5px solid #D8DEE8; border-radius: 20px; background: #fff; text-align: left; }
.pub-profile .pp-head { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.pub-profile .acct-avatar { width: 64px; height: 64px; }
.pub-profile .pp-name { font-size: calc(21px * var(--t)); font-weight: 700; }
.pub-profile .pp-city { font-size: calc(16px * var(--t)); color: var(--ink-2); }
.pub-profile .pp-bio { margin: 0; font-size: calc(18px * var(--t)); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 設定の枠の中のボタンは、横幅いっぱいにせず、内容に合わせて右に寄せる */
.set-sec .btn { width: auto; min-width: 12em; }
.set-sec .login-form .btn { justify-self: center; margin-top: 6px; }
.set-sec > .btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

/* 長めの説明文：文節ごとの折り返し（auto-phrase）だと、長い文節が次の行へ送られて、行の途中で改行されたように見える。
   説明文では、行の幅いっぱいまで使う（禁則処理は、そのまま） */
html[lang="ja"] .set-sec p, html[lang="ja"] .verify-box p, html[lang="ja"] .lead-s, html[lang="ja"] .wd-list,
html[lang="ja"] .small-note, html[lang="ja"] .set-sec .hint, html[lang="ja"] .detail-list { word-break: normal; text-wrap: wrap; }

/* 取り込みの進み具合 */
.prog-bar { height: 18px; border-radius: 980px; background: #E4E8EF; overflow: hidden; margin: 4px 0 12px; }
.prog-bar span { display: block; height: 100%; background: var(--accent); border-radius: 980px; transition: width .3s ease; }
.prog-text { margin: 0 0 12px; text-align: center; font-size: calc(22px * var(--t)); }
.chk-stats { max-width: 560px; margin-left: auto; margin-right: auto; }
.qsl .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* カードの表面を選ぶ */
.design-sec .wrap { max-width: 980px; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 6px 0 22px; text-align: left; }
.design-opt { position: relative; display: grid; gap: 8px; padding: 12px; border: 2px solid #D8DEE8; border-radius: 18px; background: #fff; cursor: pointer; }
.design-opt.is-on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15,76,154,.15); }
.design-opt input[type="radio"] { position: absolute; top: 14px; left: 14px; z-index: 2; width: 26px; height: 26px; accent-color: var(--accent); }
.design-prev { display: block; pointer-events: none; }
.design-prev .qsl { font-size: .62em; }
.design-name { font-size: calc(18px * var(--t)); font-weight: 700; text-align: center; }
.design-empty { display: flex; align-items: center; justify-content: center; min-height: 140px; border-radius: 12px; background: #F0F3F8; color: var(--ink-2); font-weight: 600; }
.photo-pick { max-width: 560px; margin: 0 auto 22px; text-align: left; }
.photo-pick label { display: block; margin-bottom: 8px; font-size: calc(17px * var(--t)); font-weight: 700; }
.photo-pick input[type="file"] { width: 100%; padding: 12px; border: 1px solid #86868B; border-radius: 14px; background: #fff; font-size: calc(16px * var(--t)); }
.design-go { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 送る */
.send-sec .wrap { max-width: 760px; }
.way-grid { display: grid; gap: 16px; margin: 0 0 22px; text-align: left; }
@media (min-width: 640px) { .way-grid { grid-template-columns: 1fr 1fr; } }
.way { padding: 20px; border: 1.5px solid #D8DEE8; border-radius: 18px; background: #fff; display: grid; gap: 10px; align-content: start; }
.way h2 { margin: 0; font-size: calc(21px * var(--t)); }
.way p { margin: 0; font-size: calc(17px * var(--t)); color: var(--ink-2); line-height: 1.7; }
.design-strip { display: grid; gap: 16px; align-items: center; margin: 0 0 18px; padding: 18px; border-radius: 18px; background: #F5F5F7; text-align: left; }
@media (min-width: 640px) { .design-strip { grid-template-columns: 240px 1fr; } }
.ds-card { pointer-events: none; }
.ds-text h2 { margin: 0 0 6px; font-size: calc(19px * var(--t)); }
.ds-text p { margin: 0 0 10px; font-size: calc(17px * var(--t)); }
.pick-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.pick-box { width: 28px; height: 28px; accent-color: var(--accent); }
.pick-table td, .pick-table th { padding: 10px 8px; }
.send-after { display: grid; gap: 10px; margin: 18px 0 8px; }
.confirm-card { max-width: 420px; margin: 0 auto 14px; text-align: center; }
.tell-lite { margin-top: 10px; }
.tell-station { list-style: none; border: 1.5px solid #D8DEE8; border-radius: 14px; background: #fff; padding: 10px 14px; margin-bottom: 8px; text-align: left; }
.tell-station summary { cursor: pointer; font-size: calc(18px * var(--t)); }
.tell-station .tell-msg { margin-top: 10px; grid-template-columns: 1fr; }
.tell-station .tell-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.design-sec form { max-width: none; width: 100%; }
.design-prev .qsl { font-size: inherit; }
.design-opt input[type="radio"] { top: auto; bottom: 12px; left: 14px; }

/* ジョブカード（ダッシュボード）：1列の横長。タイトルは1行で収める。数字とボタンは右に並べる */
.job-label { margin: 0 0 10px; text-align: left; font-size: calc(17px * var(--t)); font-weight: 700; color: var(--ink-2); }
.job-grid { display: grid; gap: 10px; margin: 0 0 20px; grid-template-columns: 1fr; text-align: left; }
.job { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 14px; border: 1.5px solid #D8DEE8; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; }
.job:hover { border-color: var(--accent); background: #F7FAFE; text-decoration: none; }
.job:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.job-hot { border-color: #9DBBE6; background: #EEF4FC; }
.job-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #E6EEF9; color: var(--accent); }
.job-ico svg { width: 30px; height: 30px; }
.job-body { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; }
.job-title { font-size: calc(19px * var(--t)); font-weight: 700; line-height: 1.35; white-space: nowrap; }
.job-sub { font-size: calc(15px * var(--t)); color: var(--ink-2); line-height: 1.5; }
.job-n { flex: none; white-space: nowrap; }
.job-n b { font-family: var(--call, var(--sans)); font-size: calc(34px * var(--t)); color: var(--accent); line-height: 1.1; }
.job-unit { font-size: calc(17px * var(--t)); font-weight: 700; color: var(--accent); margin-left: 3px; }
.job-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 7.5em; min-height: 48px; padding: 0 18px; border-radius: 980px; background: var(--accent); color: #fff; font-weight: 700; font-size: calc(16px * var(--t)); white-space: nowrap; }
/* 狭い画面（スマホ）：1段目に 絵・タイトル・数字、2段目にボタン */
@media (max-width: 560px) {
  .job { flex-wrap: wrap; gap: 10px 12px; }
  .job-ico { width: 44px; height: 44px; }
  .job-title { white-space: normal; }
  .job-btn { flex: 1 1 100%; }
}

/* 設定：ダッシュボードのカードと同じ「1行ずつ」。項目を押すと、その項目だけが開く */
.set-list { gap: 10px; }
.set-row { border: 1.5px solid #D8DEE8; border-radius: 18px; background: #fff; }
.set-row[open] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,76,154,.12); }
.set-row > summary.job { border: 0; border-radius: 18px; background: transparent; cursor: pointer; list-style: none; }
.set-row > summary.job::-webkit-details-marker { display: none; }
.set-row > summary.job:hover { background: #F7FAFE; }
.set-row[open] > summary .job-btn { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.set-body { padding: 4px 18px 20px; border-top: 1px solid #ECEEF2; margin: 0 14px; padding-left: 4px; padding-right: 4px; }
.set-body > p { margin: 14px 0 12px; font-size: calc(17px * var(--t)); color: var(--ink-2); line-height: 1.7; }
.set-body .login-form { max-width: none; }
.set-body .btn { width: auto; min-width: 12em; justify-self: center; margin-top: 6px; }
.job-static { cursor: default; }
.job-static:hover { border-color: #D8DEE8; background: #fff; }
.job-quiet .job-ico { background: #F0F0F3; color: var(--ink-2); }
.job-btn-line { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.call-s { font-family: var(--call, var(--sans)); letter-spacing: .03em; }
.set-list .job-sub { overflow-wrap: anywhere; }
.set-list .job-title { white-space: normal; }

/* グローバルメニュー（ログイン中）：PCはヘッダーの下の帯、スマホは画面の下に固定 */
.gnav { background: #fff; border-bottom: 1px solid #E5E5EA; }
.gnav ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: 1040px; display: flex; gap: 4px; justify-content: center; }
.gnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border-bottom: 3px solid transparent; color: var(--ink-2); font: 600 calc(17px * var(--t)) var(--sans); text-decoration: none; white-space: nowrap; }
.gnav a svg { width: 22px; height: 22px; flex: none; }
.gnav a:hover { color: var(--accent); text-decoration: none; background: #F7FAFE; }
.gnav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.gnav a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 760px) {
  .gnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; border-bottom: 0; border-top: 1px solid #D8DEE8; box-shadow: 0 -4px 16px rgba(15,40,90,.08); padding-bottom: env(safe-area-inset-bottom); }
  .gnav ul { padding: 0; gap: 0; justify-content: space-around; }
  .gnav li { flex: 1 1 0; min-width: 0; }
  .gnav a { flex-direction: column; justify-content: center; gap: 2px; width: 100%; min-height: 62px; padding: 6px 2px; border-bottom: 0; border-top: 3px solid transparent; font-size: 12px; font-weight: 700; white-space: normal; text-align: center; line-height: 1.2; }
  .gnav a[aria-current="page"] { border-top-color: var(--accent); background: #F0F5FC; }
  body:has(.gnav) { padding-bottom: 66px; }
}
/* 設定の行は、短いので、スマホでも、ボタンを右に置いたままにする */
@media (max-width: 560px) {
  .set-list .job { flex-wrap: nowrap; }
  .set-list .job-btn { flex: none; min-width: 4.6em; padding: 0 14px; }
  .set-list .job-sub { font-size: calc(14px * var(--t)); }
}

/* グローバルメニュー：背景に色を付け、メニューだと分かるようにする（青地に白い文字。いまの画面は、白い下線と明るい地） */
.gnav { background: #0F4C9A; border-bottom: 0; box-shadow: 0 2px 10px rgba(15,40,90,.18); }
.gnav a { color: #fff; border-bottom-color: transparent; opacity: .92; }
.gnav a:hover { color: #fff; background: rgba(255,255,255,.14); opacity: 1; }
.gnav a[aria-current="page"] { color: #fff; opacity: 1; background: rgba(255,255,255,.2); border-bottom-color: #fff; }
.gnav a:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
@media (max-width: 760px) {
  .gnav { border-top: 0; box-shadow: 0 -4px 16px rgba(15,40,90,.22); }
  .gnav a { border-top-color: transparent; }
  .gnav a[aria-current="page"] { background: rgba(255,255,255,.2); border-top-color: #fff; }
}

/* ═══ PCの作業画面（ログイン中・幅1000px以上）：スマホ向けの大きさを、PCらしい密度にする ═══
   ログイン前の紹介ページ（Apple風のゆったりした見せ方）は、変えない。body:has(.gnav) は、グローバルメニューがある画面＝ログイン中。 */
@media (min-width: 1000px) {
  body:has(.gnav) .wrap, body:has(.gnav) .wrap.narrow { max-width: 1180px; }
  body:has(.gnav) .login-sec { padding: 26px 0 40px; }
  body:has(.gnav) .login-sec h1 { margin: 0 0 14px; }
  body:has(.gnav) .login-sec .lead-s { margin: -4px auto 16px; font-size: calc(16px * var(--t)); }
  body:has(.gnav) .sec { padding: 28px 0; }
  body:has(.gnav) .sec h2 { margin-bottom: 14px; }

  /* 自分のページ（ダッシュボード）の見出し：左に コールサイン、右に あいさつと印。1行にまとめる */
  body:has(.gnav) .station { padding: 18px 0 8px; text-align: left; }
  body:has(.gnav) .station .wrap { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "call welcome" "call meta"; column-gap: 28px; align-items: center; text-align: left; }
  body:has(.gnav) .station .sub { display: none; }
  body:has(.gnav) .station .call-row { grid-area: call; justify-content: flex-start; gap: 14px; }
  body:has(.gnav) .station .welcome { grid-area: welcome; margin: 0; align-self: end; text-align: left; }
  body:has(.gnav) .station .call-row .acct-icon { width: 68px; height: 68px; }
  body:has(.gnav) .station .call-row .acct-icon > svg { width: 40px; height: 40px; }
  body:has(.gnav) .station .meta.registered { grid-area: meta; justify-content: flex-start; margin: 6px 0 0; align-self: start; }

  /* ジョブカード：2列・コンパクト */
  body:has(.gnav) .dash { padding-top: 4px; }
  body:has(.gnav) .job-label { margin: 0 0 8px; font-size: calc(15px * var(--t)); }
  body:has(.gnav) .job-grid { grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 14px; }
  body:has(.gnav) .job { padding: 9px 12px 9px 10px; gap: 12px; border-radius: 14px; }
  body:has(.gnav) .job-ico { width: 40px; height: 40px; border-radius: 11px; }
  body:has(.gnav) .job-ico svg { width: 24px; height: 24px; }
  body:has(.gnav) .job-btn { min-height: 38px; min-width: 6.5em; padding: 0 14px; font-size: calc(15px * var(--t)); }

  /* 数字の3つ：横長の1本にして、低くする */
  body:has(.gnav) .stat-row { gap: 8px; margin-bottom: 8px; }
  body:has(.gnav) .stat-row li { grid-template-columns: auto auto; justify-content: center; align-items: baseline; gap: 10px; padding: 8px 6px; border-radius: 12px; }

  /* カードの一覧・表 */
  body:has(.gnav) .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  body:has(.gnav) .cards-ctl { max-width: none; padding: 12px 14px 14px; }
  body:has(.gnav) .ctl-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; }
  body:has(.gnav) .ctl-row select { height: 42px; font-size: calc(15px * var(--t)); }
  body:has(.gnav) .ctl-go .btn { flex: 0 0 auto; min-width: 12em; min-height: 42px; }
  body:has(.gnav) table.log td, body:has(.gnav) table.log th { padding-top: 8px; padding-bottom: 8px; }

  /* 設定：2列。開いた項目は、2列ぶんの幅で広がる */
  body:has(.gnav) .set-list { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  body:has(.gnav) .set-row[open] { grid-column: 1 / -1; }
  body:has(.gnav) .set-body .login-form, body:has(.gnav) .set-body > p { max-width: 640px; }
  body:has(.gnav) .set-body .login-form { margin-left: 0; }

  /* 送る・記録・カードの表面・1枚を見る */
  body:has(.gnav) .way-grid { gap: 12px; }
  body:has(.gnav) .way { padding: 14px 16px; }
  body:has(.gnav) .design-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
  body:has(.gnav) .card-big { max-width: 560px; }
  body:has(.gnav) .verify-box { max-width: 640px; }
  body:has(.gnav) .btn.full { max-width: 420px; }
}
@media (min-width: 1000px) {
  body:has(.gnav) .login-form { max-width: 560px; }
  body:has(.gnav) .login-form input, body:has(.gnav) .login-form select { height: 46px; font-size: calc(16px * var(--t)); }
  body:has(.gnav) .btn { min-height: 46px; font-size: calc(16px * var(--t)); }
}
@media (min-width: 1000px) {
  body:has(.gnav) .station .wrap > details.help { grid-column: 2; margin: 2px 0 0; justify-self: start; }
  body:has(.gnav) .station .wrap > p:empty { display: none; }
}

/* グローバルメニューの下の余白（PC）：メニューと、ページの内容のあいだに、ゆとりを持たせる */
@media (min-width: 1000px) {
  body:has(.gnav) .login-sec { padding-top: 44px; }
  body:has(.gnav) .station { padding-top: 40px; }
}
@media (min-width: 761px) and (max-width: 999px) {
  body:has(.gnav) .login-sec { padding-top: 40px; }
  body:has(.gnav) .station { padding-top: 36px; }
}

/* グローバルメニューの色は、HamLab のヘッダー（unified-header.css の .u-header）と同じ紺色にそろえる */
.gnav { background: #0A2A5E; box-shadow: 0 2px 10px rgba(0,0,0,.35); letter-spacing: .02em; }
@media (max-width: 760px) { .gnav { box-shadow: 0 -4px 16px rgba(0,0,0,.35); } }

/* あいさつ：「おかえりなさい」を小さく、名前をふつうの大きさに */
.station .welcome .wb-small { font-size: .62em; font-weight: 500; color: var(--ink-2); margin-right: .15em; }
.station .welcome .wb-name { font-size: 1em; }

/* PCのダッシュボード：詰めすぎた所に、ゆとりを戻す（見出しとカードの間、カード同士、数字の3つの間） */
@media (min-width: 1000px) {
  body:has(.gnav) .station { padding-bottom: 22px; }
  body:has(.gnav) .station .wrap { row-gap: 4px; }
  body:has(.gnav) .station .meta.registered { margin-top: 10px; }
  body:has(.gnav) .dash { padding-top: 14px; padding-bottom: 14px; }
  body:has(.gnav) .job-label { margin-bottom: 12px; }
  body:has(.gnav) .job-grid { gap: 12px 16px; margin-bottom: 20px; }
  body:has(.gnav) .job { padding: 12px 16px 12px 14px; gap: 16px; border-radius: 16px; }
  body:has(.gnav) .job-ico { width: 44px; height: 44px; }
  body:has(.gnav) .job-body { gap: 4px; }
  body:has(.gnav) .stat-row { gap: 12px; margin-bottom: 14px; }
  body:has(.gnav) .stat-row li { padding: 12px 8px; }
  body:has(.gnav) .sec { padding: 36px 0; }
}

/* コールサインの行と「いま、できること」の間、その下のカードとの間を、広げる */
@media (min-width: 1000px) {
  body:has(.gnav) .station { padding-bottom: 40px; }
  body:has(.gnav) .dash { padding-top: 6px; }
  body:has(.gnav) .job-label { margin: 0 0 16px; font-size: calc(16px * var(--t)); }
  body:has(.gnav) .job-grid { margin-bottom: 26px; }
}
/* 「いま、できること」の見出しを外したので、カードの前の余白を、その分、調整する */
@media (min-width: 1000px) { body:has(.gnav) .dash { padding-top: 0; } }

/* ジョブカードの行間、数字（KPI）の3つの間、カードとKPIの間を、広げる */
@media (min-width: 1000px) {
  body:has(.gnav) .job-grid { row-gap: 18px; column-gap: 20px; margin-bottom: 34px; }
  body:has(.gnav) .stat-row { gap: 20px; margin-bottom: 18px; }
}

/* ═══ カードの見せ方（向き・レポート欄の位置・見た目）═══ */
.qsl.o-portrait { aspect-ratio: 9 / 14; }
/* 位置 */
.qsl.pos-top .panel { bottom: auto; top: 3cqw; }
.qsl.pos-top .label { top: auto; bottom: 4cqw; }
.qsl.pos-center .panel { bottom: auto; top: 50%; transform: translateY(-50%); }
.qsl.pos-left .panel, .qsl.pos-right .panel { top: 3cqw; bottom: 3cqw; width: 40cqw; display: flex; flex-direction: column; justify-content: center; }
.qsl.pos-left .panel { left: 3cqw; right: auto; }
.qsl.pos-right .panel { right: 3cqw; left: auto; }
.qsl.pos-left .label { left: auto; right: 4cqw; }
/* 縦並びのレポート欄（左・右） */
.qsl .panel.v .panel-head { flex-direction: column; align-items: flex-start; gap: 1.2cqw; margin-bottom: 2cqw; }
.qsl .panel.v .cells { grid-template-columns: 1fr; gap: 1.4cqw 0; }
.qsl .panel.v .cells > div { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; }
.qsl .panel.v .panel-foot { flex-direction: column; gap: 0.6cqw; white-space: normal; }
/* 縦のカード：レポート欄の項目を、2列に並べる */
.qsl.o-portrait .cells { grid-template-columns: 1fr 1fr; gap: 1.6cqw 3cqw; }
.qsl.o-portrait .panel-head .to .callsign { font-size: max(15px, 5.6cqw); }
.qsl.o-portrait .label .callsign { font-size: 14cqw; }
/* 項目が少ないときは、横に並べる */
.qsl .cells { display: flex; flex-wrap: wrap; gap: 1.4cqw 3.2cqw; }
.qsl .cells > div { flex: 0 0 auto; }
.qsl.o-portrait .cells { display: grid; }
.qsl .panel-foot-url { justify-content: flex-end; }
/* 見た目：白 */
.qsl.st-white .panel { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* 見た目：透明（写真に直接、文字を載せる） */
.qsl.st-clear .panel { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.qsl.st-clear .panel-foot { border-top-color: rgba(255,255,255,.55); }
/* 文字：明るい（暗い写真向き） */
.qsl.tn-light .panel { color: #fff; --ink-2: rgba(255,255,255,.88); }
.qsl.tn-light .panel .panel-head .to .callsign, .qsl.tn-light .panel .cells b { color: #fff; }
.qsl.tn-light.st-clear .panel { text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.qsl.tn-light.st-clear .panel .seal { text-shadow: none; }
.qsl.tn-light.st-glass .panel, .qsl.tn-light.st-white .panel { background: rgba(10, 30, 70, 0.62); }
.qsl.tn-light.st-white .panel { background: #0A2A5E; }
.qsl.tn-light .panel .panel-foot { border-top-color: rgba(255,255,255,.4); }

/* カードのデザイン：左に見本（画面に残る）、右に選ぶ項目 */
.design-sec .wrap { max-width: 1180px; }
.cd-layout { display: grid; gap: 22px; text-align: left; }
@media (min-width: 900px) { .cd-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.cd-sticky { position: sticky; top: 14px; padding: 14px; border: 1.5px solid #D8DEE8; border-radius: 18px; background: #F5F5F7; }
.cd-prev-label { margin: 0 0 10px; font-size: calc(15px * var(--t)); font-weight: 700; color: var(--ink-2); }
.cd-prev-box { max-width: 560px; margin: 0 auto; }
.cd-prev-box .qsl.o-portrait { max-width: 300px; margin: 0 auto; }
.cd-group { margin: 0 0 16px; padding: 14px 16px 16px; border: 1.5px solid #D8DEE8; border-radius: 16px; background: #fff; }
.cd-group legend { padding: 0 6px; font-size: calc(17px * var(--t)); font-weight: 700; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #C5CCD8; border-radius: 980px; background: #fff; font-size: calc(16px * var(--t)); font-weight: 600; color: var(--ink); }
.chip input:checked + span { border-color: var(--accent); background: #EAF1FB; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip.is-off { opacity: .4; }
.chip.is-off input { cursor: not-allowed; }
.chip-check span::before { content: ""; width: 18px; height: 18px; margin-right: 8px; border: 1.5px solid #8A93A3; border-radius: 4px; background: #fff; flex: none; }
.chip-check input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--accent); }
.cd-wide span { border-radius: 14px; padding: 8px 14px; line-height: 1.5; }
.cd-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cd-sub { min-width: 3em; font-size: calc(15px * var(--t)); color: var(--ink-2); font-weight: 700; }
.cd-msg-l { display: block; margin: 12px 0 6px; font-weight: 700; font-size: calc(16px * var(--t)); }
.cd-group input[type="text"] { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #86868B; border-radius: 12px; font: 400 calc(16px * var(--t)) var(--sans); }
.cd-group .photo-pick { margin: 12px 0 0; max-width: none; }
.design-sec .design-go { margin-top: 6px; justify-content: flex-start; }

/* カードのデザイン：見本の列を、右の設定の列と同じ高さにして、見本だけを画面に残す（sticky が効くように） */
@media (min-width: 900px) {
  .cd-layout { align-items: stretch; }
  .cd-preview { align-self: stretch; }
  .cd-sticky { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
}

/* ダッシュボードの見出し（PC）：コールサインとあいさつを中央にそろえる。アバターは、コールサインの文字の高さに合わせる */
@media (min-width: 1000px) {
  body:has(.gnav) .station .wrap { justify-content: center; grid-template-columns: auto auto; column-gap: 32px; }
  body:has(.gnav) .station .call-row { justify-content: center; gap: 20px; }
  body:has(.gnav) .station .call-row .acct-icon { width: calc(clamp(56px, 12vw, 104px) * .76); height: calc(clamp(56px, 12vw, 104px) * .76); }
  body:has(.gnav) .station .call-row .acct-icon > svg { width: 62%; height: 62%; }
  body:has(.gnav) .station .call-row .acct-photo { width: 100%; height: 100%; }
  body:has(.gnav) .station .welcome { text-align: center; }
  body:has(.gnav) .station .meta.registered { justify-content: center; }
  body:has(.gnav) .station .wrap > details.help { grid-column: 2; justify-self: center; }
}

/* ホーム：最近のできごと／交信した国・地域 */
.home-two { display: grid; gap: 16px; margin: 0 0 20px; text-align: left; }
@media (min-width: 900px) { .home-two { grid-template-columns: 1.25fr 1fr; gap: 20px; } }
.home-box { padding: 16px 18px 14px; border: 1.5px solid #D8DEE8; border-radius: 16px; background: #fff; }
.home-box h2 { margin: 0 0 8px; font-size: calc(18px * var(--t)); }
.home-count { display: inline-block; margin-left: 6px; padding: 0 10px; border-radius: 980px; background: var(--accent-tint, #E6EEF9); color: var(--accent); font-size: .9em; }
.feed, .world-list { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #ECEEF2; }
.feed li:first-child, .world-list li:first-child { border-top: 0; }
.feed-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #E6EEF9; color: var(--accent); }
.feed-ico.f-sent { background: #EAF5EE; color: #1E7A4C; }
.feed-ico.f-opened { background: #FFF6E5; color: var(--amber-ink, #8A5200); }
.feed-ico svg { width: 20px; height: 20px; }
.feed-text { font-size: calc(16px * var(--t)); line-height: 1.5; }
.feed-text .callsign { font-weight: 700; }
.feed-when { font-size: calc(14px * var(--t)); color: var(--ink-2); white-space: nowrap; }
.world-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid #ECEEF2; font-size: calc(16px * var(--t)); }
.w-flag { font-size: 24px; line-height: 1; text-align: center; }
.w-n { color: var(--ink-2); font-size: calc(14px * var(--t)); white-space: nowrap; }
/* ホームの見出し（PC）：コールサインの上下に、ゆとり */
@media (min-width: 1000px) {
  body:has(.gnav) .station { padding-top: 56px; padding-bottom: 56px; }
}
html[lang] .sec .home-box h2 { font-size: calc(18px * var(--t)); margin: 0 0 8px; line-height: 1.4; }

/* JTDX連携 */
.kv-l { display: block; margin: 14px 0 6px; font-weight: 700; font-size: calc(16px * var(--t)); }
.kv { display: flex; gap: 8px; align-items: stretch; }
.kv input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid #86868B; border-radius: 12px; background: #F7F7F9; font: 500 calc(15px * var(--t)) var(--call, monospace); }
.key-actions { margin-top: 16px; text-align: center; }
.kv-note { margin-top: 14px; }
.set-sec .howto-steps li a.btn { margin: 8px 6px 0 0; }

/* ロゴの右下に、小さく「powered by HamLab」（親のサービスを、さりげなく添える）。スマホ幅では、場所がないので出さない */
.brand-lock { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; }
.powered { display: none; }
@media (min-width: 900px) {
  .powered { display: inline-flex; align-items: center; gap: 6px; align-self: flex-end; margin-top: -2px; font: 500 12px/1 var(--sans); color: #6B7280; letter-spacing: .02em; }
  .powered img { height: 14px; width: auto; display: block; opacity: .92; }
}

/* 「powered by HamLab」は、ロゴと同じ1行に。ロゴの右隣・下をそろえて、小さく添える */
.brand-lock { flex-direction: row; align-items: flex-end; gap: 8px; }
@media (min-width: 900px) {
  .powered { align-self: flex-end; margin: 0 0 9px 0; white-space: nowrap; }
}
/* 「powered by HamLab」を、もう少し大きく（文字13px・ロゴ高さ18px） */
@media (min-width: 900px) {
  .powered { font-size: 13px; gap: 7px; margin-bottom: 8px; }
  .powered img { height: 18px; }
}

/* グローバルメニューの色：HamLab の紺とは変えて、深い青→藍→紫のなめらかなグラデーション（白い文字とのコントラスト 7:1 以上）。左上にごく淡い光 */
.gnav {
  background:
    radial-gradient(120% 220% at 15% -60%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(100deg, #06519E 0%, #3A398E 45%, #763796 100%);
  box-shadow: 0 2px 12px rgba(30, 30, 90, 0.28);
}
@media (max-width: 760px) { .gnav { box-shadow: 0 -4px 16px rgba(30, 30, 90, 0.3); } }

/* グローバルメニュー：いまの画面の下線（スマホは上線）を、赤にする */
.gnav a[aria-current="page"] { border-bottom-color: #FF4B5C; }
@media (max-width: 760px) { .gnav a[aria-current="page"] { border-bottom-color: transparent; border-top-color: #FF4B5C; } }

/* グローバルメニュー：下線（スマホは上線）は、なし。選択中は、明るい地と、やや太い文字で示す */
.gnav a[aria-current="page"] { border-bottom-color: transparent; font-weight: 700; }
@media (max-width: 760px) { .gnav a[aria-current="page"] { border-top-color: transparent; } }

/* 表示の切り替え（カード／文字の一覧）：絞り込みの枠の中、「この条件で表示する」の右隣・右寄せ */
.cards-ctl .ctl-go { align-items: center; }
.cards-ctl .view-switch { display: inline-flex; margin: 0 0 0 auto; padding: 4px; border-radius: 980px; background: #F0F0F3; width: auto; flex: 0 0 auto; }
.cards-ctl .view-switch button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 980px; background: transparent; font: 600 calc(16px * var(--t)) var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.cards-ctl .view-switch button[aria-pressed="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.cards-ctl .view-switch button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .cards-ctl .view-switch { margin: 6px auto 0; } }

/* 切り替えの高さは、「この条件で表示する」ボタンと同じ */
.cards-ctl .ctl-go .btn { min-height: 46px; }
.cards-ctl .view-switch { height: 46px; padding: 3px; box-sizing: border-box; align-items: stretch; }
.cards-ctl .view-switch button { min-height: 0; height: 100%; padding: 0 20px; font-size: calc(16px * var(--t)); }
/* ボタンと切り替えの高さを、44pxでそろえる（上の PC 用の指定より強く） */
body .cards-ctl .ctl-go .btn { min-height: 44px; height: 44px; padding-top: 0; padding-bottom: 0; }
body .cards-ctl .view-switch { height: 44px; }

/* 一覧の連番（ページをまたいで続く。並び替えで、番号は振りなおされる） */
.card-table .no-col { width: 3.2em; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-right: 14px; white-space: nowrap; }

/* 届いたカードの一覧：各項目は左寄せ。No. は、6桁（999999）まで入る、狭い列 */
.card-table th, .card-table td { text-align: left; }
.card-table .no-col { width: 4.2em; max-width: 4.2em; text-align: left; padding-right: 8px; font-size: .92em; }
.card-table .grp-row th { text-align: left; }

/* 他の人（ログインしていない人を含む）が見る、届いた枚数。大きな数字を主役にして、説明は1行で添える */
.station .tally { margin: 22px auto 0; padding: 14px 28px 16px; max-width: 420px; border-radius: 18px; background: var(--accent-tint, #E6EEF9); text-align: center; }
.station .tally-lead { margin: 0; font-size: calc(17px * var(--t)); line-height: 1.5; color: var(--ink-2); font-weight: 600; }
.station .tally-num { margin: 2px 0 0; color: var(--accent); font-weight: 900; line-height: 1; }
.station .tally-num .n { font-size: calc(clamp(64px, 11vw, 92px) * var(--t)); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.station .tally-num .unit { margin-left: .2em; font-size: calc(clamp(24px, 3.4vw, 32px) * var(--t)); font-weight: 800; }
/* 鍵のマークは文の上に、中央で */
.station ~ .band .privacy-note, .band .privacy-note { flex-direction: column; align-items: center; gap: 8px; }
.band .privacy-note svg { margin-top: 0; }
/* 「通」は大きく、太さはレギュラー */
.station .tally-num .unit { font-size: calc(clamp(40px, 5.6vw, 54px) * var(--t)); font-weight: 400; margin-left: .15em; }
/* 鍵：大きく、閉じた南京錠を丸いバッジに入れて、鍵がかかっている感じを出す */
.band .privacy-note .lock-badge { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent-tint, #E6EEF9); color: var(--accent); }
.band .privacy-note .lock-badge svg { width: 48px; height: 48px; margin: 0; }
.band .privacy-note { gap: 14px; }
.sec.band:has(.lock-badge) { padding-top: 48px; }
.band .privacy-note .lock-badge { background: #fff; }
/* 累計は、新着の下に小さく */
.station .tally-total { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid rgba(6,81,158,.15); font-size: calc(15px * var(--t)); color: var(--ink-2); }
.station .tally-total b { color: var(--ink); font-weight: 700; }

/* 世界地図：藍色の海に、陸地と2局を結ぶ線。陸地は assets/map_land.svg */
.qsl .photo.bg-map { background: #16304F; overflow: hidden; }
.qsl .photo .wmap { width: 100%; height: 100%; display: block; }
.qsl .photo .wmap .land { fill: #4A6C96; }
.qsl .photo .wmap .route { fill: none; stroke: #F4ECD8; stroke-linecap: round; }
.qsl .photo .wmap .pt { stroke: #16304F; }
.qsl .photo .wmap .pt.from { fill: #F2A93B; }
.qsl .photo .wmap .pt.to { fill: #F4ECD8; }

/* 標準（1色）：背景の色を選ぶ */
.color-pick { margin: 14px 0 6px; }
.color-pick .swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatch-free { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; font-weight: 600; cursor: pointer; }
.swatch-free input[type=color] { width: 56px; height: 44px; padding: 2px; border: 2px solid rgba(0, 0, 0, .2); border-radius: 10px; background: #fff; cursor: pointer; }
/* 背景の色まわりに、ゆとりを */
.color-pick { margin: 22px 0 0; padding: 18px 0 4px; border-top: 1px solid var(--line, #DDE1E8); }
.color-pick > .cd-sub { margin: 0 0 14px; font-size: calc(18px * var(--t)); font-weight: 700; color: var(--ink); }
.color-pick .swatches { gap: 14px; }
.color-pick .small-note { margin: 16px 0 0; line-height: 1.7; }
.swatch-free { margin-left: 12px; }
.color-pick + .photo-pick { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line, #DDE1E8); }
.photo-pick > label { display: block; margin-bottom: 12px; }
.photo-pick .small-note { margin-top: 14px; line-height: 1.7; }

.swatch.grad { border-radius: 50%; }
.swatch.grad[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.color-pick .free-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.color-pick .free-row .swatch-free { margin-left: 0; }
.color-pick [hidden] { display: none !important; }
.color-pick .cd-sub { margin: 0 0 14px; font-size: calc(18px * var(--t)); font-weight: 700; color: var(--ink); }
.swatch { background-origin: border-box; background-clip: border-box; background-repeat: no-repeat; background-size: 100% 100%; }
/* 色の丸：縁取りは外側の細い線にして、中の色を、縁の下に回り込ませない（インラインの background が上の指定を打ち消すため） */
.swatch { border: 0 !important; box-shadow: 0 0 0 1px rgba(0, 0, 0, .22); background-origin: border-box !important; background-clip: border-box !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; }

/* コールサインの札：地（すりガラス・白・透明）と文字の色（濃い・白）。レポート欄とは別に選べる */
.qsl.ls-white .label { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.qsl.ls-clear .label { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; text-shadow: 0 1px 4px rgba(255, 255, 255, .7); }
.qsl.lt-light .label { color: #fff; --ink-2: rgba(255, 255, 255, .9); }
.qsl.lt-light .label .callsign, .qsl.lt-light .label .where { color: #fff; }
.qsl.lt-light.ls-glass .label { background: rgba(10, 30, 70, .62); }
.qsl.lt-light.ls-white .label { background: #0A2A5E; }
.qsl.lt-light.ls-clear .label { text-shadow: 0 1px 5px rgba(0, 0, 0, .7); }
/* 背景の透かし：自分のコールサインを、大きく薄く。文字や札の下に敷く */
.qsl .wm { position: absolute; inset: 0; display: grid; align-items: start; justify-items: center; padding-top: 14%; pointer-events: none; font-family: var(--call); font-weight: 800; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; transform: rotate(-8deg); }
.qsl .wm-light { color: rgba(255, 255, 255, .24); }
.qsl .wm-dark { color: rgba(0, 0, 0, .12); }
.qsl.o-portrait .wm { padding-top: 22%; }

/* 消印：丸い印と波線。インクのにじみのように、少し透かして、背景になじませる */
.qsl .pmark { position: absolute; width: 34cqw; pointer-events: none; opacity: .88; transform: rotate(-7deg); }
.qsl .pmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.qsl .pm-tr { right: 3cqw; top: 3cqw; } .qsl .pm-br { right: 3cqw; bottom: 3cqw; } .qsl .pm-bl { left: 3cqw; bottom: 3cqw; }
.qsl .pm-red { color: #D8452F; } .qsl .pm-navy { color: #1B3A66; } .qsl .pm-white { color: #fff; }
.qsl.o-portrait .pmark { width: 46cqw; }
/* バンド別の色：一覧の色見本 */
.band-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: calc(15px * var(--t)); }
.band-legend li { display: inline-flex; align-items: center; gap: 6px; }
.band-legend i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.22); }
/* 縦のレポート欄（左・右）：項目は、1行に1つずつ。項目名と値は、間をあけて並べる */
.qsl .panel.v .cells { display: grid; grid-template-columns: 1fr; gap: 1.6cqw 0; }
.qsl .panel.v .cells > div { justify-content: flex-start; gap: 3cqw; }
.qsl .panel.v .cells > div > span { min-width: 9cqw; }
.set-lbl { display: block; margin: 16px 0 6px; font-weight: 700; }
.warn-note { color: #8A5A00; }
.warn-note a { font-weight: 700; }

/* 保存しました（ポップアップ） */
.saved-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(15, 25, 45, .5); }
.saved-box { width: min(440px, 100%); padding: 30px 26px 26px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.saved-check { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #E3F4E8; color: #1E8A4C; }
.saved-check svg { width: 38px; height: 38px; }
.saved-t { margin: 16px 0 6px; font-size: calc(26px * var(--t)); font-weight: 800; }
.saved-s { margin: 0 0 22px; color: var(--ink-2); line-height: 1.7; }
.saved-go { display: grid; gap: 10px; }
.saved-go .btn { width: 100%; justify-content: center; }
.saved-go .btn { color: #fff !important; background: var(--accent); border: 2px solid var(--accent); }
.saved-go .btn.line { color: var(--accent) !important; background: #fff; }

/* ═══ レポート欄の大きさ：小さめ（既定）・いちばん小さく。背景の絵を広く見せる ═══ */
.qsl.sz-compact .panel, .qsl.sz-mini .panel { padding: 1.1cqw 2.4cqw .9cqw; border-radius: 1.6cqw; }
.qsl.sz-compact:not(.pos-left):not(.pos-right) .panel, .qsl.sz-mini:not(.pos-left):not(.pos-right) .panel { left: 2.4cqw; right: 2.4cqw; bottom: 2.4cqw; }
.qsl.sz-compact.pos-top:not(.pos-left):not(.pos-right) .panel, .qsl.sz-mini.pos-top:not(.pos-left):not(.pos-right) .panel { bottom: auto; top: 2.4cqw; }
.qsl.sz-compact .panel-head, .qsl.sz-mini .panel-head { margin-bottom: .5cqw; }
.qsl.sz-compact .panel-head .to, .qsl.sz-mini .panel-head .to { font-size: max(11px, 2.1cqw); }
.qsl.sz-compact .panel-head .to .callsign, .qsl.sz-mini .panel-head .to .callsign { font-size: max(13px, 3.4cqw); }
.qsl.sz-compact .cells, .qsl.sz-mini .cells { gap: .8cqw 2.6cqw; }
.qsl.sz-compact .cells span, .qsl.sz-mini .cells span { font-size: max(10px, 1.7cqw); }
.qsl.sz-compact .cells b, .qsl.sz-mini .cells b { font-size: max(12px, 2.6cqw); }
.qsl.sz-compact .panel-foot, .qsl.sz-mini .panel-foot { margin-top: .6cqw; padding-top: .5cqw; font-size: max(10px, 1.7cqw); }
.qsl.sz-compact .seal, .qsl.sz-mini .seal { font-size: max(11px, 2.1cqw); padding: max(2px, .5cqw) 1.5cqw; }
.qsl.sz-compact .seal svg, .qsl.sz-mini .seal svg { width: max(12px, 2.6cqw); height: max(12px, 2.6cqw); }
.qsl.sz-compact .label .callsign { font-size: 8.6cqw; }
.qsl.sz-compact.o-portrait .label .callsign { font-size: 12cqw; }
.qsl.sz-compact .label .where { font-size: max(11px, 2.1cqw); }
.qsl.sz-compact .label { padding: 1cqw 2.4cqw .9cqw; }
/* いちばん小さく（横の下・上・中央）：宛先・日付などを1行に並べ、「TNX QSO」の行は省いて、検証リンクだけ残す */
.qsl.sz-mini.o-landscape:not(.pos-left):not(.pos-right) .panel { display: flex; flex-wrap: wrap; align-items: center; gap: .4cqw 2.4cqw; }
.qsl.sz-mini.o-landscape:not(.pos-left):not(.pos-right) .panel-head { margin: 0; gap: 1.6cqw; }
.qsl.sz-mini.o-landscape:not(.pos-left):not(.pos-right) .cells { display: flex; flex-wrap: wrap; gap: 0 2.4cqw; }
.qsl.sz-mini.o-landscape:not(.pos-left):not(.pos-right) .cells > div { display: flex; align-items: baseline; gap: .8cqw; }
.qsl.sz-mini.o-landscape:not(.pos-left):not(.pos-right) .panel-foot { flex: 1 0 100%; margin-top: 0; padding-top: .3cqw; }
.qsl.sz-mini.o-landscape:not(.pos-left):not(.pos-right) .panel-foot span:first-child { display: none; }
.qsl.sz-mini.o-landscape:not(.pos-left):not(.pos-right) .panel-foot { justify-content: flex-end; }
/* 縦のレポート欄（左・右）：小さめでは、幅をせばめ、高さは中身なりにして、上下の絵を見せる */
.qsl.sz-compact.pos-left .panel, .qsl.sz-compact.pos-right .panel, .qsl.sz-mini.pos-left .panel, .qsl.sz-mini.pos-right .panel { width: 31cqw; top: 50%; bottom: auto; transform: translateY(-50%); }
.qsl.sz-compact.pos-left .panel, .qsl.sz-mini.pos-left .panel { left: 2.4cqw; }
.qsl.sz-compact.pos-right .panel, .qsl.sz-mini.pos-right .panel { right: 2.4cqw; }
.qsl.sz-compact.pos-left .panel, .qsl.sz-compact.pos-right .panel, .qsl.sz-mini.pos-left .panel, .qsl.sz-mini.pos-right .panel { width: 36cqw; }
.qsl.sz-compact .panel.v .cells > div, .qsl.sz-mini .panel.v .cells > div { gap: 1.6cqw; }
.qsl.sz-compact .panel.v .cells > div > span, .qsl.sz-mini .panel.v .cells > div > span { min-width: 7cqw; }
.qsl.sz-compact .panel.v .panel-foot, .qsl.sz-mini .panel.v .panel-foot { overflow-wrap: anywhere; }

/* コールサインの札・消印の位置（四隅）。「おまかせ」は、レポート欄を避けて自動 */
.qsl.lp-tl .label { left: 4cqw; right: auto; top: 4cqw; bottom: auto; }
.qsl.lp-tr .label { right: 4cqw; left: auto; top: 4cqw; bottom: auto; }
.qsl.lp-bl .label { left: 4cqw; right: auto; bottom: 4cqw; top: auto; }
.qsl.lp-br .label { right: 4cqw; left: auto; bottom: 4cqw; top: auto; }
.qsl .pm-tl { left: 3cqw; top: 3cqw; }
/* 札・消印を、レポート欄と同じ側（下・上）の隅に置いたときは、レポート欄の分だけ内側へ寄せて、重ならないようにする */
.qsl { --pnl: 25cqw; }
.qsl.sz-compact { --pnl: 18cqw; } .qsl.sz-mini { --pnl: 12.5cqw; }
.qsl.o-portrait { --pnl: 38cqw; } .qsl.o-portrait.sz-compact { --pnl: 30cqw; } .qsl.o-portrait.sz-mini { --pnl: 30cqw; }
.qsl.pos-bottom.lp-bl .label, .qsl.pos-bottom.lp-br .label { bottom: calc(var(--pnl) + 5.4cqw); }
.qsl.pos-top.lp-tl .label, .qsl.pos-top.lp-tr .label { top: calc(var(--pnl) + 5.4cqw); }
.qsl.pos-bottom .pmark.pm-bl, .qsl.pos-bottom .pmark.pm-br { bottom: calc(var(--pnl) + 4.4cqw); }
.qsl.pos-top .pmark.pm-tl, .qsl.pos-top .pmark.pm-tr { top: calc(var(--pnl) + 4.4cqw); }

/* 札・消印の大きさ（隅を基準に拡大・縮小する。置いた位置は動かない） */
.qsl .label { transform-origin: left top; }
.qsl.pos-top .label { transform-origin: left bottom; }
.qsl.pos-left .label { transform-origin: right top; }
.qsl.lp-tl .label { transform-origin: left top; } .qsl.lp-tr .label { transform-origin: right top; }
.qsl.lp-bl .label { transform-origin: left bottom; } .qsl.lp-br .label { transform-origin: right bottom; }
.qsl.lz-s .label { transform: scale(.75); } .qsl.lz-l .label { transform: scale(1.3); }
.qsl .pmark { --msc: 1; transform: rotate(-7deg) scale(var(--msc)); }
.qsl .pmark.pm-tr { transform-origin: right top; } .qsl .pmark.pm-tl { transform-origin: left top; }
.qsl .pmark.pm-br { transform-origin: right bottom; } .qsl .pmark.pm-bl { transform-origin: left bottom; }
.qsl.mz-s .pmark { --msc: .72; } .qsl.mz-l .pmark { --msc: 1.35; }
/* カードのデザイン画面：説明文・項目まわりにゆとりを */
.cd-group { margin-bottom: 24px; padding: 20px 22px 24px; }
.cd-group legend { margin-bottom: 4px; }
.cd-group .cd-chips { gap: 10px; }
.cd-group .cd-chips + .small-note, .cd-group .cd-row + .small-note, .cd-group > .small-note { margin: 16px 0 0; line-height: 1.8; }
.cd-group .cd-row { margin-top: 18px; gap: 14px; }
.cd-group .cd-row:first-of-type { margin-top: 4px; }
.cd-group .cd-sub { min-width: 3.6em; }
.cd-group .cd-wide { display: block; margin-bottom: 18px; }
.cd-group .photo-pick { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line, #DDE1E8); }
.cd-group .photo-pick > label { margin-bottom: 12px; }
.cd-group .photo-pick .small-note { margin-top: 14px; line-height: 1.8; }
.cd-msg-l { margin: 20px 0 10px; }
.cd-msg-l .hint { font-weight: 400; color: var(--ink-2); }
.design-sec .lead-s { margin-bottom: 32px; line-height: 1.8; }
.cd-prev-label { margin-bottom: 14px; }
/* PC（マウスで操作する画面）では、選択ボタンを、ひとまわり小さく。スマホ・タブレットは、押しやすい大きさのまま */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .cd-group .chip span { min-height: 34px; padding: 0 13px; font-size: calc(14.5px * var(--t)); border-width: 1.3px; }
  .cd-group .chip-check span::before { width: 16px; height: 16px; margin-right: 7px; }
  .cd-group .cd-chips { gap: 8px; }
  .cd-group .cd-wide span { padding: 6px 12px; }
  .cd-group .cd-sub { font-size: calc(14px * var(--t)); }
  .swatch { width: 38px; height: 38px; }
  .swatch-free input[type=color] { width: 48px; height: 38px; }
}

/* ご自分の写真：別格の大きなタイル */
.photo-feature { padding: 16px 18px 18px; border: 2px solid #C5CCD8; border-radius: 16px; background: linear-gradient(180deg, #F7FAFE, #fff); }
.photo-feature:has(input[name=kind]:checked) { border-color: var(--accent); background: #EAF1FB; box-shadow: 0 0 0 1px var(--accent) inset; }
.photo-feature .pf-head { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.photo-feature .pf-head input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.photo-feature .pf-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; flex: none; }
.photo-feature .pf-icon svg { width: 30px; height: 30px; }
.photo-feature .pf-text b { display: block; font-size: calc(19px * var(--t)); }
.photo-feature .pf-text small { display: block; margin-top: 4px; font-size: calc(14.5px * var(--t)); color: var(--ink-2); line-height: 1.6; }
.photo-feature .pf-head:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.cd-group .photo-feature .photo-pick { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.1); }
.cd-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; color: var(--ink-2); font-size: calc(14.5px * var(--t)); font-weight: 600; }
.cd-or::before, .cd-or::after { content: ""; flex: 1; height: 1px; background: #D8DEE8; }

/* ログを読み込む：手順・ファイルを置く枠・安心のひとこと */
.rec-sec .wrap { max-width: 760px; }
.rec-sec h1, .rec-sec .lead-s { text-align: center; }
.rec-sec .lead-s { margin-bottom: 28px; line-height: 1.8; }
.rec-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.rec-steps li { padding: 16px 16px 18px; border: 1.5px solid #D8DEE8; border-radius: 16px; background: #fff; }
.rec-steps .n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.rec-steps b { display: block; font-size: calc(17px * var(--t)); }
.rec-steps p { margin: 8px 0 0; font-size: calc(15px * var(--t)); line-height: 1.7; color: var(--ink-2); }
@media (max-width: 719px) { .rec-steps { grid-template-columns: 1fr; } }
.rec-form { display: grid; gap: 16px; }
.rec-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 20px; border: 2.5px dashed #9FB3CF; border-radius: 20px; background: #F5F8FD; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.rec-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rec-drop:hover, .rec-drop.is-over { background: #E9F0FB; border-color: var(--accent); }
.rec-drop.has-file { border-style: solid; border-color: var(--accent); background: #EAF1FB; }
.rec-drop:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.rec-drop-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; }
.rec-drop-icon svg { width: 30px; height: 30px; }
.rec-drop-t { font-size: calc(19px * var(--t)); font-weight: 700; }
.rec-drop-s { font-size: calc(16px * var(--t)); color: var(--ink-2); word-break: break-all; }
.rec-drop.has-file .rec-drop-s { color: var(--accent); font-weight: 700; }
.rec-assure { margin: 24px 0 0; padding: 16px 20px 16px 38px; border-radius: 14px; background: #F2F4F8; line-height: 1.9; font-size: calc(16px * var(--t)); }
.rec-assure li::marker { color: #1E8A4C; content: "✓  "; }
.rec-help { margin: 18px 0 0; border: 1.5px solid #D8DEE8; border-radius: 14px; background: #fff; }
.rec-help summary { padding: 14px 18px; font-weight: 700; cursor: pointer; }
.rec-help > div { padding: 2px 18px 16px; }
.rec-help p { margin: 12px 0 0; line-height: 1.8; font-size: calc(15.5px * var(--t)); }
.rec-sec .rec-form { width: 100%; max-width: none; margin: 0; }
.rec-sec .rec-steps, .rec-sec .rec-assure, .rec-sec .rec-help { text-align: left; }
.rec-sec .rec-assure { list-style-position: outside; }
.rec-sec .rec-form .btn { width: 100%; max-width: none; }
.rec-sec .rec-form .btn.full, .rec-sec .rec-form button.btn { width: 100% !important; max-width: none !important; margin: 0 !important; justify-self: stretch; }

.rec-steps .st { display: inline-flex; align-items: baseline; gap: 5px; margin-bottom: 10px; padding: 3px 12px 3px 11px; border-radius: 980px; background: var(--accent); color: #fff; font-size: calc(12.5px * var(--t)); font-weight: 800; letter-spacing: .12em; }
.rec-steps .st b { display: inline; font-size: calc(17px * var(--t)); letter-spacing: 0; }
.rec-steps .st { align-items: center; line-height: 1; padding-top: 5px; padding-bottom: 5px; } .rec-steps .st b { line-height: 1; }
/* 「つぎへ」ボタン：横いっぱいにせず、ボタンと分かる大きさで、中央に */
.rec-sec .rec-form .btn.full, .rec-sec .rec-form button.btn { width: min(100%, 380px) !important; justify-self: center; min-height: 56px; font-size: calc(18px * var(--t)); box-shadow: 0 6px 16px -6px rgba(15, 76, 154, .55); }
.rec-sec .rec-form button.btn::after { content: "→"; margin-left: 10px; font-weight: 700; }

.rec-assure { padding: 18px 22px 16px; }
.rec-assure h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: calc(18px * var(--t)); color: #1E6B42; }
.rec-assure h2 svg { width: 24px; height: 24px; flex: none; }
.rec-assure ul { margin: 0; padding: 0 0 0 4px; list-style: none; }
.rec-assure li { padding-left: 1.6em; text-indent: -1.6em; line-height: 1.9; }
.rec-assure li::before { content: "✓"; display: inline-block; width: 1.6em; text-indent: 0; color: #1E8A4C; font-weight: 800; }
.rec-assure li::marker { content: ""; }

/* 読み込みの確認：3つの数、重複のお知らせ、ボタン */
.chk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.chk-cards li { padding: 16px 12px; border: 1.5px solid #D8DEE8; border-radius: 16px; background: #fff; text-align: center; }
.chk-cards .stat-n { display: block; font-size: calc(40px * var(--t)); font-weight: 800; line-height: 1.1; }
.chk-cards .stat-l { display: block; margin-top: 6px; font-size: calc(14.5px * var(--t)); color: var(--ink-2); line-height: 1.5; }
.chk-cards .is-new { border-color: #1E8A4C; background: #F0FAF3; } .chk-cards .is-new .stat-n { color: #1E8A4C; }
.chk-cards .is-dup .stat-n { color: var(--accent); }
.chk-cards .is-err .stat-n { color: #B5482C; }
@media (max-width: 560px) { .chk-cards { grid-template-columns: 1fr; } }
.chk-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; line-height: 1.8; text-align: left; }
.chk-note .ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 800; }
.chk-note.ok { background: #EAF7EF; } .chk-note.ok .ic { background: #1E8A4C; }
.chk-note.info { background: #EAF1FB; } .chk-note.info .ic { background: var(--accent); }
.chk-h { margin: 24px 0 10px; font-size: calc(18px * var(--t)); } .chk-h small { font-weight: 400; color: var(--ink-2); font-size: .8em; }
.chk-rule { margin: 16px 0 24px; text-align: left; }
.chk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.chk-actions .btn, .login-sec a.btn:not(.full) { width: auto; min-width: 220px; justify-content: center; }
/* 手順の説明：枠のないカード風をやめ、「STEP 1 ・・・ STEP 2 ・・・ STEP 3」と点線でつなぐ流れの図にする（押せるボタンに見えないように） */
.rec-sec .rec-steps { gap: 30px; margin: 4px 0 30px; }
.rec-sec .rec-steps li { position: relative; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: default; }
.rec-sec .rec-steps li:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: 84px; right: -22px; border-top: 2.5px dotted #A9B8D0; }
.rec-sec .rec-steps li:not(:last-child)::before { content: ""; position: absolute; top: 6px; right: -24px; width: 8px; height: 8px; border-top: 2.5px solid #A9B8D0; border-right: 2.5px solid #A9B8D0; transform: rotate(45deg); }
.rec-sec .rec-steps .st { margin-bottom: 12px; }
.rec-sec .rec-steps b { font-size: calc(18px * var(--t)); }
.rec-sec .rec-steps p { margin-top: 6px; }
@media (max-width: 719px) { .rec-sec .rec-steps li::after, .rec-sec .rec-steps li::before { display: none; } .rec-sec .rec-steps { gap: 20px; } }
/* 手順：中央にそろえる（点線は、札と札の間をつなぐ） */
.rec-sec .rec-steps li { text-align: center; }
.rec-sec .rec-steps li:not(:last-child)::after { left: calc(50% + 46px); right: auto; width: calc(100% - 62px); }
.rec-sec .rec-steps li:not(:last-child)::before { left: calc(150% - 24px); right: auto; }
.rec-sec .rec-steps p { max-width: 24em; margin-left: auto; margin-right: auto; }
@media (max-width: 719px) { .rec-sec .rec-steps li { text-align: center; } }
.rec-sec .rec-steps p { text-align: left; max-width: 17.5em; }
/* 手順：札・見出し・説明を、列の左端にそろえる */
.rec-sec .rec-steps li, .rec-sec .rec-steps p { text-align: left; }
.rec-sec .rec-steps p { max-width: none; margin-left: 0; margin-right: 0; }
.rec-sec .rec-steps li:not(:last-child)::after { left: 84px; right: -22px; width: auto; }
.rec-sec .rec-steps li:not(:last-child)::before { left: auto; right: -24px; }
/* STEPの札：ボタンの青と区別するため、メニューと同じ青→紫のグラデーションの色を、順に使う */
.rec-steps li:nth-child(1) .st { background: #1E88A8; }
.rec-steps li:nth-child(2) .st { background: #3A5DAE; }
.rec-steps li:nth-child(3) .st { background: #763796; }
/* 読み込みの確認：表の下の「ほか ○ 件」と説明 */
.tbl-wrap + .small-note { margin: 14px 0 0; text-align: center; }
.chk-rule { margin: 18px 0 28px; text-align: center; }

/* 読み込みの確認・完了：全体を中央にそろえる */
.rec-check h1, .rec-check .lead-s, .rec-check h2 { text-align: center; }
.rec-check .chk-note { justify-content: center; text-align: left; }
.rec-check .chk-h { text-align: center; }
.rec-check .tbl-wrap { max-width: 640px; margin: 0 auto; }
.rec-check table.log th, .rec-check table.log td { text-align: center; }
.rec-check .verify-box { text-align: center; }
.rec-check .verify-box .wd-list { display: inline-block; text-align: left; margin: 8px auto 0; }
.rec-check .chk-actions .btn, .rec-check a.btn { min-width: 220px; justify-content: center; }
.rec-check > .wrap > a.btn { display: flex; width: fit-content; margin: 0 auto; }
.done-ic { display: grid; place-items: center; width: 76px; height: 76px; margin: 6px auto 14px; border-radius: 50%; background: #E3F4E8; color: #1E8A4C; }
.done-ic svg { width: 44px; height: 44px; }
.done-n { font-size: calc(19px * var(--t)); }
.done-n b { font-size: 1.6em; color: #1E8A4C; }
.done-next { margin: 26px auto 22px; padding: 22px 22px 24px; max-width: 560px; border: 1.5px solid #D8DEE8; border-radius: 18px; background: #F7FAFE; text-align: center; }
.done-next h2 { margin: 0 0 10px; font-size: calc(20px * var(--t)); }
.done-next p { margin: 0 0 18px; line-height: 1.8; }
.done-next .btn { min-width: 260px; }
.done-more { display: grid; justify-items: center; gap: 10px; }
.rec-check .chk-rule { margin: 20px 0 34px; text-align: center; }
.rec-check .chk-actions { margin-top: 0; }

/* ═══ 電子QSLカードを送る：流れ・送り方・各画面 ═══ */
.send-sec .rec-steps { margin-bottom: 34px; }
.send-sec .way-h { margin: 0 0 14px; text-align: center; font-size: calc(21px * var(--t)); }
.send-sec .way-grid { gap: 18px; margin-bottom: 26px; }
.send-sec .way { position: relative; justify-items: center; text-align: center; padding: 26px 22px 24px; gap: 12px; border-radius: 20px; }
.send-sec .way p { max-width: 24em; }
.send-sec .way .btn { min-width: 220px; justify-content: center; margin-top: 4px; }
.send-sec .way-main { border: 2px solid var(--accent); background: linear-gradient(180deg, #F3F8FE, #fff); box-shadow: 0 10px 28px -16px rgba(15, 76, 154, .55); }
.way-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #E4ECF7; color: var(--accent); }
.way-main .way-ic { background: var(--accent); color: #fff; }
.way-ic svg { width: 28px; height: 28px; }
.send-know { margin: 0 0 26px; text-align: left; }
.send-sec .design-strip { margin-bottom: 22px; text-align: left; background: #F2F4F8; }
.send-sec .design-strip .ds-card { max-width: 240px; }
@media (max-width: 639px) { .send-sec .design-strip { justify-items: center; text-align: center; } }
.send-sec .send-after { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 6px; }
.send-sec .send-after .btn { width: auto; min-width: 220px; justify-content: center; }
.send-sec a.btn { width: fit-content; }
/* いま、どの手順か */
.send-flow { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; flex-wrap: wrap; }
.send-flow li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 980px; background: #EEF1F6; color: #7A8496; font-size: calc(14.5px * var(--t)); }
.send-flow li:not(:last-child)::after { content: "›"; margin-left: 10px; color: #A9B8D0; font-size: 1.3em; }
.send-flow .st { padding: 3px 10px; border-radius: 980px; background: #B8C2D3; color: #fff; font-size: .8em; font-weight: 800; letter-spacing: .1em; }
.send-flow .st b { font-size: 1.2em; letter-spacing: 0; }
.send-flow li.is-cur { background: #EAF1FB; color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--accent); }
.send-flow li.is-cur .st { background: var(--accent); }
.send-flow li.is-done { color: #1E8A4C; } .send-flow li.is-done .st { background: #1E8A4C; }
/* 交信を選ぶ */
.pick-tools { justify-content: center; margin-bottom: 14px; }
.pick-count { margin-left: 8px; font-size: calc(16px * var(--t)); color: var(--ink-2); } .pick-count b { color: var(--accent); font-size: 1.3em; }
.send-sec .pick-table th, .send-sec .pick-table td { text-align: center; }
.send-sec .pick-box { width: 22px; height: 22px; cursor: pointer; accent-color: var(--accent); }
.tag-reg { display: inline-block; padding: 2px 10px; border-radius: 980px; background: #E3F4E8; color: #1E6B42; font-size: .9em; font-weight: 700; }
/* 確認 */
.send-sec .confirm-card { max-width: 460px; margin: 0 auto 22px; }
.send-sec .confirm-card .small-note { margin-top: 12px; text-align: center; }
.send-sec .chk-note { max-width: 560px; margin-left: auto; margin-right: auto; justify-content: center; }
/* 1件だけ入れる */
.send-one { max-width: 560px; margin: 0 auto; text-align: left; }
.send-one .one-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; }
/* 送った結果 */
.send-notes { display: grid; gap: 10px; max-width: 600px; margin: 0 auto 8px; }
.send-sec .again { margin: 26px 0 12px; text-align: center; }
.send-sec .tell-list { max-width: 640px; margin-left: auto; margin-right: auto; text-align: left; }
.send-sec .tbl-wrap { max-width: 680px; margin: 0 auto; } .send-sec .pick-table { width: 100%; }
.send-one label { display: block; margin: 16px 0 6px; font-weight: 700; font-size: calc(16px * var(--t)); }
.send-one input[type=text], .send-one input[type=date], .send-one input[type=time], .send-one select { display: block; width: 100%; height: 48px; padding: 0 12px; border: 1px solid #86868B; border-radius: 12px; background: #fff; font: 400 calc(17px * var(--t)) var(--sans); }
.send-one .one-row > div { min-width: 0; }
.send-one .send-after { margin-top: 26px; }
/* JTDX連携で、自動で送る：2つの送り方の下に、横いっぱいで */
@media (min-width: 640px) { .send-sec .way-auto { grid-column: 1 / -1; } }
.send-sec .way-auto .way-ic { background: #EFE6F6; color: #763796; }
.auto-state { display: inline-block; margin-left: 8px; padding: 2px 12px; border-radius: 980px; background: #ECEEF2; color: #5A6372; font-size: .62em; font-weight: 700; vertical-align: middle; }
.auto-state.on { background: #E3F4E8; color: #1E6B42; }
.send-sec .way-auto p { max-width: 36em; }
/* 送り方：3つを横に並べる（広い画面）。説明が長いので、枠の中の文字は少し小さめ */
@media (min-width: 900px) {
  .send-sec .way-grid { grid-template-columns: repeat(3, 1fr); }
  .send-sec .way-auto { grid-column: auto; }
  .send-sec .way p { font-size: calc(15.5px * var(--t)); max-width: none; }
  .send-sec .way h2 { font-size: calc(19px * var(--t)); }
  .send-sec .way .btn { min-width: 0; width: 100%; }
  .send-sec .way-auto p { max-width: none; }
  .send-sec .way { grid-template-rows: auto auto 1fr auto; }
  .auto-state { display: block; width: fit-content; margin: 6px auto 0; }
}
/* wrap を、3列が収まる幅に */
@media (min-width: 900px) { .send-sec .wrap { max-width: 960px; } }

/* 言葉の意味：用語の一覧（「？」を押すと、その場に説明が出る） */
.term-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 22px 0 0; padding: 12px 14px; border-radius: 14px; background: #F2F4F8; font-size: calc(15px * var(--t)); }
.term-legend .tl-h { margin-right: 6px; font-weight: 700; color: var(--ink-2); }
.term-legend .tl-i { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 12px; border-radius: 980px; background: #fff; box-shadow: inset 0 0 0 1px #D8DEE8; color: var(--ink); font-weight: 600; }
.term-legend .help { display: inline-flex; }
.term-legend .help summary { margin: 0; }
.term-legend .help-body { position: absolute; left: 50%; top: calc(100% + 8px); z-index: 20; width: min(330px, 86vw); margin: 0; transform: translateX(-50%); box-shadow: 0 14px 34px rgba(15, 25, 45, .22); font-weight: 400; font-size: calc(15.5px * var(--t)); }

/* 「LabQSL 登録局」のバッジと、自己紹介への入口 */
.reg-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 6px; border-radius: 980px; background: #E4ECF7; color: #0F4C9A; font-size: calc(13px * var(--t)); font-weight: 700; white-space: nowrap; vertical-align: middle; }
.reg-badge img { border-radius: 3px; }
.prof-link { display: inline-block; padding: 1px 9px; border: 1.5px solid #9FB3CF; border-radius: 980px; font-size: calc(13px * var(--t)); font-weight: 700; text-decoration: none; white-space: nowrap; }
.prof-link:hover { background: #EAF1FB; }
.cap-sub { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.sender-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 0 22px; }
.prof-sec .back-link { text-align: left; }
.prof-card { margin: 8px auto 0; padding: 28px 24px 26px; max-width: 520px; border: 1.5px solid #D8DEE8; border-radius: 22px; background: #fff; text-align: center; }
.prof-card .acct-avatar.big { display: grid; place-items: center; width: 110px; height: 110px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: #E4ECF7; color: var(--accent); }
.prof-card .acct-avatar.big img { width: 100%; height: 100%; object-fit: cover; }
.prof-card .acct-avatar.big svg { width: 60%; height: 60%; }
.prof-card h1 { margin: 0; }
.prof-badges { margin: 8px 0 0; }
.prof-name { margin: 14px 0 0; font-size: calc(22px * var(--t)); font-weight: 700; }
.prof-city { margin: 4px 0 0; color: var(--ink-2); }
.prof-bio { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #E3E7EE; line-height: 1.9; text-align: left; }
.prof-note { margin: 14px 0 0; text-align: center; }
.prof-sec .send-after { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 6px; }
.prof-sec .send-after .btn { width: auto; min-width: 220px; justify-content: center; }

/* 設定：グループごとに見出しをつけ、1列で、中央に並べる（ほかの画面と同じ見せ方） */
.login-sec:has(.set-group) .wrap { max-width: 720px; }
.login-sec:has(.set-group) h1, .login-sec:has(.set-group) .lead-s { text-align: center; }
.login-sec:has(.set-group) .lead-s { margin-bottom: 30px; line-height: 1.8; }
.set-group { margin: 0 0 34px; text-align: left; }
.set-group h2 { margin: 0; font-size: calc(21px * var(--t)); }
.set-group .set-sub { margin: 4px 0 14px; font-size: calc(15px * var(--t)); color: var(--ink-2); }
body:has(.gnav) .set-group .set-list, .set-group .set-list { grid-template-columns: 1fr; gap: 10px; }
body:has(.gnav) .set-group .set-row[open] { grid-column: auto; }
.login-sec:has(.set-group) .lead-s { text-wrap: balance; max-width: 34em; margin-left: auto; margin-right: auto; }

/* 件数の枠：2段組みのヘッダー（PC）でも、全幅の中央に置く */
.station .tally { grid-column: 1 / -1; justify-self: center; width: min(100%, 420px); }

/* JTDX・WSJT-X連携：手順ごとの見出しを、STEPの札にする。全体は中央・ボタンは自動幅 */
.login-sec:has(.set-sec) .wrap { max-width: 760px; }
.login-sec:has(.set-sec) h1, .login-sec:has(.set-sec) .lead-s { text-align: center; }
.login-sec:has(.set-sec) .lead-s { margin-bottom: 28px; line-height: 1.8; }
.set-sec h2.stp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.set-sec h2.stp .st { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 11px; border-radius: 980px; background: var(--accent); color: #fff; font-size: calc(12.5px * var(--t)); font-weight: 800; letter-spacing: .12em; line-height: 1; }
.set-sec h2.stp .st b { font-size: calc(17px * var(--t)); letter-spacing: 0; line-height: 1; }
.set-sec:nth-of-type(1) h2.stp .st { background: #1E88A8; }
.set-sec:nth-of-type(2) h2.stp .st { background: #3A5DAE; }
.set-sec:nth-of-type(3) h2.stp .st { background: #763796; }
.set-sec:nth-of-type(4) h2.stp .st { background: #A8478F; }
.set-sec .btn:not(.mini):not(.line) { width: auto; min-width: 220px; }
.set-sec .login-form .btn, .set-sec .key-actions .btn { display: flex; margin: 14px auto 0; justify-content: center; }

/* 登録の流れ：「STEP 1 / 3」を、ほかの画面と同じ札の形にする */
.step-mark { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 14px; }
.step-mark .st { display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px 5px 12px; border-radius: 980px; background: #1E88A8; color: #fff; font-size: calc(13px * var(--t)); font-weight: 800; letter-spacing: .12em; line-height: 1; }
.step-mark .st b { font-size: calc(18px * var(--t)); letter-spacing: 0; line-height: 1; }
.step-mark .of { color: var(--ink-2); font-weight: 700; font-size: calc(15px * var(--t)); }
.step-mark.s2 .st { background: #3A5DAE; } .step-mark.s3 .st { background: #763796; }

/* ページが短いときも、フッターを、画面の一番下に置く（下に白い余白が出ないように） */
body:has(> main#main) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> main#main) > main#main { flex: 1 0 auto; }

/* 確認用ページ（/v/コード）：確認できたしるし。大きくなりすぎないように */
.vf-ok { text-align: center; margin: 0 0 24px; }
.vf-ok svg { display: block; width: 76px; height: 76px; margin: 0 auto 14px; }
.vf-ok h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; text-wrap: balance; }

/* カード詳細の下のボタン：横いっぱいにせず、中央に並べる（ほかの画面と同じ） */
.card-detail .detail-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.card-detail .detail-actions .btn { width: auto; min-width: 240px; justify-content: center; }

/* 幅のある画面（PC）では、ボタンを「横いっぱい」にせず、ボタンと分かる大きさで、中央に置く（入力欄のあるフォームの中は、そのまま） */
@media (min-width: 720px) {
  main .btn.full:not(.login-form .btn):not(.rec-form .btn):not(.set-body .btn) { display: flex; width: fit-content; min-width: 240px; margin-left: auto; margin-right: auto; justify-content: center; }
}

/* トップ：「自分に届いているか確認する」の枠を、はっきりした色の面にして、区切りを分かりやすく */
.hero-card .search { background: #E3EDF9; border: 1.5px solid #BDD1EC; box-shadow: 0 14px 30px -22px rgba(15, 76, 154, .55); }
.hero-card .search .hint { color: #36445A; }

/* 枠線はなし。面の中に、ゆとりをとる（上の指定で、余白が0になっていたため） */
.hero .search, .hero-card .search { max-width: 720px; padding: 38px 40px 42px; background: #E3EDF9; border: 0; border-radius: 32px; box-shadow: none; }
.hero .search label { margin-bottom: 8px; }
.hero .search .hint { margin-bottom: 24px; }
@media (max-width: 560px) { .hero .search, .hero-card .search { padding: 26px 18px 28px; border-radius: 26px; } }
