:root {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color: #142d27;
  background: #f1ecdf;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #f1ecdf;
  --paper-light: #fbf7ed;
  --ink: #142d27;
  --muted: #5f6963;
  --line: #c9c0ae;
  --red: #b44a36;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; line-height: 1.85; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 94px; }
a { color: inherit; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(180,74,54,.4);
  outline-offset: 3px;
}

.page-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(20px,4vw,64px);
  color: var(--ink);
  background: rgba(251,247,237,.96);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; min-width: 242px; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); font-family: "Yu Mincho","Hiragino Mincho ProN",serif; font-size: 20px; font-weight: 700; }
.brand strong, .brand small { display: block; line-height: 1.12; }
.brand strong { font-family: "Yu Mincho","Hiragino Mincho ProN",serif; font-size: 16px; letter-spacing: .05em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px,1.7vw,24px); color: #374b44; font-size: 12px; white-space: nowrap; }
.nav a { padding: 10px 0 7px; border-bottom: 1px solid transparent; text-decoration: none; }
.nav a:hover { color: var(--red); border-color: var(--red); }
.header-cta { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 17px; color: var(--paper-light); background: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.hero {
  min-height: 430px;
  padding: 82px clamp(22px,6vw,86px) 68px;
  color: var(--ink);
  background-color: var(--paper-light);
  background-image: url("/assets/property-ledger-hero.avif");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  border-bottom: 1px solid var(--line);
}
.hero-inner { width: min(56%,760px); margin: 0; }
.eyebrow { margin: 0 0 15px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: "Yu Mincho","Hiragino Mincho ProN",serif; font-weight: 600; letter-spacing: .015em; line-break: strict; word-break: auto-phrase; overflow-wrap: normal; }
h1, h2 { text-wrap: balance; }
h1 { max-width: 760px; margin: 0; font-size: clamp(34px,3.2vw,46px); line-height: 1.38; }
h1 .heading-phrase { display: inline-block; white-space: nowrap; }
h2 { margin: 0 0 20px; font-size: clamp(27px,3vw,39px); line-height: 1.4; }
h3 { margin: 0 0 9px; font-size: 20px; line-height: 1.45; }
.lead { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.95; }

.content, .page-footer-inner { max-width: 1080px; margin: 0 auto; }
.content { padding: 44px clamp(20px,5vw,72px) 72px; }
.section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.section > p:not(.note), .section > .list { max-inline-size: 44rem; }
.page-summary { padding-top: 26px; }
.page-summary p { max-width: 920px; margin: 0; padding-left: 18px; border-left: 4px solid var(--red); color: #334a42; font-size: 17px; line-height: 2; }
.answer-box { padding: 25px; border-left: 4px solid var(--red); background: var(--paper-light); }
.answer-box p:last-child { margin-bottom: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 2px; padding: 0 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.article-meta a { color: var(--red); font-weight: 800; text-decoration: none; }

.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { min-height: 100%; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251,247,237,.56); }
.card p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.card a, .section > p a, .list a { color: #204e41; font-weight: 800; text-decoration-color: rgba(180,74,54,.45); text-underline-offset: .18em; }
.card a:hover, .section > p a:hover, .list a:hover { color: var(--red); text-decoration-color: currentColor; }
.guides-index .section:has(.grid) { counter-reset: guide-card; }
.guides-index .card { position: relative; padding: 48px 24px 25px; overflow: hidden; counter-increment: guide-card; transition: color 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(.22,1,.36,1); }
.guides-index .card::before { content: counter(guide-card, decimal-leading-zero); position: absolute; top: 18px; left: 24px; color: var(--red); font: 800 10px/1 ui-monospace, SFMono-Regular, monospace; letter-spacing: .08em; }
.guides-index .card::after { content: "読む  →"; position: absolute; right: 20px; bottom: 17px; color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .1em; opacity: 0; transform: translateX(-6px); transition: opacity 180ms ease, transform 180ms ease; }
.guides-index .card h3 a { text-decoration-thickness: 1px; }
.guides-index .card h3 a::after { content: ""; position: absolute; inset: 0; }
.guides-index .card:hover, .guides-index .card:focus-within { z-index: 1; color: var(--paper-light); background: var(--ink); transform: translateY(-3px); }
.guides-index .card:hover h3 a, .guides-index .card:focus-within h3 a { color: var(--paper-light); text-decoration-color: #e17761; }
.guides-index .card:hover p, .guides-index .card:focus-within p { color: #c4cec8; }
.guides-index .card:hover::after, .guides-index .card:focus-within::after { opacity: 1; transform: translateX(0); }
.list { padding-left: 1.3em; }
.list li { margin: 9px 0; padding-left: 6px; }
.note { color: var(--muted); font-size: 13px; }

.related-links h2 { margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.related-card { display: flex; min-height: 64px; align-items: center; padding: 15px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: rgba(251,247,237,.56); font-weight: 800; line-height: 1.5; text-decoration: none; }
.related-card:hover { color: var(--paper-light); background: var(--ink); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.contact-entry { display: grid; grid-template-columns: minmax(350px,.78fr) minmax(520px,1fr); width: min(1240px,calc(100% - 40px)); margin: 28px auto 0; border: 1px solid var(--line); background: var(--paper-light); }
.contact-entry-copy { min-width: 0; padding: clamp(40px,5vw,70px); background-color: #f6f0e3; background-image: linear-gradient(rgba(246,240,227,.88),rgba(246,240,227,.96)),url("/assets/property-ledger-hero.avif"); background-position: center bottom; background-repeat: no-repeat; background-size: cover; }
.contact-entry-copy h1 { font-size: clamp(36px,3.2vw,46px); }
.contact-entry-copy .lead { margin-top: 20px; font-size: 14px; }
.contact-entry-points { display: grid; gap: 10px; padding: 20px 0 0 1.2em; margin: 24px 0 0; border-top: 1px solid var(--line); list-style: square; }
.contact-entry-points li { padding-left: 4px; color: #344942; font-size: 13px; font-weight: 800; }
.contact-entry-points li::marker { color: var(--red); }
.contact-entry-assurance { display: grid; margin: 28px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-entry-assurance div { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251,247,237,.66); }
.contact-entry-assurance dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.contact-entry-assurance dd { margin: 0; color: var(--ink); font-size: 11px; font-weight: 900; }
.contact-entry-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 15px 0 0; font-size: 11px; }
.contact-entry-links a, .privacy-note a { color: var(--ink); font-weight: 900; text-decoration: underline; text-decoration-color: rgba(180,74,54,.55); text-underline-offset: .2em; }
.contact-entry-form { min-width: 0; padding: clamp(34px,4vw,58px); border-left: 1px solid var(--line); }
.contact-entry-form > .eyebrow { margin-bottom: 9px; }
.contact-entry-form > h2 { margin-bottom: 10px; font-size: clamp(27px,3vw,38px); }
.contact-form-intro { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.contact-page-content { padding-top: 18px; }

.contact-mini-form { display: grid; gap: 15px; padding: 25px; scroll-margin-top: 94px; border-top: 4px solid var(--red); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--paper-light); }
.contact-mini-form label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 900; }
.contact-mini-form input, .contact-mini-form select, .contact-mini-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: #fffdf7; font: inherit; }
.contact-mini-form textarea { min-height: 128px; resize: vertical; }
.contact-mini-form [aria-invalid="true"] { border-color: var(--red); box-shadow: inset 3px 0 0 rgba(180,74,54,.22); }
.field-label { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.field-required, .field-optional { display: inline-flex; min-height: 19px; align-items: center; padding: 1px 6px 0; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.field-required { color: #fffaf1; background: var(--red); }
.field-optional { color: var(--muted); background: #e9e1d3; }
.contact-method-group { display: grid; gap: 9px; min-width: 0; padding: 15px; margin: 0; border: 1px solid var(--line); }
.contact-method-group legend { padding: 0 7px 0 0; color: var(--ink); font-size: 13px; font-weight: 900; }
.contact-method-group legend .field-required { margin-left: 6px; }
.contact-method-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.field-error { color: #8a2f24; font-size: 11px; font-weight: 800; line-height: 1.55; }
.form-note { margin: 0; padding: 12px 14px; border-left: 3px solid var(--red); color: var(--muted); background: #f2ebdc; font-size: 11px; line-height: 1.75; }
.privacy-note { margin: -3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.form-honeypot { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 10px 12px; color: var(--ink); background: #eee5d4; font-size: 12px; font-weight: 800; line-height: 1.7; }
.form-status.success { background: #e2ede5; }
.form-status.error { color: #70241f; background: #f4ded8; }
.contact-mini-form button:disabled { cursor: wait; opacity: .7; }
.contact-page-success { display: grid; align-content: start; gap: 17px; padding: clamp(26px,4vw,42px); border-top: 4px solid var(--red); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: #f6f1e5; }
.contact-page-success:focus { outline: 3px solid rgba(180,74,54,.35); outline-offset: 4px; }
.contact-page-success .eyebrow { margin: 0; }
.contact-page-success h2 { margin: 0; font-size: clamp(25px,3vw,34px); }
.contact-page-success > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.contact-page-success dl { display: grid; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-page-success dl div { display: grid; grid-template-columns: 100px 1fr; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-page-success dt, .contact-page-success dd { margin: 0; padding: 11px 13px; }
.contact-page-success dt { color: var(--muted); background: rgba(230,222,206,.45); font-size: 10px; font-weight: 900; }
.contact-page-success dd { color: var(--ink); font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
.contact-page-success ul { display: grid; gap: 8px; padding-left: 1.2em; margin: 0; color: var(--muted); font-size: 12px; }
.contact-success-actions { display: grid; gap: 10px; margin-top: 4px; }

.cta-band { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 36px; padding: 27px; color: var(--paper-light); background: var(--ink); border-left: 4px solid var(--red); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 19px; color: #fffaf1; background: var(--red); font-weight: 800; text-decoration: none; }
.button.secondary { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.page-footer { padding: 34px clamp(20px,5vw,72px); color: #bbc5bf; background: #0e211c; border-top: 4px solid var(--red); font-size: 12px; }

@media (max-width: 1120px) {
  .hero { background-size: 38% 100%; }
  .hero-inner { width: 60%; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .page-header { grid-template-columns: 1fr auto; }
  .hero { background-size: 36% 100%; }
  .hero-inner { width: min(62%,680px); }
  .contact-entry { grid-template-columns: 1fr; width: min(760px,calc(100% - 32px)); }
  .contact-entry-form { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 820px) {
  .page-header { min-height: 70px; gap: 12px; padding: 10px 14px; }
  .brand { min-width: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .header-cta { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .hero { min-height: 650px; padding: 52px 20px 330px; background-position: center bottom; background-size: auto 300px; }
  .hero-inner { width: 100%; }
  h1 { font-size: clamp(27px,7.5vw,34px); line-height: 1.4; }
  h2 { font-size: clamp(25px,6.5vw,30px); }
  .content { padding-top: 30px; }
  .grid, .related-grid { grid-template-columns: 1fr; }
  .guides-index .card:hover, .guides-index .card:focus-within { transform: none; }
  .page-summary p { font-size: 15px; }
  .action-row .button, .cta-band .button { width: 100%; }
  .contact-entry { width: 100%; margin-top: 0; border-right: 0; border-left: 0; }
  .contact-entry-copy { padding: 30px 20px 24px; }
  .contact-entry-form { padding: 30px 20px 38px; }
  .contact-entry-copy h1 { font-size: clamp(27px,7.5vw,34px); line-height: 1.4; }
  .contact-entry-copy .lead { margin-top: 14px; font-size: 13px; line-height: 1.8; }
  .contact-entry-points { gap: 6px; padding-top: 14px; margin-top: 16px; }
  .contact-entry-points li { font-size: 12px; }
  .contact-entry-assurance { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 18px; }
  .contact-entry-assurance div { display: block; padding: 8px; }
  .contact-entry-assurance dt { line-height: 1.45; }
  .contact-entry-assurance dd { margin-top: 3px; line-height: 1.45; }
  .contact-entry-links { margin-top: 12px; }
  .contact-mini-form { padding: 21px 17px; }
  .contact-method-fields { grid-template-columns: 1fr; }
}
