/* =========================================================
   大勝農園 トップページ
   ========================================================= */

:root {
  --color-text: #33302b;
  --color-sub: #6f6a62;
  --color-line: #e4ddd0;
  --color-bg: #fbf8f2;
  --color-tint: #f3ede2;
  --color-mikan: #e5701c;
  --color-mikan-deep: #c4561a;
  --color-leaf: #4d7a3a;
  --color-stone: #3a3832;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gutter: 16px;
  --max: 1120px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
main [id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

/* 日本語を文節で改行し、最後の行に1〜2文字だけ残らないようにする */
p, li, figcaption, .link-card-text, .link-card-name {
  word-break: auto-phrase;
  text-wrap: pretty;
}
h1, h2, h3 {
  word-break: auto-phrase;
  text-wrap: balance;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 上部のお知らせ ---------- */
.notice-bar {
  background: #fff4d6;
  color: #7a5a00;
  font-size: 12px;
  text-align: center;
  padding: 6px var(--gutter);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark { width: 52px; height: 52px; flex: none; }
.site-footer .logo-mark { width: 84px; height: 84px; }

.logo-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }

.logo-name {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .14em;
  color: var(--color-stone);
}

.logo-sub {
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--color-sub);
}

.logo--light .logo-name { color: #fff; }
.logo--light .logo-sub { color: rgba(255, 255, 255, .7); }

.global-nav ul { display: flex; gap: clamp(14px, 2.2vw, 28px); }

.global-nav a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.global-nav a:hover { color: var(--color-mikan-deep); border-color: var(--color-mikan); }

.global-nav .nav-lang { align-self: center; }
.global-nav .nav-lang a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border: 1px solid var(--color-leaf);
  border-radius: 999px;
  color: var(--color-leaf);
  line-height: 1.5;
  transition: background .2s, color .2s;
}
.global-nav .nav-lang a:hover { background: var(--color-leaf); color: #fff; }
.nav-lang-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--color-stone);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    display: none;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .global-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
  .global-nav .nav-lang { align-self: flex-start; margin-top: 14px; }
  .global-nav .nav-lang a { padding: 6px 16px; }
}

/* ---------- 見出しまわり ---------- */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-mikan-deep);
  margin-bottom: 10px;
}

.section-label--light { color: #f6b27a; }

.section-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--color-stone);
}

.section-title--light { color: #fff; }

/* ---------- メインビジュアル（スライダー） ---------- */
.hero { background: var(--color-stone); }

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0; /* 中身の大きさでスライド幅が広がらないようにする */
  scroll-snap-align: start;
  min-height: min(78vh, 720px);
  display: flex;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

@media (max-width: 600px) {
  .hero-img { object-position: var(--pos-sp, var(--pos, 50% 50%)); }
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 14, 0) 35%, rgba(20, 18, 14, .55) 100%),
              linear-gradient(0deg, rgba(20, 18, 14, .45) 0%, rgba(20, 18, 14, 0) 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
}

.hero-copy {
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: clamp(26px, min(5.4vw, 6vh), 52px);
  line-height: 1.6;
  letter-spacing: .16em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.hero-copy span { display: block; }
.hero-copy span + span { margin-top: 1.6em; }

.hero-lead {
  align-self: flex-start;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 500;
  line-height: 1.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}

/* 果汁のスライドは明るい背景にボトルを切り取らずに置く */
.hero-slide--juice {
  background:
    radial-gradient(circle at 30% 45%, rgba(236, 122, 34, .22), rgba(236, 122, 34, 0) 55%),
    var(--color-tint);
}
.hero-slide--juice::after { display: none; }
.hero-slide--juice .hero-inner {
  z-index: auto; /* 重なりを切り離さず、写真の白地を背景と合成できるようにする */
  color: var(--color-stone);
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 7vw, 120px);
}
/* ボトルと説明文をひとまとめにして、説明文をボトルの真下にそろえる */
.hero-bottle {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-bottle img {
  height: min(58vh, 540px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* 写真の白地を背景になじませる */
}
.hero-bottle .hero-lead {
  align-self: center;
  margin-top: 16px;
  text-align: center;
}
.hero-slide--juice .hero-copy,
.hero-slide--juice .hero-lead { text-shadow: none; }
.hero-slide--juice .hero-copy span:first-child { color: var(--color-mikan-deep); }

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px var(--gutter);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.hero-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}
.hero-arrow:hover { border-color: var(--color-mikan); color: var(--color-mikan-deep); }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-line);
  cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: var(--color-mikan); }

