:root {
  --indigo-950: #0b1626;
  --indigo-900: #10233a;
  --indigo-800: #15365a;
  --indigo-700: #204d76;
  --ecru-50: #fbf6ea;
  --ecru-100: #f2ead9;
  --ecru-200: #dfd1b8;
  --charcoal: #22211f;
  --brown: #8a5f38;
  --brown-dark: #5c3e25;
  --line: rgba(34, 33, 31, 0.14);
  --shadow: 0 18px 42px rgba(12, 20, 30, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 20% 0%, rgba(32, 77, 118, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--ecru-50), #ede2cf 46%, #f8f1e4);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
textarea {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--indigo-950);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 22, 38, 0.08), rgba(11, 22, 38, 0.42) 42%, rgba(11, 22, 38, 0.78)),
    linear-gradient(90deg, rgba(11, 22, 38, 0.22), transparent 70%);
}

.hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: center 41%;
  filter: brightness(1.12) saturate(0.95) contrast(1.03);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 96px 20px 34px;
  color: #fffaf0;
}

.eyebrow,
.step {
  margin: 0;
  color: var(--brown);
  font-family: Inter, "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d9b889;
}

h1,
h2 {
  margin: 0;
  font-family: Inter, "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  margin-top: 12px;
  font-size: 2.7rem;
  line-height: 0.9;
  font-weight: 850;
  text-wrap: balance;
}

.hero__copy {
  max-width: 20rem;
  margin: 20px 0 0;
  font-size: 1.03rem;
  line-height: 1.8;
}

.hero__button,
.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 4px;
  background: #0fc36a;
  color: #062211;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.hero__button {
  margin-top: 30px;
  padding: 0 22px;
  background: #f7ead4;
  color: var(--indigo-950);
}

main {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 30px 16px 56px;
}

.section,
.estimate,
.notes {
  padding: 34px 0;
}

.section__heading,
.estimate__intro,
.notes {
  max-width: 660px;
}

.section__heading h2,
.estimate__intro h2,
.notes h2 {
  margin-top: 8px;
  color: var(--indigo-950);
  font-size: clamp(1.7rem, 7vw, 2.8rem);
  line-height: 1.05;
  font-weight: 850;
}

