/*
Theme Name: Savon Naturel
Theme URI: https://example.com
Author: Savon Naturel
Description: 自然派手作り石鹸ブランドのWordPressテーマ。ベージュ・薄緑・薄紫をベースにした、動きのあるランディングページ型テーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: savon-naturel
*/

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

:root {
  --beige-light:  #F7F0E8;
  --beige:        #EDE0CC;
  --beige-dark:   #D4BFA0;
  --green-light:  #D6E8D4;
  --green:        #A8C9A0;
  --green-dark:   #7EAA78;
  --purple-light: #E4D8EE;
  --purple:       #C4A8D8;
  --purple-dark:  #9B7BB8;
  --brown:        #6B4E3D;
  --text:         #3D2E24;
  --text-muted:   #7A6255;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  background: var(--beige-light);
  color: var(--text);
  overflow-x: hidden;
}

/* ============================================
   Navigation
============================================ */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: all 0.4s ease;
}

#mainNav.scrolled {
  background: rgba(247, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  padding: 14px 60px;
  box-shadow: 0 2px 30px rgba(107, 78, 61, 0.08);
}

.nav-logo {
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: var(--brown);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-logo span {
  color: var(--purple-dark);
}

/* WordPress メニュー */
#mainNav .nav-links,
#mainNav .menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

#mainNav .nav-links a,
#mainNav .menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

#mainNav .nav-links a::after,
#mainNav .menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--purple);
  transition: width 0.3s ease;
}

#mainNav .nav-links a:hover,
#mainNav .menu a:hover { color: var(--brown); }
#mainNav .nav-links a:hover::after,
#mainNav .menu a:hover::after { width: 100%; }

/* ============================================
   Hero
============================================ */
#hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--green-light) 50%, var(--beige) 100%);
}

.bubbles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatBubble linear infinite;
}

.bubble:nth-child(1)  { width:80px;  height:80px;  left:10%; background:radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9),  rgba(196,168,216,0.3)); animation-duration:12s; animation-delay:0s; }
.bubble:nth-child(2)  { width:50px;  height:50px;  left:25%; background:radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9),  rgba(168,201,160,0.4)); animation-duration:15s; animation-delay:2s; }
.bubble:nth-child(3)  { width:120px; height:120px; left:60%; background:radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85), rgba(214,232,212,0.5)); animation-duration:18s; animation-delay:1s; }
.bubble:nth-child(4)  { width:35px;  height:35px;  left:75%; background:radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9),  rgba(196,168,216,0.4)); animation-duration:10s; animation-delay:3s; }
.bubble:nth-child(5)  { width:65px;  height:65px;  left:85%; background:radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9),  rgba(168,201,160,0.3)); animation-duration:14s; animation-delay:5s; }
.bubble:nth-child(6)  { width:45px;  height:45px;  left:40%; background:radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9),  rgba(228,216,238,0.5)); animation-duration:16s; animation-delay:7s; }
.bubble:nth-child(7)  { width:90px;  height:90px;  left:5%;  background:radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85), rgba(168,201,160,0.3)); animation-duration:20s; animation-delay:4s; }
.bubble:nth-child(8)  { width:30px;  height:30px;  left:55%; background:radial-gradient(circle at 35% 35%, rgba(255,255,255,0.95), rgba(196,168,216,0.35)); animation-duration:11s; animation-delay:9s; }

@keyframes floatBubble {
  0%   { transform: translateY(110vh) scale(0.5); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-20vh) scale(1.1); opacity: 0; }
}

.hero-plants {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  pointer-events: none;
}

.plant {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  animation: sway 4s ease-in-out infinite;
}

.plant:nth-child(2) { animation-delay: 0.5s; animation-duration: 5s; }
.plant:nth-child(3) { animation-delay: 1s;   animation-duration: 3.5s; }
.plant:nth-child(4) { animation-delay: 1.5s; animation-duration: 4.5s; }
.plant:nth-child(5) { animation-delay: 0.8s; animation-duration: 5.5s; }

