/* ============================================
   NAO's FARM — Design System
   https://naosfarm.mimizuya.co.jp
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-gold: #2A5C48;          /* 深緑 (Mimizuya Forest Deep) */
  --color-gold-dark: #3D2E24;     /* 深い茶 (Mimizuya Earth Deep) */
  --color-gold-light: #6BC4A0;    /* 明るい緑 (Mimizuya Leaf) */
  --color-text: #3D3D3D;          /* 柔らかい黒 (Mimizuya Text) */
  --color-text-light: #6B5B4E;    /* 柔らかい茶 (Mimizuya Earth Brown) */
  --color-text-muted: #9CA3AF;
  --color-bg: #FDFBF8;            /* クリーム (Mimizuya Cream) */
  --color-bg-alt: #F5F0E8;        /* 暗いクリーム (Mimizuya Cream Dark) */
  --color-bg-section: #F5F0E8;
  --color-bg-dark: #3D2E24;       /* チョコレートブラウン (Mimizuya Earth Deep) */
  --color-bg-darker: #2D1F17;
  --color-border: #E8E2D9;
  --color-red: #C0392B;
  --color-white: #FFFFFF;
  --color-sky: #A8D4E6;           /* 青 (Mimizuya Sky Blue) */
  --color-accent-gold: #D4B87A;   /* ベージュゴールド (Mimizuya Gold) */

  --font-serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-display: 'Zen Maru Gothic', var(--font-sans);

  --header-height: 72px;
  --container-max: 1200px;
  --container-narrow: 900px;
  --section-padding: 100px;
  --section-padding-sm: 60px;

  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --shadow-subtle: 0 2px 20px rgba(61,46,36,0.04);
  --shadow-card: 0 4px 24px rgba(61,46,36,0.06);
  --shadow-elevated: 0 8px 40px rgba(61,46,36,0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--transition-base); }
a:hover { opacity: 0.75; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.4;
}

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

.section-heading .en {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.section-heading .ja {
  font-size: 0.9rem;
  color: var(--color-text-light);
  letter-spacing: 0.15em;
}

/* --- Sections --- */
.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-subtle);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 44px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
  transition: color var(--transition-base);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.header-nav a:hover {
  opacity: 1;
  color: var(--color-gold);
}

.header-nav a:hover::after {
  width: 70%;
}

.header-nav .separator {
  width: 1px;
  height: 16px;
  background: var(--color-border);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content .hero-logo {
  width: min(280px, 60vw);
  margin: 0 auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.3));
}

/* Page hero (shorter) */
.hero--page {
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
}

/* --- Feature Sections (01, 02) --- */
.feature-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.feature-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.feature-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.feature-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 40px;
  width: 100%;
}

.feature-content--right {
  text-align: right;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.feature-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.feature-title span {
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  backdrop-filter: blur(4px);
}

.feature-desc {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* --- News Banner --- */
.news-banner {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.news-banner a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  gap: 12px;
  transition: background var(--transition-base);
}

.news-banner a:hover {
  background: var(--color-bg-section);
  opacity: 1;
}

.news-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.news-arrow {
  font-size: 0.8rem;
  color: var(--color-gold);
}

/* --- Story / About Section --- */
.story-block {
  display: grid;
  grid-template-columns: 8fr 7fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.story-block--reverse {
  direction: rtl;
  grid-template-columns: 7fr 8fr;
}

.story-block--reverse > * {
  direction: ltr;
}

.story-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 16px;
  position: relative;
  font-weight: 600;
}

.story-text h3 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.story-text p {
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--color-text-light);
}

.story-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.story-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.1);
}

.fade-in.visible .story-image img {
  transform: scale(1);
}

.photo-credit {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 8px;
}

