/* ============================================
   有機農園ホームページ — Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Earth Tones */
  --c-cream:       #F5F0E8;
  --c-cream-dark:  #EDE5D8;
  --c-white:       #FDFCFA;
  --c-brown-dark:  #3B2F20;
  --c-brown:       #5C4A32;
  --c-brown-light: #8B7355;
  --c-green-deep:  #2D4A2E;
  --c-green:       #4A7C4B;
  --c-green-light: #7BA97C;
  --c-green-pale:  #D4E6D5;
  --c-terracotta:  #C4704A;
  --c-terracotta-light: #D98E6A;
  --c-gold:        #C9A84C;
  --c-gold-light:  #E5D08A;
  --c-text:        #2E2418;
  --c-text-light:  #6B5D4F;
  --c-text-muted:  #9B8E7E;
  --c-border:      #D9D0C2;
  --c-overlay:     rgba(46, 36, 24, 0.55);

  /* Typography */
  --ff-serif:  'Noto Serif JP', 'Georgia', serif;
  --ff-sans:   'Noto Sans JP', 'Helvetica Neue', sans-serif;
  --ff-accent: 'Cormorant Garamond', 'Georgia', serif;

  --fs-hero:   clamp(2.4rem, 5vw, 4.2rem);
  --fs-h1:     clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h2:     clamp(1.4rem, 2.5vw, 2rem);
  --fs-h3:     clamp(1.1rem, 2vw, 1.4rem);
  --fs-body:   clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small:  clamp(0.8rem, 1vw, 0.9rem);
  --fs-caption: 0.75rem;

  /* Spacing */
  --sp-xxs: 0.25rem;
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-xxl: 6rem;
  --sp-section: clamp(4rem, 8vw, 8rem);

  /* Layout */
  --max-w:      1200px;
  --max-w-text: 800px;
  --header-h:   80px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(59,47,32,0.08);
  --shadow-md: 0 4px 12px rgba(59,47,32,0.1);
  --shadow-lg: 0 8px 32px rgba(59,47,32,0.12);
  --shadow-xl: 0 16px 48px rgba(59,47,32,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 200ms;
  --t-normal: 400ms;
  --t-slow: 600ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  color: var(--c-text);
  background-color: var(--c-cream);
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-sm);
}

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

.section {
  padding: var(--sp-section) 0;
}

.section--cream {
  background-color: var(--c-cream);
}

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

.section--green {
  background-color: var(--c-green-deep);
  color: var(--c-cream);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.section-header__en {
  display: block;
  font-family: var(--ff-accent);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: var(--sp-xs);
}

.section-header__title {
  font-size: var(--fs-h1);
  color: var(--c-brown-dark);
  position: relative;
}

.section-header__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-gold);
  margin: var(--sp-sm) auto 0;
}

.section-header__sub {
  margin-top: var(--sp-sm);
  font-size: var(--fs-body);
  color: var(--c-text-light);
  font-weight: 300;
  line-height: 1.9;
}

.section--green .section-header__en {
  color: var(--c-gold-light);
}

.section--green .section-header__title {
  color: var(--c-cream);
}

.section--green .section-header__title::after {
  background: var(--c-gold-light);
}

.section--green .section-header__sub {
  color: var(--c-green-pale);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.9em 2em;
  font-family: var(--ff-serif);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: var(--r-full);
  transition: all var(--t-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--c-green-deep);
  color: var(--c-cream);
  border: 2px solid var(--c-green-deep);
}

.btn--primary:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--c-green-deep);
  border: 2px solid var(--c-green-deep);
}

.btn--secondary:hover {
  background: var(--c-green-deep);
  color: var(--c-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-brown-dark);
  border: 2px solid var(--c-gold);
}

.btn--gold:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--c-white);
  color: var(--c-green-deep);
  border: 2px solid var(--c-white);
}

.btn--white:hover {
  background: transparent;
  color: var(--c-cream);
  border-color: var(--c-cream);
  transform: translateY(-2px);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--t-normal) var(--ease-out);
  height: var(--header-h);
}

.header--transparent {
  background: transparent;
}

.header--scrolled {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  z-index: 1001;
}

.header__logo-icon {
  font-size: 1.6rem;
}

