/* ===========================
   malt. Branding Page — CSS
   =========================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --off-white: #f7f5f2;
  --gray-light: #e8e5e0;
  --gray-mid: #9e9b96;
  --gray-dark: #3a3835;
  --earth: #c8b89a;
  --earth-dark: #8a7560;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white-70 { color: rgba(255,255,255,0.7); }

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 20px;
}
.eyebrow-light { color: rgba(255,255,255,0.5); }

.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.body-text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 2;
  color: var(--gray-dark);
  max-width: 520px;
}
.body-text strong { font-weight: 500; color: var(--black); }
.body-text-center { margin: 0 auto; text-align: center; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--gray-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(20px, 5vw, 60px);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color 0.4s var(--ease);
}
#navbar.scrolled .nav-logo { color: var(--black); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
#navbar.scrolled .nav-links a { color: var(--gray-dark); }
#navbar.scrolled .nav-links a:hover { color: var(--black); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.4s var(--ease), transform 0.3s, opacity 0.3s;
}
#navbar.scrolled .hamburger span { background: var(--black); }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  padding: 16px 0 24px;
  border-top: 1px solid var(--gray-light);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu li a {
  display: block;
  padding: 14px clamp(20px, 5vw, 60px);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dark);
}
.mobile-menu li a:hover { color: var(--black); }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 50%,
    rgba(0,0,0,0.3) 100%
  );
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  padding: 14px 0;
  background: var(--white);
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-mid);
  font-weight: 400;
}
.marquee-track .dot { color: var(--earth); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Brand Story ---------- */
.section-story { background: var(--off-white); }

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.story-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}
.story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.story-img-wrap:hover img { transform: scale(1.03); }

.sticker-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.sticker-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.stats-row {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-light);
}
.stat { flex: 1; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--black);
}
.stat-unit {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-left: 2px;
}
.stat p {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 4px;
}

/* ---------- Scene Cards ---------- */
.section-scenes { background: var(--white); }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin-top: 52px;
}
.scene-card {
  border: 1px solid var(--gray-light);
  padding: 36px 24px;
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.scene-card:hover {
  border-color: var(--earth);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.scene-icon {
  font-size: 2rem;
  margin-bottom: 18px;
}
.scene-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--black);
}
.scene-card p {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--gray-dark);
}

/* ---------- Product ---------- */
.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-dark .eyebrow { color: rgba(255,255,255,0.4); }
.section-dark .heading-lg { color: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 60px;
}
.product-card {
  background: var(--gray-dark);
  padding: 40px 28px;
  transition: background 0.3s var(--ease);
}
.product-card:hover { background: #4a4743; }
.product-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 12px;
  color: var(--white);
}
.product-card p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

/* ---------- Process ---------- */
.section-process { background: var(--white); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--gray-light);
}
.process-step {
  padding: 40px 24px 40px 0;
  border-right: 1px solid var(--gray-light);
  padding-right: 40px;
  margin-right: 0;
  padding-left: 32px;
}
.process-step:first-child { padding-left: 0; }

.step-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: 16px;
}
.step-bar {
  width: 24px;
  height: 1px;
  background: var(--black);
  margin-bottom: 16px;
}
.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--gray-dark);
}

/* ---------- Sustainability ---------- */
.section-sustainability { background: var(--off-white); }

.sustain-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--gray-light);
  border-radius: 40px;
  background: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gray-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.badge:hover {
  border-color: var(--earth-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ---------- Sticker Gallery ---------- */
.section-sticker { background: var(--white); }

.sticker-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  margin-top: 52px;
}
.sticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.sticker-item img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.sticker-item:hover img {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.sticker-item figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ---------- CTA ---------- */
.section-cta {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(2px) brightness(0.85);
  transform: scale(1.04);
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-content .body-text {
  color: rgba(255,255,255,0.7);
  margin: 0 auto 36px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.3s, color 0.3s;
}
.btn-white {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-white:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ---------- Footer ---------- */
#footer {
  background: var(--black);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3) { padding-left: 0; }
}

@media (max-width: 768px) {
  /* Hero スマホ対応 */
  #hero {
    height: 100svh;
    min-height: 500px;
  }
  .hero-bg {
    transform: scale(1) !important; /* パララックス無効・余白なし */
    background-position: center center;
    background-size: cover;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .grid-2col { grid-template-columns: 1fr; }
  .story-visual { order: -1; }
  .story-img-wrap { aspect-ratio: 4/3; }
  .sticker-badge { width: 80px; height: 80px; bottom: -10px; right: -10px; }

  .scene-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 1px; }
  .process-steps { grid-template-columns: 1fr; border-top: none; }
  .process-step {
    border-right: none;
    border-top: 1px solid var(--gray-light);
    padding-left: 0;
    padding-right: 0;
  }
  .process-step:first-child { border-top: 1px solid var(--gray-light); }

  .sticker-gallery { grid-template-columns: 1fr 1fr; }

  .stats-row { gap: 20px; }
  .stat-num { font-size: 2rem; }
}

@media (max-width: 480px) {
  .sticker-gallery { grid-template-columns: 1fr; }
  .sustain-badges { flex-direction: column; align-items: center; }
}
