/* 物件一覧・物件詳細ページの共通スタイル。トップページと同じ色・書体で揃える */
:root {
  --paper: #f4f6f8; --ink: #1b2a3a; --line: #2c4a6e; --muted: #5b6b7d; --sheet: #ffffff; --edge: #dde3ea;
  --accent: #a4553a;
  --font-display: "Shippori Mincho", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0f1d2e; --ink: #e6eef8; --line: #9cc3ff; --muted: #9fb2c9; --sheet: #162a42; --edge: #26405f; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0f1d2e; --ink: #e6eef8; --line: #9cc3ff; --muted: #9fb2c9; --sheet: #162a42; --edge: #26405f; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.9; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 48px; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; }

.top { position: relative; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 12px max(16px, env(safe-area-inset-left, 0px)) 0; background: #2a63b0 url(sakurajima.jpg) center 55% / cover no-repeat; }
.top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 70, .25), rgba(10, 30, 70, .55)); }
.top > * { position: relative; z-index: 1; }
.bar { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 999px; padding: 12px clamp(20px, 3vw, 32px); color: #1b2a3a; }
.logo { text-decoration: none; display: inline-grid; gap: 4px; }
.logo .pre { font-size: 11px; letter-spacing: .5em; }
.logo .word { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: .12em; line-height: 1; }
.logo .word span { color: #1f6fb8; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.bar nav a { text-decoration: none; }
.bar nav .tel { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 14px; font-family: var(--font-mono); }
.top h1 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: clamp(28px, 4.4vw, 44px); letter-spacing: .08em; margin: 0; padding: 48px 0 8px; text-shadow: 0 2px 10px rgba(5, 20, 50, .5); }
.top .sub { color: rgba(255, 255, 255, .92); margin: 0; padding-bottom: 40px; text-shadow: 0 1px 6px rgba(5, 20, 50, .6); }
.crumb { font-size: 14px; color: var(--muted); margin: 20px 0; }
.crumb a { color: var(--line); }

.ph { background: #fff3a8; color: #6a4b00; border: 1px dashed #c99a00; border-radius: 6px; padding: 0 6px; font-weight: 500; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.filters button { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--sheet); color: var(--line); border-radius: 999px; padding: 6px 20px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--line); color: var(--paper); }

.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card { background: var(--sheet); border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; text-decoration: none; display: grid; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(20, 40, 70, .15); }
.pic { aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic svg { width: 46%; }
.pic .soon { position: absolute; bottom: 10px; right: 12px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .35); border-radius: 999px; padding: 0 10px; }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; color: #14263a; font-weight: 700; font-size: 13px; padding: 2px 12px; border-radius: 999px; }
.card .body { padding: 18px 22px 22px; display: grid; gap: 4px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--line); line-height: 1.3; }
.card h2 { font-size: 18px; margin: 0; }
.card .meta { font-size: 14px; color: var(--muted); }
.card .go { margin-top: 8px; font-weight: 700; color: var(--line); font-size: 15px; }

/* 詳細 */
.detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.gallery .main { border-radius: 20px; overflow: hidden; border: 1px solid var(--edge); }
.gallery .main .pic { aspect-ratio: 3 / 2; }
.gallery .main .cap { position: absolute; left: 14px; bottom: 12px; color: #fff; background: rgba(0, 0, 0, .4); border-radius: 999px; padding: 0 12px; font-size: 14px; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #14263a; font-size: 22px; cursor: pointer; }
.gallery .prev { left: 10px; } .gallery .next { right: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; display: grid; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs .pic { aspect-ratio: 4 / 3; }
.thumbs .pic svg { width: 60%; }
.thumbs span.t { font-size: 11px; color: var(--muted); padding: 2px 0; background: var(--sheet); }
.side { background: var(--sheet); border: 1px solid var(--edge); border-radius: 20px; padding: 24px; display: grid; gap: 10px; position: sticky; top: 16px; }
.side h1 { font-size: 22px; margin: 0; line-height: 1.5; }
.side .catch { color: var(--muted); margin: 0; font-size: 15px; }
.points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 15px; }
.points li::before { content: "◎ "; color: var(--accent); }
.cta { display: grid; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--edge); }
.cta a { display: block; text-align: center; text-decoration: none; border-radius: 999px; padding: 12px; font-weight: 700; }
.cta .call { background: var(--accent); color: #fff; font-size: 20px; font-family: var(--font-mono); }
.cta .mail { border: 1px solid var(--line); color: var(--line); }
.specs { margin-top: 32px; background: var(--sheet); border: 1px solid var(--edge); border-radius: 20px; padding: 8px 24px 16px; }
.specs h2, .sec h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: .06em; margin: 16px 0 8px; }
.specs table { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.specs th { width: 32%; color: var(--muted); font-weight: 500; white-space: nowrap; }
.sec { margin-top: 32px; }
.mapbox { border: 1px dashed var(--edge); border-radius: 20px; background: var(--sheet); padding: 32px; text-align: center; color: var(--muted); }
.back { display: inline-block; margin-top: 32px; text-decoration: none; color: var(--line); font-weight: 700; }
footer.co { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--edge); font-size: 13px; color: var(--muted); display: grid; gap: 2px; }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
  .bar { border-radius: 24px; }
}

