/* 色はすべて公式ロゴ（#006934 / #00913a / #82b328）から */
:root {
  --field: #0B3D24;     /* 上部の地：ロゴの深緑を暗くしたもの */
  --deep: #006934;      /* ロゴの深緑：見出し・リンク */
  --leaf: #00913A;      /* ロゴの緑：ボタン */
  --sprout: #82B328;    /* ロゴの黄緑：畝の線・在庫あり */
  --paper: #F6F7F3;     /* 地 */
  --card: #FFFFFF;
  --ink: #1C2620;       /* 本文 */
  --sub: #5E685F;       /* 補足 */
  --rule: #DCE1D6;
  --amber: #8F6414;     /* 在庫わずか */
  --ash: #7A807A;       /* 在庫なし */

  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.8 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
:focus-visible { outline: 2px solid var(--sprout); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.35; margin: 0; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 上部 ---------- */
.hero { position: relative; background: var(--field); color: #EEF3EA; padding-bottom: 88px; overflow: hidden; }
.hero--photo {
  background: linear-gradient(180deg, rgba(11, 61, 36, .88), rgba(11, 61, 36, .72) 60%, rgba(11, 61, 36, .95)), url("/assets/img/hero.jpg") center / cover, var(--field);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.logo img { width: 150px; }
.logo--en img { width: 132px; }
.footer__logo { width: 120px; }
.footer__logo--en { width: 104px; }
.topbar__links { display: flex; align-items: center; gap: 22px; font-size: .875rem; }
.topbar__links a { color: #EEF3EA; text-decoration: none; }
.topbar__links a:hover { color: var(--sprout); }
.switch { border: 1px solid rgba(238, 243, 234, .5); border-radius: 999px; padding: 2px 14px; }

.hero__body { max-width: 720px; padding-block: 56px 16px; }
.eyebrow { margin: 0 0 18px; font-size: .8125rem; letter-spacing: .12em; color: var(--sprout); font-weight: 500; }
.hero h1 { font-size: clamp(1.875rem, 4.2vw, 2.875rem); font-weight: 500; letter-spacing: .02em; color: #fff; }
.hero__lead { margin: 22px 0 0; max-width: 600px; color: #D5E0D2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: .9375rem; padding: 12px 22px; border-radius: 4px; }
.btn--leaf { background: var(--sprout); color: var(--field); }
.btn--leaf:hover { background: #95C63A; }
.btn--line { color: #EEF3EA; border: 1px solid rgba(238, 243, 234, .45); }
.btn--line:hover { border-color: var(--sprout); color: var(--sprout); }

/* ---------- 画像 ---------- */
.figure { margin: 0; position: relative; }
.figure img { width: 100%; border-radius: 6px; object-fit: cover; background: #E5EBDF; }
.figure figcaption, .product__photo figcaption {
  position: absolute; right: 8px; bottom: 8px;
  font-size: .6875rem; line-height: 1.4; color: #fff; background: rgba(28, 38, 32, .6); border-radius: 3px; padding: 2px 7px;
}
.figure--about { margin-top: 32px; }
.figure--about img { aspect-ratio: 4 / 5; max-height: 460px; }
.figure--factory img { aspect-ratio: 3 / 2; }

/* ---------- 大橋製茶について ---------- */
.about { padding-block: 88px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; }
.about h2 { font-size: 1.75rem; color: var(--deep); }
.story { margin: 20px 0 0; font-size: 1.0625rem; line-height: 2; }
.points { margin: 0; display: grid; gap: 26px; align-content: start; }
.point { border-left: 3px solid var(--sprout); padding-left: 18px; }
.point dt { font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--deep); }
.point dd { margin: 4px 0 0; color: var(--sub); font-size: .9375rem; line-height: 1.85; }

.history { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 40px; }
.history h3 { font-size: 1.25rem; color: var(--deep); margin-bottom: 18px; }
.history ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.history li { position: relative; padding-top: 22px; font-size: .875rem; line-height: 1.7; color: var(--sub); }
.history li::before { content: ""; position: absolute; top: 6px; left: 0; right: -20px; height: 1px; background: var(--rule); }
.history li::after { content: ""; position: absolute; top: 2px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--sprout); }
.history li:last-child::before { right: 0; }
.history time { display: block; font-family: var(--mono); font-size: 1rem; color: var(--ink); margin-bottom: 2px; }

/* ---------- お茶づくり ---------- */
.section-lead { margin: 14px 0 0; max-width: 640px; color: var(--sub); }
.process { background: #FFFFFF; padding-block: 80px; }
.process h2, .partners h2 { font-size: 1.75rem; color: var(--deep); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { border-top: 2px solid var(--sprout); padding-top: 16px; }
.steps__no { font-family: var(--mono); font-size: .8125rem; color: var(--leaf); }
.steps h3 { font-size: 1.1875rem; color: var(--ink); margin: 4px 0 8px; }
.steps p { margin: 0; font-size: .9375rem; line-height: 1.85; color: var(--sub); }

.safety { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.safety h3 { font-size: 1.375rem; color: var(--deep); }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 26px; font-size: .9375rem; line-height: 1.8; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }

/* ---------- 法人・海外のお客様へ ---------- */
.partners { padding-block: 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 64px; align-items: start; }
.partners .btn { margin-top: 10px; }
.btn--deep { background: var(--deep); color: #fff; }
.btn--deep:hover { background: var(--leaf); }
.offer { margin: 0; display: grid; gap: 22px; }
.offer dt { font-size: .8125rem; color: var(--sub); margin-bottom: 8px; }
.offer dd { margin: 0; font-family: var(--display); font-size: 1.125rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--body); font-size: .875rem; font-weight: 500; color: var(--deep); background: #E5EED7; border-radius: 999px; padding: 4px 14px; }

/* ---------- 卸価格 ---------- */
.prices { background: #EEF1E8; padding-block: 72px 80px; }
.prices__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.prices__head h2 { font-size: 1.75rem; color: var(--deep); }
.prices__head p { margin: 0; color: var(--sub); font-size: .9375rem; }
.updated { font-family: var(--mono); font-size: .8125rem; margin-left: 14px; }

.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.product {
  background: var(--card); border-radius: 6px; padding: 26px 30px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 44px; align-items: start;
  box-shadow: 0 1px 0 var(--rule);
}
.product--photo { grid-template-columns: 128px minmax(0, 1fr) auto; }
.product__photo { margin: 0; position: relative; }
.product__photo img { width: 128px; height: 128px; object-fit: cover; border-radius: 4px; background: #E5EBDF; }
.product__photo figcaption { right: 4px; bottom: 4px; font-size: .625rem; padding: 1px 5px; }
.product__name { font-size: 1.375rem; color: var(--ink); }
.product__desc { margin: 8px 0 0; font-size: .9375rem; color: var(--ink); }
.product__note { margin: 8px 0 0; font-size: .8125rem; color: var(--sub); }
.uses { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.uses li { font-size: .75rem; font-weight: 500; color: var(--deep); background: #E5EED7; border-radius: 999px; padding: 2px 10px; }

.product__buy { grid-column: -2 / -1; grid-row: 1; }
.product__spec {
  grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 24px;
}
.product__spec div { font-size: .875rem; line-height: 1.6; }
.product__spec dt { color: var(--sub); font-size: .75rem; }
.product__spec dd { margin: 2px 0 0; }

.product__buy { text-align: right; min-width: 150px; }
.price { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 1.625rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.ask { font-family: var(--body); font-size: .875rem; font-weight: 700; color: var(--deep); }
.product--out .product__name, .product--out .price { color: var(--ash); }

/* 在庫：茶缶の中身の量 */
.stock { margin: 10px 0 0; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.tin { position: relative; display: inline-block; vertical-align: -3px; width: 13px; height: 17px; margin-right: 8px; border: 1.5px solid currentColor; border-radius: 2px 2px 3px 3px; }
.tin::before { content: ""; position: absolute; left: -3.5px; right: -3.5px; top: -5.5px; height: 3px; background: currentColor; border-radius: 1.5px; }
.tin__fill { position: absolute; left: 1.5px; right: 1.5px; bottom: 1.5px; border-radius: 1px; background: var(--sprout); }
.stock--full { color: var(--deep); }
.stock--full .tin__fill { top: 1.5px; }
.stock--low { color: var(--amber); }
.stock--low .tin__fill { height: 4px; background: currentColor; }
.stock--empty { color: var(--ash); }
.stock--empty .tin__fill { display: none; }

.empty { background: var(--card); border-radius: 6px; padding: 32px; margin: 0; color: var(--sub); }
.pricenote { margin: 18px 2px 0; font-size: .875rem; color: var(--sub); }

/* ---------- お問い合わせ ---------- */
.contact { padding-block: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.contact h2 { font-size: 1.5rem; color: var(--deep); }
.contact p { margin: 12px 0 0; }
.contact__mail { font-family: var(--mono); font-size: 1.0625rem; }
.contact__mail a { text-underline-offset: 5px; }
.profile { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.profile div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .875rem; }
.profile dt { color: var(--sub); }
.profile dd { margin: 0; }
.profile dd.num { font-family: var(--mono); font-size: .8125rem; }

.footer { border-top: 1px solid var(--rule); padding-block: 28px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer small { color: var(--sub); }

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar__links { gap: 14px; }
  .topbar__links a:not(.switch) { display: none; }
  .logo img { width: 124px; }
  .logo--en img { width: 112px; }
  .hero { padding-bottom: 60px; }
  .hero__body { padding-top: 32px; }

  .about { grid-template-columns: 1fr; padding-block: 56px 48px; gap: 36px; }
  .history ol { grid-template-columns: 1fr; gap: 0; }
  .history li { padding: 0 0 18px 26px; }
  .history li::before { top: 8px; bottom: -8px; left: 4px; right: auto; width: 1px; height: auto; }
  .history li:last-child::before { display: none; }
  .history li::after { top: 6px; }

  .process, .partners { padding-block: 56px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .safety { grid-template-columns: 1fr; margin-top: 44px; }
  .partners { grid-template-columns: 1fr; }
  .prices { padding-block: 52px 56px; }
  .updated { display: block; margin: 2px 0 0; }
  .product { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 20px; gap: 14px 20px; }
  .product__main { grid-column: 1 / -1; }
  .product__buy { grid-column: 1 / -1; grid-row: auto; order: 1; text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .product__buy .stock { margin: 0; }
  .product__spec { grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
  .product--photo { grid-template-columns: minmax(0, 1fr) auto; }
  .product__photo { grid-column: 1 / -1; }
  .product__photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .figure--about img { aspect-ratio: 16 / 10; max-height: none; }
  .product__buy { min-width: 0; }

  .contact { grid-template-columns: 1fr; padding-block: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
