/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #faf4f0;
  --pink-light: #f5e8e4;
  --pink-mid:   #e8cfc8;
  --rose:       #b87060;
  --rose-dark:  #8a4e40;
  --gold:       #c9962a;
  --gold-dark:  #a07520;
  --brown:      #3d2618;
  --text:       #4a3328;
  --text-muted: #8a6a60;
  --white:      #ffffff;
  --border:     #e8d4cc;
  --font:       'Shippori Mincho', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: auto;
  border-radius: 4px;
}

.site-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  transition: color 0.4s ease;
}

.header.scrolled .site-title {
  color: var(--brown);
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  gap: 36px;
}

.nav a {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.18em;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s ease;
}

.header.scrolled .nav a {
  color: var(--text);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rose);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover { color: var(--white); }
.header.scrolled .nav a:hover { color: var(--rose); }
.nav a:hover::after { transform: scaleX(1); }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: 0.3s;
}

.header.scrolled .hamburger span {
  background: var(--brown);
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.slide.active { opacity: 1; }

.slide--contain {
  object-fit: contain;
  object-position: right center;
  background: var(--cream);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 22%),
    linear-gradient(
      130deg,
      rgba(8,18,9,0.80) 0%,
      rgba(8,18,9,0.45) 55%,
      rgba(8,18,9,0.18) 100%
    );
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 660px;
}

.hero-eyebrow {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #c9962a;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-title-en {
  display: block;
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: clamp(68px, 11vw, 128px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease 0.4s, transform 0.9s ease 0.4s;
}

.hero-title-ja {
  display: block;
  font-size: clamp(16px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.hero-desc {
  font-size: clamp(13px, 1.8vw, 16px);
  color: rgba(255,255,255,0.68);
  line-height: 2.1;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.75s, transform 0.8s ease 0.75s;
}

.hero-cta {
  display: inline-block;
  padding: 14px 38px;
  border: 1px solid #c9962a;
  color: #e2b84a;
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  background: transparent;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s, background 0.3s, color 0.3s;
}

.hero-cta:hover {
  background: #c9962a;
  color: #0f1c10;
}

.hero-content.visible .hero-eyebrow,
.hero-content.visible .hero-title-en,
.hero-content.visible .hero-title-ja,
.hero-content.visible .hero-desc,
.hero-content.visible .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 36px;
  right: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(201,150,42,0.6), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1) translateY(0); }
  50%       { opacity: 1;    transform: scaleY(0.55) translateY(12px); }
}

/* スライダードット */
.slider-dots {
  position: absolute;
  z-index: 3;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.dot.active {
  background: #c9962a;
  width: 42px;
}

/* ===== 農園紹介 ===== */
.about-intro {
  background: var(--white);
  padding: 72px 28px;
}

.about-intro-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-intro-text {
  flex: 1;
}

.about-intro-text h2 {
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-intro-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 2.1;
}

.about-intro-photos {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.about-intro-photos img {
  width: 130px;
  height: 190px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(60,20,10,0.10);
}

/* ===== セクション見出し共通 ===== */
.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.1em;
}

.section-heading span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 6px;
}

/* ===== 商品一覧 ===== */
.products {
  padding: 80px 28px;
  background: var(--cream);
}

.product-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(60,20,10,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(60,20,10,0.13);
}

.product-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}


.product-card:hover .product-img img {
  transform: scale(1.05);
}

/* 画像読み込み失敗時 */
.product-img.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img.no-img img { display: none; }

.product-img.no-img::after {
  content: '写真準備中';
  font-size: 13px;
  color: var(--text-muted);
}

/* Coming soon カード */
.product-img--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0e8e4;
}

.product-img--soon span {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.product-body {
  padding: 18px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.product-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.btn-order {
  display: inline-block;
  margin-top: 16px;
  align-self: center;
  padding: 8px 22px;
  background: var(--gold);
  color: var(--white);
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}

.btn-order:hover { background: var(--gold-dark); }

.btn-order--disabled {
  background: #ccc;
  cursor: default;
}
.btn-order--disabled:hover { background: #ccc; }

/* ===== 商品サイズ・価格 ===== */
.product-sizes {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 38px;
  flex-shrink: 0;
}

.size-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  flex: 1;
}

.size-price--undecided {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-order--sm {
  margin-top: 0;
  padding: 6px 12px;
  font-size: 11px;
  flex-shrink: 0;
}

/* ===== おじさん / 農園 紹介 ===== */
.about {
  background: var(--white);
  padding: 80px 28px;
}

.about-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.h2-with-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-logo {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.about-block h2 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pink-mid);
  margin-bottom: 24px;
}

/* おじさん写真プレースホルダー */
.uncle-photo {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.uncle-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.uncle-text h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 6px;
  margin-top: 20px;
}

.uncle-text h3:first-child { margin-top: 0; }

.uncle-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2;
}

/* 農園写真グリッド */
.farm-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.farm-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}

.farm-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2.1;
}

/* ===== お問い合わせ ===== */
.contact {
  padding: 80px 28px;
  background: var(--cream);
}

.contact-lead {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.contact-form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 14px;
  font-weight: 700;
  color: var(--brown);
}

.req {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,150,42,0.15);
}

.form-row textarea { resize: vertical; }

.btn-submit {
  align-self: center;
  padding: 14px 52px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

/* ===== フッター ===== */
.footer {
  background: #111111;
  border-top: 2px solid var(--gold);
  padding: 56px 28px 32px;
  color: rgba(255,255,255,0.9);
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white);
}

.footer-logo {
  width: 44px;
  height: auto;
  opacity: 0.85;
  border-radius: 4px;
}

.footer-name-en {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white);
}

.footer-name-ja {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.sep { opacity: 0.3; }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.footer-sns {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}

.sns-link {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.sns-link:hover { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-legal-link {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-legal-link:hover { color: var(--white); }

.copyright {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
}

/* ===== スクロール フェードイン ===== */
.js-fade {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== イラスト ふわっと出てくる ===== */
.js-pop {
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.js-pop.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ===== ヘッダーロゴテキスト ===== */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-en {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #111111;
  transition: color 0.4s ease;
}

.header:not(.scrolled) .logo-en {
  color: var(--white);
}

.logo-ja {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #c9962a;
  margin-top: 2px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 860px) {
  .about-intro-inner { flex-direction: column; gap: 36px; }
  .about-intro-photos { justify-content: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: block;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 28px 28px;
  }
  .nav.open ul { flex-direction: column; gap: 22px; }
  .hamburger { display: flex; }

  .hero { height: 90vh; }
  .hero-content { left: 6%; right: 6%; }
  .hero-scroll { display: none; }

  .product-grid { grid-template-columns: 1fr; }
  .about-intro-photos img { width: 130px; height: 175px; }
}
