/* 自動生成：scripts/build-comparison.py（元：prototypes/comparison-restructure-20261018/ の cards.css・figure.css・comparison.css）。直接編集しない。 */
/* 本文の色（公開中の本文では style 属性に持っていたもの） */
.fh-five-root.fh-cmp-v1{--accent:#1654a4}
/* 自動生成：build.py が ../home-restructure-20261018/style.css のボタン・矢印・会社カード・開閉欄の印を切り出し、.fh-cmp の中に限定したもの。直接編集しない。 */
.fh-cmp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fh-cmp .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 9px; font: inherit; font-weight: 700; line-height: 1.5; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.fh-cmp .button.primary { background: var(--teal); color: #fff; box-shadow: 0 3px 0 #0f5650; }
.fh-cmp .button.primary:hover { background: #136a63; }
.fh-cmp .button.secondary { background: #fff; color: var(--teal); border-color: var(--teal); }
.fh-cmp .button.official { background: #fff4ee; color: #8a3b22; border-color: var(--coral); }
.fh-cmp .button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.fh-cmp .textlink, .fh-cmp .more a, .fh-cmp .next a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.fh-cmp .textbutton { font: inherit; font-size: 15px; background: none; border: 0; color: var(--green); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.fh-cmp .ar { display: inline-block; flex: none; width: .62em; height: .62em; position: relative; vertical-align: .05em; margin-left: .35em; }
.fh-cmp .ar::before { content: ""; position: absolute; inset: 0; background: currentColor; }
.fh-cmp .ar-right::before { clip-path: polygon(15% 0, 100% 50%, 15% 100%); }
.fh-cmp .ar-left::before { clip-path: polygon(85% 0, 0 50%, 85% 100%); }
.fh-cmp .ar-down::before { clip-path: polygon(0 15%, 100% 15%, 50% 100%); }
.fh-cmp .ar-up::before { clip-path: polygon(0 85%, 100% 85%, 50% 0); }
.fh-cmp .ar-ext { width: .9em; height: .9em; border: .1em solid currentColor; border-radius: .15em; }
.fh-cmp .ar-ext::before { inset: 22% 18% 22% 26%; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.fh-cmp .button .ar { margin-left: 0; }
@media (forced-colors: active) {
.fh-cmp .ar::before { background: CanvasText; border-color: CanvasText; }
}
.fh-cmp .listhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 32px; }
.fh-cmp .listhead h3 { margin: 0; }
.fh-cmp .listhead .order { margin: 0; font-size: 15px; color: var(--muted); }
.fh-cmp .companies { display: grid; gap: 20px; margin-top: 16px; }
.fh-cmp .company { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 14px; }
.fh-cmp .company .match { margin: 0 0 10px; padding: 6px 12px; border-radius: 6px; background: var(--mint); color: var(--green); font-weight: 700; font-size: 15px; line-height: 1.6; }
.fh-cmp .company .match.ng { background: #fbefea; color: #8a3b22; }
.fh-cmp .cohead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fh-cmp .cohead h3 { margin: 0; font-size: 22px; line-height: 1.4; }
.fh-cmp .cohead .kana { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.fh-cmp .compare-add { font: inherit; font-size: 14px; white-space: nowrap; min-height: 40px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; }
.fh-cmp .compare-add[aria-pressed="true"] { background: var(--teal); color: #fff; }
.fh-cmp .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.fh-cmp .chip { display: inline-block; padding: 2px 10px; border-radius: 4px; background: #f1f5f3; border: 1px solid #dbe6e0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.fh-cmp .chip.method { background: #fff; }
.fh-cmp .groups { display: grid; gap: 8px; margin-top: 10px; }
.fh-cmp .grp { border: 1px solid #e0e9e4; border-radius: 10px; overflow: hidden; }
.fh-cmp .grp h4 { margin: 0; padding: 3px 10px; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--mint); border-left: 4px solid var(--teal); }
.fh-cmp .kv { margin: 0; }
.fh-cmp .kv > div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); border-top: 1px solid #edf2ef; }
.fh-cmp .kv > div:first-child { border-top: 0; }
.fh-cmp .kv dt { padding: 5px 4px 5px 10px; font-size: 13px; font-weight: 700; color: var(--muted); background: #fafcfb; line-height: 1.6; }
.fh-cmp .kv dd { margin: 0; padding: 5px 10px; font-size: 16px; line-height: 1.6; }
.fh-cmp .kv .v { font-weight: 700; color: var(--ink); }
.fh-cmp .kv .note { color: #4b5f63; font-size: 14px; }
@media (min-width: 901px) {
.fh-cmp .groups { grid-template-columns: 1fr 1fr; }
.fh-cmp .grp-payment, .fh-cmp .grp-docs, .fh-cmp .grp-notice, .fh-cmp .grp-meeting { grid-column: 1 / -1; }
}
.fh-cmp .docs-all { margin: 4px 0 0; border-top: 1px solid #e3ebe7; }
.fh-cmp .docs-all > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--green); }
.fh-cmp .docs-all ul { margin: 0 0 8px; padding-left: 1.2em; font-size: 15px; }
.fh-cmp .coactions { display: grid; gap: 4px; margin-top: 12px; }
.fh-cmp .coactions .button { width: 100%; }
.fh-cmp .unmatched .companies.inner { margin-bottom: 16px; }
.fh-cmp .docs-all > summary, .fh-cmp .sequence > summary, .fh-cmp .faq > summary, .fh-cmp .sources > summary, .fh-cmp .unmatched > summary { list-style: none; }
.fh-cmp .docs-all > summary::-webkit-details-marker, .fh-cmp .sequence > summary::-webkit-details-marker, .fh-cmp .faq > summary::-webkit-details-marker, .fh-cmp .sources > summary::-webkit-details-marker, .fh-cmp .unmatched > summary::-webkit-details-marker { display: none; }
.fh-cmp .docs-all > summary::before, .fh-cmp .sequence > summary::before, .fh-cmp .faq > summary::before, .fh-cmp .sources > summary::before, .fh-cmp .unmatched > summary::before { content: "▶"; font-size: .75em; margin-right: .5em; }
.fh-cmp .docs-all[open] > summary::before, .fh-cmp .sequence[open] > summary::before, .fh-cmp .faq[open] > summary::before, .fh-cmp .sources[open] > summary::before, .fh-cmp .unmatched[open] > summary::before { content: "▼"; }

/* 自動生成：build.py の figure_css()。直接編集しない */
.fh-cmp .ratefig .x0{left:0.000%}
.fh-cmp .ratefig .x1{left:8.333%}
.fh-cmp .ratefig .x2{left:16.667%}
.fh-cmp .ratefig .x3{left:25.000%}
.fh-cmp .ratefig .x4{left:33.333%}
.fh-cmp .ratefig .x5{left:41.667%}
.fh-cmp .ratefig .x6{left:50.000%}
.fh-cmp .ratefig .x7{left:58.333%}
.fh-cmp .ratefig .x8{left:66.667%}
.fh-cmp .ratefig .x9{left:75.000%}
.fh-cmp .ratefig .x10{left:83.333%}
.fh-cmp .ratefig .x11{left:91.667%}
.fh-cmp .ratefig .x12{left:100.000%}
.fh-cmp .ratefig .w1{width:8.333%}
.fh-cmp .ratefig .w2{width:16.667%}
.fh-cmp .ratefig .w3{width:25.000%}
.fh-cmp .ratefig .w4{width:33.333%}
.fh-cmp .ratefig .w5{width:41.667%}
.fh-cmp .ratefig .w6{width:50.000%}
.fh-cmp .ratefig .w7{width:58.333%}
.fh-cmp .ratefig .w8{width:66.667%}
.fh-cmp .ratefig .w9{width:75.000%}
.fh-cmp .ratefig .w10{width:83.333%}
.fh-cmp .ratefig .w11{width:91.667%}
.fh-cmp .ratefig .w12{width:100.000%}
.fh-cmp .ratefig .m.open{right:0}

/* 比較ページの試作だけのCSS。公開中の記事のCSS（fh-five-refresh）の上に重ねる。 */

/* 会社カードの部品（cards.css）が使う色。トップと同じ部品を、この記事の色（--accent #1654a4）で使う */
.fh-cmp {
  --ink: #122947;
  --text: #26343d;
  --teal: #1654a4;
  --green: #1654a4;
  --mint: #eaf1fa;
  --line: #d2dce1;
  --muted: #586771;
  --coral: #e6a087;
}


/* 目次の見出しは見出し要素にしない（テーマの自動目次に混ざらないように） */
.fh-cmp .toc-pc .toc-head { font-size: 18px; font-weight: 800; color: #122947; margin: 0 0 18px; }

.fh-cmp .order { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.fh-cmp .companies { display: grid; gap: 24px; margin-top: 12px; }
.fh-cmp .company h3 { margin: 0; font-size: 22px; }
.fh-cmp .grp h4 { margin: 0; }
.fh-cmp .kv dd, .fh-cmp .kv dt { margin: 0; }
/* 記事のCSSの .note（注意書きの箱）がカードの説明に当たらないようにする */
.fh-cmp .kv .note { display: inline; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.fh-cmp .docs-all ul { margin-top: 0; }
.fh-cmp .coactions .button { font-size: 17px; }
/* サイト共通の追加CSSの .fh-official-link（白い文字・濃い背景、!important）を、カードの公式サイトのボタンでは上書きする */
.fh-cmp .button.official.fh-official-link { color: #8a3b22 !important; background: #fff4ee; border: 1px solid var(--coral); min-height: 52px; padding: 12px 22px; border-radius: 9px; font-size: 17px; }
.fh-cmp .button.official.fh-official-link:hover { background: #fde9df; border-color: var(--coral); }
.fh-cmp .company p.chips { margin: 8px 0 0; }

/* 早見表：会社名の列を左に固定し、ほかの列を左右に動かして見る */
.fh-cmp .scrollhint { display: none; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.fh-cmp .quickwrap { overflow-x: auto; margin: 8px 0 0; border: 1px solid #d2dce1; border-radius: 8px; background: #fff; }
.fh-cmp .quickwrap:focus-visible { outline: 3px solid #bf6500; outline-offset: 3px; }
.fh-cmp table.quick { margin: 0; width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.6; }
.fh-cmp .quick th, .fh-cmp .quick td { padding: 10px 10px; border: 0; border-bottom: 1px solid #e1e8ec; border-right: 1px solid #edf1f3; vertical-align: top; }
.fh-cmp .quick thead th { background: #f0f5f8; color: #123247; font-size: 14px; white-space: nowrap; }
.fh-cmp .quick thead th small { display: block; font-weight: 400; font-size: 12px; }
.fh-cmp .quick tbody tr:last-child th, .fh-cmp .quick tbody tr:last-child td { border-bottom: 0; }
.fh-cmp .quick tbody th { background: #fff; width: 12.5em; }
.fh-cmp .quick tbody th a { font-weight: 800; font-size: 16px; }
.fh-cmp .quick .qkana { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.fh-cmp .qchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fh-cmp .qchip { display: inline-block; padding: 0 5px; word-break: keep-all; overflow-wrap: anywhere; border: 1px solid #dbe3ea; border-radius: 4px; background: #f4f7fa; font-size: 12px; font-weight: 400; line-height: 1.6; color: #122947; }
.fh-cmp .qline { display: block; }
.fh-cmp .qline + .qline { margin-top: 2px; }
.fh-cmp .qline b { font-weight: 700; color: #122947; }
.fh-cmp .qline small { font-size: 13px; color: #4b5f63; }
.fh-cmp .quick thead th:first-child, .fh-cmp .quick tbody th { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 #d2dce1; }
.fh-cmp .tablenote { font-size: 16px; color: #586771; margin: 10px 0 0; }

/* 図1：料率の表示の違い */
.fh-cmp .ratefig {
  --c-flat: #c4572f; --c-range: #00897b; --c-floor: #3b63d6; --c-avg: #a06c00;
  margin: 32px 0 8px; padding: 20px 18px 14px; border: 1px solid #d2dce1; border-radius: 12px; background: #fff;
}
.fh-cmp .ratefig-title { margin: 0; font-size: 22px; font-weight: 800; color: #122947; line-height: 1.5; }
.fh-cmp .ratefig-point { margin: 6px 0 14px; font-size: 16px; line-height: 1.75; }
.fh-cmp .ratefig .raxis, .fh-cmp .ratefig li { display: grid; grid-template-columns: 8.5em 8em minmax(0, 1fr); align-items: center; gap: 0 10px; }
.fh-cmp .ratefig .ticks { position: relative; height: 22px; font-size: 12px; color: var(--muted); }
.fh-cmp .ratefig .ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.fh-cmp .ratefig .ticks span:first-child { transform: none; }
.fh-cmp .ratefig .ticks span:last-child { transform: translateX(-100%); }
.fh-cmp .rgroup { border-top: 1px solid #e3e9ee; padding: 8px 0 6px; }
.fh-cmp .rlabel { margin: 0 0 4px; font-size: 14px; line-height: 1.6; color: #3f5058; }
.fh-cmp .rlabel b { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 4px; color: #fff; font-size: 14px; }
.fh-cmp .rg-flat .rlabel b { background: var(--c-flat); }
.fh-cmp .rg-range .rlabel b { background: var(--c-range); }
.fh-cmp .rg-floor .rlabel b { background: var(--c-floor); }
.fh-cmp .rg-avg .rlabel b { background: var(--c-avg); }
.fh-cmp .ratefig ul { list-style: none; margin: 0; padding: 0; }
.fh-cmp .ratefig li { min-height: 34px; }
.fh-cmp .ratefig .rn { font-weight: 700; color: #122947; font-size: 15px; }
.fh-cmp .ratefig .rv { font-weight: 800; color: #122947; font-size: 15px; white-space: nowrap; }
.fh-cmp .plot { position: relative; height: 24px; background: linear-gradient(#e3e9ee, #e3e9ee) 0 50% / 100% 1px no-repeat; }
.fh-cmp .plot .ten { position: absolute; top: -6px; bottom: -6px; left: 83.333%; border-left: 2px dotted #7c8a92; }
.fh-cmp .plot .m { position: absolute; top: 6px; height: 12px; border-radius: 4px; }
.fh-cmp .rg-flat .m.dot { width: 16px; height: 16px; top: 4px; margin-left: -8px; border-radius: 50%; background: var(--c-flat); box-shadow: 0 0 0 2px #fff; }
.fh-cmp .rg-range .m.bar { background: var(--c-range); }
.fh-cmp .rg-avg .m.bar { background: repeating-linear-gradient(135deg, var(--c-avg) 0 5px, #e8c66f 5px 9px); }
.fh-cmp .rg-floor .m.open { background: linear-gradient(90deg, var(--c-floor) 0 40%, rgba(59, 99, 214, .12)); border-radius: 4px 0 0 4px; }
.fh-cmp .rg-floor .m.open::before { content: ""; position: absolute; left: 0; top: -3px; bottom: -3px; width: 4px; border-radius: 2px; background: var(--c-floor); }
.fh-cmp .ratefig .rv small { position: relative; z-index: 1; display: block; background: #fff; padding-left: 4px; font-size: 12px; font-weight: 400; color: #4b5f63; text-align: right; line-height: 1.4; }
.fh-cmp .ratefig figcaption { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: #5d6b72; text-align: left; }
@media (forced-colors: active) {
  .fh-cmp .plot .m, .fh-cmp .rlabel b { forced-color-adjust: none; }
}

.fh-cmp .button.primary { box-shadow: 0 3px 0 #0e3c78; }
.fh-cmp .button.primary:hover { background: #124a92; }
.fh-cmp .nextbtn .button { width: 100%; max-width: 520px; font-size: 18px; }
.fh-cmp .nextbtn .lbl { min-width: 0; }
.fh-cmp .nextbtn .nw { display: inline-block; }
.fh-cmp .sources { margin-top: 20px; font-size: 15px; }
.fh-cmp .sources ul { padding-left: 1.2em; }
.fh-cmp .sources li { margin: 6px 0; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .fh-cmp .scrollhint { display: block; }
  .fh-cmp .quick tbody th { width: 10.4em; min-width: 10.4em; }
  .fh-cmp table.quick { min-width: 860px; }
  .fh-cmp .quick th, .fh-cmp .quick td { padding: 8px 8px; }
  .fh-cmp .ratefig { padding: 16px 12px 12px; }
  .fh-cmp .ratefig-title { font-size: 20px; }
  .fh-cmp .ratefig .raxis, .fh-cmp .ratefig li { grid-template-columns: minmax(0, 1fr) auto; }
  .fh-cmp .ratefig .raxis .rn, .fh-cmp .ratefig .raxis .rv { display: none; }
  .fh-cmp .ratefig .ticks, .fh-cmp .ratefig .plot { grid-column: 1 / -1; }
  .fh-cmp .ratefig li { min-height: 0; padding: 2px 0 4px; }
}

/* 金額の行：「下限」「上限」は値と見分けられるよう細く薄くする */
.fh-cmp .kv .lbl { font-weight: 400; font-size: 14px; color: var(--muted); }
.fh-cmp .kv .sep { margin: 0 4px; color: var(--muted); font-weight: 400; }

/* 区画7：契約の判断と二重売却の注意。見出しの中身と分けるため枠で囲む */
.fh-cmp p.caution { margin: 16px 0 8px; padding: 12px 16px; border: 1px solid #e3d2a0; border-left: 4px solid #a06c00; border-radius: 8px; background: #fffaeb; }
@media (max-width: 700px) {
  /* 早見表：金額の列を狭め、手数料の列が最初の画面に入るようにする */
  .fh-cmp table.quick { min-width: 780px; }
  .fh-cmp .quick td:nth-child(2) { width: 6.5em; }
}
@media (max-width: 700px) {
  /* カードのボタンを1行に収めて縦を詰める */
  .fh-cmp .coactions .button, .fh-cmp .button.official.fh-official-link { font-size: 15px; padding: 10px 12px; gap: 6px; min-height: 48px; }
  /* 早見表：会社名の列を少し狭め、手数料の列の全体が最初の画面に入るようにする */
  .fh-cmp .quick tbody th { width: 9.2em; min-width: 9.2em; }
  .fh-cmp .quick th, .fh-cmp .quick td { padding: 8px 6px; }
  /* 図1：グループの札と説明を同じ行に収める */
  .fh-cmp .rlabel { font-size: 13px; }
  .fh-cmp .rlabel b { margin-right: 6px; padding: 0 6px; font-size: 13px; }
}
@media (max-width: 700px) {
  .fh-cmp .quick td:nth-child(2) { width: 5.4em; }
}
@media (max-width: 700px) {
  .fh-cmp .quick thead th:nth-child(2) { white-space: normal; }
}
@media (max-width: 700px) {
  .fh-cmp .quick thead th:nth-child(2) { word-break: keep-all; }
}
@media (max-width: 700px) {
  .fh-cmp .quick thead th:nth-child(2) small { word-break: normal; }
}
/* 早見表の金額は数字と単位の間で改行させない。金額の列は約90pxに戻す（手数料の列の右端は少し隠れてもよい） */
.fh-cmp .quick .nw { white-space: nowrap; }
@media (max-width: 700px) {
  .fh-cmp .quick td:nth-child(2) { width: 6.2em; }
}
/* 早見表の見出し「申込める／金額」：語の切れ目で折り返す（<wbr> は保存フィルターで削られるため、ここで指定） */
.fh-cmp .quick .ib { display: inline-block; }
