/* MIZUHA（デモ） */
:root {
  --mist: #e3e9ee;
  --mist-2: #d3dde5;
  --white: #f8fafb;
  --slate: #46505a;
  --muted: #7a848c;
  --sage: #a3b8a6;
  --sage-dark: #6f8c77;
  --aqua: #c4d4df;
  --line: #c9d3db;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Marcellus", "Times New Roman", serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--slate); outline-offset: 4px; }

/* デモ表示 */
.demo-bar {
  background: var(--slate);
  color: #dfe5ea;
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-bar a { color: #fff; }

/* 共通パーツ */
.label { font-family: var(--en); font-size: 18px; letter-spacing: 0.08em; color: var(--sage-dark); }
.sec-head h2, .trial h2 { margin-top: 4px; font-family: var(--mincho); font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.6; letter-spacing: 0.1em; }
.sec-head > p:last-child:not(.label) { margin-top: 16px; color: var(--muted); max-width: 34em; }
.sec-head--center { text-align: center; }
.sec-head--center > p:last-child { margin-left: auto; margin-right: auto; }
.note { font-size: 12px; color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: background 0.3s, gap 0.3s var(--ease);
}
.pill--dark { background: var(--slate); color: #fff; }
.pill--dark:hover { background: #343c44; gap: 26px; }
.pill--small { padding: 8px 22px; font-size: 13px; }
.pill i { position: relative; width: 28px; height: 1px; background: currentColor; }
.pill i::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 1px; background: currentColor; transform: rotate(30deg); transform-origin: right; }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 18px 18px; }

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 40px;
  background: rgba(227,233,238,0.88);
  backdrop-filter: blur(8px);
}
.logo { font-family: var(--en); font-size: 24px; letter-spacing: 0.32em; text-decoration: none; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { display: grid; text-decoration: none; font-size: 12px; line-height: 1.5; text-align: center; color: var(--muted); }
.nav a span { font-family: var(--en); font-size: 15px; color: var(--slate); transition: color 0.3s; }
.nav a:hover span { color: var(--sage-dark); }

/* ファーストビュー */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px max(40px, calc((100% - var(--wrap)) / 2 + 40px)) 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 110px);
}
.hero__bg-text {
  position: absolute;
  left: 0;
  bottom: 2%;
  white-space: nowrap;
  font-family: var(--en);
  font-size: clamp(120px, 17vw, 260px);
  line-height: 1;
  color: rgba(70, 80, 90, 0.06);
  pointer-events: none;
  transform: translateX(var(--bgx, 0px));
}
.hero__text { position: relative; z-index: 1; }
.hero__en { font-family: var(--en); font-size: 16px; letter-spacing: 0.14em; color: var(--sage-dark); }
.hero__title {
  margin-top: 12px;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.55;
  letter-spacing: 0.12em;
}
.line { display: block; overflow: hidden; }
.line > span { display: inline-block; }
.motion .hero__title .line > span { animation: line-up 1.2s var(--ease) both; }
.motion .hero__title .line:nth-child(2) > span { animation-delay: 0.15s; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero__lead { margin: 28px 0 36px; color: var(--muted); }
.motion .hero__lead, .motion .hero__text .pill, .motion .hero__en { animation: fade-up 1.2s ease 0.5s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
.hero__visual { position: relative; justify-self: center; width: min(440px, 100%); }
.arch--hero { aspect-ratio: 4 / 5; background: linear-gradient(180deg, #f2f5f7, #d7e1e8); }
.motion .arch--hero { animation: arch-in 1.6s var(--ease) 0.2s both; }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); } to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); } }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 仮のボトル */
.ph { position: absolute; inset: 0; }
.ph--group svg { position: absolute; bottom: 8%; height: 52%; width: auto; }
.ph__b1 { left: 8%; height: 46% !important; }
.ph__b2 { left: 26%; height: 56% !important; }
.ph__b3 { left: 46%; height: 52% !important; }
.ph__b4 { left: 66%; height: 36% !important; }
.ph__single { position: absolute; left: 50%; bottom: 6%; height: 76%; transform: translateX(-50%); transition: transform 0.6s var(--ease); }

/* 木漏れ日 */
.komorebi { position: absolute; inset: -10%; pointer-events: none; mix-blend-mode: multiply; }
.komorebi i {
  position: absolute;
  width: 46%;
  height: 22%;
  border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
  background: rgba(70, 90, 80, 0.14);
  filter: blur(14px);
}
.komorebi i:nth-child(1) { left: -6%; top: 6%; transform: rotate(28deg); }
.komorebi i:nth-child(2) { left: 30%; top: -4%; transform: rotate(-18deg); width: 36%; }
.komorebi i:nth-child(3) { left: 58%; top: 14%; transform: rotate(40deg); width: 30%; }
.komorebi i:nth-child(4) { left: 10%; top: 30%; transform: rotate(-30deg); width: 26%; height: 14%; }
.motion .komorebi { animation: komorebi 9s ease-in-out infinite alternate; transform-origin: 30% 0; }
@keyframes komorebi { from { transform: rotate(-2deg) translateX(-2%); } to { transform: rotate(3deg) translateX(3%); } }