/* 間取り図の番号と写真ダイアログ */
.planwrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; }
.plan img { display: block; width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); color: #fff; font: 700 17px var(--font-body); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); display: grid; place-items: center; padding: 0; }
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2s ease-out infinite; }
.pin:hover, .pin.on { background: #1f6fb8; }
@keyframes ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin::after { animation: none; opacity: 0; } }
.planlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.planlist button { width: 100%; text-align: left; font: inherit; font-size: 16px; background: var(--sheet); color: var(--ink); border: 1px solid var(--edge); border-radius: 14px; padding: 10px 14px; cursor: pointer; display: flex; gap: 12px; align-items: center; }
.planlist button b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.planlist button:hover, .planlist button.on { border-color: var(--accent); }
.viewer { border: 0; border-radius: 20px; padding: 12px; max-width: min(92vw, 900px); background: var(--sheet); color: var(--ink); }
.viewer::backdrop { background: rgba(5, 15, 30, .75); }
.viewer figure { margin: 0; }
.viewer img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 12px; }
.viewer figcaption { text-align: center; font-weight: 700; padding: 8px 0 4px; }
.vnav { display: flex; gap: 8px; justify-content: center; }
.vnav button { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--sheet); color: var(--line); border-radius: 999px; padding: 6px 18px; cursor: pointer; }
@media (max-width: 860px) { .planwrap { grid-template-columns: 1fr; } .pin { width: 30px; height: 30px; font-size: 15px; } }
.gallery .main .pic { background: #1b2a3a !important; } .gallery .main .pic img { object-fit: contain; }

/* ロゴ：トップと同じく明朝体で落ち着いた表記 */
.logo .pre { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .25em; }
.logo .word span { color: inherit; }
.logo { display: inline-flex; align-items: center; gap: 10px; }

/* 写真は切らずに全体を表示する */
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain !important; background: #1b2a3a; }

/* Google マップ */
.mapbox { padding: 12px 12px 20px; }
.gmap-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; text-decoration: none; color: var(--ink); padding: 18px; border-radius: 14px; background: var(--paper); margin-bottom: 8px; }
.gmap-link svg { width: 36px; height: 36px; }
.gmap-link b { color: var(--line); }
.mapbox a { color: var(--line); font-weight: 700; }

/* メニューは色付きの丸ボタン */
.bar nav { gap: 8px; align-items: center; }
.bar nav a:not(.tel) { background: #2c4a6e; color: #fff; border-radius: 999px; padding: 2px 14px; }
.bar nav a:not(.tel):hover { background: #1f3756; }

/* 間取り図と写真を並べて見比べる */
.planwrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pview { position: sticky; top: 16px; display: grid; gap: 10px; }
.pphoto { margin: 0; background: #1b2a3a; border-radius: 20px; overflow: hidden; }
.pphoto img { display: block; width: 100%; height: min(56vh, 460px); object-fit: contain; }
.pphoto figcaption { color: #fff; font-weight: 700; padding: 8px 14px; font-size: 15px; }
.pview .planlist { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pview .planlist button { padding: 6px 10px; font-size: 14px; }
@media (max-width: 860px) {
  .planwrap { grid-template-columns: 1fr; }
  .pview { position: static; }
  .pphoto img { height: 42vh; }
}

/* 撮影方向の矢印（番号の丸から外向きに伸びる三角） */
.pin .dir { position: absolute; inset: -16px; pointer-events: none; }
.pin .dir::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 14px solid var(--accent); }
.pin.on .dir::before, .pin:hover .dir::before { border-bottom-color: #1f6fb8; }

/* 写真ごとのコメントと物件紹介文 */
.pnote { margin: 10px 2px 4px; line-height: 1.8; color: var(--ink, #14263a); min-height: 1.8em; }
.vnote { margin: 0; padding: 0 14px 12px; color: #e8edf2; font-size: 14px; line-height: 1.7; }
.story { margin-top: 40px; padding: 28px 32px; background: var(--sheet); color: var(--ink); border: 1px solid var(--edge); border-radius: 20px; }
.story h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.5; letter-spacing: .04em; margin: 0 0 16px; }
.story p { margin: 0 0 1em; line-height: 2; font-size: 16px; }
.story p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .story { padding: 20px 18px; } .story h2 { font-size: 21px; } }

/* 写真の上の見出し */
.headline { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.45; letter-spacing: .05em; color: var(--ink); margin: 8px 0 22px; padding-left: 16px; border-left: 5px solid var(--accent); }
.headline span { display: inline-block; }