@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50%       { transform: rotate(3deg); }
}

.hero-content {
  position: relative;
  text-align: left;
  z-index: 2;
  transition: transform 0.1s ease;
  margin-left: 12vw;
  max-width: 40vw;
}

.hero-image-circle {
  position: absolute;
  right: -8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
}

.hero-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 24px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 28px;
  animation: fadeUp 1s ease 0.5s both;
}

.hero-title em {
  font-style: normal;
  color: var(--green-dark);
  position: relative;
  display: inline-block;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  animation: expandLine 1.2s ease 1.2s both;
  transform-origin: left;
}

@keyframes expandLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 48px;
  animation: fadeUp 1s ease 0.8s both;
  max-width: 500px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--brown);
  color: var(--beige-light);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 60px;
  transition: all 0.4s ease;
  animation: fadeUp 1s ease 1.1s both;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.hero-cta:hover::before { transform: translateX(0); }
.hero-cta span { position: relative; z-index: 1; }

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 2s both;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   Section Common
============================================ */
.sn-section {
  padding: 120px 60px;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 24px;
}

.section-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-muted);
  max-width: 560px;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.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; }

/* ============================================
   Philosophy
============================================ */
#philosophy {
  background: var(--beige);
  position: relative;
  overflow: hidden;
}

#philosophy::before {
  content: 'NATURAL';
  position: absolute;
  top: -30px; right: -20px;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(196, 168, 216, 0.12);
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
}

.philosophy-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-visual { position: relative; }

.philosophy-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--green-light), var(--purple-light));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphShape 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@keyframes morphShape {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  33%       { border-radius: 50% 50% 45% 55% / 45% 50% 50% 55%; }
  66%       { border-radius: 45% 55% 50% 50% / 50% 45% 55% 50%; }
}

.philosophy-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.8;
}

.soap-illustration {
  width: 200px;
  height: 200px;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}

.philosophy-badges {
  position: absolute;
  top: -20px; right: -20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge {
  background: white;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--brown);
  box-shadow: 0 4px 20px rgba(107, 78, 61, 0.15);
  animation: badgeFloat 4s ease-in-out infinite;
}

.badge:nth-child(2) { animation-delay: 1s;   animation-duration: 5s; }
.badge:nth-child(3) { animation-delay: 2s;   animation-duration: 4.5s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================
   Ingredients
============================================ */
#ingredients {
  background-color: var(--beige-light);
  position: relative;
}

#ingredients::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  z-index: 0;
}

#ingredients > * {
  position: relative;
  z-index: 1;
}

.ingredients-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.ingredients-header .section-body { margin: 0 auto; white-space: nowrap; }

.ingredients-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ingredient-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}

.ingredient-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--green), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ingredient-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(107, 78, 61, 0.12);
}

.ingredient-card:hover::before { transform: scaleX(1); }

.ingredient-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.ingredient-card:nth-child(1) .ingredient-icon { background: var(--green-light); }
.ingredient-card:nth-child(2) .ingredient-icon { background: var(--purple-light); }
.ingredient-card:nth-child(3) .ingredient-icon { background: var(--beige); }
.ingredient-card:nth-child(4) .ingredient-icon { background: var(--purple-light); }
.ingredient-card:nth-child(5) .ingredient-icon { background: var(--green-light); }
.ingredient-card:nth-child(6) .ingredient-icon { background: var(--beige); }

.ingredient-name {
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.ingredient-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.ingredient-origin {
  margin-top: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ingredient-origin::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--purple);
}

/* ============================================
   Process
============================================ */
#process {
  background: linear-gradient(160deg, var(--green-light) 0%, var(--beige-light) 60%);
  position: relative;
  overflow: hidden;
}

.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.process-header { margin-bottom: 80px; }

