/* ===========================
   CSS変数
=========================== */
:root {
  --color-primary: #2d5a1b;
  --color-primary-dark: #1e3d12;
  --color-primary-light: #4a8c2e;
  --color-accent: #c8a84b;
  --color-accent-dark: #a88a38;
  --color-bg: #f8f5ef;
  --color-bg-gray: #f0ede6;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-border: #e0d8cc;

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

  --container-max: 1100px;
  --container-pad: clamp(1.5rem, 5vw, 3rem);

  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
  --radius: 4px;
}

/* ===========================
   リセット & ベース
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ===========================
   コンテナ
=========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ===========================
   共通ボタン
=========================== */
.btn {
  display: inline-block;
  padding: 0.85em 2.4em;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 168, 75, 0.4);
}

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

/* ===========================
   セクション共通
=========================== */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__en {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.4;
}

.section__line {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 1rem auto 0;
}

.section__line--light {
  background: var(--color-white);
}

.section__desc {
  margin-top: 1.2rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.section__header--light .section__en {
  color: rgba(255, 255, 255, 0.8);
}
.section__header--light .section__title {
  color: var(--color-white);
}

/* ===========================
   ヘッダー
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.1rem var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.logo-jp {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition);
  line-height: 1.1;
}

.logo-en {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.header.scrolled .logo-jp {
  color: var(--color-primary-dark);
}
.header.scrolled .logo-en {
  color: var(--color-text-light);
}

/* ナビゲーション */
.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-accent);
}

.header.scrolled .nav__link {
  color: var(--color-text);
}
.header.scrolled .nav__link:hover {
  color: var(--color-primary);
}

.nav__link--contact {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.45em 1.2em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__link--contact::after {
  display: none;
}
.nav__link--contact:hover {
  background: var(--color-accent-dark) !important;
  transform: translateY(-1px);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header.scrolled .hamburger span {
  background: var(--color-primary-dark);
}

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

/* ===========================
   ヒーロー
=========================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--container-pad);
  max-width: 780px;
}

.hero__sub {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.4rem;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.4s; }
.fade-in:nth-child(2) { animation-delay: 0.7s; }
.fade-in:nth-child(3) { animation-delay: 1.0s; }
.fade-in:nth-child(4) { animation-delay: 1.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロールインジケーター */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  animation: fadeInUp 1s 1.8s both;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.4; }
}

.hero__scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  font-weight: 300;
}

/* ===========================
   田鶴ファームについて
=========================== */
.about__lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.about__text {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-light);
}

.about__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 2.5rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  color: var(--color-primary);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.8rem;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===========================
   商品紹介
=========================== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.3em 0.8em;
  border-radius: 2px;
}

.product-card__badge--green {
  background: var(--color-primary);
}

.product-card__body {
  padding: 1.5rem 1.8rem 2rem;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.7rem;
}

.product-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.85;
}

/* ===========================
   こだわり
=========================== */
.commitment__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.commitment__item:last-child {
  margin-bottom: 0;
}

.commitment__item--reverse {
  direction: rtl;
}
.commitment__item--reverse > * {
  direction: ltr;
}

.commitment__image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.commitment__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.commitment__item:hover .commitment__image img {
  transform: scale(1.04);
}

.commitment__num {
  display: block;
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.commitment__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

/* ===========================
   お知らせ
=========================== */
.news__list {
  max-width: 800px;
  margin: 0 auto;
}

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

.news__item:first-child {
  border-top: 1px solid var(--color-border);
}

.news__link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 0.5rem;
  transition: background var(--transition);
  flex-wrap: wrap;
}

.news__link:hover {
  background: rgba(45, 90, 27, 0.04);
}

.news__date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 80px;
}

.news__cat {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.25em 0.8em;
  border-radius: 2px;
  white-space: nowrap;
}

.news__cat--info {
  background: rgba(45, 90, 27, 0.12);
  color: var(--color-primary);
}
.news__cat--product {
  background: rgba(200, 168, 75, 0.15);
  color: var(--color-accent-dark);
}
.news__cat--event {
  background: rgba(74, 140, 46, 0.12);
  color: var(--color-primary-light);
}

.news__title {
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color var(--transition);
}

.news__link:hover .news__title {
  color: var(--color-primary);
}

/* ===========================
   お問い合わせ
=========================== */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
}

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

.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 50, 10, 0.72);
}

.contact__content {
  position: relative;
  text-align: center;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.contact__text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  margin-bottom: 2.2rem;
  letter-spacing: 0.03em;
}

/* ===========================
   フッター
=========================== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer__top {
  padding: 3.5rem 0 2.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer__logo-jp {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.footer__logo-en {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.footer__address {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}

.footer__nav-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__nav-list li {
  font-size: 0.85rem;
}

.footer__nav-list a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer__nav-list a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ===========================
   スクロールアニメーション
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 900px) {
  .about__features {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .products__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .commitment__item,
  .commitment__item--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

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

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 300px);
    height: 100svh;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    padding: 2rem;
  }

  .nav__link {
    color: var(--color-text) !important;
    font-size: 1rem;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
  }

  .nav__link:hover {
    background: var(--color-bg-gray);
    color: var(--color-primary) !important;
  }

  .nav__link--contact {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* オーバーレイ */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 98;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .news__link {
    gap: 0.7rem;
  }

  .news__date {
    min-width: auto;
  }
}