/* --- Profile Cards --- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
}

.profile-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.profile-card--full {
  grid-column: 1 / -1;
  max-width: 700px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-subtle);
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: 12px;
  line-height: 1.5;
}

.profile-bio {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--color-text-light);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 16px 48px;
  border-radius: 4px;
  transition: all var(--transition-base);
  text-align: center;
}

.btn--primary {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-text);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn--outline {
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-white);
  opacity: 1;
}

.btn--white {
  background: var(--color-white);
  color: var(--color-text);
}

.btn--white:hover {
  background: var(--color-bg-alt);
  opacity: 1;
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn--gold:hover {
  background: var(--color-gold-dark);
  opacity: 1;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 28px;
  font-size: 0.8rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 10px 24px;
  background: var(--color-bg-dark);
  color: var(--color-white);
  border-radius: 4px;
  transition: all var(--transition-base);
}

.btn-social:hover {
  background: var(--color-text);
  opacity: 1;
}

/* --- Product Cards --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card-body {
  padding: 24px;
}

.product-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-price {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.product-card-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Stock Badge (Scarcity) --- */
.stock-badge {
  display: none;
}
.stock-badge.stock-low {
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff6b00, #ff9800);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(255, 107, 0, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
  z-index: 2;
}
.stock-badge.stock-sold-out {
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #b71c1c, #e53935);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px rgba(229, 57, 53, 0.5);
  z-index: 2;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 2px 12px rgba(255, 107, 0, 0.4); }
  50% { box-shadow: 0 2px 20px rgba(255, 107, 0, 0.8); }
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 40px 24px 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  line-height: 1.6;
}

.faq-question::before {
  content: 'Q.';
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 12px;
  font-size: 1.1rem;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-gold);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 24px 32px;
  font-size: 0.9rem;
  line-height: 2;
  color: var(--color-text-light);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Guest/Player Grid --- */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}

.guest-card {
  text-align: center;
}

.guest-card-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-card);
}

.guest-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.guest-card-bio {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* --- Sponsor Grid --- */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.sponsor-grid img {
  height: 48px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.sponsor-grid img:hover {
  opacity: 1;
}

/* --- Contact Section --- */
.contact-section {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--section-padding) 0;
}

.contact-section .section-heading .en {
  color: var(--color-gold-light);
}

.contact-section .section-heading .ja {
  color: rgba(255,255,255,0.7);
}

.contact-text {
  text-align: center;
  font-size: 0.95rem;
  line-height: 2;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Instagram Section --- */
.instagram-section {
  text-align: center;
  padding: 64px 0;
}

.instagram-icon {
  width: 48px;
  height: 48px;
  margin: 16px auto;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-darker);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 32px;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-base);
}

.footer-nav a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-legal a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.8);
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Vertical Text (for corn page) --- */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.1rem;
  line-height: 2.2;
  letter-spacing: 0.15em;
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th, .info-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  width: 140px;
  white-space: nowrap;
  color: var(--color-text);
}

/* --- Season Notice --- */
.season-notice {
  text-align: center;
  padding: 40px 24px;
}

.season-notice h3 {
  color: var(--color-red);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.season-notice p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--color-text-light);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col--wide-left {
  grid-template-columns: 55% 1fr;
}

.two-col--wide-right {
  grid-template-columns: 1fr 55%;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-red { color: var(--color-red); }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* --- OGP Image fallback --- */
.ogp-fallback {
  display: none;
}


/* --- Sticky CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 1000;
  display: none; /* Displayed via JS or media query */
  animation: slideUpFade 0.5s ease forwards;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hide-pc {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .header-nav {
    gap: 4px;
  }

  .header-nav a {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --section-padding: 64px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 0;
    box-shadow: var(--shadow-elevated);
    transition: right var(--transition-base);
  }

  .header-nav.open {
    right: 0;
  }

  .header-nav a {
    font-size: 1rem;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .header-nav a::after {
    display: none;
  }

  .header-nav .separator {
    display: none;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    height: 80vh;
    min-height: 500px;
  }

  .hero--page {
    height: 50vh;
    min-height: 300px;
  }

  .feature-section {
    min-height: 60vh;
  }

  .feature-bg--cup {
    background-position: 25% center;
  }

  .feature-content {
    padding: 48px 24px;
  }

  .story-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-block--reverse {
    direction: ltr;
  }

  .two-col,
  .two-col--wide-left,
  .two-col--wide-right {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .guest-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
  }

  .section-heading .en {
    font-size: 1.8rem;
  }

  .feature-title {
    font-size: 1.6rem;
  }

  .faq-answer-inner {
    padding-left: 16px;
  }

  .info-table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
    border-bottom: none;
  }

  .info-table td {
    display: block;
    padding-top: 0;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hide-sp {
    display: none;
  }
  .hide-pc {
    display: block;
  }
  .sticky-cta.hide-pc {
    display: block;
  }
}

/* ============================================================
   Cart Button in Header
   ============================================================ */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--brown);
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  transition: color 0.3s;
}

