/* ============================================================
   霧珠ファーム / KISHU FARM  corporate site
   Palette:
     --ink        #182420  green-tinted ink (text)
     --grape      #5C4059  grape purple (primary brand accent)
     --grape-deep #463044  dark grape (footer / hover)
     --moss       #35624D  moss green (land / mist secondary accent)
     --moss-deep  #24513F  dark moss (fog / member-band gradient)
     --fog        #EEF2EF  pale fog white-green (hero fog layer)
     --mist       #F3EEF2  mist grey-purple (section bands)
     --line       #DCE3DD  hairline
   Type:
     display: "Shippori Mincho"  — hero / page-hero h1 のみ（ブランドの一等地に限定、Webフォント）
     body:    システムフォント（Hiragino/Yu Gothic/Meiryo等）— 本文・見出し全般、表示速度優先
     mono:    システムのモノスペース（ui-monospace等）— 数値・日付表現のみ（金額・breadcrumb・time）
   Signature: 亀岡の霧 — fog gradient on hero & mist bands,
              「珠」= pearl-dot eyebrow markers
   ============================================================ */

:root {
  --ink: #182420;
  --ink-soft: #4c5a53;
  --grape: #5c4059;
  --grape-deep: #463044;
  --moss: #35624d;
  --moss-deep: #24513f;
  --fog: #eef2ef;
  --mist: #f3eef2;
  --line: #dce3dd;
  --paper: #ffffff;
  --max: 1120px;
  --radius: 6px;
  --font-display: "Shippori Mincho", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--grape);
  outline-offset: 3px;
}

/* skip link — キーボード操作時のみ表示 */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--grape); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--radius) 0;
  font-size: 13px;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: 0.14em;
}
.brand-en {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; color: var(--ink-soft);
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 13.5px; letter-spacing: 0.06em; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px; background: var(--grape);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-block;
  background: var(--grape); color: #fff;
  padding: 11px 26px; border-radius: var(--radius);
  font-size: 13.5px; letter-spacing: 0.08em;
  border: 1px solid var(--grape);
  transition: background .2s ease;
}
.btn:hover { background: var(--grape-deep); border-color: var(--grape-deep); }
.btn-outline {
  background: transparent; color: var(--grape);
}
.btn-outline:hover { background: var(--grape); color: #fff; }
.btn-grape { background: var(--grape); border-color: var(--grape); }
.btn-grape:hover { background: var(--grape-deep); border-color: var(--grape-deep); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  color: var(--ink); padding: 8px;
}

/* ---------- utility bar (Web/AEO事業者向け導線) ---------- */
.utility-bar { background: var(--mist); border-bottom: 1px solid var(--line); padding: 7px 0; }
.utility-bar .wrap { display: flex; justify-content: flex-end; }
.web-aeo-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; transition: border-color .2s ease, color .2s ease;
}
.web-aeo-pill:hover { border-color: var(--grape); color: var(--grape); }

/* ---------- 準備中プレースホルダー（EC導線） ---------- */
.nav-pending { opacity: .5; cursor: default; pointer-events: none; }

/* ---------- hero (top page) ---------- */
.hero {
  position: relative; min-height: 76vh;
  display: flex; align-items: center;
  background: var(--grape-deep) url("images/hero-mist-vineyard.webp") center 60% / cover no-repeat;
  color: #fff;
}
/* 霧 — the fog layer. Signature element. */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(238,242,239,.55) 78%, var(--fog) 100%),
    linear-gradient(100deg, rgba(36,81,63,.55) 0%, rgba(36,81,63,.15) 55%, rgba(36,81,63,0) 100%);
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 120px 24px 160px; width: 100%; }
.hero .eyebrow { color: #dbe7de; }
.hero .eyebrow::before { background: #dbe7de; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 600; line-height: 1.55; letter-spacing: 0.1em;
  text-shadow: 0 1px 24px rgba(36,81,63,.45);
}
.hero p.lead {
  margin-top: 26px; max-width: 34em;
  font-size: 15px; color: #f2f6f2;
  text-shadow: 0 1px 12px rgba(36,81,63,.5);
}
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
/* 白アウトラインはダーク背景のトップヒーロー内だけに限定（明色背景では通常の緑アウトラインを使う） */
.hero .hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.75); }
.hero .hero-cta .btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* hero直下のベネフィット箇条書き（membership.html） */
.hero-benefits { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.hero-benefits li { font-size: 13px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.hero-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--grape); font-weight: 700; }

