@import url('/fonts/zen-kaku-gothic-new/400.css');
@import url('/fonts/zen-kaku-gothic-new/700.css');
@import url('/fonts/noto-serif-jp/700.css');
@import url('/fonts/biz-udpgothic/700.css');

/* 価格はJSの文字列をそのまま使い、数字だけを大きく組む。 */
@font-face {
  font-family: 'Property Price';
  src: url('/fonts/cormorant-garamond/files/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+002C, U+002E, U+0030-0039;
  size-adjust: 250%;
}
@font-face {
  font-family: 'Property Detail Price';
  src: url('/fonts/cormorant-garamond/files/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+002C, U+002E, U+0030-0039;
  size-adjust: 340%;
}
@font-face {
  font-family: 'Property Figures';
  src: url('/fonts/biz-udpgothic/files/biz-udpgothic-latin-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+002C, U+002E, U+0030-0039;
}

:root {
  color-scheme: light;
  --brand: #20201e;
  --cta: #b4441f;
  --ink: #20201e;
  --muted: #5e5e59;
  --canvas: #fafaf8;
  --intro-image: url('/img/hero-sample.svg');
  --paper: #fff;
  --line: #cececa;
  --soft-brand: #efefec;
  --accent-line: #20201e;
  --footer-bg: #efefec;
  --danger: #a12d34;
  --banner: #a51f2b;
  --on-solid: #fff;
  --input-line: #7b7b75;
  --heading-font: 'Noto Serif JP', serif;
  --heading-weight: 700;
  --numeric-font: 'Property Figures', 'Zen Kaku Gothic New', sans-serif;
  --strong: 700;
  --price-weight: 600;
  --radius: 0;
  --button-radius: 2px;
  --badge-radius: 0;
  --input-radius: 2px;
  --mark-radius: 0;
  --gutter: 32px;
  --card-gap: 56px 40px;
  --card-padding: 24px 0 0;
  --photo-ratio: 3 / 2;
  --card-shadow: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
a { color: var(--ink); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 4px; }
h1, h2, h3, p, dl, ul { margin-top: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: var(--heading-weight); line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }
h1 { margin-bottom: 24px; font-size: clamp(30px, 3.5vw, 48px); letter-spacing: .02em; }
h2 { margin-bottom: 24px; font-size: 24px; }
h3 { font-size: 20px; }
p { margin-bottom: 20px; overflow-wrap: anywhere; }
fieldset { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
legend { max-width: 100%; margin-bottom: 12px; padding: 0; font-weight: var(--strong); }
#env-banner { position: sticky; top: 0; z-index: 50; padding: 8px var(--gutter); background: var(--banner); color: var(--on-solid); text-align: center; font-size: 16px; font-weight: var(--strong); line-height: 1.6; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; min-height: 44px; padding: 12px 18px; transform: translateY(-160%); background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 104px; padding: 20px max(var(--gutter), calc((100% - 1240px) / 2)); border-bottom: 1px solid var(--ink); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; min-height: 44px; color: var(--ink); font-family: var(--heading-font); font-weight: var(--heading-weight); font-size: 24px; line-height: 1.5; text-decoration: none; }
.brand-logo { flex: 0 1 auto; width: auto; max-width: 100%; height: 32px; object-fit: contain; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 16px; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.page-shell { width: min(1240px, calc(100% - var(--gutter) * 2)); min-height: 55vh; margin: 0 auto; padding: 48px 0 96px; }
.narrow-shell { max-width: 860px; }
.page-intro { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 48px; padding: 16px 0 56px; border-bottom: 1px solid var(--ink); }
/* 写真への差し替えは --intro-image のみ。背景だけを薄くし、文字の濃度を保つ。 */
.page-intro::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--intro-image); background-repeat: no-repeat; background-size: cover; background-position: center bottom; opacity: .12; }
.page-intro::before { content: 'PROPERTY / SENDAGAYA'; grid-column: 1 / -1; margin-bottom: 16px; color: var(--muted); font-family: var(--numeric-font); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.page-intro .eyebrow { grid-column: 1 / -1; margin: 0; }
.eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 16px; font-weight: var(--strong); letter-spacing: .06em; }
.page-intro h1 { max-width: 13em; margin: 0; font-size: clamp(34px, 4.3vw, 60px); line-height: 1.55; letter-spacing: .04em; }
.page-intro > p:last-child { max-width: 23em; margin: 0 0 8px; color: var(--muted); }
.mobile-break { display: inline; } /* パソコンでも「この街で、／次の暮らしを。」で改行する（「暮ら／しを」と切れないように） */
.page-heading { margin: 16px 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.list-toolbar h2 { display: flex; align-items: baseline; gap: 20px; margin: 0; font-size: 24px; }
.list-toolbar h2::before { content: '01'; color: var(--muted); font-family: var(--numeric-font); font-size: 16px; }
.deal-tabs { display: inline-flex; gap: 0; padding: 0; border-bottom: 1px solid var(--line); }
.deal-tabs button { min-width: 104px; min-height: 52px; margin-bottom: -1px; padding: 10px 24px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); }
.deal-tabs button[aria-pressed='true'] { border-bottom-color: var(--ink); color: var(--ink); font-weight: var(--strong); }
.deal-tabs button:hover { background: var(--soft-brand); }
#bukken-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: var(--card-gap); counter-reset: property; }
.property-card { display: flex; flex-direction: column; min-width: 0; padding-bottom: 24px; border-bottom: 1px solid var(--ink); counter-increment: property; }
.card-media { position: relative; min-width: 0; aspect-ratio: var(--photo-ratio); background: var(--soft-brand); overflow: hidden; }
.card-media::after { content: counter(property, decimal-leading-zero); position: absolute; top: 0; left: 0; min-width: 44px; padding: 6px 12px; background: var(--canvas); color: var(--ink); font-family: var(--numeric-font); font-size: 16px; letter-spacing: .04em; pointer-events: none; }
.card-photos { position: absolute; inset: 0; display: flex; width: 100%; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: pointer; }
.card-photos::-webkit-scrollbar { display: none; }
.card-photos > img { flex: 0 0 100%; min-width: 0; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; }
.card-photos:focus-visible { outline-offset: -3px; }
.card-nav { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 0; transform: translateY(-50%); border: 1px solid var(--input-line); border-radius: var(--button-radius); background: var(--paper); color: var(--ink); box-shadow: none; font-size: 16px; }
.card-prev { left: 8px; }
.card-next { right: 8px; }
.card-nav > span { display: none; }
.card-nav::before { content: ''; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.card-prev::before { transform: translateX(2px) rotate(135deg); }
.card-next::before { transform: translateX(-2px) rotate(-45deg); }
@media (hover: hover) {
  .card-nav:hover { background: var(--soft-brand); border-color: var(--ink); }
}
.card-nav:active { background: var(--ink); color: var(--on-solid); }
.card-nav:focus-visible { outline: 3px solid var(--cta); outline-offset: -5px; background: var(--paper); color: var(--ink); }
.card-count { position: absolute; right: 0; bottom: 8px; min-width: 64px; padding: 4px 12px; background: var(--ink); color: var(--on-solid); font-family: var(--numeric-font); font-size: 16px; font-variant-numeric: tabular-nums; text-align: center; pointer-events: none; }
.card-count:empty { display: none; }
.card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; padding: var(--card-padding); color: var(--ink); text-decoration: none; }
.card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 100%; }
.kind-badge { display: inline-block; max-width: 100%; padding: 2px 10px; border: 1px solid var(--input-line); color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.kind-badge:empty, [data-slot='torihiki']:empty { display: none; }
[data-slot='torihiki'] { color: var(--muted); font-size: 16px; }
.card-content h2 { margin: 14px 0 4px; font-size: 24px; letter-spacing: .02em; }
.card-price, .detail-price { max-width: 100%; color: var(--ink); font-family: 'Property Price', 'Noto Serif JP', serif; font-size: 16px; font-weight: var(--price-weight); line-height: 3; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.card-price { margin: 0 0 12px; }
.card-station { margin-bottom: 8px; font-size: 16px; }
.card-spec { margin-bottom: 24px; color: var(--muted); font-family: var(--numeric-font); font-size: 16px; line-height: 1.8; }
.card-facts { width: 100%; margin-bottom: 12px; }
.card-more { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; margin-top: auto; padding: 12px 16px; border: 1px solid var(--ink); border-radius: var(--button-radius); background: linear-gradient(135deg, #343431, var(--ink)); color: var(--on-solid); font-size: 16px; font-weight: var(--strong); }
.card-more > span { font-size: 24px; line-height: 1; }
.card-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; margin-top: 12px; padding: 10px 16px; border: 1px solid currentColor; border-radius: var(--button-radius); background: var(--paper); color: var(--cta); font-size: 16px; font-weight: var(--strong); }
.card-cta::after { content: ''; flex: 0 0 14px; width: 14px; height: 14px; margin-right: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 12 12 2M4.5 2H12v7.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 12 12 2M4.5 2H12v7.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; } /* 右上向きの矢印（↗）を線で描く。文字の ↗ はスマホで絵文字になるため使わない */
.card-content:hover .card-more { text-decoration: underline; text-underline-offset: .25em; }
.property-card:has(.card-content:hover) .card-media { outline: 1px solid var(--ink); outline-offset: -1px; }
.state-message { padding: 40px 24px; border-block: 1px solid var(--line); background: var(--paper); }
#bukken-empty { padding: 56px 0; color: var(--muted); background: transparent; }
.loading-message { display: flex; align-items: center; gap: 16px; min-height: 160px; color: var(--muted); }
.loading-message::before { content: ''; flex: 0 0 24px; width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-message, [data-error-for] { color: var(--danger); }
.error-message { padding: 20px; border: 1px solid var(--danger); background: var(--paper); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 32px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; margin-bottom: 36px; padding: 24px 0 32px; border-block: 1px solid var(--ink); }
.detail-heading > .kind-badge { grid-column: 1 / -1; justify-self: start; }
.detail-heading h1 { align-self: center; max-width: 26em; margin: 8px 0; font-size: clamp(28px, 3.3vw, 44px); }
.detail-price { align-self: center; min-width: 0; margin: 0; font-family: 'Property Detail Price', 'Noto Serif JP', serif; line-height: 4; }
#summary { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-family: var(--numeric-font); }
#summary:empty, #gallery-caption:empty { display: none; }
#hitokoto { grid-column: 1 / -1; max-width: 48em; margin: 16px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ink); color: var(--ink); font-size: 18px; font-weight: var(--strong); line-height: 1.9; }
.gallery-wrap { position: relative; min-width: 0; overflow: hidden; background: var(--soft-brand); }
#gallery { display: flex; width: 100%; height: clamp(300px, 54vw, 680px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink) var(--soft-brand); }
#gallery > img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-nav { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; min-width: 48px; min-height: 48px; margin: 0; padding: 0; transform: translateY(-50%); border: 1px solid var(--input-line); border-radius: var(--button-radius); background: var(--paper); color: var(--ink); box-shadow: none; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-nav > span { display: none; }
.gallery-nav::before { content: ''; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.gallery-prev::before { transform: translateX(2px) rotate(135deg); }
.gallery-next::before { transform: translateX(-2px) rotate(-45deg); }
@media (hover: hover) {
  .gallery-nav:hover { background: var(--soft-brand); border-color: var(--ink); }
}
.gallery-nav:active { background: var(--ink); color: var(--on-solid); }
.gallery-nav:focus-visible { outline: 3px solid var(--cta); outline-offset: -5px; background: var(--paper); color: var(--ink); }
#gallery-count { position: absolute; right: 0; bottom: 12px; min-width: 64px; padding: 8px 16px; background: var(--ink); color: var(--on-solid); font-family: var(--numeric-font); font-variant-numeric: tabular-nums; text-align: center; pointer-events: none; }
#gallery-count:empty { display: none; }
#gallery-caption { margin: 12px 0 0; color: var(--muted); }
.gallery-guide { display: none; margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.detail-page:has(#gallery > img + img) .gallery-guide { display: block; }
.detail-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 32px 0 64px; padding: 24px 0; border-block: 1px solid var(--line); }
.detail-action p { margin: 0; color: var(--muted); }
.detail-action .button { min-width: 260px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; max-width: 100%; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--button-radius); font-size: 16px; font-weight: var(--strong); line-height: 1.5; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.button:hover, #sticky-cta a:hover { filter: brightness(.9); }
.button-brand { background: var(--brand); color: var(--on-solid); }
.button-cta { background: var(--cta); color: var(--on-solid); }
.button-secondary { border-color: var(--input-line); background: var(--paper); color: var(--ink); }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 64px; }
.detail-sections { min-width: 0; counter-reset: section; }
.panel { min-width: 0; margin-bottom: 48px; padding: 28px 0 0; border: 0; border-top: 1px solid var(--ink); background: transparent; }
.panel > :last-child { margin-bottom: 0; }
.panel h2 { padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--ink); }
.detail-sections > .panel { counter-increment: section; }
.detail-sections > .panel > h2::before { content: counter(section, decimal-leading-zero) ' /'; display: inline-block; margin-right: 16px; color: var(--muted); font-family: var(--numeric-font); font-size: 16px; font-weight: 400; }
.info-table { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); margin-bottom: 0; }
.info-table dt, .info-table dd { min-width: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.info-table dt { padding-right: 20px; color: var(--muted); }
.info-table dd { font-family: var(--numeric-font); }
#spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
#stations { padding-left: 1.3em; }
#stations li + li { margin-top: 8px; }
#map { display: block; width: 100%; height: 320px; border: 0; background: var(--soft-brand); }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.muted, .field-help, .optional-mark, .form-guide { color: var(--muted); }
.inquiry-panel { border-top: 2px solid var(--ink); }
#inquiry { scroll-margin-top: 104px; }
.field { min-width: 0; margin-bottom: 28px; }
.field > label { display: block; margin-bottom: 10px; font-weight: var(--strong); }
.required-mark, .optional-mark { display: inline-block; margin-left: 6px; font-size: 16px; font-weight: var(--strong); }
.required-mark { padding: 0 6px; border: 1px solid var(--input-line); color: var(--ink); }
input:not([type='radio']):not([type='checkbox']):not([type='hidden']), select, textarea { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 52px; padding: 11px 12px; border: 1px solid var(--input-line); border-radius: var(--input-radius); background: var(--paper); font-size: 16px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 152px; }
input[type='radio'], input[type='checkbox'] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border: 2px solid var(--danger); }
.field-help, [data-error-for] { margin: 8px 0 0; font-size: 16px; }
.unit { flex: 0 0 auto; color: var(--muted); }
.choice-stack { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--input-line); border-radius: var(--input-radius); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--soft-brand); outline: 1px solid var(--ink); outline-offset: -2px; }
.consent { margin: 20px 0; }
.consent a { display: inline-flex; align-items: center; min-height: 44px; }
#inquiry-submit { width: 100%; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px; border: 1px solid var(--line); border-top: 2px solid var(--ink); background: var(--paper); }
.contact-panel > p, .contact-panel > h2 { margin-bottom: 0; }
.contact-panel [data-cta] { width: 100%; min-height: 56px; }
.contact-panel [data-cta='tel'] { border-color: var(--ink); background: var(--paper); color: var(--ink); }
#contact { scroll-margin-top: 80px; }
#sticky-cta { position: fixed; inset: auto 0 0; z-index: 30; display: flex; justify-content: center; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); background: var(--paper); }
#sticky-cta a { display: inline-flex; align-items: center; justify-content: center; width: 260px; min-height: 52px; padding: 10px 20px; border: 1px solid var(--cta); border-radius: var(--button-radius); background: var(--cta); color: var(--on-solid); font-weight: var(--strong); text-align: center; text-decoration: none; }
#sticky-cta [data-cta='tel'] { border-color: var(--ink); background: var(--paper); color: var(--ink); }
body:has(#bukken:not([hidden])) { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.result-panel { margin-top: 32px; padding: 48px 0; }
.result-panel .button { margin-top: 16px; }
.prose { overflow-wrap: anywhere; }
.prose h2 { margin-top: 40px; }
.prose li { margin-bottom: 12px; }
#site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 24px; padding: 48px max(var(--gutter), calc((100% - 1240px) / 2)); border-top: 1px solid var(--ink); background: var(--footer-bg); color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
#site-footer > * { min-width: 0; max-width: 100%; }
#site-footer [data-company]:empty { display: none; }
#site-footer [data-company='name'] { flex-basis: 100%; margin-bottom: 8px; color: var(--ink); font-weight: var(--strong); font-size: 22px; }
#site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* 管理CSSは変更しない。既存の後続ルールより詳細度を上げて外観を統一。 */
html .admin-body { --brand: #20201e; --cta: #b4441f; background: #f4f4f1; }
html .admin-body .brand { font-family: 'Zen Kaku Gothic New', sans-serif; }
html .admin-body .admin-header { gap: 12px 24px; min-height: 96px; padding: 20px max(var(--gutter), calc((100% - 1200px) / 2)); border-top: 0; border-bottom: 1px solid var(--ink); background: var(--paper); }
html .admin-body .admin-header nav a, html .admin-body #logout { min-height: 44px; border-radius: 2px; color: var(--ink); }
html .admin-body .admin-header nav a[aria-current='page'] { border-bottom-color: var(--ink); background: transparent; }
html .admin-body .workspace-label { color: var(--muted); }
html .admin-body .admin-shell { width: min(1200px, calc(100% - var(--gutter) * 2)); padding: 48px 0 80px; }
html .admin-body .admin-page-heading { align-items: flex-end; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
html .admin-body .admin-page-heading h1 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 40px); }
html .admin-body .panel { padding: 28px; margin-bottom: 28px; border: 1px solid var(--line); border-top-color: var(--ink); border-radius: 0; background: var(--paper); }
html .admin-body .panel h2 { color: var(--ink); }
html .admin-body .admin-list-panel { border: 0; border-top: 1px solid var(--ink); border-radius: 0; background: var(--paper); }
html .admin-body .admin-list-head { padding: 16px 24px; background: var(--soft-brand); color: var(--muted); font-weight: 700; }
html .admin-body .admin-row { min-height: 132px; border-bottom: 1px solid var(--line); }
html .admin-body .admin-row:hover { background: var(--soft-brand); }
html .admin-body .admin-row > img { height: 88px; border-radius: 0; background: var(--soft-brand); }
html .admin-body .admin-row:has(> img[hidden]) .row-identity { grid-column: 2; }
html .admin-body .row-title { font-size: 20px; }
html .admin-body .row-price { color: var(--ink); font-size: 22px; }
html .admin-body .row-dates { font-size: 16px; }
html .admin-body .status-badge, html .admin-body .deal-badge, html .admin-body .role-badge, html .admin-body .badge { padding: 2px 9px; border: 1px solid var(--input-line); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 16px; }
html .admin-body .deal-badge { padding-inline: 0; border-color: transparent; color: var(--muted); }
html .admin-body [data-status='hikokai'] { border-color: var(--input-line); background: var(--soft-brand); color: var(--muted); }
html .admin-body [data-status='kokai'] { border-color: var(--ink); background: var(--ink); color: var(--on-solid); }
html .admin-body [data-status='seiyaku'] { border-color: var(--ink); background: var(--paper); color: var(--ink); }
html .admin-body [data-status='auto-hidden'] { border: 1px dashed var(--danger); background: var(--paper); color: var(--danger); }
html .admin-body .is-overdue { border-left: 3px solid var(--danger); background: #fff5f3; }
html .admin-body .is-overdue .row-next { color: var(--danger); }
html .admin-body .admin-row [data-slot='badge'] { border-radius: 0; color: var(--danger); background: var(--paper); }
html .admin-body .alert-message { padding: 20px; border: 1px solid var(--danger); border-left-width: 3px; border-radius: 0; background: #fff5f3; }
html .admin-body .form-message { border-radius: 0; background: var(--soft-brand); }
html .admin-body .auth-shell { width: min(560px, calc(100% - var(--gutter) * 2)); margin: 72px auto; }
html .admin-body .auth-panel { padding: 40px; border: 0; border-top: 2px solid var(--ink); }
html .admin-body .auth-panel h1 { font-size: 36px; }
html .admin-body .text-button { margin: 20px 0 0; padding-left: 0; color: var(--ink); text-align: left; }
html .admin-body.edit-page { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
html .admin-body .edit-shell { max-width: 1000px; }
html .admin-body .edit-section { padding: 32px; margin-bottom: 32px; }
html .admin-body .section-heading { gap: 20px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
html .admin-body .section-heading h2 { margin: 0; padding: 0; border: 0; }
html .admin-body .step-number { justify-content: flex-start; flex-basis: 40px; width: 40px; height: 40px; border-radius: 0; background: transparent; color: var(--muted); font-size: 24px; }
html .admin-body .field { margin-bottom: 28px; gap: 10px; }
html .admin-body .field > label { font-weight: 700; }
html .admin-body .field > input, html .admin-body .field > select, html .admin-body .field > textarea { min-height: 52px; }
html .admin-body .field > textarea { min-height: 152px; }
html .admin-body .is-required > label::after { border: 0; border-left: 1px solid var(--input-line); border-radius: 0; background: transparent; color: var(--muted); font-size: 16px; font-weight: 400; }
html .admin-body .is-missing { padding: 16px; border: 1px solid var(--danger); border-left-width: 3px; border-radius: 0; background: #fff5f3; }
html .admin-body .field.is-missing > input, html .admin-body .field.is-missing > select, html .admin-body .field.is-missing > textarea { border-color: var(--danger); }
html .admin-body .field-group.is-collapsed .field { display: none; }
html .admin-body .add-station { min-height: 48px; border-radius: 2px; color: var(--ink); }
html .admin-body .warn { border-color: var(--input-line); border-left-width: 3px; border-radius: 0; background: var(--soft-brand); color: var(--ink); }
html .admin-body .upload-area { padding: 24px; border: 1px dashed var(--input-line); border-radius: 0; background: var(--soft-brand); }
html .admin-body .upload-area > label { border-radius: 2px; background: var(--ink); }
html .admin-body .photo { padding: 12px; border-radius: 0; background: var(--paper); }
html .admin-body .photo > img { height: auto; aspect-ratio: 3 / 2; border-radius: 0; background: var(--soft-brand); }
html .admin-body .photo button { min-width: 44px; min-height: 48px; border-color: var(--input-line); border-radius: 2px; color: var(--ink); }
html .admin-body .photo button[data-remove] { border-color: var(--danger); color: var(--danger); }
html .admin-body .photo.is-cover { border: 2px solid var(--ink); }
html .admin-body .photo.is-cover::before { top: 18px; left: 18px; border-radius: 0; background: var(--ink); }
html .admin-body .photo.is-confirm { border-color: var(--danger); background: #fff5f3; }
html .admin-body .photo.is-confirm button[data-remove] { background: var(--danger); color: var(--on-solid); }
html .admin-body .save-bar { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); background: var(--paper); box-shadow: none; }
html .admin-body .save-bar-inner { max-width: 936px; }
html .admin-body #save-ok { color: var(--ink); }
html .admin-body .settings-grid { gap: 32px; }
html .admin-body .staff-row { padding: 24px 0; }
html .admin-body .staff-row:first-child { padding-top: 0; }

@media (min-width: 1001px) {
  .property-card:first-child { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; padding-bottom: 32px; }
  .property-card:first-child .card-content { padding-top: 0; }
  .property-card:first-child .card-media { min-height: 100%; }
  .property-card:first-child .card-content h2 { font-size: 28px; }
}
@media (max-width: 1050px) {
  .detail-heading { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .detail-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel > p, .contact-panel > h2 { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .page-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-intro > p:last-child { max-width: 100%; margin-bottom: 0; }
  .page-intro h1 { max-width: 100%; }
  html .admin-body .settings-grid { gap: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --card-gap: 48px; }
  .site-header { gap: 4px 16px; min-height: 84px; padding: 12px var(--gutter); }
  .brand { font-size: 18px; }
  .brand-logo { max-width: 100%; height: 28px; }
  .site-header nav { margin-left: auto; gap: 20px; }
  .site-header nav a { padding: 8px 0; }
  .page-shell { padding: 24px 0 64px; }
  .listing-page { padding-top: 32px; }
  .page-intro { gap: 12px; margin-bottom: 28px; padding: 0 0 32px; }
  .page-intro::after { background-position: 62% bottom; }
  .page-intro::before { margin-bottom: 4px; font-size: 11px; }
  .page-intro h1 { font-size: 34px; letter-spacing: .02em; }
  .mobile-break { display: inline; }
  .page-intro > p:last-child { margin-top: 4px; }
  .list-toolbar { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .list-toolbar h2 { gap: 16px; font-size: 22px; }
  .deal-tabs { width: 100%; }
  .deal-tabs button { flex: 1; min-width: 0; }
  #bukken-list { grid-template-columns: minmax(0, 1fr); }
  .property-card { padding-bottom: 0; border: 1px solid var(--line); border-bottom: 2px solid var(--input-line); background: var(--paper); }
  .card-content { padding: 20px; }
  .card-content h2 { font-size: 23px; }
  .card-price { margin-bottom: 8px; }
  .card-spec { margin-bottom: 20px; }
  .back-link { margin-bottom: 20px; }
  .detail-heading { margin-bottom: 24px; padding: 20px 0 24px; }
  .detail-heading h1 { font-size: 28px; }
  .detail-price { line-height: 4; }
  #hitokoto { padding-left: 16px; }
  #gallery { height: auto; aspect-ratio: 4 / 3; }
  #gallery-count { bottom: 8px; padding: 6px 12px; }
  .detail-action { align-items: stretch; flex-direction: column; gap: 16px; margin: 24px 0 40px; padding: 20px 0; }
  .detail-action .button { min-width: 0; width: 100%; }
  .panel { margin-bottom: 36px; padding-top: 24px; }
  .panel h2 { font-size: 22px; }
  .detail-columns { gap: 8px; }
  .info-table, #spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .info-table dt { padding-right: 16px; }
  #map { height: 280px; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  #sticky-cta { gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  #sticky-cta a { flex: 1; min-width: 0; width: auto; min-height: 56px; padding: 10px 8px; }
  #sticky-cta [data-cta='line'] { flex-grow: 1.25; }
  .result-panel { margin-top: 16px; padding: 32px 0; }
  .result-panel .button { width: 100%; }
  #site-footer { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 32px; }
  html .admin-body .admin-header { gap: 8px 16px; min-height: 80px; padding: 12px var(--gutter); }
  html .admin-body .admin-header nav { gap: 4px; }
  html .admin-body .admin-header nav a, html .admin-body #logout { padding-inline: 10px; }
  html .admin-body .admin-shell { padding: 28px 0 64px; }
  html .admin-body .admin-page-heading { align-items: stretch; margin-bottom: 24px; padding-bottom: 24px; }
  html .admin-body .admin-list-head { display: none; }
  html .admin-body .admin-row { gap: 12px; padding: 20px 12px; }
  html .admin-body .admin-row > img { height: 76px; }
  html .admin-body .row-title { font-size: 18px; }
  html .admin-body .row-price { font-size: 22px; }
  html .admin-body .panel { padding: 24px 20px; }
  html .admin-body .auth-shell { margin: 36px auto; }
  html .admin-body .auth-panel { padding: 28px 20px; }
  html .admin-body .auth-panel h1 { font-size: 30px; }
  html .admin-body .section-heading { gap: 12px; }
  html .admin-body .step-number { flex-basis: 32px; width: 32px; font-size: 22px; }
  html .admin-body .edit-section { padding: 24px 16px; }
  html .admin-body .field { gap: 8px; }
  html .admin-body .field > input[type='date'] { flex-basis: 100%; width: 100%; }
  html .admin-body .upload-area { padding: 16px; }
  html .admin-body .save-bar { padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
  html .admin-body .save-bar-inner { flex-flow: row wrap; gap: 8px; }
  html .admin-body .save-bar-inner > .button { flex: 1 1 100%; min-width: 0; }
  html .admin-body #save-ok { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