.header__logo-text {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color var(--t-fast) var(--ease-out);
}

.header--transparent .header__logo-text {
  color: var(--c-white);
}

.header--scrolled .header__logo-text {
  color: var(--c-brown-dark);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.header__nav-link {
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  position: relative;
  padding: var(--sp-xs) 0;
}

.header--transparent .header__nav-link {
  color: var(--c-cream);
}

.header--scrolled .header__nav-link {
  color: var(--c-brown);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-gold);
  transition: width var(--t-fast) var(--ease-out);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-xs);
  z-index: 1001;
}

.header__hamburger-line {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease-out);
}

.header--transparent .header__hamburger-line {
  background: var(--c-cream);
}

.header--scrolled .header__hamburger-line {
  background: var(--c-brown-dark);
}

.header__hamburger.active .header__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.header__hamburger.active .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active .header__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--c-cream);
  z-index: 999;
  transition: right var(--t-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--sp-lg);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu__link {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  color: var(--c-brown-dark);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--t-normal) var(--ease-out);
}

.mobile-menu.active .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s var(--ease-in-out);
}

.hero.loaded .hero__bg img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 36, 24, 0.3) 0%,
    rgba(46, 36, 24, 0.5) 50%,
    rgba(46, 36, 24, 0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--c-cream);
  padding: 0 var(--sp-lg);
}

.hero__catchcopy {
  font-family: var(--ff-serif);
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.5;
  margin-bottom: var(--sp-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}

.hero__sub {
  font-family: var(--ff-serif);
  font-size: var(--fs-body);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s var(--ease-out) 0.6s forwards;
  margin-bottom: var(--sp-lg);
}

.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s var(--ease-out) 0.9s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--c-cream);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.5s forwards;
}

.hero__scroll-text {
  font-family: var(--ff-accent);
  font-size: var(--fs-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--c-cream);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-gold);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

/* ---------- Intro / About Preview ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.intro__image {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro__image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.intro__image:hover img {
  transform: scale(1.03);
}

.intro__text {
  padding: var(--sp-lg) 0;
}

.intro__label {
  display: block;
  font-family: var(--ff-accent);
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: var(--sp-sm);
}

.intro__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-md);
  color: var(--c-brown-dark);
}

.intro__body {
  font-weight: 300;
  color: var(--c-text-light);
  line-height: 2;
  margin-bottom: var(--sp-lg);
}

/* ---------- Product Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
}

.product-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal) var(--ease-out);
}

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

.product-card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

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

.product-card__image-wrap {
  overflow: hidden;
}

.product-card__body {
  padding: var(--sp-md);
}

.product-card__tag {
  display: inline-block;
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  padding: 0.25em 0.8em;
  border-radius: var(--r-full);
  background: var(--c-green-pale);
  color: var(--c-green-deep);
  margin-bottom: var(--sp-xs);
}

.product-card__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-xs);
  color: var(--c-brown-dark);
}

.product-card__desc {
  font-size: var(--fs-small);
  color: var(--c-text-light);
  line-height: 1.7;
  margin-bottom: var(--sp-sm);
}

.product-card__price {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  color: var(--c-terracotta);
  font-weight: 600;
}

.product-card__price small {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-text-muted);
}

/* ---------- School Banner ---------- */
.school-banner {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.school-banner__bg {
  position: absolute;
  inset: 0;
}

.school-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 74, 46, 0.85) 0%,
    rgba(45, 74, 46, 0.6) 100%
  );
}

.school-banner__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-xl);
  max-width: 600px;
  color: var(--c-cream);
}

.school-banner__label {
  font-family: var(--ff-accent);
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: var(--sp-sm);
}

.school-banner__title {
  font-size: var(--fs-h1);
  color: var(--c-cream);
  margin-bottom: var(--sp-md);
}

.school-banner__body {
  font-weight: 300;
  line-height: 2;
  color: var(--c-green-pale);
  margin-bottom: var(--sp-lg);
}