/* ---------- 農園の想い ---------- */
.story { padding: 96px 0 88px; }

.story-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .story-grid { grid-template-columns: 400px 1fr; gap: 64px; }
}

.story-photo { margin-top: 32px; }

.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: 8px;
}

.story-body p + p { margin-top: 1.4em; }

.story-body {
  font-size: 16px;
  line-height: 2.1;
}

.story-body a {
  color: var(--color-mikan-deep);
  border-bottom: 1px solid currentColor;
}

.story-sign {
  margin-top: 2.2em !important;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.8;
}

.story-sign span { font-family: var(--font-ja); font-weight: 400; font-size: 13px; color: var(--color-sub); }

.history {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 24px;
}

.history li {
  padding: 24px 20px 4px 0;
  position: relative;
  border-top: 1px solid var(--color-line);
}

.history li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-mikan);
}

.history-year {
  display: block;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 26px;
  color: var(--color-mikan-deep);
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.history p { font-size: 14px; color: var(--color-sub); line-height: 1.8; }

.history .link-card-soon { display: inline-block; margin-top: 8px; }

/* ---------- 石積みの段々畑 ---------- */
.terrace {
  position: relative;
  background: var(--color-stone);
  color: rgba(255, 255, 255, .88);
  display: grid;
}

.terrace-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.terrace-text {
  padding: 56px var(--gutter) 64px;
  max-width: 620px;
}

.terrace-text p:not(.section-label) { margin-top: 1.3em; }
.terrace-text .section-title { margin-bottom: .4em; }

@media (min-width: 860px) {
  .terrace { grid-template-columns: 1fr 1fr; }
  .terrace-photo img { min-height: 480px; }
  .terrace-text { padding: 88px 64px; align-self: center; }
}

/* ---------- みかん果汁「礎」 ---------- */
.ishizue {
  padding: 96px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(236, 122, 34, .12), rgba(236, 122, 34, 0) 45%),
    var(--color-tint);
}

.ishizue-head { max-width: 720px; }

.ishizue-lead { margin-top: 20px; color: var(--color-sub); }

.ishizue-grid {
  margin-top: 48px;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .ishizue-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; }
}

.ishizue-photo {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  justify-content: center;
}

.ishizue-photo img { max-height: 520px; width: auto; }

.points { display: grid; gap: 28px; }

.points li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-line);
}

.points li:last-child { border-bottom: 0; padding-bottom: 0; }

.point-num {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-mikan);
  color: #fff;
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 24px;
  display: grid;
  place-items: center;
}

.points h3 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-stone);
  margin-bottom: 6px;
}

.points p { color: var(--color-sub); }

.ishizue-note {
  margin-top: 48px;
  font-size: 13px;
  color: var(--color-sub);
}

/* ---------- 畑の一年 ---------- */
.year { padding: 96px 0; }

/* 縦長と横長の写真を同じ高さで並べる（列の比率 = 3/4 : 4/3） */
.year-photos {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 9fr 16fr;
  gap: 12px;
}
.year-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.year-photos img:last-child { aspect-ratio: 4 / 3; height: auto; }

.year-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.year-list li {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 28px 24px;
}

.year-season {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 30px;
  color: var(--color-leaf);
  margin-right: 10px;
}

.year-list li:last-child .year-season { color: var(--color-mikan-deep); }

