:root {
  --ink: #10131f;
  --paper: #ffffff;
  --muted: #626a78;
  --line: #dde3ea;
  --accent: #006d77;
  --accent-dark: #04555d;
  --danger: #c73a36;
  --hero: #081128;
  --soft: #f5f7f9;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--soft);
  letter-spacing: 0;
}
button, input { font: inherit; }
.sale-page { min-height: calc(100vh - 82px); }
.hero {
  background: linear-gradient(90deg, var(--hero) 0%, #0c1831 68%, #10233b 100%);
  color: var(--paper);
}
.hero__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 56px;
  align-items: center;
  min-height: 520px;
  padding: 56px 0 48px;
}
.inquiry-card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(16, 19, 31, 0.1);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}
.eyebrow, .status {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.inquiry-card h1, .summary h2 { margin: 0; line-height: 1.35; }
.domain-name {
  margin: 10px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.lead { margin: 12px 0 24px; color: var(--muted); }
form { display: grid; gap: 14px; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 7px; color: #2c3340; font-size: 14px; font-weight: 700; }
.label-title { display: inline-flex; align-items: baseline; gap: 4px; }
.required { color: var(--danger); }
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c5ced8;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}
input:focus { border-color: var(--accent); outline: 3px solid rgba(0, 109, 119, 0.18); }
.privacy-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.text-button, .footer-privacy {
  border: 0;
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}
.submit-button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.submit-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.hero-copy { max-width: 560px; }
.hero-domain {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.hero-copy p:last-child { margin: 20px 0 0; color: #d9e4ec; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.5; }
.content-band { background: var(--paper); }
.content-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 54px 0;
}
.summary p { margin: 16px 0 0; color: var(--muted); line-height: 1.9; }
.fit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.fit-item {
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: start;
  min-height: 162px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 10px 16px;
  text-align: center;
  font-weight: 800;
}
.fit-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}
.site-footer {
  width: min(1120px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.powered { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.craft-logo {
  display: block;
  width: 120px;
  height: auto;
}
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(5, 9, 18, 0.62); }
.modal__panel {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 28px));
  margin: 14px auto;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal__body { max-height: min(760px, calc(100vh - 28px)); overflow: auto; padding: 38px 34px 34px; }
.modal h2 { margin: 0 52px 24px 0; font-size: 28px; }
.modal h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 800; }
.modal p { margin: 0; color: #3f4856; line-height: 1.85; }
.policy-source { color: var(--muted); }
body.modal-locked { overflow: hidden; }
@media (max-width: 820px) {
  .hero__inner, .content-inner { grid-template-columns: 1fr; }
  .hero__inner { gap: 34px; padding: 32px 0; }
  .hero-copy { order: -1; }
  .content-inner { gap: 28px; padding: 36px 0; }
  .fit-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero-domain { white-space: normal; }
}

@media (max-width: 520px) {
  .name-grid { grid-template-columns: 1fr; }
  .inquiry-card { padding: 22px; }
  .site-footer { flex-direction: column; justify-content: center; align-items: flex-start; padding: 18px 0; }
}
