/* ============================================================
   NAYUKISHOP v1 — Override CSS
   Load after nashop_v2.css  (nashop_v3.css は不要)
   official.nayukitecture-shop.com
   v1.0 — 2026-03-24
   ============================================================ */

/* ---- Header: always transparent ---- */
#siteHeader {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  transition: none !important;
  overflow: visible !important;
  justify-content: flex-end !important; /* logo/nav are absolute; only .header-right in flow */
  padding-right: 80px !important;
}

/* Logo: absolutely anchored — matches nayukitecture.com header position */
#siteLogo {
  position: absolute !important;
  top: 50% !important;
  left: 80px !important;
  transform: translateY(-50%) !important;
  padding: 0 !important;
  z-index: 1;
}
#siteLogo a {
  font-family: 'Jost', sans-serif;
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  display: block;
  line-height: 1;
  transition: font-size 0.8s ease;
}
#siteLogo.grown a { font-size: 2.5rem; }

/* Nav: absolute center */
#siteNav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px; white-space: nowrap;
}
.site-nav-link {
  font-size: 0.70rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--text); text-transform: uppercase; transition: color 0.2s;
  position: relative;
}
.site-nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--k1);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav-link:hover { color: var(--k1); }
.site-nav-link:hover::after { transform: scaleX(1); }
.site-nav-sep { color: var(--s6); font-size: 0.6rem; user-select: none; }

/* Header right group */
.header-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-cart {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  color: var(--text); transition: color 0.2s;
}
.header-cart:hover { color: var(--k1); }
.header-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  color: var(--text); transition: color 0.2s; padding: 0;
}
.header-hamburger:hover { color: var(--k1); }

/* BASE menu: hide floating element */
#baseMenu { display: none !important; }

/* Mobile nav dropdown */
#mobileNav {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  flex-direction: column; z-index: 198;
  border-bottom: 1px solid var(--s6); padding: 8px 0 16px;
}
#mobileNav.open { display: flex; }
.mobile-nav-link {
  padding: 14px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--text); text-transform: uppercase;
  border-bottom: 1px solid var(--s6); transition: color 0.2s;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--k1); }

/* Logo letter colors */
.logo-k1 { color: var(--k1); }
.logo-k2 { color: var(--s1); }
.logo-k3 { color: var(--k2); }

/* ---- Hero sub-lines: sink on landing impact ---- */
.hero-tagline,
.hero-sub {
  animation: subSink 8s 3.29s infinite;
}
@keyframes subSink {
  0%        { transform: translateY(0); }
  3%        { transform: translateY(5px); }
  8%, 100%  { transform: translateY(0); }
}

/* ---- Hero: white background, no top gap ---- */
.hero { margin-top: 0 !important; background: var(--bg) !important; }
.hero-slide--placeholder {
  background: var(--bg) !important;
}
.hero-sub { color: var(--text) !important; }
.hero-tagline {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.32em;
  color: #000; margin-top: 2px; margin-bottom: 8px;
  text-transform: uppercase; display: block;
}

/* ---- Wave + bounce animation on hero NAYUKISHOP ---- */
/*
  Cycle: 8s total
  Wave: letters staggered 0.15s apart, each peaks at 4% (0.32s)
  Last letter (i=9) wave starts at 1.35s, settles at ~1.99s
  Gap: 0.5s → bounce delay 2.49s
  Jump: dip 0.3s → peak 0.8s (-15px) → clean land 1.04s
  Pause: remaining ~6.5s
*/
.hero-brand { display: inline-block; animation: brandBounce 8s 2.49s infinite; }
.wl {
  display: inline-block;
  animation: letterWave 8s calc(var(--i, 0) * 0.15s) infinite;
}
@keyframes letterWave {
  0%, 12%, 100% { transform: translateY(0); }
  4%  { transform: translateY(-14px); }
  8%  { transform: translateY(2px); }
}
@keyframes brandBounce {
  0%        { transform: translateY(0); }
  3%        { transform: translateY(6px); }
  8%        { transform: translateY(-15px); }
  13%, 100% { transform: translateY(0); }
}

/* ---- Layout & section backgrounds ---- */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 60px; }
.section-about { padding: 80px 0 !important; max-width: 100% !important; background: var(--s3); }
.section-about .section-inner { text-align: center; }
.product-section { padding: 60px 0 100px !important; background: var(--s3) !important; }
#products { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---- Products ---- */
.product-thumb { background: #fff !important; }
.product-title { font-size: 0.90rem !important; font-weight: 500 !important; color: #000 !important; }
.product-price { font-size: 0.80rem !important; font-weight: 500 !important; color: #000 !important; }
.product-discount-price { color: #c0392b !important; }

/* ---- Footer: white ---- */
#siteFooter { background: var(--bg) !important; color: var(--text) !important; }
.footer-logo { color: var(--text) !important; }
.footer-nav a { color: var(--muted) !important; }
.footer-nav a:hover { color: var(--k1) !important; }
.footer-credit { color: var(--muted) !important; }
.footer-sns-link {
  font-size: 0.60rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted) !important; text-transform: uppercase; transition: color 0.2s;
}
.footer-sns-link:hover { color: var(--k1) !important; }

/* ---- section-label: line before text ---- */
.section-label {
  display: flex; align-items: center; gap: 12px; letter-spacing: 0.35em;
}
.section-label::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.product-section-head .section-label { margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #siteNav { display: none; }
  .header-hamburger { display: flex; }
  .section-inner { padding: 0 24px; }
  .section-about { padding: 60px 0 !important; }
  .product-section { padding: 40px 0 80px !important; }
  #siteLogo { left: 40px !important; }
  #siteHeader { padding-right: 40px !important; }
  #siteLogo a { font-size: 0.82rem; }
  #siteLogo.grown a { font-size: 2.0rem; }
  #mainContent, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
}