.process-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-line {
  position: absolute;
  left: 48px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--purple));
}

.process-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  position: relative;
}

.process-step:not(:last-child) {
  border-bottom: 1px solid rgba(168, 201, 160, 0.3);
}

.step-number-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--purple-dark);
  box-shadow: 0 8px 30px rgba(155, 123, 184, 0.2);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.process-step:hover .step-number { transform: scale(1.1); }

.step-content { padding-top: 16px; }

.step-title {
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 580px;
}

.step-time {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--green-dark);
}

/* ============================================
   Products
============================================ */
#products { background: var(--beige); }

.products-header {
  text-align: center;
  margin-bottom: 80px;
}

.products-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--beige-light);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.product-card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.product-card form {
  position: relative;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 70px rgba(107, 78, 61, 0.15);
}

.product-visual {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card:nth-child(1) .product-visual { background: linear-gradient(135deg, var(--green-light), var(--beige)); }
.product-card:nth-child(2) .product-visual { background: linear-gradient(135deg, var(--purple-light), var(--beige-light)); }
.product-card:nth-child(3) .product-visual { background: linear-gradient(135deg, var(--beige), var(--green-light)); }

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.product-soap-shape {
  width: 100px;
  height: 70px;
  border-radius: 16px;
  position: relative;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15), inset 0 -4px 12px rgba(255,255,255,0.4);
}

.product-card:nth-child(1) .product-soap-shape {
  background: linear-gradient(145deg, #C8D8B8, #A0B890);
  animation-delay: 0s;
}
.product-card:nth-child(2) .product-soap-shape {
  background: linear-gradient(145deg, #D8C8E0, #B8A0C8);
  width: 90px; height: 80px;
  border-radius: 50%;
  animation-delay: 1s;
}
.product-card:nth-child(3) .product-soap-shape {
  background: linear-gradient(145deg, #E8D8B8, #C8B098);
  width: 110px; height: 65px;
  border-radius: 12px 28px 12px 28px;
  animation-delay: 2s;
}

.soap-texture {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.08) 0px,
    rgba(255,255,255,0.08) 2px,
    transparent 2px,
    transparent 8px
  );
  border-radius: inherit;
}

.product-info { padding: 28px 28px 36px; flex: 1; display: flex; flex-direction: column; }

.product-tag {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 10px;
}

.product-name {
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price { font-size: 1.2rem; color: var(--brown); }
.product-price span { font-size: 0.78rem; color: var(--text-muted); margin-left: 4px; }

.btn-add {
  padding: 10px 24px;
  background: var(--brown);
  color: var(--beige-light);
  border: none;
  border-radius: 40px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-add:hover { background: var(--green-dark); }

.product-card form .btn-add { background: var(--green-dark); }
.product-card form .btn-add:hover { background: var(--brown); }

/* ============================================
   Values Strip
============================================ */
#values-strip {
  padding: 30px 0;
  background: var(--brown);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--beige-light);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   Story
============================================ */
#story {
  background: var(--beige-light);
  padding: 140px 60px;
}

.story-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.story-quote {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--brown);
  position: relative;
  padding-left: 36px;
}

.story-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--purple), var(--green));
  border-radius: 2px;
}

.story-text .section-body { max-width: 100%; }

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--beige);
  border-radius: 20px;
}

.stat-number {
  font-size: 2.2rem;
  color: var(--brown);
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   Newsletter
============================================ */
#newsletter {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--green-light) 100%);
  padding: 120px 60px;
  text-align: center;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2.5rem;
  color: var(--brown);
  margin-bottom: 20px;
}

.newsletter-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 48px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid rgba(107, 78, 61, 0.2);
  border-radius: 60px;
  background: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-input:focus { border-color: var(--purple); }

.newsletter-btn {
  padding: 16px 32px;
  background: var(--brown);
  color: var(--beige-light);
  border: none;
  border-radius: 60px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s;
  white-space: nowrap;
}

