/* 合同会社松野不動産 ホームページ
   色：瀬戸内の海（青緑）を基調に、ことでんの黄色は駅名標と路線表示だけに使う */
:root {
  --sea: #1f5a6e;
  --sea-deep: #143c4a;
  --sea-soft: #dce9ec;
  --kotoden: #f2c230;
  --ink: #23292c;
  --stone: #5c676c;
  --mist: #eef3f4;
  --line: #cfdadd;
  --paper: #ffffff;
  --red: #b3261e;
  --plum: #5b2a86;
  --plum-deep: #45206a;
  --plum-soft: #f1ebf7;
  --pine: #6f8a4f;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1120px;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--gothic); font-size: 17px; line-height: 1.85; color: var(--ink); background: var(--paper); font-feature-settings: "palt" 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid var(--kotoden); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--mincho); line-height: 1.45; font-weight: 700; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 12px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 14px; line-height: 1.3; }
.brand-logo { height: 58px; width: auto; display: block; }
.brand .brand-sub { border-left: 1px solid var(--line); padding-left: 14px; }
.brand-sub { font-size: 13px; color: var(--stone); letter-spacing: .04em; }
.brand-name { font-family: var(--mincho); font-weight: 800; font-size: 26px; letter-spacing: .06em; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.header-tel { font-family: var(--mincho); font-weight: 800; font-size: 28px; color: var(--sea-deep); text-decoration: none; letter-spacing: .02em; display: flex; align-items: baseline; gap: 8px; }
.tel-label { font-family: var(--gothic); font-size: 13px; font-weight: 700; color: var(--stone); }
.header-holiday { font-size: 13px; color: var(--stone); }
.nav-toggle { display: none; }
.global-nav { background: var(--sea-deep); }
.global-nav ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; }
.global-nav li { flex: 1 1 auto; }
.global-nav a { display: block; text-align: center; color: #fff; text-decoration: none; padding: 13px 10px; font-weight: 500; font-size: 16px; border-bottom: 4px solid transparent; }
.global-nav a:hover { background: var(--sea); color: #fff; }
.global-nav a[aria-current="page"] { border-bottom-color: var(--kotoden); }
.fav-count:not(:empty) { display: inline-block; margin-left: 6px; min-width: 1.6em; padding: 0 6px; border-radius: 99px; background: var(--kotoden); color: var(--ink); font-size: 13px; line-height: 1.6; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; }
  .brand-logo { height: 42px; }
  .brand .brand-sub { display: none; }
  .header-contact { order: 3; width: 100%; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .header-tel { font-size: 24px; }
  .nav-toggle { display: inline-block; font: inherit; font-weight: 700; padding: 8px 14px; border: 2px solid var(--sea-deep); background: #fff; color: var(--sea-deep); border-radius: var(--r); cursor: pointer; }
  .global-nav { display: none; }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; padding: 0; }
  .global-nav a { text-align: left; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.12); border-left: 4px solid transparent; }
  .global-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.12); border-left-color: var(--kotoden); }
}

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.4; padding: 11px 20px; border-radius: var(--r); border: 2px solid transparent; text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--sea); color: #fff; border-color: var(--sea); }
.btn-primary:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn-outline { background: #fff; color: var(--sea-deep); border-color: var(--sea-deep); }
.btn-outline:hover { background: var(--sea-soft); }
.btn-ghost { background: var(--mist); color: var(--sea-deep); border-color: var(--line); }
.btn-ghost:hover { background: var(--sea-soft); }
.btn-ghost[aria-pressed="true"] { background: #fff6d6; border-color: var(--kotoden); color: var(--ink); }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn-lg { font-size: 18px; padding: 14px 26px; }
.btn-block { display: flex; width: 100%; }
.tel-big { font-family: var(--mincho); font-weight: 800; font-size: 30px; color: var(--sea-deep); text-decoration: none; letter-spacing: .02em; }
.tel-inline { font-weight: 700; }

/* ---------- ヒーロー（駅名標） ---------- */
.hero { background: var(--mist); padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-side { display: grid; gap: 20px; }
.ekimei { max-width: 560px; width: 100%; background: #fff; border: 2px solid #c9d1d4; border-radius: 4px; box-shadow: 0 2px 0 #c9d1d4; margin: 0 auto; }
.ekimei-board { text-align: center; padding: 20px 20px 14px; }
.ekimei-kana { font-size: 15px; letter-spacing: .5em; margin: 0 0 2px; color: var(--stone); padding-left: .5em; }
.ekimei-name { font-family: var(--mincho); font-weight: 800; font-size: clamp(40px, 7vw, 62px); line-height: 1.15; letter-spacing: .14em; margin: 0; padding-left: .14em; color: var(--ink); }
.ekimei-roman { font-size: 14px; letter-spacing: .2em; color: var(--stone); margin: 6px 0 0; }
.ekimei-band { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--kotoden); color: var(--ink); font-weight: 700; font-size: 15px; padding: 7px 14px; }
.ekimei-dir::before { content: "◀ "; font-size: 11px; }
.ekimei-dir-next { text-align: right; }
.ekimei-dir-next::before { content: none; }
.ekimei-dir-next::after { content: " ▶"; font-size: 11px; }
.ekimei-here { background: var(--sea-deep); color: #fff; padding: 2px 12px; border-radius: 3px; font-size: 14px; }
.hero-lead { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: .04em; line-height: 1.4; margin-bottom: .5em; }
.hero-sub { font-size: 18px; max-width: 34em; color: #33403f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-photo img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .hero { padding: 28px 0 36px; } .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-side { order: -1; } .hero-sub { font-size: 16px; } .ekimei-band { font-size: 13px; padding: 6px 10px; } .ekimei-here { font-size: 12px; padding: 2px 8px; } }

/* ---------- セクション共通 ---------- */
.section { padding: 56px 0; }
.section-mist { background: var(--mist); }
.section-tight { padding-top: 32px; padding-bottom: 56px; }
.sec-title { font-size: 26px; padding-bottom: 10px; margin-bottom: 22px; border-bottom: 2px solid var(--sea); }
.sub-title { font-size: 20px; margin-top: 1.6em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } .section { padding: 40px 0; } }
.more { margin-top: 20px; }
.empty, .list-note { color: var(--stone); }
.empty-box { background: var(--mist); border: 1px dashed var(--line); border-radius: var(--r); padding: 24px; }
.note { font-size: 14px; color: var(--stone); }
.lead { font-size: 19px; }

.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: 18px 0 22px; }
.page-head h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 4px 0 0; }
.crumbs { font-size: 14px; color: var(--stone); display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a::after { content: "／"; color: var(--line); margin-left: 4px; }

/* 新着情報 */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px; align-items: baseline; }
.news-list time { color: var(--stone); font-size: 15px; white-space: nowrap; }
.news-list a { grid-column: 1 / -1; font-weight: 500; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 1px 8px; border-radius: 3px; vertical-align: middle; }
.badge-new { background: var(--kotoden); color: var(--ink); }
.badge-deal { background: var(--sea-deep); color: #fff; }
.badge-sold { background: var(--stone); color: #fff; }

.cat-box .cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.cat-list a:hover { background: var(--mist); color: var(--sea-deep); }
.cat-count { color: var(--sea); font-weight: 700; white-space: nowrap; }

/* 物件カード */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card-link { display: block; text-decoration: none; color: var(--ink); height: 100%; }
.card-link:hover .card-title { color: var(--sea); text-decoration: underline; }
.photo { aspect-ratio: 4 / 3; background: var(--sea-soft); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-none { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--sea-deep); font-family: var(--mincho); font-weight: 700; font-size: 20px; background: repeating-linear-gradient(135deg, var(--sea-soft) 0 14px, #e6eff1 14px 28px); }
.photo-none-sub { font-family: var(--gothic); font-size: 13px; font-weight: 400; color: var(--stone); }
.photo-lg { border-radius: var(--r); }
.card-body { padding: 14px 16px 18px; }
.card-badges { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.type-tag { font-size: 13px; font-weight: 700; color: var(--sea-deep); border: 1px solid var(--sea); padding: 0 8px; border-radius: 3px; line-height: 1.6; }
.card-title { font-family: var(--gothic); font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.5; }
.card-price { font-family: var(--mincho); font-weight: 800; font-size: 26px; color: var(--red); margin: 0; line-height: 1.3; }
.card-spec { margin: 2px 0 0; font-size: 15px; }
.card-route { margin: 8px 0 0; font-size: 14px; color: var(--stone); line-height: 1.6; }
.route-chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--kotoden); padding: 0 6px; border-radius: 2px; margin-right: 4px; }

/* 売却の帯 */
.sell-band { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px; align-items: center; border: 2px solid var(--sea); border-radius: var(--r); padding: 32px 36px; }
.sell-band p { margin: 0; }
.sell-band-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (max-width: 760px) { .sell-band { grid-template-columns: 1fr; padding: 24px 20px; } }

/* 動画・地図 */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 20px; }
.video-grid figure { margin: 0; }
.video-grid figcaption { font-size: 15px; margin-top: 8px; }
.map { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.map-wide { aspect-ratio: 16 / 9; }
.map iframe { width: 100%; height: 100%; border: 0; }

.info-list { margin: 0; }
.info-list > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--stone); font-weight: 500; }
.info-list dd { margin: 0; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 12px 0; }
.link-list-col { grid-template-columns: 1fr; }

/* ---------- 物件一覧 ---------- */
.list-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 56px; }
.filter form { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: sticky; top: 12px; }
.filter h2 { font-size: 19px; margin-bottom: 8px; }
.f-label { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 4px; }
.filter select, .filter input[type=search] { width: 100%; }
.f-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.f-feat { margin: 16px 0; }
.f-feat summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.f-feat fieldset { border: 0; padding: 0; margin: 8px 0; }
.f-feat legend { font-size: 13px; color: var(--stone); padding: 0; }
.chk { display: inline-flex; align-items: center; gap: 6px; margin: 2px 12px 2px 0; font-size: 15px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--sea); }
.f-reset { display: block; text-align: center; margin-top: 10px; font-size: 14px; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-bar p { margin: 0; }
.list-bar strong { font-family: var(--mincho); font-size: 28px; color: var(--sea-deep); margin-right: 2px; }
.sort-form label { white-space: nowrap; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 15px; }
@media (max-width: 900px) { .list-layout { grid-template-columns: 1fr; } .filter form { position: static; } }

.prow { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "head head" "photo data" "photo actions"; gap: 12px 22px; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; margin-bottom: 18px; background: #fff; }
.prow-head { grid-area: head; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.prow-head h3 { font-family: var(--gothic); font-size: 19px; margin: 0; }
.prow-comment { margin: 4px 0 0; font-size: 15px; color: #3c4a4c; }
.prow-photo { grid-area: photo; text-decoration: none; }
.prow-data { grid-area: data; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 18px; margin: 0; font-size: 15px; }
.prow-data .d-wide { grid-column: 1 / -1; }
.prow-data dt { font-size: 13px; color: var(--stone); }
.prow-data dd { margin: 0; line-height: 1.6; }
.prow-data strong { font-family: var(--mincho); font-size: 24px; color: var(--red); font-weight: 800; }
.prow-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; align-self: end; }
.prow-actions .btn { font-size: 15px; padding: 8px 14px; }
@media (max-width: 640px) { .prow { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "data" "actions"; padding: 16px; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; }
.pager a, .pager span { min-width: 44px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.pager span[aria-current] { background: var(--sea); color: #fff; border-color: var(--sea); font-weight: 700; }

/* ---------- 物件詳細 ---------- */
.detail { padding-top: 28px; padding-bottom: 56px; }
.detail-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; margin-bottom: 36px; }
@media (max-width: 900px) { .detail-top { grid-template-columns: 1fr; } }
.gallery-main { margin: 0; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--mist); border-radius: var(--r); }
.gallery-main figcaption { font-size: 14px; color: var(--stone); min-height: 1.6em; margin-top: 6px; }
.gallery-thumbs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.gallery-thumbs button { padding: 0; border: 3px solid transparent; border-radius: 4px; background: none; cursor: pointer; width: 100%; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--kotoden); }
.gallery-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 2px; }
.summary-price { font-family: var(--mincho); font-weight: 800; font-size: 40px; color: var(--red); line-height: 1.2; margin-bottom: 14px; }
.summary-price small { font-size: 16px; color: var(--ink); font-family: var(--gothic); font-weight: 500; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.spec-table th { background: var(--mist); font-weight: 500; white-space: nowrap; width: 1%; color: #3a4648; }
.company-table th { width: 10em; }
.chips { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; background: var(--sea-soft); color: var(--sea-deep); padding: 2px 10px; border-radius: 99px; }
.summary-actions { display: grid; gap: 10px; margin-top: 18px; }
.appeal { background: var(--mist); border-left: 4px solid var(--sea); padding: 20px 24px; margin-bottom: 40px; border-radius: 0 var(--r) var(--r) 0; }
.appeal-lead { font-family: var(--mincho); font-size: 21px; font-weight: 700; margin: 0; }
.appeal .sub-title { margin-top: 1em; font-size: 17px; font-family: var(--gothic); }
.appeal p:last-child { margin-bottom: 0; }
.spec { margin-bottom: 40px; }
.spec-head { font-family: var(--gothic); font-size: 16px; background: var(--sea-deep); color: #fff; padding: 6px 12px; margin: 22px 0 0; border-radius: 4px 4px 0 0; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; margin: 0; border-left: 1px solid var(--line); border-top: 0; }
.spec-grid > div { display: grid; grid-template-columns: 10em minmax(0, 1fr); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid > div.wide { grid-column: 1 / -1; }
.spec-grid dt { background: var(--mist); padding: 8px 12px; font-size: 15px; color: #3a4648; }
.spec-grid dd { margin: 0; padding: 8px 12px; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .spec-grid { grid-template-columns: 1fr; } .spec-grid > div { grid-template-columns: 8.5em minmax(0, 1fr); } }
.provider { margin: 40px 0; }
.cta-box { background: var(--sea-deep); color: #fff; border-radius: var(--r); padding: 28px; text-align: center; margin: 40px 0; }
.cta-box .tel-big { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: center; align-items: center; }
.cta-box .btn-primary { background: var(--kotoden); border-color: var(--kotoden); color: var(--ink); }
.legal-notes { font-size: 14px; color: #3a4648; border-top: 1px solid var(--line); padding-top: 12px; }
.legal-notes summary { cursor: pointer; font-weight: 700; }

/* ---------- 会長日記 ---------- */
.diary-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-top: 32px; padding-bottom: 56px; }
@media (max-width: 900px) { .diary-layout { grid-template-columns: 1fr; } }
.diary-entry { margin-bottom: 48px; }
.diary-entry-list { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.diary-meta { color: var(--stone); font-size: 15px; display: flex; gap: 14px; margin-bottom: 4px; }
.diary-title { font-size: clamp(22px, 3vw, 30px); line-height: 1.5; }
.diary-title a { color: var(--ink); text-decoration: none; }
.diary-title a:hover { color: var(--sea); text-decoration: underline; }
.diary-body { font-family: var(--mincho); font-size: 18px; line-height: 2.05; max-width: 38em; font-weight: 500; }
.diary-body p { margin-bottom: 1.3em; text-indent: 1em; }
.diary-body .video { margin: 1.5em 0; }
.diary-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 8px 0 24px; }
.diary-images img { border-radius: 4px; width: 100%; }
.diary-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.diary-nav a { display: block; text-decoration: none; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.diary-nav span { display: block; font-size: 13px; color: var(--stone); }
.diary-next { grid-column: 2; text-align: right; }
.side-search label { font-weight: 700; display: block; margin-bottom: 4px; }
.side-search-row { display: flex; gap: 6px; }
.side-search-row input { flex: 1; min-width: 0; }
.side-title { font-size: 18px; margin-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.side-years details { border-bottom: 1px solid var(--line); }
.side-years summary { cursor: pointer; padding: 6px 0; font-weight: 700; }
.side-list { list-style: none; padding: 0 0 8px 1em; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.side-list a[aria-current] { font-weight: 700; color: var(--ink); }
.side-list a { display: block; padding: 5px 0; }
.side-old { margin-top: 24px; font-size: 15px; }

/* ---------- 会社紹介など ---------- */
.greeting { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; margin-bottom: 24px; }
.greeting:not(:has(.greeting-photo)) { grid-template-columns: 1fr; }
.greeting-photo { border-radius: 4px; width: 100%; }
.greeting-text { font-family: var(--mincho); font-size: 18px; line-height: 2; max-width: 38em; font-weight: 500; }
.greeting-text .sec-title { font-size: 26px; }
.greeting-sign { text-align: right; font-weight: 700; }
@media (max-width: 760px) { .greeting { grid-template-columns: 1fr; } .greeting-photo { max-width: 220px; } }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-grid figcaption { font-size: 15px; margin-top: 4px; }
.route-img { border-radius: 4px; border: 1px solid var(--line); }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px dotted var(--line); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 3px solid var(--sea); border-bottom: 3px solid var(--sea); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 18px 64px; border-left: 2px solid var(--sea-soft); margin-left: 21px; padding-left: 40px; }
.steps li:last-child { border-left-color: transparent; }
.steps li::before { content: counter(s); position: absolute; left: -22px; top: 10px; width: 42px; height: 42px; border-radius: 50%; background: var(--sea); color: #fff; font-family: var(--mincho); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-size: 18px; font-family: var(--mincho); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 18px; background: var(--mist); border-radius: var(--r); margin-bottom: 28px; }
.prose .sub-title { font-family: var(--gothic); font-size: 18px; }

/* ---------- フォーム ---------- */
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], input[type=date], input[type=time], input[type=month], select, textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 10px 12px; border: 1px solid #9fb0b5; border-radius: var(--r); background: #fff; color: var(--ink); }
textarea { line-height: 1.7; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.form { margin-top: 20px; }
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .field > .label { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { display: inline-block; font-size: 12px; background: var(--red); color: #fff; padding: 0 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; font-weight: 700; }
.radio { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.radio-inline { display: inline-flex; margin-right: 18px; }
.radio input { width: 20px; height: 20px; accent-color: var(--sea); }
.field-error { color: var(--red); font-weight: 700; font-size: 15px; margin: 6px 0 0; }
.alert { padding: 12px 16px; border-radius: var(--r); margin: 0 0 16px; }
.alert-error { background: #fdecea; color: #7a1712; border: 1px solid #f2b8b5; }
.alert-ok { background: #e7f4ec; color: #1d5133; border: 1px solid #b6dcc4; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-property { background: var(--sea-soft); padding: 12px 16px; border-radius: var(--r); margin-bottom: 20px; }
.form-property span { display: block; font-size: 13px; color: var(--stone); }
.sell-fields { background: var(--mist); padding: 16px 16px 2px; border-radius: var(--r); margin-bottom: 20px; }
.sell-fields[hidden] { display: none; }
.form-steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 0; counter-reset: fs; }
.form-steps li { flex: 1; text-align: center; padding: 8px; background: var(--mist); color: var(--stone); font-weight: 700; counter-increment: fs; border-right: 2px solid #fff; }
.form-steps li::before { content: counter(fs) ". "; }
.form-steps li[aria-current="step"] { background: var(--sea); color: #fff; }
.confirm-table td { white-space: normal; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.done-box { text-align: center; padding: 24px 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--sea-deep); color: #e6eef0; padding: 44px 0 20px; margin-top: 0; font-size: 15px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; gap: 32px; }
.footer-name { font-family: var(--mincho); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 6px; }
.footer-company p { margin: 0 0 4px; }
.footer-license { font-size: 13px; opacity: .8; margin-top: 8px !important; }
.footer-head { font-weight: 700; color: var(--kotoden); margin-bottom: 6px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { padding: 3px 0; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.admin-link { color: inherit !important; opacity: .7; text-decoration: none; margin-left: 1em; }
.copyright { text-align: center; font-size: 13px; opacity: .75; margin: 32px 0 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 84px; } }
.float-contact { display: none; }
@media (max-width: 760px) {
  .float-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; }
  .float-contact a { text-align: center; padding: 13px 6px; font-weight: 700; border-radius: var(--r); text-decoration: none; box-shadow: 0 2px 10px rgba(20,60,74,.3); }
  .fc-tel { background: var(--plum); color: #fff; }
  .fc-mail { background: var(--kotoden); color: var(--ink); }
}

/* =========================================================
   トップページ：実家のご相談向けレイアウト
   キービジュアルの紫は「相談の入口（電話）」だけに使い、他は既存の海色
   ========================================================= */
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } }

.kv { background: #f3f1f7; border-bottom: 1px solid var(--line); }
.kv picture, .kv-img { display: block; width: 100%; max-width: 1600px; margin: 0 auto; height: auto; }

.kv-cta { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0 20px; }
.kv-cta-inner { text-align: center; }
.kv-cta-lead { font-family: var(--mincho); font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); margin-bottom: 14px; }
.kv-cta-lead strong { color: var(--plum); font-size: 1.2em; }
.kv-cta-lead span { display: block; font-family: var(--gothic); font-weight: 400; font-size: 15px; color: var(--stone); margin-top: 2px; }
.kv-cta-actions, .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.kv-cta-note { font-size: 14px; color: var(--stone); margin: 12px 0 0; }
.btn-call { background: var(--plum); border-color: var(--plum); color: #fff; font-family: var(--mincho); font-size: 24px; letter-spacing: .02em; }
.btn-call:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: #fff; }
.btn-sub { display: block; font-family: var(--gothic); font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: .9; }
.kv-cta-actions .btn, .cta-actions .btn { flex-direction: column; gap: 0; min-width: 280px; padding: 10px 26px 12px; }
@media (max-width: 640px) { .kv-cta-actions .btn, .cta-actions .btn { min-width: 0; width: 100%; } }

.eyebrow { text-align: center; color: var(--pine); font-weight: 700; letter-spacing: .12em; font-size: 15px; margin-bottom: 6px; }
.big-title { text-align: center; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.5; margin-bottom: 28px; letter-spacing: .03em; }
.big-title-left { text-align: left; }
.center-lead { text-align: center; max-width: 40em; margin: -10px auto 32px; font-size: 18px; }
.center { text-align: center; }
.narrow-wide { max-width: 920px; }

.worry-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.worry-grid li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 22px 76px; line-height: 1.75; color: #3a4648; }
.worry-grid strong { display: block; font-family: var(--mincho); font-size: 20px; color: var(--ink); margin-bottom: 4px; }
.worry-no { position: absolute; left: 20px; top: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--plum-soft); color: var(--plum); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.worry-close { text-align: center; font-family: var(--mincho); font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); margin: 34px 0 0; padding: 18px; border-top: 2px dashed var(--line); color: var(--plum); }

.way-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.way { background: #fff; border-radius: 10px; padding: 24px; border-top: 5px solid var(--pine); }
.way h3 { font-size: 22px; margin-bottom: 8px; color: var(--sea-deep); }
.way p { margin: 0; }

.message { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.message-photo { margin: 0; }
.message-photo img { width: 100%; border-radius: 10px; }
.message-photo figcaption { text-align: center; font-family: var(--mincho); font-weight: 700; margin-top: 10px; }
.message-text .eyebrow { text-align: left; }
.message-text p { font-size: 17px; }
.message-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 760px) { .message { grid-template-columns: 1fr; gap: 24px; } .message-photo { max-width: 240px; margin: 0 auto; } .big-title-left { text-align: center; } .message-text .eyebrow { text-align: center; } }

.flow { list-style: none; padding: 0; margin: 0; counter-reset: none; display: grid; gap: 12px; }
.flow li { background: #fff; border-radius: 10px; padding: 18px 22px 18px 140px; position: relative; min-height: 72px; }
.flow li span { position: absolute; left: 0; top: 0; bottom: 0; width: 118px; display: flex; align-items: center; justify-content: center; background: var(--sea); color: #fff; font-weight: 700; border-radius: 10px 0 0 10px; letter-spacing: .06em; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 51px; bottom: -12px; border: 8px solid transparent; border-top-color: var(--sea); z-index: 1; }
.flow strong { display: block; font-family: var(--mincho); font-size: 19px; }
@media (max-width: 560px) { .flow li { padding: 54px 18px 16px; } .flow li span { width: auto; right: 0; bottom: auto; height: 38px; border-radius: 10px 10px 0 0; } .flow li:not(:last-child)::after { display: none; } }

.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 58px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--sea); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.faq summary::after { content: "＋"; position: absolute; right: 20px; top: 16px; color: var(--sea); font-size: 20px; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0; padding: 0 22px 20px 58px; position: relative; }
.faq details p::before { content: "A"; position: absolute; left: 18px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }

.cta-section { background: linear-gradient(180deg, #f6f2fa, #ece4f4); }
.cta-panel { text-align: center; }
.cta-logo { margin: 0 auto 8px; width: 90px; height: 90px; }
.cta-panel h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; color: var(--plum-deep); }
.cta-panel p { font-size: 17px; }
.cta-note { font-size: 14px !important; color: var(--stone); margin-top: 14px; }

.sec-title small { font-family: var(--gothic); font-size: 14px; font-weight: 500; color: var(--stone); margin-left: 10px; }
.footer-name { display: flex; align-items: center; gap: 10px; }
.footer-icon { width: 44px; height: 44px; background: #fff; border-radius: 8px; padding: 3px; }

/* =========================================================
   売買／賃貸の切り替え
   賃貸は松の緑（ロゴの色）で区別する
   ========================================================= */
.type-tag-rent { color: #3f5a28; border-color: var(--pine); background: #f1f5ea; }
.card-price small { font-size: 15px; font-family: var(--gothic); font-weight: 500; color: var(--ink); margin-left: 2px; }
.card-sub { margin: 0; font-size: 14px; color: var(--stone); }
.prow-rent { border-left: 4px solid var(--pine); }

.deal-tabs-wrap { padding-top: 22px; }
.deal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 3px solid var(--sea-deep); }
.deal-tabs a { display: block; text-align: center; padding: 12px 10px 10px; text-decoration: none; color: var(--sea-deep); background: var(--mist); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; line-height: 1.4; }
.deal-tabs a + a { margin-left: 6px; }
.deal-tabs strong { display: block; font-family: var(--mincho); font-size: 21px; }
.deal-tabs span { font-size: 13px; color: var(--stone); }
.deal-tabs a[aria-current="page"] { background: var(--sea-deep); color: #fff; border-color: var(--sea-deep); }
.deal-tabs a[aria-current="page"] span { color: #d7e6ea; }
.deal-tabs a:not([aria-current]):hover { background: var(--sea-soft); }
.cat-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips a { display: inline-block; padding: 5px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 15px; background: #fff; }
.cat-chips a[aria-current="page"] { background: var(--sea); color: #fff; border-color: var(--sea); font-weight: 700; }
.list-layout { padding-top: 20px; }
.lend-note { margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--pine); border-radius: var(--r); background: #f7f9f2; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.lend-note p { margin: 0; flex: 1 1 320px; }
.lend-note strong { display: block; font-family: var(--mincho); font-size: 18px; color: #3f5a28; }

.summary-label { font-family: var(--gothic); font-size: 15px; font-weight: 700; color: var(--ink); margin-right: 8px; vertical-align: middle; }
.summary-sub { margin: -8px 0 14px; color: var(--stone); }

.cat-group { font-family: var(--gothic); font-size: 16px; margin: 18px 0 0; }
.cat-group:first-of-type { margin-top: 0; }
.cat-group a { text-decoration: none; color: var(--sea-deep); }
.cat-group a::after { content: " ›"; }
.footer-head-2 { margin-top: 16px; }
.way-link { margin-top: 10px !important; font-weight: 700; }
.per-month { font-size: 14px; margin-left: 2px; }
