/* ============================================================
   青谷製作所 — Index Premium Stylesheet
   ============================================================ */

/* ── Custom Animations ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollIndicatorAnimation {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(200%);
    opacity: 0;
  }
}

/* ── Animation Classes ── */
.animate-fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scroll-indicator {
  animation: scrollIndicatorAnimation 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ── Scroll Reveal Effects ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Add custom delays to grid children */
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ── Premium Shadow & Border Utilities ── */
.shadow-gold {
  box-shadow: 0 10px 30px -10px rgba(197, 160, 89, 0.4);
}

.hover\:shadow-gold:hover {
  box-shadow: 0 16px 40px -8px rgba(197, 160, 89, 0.5);
}

/* ── Text Rendering & Typography Fine-tuning ── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1 {
  text-wrap: balance;
}

h2,
h3,
h4 {
  letter-spacing: 0.05em;
  /* text-wrap: balance; */
}

p {
  text-wrap: normal;
}

/* Custom background pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(0, 71, 171, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 71, 171, 0.03) 1px, transparent 1px);
}

/* ── Parallax Adjustment ── */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
  .reveal {
    transform: translateY(20px);
    transition-duration: 0.8s;
  }
}

/* ── Interactive Premium Enhancements ── */
.hover-glow-gold {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-glow-gold:hover {
  box-shadow:
    0 20px 40px -10px rgba(197, 160, 89, 0.25),
    0 0 15px -2px rgba(197, 160, 89, 0.15);
  border-color: rgba(197, 160, 89, 0.4) !important;
  transform: translateY(-4px);
}

/* ── 80% Scale: Hero以外のセクション・フッターを縮小 ── */

/* フッター */
footer {
  zoom: 1;
}

/* Back to Top button */
#back-to-top {
  zoom: 1;
}

/* span.link-t-a の後に続く全セクション（Hero以降）に zoom: 0.95 */
span.link-t-a ~ section {
  zoom: 1;
}

/* Heroセクション（最初のsection）はzoom: 1 を維持 */
body > section:first-of-type {
  zoom: 1 !important;
}

.footer-certification {
  margin-top: 20px;
  margin-bottom: 16px;
}

.footer-certification img {
  width: 110px;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 15px;
  padding: 0.5em;
}

@media (max-width: 768px) {
  .footer-certification img {
    width: 100px;
    margin: 0 auto;
  }
}