.cart-btn:hover { color: var(--gold); }

.cart-badge {
  position: absolute;
  top: 0;
  right: -4px;
  background: #c41e3a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   Cart Drawer
   ============================================================ */
#cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

#cart-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.cart-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #999;
  font-size: 15px;
}

.cart-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover { background: #eee; }

.qty-value {
  font-weight: 600;
  font-size: 15px;
  min-width: 24px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-left: auto;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.remove-btn:hover { opacity: 1; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

.cart-total-value {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 1px;
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74,124,36,0.4);
}

.cart-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cart-note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

/* ============================================================
   Cart Notification Toast
   ============================================================ */
.cart-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.cart-notification.show {
  transform: translateX(0);
}

/* ============================================================
   Add to Cart Button (Product Page)
   ============================================================ */
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(187,161,90,0.4);
}

.product-purchase-section {
  background: linear-gradient(180deg, #f9f6f0, #fff);
  padding: 60px 0;
  text-align: center;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.product-card .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.product-card .price-note {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}

.product-card p.desc {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ============================================================
   Checkout Success Page
   ============================================================ */
.checkout-success {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.success-card {
  max-width: 500px;
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.success-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.success-card h1 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.success-card .order-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--color-gold);
  font-weight: 600;
  margin: 16px 0;
  padding: 12px;
  background: #f4f6f0;
  border-radius: 8px;
}

.success-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.success-card .back-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-gold);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.success-card .back-btn:hover {
  background: var(--color-gold-dark);
}

@media (max-width: 480px) {
  .header-logo img {
    height: 36px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-grid img {
    height: 36px;
  }
}


/* --- Desktop Vertical Image Hero Fix --- */
@media screen and (min-width: 769px) {
  .hero-bg--desktop-contain {
    background-size: contain !important;
    background-position: right center !important;
  }
  .hero-bg--desktop-blur {
    background-size: cover !important;
    background-position: center !important;
    filter: blur(40px) brightness(0.4) saturate(1.5);
    transform: scale(1.1);
  }
}


/* --- Hero Slideshow --- */
.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroSlideFadeZoom 24s infinite;
  transform: scale(1.0);
}

/* 6 slides x 4s each = 24s total */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }
.hero-slide:nth-child(6) { animation-delay: 20s; }

@keyframes heroSlideFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1.0);
  }
  4.16% {
    opacity: 1; /* Fade in over 1s (1/24) */
  }
  16.66% {
    opacity: 1; /* Stay visible until 4s when next slide starts (4/24) */
  }
  20.83% {
    opacity: 0; /* Fade out is complete by 5s (5/24) */
    transform: scale(1.08); /* Slow zoom in over life cycle */
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}


/* --- Corn Page Hero Specifics --- */
.hero--corn-slideshow {
  justify-content: flex-start;
  align-items: center;
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  min-height: auto;
  max-height: none;
  padding-left: max(5vw, 40px);
}

.hero-content--corn {
  margin: 0;
  margin-top: 15%; /* Push text slightly down from center relative to 4:3 box */
  z-index: 2;
  position: relative;
}

.hero-title--corn {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.6;
  letter-spacing: 0.15em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  font-weight: 500;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .hero--corn-slideshow {
    aspect-ratio: auto;
    min-height: 100vh;
    padding-left: 24px;
    padding-top: calc(50vh - 40px); /* Center nicely */
    align-items: flex-start;
  }
  
  .hero-content--corn {
    margin-top: 0;
  }

  /* Mobile Slide Framing Adjustments mapped to new HTML order */
  /* Item 1 (Orig 1): 少し拡大して上 */
  .hero-slide:nth-child(1) { background-size: auto 115%; background-position: center calc(50% - 80px); }
  /* Item 2 (Orig 3): 左 */
  .hero-slide:nth-child(2) { background-position: calc(50% - 100px) center; }
  /* Item 3 (Orig 5): かなり右 */
  .hero-slide:nth-child(3) { background-position: calc(50% + 200px) center; }
  /* Item 4 (Orig 2): 少し拡大して上 */
  .hero-slide:nth-child(4) { background-size: auto 115%; background-position: center calc(50% - 80px); }
  /* Item 5 (Orig 7): さらに右へ50pxシフト */
  .hero-slide:nth-child(5) { background-position: calc(50% + 110px) center; }
  /* Item 6 (Orig 6): 少し右 */
  .hero-slide:nth-child(6) { background-position: calc(50% + 50px) center; }

  
  .hero-title--corn {
    font-size: 1.8rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  }
}



