/*
  OPT WELLNESS — デザイン強化スタイルシート
  Version: 2.0.0
  適用方法: functions.php で opt-wellness-style に依存するスタイルとして追加エンキューする
  ベースの style.css はそのまま維持。このファイルで上書き・拡張する。
*/

/* =============================================
   GRAIN TEXTURE OVERLAY
   ============================================= */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* =============================================
   NAV — SCROLLED STATE
   ============================================= */
.nav {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav--scrolled {
  background: rgba(245,240,232,0.98) !important;
  box-shadow: 0 1px 24px rgba(59,94,58,0.07);
}

/* =============================================
   SCROLL REVEAL SYSTEM
   ============================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="fade-in"] {
  transform: none;
}
[data-animate="fade-left"] {
  transform: translateX(-28px);
}
[data-animate="fade-right"] {
  transform: translateX(28px);
}
[data-animate="scale-in"] {
  transform: scale(0.94);
}
[data-animate].is-visible {
  opacity: 1;
  transform: none !important;
}

/* =============================================
   HERO — ENTRANCE ANIMATIONS
   ============================================= */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes grow-down {
  from { transform: scaleY(0); transform-origin: top; opacity: 0; }
  to   { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.hero-ornament {
  animation: grow-down 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-label {
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero h1 {
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
.hero-sub {
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}
.hero-btns {
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both;
}
.hero-stats {
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

/* Hero — deeper background ===*/
.hero::before {
  background:
    radial-gradient(ellipse 90% 55% at 50% 50%, rgba(59,94,58,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 15% 85%, rgba(184,150,46,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 15%, rgba(59,94,58,0.04) 0%, transparent 55%);
}

/* Hero scroll indicator animated */
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(1.6); opacity: 0.5; }
}
.hero-scroll-line {
  animation: scroll-pulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* =============================================
   HERO STATS STRIP
   ============================================= */
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  margin-top: 52px;
  padding: 32px 40px;
  border: 1px solid var(--border);
  background: rgba(245,240,232,0.6);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.hero-stat-num .stat-pct {
  font-size: 22px;
  color: var(--gold);
  margin-left: 1px;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--sub);
  letter-spacing: 2px;
  margin-top: 10px;
}
.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .hero-stats { gap: 28px; padding: 24px 20px; }
  .hero-stat-sep { display: none; }
  .hero-stat-num { font-size: 36px; }
}

/* =============================================
   MARQUEE STRIP
   ============================================= */
.marquee-wrap {
  background: var(--green);
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid rgba(184,150,46,0.25);
  border-bottom: 1px solid rgba(184,150,46,0.25);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track span {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}
.marquee-track .marquee-dot {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0;
  opacity: 0.8;
}

/* =============================================
   BUTTON HOVER — FILL FROM BOTTOM
   ============================================= */
.btn-gold,
.btn-primary,
.btn-ghost,
.btn-outline,
.btn-nav {
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease,
              transform 0.2s ease;
}
.btn-gold:hover,
.btn-primary:hover,
.btn-ghost:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}
.btn-gold:active,
.btn-primary:active,
.btn-ghost:active,
.btn-outline:active {
  transform: translateY(0);
}

/* =============================================
   CARD HOVER — LIFT & SHADOW
   ============================================= */
.problem-card,
.feature-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(59,94,58,0.11);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(59,94,58,0.1);
}

.price-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(59,94,58,0.09);
}
.price-card.featured:hover {
  box-shadow: 0 14px 44px rgba(59,94,58,0.22);
}

.product-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-img {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img {
  transform: scale(1.04);
}

/* =============================================
   FAQ ACCORDION — SMOOTH OPEN/CLOSE
   ============================================= */
details.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
details.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}
details.faq-item summary {
  padding: 24px 0;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.6;
  transition: color 0.2s;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
details.faq-item[open] summary {
  color: var(--gold);
}
details.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}
details.faq-item .faq-a {
  padding-bottom: 24px;
  animation: faq-reveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PROBLEM CARD — COUNT-UP NUMBER
   ============================================= */
.problem-pct {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.problem-card:hover .problem-pct {
  color: var(--green);
}

/* =============================================
   FEATURE ICON — ROTATE ON HOVER
   ============================================= */
.feature-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.feature-card:hover .feature-icon {
  transform: rotate(15deg) scale(1.1);
  border-color: var(--green);
}

/* =============================================
   ADVANTAGE ITEM — HOVER HIGHLIGHT
   ============================================= */
.advantage-item {
  transition: background 0.2s, padding-left 0.3s ease;
  border-radius: 2px;
  padding: 8px 4px;
  margin-left: -4px;
}
.advantage-item:hover {
  background: rgba(184,150,46,0.04);
  padding-left: 12px;
}

/* =============================================
   SECTION TITLE — ANIMATED UNDERLINE
   ============================================= */
.section-title em {
  position: relative;
  display: inline;
}
.section-title em::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.is-visible .section-title em::after,
[data-animate].is-visible .section-title em::after {
  transform: scaleX(1);
}

/* =============================================
   CTA SECTION — DECORATIVE BACKGROUND
   ============================================= */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,150,46,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section::after {
  content: '∞';
  position: absolute;
  bottom: -40px;
  right: 5%;
  font-family: 'Playfair Display', serif;
  font-size: 280px;
  color: rgba(245,240,232,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* =============================================
   HERO VISUAL WRAPPER (for parallax overflow control)
   ============================================= */
.hero-visual-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  margin-top: 56px;
}
.hero-visual {
  width: 100%;
  display: block;
  border-radius: 4px;
  will-change: transform;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 900px) {
  .hero-stats { gap: 24px; padding: 24px; }
  .cta-section::after { font-size: 180px; }
}
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat-sep { display: none; }
  .cta-section::after { display: none; }
}
