/* 不動産売却・一括査定ガイド｜KSSホーム 共通デザイン（ヘッダー・フッター・トップページ）
   旧テーマ（wp-content/themes/01/css/style.css）と混ざらないよう、クラス名はすべて k- で始める */
:root {
  --k-green: #1d7a35;
  --k-green-dark: #1d6e2f;
  --k-green-pale: #eef7ea;
  --k-cta: #c2410c;
  --k-ink: #1f2a24;
  --k-ink2: #36423b;
  --k-ink3: #4a554e;
  --k-line: #dfe6dc;
  --k-gray: #f3f5f2;
}
.k-root, .k-root * { box-sizing: border-box; }
.k-root { font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; color: var(--k-ink); line-height: 1.7; font-size: 16px; }
.k-root a { color: var(--k-green-dark); }
.k-root a:hover { color: #134d20; }
.k-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.k-root h1, .k-root h2, .k-root h3, .k-root p, .k-root ul, .k-root ol { margin: 0; }

/* ---------- ヘッダー ---------- */
.k-header { background: #fff; border-bottom: 1px solid #e1e6df; }
.k-header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.k-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--k-ink) !important; }
.k-brand__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--k-green); display: flex; align-items: center; justify-content: center; flex: none; }
.k-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.k-brand__name { font-weight: 900; font-size: 22px; }
.k-brand__sub { font-size: 11px; color: var(--k-ink3); }
.k-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; font-weight: 500; }
.k-nav a { color: var(--k-ink) !important; text-decoration: none; padding: 6px 0; }
.k-nav a:hover { color: var(--k-green-dark) !important; text-decoration: underline; }
.k-menu { display: none; }
@media (max-width: 820px) {
  .k-nav { display: none; }
  .k-menu { display: block; }
  .k-menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #c7d1c4; border-radius: 10px; font-size: 13px; font-weight: 700; padding: 0 12px; }
  .k-menu summary::-webkit-details-marker { display: none; }
  .k-menu[open] .k-menu__list { display: flex; }
  .k-menu__list { display: none; flex-direction: column; position: absolute; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e1e6df; padding: 8px 24px 16px; z-index: 50; }
  .k-menu__list a { padding: 12px 0; border-bottom: 1px solid #eef1ec; color: var(--k-ink) !important; text-decoration: none; font-weight: 700; }
  .k-header { position: relative; }
}

/* ---------- 共通の見出し・カード ---------- */
.k-sec { padding: 64px 0; }
.k-sec--gray { background: var(--k-gray); }
.k-sec--pale { background: var(--k-green-pale); padding: 56px 0; }
.k-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.k-eyebrow { font-size: 13px; font-weight: 700; color: var(--k-green-dark); letter-spacing: 0.08em; }
.k-h2 { font-size: 30px; font-weight: 900; line-height: 1.4; }
.k-lead { color: var(--k-ink2); }
.k-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.k-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.k-g6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.k-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--k-line); border-radius: 14px; text-decoration: none; color: var(--k-ink) !important; background: #fff; }
a.k-card:hover { border-color: var(--k-green); box-shadow: 0 6px 18px rgba(31,42,36,0.08); }
.k-card__ttl { font-size: 18px; font-weight: 900; line-height: 1.5; }
.k-card__txt { font-size: 14px; color: var(--k-ink2); }
.k-card__more { font-size: 14px; font-weight: 700; color: var(--k-green-dark); margin-top: auto; }
.k-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border-radius: 12px; font-weight: 900; text-decoration: none; }
.k-btn--cta { background: var(--k-cta); color: #fff !important; }
.k-btn--cta:hover { background: #a3360a; }
.k-btn--green { background: var(--k-green); color: #fff !important; }
.k-chip { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; background: #fff; border-radius: 999px; font-size: 14px; text-decoration: none; }
@media (max-width: 820px) {
  .k-g3, .k-g2 { grid-template-columns: minmax(0, 1fr); }
  .k-g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-h2 { font-size: 24px; }
  .k-sec { padding: 48px 0; }
}

/* ---------- トップ：最初の画面 ---------- */
.k-hero { background: linear-gradient(180deg, #eef7ea 0%, #ffffff 100%); padding: 56px 0 64px; }
.k-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.k-hero__txt { display: flex; flex-direction: column; gap: 20px; }
.k-badge { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--k-green-dark); background: #fff; border: 1px solid #cfe3c8; border-radius: 999px; padding: 4px 14px; }
.k-h1 { font-size: 42px; line-height: 1.35; font-weight: 900; }
.k-hero__lead { font-size: 17px; color: var(--k-ink2); }
.k-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--k-ink2); list-style: none; padding: 0; }
.k-checks li { display: flex; align-items: center; gap: 6px; }
.k-box { background: #fff; border: 2px solid var(--k-green); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(31,42,36,0.08); }
.k-box__ttl { font-size: 20px; font-weight: 900; line-height: 1.5; }
.k-box__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.k-box__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.k-box__num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--k-green-pale); color: var(--k-green-dark); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.k-box .k-btn { min-height: 56px; font-size: 18px; }
.k-note { font-size: 12px; color: var(--k-ink3); }
@media (max-width: 820px) {
  .k-hero { padding: 36px 0 44px; }
  .k-hero__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .k-h1 { font-size: 30px; }
}

/* ---------- トップ：小さめの悩み・流れ・費用 ---------- */
.k-more { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--k-ink2); }
.k-step { background: #fff; border: 1px solid var(--k-line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.k-step__no { font-size: 13px; font-weight: 900; color: var(--k-green-dark); }
.k-step__ttl { font-weight: 900; }
.k-step__txt { font-size: 13px; color: var(--k-ink3); }
.k-cost { background: #fff8ef; border: 1px solid #f2dcc1; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.k-cost h2 { font-size: 24px; font-weight: 900; }
.k-cost ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--k-ink2); }
.k-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.k-point { background: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.k-point__ttl { font-weight: 900; }
.k-point__txt { font-size: 14px; color: var(--k-ink2); }
.k-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.k-search input { flex: 1 1 280px; min-height: 48px; border: 1px solid #c7d1c4; border-radius: 10px; padding: 0 14px; font: inherit; background: #fff; }
.k-search button { min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--k-green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-sup { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: center; border: 1px solid var(--k-line); border-radius: 16px; padding: 32px; }
.k-sup h2 { font-size: 24px; font-weight: 900; }
.k-vh { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) { .k-points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- フッター ---------- */
.k-footer { background: var(--k-ink); color: #dfe6dc; padding: 40px 0; margin-top: 0; }
.k-footer__in { display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.k-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.k-footer__nav a { color: #fff !important; }
.k-footer__copy { font-size: 12px; color: #b9c4b5; }
.k-pagetop { text-align: center; padding: 24px 0; }
.k-pagetop a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 24px; border: 1px solid #c7d1c4; border-radius: 999px; color: var(--k-ink) !important; text-decoration: none; font-size: 14px; background: #fff; }

/* 旧テーマの見出し色・背景色を打ち消す */
.k-root h1, .k-root h2, .k-root h3 { color: var(--k-ink); background: none; border: 0; padding: 0; }
.k-root .k-eyebrow { color: var(--k-green-dark); }
.k-header, .k-pagetop { background: #fff; }
div.k-root { background: #fff; }
.k-sec { background: #fff; }
.k-sec--gray { background: var(--k-gray); }
.k-sec--pale { background: var(--k-green-pale); }

/* ---------- 解説ページ（type: guide） ---------- */
.k-guide { padding: 16px 0 56px; }
.k-guide .breadcrumb { margin: 0 0 20px; }
.k-glayout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.k-garticle { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.k-ghead { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--k-line); }
.k-root .k-gh1 { font-size: 30px; line-height: 1.45; font-weight: 900; }
.k-glead { font-size: 17px; color: var(--k-ink2); }
.k-gmeta { font-size: 13px; color: var(--k-ink3); }
.k-gpoints { background: var(--k-green-pale); border-radius: 14px; padding: 20px 24px; }
.k-gpoints__ttl { font-weight: 900; margin-bottom: 8px !important; color: var(--k-green-dark); }
.k-gpoints ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.k-gpoints li { padding-left: 1.4em; position: relative; }
.k-gpoints li::before { content: "✓"; position: absolute; left: 0; color: var(--k-green); font-weight: 900; }
.k-gtoc { border: 1px solid var(--k-line); border-radius: 14px; padding: 18px 24px; }
.k-gtoc__ttl { font-weight: 900; margin-bottom: 6px !important; }
.k-gtoc ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.k-gbody { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.9; }
.k-root .k-gbody h2 { font-size: 23px; line-height: 1.5; font-weight: 900; margin-top: 28px; padding: 0 0 10px 14px; border-left: 5px solid var(--k-green); border-bottom: 1px solid var(--k-line); scroll-margin-top: 16px; }
.k-root .k-gbody h3 { font-size: 19px; line-height: 1.5; font-weight: 700; margin-top: 12px; }
.k-gbody ul, .k-gbody ol { padding-left: 1.5em; display: flex; flex-direction: column; gap: 6px; }
.k-gbody ul { list-style: disc; }
.k-gbody ol { list-style: decimal; }
.k-gbody strong { background: linear-gradient(transparent 62%, #fde7c8 62%); }
.k-gbody table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.k-gbody th, .k-gbody td { border: 1px solid var(--k-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.k-gbody th { background: var(--k-gray); font-weight: 700; white-space: nowrap; }
.k-gbody blockquote { margin: 0; background: #fff8ef; border: 1px solid #f2dcc1; border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.k-gbody blockquote p + p { margin-top: 6px; }
.k-gtable { overflow-x: auto; }
.k-gcta { border: 2px solid var(--k-cta); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: #fffaf5; margin: 8px 0; }
.k-gcta__ttl { font-size: 19px; font-weight: 900; line-height: 1.5; }
.k-gcta__txt { font-size: 15px; color: var(--k-ink2); line-height: 1.8; }
.k-gcta .k-btn { align-self: flex-start; min-height: 54px; font-size: 17px; padding: 0 28px; }
.k-grel { display: flex; flex-direction: column; gap: 12px; }
.k-root .k-grel__ttl { font-size: 18px; font-weight: 900; }
.k-grel .k-chips { list-style: none; padding: 0; }
.k-grel .k-chip { border: 1px solid var(--k-line); }
.k-grel__list { padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.k-gsrc { display: flex; flex-direction: column; gap: 10px; background: var(--k-gray); border-radius: 14px; padding: 20px 24px; font-size: 14px; }
.k-gsrc ul { padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; list-style: disc; }
.k-gside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.k-gside__box { border: 1px solid var(--k-line); border-radius: 14px; padding: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.k-gside__ttl { font-weight: 900; font-size: 15px; }
.k-gside__box ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.k-gside__box--cta { background: #fffaf5; border-color: #f2c9a8; }
.k-gside__box--cta .k-btn { min-height: 46px; font-size: 15px; }
@media (max-width: 900px) {
  .k-glayout { grid-template-columns: minmax(0, 1fr); }
  .k-gside { position: static; }
  .k-root .k-gh1 { font-size: 24px; }
  .k-root .k-gbody h2 { font-size: 20px; }
  .k-gcta .k-btn { align-self: stretch; }
}
