/* =========================================================
   イタガキ家 自然乾燥米 ｜ 共通スタイル
   和モダン・上質感のあるデザイン
   ========================================================= */

:root {
  --cream:      #f7f2e7;   /* 生成りの米色 */
  --cream-2:    #efe7d5;
  --paper:      #fffdf8;
  --ink:        #2b2b26;   /* 墨色 */
  --ink-soft:   #5b574c;
  --green:      #33503f;   /* 深緑（稲葉） */
  --green-2:    #4c6b52;
  --gold:       #b28a2b;   /* 実りの金 */
  --gold-soft:  #d9b968;
  --rust:       #a4512b;   /* SOLD OUT 用 */
  --line:       #e0d6bf;
  --shadow:     0 10px 40px rgba(51, 40, 20, 0.10);
  --shadow-sm:  0 4px 18px rgba(51, 40, 20, 0.08);
  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --sans:  "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

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

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.5; }

.wrap { width: min(1080px, 92vw); margin-inline: auto; }
.narrow { width: min(760px, 92vw); margin-inline: auto; }

.section { padding: 5.5rem 0; }
.section--tint { background: var(--paper); }

/* ---- 見出し装飾 ---- */
.eyebrow {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.25em;
  font-size: .82rem;
  margin: 0 0 .6rem;
  text-transform: uppercase;
}
.sec-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin: 0 0 1.4rem;
  color: var(--green);
}
.sec-title--center { text-align: center; }
.sec-lead {
  max-width: 640px;
  margin: 0 auto 2.6rem;
  text-align: center;
  color: var(--ink-soft);
}

/* =========================================================
   ヘッダー / ナビ
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 231, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { line-height: 1.2; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--green); }
.brand__sub  { font-size: .68rem; letter-spacing: .18em; color: var(--gold); }

.nav__links { display: flex; gap: 1.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .92rem; color: var(--ink-soft); position: relative; padding: .2rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .25s;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--green); }

.nav__cta {
  background: var(--green); color: #fff !important; padding: .5rem 1.1rem;
  border-radius: 999px; font-size: .86rem;
}
.nav__cta:hover { background: var(--gold); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--green); margin: 5px 0; transition: .3s; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav__links.open { max-height: 460px; }
  .nav__links li { border-top: 1px solid var(--line); }
  .nav__links a { display: block; padding: .95rem 6vw; }
  .nav__links .nav__cta { margin: .8rem 6vw; text-align: center; }
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(217,185,104,.28), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  padding: 5rem 0 5.5rem;
}
.hero__copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--green); margin: .4rem 0 1.2rem;
  letter-spacing: .04em;
}
.hero__copy h1 .accent { color: var(--gold); }
.hero__copy p { font-size: 1.05rem; color: var(--ink-soft); max-width: 30em; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0; list-style: none; padding: 0; }
.hero__tags li {
  font-size: .8rem; background: var(--paper); border: 1px solid var(--line);
  padding: .35rem .9rem; border-radius: 999px; color: var(--green);
}
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(51,40,20,.12)); }
.hero__art img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px;
  box-shadow: var(--shadow); display: block;
}

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; padding: 3rem 0 3.5rem; }
  .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* =========================================================
   ボタン
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.8rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: .25s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--gold); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--lg { padding: 1.05rem 2.4rem; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* =========================================================
   こだわりカード
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 2.2rem 1.8rem; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature__icon { width: 62px; height: 62px; margin: 0 auto 1.1rem; color: var(--green); }
.feature h3 { color: var(--green); font-size: 1.2rem; margin: 0 0 .6rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* =========================================================
   商品カード
   ========================================================= */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

