:root {
  --teal: #1F6F6B;
  --teal-dark: #17534F;
  --coral: #D65A3C;
  --peach: #FFC9B8;
  --peach-soft: #FBE4DC;
  --cream: #FFFCF5;
  --beige: #F3EDE2;
  --ink: #2E3A39;
  --muted: #6B7675;
  --radius: 18px;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  line-height: 1.8; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 10px 12px 0; }
.header-bar {
  max-width: 960px; margin: 0 auto; height: 52px; padding: 0 6px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-radius: 16px; box-shadow: 0 2px 14px rgba(31,60,58,.10);
}
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 12px;
}
.icon-btn:hover { background: var(--beige); }
.header-right { display: flex; justify-content: flex-end; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--teal); }
.logo-mark { width: 34px; height: auto; }
.logo-text { font-weight: 700; font-size: 19px; letter-spacing: .01em; color: var(--teal); }
.logo-text .baby { color: var(--coral); }

/* メニュー */
.menu, .search {
  max-width: 960px; margin: 8px auto 0; background: #fff;
  border-radius: 16px; box-shadow: 0 10px 30px rgba(31,60,58,.14);
  max-height: calc(100vh - 90px); overflow-y: auto;
}
.menu-list, .sub-list { list-style: none; margin: 0; padding: 0; }
.menu-list { padding: 8px 0; }
.menu-item + .menu-item { border-top: 1px solid var(--beige); }
.menu-row { display: flex; align-items: center; }
.menu-row > a {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; text-decoration: none; font-weight: 500; font-size: 17px;
}
.num { color: var(--coral); font-weight: 700; font-size: 14px; width: 28px; }
.arrow { margin-left: auto; color: var(--teal); }
.sub-toggle {
  width: 48px; height: 48px; margin-right: 8px; border-radius: 50%;
  border: 1.5px solid var(--teal); background: none; color: var(--teal); cursor: pointer;
  display: grid; place-items: center; transition: transform .25s;
}
.sub-toggle[aria-expanded="true"] { transform: rotate(180deg); background: var(--teal); color: #fff; }
.sub-list { padding: 0 20px 12px 58px; }
.sub-list a { display: flex; padding: 10px 0; text-decoration: none; color: var(--ink); border-bottom: 1px dashed var(--beige); }

/* 検索 */
.search { padding: 14px; }
.search input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1.5px solid var(--beige); border-radius: 12px; outline-color: var(--teal);
}
.search ul { list-style: none; margin: 8px 0 0; padding: 0; }
.search li a { display: block; padding: 10px 6px; text-decoration: none; border-bottom: 1px solid var(--beige); }
.search li.empty { padding: 10px 6px; color: var(--muted); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; max-height: 860px; overflow: hidden; background: var(--beige); }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background: var(--img) center / cover no-repeat; text-decoration: none;
  transform: scale(1.04);
}
.slide.is-active { opacity: 1; animation: zoom 7s ease-out forwards; }
@keyframes zoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(20,40,38,.55)); }
.slide-cap {
  position: absolute; left: 22px; right: 22px; bottom: 64px; z-index: 1;
  color: #fff; font-weight: 700; font-size: clamp(18px, 4.6vw, 28px); text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.slide-cap small { display: block; font-size: 13px; font-weight: 500; letter-spacing: .1em; opacity: .9; }
.slide-cap::after { content: " →"; color: var(--peach); }
.dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 9px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.55); transition: width .3s, background .3s;
}
.dots button[aria-selected="true"] { width: 26px; background: #fff; }

/* ---------- 共通セクション ---------- */
section:not(.hero) { padding: 72px 22px; max-width: 960px; margin: 0 auto; }
.eyebrow { margin: 0 0 6px; color: var(--coral); font-weight: 700; font-size: 13px; letter-spacing: .18em; }
h2 { font-size: clamp(24px, 6vw, 32px); color: var(--teal); margin-bottom: 20px; }
.note { color: var(--muted); font-size: 14px; margin: -8px 0 24px; }
.btn {
  display: inline-block; text-align: center; text-decoration: none; font-weight: 700;
  background: var(--teal); color: #fff; padding: 14px 22px; border-radius: 999px;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: scale(.98); }

/* コンセプト */
.concept { text-align: center; }
.concept h1 { font-size: clamp(28px, 7.4vw, 44px); color: var(--teal); margin: 8px 0 22px; }
.concept .lead { font-size: 16px; }
.concept .lead strong { color: var(--coral); }
.tagline {
  display: inline-block; margin-top: 18px; padding: 8px 22px; border-radius: 999px;
  background: var(--peach-soft); color: var(--coral); font-weight: 700;
}

/* ビフォーアフター */
.ba { text-align: center; }
.ba-tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--beige); border-radius: 999px; margin-bottom: 18px; }
.ba-tabs button {
  font: inherit; font-weight: 700; font-size: 14px; border: 0; background: none; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; color: var(--muted);
}
.ba-tabs button.is-active { background: #fff; color: var(--teal); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ba-frame {
  --pos: 50%;
  position: relative; max-width: 560px; margin: 0 auto; aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; background: #ddd;
  box-shadow: 0 0 0 12px #EFE7D8, 0 16px 40px rgba(0,0,0,.12); touch-action: pan-y;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 20px; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.ba-label {
  position: absolute; top: 14px; padding: 4px 12px; background: rgba(40,40,40,.6); color: #fff;
  font-size: 12px; letter-spacing: .2em; border-radius: 4px; pointer-events: none;
}
.ba-label.left { left: 14px; } .ba-label.right { right: 14px; }
.ba-frame input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-hint { color: var(--muted); font-size: 14px; margin-top: 26px; }