/* ---------- Instagram Grid ---------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xs);
}

.insta-grid__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-sm);
}

.insta-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-normal) var(--ease-out);
}

.insta-grid__item:hover img {
  transform: scale(1.08);
}

.insta-grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 74, 46, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-out);
  color: var(--c-cream);
  font-size: 1.5rem;
}

.insta-grid__item:hover .insta-grid__overlay {
  opacity: 1;
}

.insta-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.insta-follow__icon {
  width: 32px;
  height: 32px;
}

/* ---------- Instagram Banner (above footer) ---------- */
.insta-banner {
  background: linear-gradient(135deg, var(--c-green-deep) 0%, var(--c-green) 100%);
}

.insta-banner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-lg);
  color: var(--c-cream);
  transition: background var(--t-normal) var(--ease-out);
  text-decoration: none;
}

.insta-banner__link:hover {
  background: rgba(0, 0, 0, 0.12);
}

.insta-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(245, 240, 232, 0.6);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.insta-banner__link:hover .insta-banner__icon {
  border-color: var(--c-gold-light);
  transform: scale(1.08);
}

.insta-banner__icon svg {
  width: 26px;
  height: 26px;
  color: var(--c-cream);
}

.insta-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.insta-banner__label {
  font-family: var(--ff-accent);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--c-cream);
}

.insta-banner__sub {
  font-size: var(--fs-small);
  color: var(--c-green-pale);
  letter-spacing: 0.06em;
  font-weight: 300;
}

.insta-banner__arrow {
  font-size: 1.4rem;
  color: var(--c-gold-light);
  transition: transform var(--t-fast) var(--ease-out);
  margin-left: var(--sp-sm);
}

.insta-banner__link:hover .insta-banner__arrow {
  transform: translateX(6px);
}

/* ---------- News ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast) var(--ease-out);
}

.news-item:hover {
  background: var(--c-cream-dark);
  padding-left: var(--sp-sm);
  padding-right: var(--sp-sm);
  border-radius: var(--r-md);
}

.news-item__date {
  font-family: var(--ff-accent);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.news-item__tag {
  display: inline-block;
  font-size: var(--fs-caption);
  padding: 0.15em 0.6em;
  border-radius: var(--r-full);
  background: var(--c-green-pale);
  color: var(--c-green-deep);
  white-space: nowrap;
}

.news-item__title {
  font-family: var(--ff-serif);
  font-weight: 400;
  flex: 1;
}

.news-item__title:hover {
  color: var(--c-green);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--c-brown-dark);
  color: var(--c-cream);
  padding: var(--sp-xl) 0 var(--sp-lg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer__brand-name {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.08em;
}

.footer__brand-desc {
  font-size: var(--fs-small);
  color: var(--c-brown-light);
  line-height: 1.8;
}

.footer__heading {
  font-family: var(--ff-accent);
  font-size: var(--fs-small);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--c-brown-light);
  transition: color var(--t-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--c-cream);
}

.footer__social {
  display: flex;
  gap: var(--sp-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-brown-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--c-brown-light);
  transition: all var(--t-fast) var(--ease-out);
}

.footer__social-link:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-brown-dark);
}

.footer__bottom {
  border-top: 1px solid rgba(139, 115, 85, 0.3);
  padding-top: var(--sp-md);
  text-align: center;
}

.footer__copyright {
  font-size: var(--fs-caption);
  color: var(--c-brown-light);
  letter-spacing: 0.05em;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--sp-md);
}

.form-label {
  display: block;
  font-family: var(--ff-serif);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-brown-dark);
  margin-bottom: var(--sp-xs);
  letter-spacing: 0.04em;
}

.form-label small {
  color: var(--c-terracotta);
  font-size: var(--fs-caption);
  margin-left: var(--sp-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.9em 1.2em;
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  color: var(--c-text);
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(74, 124, 75, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B5D4F'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

/* ---------- Page Hero (Sub Pages) ---------- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--c-overlay);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--c-cream);
}

.page-hero__en {
  font-family: var(--ff-accent);
  font-size: var(--fs-small);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: var(--sp-xs);
}

.page-hero__title {
  font-size: var(--fs-h1);
  letter-spacing: 0.12em;
}

/* ---------- About Page ---------- */
.timeline {
  position: relative;
  padding-left: var(--sp-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: var(--c-green-pale);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-xl);
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--sp-xl) + 12px);
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-green);
  border: 3px solid var(--c-cream);
  box-shadow: var(--shadow-sm);
}

