/* CD窓 ランディング ─ 明るい部屋とマテリアルなCDケース */
:root{
  --wall: #f6f4ef;
  --wall-deep: #edeae3;
  --ink: #26262b;
  --ink-soft: #6f6e76;
  --line: rgba(38, 38, 43, 0.1);
  --accent: #e8618c;
  --accent-deep: #c74b73;
  --dark: #141419;
  --shelf-hi: #a08363;
  --shelf-lo: #7c6248;
  --sans-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --sans-en: "Outfit", "Zen Kaku Gothic New", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body{
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans-jp);
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #f8cfdd; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 共通部品 ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.sec { padding: clamp(76px, 13vh, 140px) 0; }
.eyebrow{
  font-family: var(--sans-en);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--accent);
  margin-bottom: 1.6em;
}
h2{
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-bottom: 0.9em;
}
.plain { color: var(--ink-soft); }
.center { text-align: center; }

ul.plus { list-style: none; margin-top: 1.6em; }
ul.plus li{
  position: relative;
  padding-left: 1.5em;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.35em;
}
ul.plus li::before { content: "＋"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.btn{
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-store { background: var(--ink); color: #fff; }
.btn-store:hover { transform: translateY(-2px); background: #000; }
.btn-accent{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(232, 97, 140, 0.65);
}
.btn-accent:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* 出現アニメ(JSが .in を付ける) */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- ジャケット ----------
   層構成(奥→手前): aura / drop / contact / floor / edge / face
                     / gloss / sheen / rim / ui  ＋ tag(ケースの上) */
.hako{
  --size: 132px;          /* ジャケットの一辺 */
  --depth: 9px;           /* ケースの厚み */
  --tilt: -12deg;         /* 左に振る量 */
  --lean: 2.5deg;         /* 見下ろす角度 */
  --persp: 780px;         /* 消失点の遠さ */

  --floor-gap: 3px;       /* 本体と映り込みの隙間 */
  --floor-height: 0.62;   /* 映り込みの伸び(対 --size) */
  --floor-opacity: 0.30;
  --floor-blur: 1.3px;

  --shadow-slant: 30deg;
  --shadow-length: 0.42;
  --shadow-ink: 0.34;

  --sheen: 0.42;          /* 盤面を走る筋 */
  --gloss: 1;             /* gloss.png の濃さ */
  --hako-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  position: relative;
  display: block;
  width: var(--size);
  height: calc(var(--size) * (1 + var(--floor-height)) + var(--floor-gap));
}
.hako *{ margin: 0; padding: 0; box-sizing: border-box; }

.plate{
  position: absolute;
  inset: 0;
  perspective: var(--persp);
  perspective-origin: 50% 34%;
  transition: opacity 0.16s var(--hako-ease);
}
/* 曲が変わる瞬間だけ、差し替えるように一度沈む */
.plate.is-swapping{ opacity: 0; }

/* 1. 斜めに落ちる影 */
.drop{
  position: absolute;
  left: 0;
  top: var(--size);
  width: var(--size);
  height: calc(var(--size) * var(--shadow-length));
  background: radial-gradient(ellipse 64% 100% at 50% 0%,
    rgba(12,12,14,0.72), rgba(12,12,14,0) 76%);
  opacity: var(--shadow-ink);
  transform-origin: 50% 0%;
  transform: skewX(var(--shadow-slant));
  filter: blur(6px);
  pointer-events: none;
}
/* 2. 接地影 */
.contact{
  position: absolute;
  left: 5%;
  top: calc(var(--size) - 6px);
  width: 90%;
  height: 15px;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(10,10,12,0.6), rgba(10,10,12,0) 74%);
  filter: blur(3px);
  pointer-events: none;
}
/* 3. 床の映り込み(上下反転＋ぼかし＋グラデマスク) */
.floor{
  position: absolute;
  left: 0;
  top: calc(var(--size) + var(--floor-gap));
  width: var(--size);
  height: calc(var(--size) * var(--floor-height));
  overflow: hidden;
  transform: rotateX(var(--lean)) rotateY(var(--tilt)) scaleY(-1);
  transform-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.18) 42%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.18) 42%, #000 100%);
  pointer-events: none;
}
.floor__img{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--size);
  object-fit: cover;
  opacity: var(--floor-opacity);
  filter: blur(var(--floor-blur)) saturate(0.8);
}
.floor__gloss{
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255,255,255,0.11) 0%, rgba(255,255,255,0) 34%,
    rgba(255,255,255,0) 68%, rgba(255,255,255,0.05) 79%,
    rgba(255,255,255,0) 100%);
}
/* 4-7. ケース本体 */
.case{
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  transform: rotateX(var(--lean)) rotateY(var(--tilt));
}
.case__edge{ /* 厚み(左側面) */
  position: absolute;
  top: 0;
  left: 0;
  width: var(--depth);
  height: 100%;
  transform-origin: left center;
  transform: translateZ(calc(var(--depth) / -2)) rotateY(90deg);
  background: linear-gradient(to right, #f3f0ea 0%, #ded9d1 24%, #b3ada4 64%, #8d8780 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.case__face{
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--depth) / 2));
  border-radius: 2px;
  overflow: hidden;
  background: #17171a;
}
.case__art{ display: block; width: 100%; height: 100%; object-fit: cover; }
/* 曲面の照り返し */
.case__gloss{
  position: absolute;
  inset: 0;
  background-image: url("assets/gloss.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: var(--gloss);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* 盤面を走る筋。--sx/--sy はカーソル位置でJSが動かす(0-1) */
.case__sheen{
  position: absolute;
  inset: -22%;
  background: linear-gradient(122deg,
    rgba(255,255,255, calc(var(--sheen) * 1)) 0%,
    rgba(255,255,255, calc(var(--sheen) * 0.34)) 11%,
    rgba(255,255,255,0) 27%,
    rgba(255,255,255,0) 58%,
    rgba(255,255,255, calc(var(--sheen) * 0.22)) 67%,
    rgba(255,255,255, calc(var(--sheen) * 0.05)) 74%,
    rgba(255,255,255,0) 88%);
  transform: translateX(calc((var(--sx, 0.5) - 0.5) * 34px))
             translateY(calc((var(--sy, 0.5) - 0.5) * 14px));
  transition: transform 0.55s var(--hako-ease);
  pointer-events: none;
}
.case__rim{
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.16),
    inset 2px 0 3px -1px rgba(255,255,255,0.34),
    inset -10px 0 16px -10px rgba(0,0,0,0.5),
    inset 0 -10px 14px -10px rgba(0,0,0,0.38);
  pointer-events: none;
}

/* 曲名。ケースの外、真上。常設ではなくホバーで出る */
.tag{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  padding-bottom: calc(var(--size) * 0.032);
  opacity: 0;
  transition: opacity 0.22s var(--hako-ease);
  pointer-events: none;
  text-align: left;
}
.hako.is-tagged .tag,
.plate:hover .tag,
.plate:focus-within .tag{ opacity: 1; }
.tag__line{ overflow: hidden; font-size: 0; }
.tag__line span{
  display: inline-block;
  white-space: nowrap;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 1px 2px rgba(0,0,0,0.88), 0 0 9px rgba(0,0,0,0.66);
  font-family: var(--sans-jp);
  font-weight: 500;
  font-size: clamp(10.5px, calc(var(--size) * 0.063), 20px);
  line-height: 1.42;
  letter-spacing: 0.015em;
}
.tag__line span.tag__artist{
  color: rgba(255,255,255,0.64);
  font-weight: 400;
  font-size: clamp(9px, calc(var(--size) * 0.054), 17px);
}

/* 操作系。ホバーで現れる */
.ui{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(var(--size) * 0.076);
  padding-bottom: calc(var(--size) * 0.083);
  background: linear-gradient(to top,
    rgba(10,10,12,0.62) 0%, rgba(10,10,12,0.14) 34%, rgba(10,10,12,0) 56%);
  opacity: 0;
  transition: opacity 0.22s var(--hako-ease);
  pointer-events: none;
}
.plate:hover .ui,
.ui:focus-within{ opacity: 1; }
/* 匣の中の操作ボタン */
.hako .btn{
  width: calc(var(--size) * 0.227);
  height: calc(var(--size) * 0.227);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.94);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.18s var(--hako-ease), transform 0.18s var(--hako-ease);
}
.hako .btn:hover{ background: rgba(255,255,255,0.15); }
.hako .btn:active{ transform: scale(0.92); }
.hako .btn svg{
  width: calc(var(--size) * 0.129);
  height: calc(var(--size) * 0.129);
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.55));
}
.hako .btn .icon-pause{ display: none; }
.hako.is-playing .btn .icon-play{ display: none; }
.hako.is-playing .btn .icon-pause{ display: block; }