/* モバイル用スティッキーCTAバー（membership.html） */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px 20px; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -8px 24px rgba(24,36,32,.1);
}
.sticky-cta p { font-size: 12px; color: var(--ink-soft); }
.sticky-cta .btn { white-space: nowrap; padding: 10px 20px; font-size: 13px; }

/* subpage hero — carries the 霧 signature down to every page */
.page-hero {
  background:
    linear-gradient(100deg, rgba(92, 64, 89, 0.07) 0%, rgba(92, 64, 89, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 60px;
}

/* breadcrumb */
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 22px;
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a:hover { color: var(--grape); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600; letter-spacing: 0.12em; line-height: 1.5;
}
.page-hero p { margin-top: 14px; color: var(--ink-soft); max-width: 40em; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.mist { background: var(--mist); }

/* 珠 — pearl-dot eyebrow */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--grape);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grape); flex: none;
}
h2.title {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; letter-spacing: 0.06em; line-height: 1.5;
}
.section-head { margin-bottom: 52px; }
.section-head p.desc { margin-top: 16px; color: var(--ink-soft); max-width: 42em; }

/* ---------- cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.biz-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.biz-card:hover { box-shadow: 0 14px 34px rgba(24,36,32,.1); transform: translateY(-3px); }
.biz-card .thumb { aspect-ratio: 16 / 9; background: var(--mist); object-fit: cover; width: 100%; height: auto; display: block; }
.biz-card .body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.biz-card .tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--grape); margin-bottom: 10px;
}
.biz-card h3 {
  font-family: var(--font-body); font-size: 19px; font-weight: 700;
  letter-spacing: 0.04em; line-height: 1.6;
}
.biz-card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.biz-card .more {
  margin-top: 18px; font-size: 13px; color: var(--grape); letter-spacing: 0.08em;
}
.biz-card .more::after { content: " →"; }

/* ---------- membership band (top page) ---------- */
.member-band {
  background: linear-gradient(115deg, var(--grape-deep) 0%, var(--moss-deep) 60%, var(--moss) 100%);
  color: #fff; border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr;
}
.member-band .text { padding: 60px 56px; }
.member-band .eyebrow { color: #cfe0d4; }
.member-band .eyebrow::before { background: #cfe0d4; }
.member-band h2 {
  font-family: var(--font-body); font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700; letter-spacing: 0.06em; line-height: 1.6;
}
.member-band p { margin-top: 16px; font-size: 14px; color: #e4ece6; max-width: 32em; }
.member-band .photo { background: url("images/hero-mist-vineyard.webp") center / cover; min-height: 280px; }

/* ---------- tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th { width: 200px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.06em; }

/* ---------- membership page ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px 40px; background: #fff; position: relative;
}
.plan.featured { border: 2px solid var(--grape); }
.plan .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--grape); color: #fff;
  font-size: 11px; letter-spacing: 0.14em; padding: 3px 14px; border-radius: 999px;
}
.plan h3 { font-family: var(--font-body); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; }
.plan .price {
  margin-top: 18px; font-family: var(--font-mono);
  font-size: 30px; letter-spacing: 0.02em;
}
.plan .price small { font-size: 13px; font-family: var(--font-body); color: var(--ink-soft); letter-spacing: 0.06em; }
.plan ul { margin-top: 22px; list-style: none; }
.plan li {
  padding: 10px 0 10px 24px; border-bottom: 1px dashed var(--line);
  font-size: 13.5px; position: relative;
}
.plan li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--grape);
}
.note { font-size: 12px; color: var(--ink-soft); margin-top: 18px; }

/* ---------- membership page: base benefits + growing calendar ---------- */
.base-benefits { margin-bottom: 56px; }
.base-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.base-list li { font-size: 14px; padding-left: 20px; position: relative; }
.base-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--grape);
}
.grow-calendar { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grow-step {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; background: #fff;
}
.grow-step .month { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--grape); }
.grow-step h4 { margin-top: 8px; font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- membership page: tier picker ---------- */
.tier-picker { margin: 56px 0 40px; }
.tier-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier-btn {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px 18px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s ease, background .2s ease;
  font-family: var(--font-body);
}
.tier-btn:hover { border-color: var(--grape); }
.tier-btn.active { border: 2px solid var(--grape); background: var(--mist); }
.tier-name { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.tier-price { font-family: var(--font-mono); font-size: 19px; }
.tier-price small { font-size: 12px; font-family: var(--font-body); color: var(--ink-soft); }

/* ---------- membership page: reward picker ---------- */
.reward-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.count-meter { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--grape); }
.reward-menu { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.reward-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: opacity .2s ease, border-color .2s ease;
}
.reward-item label { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-size: 13.5px; flex-wrap: wrap; }
.reward-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--grape); flex: none; }
.reward-item .note {
  font-size: 11px; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 10px; margin-left: 30px;
}
.reward-item.disabled { opacity: .45; }
.reward-item.disabled label { cursor: not-allowed; }