.newsletter-btn:hover { background: var(--purple-dark); }

/* ============================================
   Footer
============================================ */
#colophon {
  background: var(--text);
  color: var(--beige-light);
  padding: 80px 60px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand-name {
  font-size: 1.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--beige);
}

.footer-brand-name span { color: var(--purple); }

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  color: rgba(247, 240, 232, 0.6);
}

.footer-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}

.footer-nav ul,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-links a {
  text-decoration: none;
  color: rgba(247, 240, 232, 0.6);
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer-nav a:hover,
.footer-links a:hover { color: var(--beige-light); }

.footer-bottom {
  border-top: 1px solid rgba(247, 240, 232, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(247, 240, 232, 0.4);
  letter-spacing: 0.1em;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 240, 232, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
  text-decoration: none;
  color: rgba(247, 240, 232, 0.6);
}

.social-icon:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-3px);
}

/* ============================================
   Custom Cursor
============================================ */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--purple-dark);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: multiply;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease;
  opacity: 0.6;
}

/* ============================================
   WordPress Admin Bar 対応
============================================ */
.admin-bar #mainNav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #mainNav {
    top: 46px;
  }
}

/* ============================================
   Nav Right（カート＋ハンバーガー）
============================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.nav-cart {
  position: relative;
  color: var(--brown);
  text-decoration: none;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
}

.nav-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--purple-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ハンバーガーボタン：PC では非表示 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover { background: var(--beige); }

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* 開いているときの × アイコン */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニューオーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61, 46, 36, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
}

/* ============================================
   Responsive — Tablet（768px〜1024px）
============================================ */
@media (max-width: 1024px) {

  /* ナビ */
  #mainNav { padding: 16px 32px; }
  #mainNav.scrolled { padding: 12px 32px; }

  /* セクション共通 */
  .sn-section { padding: 80px 40px; }
  #story { padding: 100px 40px; }
  #newsletter { padding: 80px 40px; }

  /* Philosophy */
  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .philosophy-img-frame {
    max-width: 480px;
    margin: 0 auto;
  }
  .philosophy-badges {
    top: -10px;
    right: -10px;
  }

  /* Ingredients */
  .ingredients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Products — 2列 */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    gap: 24px;
  }

  /* Process */
  .process-step {
    grid-template-columns: 80px 1fr;
    gap: 24px;
  }
  .step-number {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
  }
  .process-line { left: 32px; }

  /* Story */
  .story-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  #colophon { padding: 60px 40px 32px; }
}