/* 曲の色をまとった光 */
.aura{ display: none; }
.hako.show-aura .aura{
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.aura span{
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(var(--aura, 148,148,158), 0.5) 0%,
    rgba(var(--aura, 148,148,158), 0.14) 56%,
    rgba(var(--aura, 148,148,158), 0) 80%);
  animation: hako-swell var(--t) ease-in-out infinite alternate;
}
.aura span:nth-child(1){ --t: 2.9s; width: 200%; height: 200%; left: -50%; top: -56%; }
.aura span:nth-child(2){ --t: 4.3s; width: 132%; height: 132%; left: 24%; top: -10%; animation-delay: -1.1s; }
.aura span:nth-child(3){ --t: 6.7s; width: 156%; height: 156%; left: -36%; top: 24%; animation-delay: -2.6s; }
@keyframes hako-swell{
  from{ transform: scale(0.84); opacity: 0.5; }
  to  { transform: scale(1.16) translate(3%, -4%); opacity: 1; }
}

/* 棚に並ぶときは映り込みを畳む */
.hako--shelf{ --floor-height: 0; --floor-gap: 0px; --size: var(--case); }

/* ---------- 上部バー ---------- */
.top{
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(20px, 5vw, 48px);
}
.crumb{
  font-family: var(--sans-en);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.crumb:hover { color: var(--ink); }
.top-right{ display: flex; align-items: center; gap: 12px; }
/* 上部バーのストアへのリンク */
.store-pill{
  font-family: var(--sans-en);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 14px 5px 16px;
  transition: background 0.25s, color 0.25s;
}
.store-pill:hover{ background: var(--accent); color: #fff; }
.lang-btn{
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--sans-en);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 5px 13px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.lang-btn:hover{ color: var(--ink); border-color: var(--ink-soft); }

/* ---------- ヒーロー ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(90% 70% at 8% 12%, #ffffff 0%, rgba(255,255,255,0) 60%),
    radial-gradient(70% 60% at 92% 88%, rgba(232,97,140,0.07), transparent 65%),
    linear-gradient(180deg, #f8f6f2, var(--wall));
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-title{
  font-family: var(--sans-en);
  font-size: clamp(3.2rem, 7.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.hero-en{
  font-family: var(--sans-en);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--ink-soft);
  margin-top: 0.6em;
}
.hero-lead{
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 2;
  margin-top: 1.8em;
}
.hero-sub{
  font-size: 0.92rem;
  margin-top: 1.3em;
  max-width: 30em;
}
.cta-row{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.2em; }

/* ヒーローの浮かぶケース群 */
.hero-stage{ position: relative; perspective: 1000px; padding-top: 20px; }
.drift{
  position: absolute;
  transform: translate(calc(var(--px, 0) * var(--dx, 12px)), calc(var(--py, 0) * var(--dy, 8px)));
  transition: transform 0.3s ease-out;
}
.d1 { top: 0;   left: 2%;  --dx: 16px;  --dy: 10px; }
.d2 { top: 58%; left: -2%; --dx: 28px;  --dy: 16px; }
.d3 { top: 6%;  right: 0;  --dx: -20px; --dy: 12px; }
.d1 .drift-hako{ --size: 62px; }
.d2 .drift-hako{ --size: 46px; }
.d3 .drift-hako{ --size: 76px; }
.drift-hako{ --floor-height: 0.34; --shadow-ink: 0.2; }
.floaty{ display: block; animation: float 9s ease-in-out infinite; opacity: 0.9; }
.d2 .floaty { animation-duration: 7.2s; animation-delay: 0.8s; }
.d3 .floaty { animation-duration: 11s;  animation-delay: 1.6s; }
@keyframes float{
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50%      { transform: translateY(-10px) rotate(0.7deg); }
}
.tilt{
  position: relative;
  z-index: 2;
  width: max-content;
  margin: 0 auto;
  transition: transform 0.3s ease-out;
}
.hero-hako{ --size: clamp(150px, 17vw, 205px); }
.hero-cap{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}
.eq{ display: inline-flex; align-items: flex-end; gap: 2.5px; height: 12px; }
.eq i{
  width: 3px; height: 30%;
  border-radius: 1px;
  background: var(--accent);
  animation: eq 1.05s ease-in-out infinite;
}
.eq i:nth-child(2){ animation-delay: 0.18s; }
.eq i:nth-child(3){ animation-delay: 0.36s; }
@keyframes eq{ 0%, 100% { height: 30%; } 50% { height: 100%; } }

.scroll-cue{
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--sans-en);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
}
.scroll-cue span{
  width: 1px; height: 34px;
  background: linear-gradient(var(--ink-soft), transparent);
  animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue{
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ---------- 共感セクション ---------- */
.empathy{ text-align: center; }
.empathy .inner{ max-width: 660px; margin: 0 auto; }
.empathy p.plain{ font-size: 0.95rem; }

/* ---------- 機能A: 小窓 ---------- */
.feat-grid{
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.browser{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 34px 70px -34px rgba(30, 30, 40, 0.3);
  overflow: hidden;
}
.browser-bar{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f1efeb;
  border-bottom: 1px solid var(--line);
}
.dot{ width: 9px; height: 9px; border-radius: 50%; background: #d9d5cd; }
.addr{
  margin-left: 8px;
  flex: 1;
  max-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans-en);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  padding: 3px 14px;
  line-height: 1.6;
}
/* 中身はSpotify Web Playerに合わせて暗い */
.browser-body{ position: relative; padding: 26px; min-height: 300px; background: #121212; }
.sk-wrap{ display: grid; grid-template-columns: 110px 1fr; gap: 20px; margin-bottom: 20px; }
.sk-media{ aspect-ratio: 1; border-radius: 6px; background: linear-gradient(140deg, #3a3a3f, #25252a); }
.sk{ display: block; height: 9px; border-radius: 5px; background: rgba(255,255,255,0.09); margin-bottom: 11px; }
.w95{ width: 95%; } .w85{ width: 85%; } .w70{ width: 70%; } .w55{ width: 55%; } .w40{ width: 40%; }

/* 匣はページの上に浮く */
.mini-slot{
  position: absolute;
  right: 26px;
  bottom: 20px;
}
.mini-slot .hako{ --size: 118px; }

.try-note{
  margin: 18px 4px 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.tracks{ display: flex; gap: 12px; flex-wrap: wrap; }
.track-btn{
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.25s;
}
.track-btn img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.track-btn:hover{ transform: translateY(-4px); }
.track-btn.on{ position: relative; }
.track-btn.on::after{
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--accent);
  border-radius: 8px;
}

/* ---------- 機能B: CD棚 ---------- */
/* 部屋の写真＋字を読ませるための膜 */
.room{
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px clamp(18px, 4vw, 40px) 34px;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(40, 35, 30, 0.3);
}
.room::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/bg3.jpg");
  background-position: center center;
  background-size: cover;
  transform: scaleX(-1) scale(1.1);
}
.room::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(246,245,242,0.52) 0%,
    rgba(246,245,242,0.26) 34%,
    rgba(246,245,242,0.42) 100%);
}
.room-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.room-bc{
  font-family: var(--sans-en);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
}
.chips{ display: flex; gap: 8px; }
.chip{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
}
.stats{
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 4vw, 42px);
  margin: 10px 4px 26px;
}
.stat{ text-align: center; }
/* 数字は Outfit の細字 */
.stat b{
  display: block;
  font-family: var(--sans-en);
  font-weight: 300;
  font-size: 34px;
  line-height: 0.85;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}
.stat b.stat-date{ font-size: 16px; line-height: 1.5; }
.stat i{
  display: block;
  margin-top: 0.6em;
  font-style: normal;
  font-family: var(--sans-en);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
  color: var(--ink-soft);
}
/* 棚板は背景グラデーションを --pitch ごとに繰り返して描く */
.shelf{
  --case: clamp(58px, 7.4vw, 94px);   /* 棚に並ぶケースの一辺 */
  --gap: 5px;
  --board: 7px;
  --air: 42px;                        /* 棚と棚の間 */
  --pitch: calc(var(--case) + var(--air));
  --wood-lit: #8a6a47;
  --wood: #5c4630;
  --wood-dark: #43331f;

  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  column-gap: var(--gap);
  row-gap: var(--air);
  background-image: linear-gradient(to bottom,
    transparent 0,
    transparent calc(var(--case) - 1px),
    var(--wood-lit)  calc(var(--case) - 1px),
    var(--wood)      calc(var(--case) + 1.5px),
    var(--wood-dark) calc(var(--case) + var(--board)),
    rgba(44,43,40,0.20) calc(var(--case) + var(--board)),
    rgba(44,43,40,0)    calc(var(--case) + var(--board) + 16px),
    transparent 100%);
  background-size: 100% var(--pitch);
  background-repeat: repeat-y;
  padding-bottom: calc(var(--board) + 16px);
}
.item{
  position: relative;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
}
.item:hover,
.item:focus-within{ transform: translateY(-3px); z-index: 3; }
/* キャプションは棚板の下に、白磁の紙を一枚だけ敷いて出す */
.cap{
  position: absolute;
  left: 50%;
  top: calc(var(--case) + var(--board) + 12px);
  width: 168px;
  margin-left: -84px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  padding: 7px 11px 9px;
  border-radius: 2px;
  background: rgba(246, 245, 242, 0.93);
  backdrop-filter: blur(2px);
  font-size: 0.72rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  z-index: 4;
}
.cap b{ display: block; font-weight: 500; color: var(--ink); }
.cap span{ color: var(--ink-soft); font-size: 0.66rem; }
.item:hover .cap,
.item:focus-within .cap{ opacity: 1; }
.room-copy{ max-width: 600px; margin: 60px auto 0; text-align: center; }

/* ---------- 機能C: 壁紙(ダークバンド) ---------- */
.wall-sec{ background: var(--dark); color: #e8e6ea; }
.wall-sec .plain{ color: #a9a7b2; }
.wall-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.wall-mocks{
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.laptop{ width: min(430px, 100%); }
.screen{
  background: #0c0c10;
  border: 1px solid #2c2b33;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 14px 14px 10px;
}
.laptop-base{
  height: 12px;
  background: linear-gradient(#3a3941, #232229);
  border: 1px solid #2c2b33;
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.wp-grid{ display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.wp-grid img{ display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; }
.wp-label{
  display: flex;
  justify-content: space-between;
  padding: 10px 2px 0;
  font-family: var(--sans-en);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #8e8c98;
}
.wp-label b{ color: #c9c7d2; font-weight: 600; letter-spacing: 0.2em; }
.phone{
  width: 104px;
  height: 196px;
  margin-left: -42px;
  transform: translateY(16px);
  background: #0c0c10;
  border: 1px solid #33323b;
  border-radius: 18px;
  padding: 7px;
  overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
}
.wp-phone{ grid-template-columns: repeat(4, 1fr); gap: 5px; }

/* ---------- 応援 ---------- */
.sup-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2.6em;
}
.sup-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.sup-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -24px rgba(40, 40, 50, 0.25);
}
.sup-ico{ display: block; font-size: 1.7rem; line-height: 1; margin-bottom: 0.8em; }
.sup-card h3{ font-size: 1.02rem; letter-spacing: 0.08em; margin-bottom: 0.5em; }
.sup-card p{ font-size: 0.86rem; color: var(--ink-soft); }
.sup-cta{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2.8em;
}
.sup-note{
  margin-top: 1.2em;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- お便り(Formspree) ---------- */
.letter .wrap { max-width: 640px; }
.ct-form { margin-top: 2.6em; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-row { margin-bottom: 18px; }
.ct-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 0.5em;
}
.ct-input {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ct-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 97, 140, 0.14);
}
.ct-input[aria-invalid="true"] { border-color: #d4553f; }
.ct-area { resize: vertical; min-height: 148px; line-height: 1.85; }

/* 罠。人には見せず、ボットにだけ拾わせる */
.ct-gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ct-err { display: block; margin-top: 0.4em; font-size: 0.76rem; color: #c0442f; }
.ct-msg { display: none; border-radius: 10px; padding: 12px 16px; font-size: 0.88rem; margin-bottom: 18px; }
.ct-msg:not(:empty) { display: block; }
.ct-msg--ok { background: rgba(232, 97, 140, 0.10); color: var(--accent-deep); }
.ct-msg--ng { background: rgba(200, 70, 50, 0.10); color: #b03d2a; }

.ct-send { margin-top: 6px; }
.ct-send .btn { border: 0; cursor: pointer; }
.ct-send .btn[disabled] { opacity: 0.5; cursor: default; transform: none; }
.ct-note { margin-top: 1.2em; font-size: 0.76rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- フッター ---------- */
.foot{
  border-top: 1px solid var(--line);
  padding: 70px 0 54px;
  text-align: center;
}
.foot-note{
  margin-top: 1.8em;
  font-size: 0.78rem;
  line-height: 2.1;
  color: var(--ink-soft);
}
.foot-links{ margin-top: 1.8em; font-size: 0.85rem; color: var(--ink-soft); }
.foot-links a:hover{ color: var(--accent-deep); }
.foot-links span{ margin: 0 10px; opacity: 0.5; }
.foot-copy{
  margin-top: 2em;
  font-family: var(--sans-en);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
}

/* ---------- 狭い画面 ---------- */
@media (max-width: 960px){
  .hero{ min-height: auto; padding: 110px 0 70px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 30px; }
  .hero-stage{ margin-top: 26px; }
  .feat-grid{ grid-template-columns: 1fr; }
  .wall-grid{ grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px){
  .sup-grid{ grid-template-columns: 1fr; }
  .shelf-row{ overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .shelf-row::-webkit-scrollbar{ height: 6px; }
  .shelf-row::-webkit-scrollbar-thumb{ background: rgba(38,38,43,0.18); border-radius: 3px; }
  .stats{ justify-content: flex-start; flex-wrap: wrap; }
  .drift{ display: none; }
  .pc{ display: none; }
  .browser-body{ min-height: 250px; }
  .mini{ width: 126px; }
  .scroll-cue{ display: none; }
}

/* ---------- 動きを控える設定の人へ ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ transition: none; opacity: 1; transform: none; }
  .floaty, .eq i, .scroll-cue span{ animation: none !important; }
  .eq i{ height: 60%; }
  .tilt, .drift{ transition: none; }
  .pop{ animation: none; }
}
