/* ============================================================
   ストプラ／不動産経営会議 — 画面共通スタイル（Laravel側）
   確定デザイン（2026-08-27決定・08-29改訂）と同じデザインシステム。
   白基調 + ネイビー単色。ゴールドなし。写真はネイビーのダブルトーン。
   Figma: https://www.figma.com/design/Wjab3HacLONMPN0fbtAB67
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.kg-body {
  margin: 0;
  background: #fbfaf8;
  color: #17263c;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---------- デザインシステム（.mk 配下） ---------- */
.mk {
  container-type: inline-size;
  background: #fbfaf8;
  color: #17263c;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.mk > main { flex: 1 0 auto; }
.mk a { text-decoration: none; color: inherit; }
.mk ul { list-style: none; margin: 0; padding: 0; }
.mk p { margin: 0; }
.mk button { font-family: inherit; }

/* --- header --- */
.mk-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 2cqw;
  padding: 1.9cqw 3.2cqw; border-bottom: 1px solid rgba(23,38,60,.15); background: #fff;
}
.mk-brand { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(16.5px, 1.87cqw, 24px); letter-spacing: .16em; line-height: 1.3; }
.mk-brand small { display: block; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500; font-size: clamp(12px, 1.07cqw, 13px); letter-spacing: .22em; color: #5c6b83; margin-top: .35cqw; }
/* 2026-11-25 ストプラ様の公式サイト（stopla.co.jp）と同じ「Stopla.」の文字ロゴ */
.mk-brand--stopla b { display: block; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 700; font-size: clamp(21px, 2.2cqw, 27px); letter-spacing: .02em; line-height: 1.12; color: #051C2C; }
.mk-brand--stopla b i { font-style: normal; color: #2251FF; }
.mk-brand--stopla small { letter-spacing: .08em; white-space: nowrap; font-size: clamp(10.5px, .95cqw, 12px); }
.mk-foot .b--stopla { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 700; letter-spacing: .02em; font-size: clamp(18px, 1.9cqw, 24px); }
.mk-foot .b--stopla i { font-style: normal; color: #7FA0FF; }
@media (max-width: 767px) { .mk-nav .mk-brand--stopla b { font-size: 19px; } .mk-nav .mk-brand--stopla small { letter-spacing: .1em; } }
.mk-nav nav ul { display: flex; gap: 2.2cqw; }
.mk-nav nav li { font-size: clamp(14.5px, 1.3cqw, 17px); color: #43536b; }
.mk-nav nav li a:hover, .mk-nav nav li a[aria-current="page"] { color: #17263c; border-bottom: 1px solid #17263c; }
.mk-nav .mk-navr { display: flex; align-items: center; gap: 1.4cqw; }
.mk-nav .mk-login { font-size: clamp(14.5px, 1.3cqw, 17px); color: #17263c; background: none; border: 0; padding: 0; cursor: pointer; }

/* --- buttons: ネイビー単色 --- */
.mk-btn {
  position: relative; overflow: hidden; display: inline-block; cursor: pointer;
  background: #17263c; color: #fbfaf8; border: 1px solid #17263c;
  font-size: clamp(14.5px, 1.43cqw, 18px); font-weight: 700; letter-spacing: .04em; line-height: 1.6;
  padding: 1.05cqw 2.4cqw; border-radius: 2px; white-space: nowrap; text-align: center;
}
.mk-btn::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: #0e1a2c;
  transition: height .22s cubic-bezier(.22,1,.36,1); z-index: 0;
}
.mk-btn:hover::after { height: 100%; }
.mk-btn span { position: relative; z-index: 1; }
.mk-btn--ghost { background: transparent; }
.mk-btn--ghost::after { background: #17263c; }
.mk a.mk-btn, .mk .mk-btn, .mk button.mk-btn { color: #fbfaf8; }
.mk a.mk-btn--ghost, .mk .mk-btn--ghost, .mk button.mk-btn--ghost { color: #17263c; }
.mk .mk-btn--ghost:hover span { color: #fbfaf8; }
.mk-btn--sm { padding: .8cqw 1.8cqw; font-size: clamp(13px, 1.23cqw, 15.5px); }
.mk-btn--block { display: block; width: 100%; }
.mk-btn:disabled { opacity: .55; cursor: wait; }
.mk-btn:focus-visible { outline: 2px solid #17263c; outline-offset: 3px; }

/* --- type --- */
.mk-eyebrow { font-size: clamp(12px, 1.14cqw, 14.5px); font-weight: 700; letter-spacing: .26em; color: #5c6b83; }
.mk-h1 { font-family: "Shippori Mincho B1", serif; font-weight: 800; letter-spacing: .05em; margin: 0; }
.mk-h2 { font-family: "Shippori Mincho B1", serif; font-weight: 700; font-size: clamp(21px, 2.31cqw, 33px); letter-spacing: .07em; line-height: 1.5; margin: 0; }
.mk-h3 { font-family: "Shippori Mincho B1", serif; font-weight: 700; font-size: clamp(16.5px, 1.65cqw, 23px); letter-spacing: .06em; margin: 0; }
.mk-lead { font-size: clamp(15.5px, 1.4cqw, 18px); line-height: 2; color: #43536b; margin: 0; }
.mk-note { font-size: clamp(13px, 1.17cqw, 15px); color: #6b7788; letter-spacing: .03em; line-height: 1.8; }
.mk-num { font-variant-numeric: tabular-nums; }
.mk-link { color: #17263c; text-decoration: underline; text-underline-offset: .2em; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* --- 写真：ネイビーのダブルトーンで統一 --- */
.mk-photo { position: relative; overflow: hidden; background: #17263c; margin: 0; }
.mk-photo svg, .mk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-photo figcaption {
  position: absolute; left: 1.4cqw; bottom: 1.1cqw;
  font-size: clamp(12px, 1.09cqw, 13.5px); letter-spacing: .14em; color: rgba(251,250,248,.72);
}

/* --- cards / rules --- */
.mk-card { background: #fff; border: 1px solid rgba(23,38,60,.15); padding: 2cqw 2.2cqw; }
.mk-card + .mk-card { margin-top: 1.6cqw; }
.mk-rule { height: 1px; background: rgba(23,38,60,.15); }

/* --- forms（実フォーム用） --- */
.mk-field { display: block; margin-bottom: 1.5cqw; min-width: 0; }
.mk-field .lb { display: block; font-size: clamp(14.5px, 1.23cqw, 15.5px); font-weight: 700; margin-bottom: .6cqw; }
.mk-field .lb i { font-style: normal; color: #8c3a32; margin-left: .4em; font-weight: 700; }
.mk-field .lb em { font-style: normal; color: #6b7788; margin-left: .4em; font-weight: 500; }
.mk-field .help { display: block; font-size: clamp(13px, 1.17cqw, 15px); color: #6b7788; margin: -.3cqw 0 .6cqw; }
.mk-input {
  display: block; width: 100%;
  border: 1px solid rgba(23,38,60,.28); background: #fff; border-radius: 0;
  padding: .95cqw 1.2cqw; font: inherit; font-size: clamp(17px, 1.3cqw, 18px); color: #17263c; min-height: 44px;
  -webkit-appearance: none; appearance: none;
}
.mk-input::placeholder { color: #9aa5b4; }
.mk-input:focus { outline: 2px solid #17263c; outline-offset: -1px; }
.mk-input.is-invalid { border-color: #8c3a32; }
select.mk-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317263c' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1cqw center; padding-right: 2.8cqw;
}
.mk-input-wrap { display: flex; align-items: stretch; }
/* 円の欄の読み（3,000万円）。2026-11-25 */
.mk-yen-read { display: block; min-height: 1.5em; margin-top: 4px; font-size: 13px; color: #5b6577; font-variant-numeric: tabular-nums; }
.mk-input-wrap .mk-input { flex: 1 1 auto; min-width: 0; border-right: 0; }
.mk-input-wrap .unit {
  display: flex; align-items: center; padding: 0 1.2cqw; border: 1px solid rgba(23,38,60,.28);
  background: #f4f3ef; color: #6b7788; font-size: clamp(14.5px, 1.23cqw, 16px); white-space: nowrap;
}
/* ㎡と坪を選べる単位（簡易診断の面積） */
.mk-input-wrap select.unit-select { font: inherit; cursor: pointer; border-radius: 0; padding-right: 2.2em; appearance: none;
  background: #f4f3ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7788'/%3E%3C/svg%3E") no-repeat right .8em center; }
.mk-check { display: flex; gap: .7cqw; align-items: flex-start; font-size: clamp(14.5px, 1.23cqw, 16px); color: #43536b; line-height: 1.7; }
.mk-check input { width: 16px; height: 16px; margin: .25em 0 0; accent-color: #17263c; flex: 0 0 auto; }
.mk-check a { text-decoration: underline; text-underline-offset: .2em; }
.mk-err, .invalid-feedback { display: block; margin-top: .4cqw; color: #8c3a32; font-size: clamp(13px, 1.17cqw, 15px); }
.invalid-feedback:empty { display: none; }
.mk-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; }
.mk-seg > a, .mk-seg > div, .mk-seg > label {
  border: 1px solid rgba(23,38,60,.28); background: #fff; text-align: center; cursor: pointer;
  padding: 1cqw .6cqw; font-size: clamp(14.5px, 1.27cqw, 16px); font-weight: 500; color: #17263c; line-height: 1.5;
}
.mk-seg > .on, .mk-seg > [aria-current="true"] { border-color: #17263c; background: #17263c; color: #fbfaf8; font-weight: 700; }
.mk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4cqw; }
.mk-grid2 > .full, .kg-fields > .full { grid-column: 1 / -1; }
.kg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4cqw; }
.kg-fieldset { border: 0; padding: 0; margin: 0 0 .6cqw; min-width: 0; }
.kg-fieldset legend { padding: 0; }

/* --- alerts --- */
.kg-alert { border: 1px solid rgba(23,38,60,.28); background: #fff; padding: 1cqw 1.4cqw; font-size: clamp(15px, 1.3cqw, 17px); margin-bottom: 1.4cqw; line-height: 1.7; }
.kg-alert--danger, .alert-danger { border-color: #8c3a32; color: #8c3a32; }
.kg-alert--success, .alert-success { border-color: #17263c; color: #17263c; }
.kg-alert--info, .alert-info, .alert-warning { border-color: rgba(23,38,60,.28); color: #43536b; }
.alert { border: 1px solid rgba(23,38,60,.28); background: #fff; padding: 1cqw 1.4cqw; font-size: clamp(15px, 1.3cqw, 17px); margin-bottom: 1.4cqw; line-height: 1.7; }
.alert .btn-close { display: none; }

/* --- steps --- */
.mk-steps { display: flex; align-items: center; gap: 1cqw; flex-wrap: wrap; }
.mk-steps li { display: flex; align-items: center; gap: .7cqw; font-size: clamp(13px, 1.2cqw, 15px); color: #8a94a4; }
.mk-steps li b { width: 2.1cqw; height: 2.1cqw; min-width: 20px; min-height: 20px; border-radius: 50%; border: 1px solid rgba(23,38,60,.3); display: grid; place-items: center; font-size: .9em; }
.mk-steps li.on { color: #17263c; font-weight: 700; }
.mk-steps li.on b { background: #17263c; color: #fbfaf8; border-color: #17263c; }
.mk-steps li.done b { border-color: #17263c; color: #17263c; }
.mk-steps .bar { flex: 1; min-width: 14px; height: 1px; background: rgba(23,38,60,.18); }

/* --- tables --- */
.mk-table { width: 100%; border-collapse: collapse; font-size: clamp(14.5px, 1.25cqw, 16px); }
.mk-table th, .mk-table td { border-bottom: 1px solid rgba(23,38,60,.13); padding: .95cqw 1.1cqw; text-align: left; vertical-align: middle; }
.mk-table thead th { font-size: .9em; letter-spacing: .1em; color: #6b7788; font-weight: 700; border-bottom: 1px solid rgba(23,38,60,.3); white-space: nowrap; }
.mk-table td.n { font-variant-numeric: tabular-nums; }
.mk-table td.r, .mk-table th.r { text-align: right; }
.mk-table-wrap { overflow-x: auto; }

/* --- figures --- */
.mk-figs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(23,38,60,.2); background: #fff; }
.mk-fig { padding: 1.5cqw 1.6cqw; border-right: 1px solid rgba(23,38,60,.13); min-width: 0; }
.mk-fig:last-child { border-right: none; }
.mk-fig .k { font-size: clamp(14.5px, 1.3cqw, 16px); font-weight: 700; color: #5c6b83; margin-bottom: .6cqw; }
.mk-fig .v { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(22px, 2.59cqw, 36.5px); font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1.3; }
.mk-fig .v small { font-size: .58em; font-weight: 600; color: #43536b; margin-left: .15em; }
.mk-fig .v .sep { font-size: .7em; font-weight: 600; color: #43536b; margin: 0 .2em; }

/* --- footer --- */
.mk-foot { background: #17263c; color: #fbfaf8; padding: 2.6cqw 3.2cqw; display: flex; justify-content: space-between; gap: 2cqw; flex-wrap: wrap; }
.mk-foot .b { font-family: "Shippori Mincho B1", serif; font-weight: 800; letter-spacing: .16em; font-size: clamp(15.5px, 1.65cqw, 21px); }
.mk-foot ul { display: grid; grid-template-columns: repeat(2, auto); gap: .5cqw 2.4cqw; font-size: clamp(13.5px, 1.23cqw, 15.5px); color: rgba(251,250,248,.8); }
.mk-foot ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.mk-foot .legal { display: flex; gap: 1.8cqw; flex-wrap: wrap; font-size: clamp(12.5px, 1.12cqw, 13.5px); color: rgba(251,250,248,.72); }
.mk-foot .cr { width: 100%; border-top: 1px solid rgba(251,250,248,.18); padding-top: 1.2cqw; font-size: clamp(12.5px, 1.12cqw, 13.5px); color: rgba(251,250,248,.55); }

/* ---------- 遊び心：モーション ---------- */
.mk-fade { opacity: 0; transform: translateY(10px); }
.is-live .mk-fade { animation: fadeUp .68s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.mk-draw path, .mk-draw line, .mk-draw polyline, .mk-draw polygon, .mk-draw rect, .mk-draw circle,
polygon.mk-draw, path.mk-draw, polyline.mk-draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.is-live .mk-draw path, .is-live .mk-draw line, .is-live .mk-draw polyline, .is-live .mk-draw polygon, .is-live .mk-draw rect, .is-live .mk-draw circle,
.is-live polygon.mk-draw, .is-live path.mk-draw, .is-live polyline.mk-draw { animation: draw 1.5s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mk-fade { opacity: 1 !important; transform: none !important; animation: none !important; }
  .mk-draw * { stroke-dashoffset: 0 !important; animation: none !important; }
  .mk-btn::after { transition: none; }
}

/* ============================================================
   個別レイアウト
   ============================================================ */
/* 診断・登録・ログイン */
.fm { padding: 3cqw 3.2cqw 4cqw; }
.fm-head { margin-bottom: 2.4cqw; }
.fm-head .mk-h2 { margin: 1.8cqw 0 .8cqw; }
.fm-sheet { display: grid; grid-template-columns: 1.25fr .95fr; gap: 3cqw; align-items: start; }
.fm-actions { margin-top: 1.8cqw; display: flex; gap: 1.2cqw; align-items: center; flex-wrap: wrap; }

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-l { padding: 3.4cqw 3.2cqw; display: flex; flex-direction: column; justify-content: center; }
.auth-l .mk-brand { margin: 0 0 2.4cqw; }
.auth-l .mk-h2 { margin: 0 0 1cqw; }
.auth-l .auth-lead { margin-bottom: 2.2cqw; }
.auth-form { max-width: 460px; }
.auth-r .mk-photo { height: 100%; min-height: 30cqw; }
.auth-links { margin-top: 2.2cqw; padding-top: 1.2cqw; border-top: 1px solid rgba(23,38,60,.12); }
.auth-links .sep { color: #9aa5b4; margin: 0 .8em; }

/* ダッシュボード・結果 */
.db { padding: 2.6cqw 3.2cqw 4cqw; }
.db-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2cqw; flex-wrap: wrap; margin-bottom: 2cqw; }
.db-top .mk-h2 { margin: .8cqw 0 0; }
.db-chips { display: flex; gap: .7cqw; flex-wrap: wrap; margin-top: .8cqw; }
.db-chips span { border: 1px solid rgba(23,38,60,.22); padding: .35cqw 1cqw; font-size: clamp(13px, 1.14cqw, 14.5px); color: #43536b; }
.db-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.2cqw; align-items: start; margin-top: 2.2cqw; }
.db-views { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw; margin-top: 1.2cqw; }
.db-views--4 { grid-template-columns: repeat(4, 1fr); margin-top: 2cqw; }
.db-view { border: 1px solid rgba(23,38,60,.15); padding: 1.4cqw 1.5cqw; background: #fff; min-width: 0; }
.db-view .r { font-size: clamp(12px, 1.1cqw, 13.5px); letter-spacing: .16em; color: #6b7788; margin-bottom: .5cqw; }
.db-view h5 { font-family: "Shippori Mincho B1", serif; font-weight: 700; font-size: clamp(16px, 1.56cqw, 19.5px); letter-spacing: .05em; margin: 0 0 .5cqw; }
.db-view p { margin: 0; font-size: clamp(14.5px, 1.17cqw, 15px); line-height: 1.85; color: #43536b; white-space: pre-wrap; overflow-wrap: anywhere; }
.db-view .pending { color: #8a94a4; }
.blur { filter: blur(4px); user-select: none; pointer-events: none; }
.lock { border: 1px solid #17263c; background: #fff; padding: 1.6cqw 1.8cqw; margin-top: 1.6cqw; display: flex; align-items: center; justify-content: space-between; gap: 1.6cqw; flex-wrap: wrap; }
.lock .t { margin: 0 0 .4cqw; font-size: clamp(15.5px, 1.37cqw, 17px); font-weight: 700; }
.radar { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.lg { display: inline-flex; align-items: center; gap: .6cqw; font-size: clamp(13.5px, 1.3cqw, 16px); font-weight: 700; color: #17263c; }
.lg::before { content: ""; width: 22px; height: 0; border-top: 3px solid #17263c; }
.lg--around { color: #5c6b83; }
.lg--around::before { border-top: 2px dashed #7d97bd; }
.legend-row { display: flex; gap: 1.6cqw; justify-content: center; margin-top: .6cqw; flex-wrap: wrap; }
.kg-section { margin-top: 2.2cqw; }
.kg-section > .mk-eyebrow { display: block; margin-bottom: 1.2cqw; }
.kg-actions-inline { display: flex; gap: 1cqw; align-items: center; flex-wrap: wrap; }

/* 2026-09-25 藤田社長の修正対応 */
.mk-field[hidden] { display: none; }
textarea.mk-input { min-height: 96px; line-height: 1.8; resize: vertical; }
.kg-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.mk-seg > label { position: relative; }
.mk-seg > label:focus-within { outline: 2px solid #17263c; outline-offset: 2px; }
.db-chips .kg-accuracy { border-color: #17263c; color: #17263c; font-weight: 700; }
.db-view--locked { background: #f7f6f2; }
.mk-fig .v.kg-locked-v { font-family: "Zen Kaku Gothic New", sans-serif; font-size: clamp(15.5px, 1.37cqw, 18px); font-weight: 700; color: #8a94a4; letter-spacing: .04em; padding: .5cqw 0; }
.db-view .kg-sample-note { margin-top: .8cqw; padding-top: .6cqw; border-top: 1px dashed rgba(23,38,60,.18); font-size: clamp(13px, 1.07cqw, 13.5px); color: #8a94a4; }
.db-view--locked .r { color: #8a94a4; }
/* 4人の見立て：人物の絵と色分け（2026-11-05 福元さん） */
.db-view--prudent_banker { --persona: #2f4263; }
.db-view--passionate_consultant { --persona: #a8452f; }
.db-view--cautious_tax_accountant { --persona: #365946; }
.db-view--experienced_owner { --persona: #7f6120; }
.db-view--persona { border-top: 3px solid var(--persona, rgba(23,38,60,.15)); }
.kg-persona { display: flex; align-items: center; gap: clamp(10px, 1cqw, 14px); margin-bottom: clamp(10px, 1cqw, 14px); }
.kg-persona img { width: clamp(80px, 6.6cqw, 88px); height: auto; flex: none; }
.db-view .kg-persona .r { margin: 0; color: var(--persona, #6b7788); font-weight: 700; letter-spacing: .08em; font-size: clamp(14px, 1.2cqw, 15.5px); }
/* 会議のまとめ（4人の見立ての一致した点・分かれた点。2026-11-13） */
.kg-council { margin-top: clamp(14px, 1.4cqw, 20px); padding: clamp(14px, 1.6cqw, 22px) clamp(16px, 1.8cqw, 26px); border-top: 3px solid #17263c; background: #fff; }
.kg-council-h { margin: 0 0 .8em; font-weight: 700; letter-spacing: .08em; color: #17263c; }
.kg-council-h span { display: block; margin-top: .3em; font-weight: 400; letter-spacing: .02em; font-size: .82em; color: #6b7788; }
.kg-council-row { margin: 0 0 .7em; line-height: 1.85; display: grid; grid-template-columns: 8.5em 1fr; column-gap: .8em; }
.kg-council-row b { color: #17263c; }
/* スマホでは見出しを上、本文を下に */
@container (max-width: 760px) { .kg-council-row { grid-template-columns: 1fr; } }
.kg-council .pending { color: #6b7788; margin: 0; }
/* 見立てを書いたAI（Gemini・Claude・GPT）。名前の横に小さく添えるだけ（2026-11-13） */
.kg-provider { display: inline-block; margin-left: .7em; padding: 0 .55em; border: 1px solid rgba(23,38,60,.22); border-radius: 3px; color: #5b6676; font-weight: 500; font-size: .74em; letter-spacing: .04em; line-height: 1.6; vertical-align: .12em; font-family: "Helvetica Neue", Arial, sans-serif; }
/* カードが細い幅では横に並べると「ベテランオーナー／AI」が途中で折り返すので、絵の下に名前を置く */
@container (min-width: 761px) and (max-width: 1279px) {
  .kg-persona { flex-direction: column; align-items: flex-start; }
}
/* 診断精度 */
.kg-acc { display: grid; grid-template-columns: auto 1fr; gap: 1.6cqw; align-items: center; }
.kg-acc-num { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(33px, 3.74cqw, 50.5px); line-height: 1; font-variant-numeric: tabular-nums; }
.kg-acc-num small { font-size: .45em; margin-left: .1em; }
.kg-acc-bar { height: 8px; background: rgba(23,38,60,.1); position: relative; margin: .4cqw 0 .8cqw; }
.kg-acc-bar i { position: absolute; inset: 0 auto 0 0; background: #17263c; }
.kg-acc-next { display: flex; gap: .8cqw; flex-wrap: wrap; }
.kg-acc-next > span { border: 1px dashed rgba(23,38,60,.35); padding: .3cqw .9cqw; font-size: clamp(13px, 1.14cqw, 15px); color: #43536b; }
/* 詳細入力 */
.kg-detail-sec + .kg-detail-sec { margin-top: 1.6cqw; }
.kg-detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; flex-wrap: wrap; margin-bottom: 1.2cqw; }
.kg-detail-head .n { font-family: "Shippori Mincho B1", serif; font-weight: 800; margin-right: .6em; }
.kg-repairs { width: 100%; border-collapse: collapse; font-size: clamp(14.5px, 1.25cqw, 16px); }
.kg-repairs th, .kg-repairs td { border-bottom: 1px solid rgba(23,38,60,.13); padding: .6cqw .8cqw; text-align: left; }
.kg-repairs thead th { font-size: .9em; color: #6b7788; letter-spacing: .08em; }
.kg-repairs .mk-input { min-height: 38px; padding: .6cqw .9cqw; }
.kg-docs { display: grid; gap: .8cqw; margin-top: 1.2cqw; padding-top: 1.2cqw; border-top: 1px dashed rgba(23,38,60,.2); }
.kg-doc { display: grid; grid-template-columns: 1fr auto; gap: .4cqw 1.2cqw; align-items: center; font-size: clamp(14.5px, 1.25cqw, 16px); }
.kg-doc .st { font-size: .9em; color: #6b7788; }
.kg-proposals .mk-table td { vertical-align: top; }
.kg-estimated { display: inline-block; margin-left: .5em; font-size: .72em; font-weight: 700; color: #6b7788; border: 1px solid rgba(23,38,60,.25); padding: 0 .45em; letter-spacing: .05em; vertical-align: middle; }
.kg-axis-list { display: grid; gap: .8cqw; margin-top: 1.2cqw; }
.kg-axis { display: grid; grid-template-columns: 1fr auto; gap: .2cqw 1cqw; border-bottom: 1px solid rgba(23,38,60,.12); padding-bottom: .7cqw; }
.kg-axis b { font-size: clamp(15.5px, 1.37cqw, 17.5px); }
.kg-axis .s { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(17.5px, 1.76cqw, 23px); font-variant-numeric: tabular-nums; }
.kg-axis .q { grid-column: 1 / -1; font-size: clamp(13px, 1.17cqw, 15px); color: #6b7788; }

/* 汎用ページ（規約など） */
.kg-prose { padding: 3cqw 3.2cqw 4cqw; max-width: 900px; }
/* 利用規約・プライバシーポリシー（2026-11-03） */
.kg-legal .mk-h2 { margin: .6cqw 0 2cqw; }
.kg-legal h2 { font-family: "Shippori Mincho B1", serif; font-weight: 700; font-size: clamp(17px, 1.5cqw, 20px); letter-spacing: .05em; margin: 2.2em 0 .6em; }
.kg-legal p, .kg-legal li { font-size: clamp(15px, 1.25cqw, 16px); line-height: 2; color: #43536b; }
.kg-legal p { margin: 0 0 .8em; }
.kg-legal ul { margin: 0 0 .8em; padding-left: 1.4em; list-style: disc; }
.kg-legal li + li { margin-top: .3em; }
.kg-legal a { color: #17263c; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.kg-legal .kg-todo { background: #fff1c7; color: #6b4a00; padding: 0 .2em; }
.kg-legal .kg-legal-date { margin-top: 3em; }

/* ---------- レスポンシブ ---------- */
@container (max-width: 760px) {
  .mk-nav { padding: 14px 18px; }
  .mk-nav nav { display: none; }
  .fm, .db, .kg-prose { padding: 22px 18px 40px; }
  .fm-sheet, .db-body, .auth { grid-template-columns: 1fr; gap: 20px; }
  .auth-l { padding: 32px 20px; }
  .auth-r { order: -1; }
  .auth-r .mk-photo { min-height: 180px; max-height: 220px; }
  .db-views, .db-views--4, .mk-figs, .kg-fields, .mk-grid2, .kg-acc { grid-template-columns: 1fr; }
  .mk-fig { border-right: none; border-bottom: 1px solid rgba(23,38,60,.13); }
  .mk-fig:last-child { border-bottom: none; }
  .mk-card { padding: 18px; }
  .mk-field { margin-bottom: 16px; }
  .mk-btn { padding: 12px 22px; }
  .mk-btn--sm { padding: 9px 16px; }
  .mk-foot { padding: 28px 18px; }
  .lock { padding: 16px 18px; }
  .mk-steps { gap: 8px; }
  .mk-steps li { gap: 6px; }
}

/* ---------- 物件一覧・期限と予定・会議の記録（2026-11-10） ---------- */
.pf-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(23,38,60,.2); margin: 0 0 2cqw; overflow-x: auto; }
.pf-tabs a { padding: .9cqw 1.6cqw; font-size: clamp(14.5px, 1.3cqw, 16.5px); color: #43536b; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.pf-tabs a:hover { color: #17263c; }
.pf-tabs a[aria-current="page"] { color: #17263c; font-weight: 700; border-bottom-color: #17263c; }
.pf-figs + .pf-figs { border-top: 0; }
.pf-figs .mk-fig .mk-note { margin: .4cqw 0 0; }
.pf-attn { list-style: none; margin: 0; padding: 0; }
.pf-attn li { display: grid; grid-template-columns: 1fr auto; gap: .4cqw 1.6cqw; align-items: center; padding: 1.1cqw 0 1.1cqw 1.2cqw; border-bottom: 1px solid rgba(23,38,60,.12); border-left: 3px solid rgba(23,38,60,.35); margin-bottom: .2cqw; }
.pf-attn li:last-child { border-bottom: 0; }
.pf-attn li.is-high { border-left-color: #8c3a32; }
.pf-attn li.is-low { border-left-color: rgba(23,38,60,.15); }
.pf-attn .pf-prop { font-size: clamp(13px, 1.1cqw, 14px); color: #6b7788; letter-spacing: .04em; margin: 0 0 .2cqw; }
.pf-attn .pf-title { font-weight: 700; font-size: clamp(15px, 1.3cqw, 17px); margin: 0; line-height: 1.6; }
.pf-attn .pf-body { font-size: clamp(13.5px, 1.17cqw, 15px); color: #43536b; margin: .2cqw 0 0; line-height: 1.7; }
.pf-attn .pf-act { grid-row: 1 / span 3; grid-column: 2; }
.pf-badge { display: inline-block; padding: .15em .6em; font-size: .86em; border: 1px solid rgba(23,38,60,.3); color: #43536b; white-space: nowrap; }
.pf-badge--high { border-color: #8c3a32; color: #8c3a32; }
.pf-badge--ok { border-color: rgba(23,38,60,.18); color: #6b7788; }
.pf-table td .pf-sub { display: block; font-size: .86em; color: #6b7788; margin-top: .15em; }
.pf-table td, .pf-table th { white-space: nowrap; padding-left: .7cqw; padding-right: .7cqw; }
.pf-table th:first-child, .pf-table td:first-child { padding-left: 1.6cqw; }
.pf-table th:last-child, .pf-table td:last-child { padding-right: 1.6cqw; }
.pf-table td.pf-name { white-space: normal; min-width: 10em; }
.pf-actions { display: flex; gap: .6cqw; justify-content: flex-end; align-items: center; }
/* 物件一覧の「結果」「詳細」は縦に積む（横に並べると 1280px 幅でも表が切れた） */
.pf-actions--stack { flex-direction: column; align-items: stretch; gap: .5cqw; }
.pf-actions--stack .mk-btn { justify-content: center; text-align: center; }
.pf-actions form { margin: 0; }
.pf-form .kg-fields { margin-top: 1cqw; }
@container (max-width: 760px) {
  .pf-tabs a { padding: 10px 14px; }
  .pf-attn li { grid-template-columns: 1fr; padding-left: 12px; }
  .pf-attn .pf-act { grid-row: auto; grid-column: 1; margin-top: 8px; }
  .pf-actions { justify-content: flex-start; }
}

/* ── 次を押したくなる仕掛け（2026-11-14）────────────────── */
/* ① 記入中の診断精度メーター */
/* 右の列ごと追従させる（メーターだけを追従させると下の欄に重なるため） */
.fm-sheet > div:last-child:has(.kg-meter) { position: sticky; top: 88px; }
.kg-meter-num { margin: 0; display: flex; align-items: baseline; gap: .2em; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(36px, 4.2cqw, 56px); line-height: 1; color: #17263c; font-variant-numeric: tabular-nums; }
.kg-meter-num small { font-size: .42em; }
.kg-meter-cap { margin-left: auto; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500; font-size: clamp(11.5px, .95cqw, 13px); color: #6b7788; letter-spacing: .04em; }
.kg-meter-cap b { font-weight: 700; color: #43536b; }
.kg-meter-bar { margin: 1cqw 0 1.1cqw; height: 10px; overflow: visible; }
.kg-meter-bar i { transition: width .45s cubic-bezier(.2,.7,.2,1); }
.kg-meter-bar em { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dotted #8a94a4; }
.kg-meter.up .kg-meter-bar i { box-shadow: 0 0 0 3px rgba(23,38,60,.12); }
.kg-meter-next { margin: 0; font-size: clamp(13.5px, 1.18cqw, 15.5px); line-height: 1.7; }
.kg-meter-next a { color: #17263c; text-decoration: none; border-bottom: 1px solid rgba(23,38,60,.35); }
.kg-meter-next a::before { content: "次は "; color: #6b7788; }
.kg-meter-next b { font-variant-numeric: tabular-nums; }
.kg-meter-done { margin: 0; }
.kg-meter-mini { display: none; }
@media (max-width: 760px) {
  .fm-sheet > div:last-child:has(.kg-meter) { position: static; }
  .kg-meter-mini { display: flex; justify-content: space-between; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #17263c; color: #fbfaf8; font-size: 13px; letter-spacing: .03em; }
  .kg-meter-mini b { font-size: 15px; font-variant-numeric: tabular-nums; }
  .fm { padding-bottom: 64px; }
}
/* ② 登録前：3人の見立ての書き出しだけ見せる */
.kg-tease { margin: 0 0 .4cqw; font-family: "Shippori Mincho B1", serif; font-weight: 700; font-size: clamp(14px, 1.3cqw, 17px); line-height: 1.75; color: #17263c; }
.kg-tease-more { color: #8a94a4; letter-spacing: .1em; }
.kg-tease-lock { margin: .6cqw 0 0; font-size: clamp(12px, 1.02cqw, 13.5px); color: #6b7788; letter-spacing: .04em; }
.kg-tease-lock::before { content: ""; display: inline-block; width: .75em; height: .6em; margin-right: .45em; border: 1.5px solid #6b7788; border-radius: 2px; vertical-align: -.02em; }
/* ③ 会員：次に入れると開くもの */
.kg-ladder-h { margin: 1cqw 0 .6cqw; font-weight: 700; color: #17263c; font-size: clamp(13.5px, 1.18cqw, 15.5px); display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.kg-ladder-h span { font-weight: 500; color: #6b7788; font-size: .9em; }
.kg-ladder { list-style: none; margin: 0 0 1cqw; padding: 0; border-top: 1px solid rgba(23,38,60,.14); }
.kg-ladder li { border-bottom: 1px solid rgba(23,38,60,.14); }
.kg-ladder a { display: grid; grid-template-columns: 4.2em 9em 1fr; gap: .2em 1em; align-items: baseline; padding: .7cqw .2cqw; color: inherit; text-decoration: none; }
.kg-ladder a:hover { background: rgba(23,38,60,.04); }
.kg-ladder .g { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(16px, 1.5cqw, 20px); color: #17263c; font-variant-numeric: tabular-nums; }
.kg-ladder .l { font-weight: 700; color: #17263c; font-size: clamp(13px, 1.1cqw, 15px); }
.kg-ladder .u { color: #43536b; font-size: clamp(12.5px, 1.05cqw, 14.5px); line-height: 1.75; }
@container (max-width: 760px) {
  .kg-ladder a { grid-template-columns: 3.6em 1fr; padding: 10px 2px; }
  .kg-ladder .u { grid-column: 2; }
}

/* 2026-11-25 PCの幅でメニューの文字が2行に折れないように。1000px以下はスマホと同じヘッダー（ロゴ＋「無料で相談」＋メニューボタン） */
.mk-nav nav li, .mk-nav .mk-login, .mk-nav .mk-btn--sm { white-space: nowrap; }
@container (min-width: 1001px) and (max-width: 1360px) { .mk-nav { gap: 1.6cqw; } .mk-nav nav ul { gap: 1.7cqw; } .mk-nav nav li, .mk-nav .mk-login { font-size: 14.5px; } }
@container (min-width: 1001px) and (max-width: 1220px) { .mk-nav .mk-navr .mk-cta-default { display: none; } .mk-nav .mk-navr .mk-sp-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; background: #17263c; color: #fff !important; font-weight: 700; font-size: 14px; letter-spacing: .04em; white-space: nowrap; text-decoration: none; } }
/* ===== スマホのヘッダー（2026-11-17）：ロゴ＋「無料で相談」＋メニューボタン。メニューはヘッダーの下に開く ===== */
.mk-sp-cta, .mk-burger, .mk-menu { display: none; }
@container (max-width: 1000px) {
  .mk-nav { padding: 10px 14px !important; gap: 10px; flex-wrap: nowrap; align-items: center; }
  .mk-nav .mk-brand { font-size: 17px; letter-spacing: .1em; white-space: nowrap; line-height: 1.25; }
  .mk-nav .mk-brand small { font-size: 10.5px; letter-spacing: .12em; margin-top: 2px; }
  .mk-nav nav { display: none; }
  .mk-nav .mk-navr { gap: 8px; flex: none; }
  .mk-nav .mk-navr .mk-login, .mk-nav .mk-navr #logout-form, .mk-nav .mk-navr .mk-cta-default { display: none !important; }
  .mk-nav .mk-navr .mk-btn--sm { padding: 9px 12px; font-size: 13px; white-space: nowrap; }
  .mk-sp-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; background: #17263c; color: #fff !important; font-weight: 700; font-size: 13px; letter-spacing: .04em; white-space: nowrap; text-decoration: none; }
  .mk-burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 40px; padding: 0; border: 1px solid rgba(23,38,60,.28); background: #fff; cursor: pointer; }
  .mk-burger i { display: block; width: 18px; height: 2px; background: #17263c; transition: transform .25s, opacity .2s; }
  .mk-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mk-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .mk-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mk-menu.open { display: block; background: #fff; border-bottom: 1px solid rgba(23,38,60,.16); box-shadow: 0 18px 30px -24px rgba(23,38,60,.5); }
  .mk-menu ul { list-style: none; margin: 0; padding: 0 14px; }
  .mk-menu li { border-bottom: 1px solid rgba(23,38,60,.1); }
  .mk-menu li a, .mk-menu li button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 4px; font-size: 16px; font-weight: 500; color: #17263c; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit; }
  .mk-menu li a::after, .mk-menu li button::after { content: "›"; color: #9aa5b4; font-size: 20px; }
  .mk-menu .mk-menu-act { display: grid; gap: 10px; padding: 16px 14px 20px; }
  .mk-menu .mk-menu-act a { display: flex; align-items: center; justify-content: center; min-height: 50px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .mk-menu .mk-menu-act .p { background: #17263c; color: #fff; }
  .mk-menu .mk-menu-act .s { border: 1px solid #17263c; color: #17263c; background: #fff; }
}

/* ===== 結果の画面（2026-11-17 作り直し）：LPと同じ見せ方・色付きのグラフ ===== */
.kg-p--prudent_banker { --pc: #2f4263; } .kg-p--passionate_consultant { --pc: #a8452f; }
.kg-p--cautious_tax_accountant { --pc: #365946; } .kg-p--experienced_owner { --pc: #7f6120; }
/* 診断精度 */
.kg-acc2 { display: grid; grid-template-columns: auto 1fr auto; gap: 2cqw; align-items: center; padding: 1.6cqw 2cqw; background: #fff; border: 1px solid rgba(23,38,60,.12); }
.kg-ring { position: relative; width: clamp(92px, 8.4cqw, 116px); aspect-ratio: 1; }
.kg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kg-ring circle { fill: none; stroke-width: 10; }
.kg-ring .bg { stroke: #eef1f5; }
.kg-ring .fg { stroke: url(#none); stroke: #365946; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s cubic-bezier(.22,1,.36,1); }
.kg-acc2.in .kg-ring .fg { stroke-dasharray: var(--p) 100; }
.kg-ring p { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.kg-ring b { font-family: "Shippori Mincho B1", serif; font-size: clamp(26px, 2.6cqw, 34px); color: #17263c; }
.kg-ring small { font-size: 12px; } .kg-ring span { font-size: 11px; color: #6b7788; margin-top: 4px; letter-spacing: .08em; }
.kg-acc2-h { margin: 0 0 .7em; font-weight: 700; color: #17263c; }
.kg-acc2-h span { margin-left: .8em; font-weight: 500; font-size: .85em; color: #6b7788; }
.kg-acc2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kg-acc2-list a { display: inline-flex; gap: .5em; align-items: baseline; padding: .45em .9em; background: #f4f6f9; color: #17263c; text-decoration: none; font-size: clamp(13px, 1.1cqw, 14.5px); }
.kg-acc2-list b { color: #365946; }
/* 4人のAIの評価 */
.kg-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3cqw; align-items: start; margin-top: 1.8cqw; padding: 2.4cqw; background: #fff; border: 1px solid rgba(23,38,60,.12); }
.kg-hero-bld { position: relative; aspect-ratio: 560 / 620; max-height: 520px; }
.kg-bld-svg { width: 100%; height: 100%; }
.kg-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--pc); }
.kg-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--pc); opacity: 0; animation: kgping 2.4s ease-out infinite; }
.kg-dot:nth-of-type(2)::after { animation-delay: .6s; } .kg-dot:nth-of-type(3)::after { animation-delay: 1.2s; } .kg-dot:nth-of-type(4)::after { animation-delay: 1.8s; }
@keyframes kgping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.kg-ops { list-style: none; margin: .6cqw 0 0; padding: 0; }
.kg-op { display: grid; grid-template-columns: auto 1fr; gap: 1em; padding: 1em 0; border-bottom: 1px solid rgba(23,38,60,.1); }
.kg-op img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px var(--pc); }
.kg-op .n { margin: 0 0 .3em; font-weight: 700; color: var(--pc); font-size: clamp(14px, 1.2cqw, 16px); }
.kg-op .n span { margin-left: .6em; padding: .05em .5em; border: 1px solid rgba(23,38,60,.2); font-size: .72em; font-weight: 500; color: #4b586b; font-family: "Helvetica Neue", Arial, sans-serif; }
.kg-op .c { margin: 0; line-height: 1.8; color: #17263c; font-size: clamp(14px, 1.15cqw, 15.5px); }
.kg-op .c.pending { color: #6b7788; }
.kg-more { margin-top: .3em; } .kg-more summary { cursor: pointer; font-size: 13px; color: #43536b; } .kg-more p { margin: .5em 0 0; line-height: 1.85; font-size: 14px; color: #43536b; }
.kg-sum { margin-top: 1.4cqw; padding: 1.2cqw 1.4cqw; background: #17263c; color: #fbfaf8; }
.kg-sum-h { margin: 0 0 .7em; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(15px, 1.4cqw, 19px); }
.kg-sum-row { display: grid; grid-template-columns: 7em 1fr; gap: .8em; margin: 0 0 .5em; line-height: 1.8; font-size: clamp(13.5px, 1.1cqw, 15px); }
.kg-sum-row b { color: #d6ad55; }
.kg-fine { margin-top: 1cqw; }
/* いまの数字 */
.kg-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; margin-top: 1.6cqw; }
.kg-key { background: #fff; padding: 1.4cqw 1.6cqw; border-top: 3px solid var(--k); }
.kg-key .k { margin: 0 0 .5em; font-size: clamp(13px, 1.1cqw, 14.5px); color: #43536b; font-weight: 700; }
.kg-key .v { margin: 0; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(24px, 2.6cqw, 36px); color: var(--k); font-variant-numeric: tabular-nums; }
.kg-key .v small { font-size: .45em; margin-left: .15em; } .kg-key .v .sep { margin: 0 .15em; font-size: .7em; }
/* 比較 */
.kg-cmp { margin-top: 1.6cqw; padding: 2cqw 2.2cqw; background: #fff; border: 1px solid rgba(23,38,60,.12); }
.kg-cmp-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; margin-top: .8cqw; }
.kg-cf { padding: 1.2cqw 1.4cqw; background: color-mix(in srgb, var(--k) 7%, #fff); border-left: 4px solid var(--k); }
.kg-cf .k { margin: 0; font-family: "Shippori Mincho B1", serif; font-weight: 800; color: var(--k); font-size: clamp(15px, 1.4cqw, 19px); }
.kg-cf .v { margin: .3em 0; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(22px, 2.3cqw, 32px); color: #17263c; font-variant-numeric: tabular-nums; }
.kg-cf .v small { font-size: .45em; margin-left: .15em; } .kg-cf .v .sep { margin: 0 .15em; font-size: .7em; }
.kg-cf .s { margin: 0; font-size: 12.5px; color: #6b7788; line-height: 1.6; }
.kg-fit { margin-top: 1.6cqw; }
.kg-fit-h { margin: 0 0 .5em; font-weight: 700; font-size: 14px; color: #43536b; }
.kg-fit-row { display: grid; grid-template-columns: 10em auto 1fr; gap: 1em; align-items: center; padding: .55em 0; border-bottom: 1px solid rgba(23,38,60,.08); }
.kg-fit-row .l { font-weight: 700; color: var(--k); }
.kg-fit-row .m { display: inline-flex; gap: 5px; }
.kg-fit-row .m i { width: 34px; height: 10px; background: #eef1f5; }
.kg-fit-row .m i.on { background: var(--k); }
.kg-fit-row .t { font-size: 13.5px; color: #43536b; }
.kg-cmp.in .kg-fit-row .m i.on { animation: kgfill .6s ease-out both; }
@keyframes kgfill { from { transform: scaleX(0); transform-origin: left; } to { transform: none; } }
.kg-detail { margin-top: 1.2cqw; border-top: 1px solid rgba(23,38,60,.12); }
.kg-detail > summary { cursor: pointer; padding: .9em 0; font-weight: 700; color: #17263c; list-style: none; display: flex; justify-content: space-between; }
.kg-detail > summary::after { content: "＋"; color: #6b7788; } .kg-detail[open] > summary::after { content: "－"; }
.kg-detail > summary::-webkit-details-marker { display: none; }
/* 物件の力 */
.kg-ana { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-items: center; margin-top: 1.6cqw; padding: 2cqw 2.2cqw; background: #fff; border: 1px solid rgba(23,38,60,.12); }
.kg-ana-radar .radar { width: 100%; height: auto; max-width: 440px; display: block; margin: 0 auto; }
.kg-ab { padding: .8em 0; border-bottom: 1px solid rgba(23,38,60,.08); }
.kg-ab .h { display: flex; align-items: baseline; gap: .6em; margin: 0 0 .4em; }
.kg-ab .h b { color: var(--k); font-size: 15.5px; }
.kg-ab .h .s { margin-left: auto; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 22px; color: var(--k); }
.kg-ab .h .s small { font-size: .55em; color: #6b7788; }
.kg-ab .bar { display: block; height: 8px; background: #eef1f5; }
.kg-ab .bar i { display: block; height: 100%; width: 0; background: var(--k); transition: width 1.1s cubic-bezier(.22,1,.36,1); }
.kg-ana.in .kg-ab .bar i { width: var(--w); }
.kg-ab .q { margin: .4em 0 0; font-size: 12.5px; color: #6b7788; }
/* 確認しておきたいこと */
.kg-warn { margin-top: 1.6cqw; }
.kg-warn-row { margin-top: .8cqw; padding: 1em 1.2em; background: #fff; border-left: 4px solid #7f6120; }
.kg-warn-row.is-high { border-left-color: #a8452f; }
.kg-warn-row b { color: #17263c; } .kg-warn-row .c { margin-left: .8em; font-size: 12px; color: #6b7788; }
.kg-warn-row p { margin: .4em 0 0; font-size: 14px; line-height: 1.8; color: #43536b; }
.kg-details { margin-top: 1.6cqw; padding: .6cqw 2.2cqw 1.6cqw; background: #fff; border: 1px solid rgba(23,38,60,.12); }
.kg-details .kg-detail:first-child { border-top: 0; }
/* 次にできること */
.kg-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; margin-top: 1.6cqw; }
.kg-nx { display: flex; flex-direction: column; gap: .6em; padding: 1.6cqw 1.6cqw; background: #fff; border-top: 3px solid var(--k); }
.kg-nx svg { width: 44px; height: 44px; }
.kg-nx .t { margin: 0; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(16px, 1.45cqw, 19px); color: #17263c; }
.kg-nx .mk-note { flex: 1; }
.kg-nx--main { background: #fbf6ea; }
@container (max-width: 760px) {
  .kg-acc2 { grid-template-columns: auto 1fr; padding: 16px; gap: 14px; }
  .kg-acc2 > .mk-btn { grid-column: 1 / -1; }
  .kg-hero { grid-template-columns: 1fr; padding: 16px; }
  .kg-hero-bld { max-width: 260px; margin: 0 auto; width: 100%; }
  .kg-keys, .kg-cmp-figs, .kg-next { grid-template-columns: 1fr; gap: 10px; }
  .kg-key, .kg-cf, .kg-nx { padding: 14px 16px; }
  .kg-cmp, .kg-ana, .kg-details { padding: 16px; }
  .kg-ana { grid-template-columns: 1fr; }
  .kg-fit-row { grid-template-columns: 7em auto; } .kg-fit-row .t { grid-column: 1 / -1; }
  .kg-sum-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kg-ring .fg { stroke-dasharray: var(--p) 100 !important; transition: none; }
  .kg-ab .bar i { width: var(--w) !important; transition: none; }
  .kg-dot::after { display: none; }
}

/* ===== 設定・ユーザー（古い部品の画面）を会員画面の見た目に（2026-11-17） ===== */
.kg-legacy { background: #fbfaf8; font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif; }
.kg-legacy-main { max-width: 1240px; margin: 0 auto; padding: 3cqw 3.2cqw 4cqw; min-height: 50vh; }
.kg-legacy .content, .kg-legacy .content-full { padding: 0 !important; max-width: none !important; }
.kg-legacy .block { background: #fff; border: 1px solid rgba(23,38,60,.12); border-radius: 0 !important; box-shadow: none !important; margin-bottom: 1.6cqw; }
.kg-legacy .block .block { border-color: rgba(23,38,60,.1); }
.kg-legacy .block-header { padding: 1.2cqw 1.6cqw; border-bottom: 1px solid rgba(23,38,60,.1); background: #fff !important; }
.kg-legacy .block-title { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(16px, 1.5cqw, 20px); text-transform: none !important; letter-spacing: .06em; color: #17263c; }
.kg-legacy .block-content { padding: 1.4cqw 1.6cqw; }
.kg-legacy .cust-grayback { background: transparent !important; }
.kg-legacy .btn-block-option[data-action="fullscreen_toggle"] { display: none !important; }
.kg-legacy .btn { border-radius: 0 !important; font-weight: 700; }
.kg-legacy .btn-primary { background: #17263c !important; border-color: #17263c !important; color: #fff !important; }
.kg-legacy .btn-alt-secondary, .kg-legacy .btn-secondary { background: #fff !important; border: 1px solid #17263c !important; color: #17263c !important; }
.kg-legacy .form-control, .kg-legacy .form-select { border-radius: 0 !important; border-color: rgba(23,38,60,.28); }
.kg-legacy .table thead th { font-size: 13px; color: #43536b; text-transform: none; letter-spacing: .04em; border-bottom: 2px solid rgba(23,38,60,.2); }
.kg-legacy .badge { border-radius: 0; }
.kg-legacy .fas, .kg-legacy .si { margin-right: .3em; }
.kg-org { display: flex; align-items: center; gap: 1em; margin-top: 2cqw; padding: 1em 1.2em; background: #fff; border: 1px solid rgba(23,38,60,.12); max-width: 560px; }
.kg-org label { flex: none; font-weight: 700; font-size: 14px; color: #43536b; }
@container (max-width: 760px) { .kg-legacy-main { padding: 20px 16px 32px; } .kg-legacy .block-header, .kg-legacy .block-content { padding: 14px; } }
.kg-key .v.kg-locked-v { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 16px; font-weight: 700; color: #9aa5b4; margin-top: .4em; }
.kg-legacy #page-container.kg-pc { padding: 0 !important; min-height: 0; }
.kg-legacy #main-container.kg-legacy-main { padding-top: 3cqw !important; }
.kg-legacy #main-container.kg-legacy-main { display: block !important; width: 100%; }
.kg-legacy .kg-legacy-main > .content { width: 100%; }
.kg-legacy .row > .col-md-6 { flex: 0 0 100% !important; max-width: 100% !important; }
.kg-legacy .row > .col-md-4 { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
.kg-legacy .form-group.row .col-sm-4 { flex: 0 0 9em; max-width: 9em; }
.kg-legacy .form-group.row .col-sm-8 { flex: 1 1 auto; max-width: none; }
.kg-legacy .form-select, .kg-legacy .form-control { min-width: 12em; }
@container (max-width: 760px) { .kg-legacy .row > .col-md-4 { flex: 0 0 100% !important; max-width: 100% !important; } }

/* ===== 物件一覧・期限と予定・会議の記録（2026-11-17）：数字のまとめに色、精度の帯 ===== */
.mk-figs .mk-fig { border-top: 3px solid #2f4263; }
.mk-figs .mk-fig:nth-child(2) { border-top-color: #365946; }
.mk-figs .mk-fig:nth-child(3) { border-top-color: #7f6120; }
.mk-figs + .mk-figs .mk-fig { border-top-color: #a8452f; }
.mk-figs + .mk-figs .mk-fig:nth-child(2) { border-top-color: #2f4263; }
.mk-figs + .mk-figs .mk-fig:nth-child(3) { border-top-color: #365946; }
.mk-figs .mk-fig .v.kg-locked-v { font-size: 16px; color: #9aa5b4; }
.pf-acc { display: inline-flex; align-items: center; gap: .5em; }
.pf-acc .bar { display: inline-block; width: 56px; height: 6px; background: #eef1f5; }
.pf-acc .bar i { display: block; height: 100%; width: var(--w); background: #365946; }
.pf-attn li { border-left-color: #d6ad55 !important; }
.pf-attn li.is-high, .pf-attn li.is-danger { border-left-color: #a8452f !important; }
.kg-tabs a[aria-current="page"], .pf-tabs a[aria-current="page"] { border-bottom-color: #d6ad55 !important; }

/* ===== 入力フォーム（2026-11-17 作り直し）：押せるボタン・建物の絵のカード・書類の箱 ===== */
.kg-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .2em; }
.kg-choice { position: relative; cursor: pointer; }
.kg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.kg-choice .t { display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.1em; border: 1px solid rgba(23,38,60,.25); background: #fff; font-size: 14.5px; color: #17263c; transition: background .15s, border-color .15s, color .15s; line-height: 1.5; }
.kg-choice:hover .t { border-color: #17263c; background: #f4f6f9; }
.kg-choice input:checked + .t, .kg-choice input:checked ~ .t { background: #17263c; border-color: #17263c; color: #fff; font-weight: 700; }
.kg-choice input:focus-visible ~ .t, .kg-choice input:focus-visible + .ic { outline: 2px solid #d6ad55; outline-offset: 2px; }
.kg-choice input:disabled ~ .t { opacity: .4; cursor: not-allowed; }
.kg-choices.is-invalid .t { border-color: #8c3a32; }
.kg-choices--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.kg-choices--cards .kg-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 10px; border: 1px solid rgba(23,38,60,.2); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.kg-choices--cards .kg-choice:hover { border-color: #17263c; transform: translateY(-2px); box-shadow: 0 10px 18px -14px rgba(23,38,60,.6); }
.kg-choices--cards .ic svg { width: 46px; height: 46px; display: block; }
.kg-choices--cards .t { min-height: 0; padding: 0; border: 0; background: none !important; color: #17263c !important; font-size: 13.5px; text-align: center; }
.kg-choices--cards .kg-choice:has(input:checked) { border: 2px solid #17263c; background: #fbf6ea; box-shadow: 0 0 0 3px rgba(214,173,85,.35); }
.kg-choices--cards .kg-choice:has(input:checked) .t { font-weight: 700; }
/* 区切りの見出しに色の番号 */
#diagnosis-form .mk-card > .mk-eyebrow { display: flex; align-items: center; gap: .6em; }
/* 番号は区切りの順に付ける（2026-11-25：購入検討用の欄が先頭に隠れていて、番号が②から始まっていた） */
#diagnosis-form .fm-sec > .mk-eyebrow::before { content: attr(data-no); }
#diagnosis-form .fm-sec > .mk-eyebrow::before { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #2f4263; color: #fff; font-family: "Shippori Mincho B1", serif; font-size: 13px; letter-spacing: 0; }
#diagnosis-form .fm-sec { border-top: 3px solid #2f4263; }
#diagnosis-form .fm-sec--2 { border-top-color: #365946; } #diagnosis-form .fm-sec--2 > .mk-eyebrow::before { background: #365946; }
#diagnosis-form .fm-sec--3 { border-top-color: #7f6120; } #diagnosis-form .fm-sec--3 > .mk-eyebrow::before { background: #7f6120; }
#diagnosis-form .fm-sec--4 { border-top-color: #8a3b2c; } #diagnosis-form .fm-sec--4 > .mk-eyebrow::before { background: #8a3b2c; }
#diagnosis-form [data-only-type-wrap] { border-top: 3px solid #d6ad55; }
.kg-meter .kg-acc-bar i, .kg-meter-bar i { background: linear-gradient(90deg, #2f4263, #365946, #d6ad55) !important; }
/* 詳細入力：区切りの番号に色、書類の箱 */
.kg-detail-sec { border-top: 3px solid #2f4263; }
.kg-detail-sec:nth-of-type(6n+2) { border-top-color: #365946; } .kg-detail-sec:nth-of-type(6n+3) { border-top-color: #7f6120; }
.kg-detail-sec:nth-of-type(6n+4) { border-top-color: #a8452f; } .kg-detail-sec:nth-of-type(6n+5) { border-top-color: #2f4263; } .kg-detail-sec:nth-of-type(6n) { border-top-color: #365946; }
.kg-detail-head .n { color: #d6ad55; margin-right: .3em; }
.kg-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kg-drop { display: flex; align-items: center; gap: .8em; min-width: 260px; padding: .9em 1.1em; border: 2px dashed rgba(47,66,99,.35); background: #f7f9fc; color: #2f4263; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.kg-drop svg { width: 34px; height: 34px; flex: none; }
.kg-drop:hover, .kg-drop.over { border-color: #2f4263; background: #eef2f8; }
.kg-drop.has { border-style: solid; border-color: #365946; background: #eef5f0; color: #365946; }
@container (max-width: 760px) {
  .kg-choices--cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .kg-choices--cards .kg-choice { padding: 10px 4px 8px; }
  .kg-choices--cards .ic svg { width: 38px; height: 38px; }
  .kg-drop { min-width: 0; width: 100%; }
}
.kg-sum-h span { margin-left: .8em; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500; font-size: .7em; color: rgba(251,250,248,.7); }

/* 言葉の途中で折り返さない（2026-11-17 福元さん「謎の改行やめさせて、全部ね」） */
.mk, .mk p, .mk h1, .mk h2, .mk h3, .mk h4, .mk h5, .mk li, .mk small, .mk span, .mk td, .mk th, .mk label { word-break: auto-phrase; line-break: strict; }

/* ===== 2026-11-17 LPと同じ動き（背景の建物の粒子・見出しの立ち上がり・小見出しの金の線） ===== */
.mk { position: relative; }
.pg-particles { position: sticky; top: 0; display: block; width: 100%; height: 100vh; margin-bottom: -100vh; pointer-events: none; z-index: 0; flex: none; }
.mk > *:not(.pg-particles) { position: relative; z-index: 1; }
.mk > .mk-nav, .mk > header { z-index: 5; }
.rv-ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); }
.rv-on .rv-ch { animation: rvch .7s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes rvch { to { opacity: 1; transform: none; } }
.kg-ul { position: relative; display: inline-block; padding-bottom: 6px; }
.kg-ul::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #d6ad55; transition: width .9s cubic-bezier(.22,1,.36,1); }
.kg-ul.kg-ul-on::after { width: 100%; }
.is-live .mk-fade.kg-later { animation: none; }
@media (prefers-reduced-motion: reduce) { .rv-ch { opacity: 1 !important; transform: none !important; animation: none !important; } .pg-particles { display: none; } .kg-ul::after { width: 100%; transition: none; } }
/* 次にできること：LPのご利用方法と同じ3Dの動き（見えている間だけ再生） */
.kg-nx-3d { margin: -.4cqw 0 .2cqw; aspect-ratio: 640 / 486; max-width: 200px; overflow: hidden; }
.kg-nx-3d video { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.kg-nx--main .kg-nx-3d video { mix-blend-mode: multiply; }

/* 売却を進めるときに、止まりやすい点（2026-11-23） */
.kg-obs { background: #fff; border: 1px solid #e3e6ea; border-top: 3px solid #a8452f; padding: 2cqw 2.2cqw; margin: 1.6cqw 0; }
.kg-obs-head .mk-note { margin-top: .4em; }
.kg-obs-list { list-style: none; margin: 1.2cqw 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.kg-obs-item { border: 1px solid #e3e6ea; padding: 1.2cqw 1.3cqw; background: #fbfaf8; }
.kg-obs-lv { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; color: #fff; background: #7f6120; }
.kg-obs-item--high .kg-obs-lv { background: #a8452f; }
.kg-obs-item--mid .kg-obs-lv { background: #7f6120; }
.kg-obs-item--low .kg-obs-lv { background: #2f4263; }
.kg-obs-t { font-weight: 700; margin: .6em 0 .3em; font-size: 15px; line-height: 1.5; }
.kg-obs-b { font-size: 13px; line-height: 1.75; color: #444; margin: 0; }
.kg-obs-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2cqw; margin-top: 1.4cqw; flex-wrap: wrap; }
.kg-obs-cta p { margin: 0; font-size: 14px; }
@container (max-width: 760px) { .kg-obs-list { grid-template-columns: 1fr; } .kg-obs { padding: 16px; } .kg-obs-item { padding: 12px; } }

/* 4人のAIに質問する（2026-11-23） */
.kg-ask { background: #fff; border: 1px solid #e3e6ea; padding: 2cqw 2.2cqw; margin: 1.6cqw 0; scroll-margin-top: 90px; }
.kg-ask-form { margin-top: 1cqw; display: grid; gap: 10px; justify-items: start; }
.kg-ask-form textarea { width: 100%; font-size: 15px; line-height: 1.7; }
.kg-ask-ex { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-ask-chip { border: 1px solid #cfd6df; background: #f6f7f9; color: #2f4263; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.kg-ask-chip:hover { background: #eaeef4; }
.kg-ask-err { color: #a8452f; font-size: 13px; margin: 0; }
.kg-ask-qa { border-top: 1px solid #e3e6ea; margin-top: 1.6cqw; padding-top: 1.4cqw; }
.kg-ask-q { font-weight: 700; font-size: 15px; margin: 0 0 1cqw; }
.kg-ask-q span { display: inline-block; background: #2f4263; color: #fff; font-size: 12px; padding: 2px 8px; margin-right: 8px; }
.kg-ask-as { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1cqw; }
.kg-ask-a { border: 1px solid #e3e6ea; border-top: 3px solid #2f4263; padding: 1cqw 1.2cqw; background: #fbfaf8; }
.kg-ask-a.kg-p--prudent_banker { border-top-color: #2f4263; }
.kg-ask-a.kg-p--passionate_consultant { border-top-color: #a8452f; }
.kg-ask-a.kg-p--cautious_tax_accountant { border-top-color: #365946; }
.kg-ask-a.kg-p--experienced_owner { border-top-color: #7f6120; }
.kg-ask-a .n { font-weight: 700; font-size: 14px; margin: 0 0 .4em; }
.kg-ask-a .n span { font-weight: 400; color: #6b7280; font-size: 12px; margin-left: 6px; }
.kg-ask-a .c { font-size: 14px; line-height: 1.8; margin: 0; white-space: pre-line; }
.kg-ask-a .c.pending { color: #8a8f98; }
@container (max-width: 760px) { .kg-ask { padding: 16px; } .kg-ask-as { grid-template-columns: 1fr; } }

/* ============================================================
   2026-11-24 マイページの見直し（「AIっぽい・羅列に見える」への対応）
   ・小さく字間の広いラベル見出しをやめ、ふつうの見出しにする
   ・数字 → 4人のAIの意見（全幅・2列）→ 相談の入口、の順に
   ・説明文を小さく薄くしすぎない（50〜70代の方が読む前提）
   ============================================================ */
.mk-eyebrow { letter-spacing: .04em; color: #43536b; }
.mk-note { color: #4b586b; letter-spacing: 0; }
.kg-h { margin: 0 0 .5em; font-family: "Shippori Mincho B1", serif; font-weight: 700; font-size: clamp(19px, 1.9cqw, 24px); letter-spacing: .02em; color: #17263c; line-height: 1.5; }
.kg-sub { margin: 0 0 1em; font-size: 15px; line-height: 1.8; color: #43536b; }

/* 4人のAIの意見：全幅・2列 */
.kg-hero { display: block; padding: 2.4cqw 2.6cqw; }
.kg-hero-body { max-width: none; }
.kg-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3cqw; margin-top: .4cqw; }
.kg-op { padding: 1.2em 0; }
.kg-op img { width: 60px; height: 60px; }
.kg-op .n { font-size: 17px; }
.kg-op .c { font-size: 16px; line-height: 1.9; }
.kg-more summary { font-size: 14px; }
.kg-more p { font-size: 15px; }
.kg-sum { margin-top: 1.6cqw; }
.kg-sum-h { font-size: clamp(16px, 1.5cqw, 20px); }
.kg-sum-row { font-size: 15px; }

/* 相談の入口 */
.kg-cta { display: grid; grid-template-columns: 1fr auto; gap: .3em 2cqw; align-items: center; margin-top: 1.6cqw; padding: 1.6cqw 2.2cqw; background: #fff; border: 1px solid rgba(23,38,60,.12); border-left: 4px solid #17263c; }
.kg-cta-t { margin: 0; font-weight: 700; font-size: 17px; color: #17263c; }
.kg-cta-s { margin: 0; grid-column: 1; font-size: 15px; line-height: 1.8; color: #43536b; }
.kg-cta .mk-btn { grid-column: 2; grid-row: 1 / span 2; }

/* 小さすぎた文字 */
.kg-obs-t { font-size: 16px; }
.kg-obs-b { font-size: 15px; color: #43536b; }
.kg-ab .q { font-size: 14px; color: #4b586b; }
.kg-cf .s { font-size: 14px; color: #4b586b; }
.kg-fit-row .t { font-size: 14.5px; }
.kg-warn-row p { font-size: 15px; }
.kg-warn-row .c { font-size: 13px; }
.kg-next { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .kg-ops { grid-template-columns: 1fr; }
  .kg-cta { grid-template-columns: 1fr; padding: 16px; }
  .kg-cta .mk-btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .kg-next { grid-template-columns: 1fr; }
}
/* ひとことの結論 */
.kg-lead { margin-top: 1.4cqw; padding: 1.4cqw 2.2cqw; background: #fff; border: 1px solid rgba(23,38,60,.12); }
.kg-lead-t { margin: 0; font-family: "Shippori Mincho B1", serif; font-weight: 700; font-size: clamp(18px, 1.7cqw, 22px); line-height: 1.6; color: #17263c; }
.kg-lead-s { margin: .4em 0 0; font-size: 16px; color: #17263c; }
.kg-lead-n { margin: .4em 0 0; font-size: 13px; color: #4b586b; }
@media (max-width: 760px) { .kg-lead { padding: 14px 16px; } }

/* 処理中の表示（2026-11-24・藤田さんの指摘：結果のボタンを押したあと、処理中だと分かりにくい） */
.mk-busy { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(251, 250, 248, .88); backdrop-filter: blur(2px); }
.mk-busy[hidden] { display: none; }
.mk-busy-on, .mk-busy-on body { overflow: hidden; }
.mk-busy-box { width: min(440px, 100%); background: #fff; border: 1px solid #d9d4ca; border-radius: 6px; padding: 32px 28px 26px; text-align: center; box-shadow: 0 12px 40px rgba(23, 38, 60, .14); font-family: inherit; }
.mk-busy-spin { display: inline-block; width: 44px; height: 44px; border: 4px solid #e4dfd5; border-top-color: #17263c; border-radius: 50%; animation: mk-spin .9s linear infinite; margin-bottom: 16px; vertical-align: middle; }
.mk-busy-t { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #17263c; }
.mk-busy-s { margin: 0 0 14px; font-size: 16px; color: #2e3a4a; min-height: 1.6em; }
.mk-busy-n { margin: 0; font-size: 13.5px; color: #6b6458; }
.mk-wait { display: flex; align-items: center; gap: 14px; }
.mk-wait .mk-busy-spin { width: 30px; height: 30px; border-width: 3px; margin: 0; flex: none; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mk-busy-spin { animation-duration: 2.4s; } }

/* 右下のチャットの入口（2026-11-24）。サポート窓口ではなく「プロの不動産の専門家にチャットで相談できる」と分かるように、
   ページの紺のボタンと色を分けて目立たせる（緑＝受付中）。最初の数秒だけ輪を広げて気づかせる */
.kg-chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 9000; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 16px 24px 16px 16px; background: #2e6b4c; color: #fff; border: 0; border-radius: 8px; box-shadow: 0 10px 28px rgba(23, 38, 60, .32); cursor: pointer; font: inherit; text-align: left; transition: transform .15s ease, background .15s ease; }
.kg-chat-launcher:hover { background: #245a3f; transform: translateY(-2px); }
.kg-chat-launcher:focus-visible { outline: 3px solid #17263c; outline-offset: 3px; }
.kg-chat-launcher[hidden] { display: none; }
.kg-chat-launcher::before { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: 0 0 0 0 rgba(46, 107, 76, .55); animation: kg-chat-ring 1.8s ease-out 1s 3; pointer-events: none; }
@keyframes kg-chat-ring { 0% { box-shadow: 0 0 0 0 rgba(46, 107, 76, .55); } 100% { box-shadow: 0 0 0 16px rgba(46, 107, 76, 0); } }
.kg-chat-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6b4c' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v10H9l-5 4z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E") center / 26px no-repeat; }
.kg-chat-tx { display: flex; flex-direction: column; gap: 4px; line-height: 1.4; }
.kg-chat-tx b { font-size: 16.5px; font-weight: 700; letter-spacing: .02em; }
.kg-chat-br { display: none; }
.kg-chat-tx small { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .92; }
.kg-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #9be3b4; box-shadow: 0 0 0 3px rgba(155, 227, 180, .25); font-style: normal; }
.kg-chat-badge { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #a8452f; color: #fff; font-size: 12px; font-style: normal; line-height: 22px; text-align: center; }
.kg-chat-badge[hidden] { display: none; }
/* 結果画面の相談の欄の「まずはチャットで専門家に聞く」。チャットが使えるときだけ出す */
.kg-cta .kg-cta-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.kg-chat-inline { display: none; padding: 10px 18px; background: #fff; color: #2e6b4c; border: 1.5px solid #2e6b4c; border-radius: 0; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.kg-chat-inline:hover { background: #eef6f1; }
.kg-chat-ready .kg-chat-inline { display: block; }
@media (prefers-reduced-motion: reduce) { .kg-chat-launcher::before { animation: none; } }
@media (max-width: 640px) {
  .kg-chat-launcher { right: 12px; bottom: 12px; padding: 12px 16px 12px 12px; gap: 10px; }
  .kg-chat-ic { width: 36px; height: 36px; background-size: 22px; }
  .kg-chat-tx b { font-size: 14.5px; }
  .kg-chat-br { display: inline; }
  .kg-chat-tx small { font-size: 11.5px; }
  .kg-cta .kg-cta-acts { grid-column: 1; grid-row: auto; }
}
/* 2026-11-24 「続きを読む」を押したくなるように：判断の文を先に出し、開いたら抜き出しの文は隠して全文だけを出す。押す場所はボタンの形に */
.kg-op .kg-more summary { display: inline-flex; align-items: center; gap: .4em; margin-top: .2em; padding: .35em .9em; border: 1px solid currentColor; border-radius: 0; color: #1c2b45; font-weight: 500; list-style: none; }
.kg-op .kg-more summary::-webkit-details-marker { display: none; }
.kg-op .kg-more summary::after { content: "›"; font-size: 1.1em; line-height: 1; }
.kg-op .kg-more[open] summary { display: none; }
.kg-op:has(.kg-more[open]) > div > .c { display: none; }
.kg-op .kg-more[open] p { margin-top: 0; color: #1c2b45; }


/* 2026-11-25 納品前点検：スマホで右下のチャットのボタンがフッターのリンク（プライバシーポリシーなど）に重なっていた。
   ボタンがある画面（body.has-chat-launcher）は、フッターの下をボタンの高さぶん空ける */
@media (max-width: 760px) {
  body.has-chat-launcher .mk-foot { padding-bottom: 116px; }
  /* 物件一覧などのタブ：4つが1行に入るよう詰める（「マイページ」が切れていた） */
  .pf-tabs a { padding: 10px 9px; font-size: 14px; }
  /* 4人の意見のまとめ：文字が枠の端に付いていた */
  .kg-sum { padding: 16px 16px 12px; }
}
@media (min-width: 761px) {
  body.has-chat-launcher .mk-foot .cr { padding-right: 340px; }
}
/* 2026-11-25 納品前点検：「招待する」などの小窓（modal）の上の部分が、サイトのヘッダーの下に隠れていた */
.modal { z-index: 10060 !important; }
.modal-backdrop { z-index: 10050 !important; }
.kg-legacy .modal .block-header { background: #17263c; }
.kg-legacy .modal .block-title { color: #fbfaf8; }

/* 2026-11-25 納品前点検：見出しが言葉の途中で折れないように（Chrome は文節で折る。ほかは均等に） */
.mk-h2, .mk-h1, h1.mk-h2 { word-break: auto-phrase; text-wrap: balance; }
/* 2026-11-25 納品前点検：スマホでは「検討していること」（売却・賃貸中・購入検討）を入力欄より前に出す。
   購入検討を選ぶと、いちばん上に売出価格の欄が出るため。右の列の中身を並べ直し、「結果を確認する」は最後のまま */
@container (max-width: 760px) {
  #diagnosis-form .fm-sheet { display: flex; flex-direction: column; }
  #diagnosis-form .fm-sheet > div:last-child { display: contents; }
  #diagnosis-form .fm-sheet .fm-type { order: -1; margin-top: 0 !important; }
  #diagnosis-form .fm-sheet .fm-main { order: 0; display: grid; gap: 20px; }
  #diagnosis-form .fm-sheet > div:last-child > * { order: 1; }
  #diagnosis-form .fm-sheet > div:last-child > .fm-type { order: -1; }
}
/* 表示している会社の切り替え（2026-11-25） */
.kg-orgbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 12px 3.2cqw; border-bottom: 1px solid rgba(23,38,60,.12); background: #f4efe6; font-size: 14px; }
.kg-orgbar label { font-weight: 700; color: #17263c; }
.kg-orgbar select.mk-input { width: auto; min-width: 14em; padding: 6px 10px; font-size: 14px; }
.kg-orgbar-note { color: #5b6577; font-size: 13px; }
@container (max-width: 760px) { .kg-orgbar { padding: 10px 16px; } .kg-orgbar-note { width: 100%; } }