.year-month { font-size: 13px; color: var(--color-sub); }

.year-list h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}

.year-list p { margin-top: 4px; font-size: 14px; color: var(--color-sub); line-height: 1.8; }

/* ---------- 関連サイト ---------- */
.links {
  padding: 96px 0 104px;
  background: var(--color-tint);
}

.links-lead { margin-top: 12px; color: var(--color-sub); }

.link-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  padding: 28px 26px 24px;
  border-top: 4px solid var(--color-stone);
  transition: transform .2s, box-shadow .2s;
}

.link-card--cheerel { border-top-color: #3e6f5e; }
.link-card--daiwa { border-top-color: #182a88; }

.link-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(58, 56, 50, .1); }

.link-card-label { font-size: 12px; color: var(--color-sub); letter-spacing: .1em; }

.link-card-name {
  margin-top: 4px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 21px;
  color: var(--color-stone);
}

.link-card-logo {
  display: block;
  height: auto;
  margin-top: 14px;
  overflow: visible;
}
.link-card-logo--daiwa { width: 170px; }
.link-card-name--sub { margin-top: 10px; font-size: 17px; }
.link-card-logo--cheerel { width: 176px; }

.link-card-text { margin-top: 12px; font-size: 14px; color: var(--color-sub); line-height: 1.8; flex: 1; }

.link-card-more {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-mikan-deep);
}

.link-card-more::after { content: " →"; }

/* 準備中のカード（リンクなし） */
.link-card--soon { border-top-color: var(--color-mikan); }
.link-card--soon:hover { transform: none; box-shadow: none; }
.link-card-soon {
  align-self: flex-start;
  margin-top: 20px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--color-tint);
  color: var(--color-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-stone);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  gap: 40px;
}

@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
}

.footer-info { margin-top: 20px; line-height: 2; }
.footer-info a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .5); }

.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer-nav li { padding: 4px 0; }
.footer-nav a:hover { color: #fff; }

.copyright {
  text-align: center;
  font-size: 12px;
  padding: 18px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- 英語版（/en/） ---------- */
html[lang="en"] body { letter-spacing: .01em; line-height: 1.75; }
html[lang="en"] .logo-name { font-size: 20px; letter-spacing: .03em; }
html[lang="en"] .logo-sub { letter-spacing: .02em; }
html[lang="en"] .section-title { letter-spacing: .01em; line-height: 1.3; }
html[lang="en"] .section-label { letter-spacing: .18em; }
html[lang="en"] .link-card-label,
html[lang="en"] .link-card-soon { letter-spacing: .03em; }
html[lang="en"] .story-body { line-height: 1.85; }
html[lang="en"] .year-season { display: block; margin-right: 0; font-size: 24px; line-height: 1.4; }

/* 英語は横書きにする */
html[lang="en"] .hero-copy {
  writing-mode: horizontal-tb;
  max-width: 100%;
  text-align: right;
  font-size: clamp(30px, min(5vw, 7vh), 54px);
  line-height: 1.25;
  letter-spacing: .01em;
}
html[lang="en"] .hero-copy span + span { margin-top: .1em; }
html[lang="en"] .hero-lead { line-height: 1.6; }
html[lang="en"] .hero-slide--juice .hero-copy { flex: 0 1 auto; text-align: left; font-size: clamp(30px, min(4.4vw, 7vh), 50px); }
html[lang="en"] .hero-bottle { flex: 0 1 300px; }

@media (max-width: 600px) {
  html[lang="en"] .hero-slide--juice .hero-inner { flex-direction: column; gap: 20px; }
  html[lang="en"] .hero-bottle { flex: none; }
  html[lang="en"] .hero-slide--juice .hero-copy { text-align: center; font-size: clamp(24px, 7.4vw, 30px); }
  html[lang="en"] .hero-bottle img { height: min(38vh, 320px); }
}

/* ---------- ふわっと表示 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
