/* ========================================
   UNIDOT Brand Site - Style
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #080c18;
  color: #dde1f0;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: #8b9ff5;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #4a6cf7;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #4a6cf7;
  outline-offset: 2px;
}

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

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

/* --- Stars Canvas --- */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #dde1f0;
  text-decoration: none;
  position: relative;
  z-index: 110;
}

.brand-logo:hover {
  color: #fff;
}

.nav-desktop .nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(221, 225, 240, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #dde1f0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 24, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  text-align: center;
}

.mobile-nav-list li {
  margin-bottom: 32px;
}

.mobile-nav-list a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: #dde1f0;
}

.mobile-nav-list a:hover {
  color: #4a6cf7;
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
}

.hero-content {
  position: relative;
}

.hero-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 0 60px rgba(74, 108, 247, 0.3), 0 0 120px rgba(74, 108, 247, 0.1);
}

.hero-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(221, 225, 240, 0.9);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: rgba(221, 225, 240, 0.55);
  letter-spacing: 0.05em;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(221, 225, 240, 0.4);
  border-bottom: 1.5px solid rgba(221, 225, 240, 0.4);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Section Common --- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 8px;
}

.section-title-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  color: rgba(221, 225, 240, 0.5);
  letter-spacing: 0.1em;
}

/* --- Products --- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 400px;
  margin: 0 auto;
}

.product-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #dde1f0;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(74, 108, 247, 0.15), 0 0 40px rgba(74, 108, 247, 0.08);
  border-color: rgba(74, 108, 247, 0.3);
}

.product-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(74, 108, 247, 0.05) 0%, transparent 100%);
}

.product-img {
  max-height: 320px;
  width: auto;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 24px;
  text-align: center;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.product-copy {
  font-size: 0.9rem;
  color: rgba(221, 225, 240, 0.6);
  margin-bottom: 20px;
}

.product-btn {
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid rgba(74, 108, 247, 0.5);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #8b9ff5;
  transition: background 0.3s, color 0.3s;
}

.product-card:hover .product-btn {
  background: #4a6cf7;
  color: #fff;
  border-color: #4a6cf7;
}

/* --- Philosophy --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  transition: border-color 0.4s, background 0.4s;
}

.philosophy-card:hover {
  border-color: rgba(74, 108, 247, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.philosophy-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: #4a6cf7;
}

.philosophy-icon svg {
  width: 100%;
  height: 100%;
}

.philosophy-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.philosophy-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(221, 225, 240, 0.65);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 24, 0.8);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: 28px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #dde1f0;
  margin-bottom: 8px;
}

.footer-contact {
  font-size: 0.85rem;
  color: rgba(221, 225, 240, 0.5);
}

.footer-contact a {
  color: #8b9ff5;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(221, 225, 240, 0.45);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #8b9ff5;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(221, 225, 240, 0.3);
  letter-spacing: 0.04em;
}

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

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

/* --- Responsive --- */
@media (min-width: 768px) {
  .hamburger {
    display: none !important;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 900px;
  }

  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    padding: 14px 0;
  }

  .hero-brand {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .philosophy-card {
    padding: 28px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
