:root {
  --ink: #141716;
  --muted: #69706c;
  --line: #dfe4e1;
  --paper: #f6f7f5;
  --mint: #bfe1d7;
  --mint-dark: #2f6a5b;
  --dark: #0a2227;
  --z-content: 1;
  --z-header: 20;
  --z-toast: 30;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--mint-dark);
  outline-offset: 3px;
}

.announcement {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 8vw, 120px);
  padding: 0 20px;
  color: white;
  background: var(--dark);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-header {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}
.logo { display: inline-flex; align-items: center; font-size: 22px; font-weight: 600; letter-spacing: .2em; }
.logo span { font-size: 7px; vertical-align: top; letter-spacing: 0; }
.logo img { height: 30px; width: auto; display: block; }
footer .logo img { height: 37px; }
.desktop-nav { display: flex; gap: 36px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  right: 0;
  bottom: -6px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease-out;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-actions { display: flex; justify-content: flex-end; gap: 4px; }
.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.cart-count {
  position: absolute;
  right: 1px;
  top: 2px;
  width: 15px;
  height: 15px;
  display: none;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-size: 8px;
}
.cart-count.visible { display: grid; }

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
  max-width: 1360px;
  margin: 0 auto;
  min-height: calc(100dvh - 106px);
}
.gallery { padding: 28px 24px 40px 32px; background: var(--paper); }
.main-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8eeea;
}
.main-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(10,34,39,.05);
  pointer-events: none;
}
.main-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: opacity 150ms ease-out; }
/* Nap Pillow: never crop the product image (white bg, contain) */
.main-image-wrap.pillow-media { background: #fff; }
.main-image-wrap.pillow-media img { object-fit: contain; }
.product-badge {
  position: absolute;
  z-index: var(--z-content);
  top: 16px;
  left: 16px;
  padding: 7px 10px;
  background: white;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
}
.image-index {
  position: absolute;
  z-index: var(--z-content);
  right: 16px;
  bottom: 14px;
  margin: 0;
  font-size: 10px;
  letter-spacing: .12em;
}
.thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.thumbnail {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: #edf0ed;
  cursor: pointer;
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; opacity: .68; transition: opacity .2s ease; }
.thumbnail:hover img, .thumbnail.active img { opacity: 1; }
.thumbnail.active { border-color: var(--ink); }

.product-info {
  align-self: start;
  width: 100%;
  max-width: 620px;
  padding: clamp(42px, 5vw, 72px) clamp(32px, 5vw, 68px) 52px;
  position: sticky;
  top: 76px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.product-info h1 { margin: 0; font-size: clamp(48px, 5.1vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -.06em; }
.subtitle { margin: 16px 0 14px; font-size: 14px; letter-spacing: .08em; }
.rating { display: flex; align-items: center; gap: 12px; font-size: 10px; }
.rating span { letter-spacing: .15em; color: var(--mint-dark); }
.rating a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.price span { margin-left: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.pay-note { margin: 0; color: var(--muted); font-size: 9px; }
.description { margin: 18px 0; color: #424946; font-size: 12px; line-height: 1.9; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.feature-strip div { padding: 12px; border-right: 1px solid var(--line); }
.feature-strip div:last-child { border: 0; }
.feature-strip strong { display: block; font-size: 17px; font-weight: 500; }
.feature-strip span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.color-picker { margin: 22px 0 20px; padding: 0; border: 0; }
.color-picker legend { width: 100%; margin-bottom: 12px; font-size: 10px; letter-spacing: .08em; }
.color-picker legend strong { float: right; font-weight: 500; }
.swatches { display: flex; gap: 10px; }
.swatch {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 4px white;
}
.swatch.active { outline: 1px solid var(--ink); outline-offset: 2px; }
[data-swatch="mint"] { background: #b6ded4; }
[data-swatch="white"] { background: #f3f4f2; }
[data-swatch="lilac"] { background: #ddcce9; }
.purchase-row { display: grid; grid-template-columns: 102px 1fr; gap: 8px; }
.quantity { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border: 1px solid var(--line); text-align: center; }
.quantity button { height: 52px; border: 0; background: transparent; cursor: pointer; }
.quantity button:disabled { color: #b8bdbb; cursor: not-allowed; }
.quantity span { font-size: 11px; }
.add-to-cart, .shop-pay {
  min-height: 52px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}
.add-to-cart { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.add-to-cart:hover { background: var(--mint-dark); border-color: var(--mint-dark); }
.shop-pay { width: 100%; margin-top: 8px; background: white; color: var(--ink); }
.shop-pay:hover { background: var(--paper); }
.shipping-note { margin: 14px 0 26px; color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.shipping-note span { display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: #5c9b69; border-radius: 50%; }
.accordions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; padding: 18px 0; list-style: none; cursor: pointer; font-size: 10px; font-weight: 600; letter-spacing: .09em; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--muted); font-size: 14px; font-weight: 400; transition: transform .2s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 1.8; }
dl { margin: 0 0 18px; }
dl div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 9px; }
dt { color: var(--muted); }
dd { margin: 0; }

.statement { max-width: 1360px; margin: 0 auto; padding: clamp(96px, 12vw, 168px) 5vw; text-align: center; background: white; }
.statement h2, .included h2 { margin: 0; font-size: clamp(48px, 8vw, 116px); line-height: 1.03; font-weight: 500; letter-spacing: -.075em; }
.statement h2 em { color: var(--mint-dark); font-family: Georgia, serif; font-weight: 400; }
.statement > p:last-child { max-width: 430px; margin: 36px auto 0; color: var(--muted); font-size: 12px; line-height: 2; }

.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editorial-image { min-height: 50vw; margin: 0; position: relative; overflow: hidden; background: var(--paper); }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; }
.editorial-image span { position: absolute; left: 22px; bottom: 18px; color: white; font-size: 8px; font-weight: 600; letter-spacing: .18em; }
.editorial-copy { min-height: 50vw; padding: clamp(45px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; background: #edf4f0; }
.editorial-copy h3 { margin: 0 0 28px; font-size: clamp(37px, 5vw, 72px); line-height: 1.08; font-weight: 500; letter-spacing: -.07em; }
.editorial-copy > p:not(.eyebrow) { max-width: 420px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.editorial-copy ul { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(20,23,22,.15); }
.editorial-copy li { padding: 14px 0; border-bottom: 1px solid rgba(20,23,22,.15); font-size: 10px; }
.editorial-copy li span { display: inline-block; width: 44px; color: var(--muted); font-size: 8px; }
.editorial-copy.dark { color: white; background: var(--dark); }
.editorial-copy.dark .eyebrow, .editorial-copy.dark > p:not(.eyebrow) { color: rgba(255,255,255,.55); }
.big-stat { display: flex; align-items: flex-end; gap: 16px; margin-top: 50px; }
.big-stat strong { font-size: clamp(80px, 12vw, 175px); line-height: .75; font-weight: 400; letter-spacing: -.1em; }
.big-stat span { font-size: 8px; line-height: 1.7; letter-spacing: .15em; }

.included { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 8vw; padding: 10vw 8vw; background: #f5f1ea; }
.included h2 { font-size: clamp(42px, 6vw, 85px); }
.included p:last-child { max-width: 380px; margin-top: 30px; color: var(--muted); font-size: 12px; line-height: 1.9; }

/* Feature showcase — explanatory image cards */
.feature-showcase { padding: clamp(80px, 11vw, 150px) 5vw; background: white; }
.feature-showcase .showcase-intro { max-width: 720px; margin: 0 auto clamp(46px, 6vw, 78px); text-align: center; }
.feature-showcase .showcase-intro h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.06; font-weight: 500; letter-spacing: -.06em; }
.feature-showcase .showcase-intro h2 em { color: var(--mint-dark); font-family: Georgia, serif; font-weight: 400; }
.feature-showcase .showcase-intro p { max-width: 460px; margin: 26px auto 0; color: var(--muted); font-size: 12px; line-height: 2; }
.showcase-grid { max-width: 1360px; margin: 0 auto; display: grid; gap: clamp(18px, 2.6vw, 38px); }
.showcase-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.showcase-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.showcase-card { margin: 0; }
.showcase-card .card-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--paper); border-radius: 4px; }
.showcase-grid.media-wide .card-media { aspect-ratio: 800 / 428; }
.showcase-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.showcase-card:hover .card-media img { transform: scale(1.04); }
.showcase-card .card-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.4)); pointer-events: none; }
.showcase-card .card-label { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: white; font-size: 8px; font-weight: 600; letter-spacing: .18em; }
.showcase-card h3 { margin: 24px 0 10px; font-size: clamp(19px, 2vw, 25px); font-weight: 500; letter-spacing: -.04em; }
.showcase-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }

/* Payment methods */
.payments { margin: 16px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.payments-title { margin: 0 0 12px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.payments-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pay-badge { display: inline-flex; align-items: center; }
.pay-badge img { height: 30px; width: auto; display: block; border-radius: 4px; }
.payments-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

.reviews { display: grid; grid-template-columns: .65fr 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews > * { min-height: 330px; padding: 50px 4vw; background: white; }
.review-score strong { display: block; font-size: 88px; line-height: 1; font-weight: 400; letter-spacing: -.08em; }
.review-score span, .reviews article > span { color: var(--mint-dark); font-size: 11px; letter-spacing: .15em; }
.review-score p:last-child { color: var(--muted); font-size: 9px; }
.reviews article { display: flex; flex-direction: column; }
.reviews article h3 { margin: 50px 0 14px; font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.reviews article p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.reviews article small { margin-top: auto; font-size: 8px; font-weight: 600; letter-spacing: .12em; }

footer { padding: 70px 5vw 32px; color: white; background: #111513; }
footer p { margin: 20px 0 60px; color: rgba(255,255,255,.55); font-size: 10px; }
footer div { display: flex; gap: 30px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); font-size: 9px; letter-spacing: .08em; }
footer small { display: block; margin-top: 30px; color: rgba(255,255,255,.35); font-size: 7px; letter-spacing: .14em; }

.cart-toast {
  position: fixed;
  z-index: var(--z-toast);
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 44px));
  padding: 10px;
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  align-items: center;
  gap: 13px;
  color: white;
  background: var(--dark);
  box-shadow: 0 18px 50px rgba(10,34,39,.24);
  transform: translateY(calc(140% + env(safe-area-inset-bottom)));
  transition: transform 180ms ease-out;
}
.cart-toast.show { transform: translateY(0); }
.toast-thumb { width: 64px; height: 64px; overflow: hidden; }
.toast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-toast strong, .cart-toast span { display: block; }
.cart-toast strong { margin-bottom: 6px; font-size: 10px; letter-spacing: .05em; }
.cart-toast span { color: rgba(255,255,255,.55); font-size: 8px; }
.cart-toast button { border: 0; color: white; background: none; cursor: pointer; }

@media (max-width: 900px) {
  .announcement span:not(:first-child), .desktop-nav { display: none; }
  .site-header { height: 64px; grid-template-columns: 1fr auto; }
  .header-actions .icon-button:nth-child(-n+2) { display: none; }
  .product-section { display: block; min-height: 0; }
  .gallery { padding: 12px 12px 24px; }
  .product-info { position: static; max-width: none; padding: 44px 20px 60px; }
  .product-info h1 { font-size: 60px; }
  .statement { padding: 100px 20px; }
  .editorial-grid { display: block; }
  .editorial-image, .editorial-copy { min-height: 100vw; }
  .editorial-copy { padding: 70px 24px; }
  .included { display: flex; flex-direction: column; align-items: stretch; padding: 80px 20px 20px; }
  .included img { margin-top: 40px; }
  .showcase-grid.cols-3, .showcase-grid.cols-2 { grid-template-columns: 1fr; }
  .reviews { display: block; }
  .reviews > * { min-height: auto; border-bottom: 1px solid var(--line); }
  footer div { flex-wrap: wrap; gap: 18px 28px; }
}

@media (max-width: 480px) {
  .thumbnails {
    display: flex;
    margin-inline: -12px;
    padding: 0 12px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .thumbnails::-webkit-scrollbar { display: none; }
  .thumbnail { flex: 0 0 82px; scroll-snap-align: start; }
  .purchase-row { grid-template-columns: 92px 1fr; }
  .feature-strip div { padding: 10px; }
  .statement h2 { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================================
   FIDO Archive Collection — 商品カード/CTA/信頼バッジ (index.html rail)
   ========================================================================= */
:root { --sale: #b3402f; }

/* ヒーローの希少性フラグ */
.hb-hero-lede strong { color: var(--mint-dark); font-weight: 600; }
.hb-hero-flag {
  margin: 22px 0 0;
  font-size: 9px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--sale);
}

/* カード: 内部リンク + CTA の2要素構成に */
.hb-item-link { display: block; color: inherit; text-decoration: none; }

/* 「再販なし」フラグ */
.hb-item-flag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 5px 10px; border-radius: 100px;
  background: var(--ink); color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: .12em;
}

/* 価格: 通常(取り消し線) → セール → %OFF */
.hb-item-foot { flex-wrap: wrap; gap: 6px; }
.hb-item-price { display: flex; align-items: baseline; gap: 8px; }
.hb-price-reg { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.hb-price-sale { font-size: 17px; font-weight: 600; color: var(--sale); letter-spacing: -.02em; }
.hb-price-off {
  font-size: 10px; font-weight: 600; color: var(--sale);
  border: 1px solid var(--sale); border-radius: 100px; padding: 1px 7px;
}

/* 在庫表示 */
.hb-item-stock { margin: 8px 4px 0; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.hb-item-stock strong { font-weight: 700; }
.hb-stock-low { color: var(--sale); }
.hb-stock-low strong { font-size: 13px; }

/* カード内 購入CTA */
.hb-item-cta {
  display: flex; align-items: center; justify-content: center;
  margin-top: 14px; padding: 14px 16px; border-radius: 100px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), background-color .2s ease;
}
.hb-item-cta:hover { transform: translateY(-2px); background: var(--mint-dark); }

/* 完売 */
.hb-item.is-soldout { opacity: .55; }
.hb-item.is-soldout .hb-item-cta {
  background: var(--line); color: var(--muted); pointer-events: none;
}
.hb-item.is-soldout .hb-item-flag { background: var(--muted); }

/* レール下の信頼バッジ */
.hb-trust {
  max-width: 1360px; margin: 0 auto; padding: 6px 5vw 0;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
}
.hb-trust span {
  font-size: 11px; color: var(--muted); letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.hb-trust span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--mint-dark); display: inline-block;
}
.hb-trust strong { color: var(--ink); font-weight: 700; }

@media (max-width: 600px) {
  .hb-item-cta { padding: 15px 16px; font-size: 13px; }
  .hb-trust { gap: 10px 18px; }
  .hb-trust span { font-size: 10px; }
}

/* =========================================================================
   FIDO Archive — 商品詳細ページの価格/在庫表示
   ========================================================================= */
.price .price-was { margin-left: 0; font-size: 14px; font-weight: 400; color: var(--muted); text-decoration: line-through; }
.price .price-now { margin-left: 0; font-size: 22px; font-weight: 600; color: var(--sale); letter-spacing: -.02em; }
.price .price-off {
  margin-left: 2px; font-size: 11px; font-weight: 600; color: var(--sale);
  border: 1px solid var(--sale); border-radius: 100px; padding: 1px 7px;
}
.price .tax { margin-left: 2px; font-size: 9px; color: var(--muted); }
.shipping-note strong { font-weight: 700; }
.shipping-note.low { color: var(--sale); }
.shipping-note.low strong { font-size: 13px; }

/* camp(Circulator) swatch colors */
[data-swatch="camp-white"] { background: #eef0ed; }
[data-swatch="camp-black"] { background: #23302a; }

/* Nap Pillow swatch colors */
.pillow-swatches [data-swatch="pillow-apricot"] { background: #f4a01e; }
.pillow-swatches [data-swatch="pillow-pink"] { background: #f0b8bd; }
.pillow-swatches [data-swatch="pillow-grey"] { background: #6f726c; }
.pillow-swatches [data-swatch="pillow-indigo"] { background: #234a86; }
