:root {
  color-scheme: light;
  color: #17130f;
  background: #fae7d6;
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --red: #c7101f;
  --red-shadow: #93070c;
  --paper: #fffaf5;
  --puppy: url("/sale-background.webp");
  --line: #dfd2c6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #23466d; outline-offset: 3px; }
.hero {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1.25rem, 3.5svh, 3.75rem) 1rem;
  background: #fae7d6 var(--puppy) center right / cover no-repeat;
  text-align: center;
}
.hero-content { width: min(100%, 75rem); }
.analytics-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.analytics-actions button {
  background: #fffaf5;
  border: 1px solid #88776b;
  color: #17130f;
  border-radius: .3rem;
  padding: .4rem .75rem;
  font-size: .875rem;
}
.analytics-settings {
  display: block;
  margin: .75rem auto 0;
  padding: .2rem .4rem;
  border: 0;
  background: transparent;
  color: #3c4650;
  font-size: .75rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.analytics-panel { padding: clamp(1rem, 4vw, 2rem); overflow: auto; }
.analytics-panel h2 { margin: 0 0 .7rem; }
.analytics-panel p { line-height: 1.55; font-size: .92rem; }
.analytics-panel a { color: #065dcc; }
.analytics-panel .analytics-actions { margin-top: 1rem; }
.hero-content > :first-child { margin-block-start: 0; }
.domain, .for-sale {
  font-family: Geist, "Arial Black", system-ui, sans-serif;
  font-weight: 950;
  line-height: 0.97;
  overflow-wrap: anywhere;
}
.domain {
  margin: 0;
  font-size: clamp(3.75rem, min(12.2vw, 18svh), 12rem);
  letter-spacing: -0.085em;
}
.for-sale {
  margin: clamp(1rem, 3.3svh, 2rem) 0 0;
  color: var(--red);
  font-size: clamp(2.85rem, min(11.4vw, 16.6svh), 10.6rem);
  letter-spacing: -0.06em;
}
.sale-ja {
  margin: clamp(2rem, 8svh, 5.2rem) 0 0;
  font-size: clamp(2.1rem, min(7.3vw, 11svh), 7.2rem);
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: -0.045em;
}
.lease {
  margin: clamp(0.7rem, 2.5svh, 1.5rem) 0 0;
  font-size: clamp(1.35rem, min(4.2vw, 6svh), 4rem);
  font-weight: 850;
  line-height: 1.25;
}
.english {
  max-width: 66rem;
  margin: clamp(1.6rem, 4.5svh, 2.8rem) auto;
  font-size: clamp(1.12rem, min(2.9vw, 4svh), 2.55rem);
  font-weight: 750;
  line-height: 1.24;
  text-wrap: balance;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  border: 0;
  border-radius: 0.45em;
  border-bottom: 0.14em solid var(--red-shadow);
  background: var(--red);
  color: white;
  font-weight: 800;
}
.primary:hover { background: #b90d1d; }
.primary:active { transform: translateY(2px); }
.hero-button {
  width: min(100%, 69rem);
  min-height: 3.75rem;
  padding: 0.52em 0.45em;
  font-size: clamp(1.1rem, min(4.3vw, 6svh), 4rem);
  box-shadow: 0 0.15em 0.28em #6834124d;
  line-height: 1.25;
}
.envelope { width: 1.25em; height: 1em; flex: 0 0 auto; }
dialog {
  width: min(54rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: inherit;
  background: var(--paper);
  box-shadow: 0 1.25rem 4rem #30201640;
  overscroll-behavior: contain;
  overflow: hidden;
}
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #2117109c; }
.dialog-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 1.1rem clamp(0.9rem, 3vw, 1.55rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.dialog-head h2 { margin: 0; font-size: clamp(1.15rem, 4.2vw, 1.65rem); line-height: 1.35; }
.dialog-head p { margin: 0.2rem 0 0; color: #5a5048; font-size: 0.93rem; }
.dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
}
form { display: grid; gap: 1rem; padding: 1.15rem clamp(0.9rem, 3vw, 1.55rem) 1.55rem; }
.identity { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.9rem; }
.field { display: grid; align-content: start; gap: 0.4rem; }
.field > label, legend { font-weight: 750; }
.field-error { color: #a30c18; font-size: 0.88rem; margin: 0; font-weight: 650; }
.flag { color: #675950; font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
input:not([type="checkbox"]), select, textarea {
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #a9998d;
  border-radius: 0.45rem;
  padding: 0.57rem 0.7rem;
  background: white;
  color: inherit;
}
input[readonly] { background: #f3eae1; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid #bb1424; background: #fff4f3; }
.field-note { margin: 0; color: #514840; font-size: 0.86rem; }
.field-note [lang="en"] { display: block; }
textarea { resize: vertical; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: 0.45rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; align-items: start; }
.option { border: 1px solid var(--line); border-radius: 0.55rem; background: white; }
.option:has(input:checked) { border-color: #b8222e; background: #fff5f3; }
.choice-label { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 2.8rem; padding: 0.55rem 0.65rem; cursor: pointer; }
input[type="checkbox"] { margin: 0.21rem 0 0; width: 1.16rem; height: 1.16rem; accent-color: var(--red); flex: 0 0 auto; }
.choice-label strong, .choice-label small { display: block; }
.choice-label small { color: #514840; line-height: 1.3; }
.amount { padding: 0 0.65rem 0.7rem 2.4rem; font-size: 0.92rem; }
.amount :is(label, span) { display: block; }
.amount-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem; }
.amount-inputs select { width: auto; padding-inline: 0.3rem; }
.amount-preview { font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.code-field input { width: 50%; min-width: min(8rem, 100%); }
details { font-size: 0.92rem; }
summary { cursor: pointer; width: fit-content; }
details p { margin: 0.35rem 0 0; }
.send { justify-self: center; width: min(100%, max(12rem, 66.67%)); min-height: 3.1rem; padding: 0.62rem 1rem; font-size: 1.04rem; }
.status { margin: 0; padding: 0.8rem; background: #eaf4ed; border: 1px solid #abc9b4; border-radius: 0.5rem; }
.status span { display: block; }
@media (max-width: 600px) {
  .hero {
    background-image: linear-gradient(90deg, #fae7d6c9, #fae7d640), var(--puppy);
    background-size: cover, auto 100%;
  }
  .choices { grid-template-columns: 1fr; }
  .amount-inputs { grid-template-columns: minmax(0, 1fr); }
  .amount-inputs select { width: 100%; }
}
.status[data-kind="error"] { background: #fff0ef; border-color: #c66a68; }
.send:disabled, .close:disabled { opacity: 0.75; cursor: wait; }
.send[aria-busy="true"]::before { content: ""; width: 1em; height: 1em; border: 2px solid #ffffff80; border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .send[aria-busy="true"]::before { animation: none; } }
.inquiry-success { padding: clamp(1.6rem, 5vw, 3rem); text-align: center; }
.success-icon { display: grid; place-items: center; width: 4.3rem; height: 4.3rem; margin: 0 auto 1rem; border-radius: 50%; background: #dceee2; color: #18733a; }
.inquiry-success h3 { margin: 0; font-size: 1.9rem; line-height: 1.35; }
.inquiry-success p { line-height: 1.55; }
.inquiry-success :is(h3, p) > [lang="en"] { display: block; color: #514840; font-size: 0.9em; }
.receipt { background: #f2e9e1; border-radius: 0.6rem; padding: 0.8rem; margin: 1.4rem auto; font-size: 0.9rem; overflow-wrap: anywhere; }
.receipt strong { display: block; font-variant-numeric: tabular-nums; }

/* The approved alpaca design is isolated from the dog sale template. */
.consultation-page {
  --paper: #f4f8fb;
  --line: #c3d6e4;
  --red: #26282b;
  --red-shadow: #1a1b1c;
  --consultation-blue: #075dcc;
  background: #d8e9f5;
}
.hero--consultation {
  background: #d8e9f5 url("/consultation-background.webp") center right / cover no-repeat;
  color: #17191c;
  padding-block: clamp(1.5rem, 6svh, 5rem) clamp(1rem, 3svh, 2rem);
}
.hero--consultation .hero-content { width: min(100%, 78rem); }
.hero--consultation .domain {
  font-size: clamp(1.85rem, min(9.25vw, 13.5svh), 8.6rem);
  letter-spacing: -.055em;
  line-height: 1.04;
  font-weight: 950;
  overflow-wrap: normal;
}
.consultation-intro { margin: clamp(.9rem, 3svh, 2rem) 0 0; }
.consultation-title {
  margin: 0;
  font-size: clamp(1.45rem, min(4.8vw, 6.5svh), 4.4rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.035em;
}
.consultation-title-en {
  margin: .3em 0 0;
  font-size: clamp(1rem, min(2.7vw, 3.8svh), 2.35rem);
  font-weight: 850;
  letter-spacing: .075em;
  color: var(--consultation-blue);
}
.consultation-message, .consultation-message-en {
  margin: clamp(.8rem, 2.5svh, 1.6rem) auto 0;
  font-size: clamp(.94rem, min(2.25vw, 3svh), 1.9rem);
  font-weight: 720;
  line-height: 1.5;
  text-wrap: balance;
  max-width: 66rem;
}
.consultation-message-en {
  margin-top: .3em;
  font-size: clamp(.9rem, min(2.05vw, 2.8svh), 1.75rem);
  color: var(--consultation-blue);
}
.hero--consultation .hero-button {
  margin-top: clamp(.85rem, 3svh, 2.15rem);
  width: min(100%, 39rem);
  min-height: 3.5rem;
  padding: .55em .65em;
  font-size: clamp(1.1rem, min(3.2vw, 4.5svh), 2.75rem);
  border: 1px solid #44494e;
  border-radius: 100vw;
  background: #292b2e;
  box-shadow: none;
}
.hero--consultation .hero-button:hover, .consultation-page .send:hover { background: #15171a; }
.similar-domain {
  width: min(100%, 37rem);
  margin: clamp(.9rem, 2.6svh, 1.75rem) auto 0;
  padding: clamp(.6rem, 1.6svh, 1rem) .9rem;
  background: #f5f9fbe3;
  border: 2px solid #a3bbcf;
  border-radius: 1.05rem;
  display: grid;
  gap: .26rem;
  justify-items: center;
}
.similar-domain p {
  margin: 0;
  color: #454b53;
  font-size: clamp(.83rem, min(1.65vw, 2.3svh), 1.35rem);
  font-weight: 650;
  line-height: 1.35;
}
.similar-domain a {
  color: var(--consultation-blue);
  font-size: clamp(1.4rem, min(3.2vw, 4.2svh), 2.65rem);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: .16em;
  line-height: 1.32;
}
.consultation-page .option:has(input:checked) { border-color: #075dcc; background: #eaf4ff; }
@media (max-width: 600px) {
  .hero--consultation {
    background-image: linear-gradient(90deg, #d8e9f5a0, #e6f1f44d), url("/consultation-background.webp");
    background-size: cover, auto 100%;
    padding-inline: .75rem;
  }
  .hero--consultation .domain { font-size: clamp(1.72rem, 9vw, 3.6rem); }
  .consultation-message { max-width: 27rem; }
  .consultation-message-en { max-width: 29rem; }
}