.timeline__year {
  font-family: var(--ff-accent);
  font-size: var(--fs-h3);
  color: var(--c-gold);
  margin-bottom: var(--sp-xs);
  letter-spacing: 0.1em;
}

.timeline__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-xs);
  color: var(--c-brown-dark);
}

.timeline__desc {
  color: var(--c-text-light);
  font-weight: 300;
  line-height: 1.9;
}

/* Commitment section */
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-lg);
}

.commitment-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal) var(--ease-out);
}

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

.commitment-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-sm);
}

.commitment-card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-sm);
  color: var(--c-brown-dark);
}

.commitment-card__desc {
  font-size: var(--fs-small);
  color: var(--c-text-light);
  line-height: 1.8;
}

/* ---------- Order section ---------- */
.order-section {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-md);
}

.order-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--c-border);
}

.order-item__name {
  font-family: var(--ff-serif);
  font-weight: 500;
}

.order-item__price {
  color: var(--c-terracotta);
  font-weight: 500;
}

.order-item__qty {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.order-item__qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-cream);
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--t-fast) var(--ease-out);
}

.order-item__qty-btn:hover {
  background: var(--c-green-pale);
  border-color: var(--c-green);
}

.order-item__qty-num {
  width: 40px;
  text-align: center;
  font-family: var(--ff-accent);
  font-size: 1.1rem;
}

/* ---------- School Page ---------- */
.curriculum {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.curriculum__item {
  background: var(--c-white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: box-shadow var(--t-fast) var(--ease-out);
}

.curriculum__item:hover {
  box-shadow: var(--shadow-sm);
}

.curriculum__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-md);
  cursor: pointer;
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--c-brown-dark);
}

.curriculum__icon {
  transition: transform var(--t-fast) var(--ease-out);
  font-size: 1.2rem;
  color: var(--c-green);
}

.curriculum__item.active .curriculum__icon {
  transform: rotate(45deg);
}

.curriculum__body {
  padding: 0 var(--sp-md);
  max-height: 0;
  overflow: hidden;
  transition: all var(--t-normal) var(--ease-out);
}

.curriculum__item.active .curriculum__body {
  padding: 0 var(--sp-md) var(--sp-md);
  max-height: 500px;
}

.curriculum__body p {
  color: var(--c-text-light);
  font-size: var(--fs-small);
  line-height: 1.9;
}

/* Testimonial */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-lg);
}

.testimonial-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--ff-accent);
  font-size: 4rem;
  color: var(--c-green-pale);
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-md);
  line-height: 1;
}

.testimonial-card__text {
  font-size: var(--fs-small);
  color: var(--c-text-light);
  line-height: 1.9;
  margin-bottom: var(--sp-md);
  padding-top: var(--sp-lg);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.testimonial-card__name {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--fs-small);
}

.testimonial-card__role {
  font-size: var(--fs-caption);
  color: var(--c-text-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
}

.contact-form {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-md);
}

.contact-info {
  padding: var(--sp-lg) 0;
}

.contact-info__item {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--c-brown-dark);
  margin-bottom: var(--sp-xxs);
}

.contact-info__text {
  font-size: var(--fs-small);
  color: var(--c-text-light);
  line-height: 1.7;
}

/* ---------- map ---------- */
.map-container {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--sp-lg);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .intro {
    gap: var(--sp-lg);
  }
  
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .hero__catchcopy {
    letter-spacing: 0.08em;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .intro__image img {
    height: 300px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-sm);
  }

  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .school-banner {
    min-height: 400px;
  }

  .school-banner__content {
    padding: var(--sp-lg);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

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

  .order-item {
    grid-template-columns: 1fr;
    gap: var(--sp-xs);
  }
  
  .order-item__qty {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .news-item {
    flex-direction: column;
    gap: var(--sp-xs);
  }
}

/* ---------- Toast / Notification ---------- */
.toast {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  background: var(--c-green-deep);
  color: var(--c-cream);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transform: translateY(120%);
  transition: transform var(--t-normal) var(--ease-out);
  font-size: var(--fs-small);
}

.toast.show {
  transform: translateY(0);
}

/* ---------- Loading ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--c-cream);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-slow) var(--ease-out);
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__icon {
  font-size: 2rem;
  animation: pulse 1.5s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}
