:root {
  color-scheme: light;
  --navy: #002b49;
  --navy-dark: #001f35;
  --orange: #ec5b2a;
  --ink: #232b32;
  --muted: #64717b;
  --line: #d9dde1;
  --soft: #f4f5f5;
  --error: #b42318;
  --notice: #fff7e8;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7f7f6;
  font-family: "Yu Gothic Medium", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}
a { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button, select, input[type="radio"], input[type="checkbox"] { cursor: pointer; }

.site-header {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; padding: 18px; }
.brand img { width: 150px; height: auto; display: block; }
.container {
  width: min(920px, calc(100% - 32px));
  margin: 40px auto 72px;
}
h1 {
  margin: 0 0 28px;
  color: var(--navy);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
h2 { margin: 0 0 24px; color: var(--navy); font-size: 1.35rem; }
h3 { margin: 28px 0 14px; font-size: 1.05rem; }
.product-gallery {
  position: relative;
  max-width: 760px;
  margin: 0 auto 30px;
}
.gallery-track { position: relative; overflow: hidden; background: #eceeed; aspect-ratio: 16 / 7; }
.gallery-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.gallery-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition: opacity .9s ease;
}
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(0, 31, 53, .68);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  transform: translateY(-50%);
  transition: background-color .2s ease, transform .2s ease;
  backdrop-filter: blur(2px);
}
.gallery-control::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.gallery-control:hover { background: rgba(0, 31, 53, .88); }
.gallery-control:active { transform: translateY(-50%) scale(.94); }
.gallery-prev { left: 18px; }
.gallery-prev::before { margin-left: 4px; transform: rotate(-135deg); }
.gallery-next { right: 18px; }
.gallery-next::before { margin-right: 4px; transform: rotate(45deg); }
.gallery-dots { display: flex; justify-content: center; gap: 9px; margin-top: 12px; }
.gallery-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid var(--navy); border-radius: 50%; background: #fff; }
.gallery-dots button.is-active { background: var(--navy); }
.product-gallery > p { margin: 6px 0 0; color: var(--muted); text-align: right; font-size: .82rem; }
.lead { margin: 0 auto 28px; max-width: 760px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 580px;
  padding: 0;
  margin: 0 auto 42px;
  list-style: none;
}
.steps li { color: var(--muted); text-align: center; font-size: .9rem; }
.steps li::after { content: ""; display: block; height: 3px; margin-top: 8px; background: var(--line); }
.steps span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.steps .current { color: var(--navy); font-weight: 700; }
.steps .current::after, .steps .done::after { background: var(--orange); }
.steps .current span, .steps .done span { border-color: var(--orange); color: #fff; background: var(--orange); }
.notice {
  padding: 14px 18px;
  margin: 0 0 24px;
  border-left: 4px solid var(--orange);
  background: var(--notice);
}
.error-summary { border-left-color: var(--error); background: #fff0ee; color: var(--error); }
.form-section, .confirm-section, .completion {
  padding: clamp(22px, 5vw, 42px);
  margin: 0 0 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.field { margin: 0 0 24px; }
.field:last-child { margin-bottom: 0; }
.field > label, fieldset > legend { display: block; margin: 0 0 8px; font-weight: 700; }
fieldset { min-width: 0; padding: 0; margin: 0 0 26px; border: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #9aa4ac;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 150px; resize: vertical; }
input[type="date"] {
  position: relative;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(236, 91, 42, .32);
  outline-offset: 2px;
  border-color: var(--orange);
}
.required { display: inline-block; margin-left: 5px; color: var(--error); font-size: .78rem; font-weight: 700; }
.optional { display: inline-block; margin-left: 5px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.choice { display: inline-flex; align-items: flex-start; gap: 8px; margin: 4px 26px 8px 0; }
.choice input { width: 20px; height: 20px; margin-top: 4px; flex: 0 0 auto; accent-color: var(--navy); }
.choice.is-disabled { color: var(--muted); cursor: not-allowed; }
.consent { font-weight: 700; }
.field-error { margin: 6px 0 0; color: var(--error); font-weight: 700; }
.help { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.product-list { border-top: 1px solid var(--line); }
.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.product-row strong, .product-row .price, .product-row .product-description { display: block; }
.product-row .product-description { margin-top: 4px; color: var(--ink); font-size: .9rem; }
.product-row .price { margin-top: 4px; color: var(--muted); }
.product-row.unavailable { color: var(--muted); background: #fafafa; }
.product-row select { min-height: 42px; }
.total-box { margin-top: 22px; padding: 18px; background: var(--soft); text-align: right; }
.total-box strong { margin-left: 20px; color: var(--navy); font-size: 1.45rem; }
.conditional[hidden] { display: none; }
.shipping-fields { padding: 8px 0 0; }
.shipping-method-note { padding: 14px 16px; background: var(--soft); }
.confirmation-note ul { padding-left: 1.4em; }
.guide-disclosure { border: 1px solid var(--line); background: var(--soft); }
.guide-disclosure summary { position: relative; padding: 16px 52px 16px 18px; color: var(--navy); font-weight: 700; cursor: pointer; list-style: none; }
.guide-disclosure summary::-webkit-details-marker { display: none; }
.guide-disclosure summary::after { content: "+"; position: absolute; top: 50%; right: 18px; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; }
.guide-disclosure[open] summary::after { content: "−"; }
.guide-content { padding: 4px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.guide-content h3 { color: var(--navy); }
.guide-content ul { padding-left: 1.4em; }
.payment-guide li + li { margin-top: 8px; }
.guide-details { display: grid; gap: 18px; margin-top: 28px; }
.guide-details > div { padding: 20px; background: var(--soft); }
.guide-details h3 { margin: 0 0 8px; color: var(--navy); }
.guide-details h3 small { font-size: .8rem; font-weight: 400; }
.guide-details p { margin: 0; overflow-wrap: anywhere; }
.voucher-restriction { padding: 10px 12px; border-left: 3px solid var(--orange); background: var(--notice); color: var(--ink); }
.actions, .confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 16px; text-align: center; }
.button {
  display: inline-flex;
  min-width: 220px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--navy);
  border-radius: 0;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.button.primary { border-color: var(--orange); color: #fff; background: var(--orange); }
.button.primary:hover { border-color: #d64a1d; background: #d64a1d; }
.button.secondary { color: var(--navy); background: #fff; }
.button.secondary:hover { color: #fff; background: var(--navy); }
.button:disabled { cursor: not-allowed; border-color: #aeb5ba; background: #aeb5ba; opacity: .7; }
.confirm-list { margin: 0; }
.confirm-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { font-weight: 700; }
.confirm-list dd { margin: 0; overflow-wrap: anywhere; }
.confirm-list .confirm-total { color: var(--navy); font-size: 1.12rem; }
.completion { text-align: center; }
.completion .important { margin: 24px 0; font-weight: 700; }
.site-footer { padding: 30px 16px; color: #fff; background: var(--navy-dark); text-align: center; font-size: .8rem; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .site-header { min-height: 86px; }
  .brand img { width: 125px; }
  .container { width: min(100% - 20px, 920px); margin-top: 26px; }
  .steps { margin-bottom: 28px; }
  .steps li { font-size: .8rem; }
  .steps span { display: grid; margin: 0 auto 4px; }
  .form-section, .confirm-section, .completion { padding: 22px 18px; }
  .product-row { grid-template-columns: 1fr 100px; gap: 10px; }
  .gallery-track { aspect-ratio: 4 / 3; }
  .gallery-control { width: 40px; height: 40px; }
  .gallery-control::before { width: 9px; height: 9px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
  .choice { display: flex; margin-right: 0; }
  .confirm-list > div { grid-template-columns: 1fr; gap: 4px; }
  .button { width: 100%; min-width: 0; }
  .confirm-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
