:root {
  --bg: #0b0b0b;
  --fg: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.72);
  --muted2: rgba(11, 11, 11, 0.68);
  --ink: #0b0b0b;
  --paper: #ffffff;
  --line: rgba(11, 11, 11, 0.12);
  --line2: rgba(244, 244, 244, 0.16);
  --accent: #e8d3a3;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
#main {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "YuGothic",
    Meiryo, sans-serif;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px)) !important;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 9999;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1200px 600px at 20% 20%,
      rgba(0, 0, 0, 0.25),
      transparent 60%
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  padding: 96px 0 84px;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 14px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  opacity: 0.88;
}

.hero-title {
  margin: 0 0 18px 0;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.05;
  /* 日本語の大見出しが詰まって見えやすいので、ほんの少しだけ間隔を確保 */
  letter-spacing: 0.01em;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
  animation-delay: var(--d);
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lead {
  margin: 0 0 22px 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-kv-logo {
  margin-top: 26px;
  opacity: 0.95;
}

.hero-kv-logo__img {
  width: min(220px, 52vw);
  height: auto;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.35));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.button--primary {
  background: var(--fg);
  color: var(--ink);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 244, 244, 0.16);
  color: var(--fg);
}

.button:hover {
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 84px 0;
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.section--dark {
  background: var(--bg);
  color: var(--fg);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  max-width: 920px;
}

.section-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 24px;
  }
}

/* 日本語見出し用：英字見出しは現状の詰め具合を維持しつつ、日本語だけ少し読みやすく */
.section-title--ja {
  letter-spacing: 0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted2);
  font-size: 15px;
}
.section--dark .section-lead {
  color: var(--muted);
}

/* Products Visual Update */
.section-products {
  background: radial-gradient(circle at 50% 30%, #ffffff, #fcfcfc 60%, #f4f4f4);
  padding-top: 100px;
  overflow: hidden;
}

.product-brand-area {
  display: flex;
  flex-direction: column; /* 縦並びにして中央揃えしやすくする */
  gap: 32px;
  align-items: center; /* 横方向の中央揃え */
  margin-bottom: 80px;
  text-align: center; /* テキストも中央揃え */
}

.product-brand-logo {
  flex-shrink: 0;
  width: 140px;
  padding: 20px;
  border: 4px solid #0b0b0b;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-brand-logo img {
  width: 100%;
  height: auto;
}

.product-brand-text {
  margin: 0;
  font-size: 16px;
  line-height: 2.2;
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
  max-width: 720px;
}

/* Bottle Showcase */
.bottle-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.bottle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.bottle-img-wrap {
  position: relative;
  width: 100%;
  height: 560px; /* 400px -> 560px に拡大 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottle-img-wrap img {
  height: 90%; /* 85% -> 90% に拡大 */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* 影と反射の演出 */
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s ease;
  position: relative;
  z-index: 5;
}

.bottle-item:hover .bottle-img-wrap img {
  transform: translateY(-10px) scale(1.02);
}

.bottle-item:nth-child(2) .bottle-img-wrap img {
  height: 100%;
  transform: scale(1.08); /* 100%以上のサイズ感にするためスケール拡大 */
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.16));
}

.bottle-name {
  font-family: ui-serif, Georgia, serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink);
  position: relative;
  padding-bottom: 8px;
}
.bottle-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

