:root {
  color-scheme: light;
  --ink: #16231f;
  --muted: #63716b;
  --line: #dce4dc;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --deep: #0f3d35;
  --deep-2: #17594d;
  --gold: #c99542;
  --soft: #eef5ef;
  --warn: #8b4b18;
  --shadow: 0 24px 60px rgba(18, 39, 32, 0.12);
}

* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button:disabled { opacity: 0.65; cursor: wait; }
#contactStatus { overflow-wrap: anywhere; }
.contact-status {
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 14px 16px;
}
.contact-status:empty { display: none; }
.contact-status strong {
  display: block;
  font-size: 17px;
}
.contact-status span {
  display: block;
  line-height: 1.7;
}
.contact-status.success {
  background: #edf7f1;
  border: 1px solid #9bc7aa;
  color: #1f5d36;
}
.contact-status.sending {
  background: #f6f8fa;
  border: 1px solid #d5dde5;
  color: #40576d;
}
.contact-status.error {
  background: #fff3f0;
  border: 1px solid #e3a397;
  color: #8a2f22;
}
details { padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 149, 66, 0.16), transparent 32rem),
    linear-gradient(180deg, #f3f6ef 0%, #eef5ef 100%);
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
  min-height: 390px;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 25, 22, 0.78), rgba(5, 25, 22, 0.38) 48%, rgba(5, 25, 22, 0.12)),
    url("./assets/wakayama-real-estate-hero.png") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--deep-2);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.intro .eyebrow {
  color: #f6dc9b;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.22);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.04;
}

.intro h1 {
  max-width: 840px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.intro .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.24);
}

.trust-panel {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.trust-panel strong {
  margin-bottom: 4px;
}

.trust-panel span {
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 6px;
  color: var(--deep);
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.form-card,
.result-card,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.form-heading h2,
.result-header h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.form-heading p,
.result-header p {
  color: var(--muted);
  line-height: 1.65;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  color: #31423c;
  font-size: 0.95rem;
  font-weight: 700;
}

fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 8px;
}

select,
input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid #ccd8cf;
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

small {
  color: var(--muted);
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--deep);
}

button {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

button:hover {
  background: #0b302a;
  transform: translateY(-1px);
}

.result-card {
  position: sticky;
  top: 20px;
  padding: 26px;
}

.score-box {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 20px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.score-box > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.score-label {
  color: var(--muted);
  font-weight: 700;
}

#scoreValue {
  font-size: 2.4rem;
  line-height: 1;
}

.meter {
  height: 12px;
  overflow: hidden;
  background: #e4ebe5;
  border-radius: 999px;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--deep-2));
  border-radius: inherit;
  transition: width 300ms ease;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.result-grid > div {
  padding: 16px;
  background: #fffaf0;
  border: 1px solid #efdcb8;
  border-radius: 8px;
}

.result-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--warn);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-grid strong {
  font-size: 1.2rem;
}

.price-note {
  margin: -8px 0 18px;
  padding: 12px 14px;
  color: #5c4a28;
  background: #fff7e8;
  border: 1px solid #efdcb8;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.advice-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.advice-section h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.1rem;
  color: #31423c;
  line-height: 1.65;
}

.next-action {
  padding: 18px;
  background: var(--deep);
  color: #fff;
  border-radius: 8px;
}

.next-action p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
  padding: 26px;
}

.contact-card h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-note {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 6px;
  color: var(--deep) !important;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .intro,
  .workspace,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 520px;
    background:
      linear-gradient(180deg, rgba(5, 25, 22, 0.78), rgba(5, 25, 22, 0.48) 54%, rgba(5, 25, 22, 0.2)),
      url("./assets/wakayama-real-estate-hero.png") center / cover;
  }

  .result-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 22px 0;
  }

  h1 {
    font-size: 2.45rem;
  }

  .split,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .form-card,
  .result-card {
    padding: 18px;
  }

  .intro {
    min-height: 560px;
    padding: 20px;
  }
}
:root .market-group { list-style: none; border-top: 1px solid #d5dfe3; padding: 18px 0; overflow-wrap: anywhere; }
:root .market-group h4 { margin: 0 0 8px; font-size: 17px; }
:root .market-group p { margin: 8px 0; }
:root .market-group details { margin: 14px 0; }
:root .market-group summary { cursor: pointer; font-weight: 600; }
:root .market-price-result:not(:empty) { margin-top: 18px; padding: 20px 0; border-top: 2px solid #207565; border-bottom: 1px solid #d5dfe3; }
:root .market-price-label { display: block; font-size: 15px; font-weight: 600; }
:root .market-price-amount { display: block; margin: 10px 0; font-size: 30px; line-height: 1.4; color: #155746; overflow-wrap: anywhere; }
:root .market-price-result p { font-size: 14px; line-height: 1.8; margin: 8px 0 0; }
:root .source-notice { margin: 24px 0; font-size: 14px; }
@media (max-width: 480px) { :root .market-price-amount { font-size: 25px; } }

.price-basis {
  white-space: pre-line;
  margin: 10px 0 0;
  color: #e5efff;
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 500;
}
