:root {
  --bg: #fff8f2;
  --bg-soft: #ffe8f3;
  --bg-mint: #e8faf4;
  --surface: #ffffff;
  --text: #3a2f45;
  --muted: #7a6d86;
  --primary: #7b4db8;
  --primary-dark: #5f3a94;
  --accent: #ff7eb6;
  --accent-2: #54d2c3;
  --sun: #ffd56b;
  --line: #f0dceb;
  --danger: #b42318;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 28px rgba(123, 77, 184, 0.12);
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Nunito", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 126, 182, 0.18), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(84, 210, 195, 0.18), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(255, 213, 107, 0.2), transparent 30%),
    linear-gradient(180deg, #fffdfb 0%, var(--bg) 45%, #fff5fb 100%);
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code {
  background: var(--bg-soft);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}

.inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.narrow { width: min(720px, calc(100% - 2rem)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(255, 253, 250, 0.9);
  border-bottom: 2px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  box-shadow: 0 6px 0 rgba(123, 77, 184, 0.25);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-size: 1.08rem;
  font-weight: 800;
}
.brand-text small { color: var(--muted); font-size: 0.75rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-list a:hover { color: var(--primary); }
.nav-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff !important;
  box-shadow: 0 4px 0 rgba(123, 77, 184, 0.28);
}
.nav-cta:hover { filter: brightness(1.05); text-decoration: none; }

/* Hero photo slider */
.hero-photo { margin: 0; }
.hero-slider {
  position: relative;
  min-height: min(78vh, 640px);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 6s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(58, 47, 69, 0.15) 0%, rgba(58, 47, 69, 0.55) 55%, rgba(58, 47, 69, 0.78) 100%);
  color: #fff;
}
.hero-copy {
  padding: 4rem 0 3.2rem;
  max-width: 40rem;
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 213, 107, 0.95);
  color: #5a3d00;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  opacity: 0.96;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  padding: 0;
  cursor: pointer;
}
.hero-dots button.is-active {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,126,182,0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  box-shadow: 0 5px 0 rgba(123, 77, 184, 0.28);
}
.btn-ghost {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.section .btn-ghost,
.page-head .btn-ghost,
.form-actions .btn-ghost {
  color: var(--primary);
  border-color: var(--primary);
  background: #fff;
}
.section .btn-primary,
.page-head .btn-primary,
.form-actions .btn-primary,
.price-box .btn-primary,
.page-head-mask .btn-primary,
.center-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
}
.btn-block { width: 100%; }

.section { padding: 3.2rem 0; }
.section-soft { background: rgba(255,255,255,0.55); }
.section-pop { background: linear-gradient(180deg, rgba(255,232,243,0.55), rgba(232,250,244,0.4)); }
.section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
}
.pop-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--sun), var(--accent-2));
}
.section-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 40em;
}
.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Photo cards */
.photo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.photo-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.photo-card:hover {
  transform: translateY(-5px) rotate(-0.3deg);
  box-shadow: 0 18px 36px rgba(123, 77, 184, 0.18);
  text-decoration: none;
}
.photo-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-mint);
  overflow: hidden;
}
.photo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.photo-card-body { padding: 1rem 1.05rem 1.15rem; }
.photo-card-cat {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}
.photo-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.4;
}
.photo-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.category-photo-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.category-photo-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
}
.category-photo-media {
  min-height: 200px;
  background: var(--bg-soft);
}
.category-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-photo-body {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.category-photo-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}
.category-photo-body p {
  margin: 0;
  color: var(--muted);
}
.link-more {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--primary);
  font-weight: 800;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
}
.gallery-strip figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  transform: rotate(-1deg);
}
.gallery-strip figure:nth-child(even) { transform: rotate(1.2deg); }
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.8rem;
  border-radius: 24px;
  background: linear-gradient(120deg, #fff, var(--bg-soft), var(--bg-mint));
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 0.35rem; }
.cta-band p { margin: 0; color: var(--muted); }