.flow { counter-reset: step; list-style: none; }
.flow li {
  counter-increment: step; position: relative;
  padding: 0 0 34px 64px; border-left: 1px solid var(--line);
  margin-left: 20px;
}
.flow li:last-child { border-left-color: transparent; padding-bottom: 0; }
.flow li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -21px; top: -2px;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--grape); color: var(--grape);
  font-family: var(--font-mono); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.flow h3 { font-size: 16px; font-weight: 700; letter-spacing: 0.06em; }
.flow p { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 22px 8px; font-weight: 500;
  list-style: none; display: flex; gap: 14px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-mono); color: var(--grape); }
.faq .a { padding: 0 8px 24px 34px; font-size: 14px; color: var(--ink-soft); }

/* ---------- people ---------- */
.person { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.person .face {
  aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; width: 100%;
  background: var(--mist);
}
.face-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--mist) 0%, #e6dce5 100%);
}
.face-placeholder span {
  font-family: var(--font-display); font-size: 64px; color: var(--grape); opacity: .55;
}
.person .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--grape); }
.person h3 { font-family: var(--font-body); font-weight: 700; font-size: 21px; margin-top: 8px; letter-spacing: 0.04em; }
.person p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

/* ---------- contact form ---------- */
.form { max-width: 680px; }
.form .field { margin-bottom: 26px; }
.form label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.06em; }
.form label .req {
  font-size: 10.5px; color: #fff; background: var(--grape);
  border-radius: 3px; padding: 1px 7px; margin-left: 8px; letter-spacing: 0.1em;
}
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form select, .form textarea {
  width: 100%; padding: 13px 14px; font-size: 14px;
  font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--grape); outline-offset: 0; border-color: var(--grape);
}
.form textarea { min-height: 170px; resize: vertical; }

/* ---------- map ---------- */
.map-frame {
  width: 100%; aspect-ratio: 16 / 7; border: 0; border-radius: var(--radius);
  display: block; background: var(--mist);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--mist); border-top: 1px solid var(--line); padding: 88px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-body); font-size: clamp(22px, 2.8vw, 30px); letter-spacing: 0.06em; font-weight: 700; }
.cta-band p { margin-top: 14px; color: var(--ink-soft); }
.cta-band .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--grape-deep); color: #d9e3dc; padding: 72px 0 36px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .brand-name { color: #fff; }
.footer .brand-en { color: #9fb5a8; }
.footer p.addr { margin-top: 18px; font-size: 13px; color: #b7c6bc; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; color: #9fb5a8; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 13.5px; }
.footer .legal {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #9fb5a8;
}
.store-note {
  display: inline-block; font-size: 10.5px; color: #9fb5a8;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 0 8px; margin-left: 8px;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .plan-grid, .footer-grid { grid-template-columns: 1fr; }
  .grow-calendar { grid-template-columns: repeat(2, 1fr); }
  .tier-select, .reward-menu { grid-template-columns: 1fr; }
  .member-band { grid-template-columns: 1fr; }
  .member-band .photo { min-height: 220px; order: -1; }
  .person { grid-template-columns: 1fr; }
  .person .face { max-width: 220px; }
  .section { padding: 68px 0; }

  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .spec-table th { width: 120px; }
  .sticky-cta { display: flex; }
}