/* ============================================
   Responsive — Mobile（〜767px）
============================================ */
@media (max-width: 767px) {

  /* ナビ：ハンバーガーメニュー */
  #mainNav { padding: 14px 20px; grid-template-columns: 1fr auto; }
  #mainNav.scrolled { padding: 10px 20px; }

  .nav-toggle { display: flex; }

  /* PCメニューを非表示にして、モバイルドロワーへ */
  #mainNav .nav-links,
  #mainNav .menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100dvh;
    background: var(--beige-light);
    padding: 80px 32px 40px;
    gap: 0;
    z-index: 999;
    box-shadow: -4px 0 30px rgba(107, 78, 61, 0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  #mainNav .nav-links.is-open,
  #mainNav .menu.is-open {
    right: 0;
  }

  #mainNav .nav-links li,
  #mainNav .menu li {
    border-bottom: 1px solid var(--beige-dark);
  }

  #mainNav .nav-links a,
  #mainNav .menu a {
    display: block;
    padding: 18px 0;
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  #mainNav .nav-links a::after,
  #mainNav .menu a::after { display: none; }

  /* オーバーレイ表示 */
  .nav-overlay { display: block; }

  /* セクション共通 */
  .sn-section { padding: 60px 20px; }
  #story { padding: 60px 20px; }
  #newsletter { padding: 60px 20px; }
  #colophon { padding: 48px 20px 28px; }

  /* Section labels */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* Hero */
  .hero-sub { font-size: 0.95rem; }
  .hero-cta { padding: 14px 28px; font-size: 0.8rem; }
  .scroll-indicator { display: none; }

  /* Philosophy */
  .philosophy-inner { gap: 36px; }
  .philosophy-img-frame { max-width: 100%; }
  .philosophy-badges { display: none; }
  #philosophy::before { font-size: 5rem; }

  /* Ingredients */
  .ingredients-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ingredient-card { padding: 32px 24px; }
  .ingredients-header { margin-bottom: 48px; }
  .ingredients-header .section-body { white-space: normal; }

  /* Products — 縦1列 */
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px;
  }
  .products-header { margin-bottom: 48px; }

  /* Process */
  .process-step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .process-line { left: 24px; top: 52px; bottom: 52px; }
  .step-content { padding-top: 8px; }
  .step-title { font-size: 1.1rem; }

  /* Story */
  .story-inner { gap: 40px; }
  .story-quote { font-size: 1.2rem; }
  .story-stats { grid-template-columns: 1fr; gap: 16px; }

  /* Newsletter */
  .newsletter-title { font-size: 1.8rem; }
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }
  .newsletter-input,
  .newsletter-btn { width: 100%; text-align: center; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* カスタムカーソル：タッチデバイスでは非表示 */
  .cursor-dot,
  .cursor-ring { display: none; }
}

/* ============================================
   Blog Archive
============================================ */
#blog-archive {
  padding-top: 140px;
  min-height: 100vh;
}

.blog-archive-header {
  text-align: center;
  padding: 60px 60px 80px;
}

.blog-archive-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown);
  margin: 16px 0 20px;
  line-height: 1.3;
}

.blog-archive-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 2;
}

.blog-archive-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px 120px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(107, 78, 61, 0.12);
}

.blog-card-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 28px 28px 32px;
}

.blog-card-date {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--brown);
  margin-bottom: 12px;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--green-dark);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.blog-card-more {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--purple-dark);
  text-decoration: none;
}

.blog-card-more:hover {
  color: var(--green-dark);
}

.blog-pagination {
  text-align: center;
}

.blog-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--beige-dark);
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--brown);
  color: var(--beige-light);
  border-color: var(--brown);
}

.blog-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 0;
  font-size: 1rem;
}

/* ============================================
   Blog Single
============================================ */
#blog-single {
  padding-top: 140px;
  min-height: 100vh;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 120px;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--brown);
  line-height: 1.4;
  margin: 16px 0 20px;
}

.blog-post-date {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.blog-post-thumb {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 56px;
}

.blog-post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
}

.blog-post-content h2 {
  font-size: 1.5rem;
  color: var(--brown);
  margin: 48px 0 20px;
}

.blog-post-content h3 {
  font-size: 1.2rem;
  color: var(--brown);
  margin: 36px 0 16px;
}

.blog-post-content p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.blog-post-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 32px 0;
}

.blog-post-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--beige-dark);
}

.blog-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.blog-post-nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  max-width: 45%;
  line-height: 1.6;
}

.blog-post-nav-link:hover {
  color: var(--brown);
}

.blog-post-nav-link.next {
  text-align: right;
  margin-left: auto;
}

.blog-back-link {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--purple-dark);
  text-decoration: none;
}

.blog-back-link:hover {
  color: var(--green-dark);
}

@media (max-width: 767px) {
  .blog-archive-inner { padding: 0 24px 80px; }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-post { padding: 40px 24px 80px; }
  .blog-post-nav { flex-direction: column; }
  .blog-post-nav-link.next { text-align: left; margin-left: 0; }
}

/* ============================================
   WooCommerce — 共通リセット
============================================ */
.woocommerce,
.woocommerce-page {
  font-family: 'Georgia', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  color: var(--text);
}

