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

/* --- CSS Custom Properties --- */
:root {
  --color-gold: #BBA15A;
  --color-gold-dark: #9A8548;
  --color-gold-light: #D4C07A;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F3EF;
  --color-bg-section: #EDEAE4;
  --color-bg-dark: #2C2C2C;
  --color-bg-darker: #1A1A1A;
  --color-border: #E0DCD5;
  --color-red: #C0392B;
  --color-white: #FFFFFF;

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

  --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(0,0,0,0.06);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-elevated: 0 8px 40px rgba(0,0,0,0.12);
}

/* --- 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: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

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

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

.story-text h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

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

.story-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.story-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

/* --- 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;
}

/* ============================================
   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-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 1fr;
  }

  .hide-sp {
    display: none;
  }
}

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

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

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