/* 税理士のための無料計算ツール（shiwake.ai/tools/）— ランディングと同じ色・書体 */
:root {
  --paper: #F5F3ED;
  --paper-deep: #ECE9E1;
  --panel: #FFFFFF;
  --ink: #151A28;
  --ink-soft: #454B5C;
  --ink-faint: #7A7F8C;
  --line: rgba(21,26,40,0.12);
  --line-strong: rgba(21,26,40,0.26);
  --ai: #1F3A5F;
  --ai-soft: rgba(31,58,95,0.07);
  --shu: #B4392F;
  --kin: #8A6F3C;
  --win: #2E6E52;
  --warn-soft: #FFF6D6;
  --font-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Roboto Mono", "Menlo", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--ai); }
img { max-width: 100%; height: auto; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1080px; margin: 0 auto; padding: 0 16px; height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand b { font-family: var(--font-jp); font-size: 1.05rem; letter-spacing: .04em; white-space: nowrap; }
.brand b i { font-style: normal; color: var(--ai); }
.brand span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-cta { flex: none; font-size: .8rem; font-weight: 700; text-decoration: none; color: #fff; background: var(--ai); padding: 7px 14px; border-radius: 3px; white-space: nowrap; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.crumb { font-size: .78rem; color: var(--ink-faint); margin: 18px 0 6px; }
.crumb a { color: var(--ink-faint); }
h1 { font-family: var(--font-jp); font-size: clamp(1.45rem, 4.2vw, 2.1rem); line-height: 1.45; margin: 4px 0 10px; letter-spacing: .02em; }
h1 .h1-sub { display: block; font-size: .56em; line-height: 1.55; margin-top: .35em; color: var(--ink-soft, #555); font-weight: 600; letter-spacing: .01em; }
h1 .h1-dash { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h2 { font-family: var(--font-jp); font-size: 1.28rem; margin: 38px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.updated { font-size: .78rem; color: var(--ink-faint); }
/* H1 の下の「無料・登録不要」（freeNote） */
.free-note { margin: -2px 0 8px; line-height: 1.6; }
.free-note .fn-badge { display: inline-block; font-weight: 700; font-size: .78rem; color: var(--ai); background: var(--ai-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.lead { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ai); padding: 12px 16px; margin: 14px 0 22px; }
.lead ul { margin: 0; padding-left: 1.2em; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }

.calc { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; padding: 18px 16px; }
.calc h2 { margin-top: 0; border: 0; padding: 0; font-size: 1.1rem; }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field > label, .field > .lbl { font-size: .86rem; font-weight: 700; }
.field small { color: var(--ink-faint); font-size: .76rem; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
/* PC・タブレット（2列）: 高さの違う欄が並んでも引き伸ばさず、見出し・入力・補足の行を左右でそろえる。
   引き伸ばすと入力欄が下がり「円」が入力欄の外にずれていた。スマホ（1列）の見た目は変えない */
@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .field { align-content: start; }
  .field > * { min-width: 0; }
  .yen { align-self: start; }
  .yen input { display: block; }
  .yen::after { line-height: 1; white-space: nowrap; pointer-events: none; }
  @supports (grid-template-rows: subgrid) {
    /* 行の間隔は gap ではなく margin（使っていない行に間隔が付かないように） */
    .row2 > .field { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    .row2 > .field > * + * { margin-top: 4px; }
    /* 隣の選択肢が折り返して行が高くなっても、入力欄・プルダウンは引き伸ばさない */
    .row2 > .field > select, .row2 > .field > input, .row2 > .field > textarea, .row2 > .field > .radios { align-self: start; }
    /* 見出しのすぐ下の選択肢は、隣が入力欄・プルダウンなら同じ行の上下中央に（選択肢どうしなら上端でそろえる） */
    .row2:has(> .field > :is(.yen, select, input, textarea)) > .field > :is(label, .lbl) + .radios { align-self: center; }
  }
}
input[type=text], input[type=date], input[type=month], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--ai); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #B9BDC7; opacity: 1; }
.yen { position: relative; align-self: start; }
.yen input { display: block; padding-right: 34px; text-align: right; font-family: var(--font-mono); text-overflow: ellipsis; }
.yen::after { content: "円"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: .86rem; line-height: 1; white-space: nowrap; pointer-events: none; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.radios label { display: inline-flex; align-items: center; gap: 5px; }
button.go { width: 100%; font: inherit; font-weight: 700; font-size: 1rem; color: #fff; background: var(--ai); border: 0; border-radius: 3px; padding: 12px; cursor: pointer; }
button.go:hover { filter: brightness(1.12); }

.result { margin-top: 18px; display: none; }
.result.on { display: block; }
.big { background: var(--ai-soft); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; margin-bottom: 12px; }
.big .k { font-size: .84rem; color: var(--ink-soft); }
.big .v { font-family: var(--font-mono); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; color: var(--ai); line-height: 1.3; }
.big .v small { font-size: .9rem; font-family: var(--font-sans); margin-left: 4px; color: var(--ink-soft); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
th { background: var(--paper-deep); font-weight: 700; font-size: .82rem; }
td.n, th.n { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 1px solid var(--line-strong); }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note { font-size: .8rem; color: var(--ink-soft); background: var(--warn-soft); padding: 8px 12px; border-radius: 3px; margin: 8px 0; }
.ok { color: var(--win); font-weight: 700; }
.ng { color: var(--shu); font-weight: 700; }
.err { color: var(--shu); font-size: .86rem; margin-top: 8px; }

.side { display: grid; gap: 16px; align-content: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; font-size: .88rem; }
.card h3 { margin: 0 0 8px; font-size: .95rem; }
.card ul { margin: 0; padding-left: 1.1em; }
.promo { background: var(--ink); color: #fff; border-radius: 4px; padding: 18px 16px; }
.promo h3 { font-family: var(--font-jp); margin: 0 0 8px; font-size: 1.05rem; color: #fff; }
.promo p { margin: 0 0 12px; font-size: .86rem; color: rgba(255,255,255,.82); line-height: 1.7; }
.promo a.btn { display: block; text-align: center; background: #C9A227; color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px; border-radius: 3px; }
.promo a.sub { display: block; text-align: center; color: rgba(255,255,255,.75); font-size: .8rem; margin-top: 8px; min-height: 24px; line-height: 24px; }

.content { font-size: .95rem; }
.content p { margin: 8px 0; }
.content code, .formula { font-family: var(--font-mono); font-size: .88em; background: var(--paper-deep); padding: 1px 5px; border-radius: 2px; }
.formula { display: block; padding: 10px 12px; margin: 10px 0; white-space: pre-wrap; line-height: 1.7; }
.content pre { font-family: var(--font-mono); font-size: .8em; background: var(--paper-deep); padding: 10px 12px; margin: 10px 0; border-radius: 2px; overflow-x: auto; max-width: 100%; line-height: 1.6; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.src li, .hist li { font-size: .85rem; }
.disclaimer { font-size: .78rem; color: var(--ink-faint); margin: 30px 0 10px; }

/* 本文の前の小さな案内（inlineCta）。広告に見えすぎないよう、白地＋左の線＋文字リンク */
.inline-cta { margin: 18px 0 4px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid #C9A227; border-radius: 4px; padding: 14px 16px; }
.inline-cta .ic-t { margin: 0 0 4px; font-weight: 700; font-size: .95rem; color: var(--ink); text-wrap: balance; }
/* 見出しは「、」の前後を塊にして、入りきらないときは後半ごと次の行へ（孤立した1〜2文字の行を作らない） */
.inline-cta .ic-t span { display: inline-block; }
/* スマホ: 見出しを14pxにして字間を少し詰め、短い見出しは1行に。入らない長い見出しは「、」の後ろで2行に分かれる（PCは変えない） */
@media (max-width: 559px) { .inline-cta .ic-t { font-size: 14px; letter-spacing: -.02em; } }
.inline-cta .ic-x { margin: 0 0 10px; font-size: .84rem; line-height: 1.7; color: var(--ink-soft); }
.inline-cta .ic-x .nw { white-space: nowrap; }
.inline-cta a { display: inline-block; font-size: .88rem; font-weight: 700; color: #fff; background: var(--ai); text-decoration: none; padding: 8px 14px; border-radius: 3px; }
.inline-cta a:hover { filter: brightness(1.12); }
@media (min-width: 760px) { .inline-cta { display: grid; grid-template-columns: 1fr auto; column-gap: 18px; align-items: center; } .inline-cta .ic-t, .inline-cta .ic-x { grid-column: 1; } .inline-cta .ic-x { margin-bottom: 0; } .inline-cta a { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; } }
.cta { margin: 40px 0 10px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; padding: 22px 18px; display: grid; gap: 12px; }
@media (min-width: 760px) { .cta { grid-template-columns: 1fr auto; align-items: center; } }
.cta h2 { margin: 0; border: 0; padding: 0; font-size: 1.2rem; }
.cta p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-soft); }
.cta a.btn { display: inline-block; background: var(--ai); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 3px; text-align: center; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 12px 0 24px; }
.tool { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.tool:hover { border-color: var(--ai); }
.tool b { display: block; font-size: .98rem; margin-bottom: 4px; color: var(--ai); }
.tool span { font-size: .82rem; color: var(--ink-soft); line-height: 1.6; display: block; }
.tool em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--kin); letter-spacing: .06em; }

/* フッター（トップページと同じ4列） */
.site-footer { background: var(--paper-deep); border-top: 1px solid var(--line-strong); margin-top: 56px; padding: 52px 20px 32px; font-size: .82rem; color: var(--ink-soft); }
.ft-in { max-width: 1060px; margin: 0 auto; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.ft-brand .mark { font-family: var(--font-jp); font-size: 1.1rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.ft-brand .mark sup { font-family: Georgia, serif; font-size: .4em; vertical-align: text-top; color: var(--ink-faint); font-weight: 400; margin-left: 1px; }
.ft-brand .mark span { color: var(--ai); }
.ft-brand p { margin: 12px 0 0; line-height: 1.8; max-width: 36ch; }
.ft-brand p a { color: var(--ai); text-decoration: none; }
.ft-brand .ft-oih { margin-top: 18px; display: inline-flex; align-items: stretch; border: 1px solid rgba(138,111,60,0.45); border-radius: 2px; font-size: .72rem; line-height: 1; max-width: none; }
.ft-oih b { display: flex; align-items: center; padding: 6px 9px; background: var(--kin); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.ft-oih span { display: flex; align-items: center; padding: 5px 10px; color: var(--kin); font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.ft-oih svg { width: 24px; height: 16px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(21,26,40,0.18); }
.ft-col h4 { margin: 0 0 10px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--kin); font-weight: 700; }
.ft-col a { display: block; color: var(--ink-soft); text-decoration: none; padding: 4px 0; line-height: 1.6; }
.ft-col a:hover, .ft-bottom a:hover { color: var(--ai); }
.ft-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: .76rem; color: var(--ink-faint); }
.ft-bottom a { color: inherit; text-decoration: none; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } .site-footer { padding: 40px 20px 28px; } }

.drop { border: 2px dashed var(--line-strong); border-radius: 4px; padding: 26px 14px; text-align: center; background: var(--paper); cursor: pointer; }
.drop.over { border-color: var(--ai); background: var(--ai-soft); }
.thumbs { display: grid; gap: 10px; margin-top: 12px; }
.thumb { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 8px; font-size: .84rem; }
.thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; }
.thumb ul { margin: 4px 0 0; padding-left: 1.1em; }

/* ヘッダーのナビ（無料ツール・解説） */
.top-nav { display: flex; gap: 14px; margin-left: auto; font-size: .82rem; }
.top-nav a { color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.top-nav a[aria-current] { color: var(--ai); font-weight: 700; }
@media (max-width: 520px) { .top-nav { display: none; } }

/* 解説記事 */
.lead > b { display: block; font-size: .84rem; margin-bottom: 4px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; margin: 0 0 8px; font-size: .88rem; }
.toc b { font-size: .84rem; }
.toc ol { margin: 6px 0 0; padding-left: 1.4em; }
.toc li { margin: 2px 0; }
.guide h2 { scroll-margin-top: 70px; }
.guide h3 { scroll-margin-top: 70px; }
.guide ul, .guide ol { padding-left: 1.3em; }
.guide li { margin: 3px 0; }
.guide .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pnote { background: var(--ai-soft); border: 1px solid var(--line); border-radius: 4px; padding: 4px 16px 12px; margin-top: 30px; }
.pnote h2 { margin-top: 14px; border: 0; padding: 0; font-size: 1.12rem; }
.ex { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; margin: 10px 0; }
.ex > b:first-child { display: block; font-size: .84rem; color: var(--kin); margin-bottom: 2px; }
/* 解説の引用（一次資料の文言） */
.guide blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--kin); background: var(--panel); font-size: .9rem; }
.guide blockquote cite { display: block; margin-top: 6px; font-size: .78rem; font-style: normal; color: var(--ink-soft); }
/* 解説の表: スマホでは表の中だけ横にスクロール（列を1文字ずつに潰さない） */
.guide .tbl table { min-width: 560px; }
.content .tbl th, .content .tbl td { word-break: auto-phrase; }
/* 表の1列目は折り返すが、短い見出しは1行に（5.5em）。1列目が①・番号だけの表（narrow1）は最小幅なし */
.content .tbl th:first-child, .content .tbl td:first-child { white-space: normal; min-width: 5.5em; }
.content .tbl.narrow1 th:first-child, .content .tbl.narrow1 td:first-child { min-width: 0; white-space: nowrap; }
/* 数字の列でも、複数列にまたがる説明の文は折り返す（ほかの列が細くならないように） */
.content .tbl td.n[colspan] { white-space: normal; text-align: left; font-family: inherit; }

/* ============================================================
   2026-11 見た目の更新（トップページと同じ調子: 角丸・影・紺の帯・金のボタン）。
   文章・構成は変えず、色と形だけを上書きする
   ============================================================ */
:root {
  --paper: #F6F4EE;
  --ink: #121A2E;
  --line: rgba(18,26,46,0.10);
  --line-strong: rgba(18,26,46,0.20);
  --navy: #0F1830;
  --kin-bright: #E2B54A;
  --r: 12px;
  --shadow: 0 1px 2px rgba(18,26,46,0.04), 0 12px 32px -16px rgba(18,26,46,0.18);
}

/* ヘッダー */
.top { z-index: 50; background: rgba(255,255,255,0.92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1160px; height: 60px; padding: 0 20px; gap: 8px; }
.brand b { font-size: 1.12rem; font-weight: 700; }
.brand b i { color: inherit; }
.brand span { font-family: var(--font-sans); font-size: .68rem; letter-spacing: .1em; }
.top-nav { gap: 2px; align-items: center; font-size: .86rem; }
.top-nav a { padding: 8px 11px; border-radius: 8px; color: var(--ink); font-weight: 500; opacity: .82; transition: background .15s, opacity .15s; }
.top-nav a:hover { background: var(--ai-soft); opacity: 1; }
.top-nav a[aria-current] { color: var(--ai); opacity: 1; background: var(--ai-soft); }
.top-nav .sep { width: 1px; height: 16px; background: var(--line-strong); margin: 0 8px; }
.top-nav .m-only { display: none; }
.top-login { font-size: .86rem; font-weight: 500; color: var(--ink); opacity: .82; text-decoration: none; padding: 8px 11px; white-space: nowrap; }
.top-login:hover { opacity: 1; }
.top-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--navy); font-size: .86rem; transition: transform .15s, box-shadow .15s; }
.top-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(15,24,48,.6); }
.top-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 11px 9px; color: var(--ink); }
.top-toggle i { display: block; height: 2px; background: currentColor; border-radius: 2px; margin-bottom: 6px; transition: transform .2s, opacity .2s; }
.top-toggle i:last-child { margin-bottom: 0; }
.top.open .top-toggle i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.top.open .top-toggle i:nth-child(2) { opacity: 0; }
.top.open .top-toggle i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 960px) {
  .top-in { padding: 0 14px; }
  .top-login { display: none; }
  .top-toggle { display: block; }
  .brand { margin-right: auto; }
  .top-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 18px 18px; background: #fff; box-shadow: 0 24px 40px -20px rgba(18,26,46,.35); max-height: calc(100vh - 60px); overflow-y: auto; }
  .top.open .top-nav { display: flex; }
  .top-nav a { padding: 13px 6px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .top-nav a[aria-current] { background: none; }
  .top-nav .sep { display: none; }
  .top-nav .m-only { display: block; }
}
@media (max-width: 520px) { .brand span { display: none; } .top-cta { height: 36px; padding: 0 14px; font-size: .8rem; } }

/* 本文の枠 */
.wrap { max-width: 1120px; padding: 0 20px; }
h2 { border-bottom-color: var(--line-strong); }
.lead { border-radius: var(--r); border-left-width: 4px; padding: 14px 18px; box-shadow: var(--shadow); border-color: var(--line); border-left-color: var(--ai); }
.calc { border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; box-shadow: var(--shadow); }
input[type=text], input[type=date], input[type=month], input[type=number], select, textarea { border-radius: 8px; padding-top: 10px; padding-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(31,58,95,.15); }
button.go { border-radius: 999px; background: var(--navy); padding: 13px; transition: transform .15s, box-shadow .15s; }
button.go:hover { filter: none; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(15,24,48,.6); }
.big { border-radius: var(--r); border-color: transparent; padding: 16px 18px; }
.note { border-radius: 8px; }
th { background: #EFECE4; }
.card, .toc, .ex { border-radius: var(--r); }
.card { padding: 16px 18px; }
.faq details { border-radius: 10px; padding: 12px 16px; }
.faq details[open] { box-shadow: var(--shadow); }
.pnote { border-radius: var(--r); border-color: transparent; }
.drop { border-radius: var(--r); }
.thumb { border-radius: 8px; }
.tool { border-radius: var(--r); padding: 16px 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* 宣伝枠 */
.ad-k { margin: 0 0 8px !important; font-size: .68rem !important; font-weight: 700; letter-spacing: .12em; color: var(--kin-bright) !important; }
.promo { border-radius: 16px; padding: 22px 20px; background: radial-gradient(420px 220px at 90% 0%, rgba(64,104,170,.35), transparent 65%), linear-gradient(160deg, #13203F, #0F1830); box-shadow: var(--shadow); }
.promo h3 { font-size: 1.08rem; line-height: 1.5; word-break: auto-phrase; }
.promo a.btn { border-radius: 999px; background: linear-gradient(180deg, #EBC25C, #DDAE3F); color: #1B1505; padding: 11px; box-shadow: 0 10px 22px -10px rgba(226,181,74,.7); transition: transform .15s; }
.promo a.btn:hover { transform: translateY(-1px); }
.inline-cta { border-radius: var(--r); border-left: 4px solid var(--kin-bright); padding: 16px 18px; box-shadow: var(--shadow); }
.inline-cta a { border-radius: 999px; background: var(--navy); padding: 10px 18px; transition: transform .15s; }
.inline-cta a:hover { filter: none; transform: translateY(-1px); }
.ic-share { margin: 8px 2px 0; font-size: .8rem; line-height: 1.7; color: var(--ink-soft); }
.ic-share button { font: inherit; color: var(--ai); background: none; border: 0; padding: 2px 0; min-height: 24px; margin-left: 4px; text-decoration: underline; cursor: pointer; }
.cta { border: 0; border-radius: 18px; padding: 30px 28px; gap: 18px; color: #fff; background: radial-gradient(600px 300px at 88% 0%, rgba(64,104,170,.35), transparent 62%), linear-gradient(160deg, #13203F, #0F1830); box-shadow: 0 2px 4px rgba(18,26,46,.05), 0 32px 64px -28px rgba(18,26,46,.45); }
.cta h2 { color: #fff; font-size: 1.36rem; line-height: 1.5; }
.cta p { color: rgba(255,255,255,.78); }
.cta p a { color: #fff; }
.cta p b { color: #fff; }
.cta a.btn { border-radius: 999px; background: linear-gradient(180deg, #EBC25C, #DDAE3F); color: #1B1505; padding: 14px 28px; box-shadow: 0 14px 30px -12px rgba(226,181,74,.75); transition: transform .15s; }
.cta a.btn:hover { transform: translateY(-2px); }

/* フッター（トップページと同じ紺） */
.site-footer { background: #0A1122; border-top: 0; color: rgba(255,255,255,.66); margin-top: 72px; padding: 60px 20px 32px; }
.ft-in { max-width: 1080px; }
.ft-brand .mark { color: #fff; font-size: 1.2rem; font-weight: 700; }
.ft-brand .mark span { color: #fff; }
.ft-brand .mark sup { color: rgba(255,255,255,.6); }
.ft-brand p a { color: #fff; }
.ft-brand .ft-oih { border: 0; align-items: center; gap: 8px; }
.ft-oih b { background: none; padding: 0; color: #fff; font-weight: 500; letter-spacing: .04em; font-size: .78rem; }
.ft-oih span { padding: 0; }
.ft-oih svg { width: 21px; height: 14px; border-radius: 2px; box-shadow: none; }
.ft-col h4 { font-family: var(--font-sans); color: #fff; letter-spacing: .14em; }
.ft-col a { color: rgba(255,255,255,.72); }
.ft-col a:hover, .ft-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft-bottom { border-top-color: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
/* フッター上段のセキュリティ（acc のログイン画面と同じ形の小さなカード3枚。見出しは折り返さない） */
.ft-sec { margin: 0 0 40px; }
.ft-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ft-sec-h span { display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; letter-spacing: .22em; color: rgba(255,255,255,.45); font-weight: 600; }
.ft-sec-h span svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ft-sec-h a { font-size: .72rem; color: rgba(255,255,255,.6); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.ft-sec-h a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft-sec ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; }
.ft-sec li { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.04); min-width: 0; }
.ft-sec li, .ft-sec li > a { display: flex; gap: 12px; align-items: center; }
.ft-sec li { padding: 12px 14px; }
.ft-sec li > a { flex: 1; min-width: 0; text-decoration: none; transition: opacity .15s; }
.ft-sec li > a:hover { opacity: .8; }
.ft-sec .bx { display: flex; width: 32px; height: 32px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ft-sec .bx .gc { width: auto; height: 16px; }
.ft-sec .bx .cf { width: auto; height: 13px; }
.ft-sec .bx .ic { width: 16px; height: 16px; fill: none; stroke: #121d33; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ft-sec li div { min-width: 0; }
.ft-sec b { display: block; color: rgba(255,255,255,.9); font-weight: 600; font-size: .76rem; line-height: 1.5; white-space: nowrap; letter-spacing: -.01em; }
.ft-sec li div span { display: block; margin-top: 1px; font-size: .7rem; line-height: 1.55; color: rgba(255,255,255,.55); }
@media (max-width: 360px) { .ft-sec b { white-space: normal; } }

/* 見出しの折り返し: 最後の行に1〜2文字だけ残さない（行の長さをそろえ、語の途中で切らない） */
h1, h2, h3, .tool b, .ti-pop b, .inline-cta .ic-t { text-wrap: balance; word-break: auto-phrase; }