/* カート数バッジ非表示クラス */
.nav-cart-count.hidden { display: none; }

/* ============================================
   WooCommerce — ショップアーカイブ
============================================ */
#wc-shop { padding-top: 140px; min-height: 100vh; }

.wc-shop-header {
  text-align: center;
  padding: 60px 60px 60px;
}

.wc-shop-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown);
  margin: 16px 0 0;
}

.wc-shop-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 120px;
}

/* 商品グリッド */
.woocommerce .products,
.woocommerce-page .products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 36px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 60px !important;
}

/* 商品カード */
.woocommerce li.product,
.woocommerce-page li.product {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce li.product:hover,
.woocommerce-page li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(107, 78, 61, 0.12);
}

.woocommerce li.product a img,
.woocommerce-page li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

.woocommerce li.product .woocommerce-loop-product__title,
.woocommerce-page li.product .woocommerce-loop-product__title {
  font-size: 1.05rem;
  color: var(--brown);
  padding: 20px 20px 8px !important;
}

.woocommerce li.product .price,
.woocommerce-page li.product .price {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 20px 16px;
  display: block;
}

.woocommerce li.product .button,
.woocommerce-page li.product .button {
  display: block;
  margin: 0 20px 20px !important;
  padding: 10px 20px !important;
  background: var(--brown) !important;
  color: var(--beige-light) !important;
  border-radius: 60px !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.2em !important;
  text-align: center;
  text-decoration: none;
  border: none !important;
  transition: background 0.3s ease !important;
}

.woocommerce li.product .button:hover,
.woocommerce-page li.product .button:hover {
  background: var(--green-dark) !important;
}

/* ページネーション */
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  border: 1px solid var(--beige-dark) !important;
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--brown) !important;
  color: var(--beige-light) !important;
  border-color: var(--brown) !important;
}

/* ============================================
   WooCommerce — 商品詳細
============================================ */
#wc-single-product { padding-top: 140px; min-height: 100vh; }

.wc-single-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 60px 120px;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery {
  border-radius: 20px;
  overflow: hidden;
}

.woocommerce div.product .summary {
  padding: 20px 0;
}

.woocommerce div.product .product_title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--brown);
  margin-bottom: 16px;
  line-height: 1.4;
}

.woocommerce div.product .price {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--brown) !important;
  color: var(--beige-light) !important;
  border-radius: 60px !important;
  padding: 14px 40px !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.25em !important;
  border: none !important;
  transition: background 0.3s ease !important;
  cursor: pointer;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--green-dark) !important;
}

/* ============================================
   WooCommerce — カート・チェックアウト
============================================ */
.woocommerce-cart main,
.woocommerce-checkout main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 60px 120px;
}

.woocommerce table.shop_table {
  border-collapse: collapse;
  width: 100%;
}

.woocommerce table.shop_table th {
  color: var(--brown);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  padding: 16px;
  border-bottom: 2px solid var(--beige-dark);
}

.woocommerce table.shop_table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--beige);
  color: var(--text-muted);
  vertical-align: middle;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
  background: var(--brown) !important;
  color: var(--beige-light) !important;
  border-radius: 60px !important;
  padding: 16px 40px !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.2em !important;
  display: block;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--green-dark) !important;
}

.woocommerce form .form-row label {
  color: var(--brown);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  color: var(--text);
  width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
}

/* ============================================
   WooCommerce — レスポンシブ
============================================ */
@media (max-width: 1024px) {
  .woocommerce .products,
  .woocommerce-page .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .wc-shop-inner,
  .wc-single-inner { padding: 0 20px 80px; }
  .wc-shop-header { padding: 40px 20px; }

  .woocommerce .products,
  .woocommerce-page .products {
    grid-template-columns: 1fr !important;
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .woocommerce-cart main,
  .woocommerce-checkout main { padding: 120px 20px 80px; }
}
