/* 不動産売却ツール集 — 共通スタイル（書類デザイン）
 *
 * 方針:
 *   角丸と影を使わず、罫線と余白で組む。査定書や契約書の質感に寄せる。
 *   既製のUIキットそのままの見た目（丸いカード・柔らかい影・ピル型ラベル）を避ける。
 *
 * 色はサイトのテーマ設定（theme_mod diver_color_custom）に合わせている。
 *   紺   #1F2E43 … ヘッダー帯・フッターと同じ濃色。合計行・選択中のタイル・フォーカス
 *   真鍮 #BB9C5E … ヘッダーCTAと同じ差し色。ラベルの下線・番号・ボタン
 * 枠線そのものは薄いグレー（#dfe3e8）。紺で囲うと強すぎる。
 *
 * すべて .ftl 配下にスコープする。配色は :root ではなく .ftl のインラインstyleで
 * 上書きする（同一ページに複数ツールを置いても互いの色が壊れない）。
 */

.ftl {
  --ftl-navy: #1F2E43;
  --ftl-navy-d: #16212f;
  --ftl-navy-l: #eef1f5;
  --ftl-brass: #BB9C5E;
  --ftl-brass-l: #f7f2e8;
  --ftl-ink: #17212e;
  --ftl-ink-2: #4a5663;
  --ftl-ink-3: #7b8794;
  --ftl-line: #dfe3e8;
  --ftl-line-2: #eef1f4;
  --ftl-rule: #c9d1d9;
  --ftl-bg: #ffffff;
  --ftl-bg-2: #fafbfc;
  --ftl-ok: #1f6b45;
  --ftl-ok-l: #eef6f1;
  --ftl-warn: #8a5a10;
  --ftl-warn-l: #fbf5e9;
  --ftl-ng: #a32620;
  --ftl-ng-l: #fbeeed;

  box-sizing: border-box;
  color: var(--ftl-ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  margin: 2em 0;
}
.ftl *, .ftl *::before, .ftl *::after { box-sizing: border-box; }
.ftl-head p, .ftl-head h2, .ftl-app p, .ftl-app ul, .ftl-app ol,
.ftl-app h2, .ftl-app h3, .ftl-app h4, .ftl-app h5, .ftl-cta p { margin: 0; }
.ftl button { font: inherit; color: inherit; }

/* ---------- 見出し・導入 ---------- */
.ftl-head { margin-bottom: 16px; }
.ftl-eyebrow {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  color: var(--ftl-brass);
  border-bottom: 2px solid var(--ftl-brass);
  padding-bottom: 2px; margin-bottom: 9px;
}
.ftl-title { font-size: 22px; font-weight: 800; line-height: 1.45; letter-spacing: .01em; }
.ftl-lead { margin-top: 7px; color: var(--ftl-ink-2); font-size: 14.5px; }

/* ---------- レイアウト ---------- */
.ftl-app {
  display: grid;
  background: var(--ftl-bg);
  border: 1px solid var(--ftl-line);
  border-radius: 2px;
}
.ftl-in { padding: 20px; border-bottom: 1px solid var(--ftl-line); }
.ftl-out-wrap { padding: 20px; background: var(--ftl-bg-2); }
@media (min-width: 900px) {
  .ftl-app { grid-template-columns: minmax(0,1fr) 340px; }
  .ftl-in { border-bottom: 0; border-right: 1px solid var(--ftl-line); padding: 24px; }
  .ftl-out-wrap { position: sticky; top: 0; align-self: start; padding: 24px; }
}

/* ---------- 入力 ---------- */
.ftl-group { border: 0; padding: 0; margin: 0 0 20px; }
.ftl-group:last-child { margin-bottom: 0; }
.ftl-group > legend {
  padding: 0; margin: 0 0 13px; font-size: 12px; font-weight: 800;
  color: var(--ftl-ink-3); letter-spacing: .1em;
  display: flex; align-items: center; gap: 10px; width: 100%;
}
.ftl-group > legend::after { content: ""; flex: 1; height: 1px; background: var(--ftl-line); }

.ftl-field { margin-bottom: 18px; }
.ftl-field:last-child { margin-bottom: 0; }
.ftl-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.ftl-label .ftl-opt { font-weight: 400; color: var(--ftl-ink-3); font-size: 12px; margin-left: 6px; }
.ftl-hint { font-size: 12.5px; color: var(--ftl-ink-3); margin-top: 6px; line-height: 1.65; }

/* 数値入力（単位は右の別枠。書類の記入欄に寄せる） */
.ftl-num { position: relative; display: flex; align-items: stretch; }
.ftl-num input {
  width: 100%; min-width: 0; -moz-appearance: textfield;
  font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums;
  text-align: right; letter-spacing: .01em;
  padding: 10px 60px 10px 13px;
  border: 1px solid var(--ftl-rule); border-radius: 2px;
  background: var(--ftl-bg); color: var(--ftl-ink);
  transition: border-color .12s, box-shadow .12s;
}
.ftl-num input::-webkit-outer-spin-button,
.ftl-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ftl-num input:hover { border-color: #aab4be; }
.ftl-num input:focus { outline: 0; border-color: var(--ftl-navy); box-shadow: inset 0 0 0 1px var(--ftl-navy); }
.ftl-unit {
  position: absolute; right: 1px; top: 1px; bottom: 1px;
  display: flex; align-items: center; padding: 0 13px;
  font-size: 12.5px; font-weight: 700; color: var(--ftl-ink-2);
  background: #f4f6f8; border-left: 1px solid var(--ftl-line);
  pointer-events: none;
}

/* スライダー */
.ftl-range { width: 100%; margin: 11px 0 2px; -webkit-appearance: none; appearance: none; background: transparent; }
.ftl-range::-webkit-slider-runnable-track { height: 3px; background: var(--ftl-rule); }
.ftl-range::-moz-range-track { height: 3px; background: var(--ftl-rule); }
.ftl-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px;
  border-radius: 0; background: var(--ftl-navy); border: 0; cursor: pointer;
}
.ftl-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 0;
  background: var(--ftl-navy); border: 0; cursor: pointer;
}
.ftl-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ftl-navy-l); }
.ftl-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ftl-ink-3); font-variant-numeric: tabular-nums; }