.section__heading p:not(.step),
.estimate__intro p:not(.step),
.notes li {
  color: rgba(34, 33, 31, 0.72);
  line-height: 1.9;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 10px 22px rgba(61, 45, 25, 0.08);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.choice-card:has(input:checked) {
  border-color: var(--brown);
  box-shadow: var(--shadow);
}

.choice-card:active {
  transform: scale(0.99);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.choice-card__image {
  height: 100%;
  background: var(--indigo-900);
}

.choice-card__image img {
  height: 100%;
  object-fit: cover;
}

#modelChoices .choice-card__image img {
  object-position: center top;
}

.choice-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.choice-card__name {
  color: var(--indigo-950);
  font-family: Inter, "Noto Sans JP", sans-serif;
  font-size: clamp(0.9rem, 3.9vw, 1.1rem);
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.display-name__lot,
.display-name__main {
  display: block;
}

.display-name__lot {
  color: rgba(34, 33, 31, 0.58);
  font-size: 0.72em;
  font-weight: 760;
  line-height: 1.2;
}

.display-name__main {
  margin-top: 2px;
}

.choice-card__description {
  display: block;
  margin: 8px 0 0;
  color: rgba(34, 33, 31, 0.68);
  font-size: 0.84rem;
  line-height: 1.65;
}

.choice-card__price {
  color: var(--brown-dark);
  font-family: Inter, "Noto Sans JP", sans-serif;
  font-weight: 850;
}

.choice-card__mark {
  display: inline-flex;
  align-self: flex-start;
  min-width: 72px;
  padding: 6px 10px;
  border: 1px solid rgba(138, 95, 56, 0.32);
  border-radius: 999px;
  color: var(--brown-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.choice-card__mark::after {
  content: "選ぶ";
}

.choice-card:has(input:checked) .choice-card__mark {
  background: var(--brown);
  color: #fff9eb;
}

.choice-card:has(input:checked) .choice-card__mark::after {
  content: "選択中";
}

.model-custom-note {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--brown);
  color: rgba(34, 33, 31, 0.72);
  font-size: 0.88rem;
  line-height: 1.8;
}

.model-gallery {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.model-gallery__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.model-gallery__heading h3 {
  margin: 0;
  color: var(--indigo-950);
  font-family: Inter, "Noto Sans JP", sans-serif;
  font-size: 1.45rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.model-gallery__heading .display-name__lot {
  color: rgba(34, 33, 31, 0.54);
}

.model-gallery__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.72);
}

.model-gallery__tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(34, 33, 31, 0.64);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.model-gallery__tabs button[aria-selected="true"] {
  background: var(--indigo-900);
  color: #fff9eb;
}

.model-gallery__tabs button:focus-visible,
.model-gallery__viewport:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

.model-gallery__viewport {
  margin-top: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.model-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.model-gallery__track {
  display: flex;
}

.model-gallery__item {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.model-gallery__item img {
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
  background: var(--indigo-900);
}

.model-gallery__item figcaption {
  margin-top: 10px;
  color: var(--brown-dark);
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
}

.estimate {
  margin-top: 18px;
  padding: 26px 18px 18px;
  border: 1px solid rgba(21, 54, 90, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 35, 58, 0.96), rgba(12, 24, 39, 0.98)),
    var(--indigo-900);
  color: #fff9eb;
  box-shadow: var(--shadow);
}

.estimate .step {
  color: #d9b889;
}

.estimate__intro h2 {
  color: #fff9eb;
}

.estimate__intro p {
  color: rgba(255, 249, 235, 0.76);
}

.summary {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 249, 235, 0.18);
}

.summary dl {
  margin: 0;
}

.summary div {
  display: grid;
  grid-template-columns: 5.8rem 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 249, 235, 0.14);
}

.summary dt {
  color: rgba(255, 249, 235, 0.62);
  font-size: 0.86rem;
}

.summary dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.summary .display-name__lot {
  color: rgba(255, 249, 235, 0.54);
}

#summaryPrice {
  color: #f2c67a;
  font-family: Inter, "Noto Sans JP", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.message-preview {
  margin-top: 18px;
}

.message-preview label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 249, 235, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.message-preview textarea {
  width: 100%;
  min-height: 168px;
  resize: vertical;
  border: 1px solid rgba(255, 249, 235, 0.16);
  border-radius: 6px;
  padding: 14px;
  background: rgba(255, 249, 235, 0.08);
  color: #fff9eb;
  line-height: 1.7;
}

.line-button {
  width: 100%;
  margin-top: 16px;
}

.line-button:hover,
.hero__button:hover {
  filter: brightness(1.04);
}

.line-status {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: rgba(255, 249, 235, 0.72);
  font-size: 0.84rem;
}

.notes {
  padding-bottom: 0;
}

.notes ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.notes li {
  position: relative;
  padding-left: 20px;
}

.notes li::before {
  content: "";
  position: absolute;
  top: 0.86em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brown);
}

@media (min-width: 680px) {
  h1 {
    max-width: 10ch;
    font-size: 5rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero__content {
    padding-inline: 34px;
  }

  .choice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  #modelChoices {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .choice-card__image {
    aspect-ratio: 4 / 3;
  }

  #modelChoices .choice-card__image {
    aspect-ratio: 4 / 5;
  }

  .choice-card__body {
    min-height: 188px;
  }

  .model-gallery {
    margin-top: 36px;
    padding-top: 30px;
  }

  .model-gallery__tabs {
    display: none;
  }

  .model-gallery__viewport {
    margin-top: 18px;
    overflow: visible;
  }

  .model-gallery__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .model-gallery__item {
    min-width: 0;
  }

  .estimate {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    padding: 30px;
  }

  .summary {
    margin-top: 0;
    border-top: 0;
  }

  .message-preview,
  .line-button,
  .line-status {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  h1 {
    font-size: 7rem;
  }

  #modelChoices {
    grid-template-columns: repeat(4, 1fr);
  }

  main {
    padding-inline: 28px;
  }

  .section,
  .estimate,
  .notes {
    padding-block: 48px;
  }

  .hero__content {
    padding-bottom: 56px;
  }
}