/* 作品例 */
.age { margin-bottom: 44px; }
.age h3 {
  display: inline-block; font-size: 18px; color: var(--teal); margin-bottom: 14px;
  padding-bottom: 4px; border-bottom: 3px solid var(--peach);
}
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.grid img:first-child,
.grid img:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
}

/* 料金 */
.cards { display: grid; gap: 16px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }
.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px;
  text-align: center; box-shadow: 0 4px 18px rgba(31,60,58,.07); display: flex; flex-direction: column;
}
.card.featured { outline: 2px solid var(--teal); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 999px;
}
/* 額縁の写真 */
.plan-photo {
  width: 100%; max-width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: #F6F1EA; border-radius: 12px; margin-bottom: 16px;
}

/* 数量ボタン「− 1 ＋」 */
.buy { margin-top: auto; display: grid; gap: 10px; justify-items: center; }
.buy .btn { width: 100%; font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.stepper {
  display: inline-flex; align-items: center; border: 3px solid #F5C64A; border-radius: 999px; background: #fff;
  height: 48px; overflow: hidden;
}
.step-btn {
  width: 52px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: inherit; font-size: 22px; font-weight: 700; display: grid; place-items: center;
}
.step-btn:hover { background: #FFF6DA; }
.step-btn:disabled { color: #ccc; cursor: default; background: none; }
.step-num-val { min-width: 40px; text-align: center; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.to-cart { font-size: 14px; color: var(--teal); font-weight: 700; }

/* ヘッダーのカートの数 */
.cart-link { position: relative; text-decoration: none; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ---------- カートページ ---------- */
.cart-page { max-width: 640px; margin: 0 auto; padding: calc(var(--header-h) + 36px) 16px 60px; }
.cart-page h2 { margin-bottom: 6px; }
.cart-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.cart-empty .btn { margin-top: 16px; }
.cart-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.cart-item { position: relative; border-radius: 16px; overflow: hidden; background: #fff; touch-action: pan-y; }
.cart-item .del-btn {
  position: absolute; inset: 0 0 0 auto; width: 96px; border: 0; background: #B3261E; color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.cart-item .row {
  position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px;
  background: #fff; transition: transform .25s ease; will-change: transform;
}
.cart-item.dragging .row { transition: none; }
.cart-item .row img { width: 96px; height: 96px; object-fit: contain; background: #F6F1EA; border-radius: 10px; }
.cart-item .info { min-width: 0; display: grid; gap: 4px; align-content: start; }
.cart-item h3 { font-size: 16px; }
.cart-item .detail { font-size: 13px; color: var(--muted); }
.cart-item .unit { font-size: 15px; font-weight: 700; color: var(--teal); }
.cart-item .stepper { height: 40px; justify-self: start; margin-top: 4px; }
.cart-item .step-btn { width: 44px; font-size: 20px; }
.swipe-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.ship { margin-top: 28px; border: 0; padding: 0; }
.ship legend { font-weight: 700; color: var(--teal); font-size: 17px; margin-bottom: 10px; }
.ship-opt {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start;
  background: #fff; border: 2px solid var(--beige); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
}
.ship-opt:has(input:checked) { border-color: var(--teal); background: #F2F8F7; }
.ship-opt input { margin-top: 5px; accent-color: var(--teal); width: 18px; height: 18px; }
.ship-opt b { font-size: 16px; }
.ship-opt .fee { font-weight: 700; color: var(--teal); white-space: nowrap; }
.ship-opt small { grid-column: 2 / 4; color: var(--muted); font-size: 13px; line-height: 1.6; }

.summary { margin-top: 24px; background: #fff; border-radius: 16px; padding: 18px 20px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-variant-numeric: tabular-nums; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-size: 22px; font-weight: 700; color: var(--teal); padding-top: 10px; border-top: 1px solid var(--beige); }
.summary .total-label { padding-top: 10px; border-top: 1px solid var(--beige); color: var(--ink); font-weight: 700; align-self: end; }
.checkout-btn {
  width: 100%; margin-top: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px;
  padding: 16px; border-radius: 999px; background: #F5C64A; color: #3A2F12;
}
.checkout-btn:hover { background: #F0B92A; }
.checkout-btn:disabled { opacity: .6; cursor: wait; }
.checkout-msg { margin: 12px 0 0; font-size: 14px; color: #B3261E; }
.cart-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.back-link { display: inline-block; margin-top: 18px; color: var(--teal); font-weight: 700; }

/* お支払いページ */
.checkout-page .summary { margin-top: 8px; }
.order-lines { list-style: none; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--beige); font-size: 14px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order-lines b { font-weight: 500; white-space: nowrap; }
.checkout-form { margin-top: 20px; min-height: 120px; }

/* 注文完了ページ */
.order-no { display: inline-block; background: #fff; border-radius: 999px; padding: 6px 18px; margin: 4px 0 8px; font-size: 15px; }
.order-no b { color: var(--teal); letter-spacing: .08em; }
.thanks { text-align: center; }
.thanks .steps-box { text-align: left; background: #fff; border-radius: 16px; padding: 20px; margin: 22px 0; }
.thanks .steps-box ol { margin: 0; padding-left: 1.3em; }
.thanks .steps-box li { margin-bottom: 10px; }
.contact-info { display: grid; gap: 12px; max-width: 380px; margin: 0 auto; }
.mail-addr { font-weight: 700; color: var(--teal); user-select: all; word-break: break-all; }
.count { display: inline-block; margin: 6px auto 0; padding: 2px 12px; border-radius: 999px; background: var(--peach-soft); color: var(--coral); font-size: 13px; font-weight: 700; }
.card h3 { font-size: 18px; }
.desc { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.price { font-size: 30px; font-weight: 700; color: var(--teal); margin: 0 0 16px; }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* 流れ */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 16px; padding: 18px 0; position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 58px; bottom: -8px; width: 2px; background: var(--peach); }
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.steps h3 { font-size: 17px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* FAQ */
details { background: #fff; border-radius: 14px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(31,60,58,.05); }
summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q."; color: var(--coral); margin-right: 8px; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal); }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 20px 18px 46px; color: var(--muted); }
details .answer { padding: 0 20px 18px 46px; }
details .answer p { padding: 0; margin-bottom: 12px; }
details a, .steps a { color: var(--teal); }
.faq-group { font-size: 15px; color: var(--teal); margin: 28px 0 10px; }
.faq-group:first-of-type { margin-top: 0; }
.days { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.days th, .days td { padding: 8px 6px; border-bottom: 1px solid var(--beige); text-align: left; }
.days th { font-weight: 500; color: var(--ink); white-space: nowrap; }
.days td { color: var(--teal); font-weight: 700; }
.answer .small { font-size: 13px; }

/* お問い合わせ */
.contact { text-align: center; }
.contact-btns { display: grid; gap: 12px; max-width: 360px; margin: 20px auto 0; }
.btn.line { background: #06C755; }

/* フッター */
.site-footer { background: var(--teal); color: #fff; text-align: center; padding: 40px 22px 30px; }
.site-footer .logo-text { color: #fff; } .site-footer .logo-text .baby { color: var(--peach); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 18px 0; font-size: 13px; }
.footer-links a { text-decoration: none; opacity: .9; }
.copy { font-size: 12px; opacity: .7; margin: 0; }

/* 下層ページ */
.page { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 22px 60px; }
.page table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.page th, .page td { text-align: left; vertical-align: top; padding: 14px; border-bottom: 1px solid var(--beige); font-size: 15px; }
.page th { width: 34%; background: #FAF6EE; color: var(--teal); }
.todo { background: #FFF3C4; padding: 0 4px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-active { transition: none; animation: none; transform: none; }
}