/* タイル選択（枠を共有した一枚の帯にする） */
.ftl-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  border: 1px solid var(--ftl-rule); border-radius: 2px; overflow: hidden;
}
.ftl-tiles.ftl-t2 { grid-template-columns: repeat(2, 1fr); }
.ftl-tiles.ftl-t1 { grid-template-columns: 1fr; }
.ftl-tile { position: relative; display: block; }
.ftl-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ftl-tile > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; min-height: 50px; padding: 8px 10px; text-align: center;
  font-size: 13.5px; font-weight: 700; line-height: 1.35;
  background: var(--ftl-bg); cursor: pointer;
  border-right: 1px solid var(--ftl-line);
  transition: background .12s, color .12s;
}
.ftl-tile:last-child > span { border-right: 0; }
.ftl-tile > span small { font-size: 11px; font-weight: 500; color: var(--ftl-ink-3); }
.ftl-tile:hover > span { background: #f4f6f8; }
.ftl-tile input:checked + span { background: var(--ftl-navy); color: #fff; }
.ftl-tile input:checked + span small { color: rgba(255,255,255,.72); }
.ftl-tile input:focus-visible + span { outline: 2px solid var(--ftl-navy); outline-offset: -2px; }

/* チェック行 */
.ftl-checks { display: grid; gap: 0; border: 1px solid var(--ftl-rule); border-radius: 2px; }
.ftl-check { position: relative; display: block; border-bottom: 1px solid var(--ftl-line); }
.ftl-check:last-child { border-bottom: 0; }
.ftl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ftl-check > span {
  display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start;
  padding: 11px 14px; background: var(--ftl-bg); cursor: pointer;
  font-size: 14px; line-height: 1.6;
  transition: background .12s;
}
.ftl-check > span::before {
  content: ""; width: 19px; height: 19px; margin-top: 2px; border-radius: 1px;
  border: 1px solid #a7b1bb; background-color: var(--ftl-bg);
  background-position: center; background-repeat: no-repeat; background-size: 13px;
  transition: border-color .12s, background-color .12s;
}
.ftl-check input:checked + span { background: var(--ftl-navy-l); }
.ftl-check input:checked + span::before {
  border-color: var(--ftl-navy); background-color: var(--ftl-navy);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-7.5'/%3E%3C/svg%3E");
}
.ftl-check:hover > span { background: #f4f6f8; }
.ftl-check input:focus-visible + span { outline: 2px solid var(--ftl-navy); outline-offset: -2px; }
.ftl-check em { display: block; font-style: normal; font-size: 12.5px; color: var(--ftl-ink-3); margin-top: 2px; }

/* 日付・セレクト */
.ftl-date input, .ftl-sel select {
  width: 100%; font-size: 15.5px; font-weight: 500; padding: 10px 13px;
  border: 1px solid var(--ftl-rule); border-radius: 2px;
  background: var(--ftl-bg); color: var(--ftl-ink);
}
.ftl-sel select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234a5663' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}
.ftl-date input:focus, .ftl-sel select:focus {
  outline: 0; border-color: var(--ftl-navy); box-shadow: inset 0 0 0 1px var(--ftl-navy);
}
.ftl-ym { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 折りたたみ */
.ftl-more { margin-top: 16px; border-top: 1px solid var(--ftl-line); padding-top: 14px; }
.ftl-more > summary {
  cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ftl-navy);
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
}
.ftl-more > summary::-webkit-details-marker { display: none; }
.ftl-more > summary::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background-color: var(--ftl-brass); transition: transform .18s;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 2.5l6 5.5-6 5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 2.5l6 5.5-6 5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ftl-more[open] > summary::before { transform: rotate(90deg); }
.ftl-more > div { padding-top: 16px; }

/* ---------- 結果 ---------- */
.ftl-out { background: transparent; }
.ftl-hl-label { font-size: 12px; font-weight: 700; color: var(--ftl-ink-2); letter-spacing: .04em; }
.ftl-hl-val {
  display: flex; align-items: baseline; gap: 2px; margin-top: 1px;
  font-weight: 800; letter-spacing: -.025em; color: var(--ftl-ink);
  font-variant-numeric: tabular-nums;
}
.ftl-hl-val b { font-size: clamp(30px, 7vw, 38px); line-height: 1.12; font-weight: 800; }
.ftl-hl-val i { font-style: normal; font-size: 16px; font-weight: 700; }
.ftl-hl-sub { font-size: 12px; color: var(--ftl-ink-3); margin-top: 3px; }

/* 内訳の帯 */
.ftl-bar { display: flex; height: 8px; margin: 16px 0 10px; background: var(--ftl-line-2); }
.ftl-bar i { display: block; height: 100%; min-width: 2px; transition: width .3s ease; }
.ftl-legend { display: grid; gap: 4px; font-size: 12.5px; }
.ftl-legend div { display: flex; align-items: center; gap: 7px; color: var(--ftl-ink-2); }
.ftl-legend b { width: 8px; height: 8px; flex: none; }
.ftl-legend span { margin-left: auto; font-weight: 700; color: var(--ftl-ink); font-variant-numeric: tabular-nums; }

/* 明細（伝票の行） */
.ftl-rows { margin-top: 16px; }
.ftl-row {
  display: flex; align-items: baseline; gap: 10px; padding: 7px 0;
  border-bottom: 1px dotted var(--ftl-rule); font-size: 13.5px;
}
.ftl-row > span:first-child { color: var(--ftl-ink-2); }
.ftl-row > span:last-child { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ftl-row.is-minus > span:last-child { color: var(--ftl-ng); }
.ftl-row.is-total {
  border-bottom: 0; border-top: 2px solid var(--ftl-navy); margin-top: 3px;
  padding-top: 11px; font-size: 15px; font-weight: 800;
}
.ftl-row.is-total > span:first-child { color: var(--ftl-ink); }
.ftl-row.is-total > span:last-child { font-size: 17px; }
.ftl-row.is-sub { font-size: 12px; padding: 4px 0 4px 14px; border-bottom: 0; color: var(--ftl-ink-3); }
.ftl-row.is-sub > span:last-child { font-weight: 500; color: var(--ftl-ink-3); }

/* 判定 */
.ftl-verdict { padding: 14px 16px; border: 1px solid; border-left-width: 4px; border-radius: 2px; }
.ftl-verdict.lv-ok { background: var(--ftl-ok-l); border-color: #bcd9c8; border-left-color: var(--ftl-ok); }
.ftl-verdict.lv-warn { background: var(--ftl-warn-l); border-color: #e3cfa4; border-left-color: var(--ftl-warn); }
.ftl-verdict.lv-ng { background: var(--ftl-ng-l); border-color: #e6bcb9; border-left-color: var(--ftl-ng); }
.ftl-verdict.lv-info { background: var(--ftl-bg); border-color: var(--ftl-line); border-left-color: var(--ftl-navy); }
.ftl-verdict h4 { font-size: 16px; font-weight: 800; line-height: 1.5; }
.ftl-verdict.lv-ok h4 { color: var(--ftl-ok); }
.ftl-verdict.lv-warn h4 { color: var(--ftl-warn); }
.ftl-verdict.lv-ng h4 { color: var(--ftl-ng); }
.ftl-verdict.lv-info h4 { color: var(--ftl-ink); }
.ftl-verdict p { font-size: 13.5px; margin-top: 6px; color: var(--ftl-ink-2); }
.ftl-score { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.ftl-score b { font-size: 32px; font-weight: 800; line-height: 1; }
.ftl-score i { font-style: normal; font-size: 13px; color: var(--ftl-ink-3); }

/* 指摘 */
.ftl-flags { display: grid; gap: 10px; margin-top: 16px; }
.ftl-flag {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
  font-size: 13px; line-height: 1.7; color: var(--ftl-ink-2);
}
.ftl-flag::before { content: ""; width: 15px; height: 15px; margin-top: 4px; background-position: center; background-repeat: no-repeat; background-size: 11px; }
.ftl-flag.lv-ok::before { background-color: var(--ftl-ok); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-7.5'/%3E%3C/svg%3E"); }
.ftl-flag.lv-warn::before { background-color: var(--ftl-warn); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M7 3h2v6H7zM7 11h2v2H7z'/%3E%3C/svg%3E"); }
.ftl-flag.lv-ng::before { background-color: var(--ftl-ng); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E"); }
.ftl-flag.lv-info::before { background-color: var(--ftl-navy); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M7 6h2v7H7zM7 3h2v2H7z'/%3E%3C/svg%3E"); }
.ftl-flag b { color: var(--ftl-ink); font-weight: 800; }

/* チェックリスト */
.ftl-list { margin-top: 14px; display: grid; gap: 18px; }
.ftl-list h5 {
  font-size: 12px; font-weight: 800; color: var(--ftl-ink); letter-spacing: .06em;
  margin: 0 0 8px; padding-bottom: 5px; border-bottom: 2px solid var(--ftl-brass);
}
.ftl-list ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.ftl-list li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; font-size: 13.5px; line-height: 1.65; }
.ftl-list li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border: 1px solid #9aa4ae; background: var(--ftl-bg); }
.ftl-list li em { display: block; font-style: normal; font-size: 12px; color: var(--ftl-ink-3); }

/* 早見表 */
.ftl-table { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ftl-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ftl-table th, .ftl-table td { padding: 7px 12px; text-align: right; border-bottom: 1px solid var(--ftl-line); white-space: nowrap; }
.ftl-table th { background: #f4f6f8; font-weight: 700; color: var(--ftl-ink-2); font-size: 12px; border-bottom: 1px solid var(--ftl-rule); }
.ftl-table th:first-child, .ftl-table td:first-child { text-align: left; }
.ftl-table tbody tr.is-hit { background: var(--ftl-navy-l); }
.ftl-table tbody tr.is-hit td { font-weight: 800; color: var(--ftl-navy); }

/* 注記 */
.ftl-notes { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--ftl-line); }
.ftl-notes ul { padding: 0; margin: 0; }
.ftl-notes li { font-size: 12px; color: var(--ftl-ink-3); line-height: 1.7; margin-bottom: 5px; padding-left: 14px; position: relative; list-style: none; }
.ftl-notes li::before { content: "※"; position: absolute; left: 0; }

/* 操作 */
.ftl-actions { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px; border: 1px solid var(--ftl-rule); border-radius: 2px; }
.ftl-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; font-size: 13px; font-weight: 700;
  border: 0; border-right: 1px solid var(--ftl-line);
  background: var(--ftl-bg); color: var(--ftl-ink-2); cursor: pointer;
  transition: background .12s, color .12s;
}
.ftl-btn:last-child { border-right: 0; }
.ftl-btn:hover { background: #f4f6f8; color: var(--ftl-navy); }
.ftl-btn:focus-visible { outline: 2px solid var(--ftl-navy); outline-offset: -2px; }
.ftl-btn.is-done { background: var(--ftl-ok-l); color: var(--ftl-ok); }

/* CTA（サイトのヘッダーCTAと同じ真鍮・角丸2px） */
.ftl-cta {
  display: block; margin-top: 18px; padding: 14px 20px; text-align: center;
  background: var(--ftl-brass); color: #fff !important; text-decoration: none !important;
  border-radius: 2px; font-weight: 800; font-size: 15px; line-height: 1.5;
  transition: background .12s;
}
.ftl-cta:hover { background: #a98a4d; }
.ftl-cta small { display: block; font-size: 12px; font-weight: 500; opacity: .9; margin-top: 3px; }

/* 解説 */
.ftl-desc { margin-top: 28px; }

.ftl-desc ul { padding-left: 1.3em; margin-bottom: 11px; }
.ftl-desc li { margin-bottom: 5px; }
.ftl-desc strong { font-weight: 800; color: var(--ftl-ink); }
.ftl-desc table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-variant-numeric: tabular-nums; }
.ftl-desc th, .ftl-desc td { padding: 9px 12px; border: 1px solid var(--ftl-line); text-align: left; vertical-align: top; }
.ftl-desc thead th { background: #f4f6f8; font-weight: 700; }
.ftl-desc td + td, .ftl-desc th + th { text-align: right; }
.ftl-src { margin-top: 18px; font-size: 12.5px; color: var(--ftl-ink-3); }
.ftl-src a { color: var(--ftl-ink-2); }

/* ---------- ツール一覧（カード全体がボタン） ---------- */
.ftl-index { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ftl-index.is-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .ftl-index.is-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .ftl-index.is-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
/* style="row" … 説明を出さず1行ずつ詰める。記事の途中やサイドバー向け */
.ftl-index.is-row { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--ftl-line); }
.ftl-index.is-row .ftl-card {
  border: 0; border-bottom: 1px solid var(--ftl-line); padding: 12px 40px 12px 15px;
}
.ftl-index.is-row .ftl-card:last-child { border-bottom: 0; }
.ftl-index.is-row .ftl-card b { font-size: 14.5px; margin-bottom: 0; }
.ftl-index.is-row .ftl-card:hover { box-shadow: none; }
.ftl-card {
  position: relative; display: block;
  padding: 16px 40px 16px 18px;
  text-decoration: none !important; color: inherit !important;
  border: 1px solid var(--ftl-line); border-radius: 2px; background: var(--ftl-bg);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .08s;
}
.ftl-card::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px;
  margin-top: -5px; border-right: 2px solid var(--ftl-brass); border-top: 2px solid var(--ftl-brass);
  transform: rotate(45deg); transition: transform .14s, border-color .12s;
}
.ftl-card b { display: block; font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.ftl-card span { font-size: 12.5px; color: var(--ftl-ink-3); line-height: 1.65; }
.ftl-card:hover {
  background: var(--ftl-navy-l); border-color: var(--ftl-navy);
  box-shadow: inset 0 0 0 1px var(--ftl-navy);
}
.ftl-card:hover::after { transform: rotate(45deg) translate(2px, -2px); border-color: var(--ftl-navy); }
.ftl-card:active { transform: translateY(1px); }
.ftl-card:focus-visible { outline: 2px solid var(--ftl-navy); outline-offset: 2px; }

/* noscript */
.ftl-noscript {
  padding: 13px 16px; background: var(--ftl-warn-l);
  border: 1px solid #e3cfa4; border-left: 4px solid var(--ftl-warn);
  border-radius: 2px; font-size: 14px; color: var(--ftl-warn);
}

/* 動きを減らす設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .ftl *, .ftl *::before, .ftl *::after { transition: none !important; animation: none !important; }
}

/* 印刷 */
@media print {
  .ftl-actions, .ftl-cta, .ftl-range, .ftl-scale { display: none !important; }
  .ftl-app { grid-template-columns: 1fr !important; border-color: #999; page-break-inside: avoid; }
  .ftl-out-wrap { position: static !important; background: #fff; }
  .ftl-in { border-right: 0 !important; border-bottom: 1px solid #ccc; }
  .ftl-list li::before { border-color: #666; }
}
