:root {
  --bg: #f4efe6;
  --paper: #fffaf1;
  --ink: #1f1a17;
  --muted: #6f6259;
  --accent: #a63d32;
  --accent-strong: #7f281f;
  --line: #dbcbb8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 5%, #f8e8cf 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #e6d9c0 0%, transparent 40%),
    var(--bg);
  font-family: "Outfit", sans-serif;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Shippori Mincho", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 40ch;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

/* ── Before/After スライダー ── */
.hero-slider {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(65, 39, 23, 0.08);
}

.ba-slide {
  display: none;
}

.ba-slide.active {
  display: block;
}

.ba-pair {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.8rem !important;
}

.ba-item {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.ba-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.ba-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 12px;
  display: block;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.active {
  background: var(--accent);
}

/* ── セクション ── */
.section {
  padding: 3rem 0;
}

.section-contrast {
  background: linear-gradient(180deg, transparent, #efe1cd 30%, #efe1cd 70%, transparent);
}

/* ── サービス内容 ── */
.service-card h3 {
  margin: 1.2rem 0 0.4rem;
  font-family: "Shippori Mincho", serif;
  font-size: 1.05rem;
}

.service-note {
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: #f8f0e6;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-delivery {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.price-card,
.payment-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 1rem;
}

/* ── 注文の流れ ── */
.card.flow-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  overflow: hidden;
}

.flow-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ── 料金 ── */
.price-table-card,
.estimate-card {
  margin-top: 1.25rem;
}

.price-table {
  margin: 0;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.price-row:last-child,
.price-group:last-child .price-row:last-child {
  border-bottom: 0;
}

.price-row dt,
.price-row dd {
  margin: 0;
}

.price-row dd {
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
}

.price-row--head dt {
  font-weight: 600;
  color: var(--ink);
}

.price-row--sub dt {
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-amount {
  color: var(--accent);
  font-weight: 700;
}

.price-footnote {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.estimate-title {
  margin: 0 0 1rem;
  font-family: "Shippori Mincho", serif;
  font-size: 1.15rem;
}

.estimate-form {
  display: grid;
  gap: 0.75rem;
}

.estimate-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
}

.estimate-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.estimate-fixed {
  grid-column: 2 / -1;
  font-weight: 700;
  color: var(--accent);
}

.estimate-hint {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.estimate-total {
  margin: 0.75rem 0 0;
  padding-top: 0.85rem;
  border-top: 2px solid var(--line);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-category {
  margin: 2rem 0 0.3rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.plan-note {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

.pricing-unified {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 280px;
}

.price-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.price-card h4 {
  margin: 0 0 0.3rem;
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
}

.price {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.price-unit {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.featured {
  border-width: 2px;
}

.pricing-extra {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── 決済・問い合わせ ── */
.payment-wrap,
.contact-wrap {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 1fr;
}

.payment-form {
  display: grid;
  gap: 0.5rem;
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.order-quantity {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.order-quantity legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.order-total {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  border: 1px solid #ccbba5;
  border-radius: 10px;
  padding: 0.65rem;
  font: inherit;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

button {
  margin-top: 0.4rem;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: wait;
}

#form-message,
#inquiry-form-message {
  min-height: 1.2rem;
  color: var(--muted);
}

.notice {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .payment-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .cards,
  .pricing-unified {
    grid-template-columns: 1fr;
  }

  .estimate-row {
    grid-template-columns: 1fr;
  }

  .estimate-fixed {
    grid-column: 1;
  }

  .estimate-hint {
    grid-column: 1;
  }
}
