/* ===========================
   いのうえ農園 - メインスタイル
   =========================== */

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

/* CSS Variables */
:root {
  --green-deep:   #2d5a27;
  --green-mid:    #4a7c3f;
  --green-light:  #7aad5a;
  --green-pale:   #e8f0e3;
  --earth-dark:   #5c3d1e;
  --earth-mid:    #8b6040;
  --earth-light:  #c49a6c;
  --earth-pale:   #f5ede0;
  --cream:        #faf7f0;
  --white:        #ffffff;
  --text-dark:    #2c2416;
  --text-mid:     #5a4a35;
  --text-light:   #8a7a65;
  --accent:       #e07b39;
  --accent-light: #f5a96b;

  --font-serif:   'Noto Serif JP', 'Playfair Display', serif;
  --font-sans:    'Noto Sans JP', sans-serif;
  --font-en:      'Playfair Display', serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    32px;
  --shadow-soft:  0 4px 24px rgba(44, 36, 22, 0.10);
  --shadow-card:  0 8px 40px rgba(44, 36, 22, 0.12);
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   HEADER & NAV
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 173, 90, 0.2);
  transition: var(--transition);
}

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

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 11px;
  color: var(--green-mid);
  letter-spacing: 0.08em;
}

.logo-text .ja {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.05em;
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-menu a:hover { color: var(--green-deep); }
.nav-menu a:hover::after { width: calc(100% - 28px); }
.nav-menu a.active { color: var(--green-deep); font-weight: 700; }
.nav-menu a.active::after { width: calc(100% - 28px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.1em;
  padding: 12px 32px;
  border-bottom: 1px solid var(--green-pale);
  width: 260px;
  text-align: center;
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--accent); }

/* ===========================
   PAGE WRAPPER
   =========================== */
.page-content {
  padding-top: 72px;
}

/* ===========================
   SECTION COMMONS
   =========================== */
.section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  color: var(--green-mid);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.9;
}

.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  border-radius: 2px;
  margin: 20px 0 40px;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: white; }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: white;
  letter-spacing: 0.08em;
}

.page-hero .en-title {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  letter-spacing: 0.15em;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--green-deep);
  color: white;
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 90, 39, 0.3);
}

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

.btn-outline:hover {
  background: var(--green-deep);
  color: white;
  transform: translateY(-2px);
}

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

.btn-accent:hover {
  background: #c96a28;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 123, 57, 0.35);
}

/* ===========================
   CARD
   =========================== */
.card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(44, 36, 22, 0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--green-pale);
}

.card-body { padding: 24px; }

.card-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===========================
   GRID
   =========================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--green-deep);
  color: white;
  padding: 64px 24px 32px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 32px;
}

.footer-brand .logo-text .en { color: rgba(255,255,255,0.6); }
.footer-brand .logo-text .ja { color: white; }
.footer-brand .logo-icon { background: rgba(255,255,255,0.15); }

.footer-tagline {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.08em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--green-light); }

.footer-col .info-item {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===========================
   SCROLL ANIMATION
   =========================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .section { padding: 72px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 56px 16px; }
}