/* Strict Responsive Hide */
.hide-pc-strict { display: none !important; }
.hide-sp-strict { display: inline-block !important; }
@media screen and (max-width: 768px) {
  .hide-pc-strict { display: inline-block !important; }
  .hide-sp-strict { display: none !important; }
}

/* ============================================================
   Process Carousel
   ============================================================ */
.process-carousel-wrapper {
  margin-top: 20px;
  width: 100%;
  overflow: hidden;
}

.process-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(5vw, 20px) 40px max(5vw, 20px);
  scrollbar-width: none; 
  -ms-overflow-style: none;
}

.process-carousel::-webkit-scrollbar {
  display: none;
}

.process-card {
  flex: 0 0 82%; 
  max-width: 320px; 
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
}

.process-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #2a2a2a; 
}

.process-card-body {
  padding: 24px;
  flex-grow: 1;
}

.process-season {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111;
  background: transparent; border: 1px solid var(--color-gold-light); color: var(--color-gold-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(220,186,113,0.3);
}



.process-scroll-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.process-scroll-hint svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  animation: swipeHint 2s infinite ease-in-out;
}
@keyframes swipeHint {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

@media screen and (min-width: 768px) {
  .process-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
  }
}

.process-season {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.process-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 0.05em;
}
.process-card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.product-variant-select {
  width: 100%;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position-x: calc(100% - 12px);
  background-position-y: 50%;
}
.product-variant-select:hover, .product-variant-select:focus {
  border-color: var(--color-gold-light);
  background-color: rgba(255, 255, 255, 0.1);
}
.product-variant-select option {
  background-color: #222;
  color: #fff;
}

/* Marquee Overrides for JS */
.process-carousel {
  overflow-x: auto !important;
  scroll-snap-type: none !important;
  padding-bottom: 40px !important;
}
.process-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  width: -webkit-max-content !important;
  gap: 20px;
}
.process-card {
  width: 280px !important;
  flex: 0 0 280px !important;
  scroll-snap-align: none !important;
}
@media screen and (min-width: 768px) {
  .process-card {
    width: 320px !important;
    flex: 0 0 320px !important;
  }
}

/* --- Floating Cart Button --- */
#floating-cart-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: calc(100% - 48px);
  max-width: 400px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 50px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(187, 161, 90, 0.4);
  z-index: 999;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  pointer-events: none;
}

#floating-cart-btn.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#floating-cart-btn:hover {
  background: var(--color-gold-dark);
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 40px rgba(187, 161, 90, 0.5);
}

#floating-cart-btn .fcb-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#floating-cart-btn .fcb-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

#floating-cart-btn .fcb-total {
  font-size: 1.1rem;
}

/* ============================================
   Reviews Section (お客様の声)
   ============================================ */
.reviews-summary {
  text-align: center;
  margin-bottom: 48px;
  display: none;
}
.reviews-avg-rating {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
}
.reviews-avg-stars {
  font-size: 1.2rem;
  color: var(--color-gold);
  margin: 4px 0 8px;
}
.reviews-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.reviews-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.review-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.review-item--featured {
  border-left: 3px solid var(--color-gold);
  padding-left: 20px;
}
.review-stars-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.review-stars {
  color: var(--color-gold);
  font-size: 1rem;
}
.review-verified {
  font-size: 0.7rem;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}
.review-author {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.review-eating {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.review-body {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--color-text);
}
.review-reply {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 16px;
  margin-top: 12px;
}
.review-reply-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 4px;
}
.review-reply-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
}
.reviews-footer {
  text-align: center;
  margin-top: 40px;
}
.reviews-footer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