.page-head { padding: 2.4rem 0 1rem; }
.page-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
}
.page-head-photo {
  padding: 0;
  background-size: cover;
  background-position: center;
  min-height: 240px;
}
.page-head-mask {
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(58,47,69,0.2), rgba(58,47,69,0.72));
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.page-head-mask p { opacity: 0.95; }
.breadcrumb { color: var(--muted); font-size: 0.9rem; }
.page-head-mask .breadcrumb,
.page-head-mask .breadcrumb a { color: #ffe8f3; }

.category-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.category-head-thumb {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1.5rem;
}
.detail-hero-photo {
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  background: var(--bg-soft);
}
.detail-hero-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.price-box {
  position: sticky;
  top: 96px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}
.price-box .label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.price-box .price {
  margin: 0.25rem 0;
  font-size: 1.8rem;
  color: var(--primary-dark);
  font-weight: 800;
}
.price-box .unit,
.price-box .meta {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.muted { color: var(--muted); }
.tiny { font-size: 0.85rem; }

.estimate-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.estimate-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface);
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.estimate-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.estimate-card-check {
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.estimate-card-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--primary);
  cursor: pointer;
}
.estimate-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(123,77,184,0.12);
}
.estimate-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.estimate-card-name {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  font-weight: 800;
}
.estimate-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}
.estimate-card-price {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.95rem;
}
.estimate-card-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.estimate-card-qty-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.estimate-card-qty .unit {
  font-size: 0.85rem;
  color: var(--muted);
}
.qty-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.estimate-card .qty-input,
.estimate-card input[type="number"].qty-input {
  width: 3.5rem;
  min-width: 3.5rem;
  padding: 0.4rem 0.35rem;
  text-align: center;
  border-radius: 10px;
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.req { color: var(--danger); }
.field-error { color: var(--danger); margin: 0.3rem 0 0; font-size: 0.9rem; }
.has-error input,
.has-error textarea { border-color: var(--danger); }
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.alert-error {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #fecdca;
}
.preview-box,
.contact-fields {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}
.preview-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.preview-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}
.preview-total { font-size: 1.15rem; }
.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.flow-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.flow-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 2px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  align-items: center;
}
.flow-list-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(123,77,184,0.12);
}
.flow-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,126,182,0.16), rgba(123,77,184,0.14));
  color: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(123,77,184,0.1);
}
.flow-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
.flow-list .step {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.flow-list h3 { margin: 0 0 0.25rem; }
.flow-list p { margin: 0; color: var(--muted); }

.info-list { margin: 0 0 1.5rem; }
.info-list > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list dt {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.info-list dd { margin: 0; }

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}
.prose.scope-box {
  background: #f3fbff;
  border: 1px solid #cfe8f5;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.work-steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}
.work-steps li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.work-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.empty-note {
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: 12px;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  background: linear-gradient(160deg, #3a2f45, #5f3a94);
  color: #efe8f7;
}
.footer-inner { display: grid; gap: 1.25rem; }
.footer-brand p {
  margin: 0.4rem 0 0;
  color: #c9bfd6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: #efe8f7; }
.copyright {
  margin: 0;
  color: #a99cb8;
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .photo-card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .category-photo-card { grid-template-columns: 1fr; }
  .category-photo-media { min-height: 180px; }
  .estimate-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: #fff;
    border-bottom: 2px solid var(--line);
    padding: 1rem;
  }
  .site-nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .detail-layout,
  .cta-band,
  .info-list > div {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .price-box { position: static; }
  .hero-slider { min-height: 70vh; }
  .flow-list-photo li,
  .flow-list-icons li { flex-wrap: wrap; }
  .flow-icon {
    width: 64px;
    height: 64px;
  }
  .flow-icon svg {
    width: 34px;
    height: 34px;
  }
  .estimate-card-grid { grid-template-columns: 1fr; }
  .estimate-thumb {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 560px) {
  .photo-card-grid,
  .gallery-strip,
  .category-photo-grid {
    grid-template-columns: 1fr;
  }
}