/* Responsive adjustment */
@media (max-width: 960px) {
  .product-brand-area {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
  .bottle-showcase {
    gap: 20px;
  }
  .bottle-img-wrap {
    aspect-ratio: 1 / 2;
  }
}
@media (max-width: 600px) {
  .bottle-showcase {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .bottle-img-wrap {
    height: 400px;
  }
  /* SP版ではBOOSTの拡大を解除して他と合わせる */
  .bottle-item:nth-child(2) .bottle-img-wrap img {
    height: 90%;
    transform: none;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
  }
}

/* Flavor Catalog */
.flavor-catalog {
  margin: 80px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.flavor-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flavor-sub {
  font-size: 12px;
  font-weight: 700;
  color: rgba(11, 11, 11, 0.5);
  margin: 0 0 8px;
}

.flavor-title {
  font-family: ui-serif, Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.05em;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.flavor-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.flavor-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(11, 11, 11, 0.8);
  margin: 0 0 24px;
  flex-grow: 1;
}

.flavor-note {
  font-size: 11px;
  color: rgba(11, 11, 11, 0.5);
  line-height: 1.5;
  margin: 0 0 24px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 4px;
}

.flavor-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border: 1px solid #0b0b0b;
  color: #0b0b0b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}
.flavor-btn:hover {
  background: #0b0b0b;
  color: #fff;
}

@media (max-width: 960px) {
  .flavor-catalog {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Product details Column Layout */
.product-details-column {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.detail-row--reverse {
  direction: rtl; /* 要素順序を逆にする簡易ハック（中身の文字方向は戻す必要あり） */
}
.detail-row--reverse > * {
  direction: ltr;
}

.detail-pic {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
}
.detail-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.detail-pic:hover img {
  transform: scale(1.05);
}

/* Crossfade Animation */
.detail-pic--crossfade {
  position: relative;
}
.detail-pic--crossfade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-pic--crossfade .cf-img-1 {
  z-index: 1;
}
.detail-pic--crossfade .cf-img-2 {
  z-index: 2;
  animation: crossfade 4s infinite;
}

@keyframes crossfade {
  0% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  85% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.detail-overlay-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 4px;
}

.detail-pic--noimg {
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.detail-overlay-title-large {
  font-size: 32px;
  color: var(--ink);
  margin: 0;
  font-weight: 900;
}

.detail-text-group {
  padding: 20px 0;
}

.detail-lead-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  margin: 0 0 24px;
  font-feature-settings: "palt";
}

.detail-desc-text {
  font-size: 14px;
  line-height: 2;
  color: rgba(11, 11, 11, 0.72);
  margin: 0;
}

@media (max-width: 960px) {
  .detail-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-row--reverse {
    direction: ltr;
  }
  .detail-pic {
    aspect-ratio: 16/9;
  }
}

/* Message split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 244, 244, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.image-stack {
  position: relative;
  min-height: 420px;
}
.image-stack img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 244, 244, 0.14);
}
.image-stack__a {
  position: absolute;
  left: 0;
  top: 0;
  width: 78%;
  height: 78%;
  object-fit: cover;
}
.image-stack__b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 62%;
  object-fit: cover;
}

/* Gallery - Removed old grid */
.gallery {
  /* display: none; or remove */
  display: none;
}

/* CTA band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(244, 244, 244, 0.16);
  border-radius: calc(var(--radius) + 8px);
  padding: 22px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
}

/* Responsive */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .image-stack {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  /* header削除に伴いナビ周りのレスポンシブ指定は不要 */
}

/* Factory Scroll */
.section-factory {
  padding-bottom: 0; /* 下部の余白をなくして画像を際立たせる */
  overflow: hidden;
}

.factory-scroll {
  margin-top: 60px;
  width: 100%;
  overflow: hidden;
}

.factory-scroll__track {
  display: flex;
  width: max-content;
  animation: factoryLoop 60s linear infinite;
  will-change: transform;
}

.factory-img {
  width: 40vw; /* 画面幅の40% */
  min-width: 300px;
  height: 60vh;
  flex-shrink: 0;
}

.factory-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes factoryLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%); /* 3セット配置しているので1/3でループ */
  }
}

@media (max-width: 768px) {
  .factory-img {
    width: 80vw;
    height: 50vh;
  }
}

/* Bubbles Animation */
.bottle-img-wrap .bubbles {
  position: absolute;
  width: 160px; /* ボトル幅に合わせる調整 */
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
  opacity: 1; /* 0.6 -> 1.0 に変更して視認性アップ */
}

.bottle-img-wrap .bubbles span {
  position: absolute;
  bottom: -20px;
  width: 7px;
  height: 7%px;
  background: rgba(255, 255, 255, 0.85); /* 0.5 -> 0.85 に変更して輝度アップ */
  border-radius: 50%;
  animation: bubble-rise 3.5s infinite ease-in; /* 4s -> 3.5s に変更して速度微増 */
  /* ぼかしを弱めてくっきりさせる */
  filter: blur(0.3px);
}

@keyframes bubble-rise {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateX(0);
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: translateX(-10px);
  }
}

/* Randomize bubbles */
.bottle-img-wrap .bubbles span:nth-child(1) {
  left: 10%;
  animation-duration: 2.8s;
  animation-delay: 0s;
  width: 6px; /* 4 -> 6 */
  height: 6px;
}
.bottle-img-wrap .bubbles span:nth-child(2) {
  left: 20%;
  animation-duration: 3.8s;
  animation-delay: 0.5s;
  width: 12px; /* 8 -> 12 */
  height: 12px;
}
.bottle-img-wrap .bubbles span:nth-child(3) {
  left: 35%;
  animation-duration: 3.2s;
  animation-delay: 1.2s;
}
.bottle-img-wrap .bubbles span:nth-child(4) {
  left: 50%;
  animation-duration: 4.5s;
  animation-delay: 0.2s;
  width: 8px; /* 5 -> 8 */
  height: 8px;
}
.bottle-img-wrap .bubbles span:nth-child(5) {
  left: 65%;
  animation-duration: 4s;
  animation-delay: 0.8s;
}
.bottle-img-wrap .bubbles span:nth-child(6) {
  left: 80%;
  animation-duration: 3.4s;
  animation-delay: 1.5s;
  width: 5px; /* 3 -> 5 */
  height: 5px;
}
.bottle-img-wrap .bubbles span:nth-child(7) {
  left: 15%;
  animation-duration: 3.6s;
  animation-delay: 2.5s;
}
.bottle-img-wrap .bubbles span:nth-child(8) {
  left: 40%;
  animation-duration: 2.9s;
  animation-delay: 3s;
  width: 10px; /* 7 -> 10 */
  height: 10px;
}
.bottle-img-wrap .bubbles span:nth-child(9) {
  left: 70%;
  animation-duration: 4.2s;
  animation-delay: 1.8s;
}
.bottle-img-wrap .bubbles span:nth-child(10) {
  left: 90%;
  animation-duration: 3.5s;
  animation-delay: 0.9s;
  width: 6px; /* 4 -> 6 */
  height: 6px;
}

/* Reveal Animation */
.reveal-box {
  position: relative;
  width: 100%;
  height: 230px;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0; /* 初期状態は非表示（JSで表示） */
}
.reveal-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.4s ease 0.4s, transform 1.2s ease 0.4s;
}

.reveal-box.is-inview {
  opacity: 1;
}
.reveal-box.is-inview img {
  opacity: 1;
  transform: scale(1);
}

/* Mask Layer */
.reveal-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: var(--ink); 黒いマスク */
  background-image: url("./images/reveal-mask.webp");
  background-size: cover;
  background-position: center;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 2;
  pointer-events: none;
}

.reveal-box.is-inview::after {
  animation: revealMask 1s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes revealMask {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  45% {
    transform: scaleX(1);
    transform-origin: left;
  }
  55% {
    transform: scaleX(1);
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* Custom Text Styles from Index */
.message-body,
.factory-desc {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(11, 11, 11, 0.8);
}

.section--dark .message-body {
  color: rgba(244, 244, 244, 0.8);
}