.product {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.product__visual {
  aspect-ratio: 4/3; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid var(--line); position: relative;
}
.product__visual svg { width: 44%; color: var(--green-2); opacity: .9; }
.product__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product__name { font-size: 1.25rem; color: var(--green); margin: 0 0 .2rem; }
.product__kind { font-size: .78rem; letter-spacing: .12em; color: var(--gold); margin-bottom: .8rem; }
.product__desc { font-size: .92rem; color: var(--ink-soft); margin: 0 0 1.2rem; flex: 1; }
.price-list { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px dashed var(--line); }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem;
}
.price-list .qty { color: var(--ink-soft); }
.price-list .yen { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.product__note { font-size: .78rem; color: var(--ink-soft); margin: 0; }

.badge-sold {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--rust); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; padding: .35rem .8rem; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(164,81,43,.35);
}
.product.is-sold .product__visual::after {
  content: "SOLD OUT"; position: absolute; inset: 0;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700;
  letter-spacing: .3em; color: rgba(164,81,43,.85); font-size: 1.15rem;
  background: rgba(247,242,231,.55); backdrop-filter: grayscale(.3);
}

/* =========================================================
   受付ステータス帯
   ========================================================= */
.status-band {
  background: linear-gradient(180deg, var(--green) 0%, #2c4536 100%); color: #fff;
  border-radius: 20px; padding: 2.6rem 2rem; text-align: center; box-shadow: var(--shadow);
}
.status-band .pill {
  display: inline-block; background: var(--gold-soft); color: #3a2c05; font-weight: 700;
  letter-spacing: .1em; padding: .4rem 1.1rem; border-radius: 999px; font-size: .82rem; margin-bottom: 1rem;
}
.status-band h2 { color: #fff; margin: 0 0 .6rem; font-size: clamp(1.5rem,3.5vw,2.1rem); }
.status-band p { margin: 0 auto; max-width: 34em; color: rgba(255,255,255,.86); }
.status-band .big-year { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-soft); }

/* =========================================================
   近況（ニュース）
   ========================================================= */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item__meta { display: flex; flex-direction: column; gap: .4rem; }
.news-item__date { font-family: var(--serif); color: var(--green); font-weight: 600; }
.news-item__cat {
  align-self: flex-start; font-size: .72rem; letter-spacing: .08em; color: var(--gold);
  border: 1px solid var(--gold-soft); padding: .12rem .6rem; border-radius: 4px;
}
.news-item__title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin: 0 0 .4rem; }
.news-item__body { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: .5rem; }
  .news-item__meta { flex-direction: row; align-items: center; gap: .8rem; }
}

/* =========================================================
   ストーリー（画像＋テキスト交互）
   ========================================================= */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; margin-bottom: 4rem; }
.story:nth-child(even) .story__media { order: 2; }
.story__media {
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: linear-gradient(135deg,var(--cream),var(--cream-2));
  display: grid; place-items: center; border: 1px solid var(--line);
}
.story__media svg { width: 40%; color: var(--green-2); opacity: .85; }
.story__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story__media { position: relative; }
.story__media .ph-cap {
  position: absolute; bottom: 0; left: 0; right: 0; margin: 0;
  background: linear-gradient(180deg, transparent, rgba(20,16,8,.6));
  color: #fff; font-size: .74rem; padding: 1.4rem .9rem .7rem; text-align: left;
}
.feature .story__media { border-radius: 14px; }
.story h3 { color: var(--green); font-size: 1.5rem; margin: 0 0 .4rem; }
.story .kicker { color: var(--gold); font-family: var(--serif); letter-spacing: .1em; font-size: .82rem; }
.story p { color: var(--ink-soft); }
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; gap: 1.2rem; }
  .story:nth-child(even) .story__media { order: -1; }
}

/* =========================================================
   注文フォーム
   ========================================================= */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 2.6rem clamp(1.4rem, 4vw, 2.8rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--rust); font-size: .78rem; margin-left: .3rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; font-family: var(--sans); font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
  color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--ink-soft); background: var(--cream-2); padding: 1rem 1.2rem; border-radius: 10px; border-left: 3px solid var(--gold); margin-bottom: 1.6rem; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: #2c2a24; color: #d9d2c2; padding: 3.4rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.site-footer a { color: #cdbf9d; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; font-size: .9rem; }
.footer-brand p { font-size: .9rem; color: #b3ab98; max-width: 26em; }
.footer-bottom { text-align: center; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid #45423a; font-size: .8rem; color: #8f887a; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---- utility ---- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