/* 波の動き（成分の丸・お試しセットで使用） */
.motion .wave-move { animation: wave 5s linear infinite; }
.motion .wave-move--slow { animation-duration: 8s; animation-direction: reverse; }
@keyframes wave { to { transform: translateX(-160px); } }

/* コンセプト */
.concept { max-width: 760px; margin: 0 auto; padding: 150px 32px 140px; text-align: center; position: relative; }
.concept::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 70px;
  width: min(560px, 90%);
  height: calc(100% - 70px);
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 999px 999px 0 0;
  z-index: -1;
  opacity: 0.6;
}
.concept__title { margin-top: 16px; font-family: var(--mincho); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.7; letter-spacing: 0.16em; }
.motion [data-r="lines"] .line > span { transition: transform 1.2s var(--ease); }
.motion [data-r="lines"] .line:nth-child(2) > span { transition-delay: 0.15s; }
.motion [data-r="lines"]:not(.is-in) .line > span { transform: translateY(105%); }
.concept__text { margin-top: 40px; font-family: var(--mincho); font-size: 16px; line-height: 2.4; }
.concept__text p + p { margin-top: 1.2em; }

/* 商品 */
.products { max-width: var(--wrap); margin: 0 auto; padding: 120px 40px; }
.products .sec-head { display: inline-block; }
.filter { display: flex; gap: 10px; margin: 28px 0 48px; }
.filter button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter button:hover { border-color: var(--slate); }
.filter button[aria-pressed="true"] { background: var(--slate); color: #fff; border-color: var(--slate); }
.product-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.product { transition: opacity 0.5s ease, transform 0.5s var(--ease); }
.product.is-hidden { display: none; }
.product.is-fading { opacity: 0; transform: translateY(12px); }
.arch--product { aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--white), #e9eef2); }
.arch--product img { object-fit: cover; transition: transform 0.6s var(--ease); }
.product:hover .arch--product img { transform: scale(1.04); }
.product:hover .ph__single { transform: translate(-50%, -10px); }
.ripple {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 60%;
  height: 10%;
  border: 1px solid rgba(70, 80, 90, 0.35);
  border-radius: 50%;
  transform: translateX(-50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
}
.motion .product:hover .ripple { animation: ripple 1.4s ease-out infinite; }
@keyframes ripple { 0% { transform: translateX(-50%) scale(0.2); opacity: 0.9; } 100% { transform: translateX(-50%) scale(1.3); opacity: 0; } }
.product__cat { margin-top: 18px; font-family: var(--en); font-size: 13px; color: var(--sage-dark); letter-spacing: 0.1em; }
.product h3 { font-family: var(--mincho); font-weight: 500; font-size: 18px; letter-spacing: 0.1em; line-height: 1.6; }
.product__desc { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.product__price { margin-top: 10px; font-size: 14px; }
.product__price small { font-size: 11px; color: var(--muted); }

/* 成分 */
.ingredients { background: var(--white); padding: 130px 40px 110px; }
.ingredient-list { list-style: none; margin: 56px auto 0; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.ingredient__circle { width: 180px; margin: 0 auto 24px; }
.ingredient__circle svg { width: 100%; display: block; }
.ingredient__base { fill: var(--mist); }
.water { transform: translateY(calc(160px * (1 - var(--level, 0.5)))); }
.water path { fill: var(--aqua); }
.motion [data-r="fill"] .water { transition: transform 2.2s cubic-bezier(.3,.6,.2,1); transition-delay: calc(var(--delay, 0s) + 0.2s); }
.motion [data-r="fill"]:not(.is-in) .water { transform: translateY(160px); }
.ingredient__icon path { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ingredient h3 { font-family: var(--mincho); font-weight: 500; font-size: 18px; letter-spacing: 0.08em; }
.ingredient p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.ingredients > .note { text-align: center; margin-top: 48px; }

/* 使い方 */
.howto {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 140px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.howto__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 18px 18px 999px 999px; overflow: hidden; transform: translateY(var(--py, 0px)); }
.howto__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--life { background: linear-gradient(160deg, #eef3f5, #c9d8d0); display: grid; place-items: center; }
.ph--life::before {
  content: "";
  position: absolute;
  inset: 20% 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff 0 12%, transparent 13%), radial-gradient(circle at 60% 55%, #fff 0 16%, transparent 17%), radial-gradient(circle at 45% 65%, #fff 0 10%, transparent 11%);
  opacity: 0.8;
}
.ph__note { position: relative; font-size: 12px; color: var(--muted); background: rgba(255,255,255,0.7); padding: 2px 14px; border-radius: 999px; }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; }
.steps li { counter-increment: step; display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__num {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
}
.steps__num::before { content: counter(step); font-family: var(--en); font-size: 18px; }
.steps__num::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--sage);
  opacity: 0;
}
.motion .steps li.is-in .steps__num::after { animation: ring 1.6s ease-out calc(var(--delay, 0s) + 0.3s) 2; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.steps h3 { font-family: var(--mincho); font-weight: 500; font-size: 18px; letter-spacing: 0.08em; line-height: 1.6; }
.steps p { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* お試しセット */
.trial { padding: 40px 40px 140px; }
.arch--wide {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  text-align: center;
  padding: 120px 40px 64px;
  border-radius: 50% 50% 24px 24px / 240px 240px 24px 24px;
}
.trial__inner { position: relative; }
.trial__inner > *:not(.trial__water) { position: relative; z-index: 1; }
.trial h2 { margin-top: 8px; }
/* お試しセットの水面 */
.trial__water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 31%;
  pointer-events: none;
}
.trial__water svg { width: 100%; height: 100%; display: block; }
.tw--back path { fill: #d6e2ea; }
.tw--front path { fill: #c4d4df; opacity: 0.75; }
.motion .tw--back { animation: tide 9s linear infinite; }
.motion .tw--front { animation: tide-front 6s linear infinite; }
@keyframes tide { to { transform: translateX(-450px); } }
@keyframes tide-front { to { transform: translateX(-600px); } }
.motion .trial__water { transition: transform 2.4s cubic-bezier(.3,.6,.2,1) 0.4s; }
.motion [data-r="rise"]:not(.is-in) .trial__water { transform: translateY(100%); }
.trial__inner > p:not(.label):not(.note):not(.trial__price) { margin-top: 16px; color: var(--muted); }
.trial__price { margin: 20px 0 28px; font-family: var(--en); font-size: 52px; line-height: 1.2; }
.trial__price small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.trial .note { margin-top: 16px; }

/* フッター */
.footer { background: var(--slate); color: #c9d1d8; text-align: center; padding: 64px 24px; font-size: 13px; }
.logo--footer { color: #fff; margin-bottom: 8px; }
.footer__credit { margin-top: 12px; font-size: 12px; }

/* スクロールで現れる */
.motion [data-r="up"] { transition: opacity 1.1s ease, transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
.motion [data-r="up"]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.motion [data-r="rise"] { transition: opacity 1.2s ease, transform 1.4s var(--ease), clip-path 1.6s var(--ease); clip-path: inset(0 0 0 0 round 50% 50% 24px 24px / 240px 240px 24px 24px); }
.motion [data-r="rise"]:not(.is-in) { opacity: 0; transform: translateY(40px); clip-path: inset(40% 0 0 0 round 50% 50% 24px 24px / 240px 240px 24px 24px); }

/* レスポンシブ */
@media (max-width: 960px) {
  .nav { display: none; }
  .header .pill { margin-left: auto; }
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: 1fr; gap: 48px; }
  .howto__photo { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .demo-bar { padding: 8px 16px; }
  .header { padding: 12px 20px; }
  .logo { font-size: 20px; }
  .hero { grid-template-columns: 1fr; padding: 32px 20px 90px; gap: 40px; min-height: 0; }
  .hero__title { font-size: 36px; }
  .hero__lead br { display: none; }
  .hero__visual { width: 78%; }
  .concept { padding: 110px 12px 84px; }
  .concept::before { width: calc(100% - 24px); top: 64px; height: calc(100% - 104px); border-radius: 999px 999px 24px 24px; }
  .concept .label { padding-top: 8px; }
  .concept__title { font-size: 28px; }
  .pc-only { display: none; }
  .concept__text { text-align: left; font-size: 14px; line-height: 2.2; margin-top: 32px; padding: 0 30px; }
  .products { padding: 90px 20px; }
  .product-list { gap: 28px 16px; }
  .product h3 { font-size: 15px; }
  .ingredients { padding: 100px 20px 90px; }
  .ingredient-list { grid-template-columns: 1fr; gap: 40px; }
  .howto { padding: 100px 20px; }
  .trial { padding: 20px 16px 100px; }
  .arch--wide { padding: 90px 22px 48px; border-radius: 50% 50% 20px 20px / 140px 140px 20px 20px; }
  .motion [data-r="rise"] { clip-path: none; }
  .motion [data-r="rise"]:not(.is-in) { clip-path: none; }
  .trial__price { font-size: 42px; }
}
