/* うちぬき酒造株式会社 — shared styles beyond Tailwind utilities (格式・和モダン) */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

.font-heading {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
}

section[id] {
  scroll-margin-top: 84px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero background */
.hero-bg {
  background-size: cover;
  background-position: center;
}

#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F7F4EC;
}
::-webkit-scrollbar-thumb {
  background: #D4B25A;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1B2A4A;
}

.card-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-lift:hover {
  transform: translateY(-6px);
}

/* Section eyebrow with a short gold rule */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: #C9A24B;
  margin-right: 10px;
  vertical-align: middle;
}

#mobile-nav {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-nav.open {
  max-height: 640px;
  opacity: 1;
}

.spinner {
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 9999px;
  width: 16px;
  height: 16px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Seigaiha (wave) divider band, drawn with layered radial-gradients */
.seigaiha {
  background-image: radial-gradient(circle at 50% 100%, transparent 0, transparent 60%, rgba(247, 244, 236, 0.9) 61%);
  background-size: 44px 22px;
  background-position: 0 0;
}
.seigaiha-dark {
  background-image: radial-gradient(circle at 50% 100%, transparent 0, transparent 60%, rgba(15, 26, 44, 0.95) 61%);
  background-size: 44px 22px;
  background-position: 0 0;
}

/* Thin gold rule used to bracket headings on dark navy sections */
.kinsen {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6em;
}
.kinsen::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, #C9A24B, rgba(201, 162, 75, 0));
}

/* Hairline gold frame used around portrait / feature imagery */
.gold-frame {
  position: relative;
}
.gold-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 162, 75, 0.55);
  pointer-events: none;
  z-index: 10;
}

/* Sugidama (cedar ball) decorative motif — drawn purely in CSS as a
   textured sphere, evoking the ball hung outside sake breweries. */
.sugidama {
  border-radius: 9999px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.18), transparent 45%),
    radial-gradient(circle at 65% 70%, rgba(0,0,0,0.25), transparent 55%),
    repeating-conic-gradient(from 0deg, #4B5A3A 0deg 12deg, #3C4930 12deg 24deg);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.25);
}
