/* ============================================================
   きまぐれ廣川農園 — デザインシステム
   A2 ナチュラル・手仕事 × B2 タイポ＋抽象 × C1 きまぐれ
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Klee+One:wght@400;600&display=swap');

:root {
  /* --- 色：紙・墨・土＋季節アクセント --- */
  --paper:        oklch(0.953 0.018 84);   /* 生成りの紙 */
  --paper-2:      oklch(0.928 0.022 80);   /* 一段沈んだ紙（カード） */
  --paper-edge:   oklch(0.885 0.026 78);   /* 紙の縁・罫 */
  --ink:          oklch(0.275 0.012 60);   /* 墨（本文） */
  --ink-soft:     oklch(0.435 0.016 58);   /* 薄墨（補足） */
  --soil:         oklch(0.470 0.046 56);   /* 土ブラウン */
  --leaf:         oklch(0.520 0.052 128);  /* 茶葉のオリーブ緑 */
  --leaf-deep:    oklch(0.420 0.050 132);  /* 深い葉 */
  --gold:         oklch(0.730 0.118 76);   /* 湘南ゴールド */
  --persimmon:    oklch(0.625 0.130 46);   /* 朱・柿（きまぐれの差し色） */

  /* --- 役割 --- */
  --bg:           var(--paper);
  --fg:           var(--ink);
  --muted:        var(--ink-soft);
  --accent:       var(--leaf-deep);
  --accent-2:     var(--gold);

  /* --- 型 --- */
  --serif:  'Shippori Mincho', serif;
  --sans:   'Zen Kaku Gothic New', system-ui, sans-serif;
  --hand:   'Klee One', 'Shippori Mincho', cursive;

  /* --- リズム --- */
  --maxw: 430px;
  --pad: 22px;
  --r: 4px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 紙の繊維テクスチャ（控えめ） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* 画面はモバイル幅の紙面 */
.sheet {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background:
    linear-gradient(var(--paper), var(--paper));
  box-shadow: 0 0 0 1px var(--paper-edge), 0 24px 60px -30px oklch(0.3 0.03 60 / 0.4);
}

/* ============================================================
   ヘッダー（案B：屋号＋ドロワー）
   モバイル＝ハンバーガーで開閉 ／ デスクトップ＝インライン展開
   メニューが増えても破綻しない構造
   ============================================================ */
.mhead {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--pad);
  background: color-mix(in oklab, var(--paper) 93%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-edge);
}
.mhead__id { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.mhead__mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--leaf-deep); color: var(--paper);
  display: grid; place-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
}
.mhead__txt { line-height: 1.18; }
.mhead__txt b { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; display: block; }
.mhead__txt span { font-family: var(--hand); font-size: 11px; color: var(--soil); letter-spacing: 0.02em; }

.menu-btn {
  margin-left: auto; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--paper-edge); border-radius: 12px; background: var(--paper);
  display: grid; place-content: center; gap: 4px; cursor: pointer; padding: 0;
}
.menu-btn i { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ドロワー（モバイル） */
.mhead__nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-edge);
  box-shadow: 0 26px 44px -30px oklch(0.3 0.03 60 / 0.55);
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.mhead.is-open .mhead__nav { max-height: 75vh; }
.mhead__nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 var(--pad);
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  color: var(--ink); text-decoration: none;
  border-top: 1px solid var(--paper-edge);
}
.mhead__nav a::after { content: "→"; color: var(--paper-edge); font-size: 16px; }
.mhead__nav a[aria-current="page"] { color: var(--leaf-deep); }
.mhead__nav a[aria-current="page"]::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-deep);
}

/* ============================================================
   見出し・テキスト
   ============================================================ */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.32; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--leaf-deep); }

.eyebrow {
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--leaf-deep);
}

.section { padding: 40px var(--pad); position: relative; }
.section + .section { border-top: 1px dashed var(--paper-edge); }

.lede { font-size: 16.5px; line-height: 1.95; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.7; }

/* 手書き風の見出しタグ */
.hand-tag {
  font-family: var(--hand);
  display: inline-block;
  color: var(--persimmon);
  transform: rotate(-2deg);
}

/* ============================================================
   ボタン・導線
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--leaf-deep); color: var(--paper); }
.btn--primary:hover { background: oklch(0.46 0.055 132); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--soil); }
.btn--ghost:hover { background: oklch(0.47 0.046 56 / 0.08); }
.btn--block { display: flex; width: 100%; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.arrow-link .arrow { color: var(--gold); transition: transform .15s ease; }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   画像プレースホルダ（実写真は後で差し替え）
   ============================================================ */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg,
      oklch(0.470 0.046 56 / 0.10) 0 8px,
      oklch(0.470 0.046 56 / 0.04) 8px 16px);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r);
  color: var(--soil);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 10px;
}

/* ============================================================
   フッター
   ============================================================ */
.foot {
  position: relative;
  background: var(--paper-2);
  border-top: 2px solid var(--soil);
  padding: 36px var(--pad) 30px;
}
.foot__brand { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; }
.foot__links { display: flex; flex-direction: column; gap: 2px; margin: 18px 0; }
.foot__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-edge);
  font-weight: 500;
}
.foot__links a .arrow { color: var(--gold); }
.foot__meta { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-top: 12px; }

/* フォーカス（アクセシビリティ） */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============================================================
   デスクトップ：モバイルと同じシステムを横幅に展開
   （1枚の大きな紙面として中央に置く）
   ============================================================ */
@media (min-width: 768px) {
  :root { --pad: 72px; }
  body {
    padding: 0;
    background: var(--paper);
  }
  .sheet {
    max-width: 1200px;
    min-height: 0;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  /* ヘッダー：デスクトップはインライン展開（ハンバーガー非表示） */
  .mhead { padding: 18px var(--pad); }
  .mhead__mark { width: 44px; height: 44px; font-size: 22px; }
  .mhead__txt b { font-size: 21px; }
  .mhead__txt span { font-size: 12px; }
  .menu-btn { display: none; }
  .mhead__nav {
    position: static; max-height: none; overflow: visible;
    margin-left: auto; display: flex; gap: 30px;
    background: none; border: 0; box-shadow: none;
  }
  .mhead__nav a {
    min-height: auto; padding: 6px 2px; border-top: 0;
    font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink-soft);
    position: relative;
  }
  .mhead__nav a::after { content: none; }
  .mhead__nav a:hover { color: var(--ink); }
  .mhead__nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .mhead__nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; width: auto; background: var(--leaf-deep); border-radius: 2px;
  }

  /* セクションの余白を広げ、本文は読みやすい行長に */
  .section { padding: 72px var(--pad); }
  .lede, .story p, .page-head .sub, .reassure { max-width: 64ch; }

  /* フッター：2カラム */
  .foot {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 60px;
    padding: 60px var(--pad) 48px;
  }
  .foot__brand { grid-column: 1; font-size: 22px; }
  .foot__links { grid-column: 2; grid-row: 1 / span 2; margin: 0; min-width: 300px; align-self: start; }
  .foot__meta { grid-column: 1; margin-top: 18px; }

}
