/* ============================================================
   共通ヘッダー/ナビ CSS（recruit=common.css から抽出）
   全ページで共通利用（各ページCSSの後に読み込んで上書き）
   ============================================================ */

/* --- (A) NAVIGATION --- */
    /* ===== NAVIGATION ===== */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      padding: 20px 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: nowrap;
      white-space: nowrap;
      gap: 12px;
      transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.4s ease;
    }
    nav.scrolled {
      background: rgba(255, 252, 248, 0.96);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow:
        0 1px 0 rgba(160, 120, 80, 0.10),
        0 4px 28px rgba(0, 0, 0, 0.06);
      padding: 13px 36px;
    }

    /* ── ロゴエリア ── */
    .nav-logo {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      text-decoration: none;
      flex-shrink: 0;
    }

    /* いちごSVGアイコン */
    .nav-logo-icon {
      width: 24px;
      height: 26px;
      flex-shrink: 0;
      transition: transform 0.35s ease, filter 0.35s;
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.32)) drop-shadow(0 1px 3px rgba(230,0,51,0.18));
    }
    nav.scrolled .nav-logo-icon {
      filter: drop-shadow(0 1px 4px rgba(230,0,51,0.22));
    }
    .nav-logo:hover .nav-logo-icon {
      transform: scale(1.10) rotate(-4deg);
    }

    /* テキストブロック */
    .nav-logo-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .nav-logo-ja {
      font-family: 'Shippori Mincho', serif;
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      letter-spacing: 0.16em;
      line-height: 1;
      transition: color 0.4s;
      text-shadow:
        0 1px 8px rgba(0,0,0,0.60),
        0 3px 22px rgba(0,0,0,0.38);
    }
    .nav-logo-en {
      font-family: 'Zen Maru Gothic', 'Cormorant Garamond', serif;
      font-size: 9.5px;
      font-weight: 400;
      color: rgba(255,255,255,0.72);
      letter-spacing: 0.28em;
      line-height: 1;
      text-transform: uppercase;
      transition: color 0.4s;
      text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    }
    nav.scrolled .nav-logo-ja {
      color: #2c2016;
      text-shadow: none;
    }
    nav.scrolled .nav-logo-en {
      color: #a08060;
      text-shadow: none;
    }

    /* ── ナビリンク ── */
    .nav-links {
      display: none;
      gap: 36px;
      list-style: none;
      align-items: center;
    }
    @media (min-width: 768px) { .nav-links { display: flex; } }

    .nav-links a {
      font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
      font-size: 13.5px;
      font-weight: 500;
      color: rgba(255,255,255,0.92);
      text-decoration: none;
      letter-spacing: 0.10em;
      position: relative;
      padding-bottom: 4px;
      transition: color 0.3s;
      text-shadow:
        0 1px 5px rgba(0,0,0,0.55),
        0 2px 14px rgba(0,0,0,0.35);
    }
    /* 草の芽のような細いアンダーライン */
    .nav-links a::after {
      content: '';
      position: absolute;
      left: 50%; bottom: 0;
      width: 0; height: 1.5px;
      border-radius: 2px;
      background: rgba(255,255,255,0.75);
      transform: translateX(-50%);
      transition: width 0.32s ease;
    }
    .nav-links a:hover { color: #fff !important; }
    .nav-links a:hover::after { width: 100%; }

    nav.scrolled .nav-links a {
      color: #4a3d2e;
      text-shadow: none;
    }
    nav.scrolled .nav-links a::after {
      background: #7a9e6e;
    }
    nav.scrolled .nav-links a:hover { color: #E60033 !important; }

    /* ── CTAボタン（いちご赤グラデーション） ── */
    .nav-cta {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg,
        rgba(255,107,122,0.22) 0%,
        rgba(230,0,51,0.18)   100%);
      border: 1.2px solid rgba(255,140,155,0.55);
      color: var(--white) !important;
      padding: 9px 22px;
      border-radius: 100px;
      font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-decoration: none;
      text-shadow: 0 1px 4px rgba(0,0,0,0.25);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.20),
        0 2px 12px rgba(230,0,51,0.22);
      transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.2s;
    }
    /* 艶ハイライト（疑似要素で光沢感） */
    .nav-cta::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 50%;
      border-radius: 100px 100px 0 0;
      background: linear-gradient(180deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0)   100%);
      pointer-events: none;
    }
    .nav-cta:hover {
      background: linear-gradient(135deg,
        rgba(255,130,145,0.35) 0%,
        rgba(230,0,51,0.30)   100%);
      border-color: rgba(255,160,170,0.80);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 4px 20px rgba(230,0,51,0.38),
        0 2px 8px  rgba(230,0,51,0.20);
      transform: translateY(-1px);
    }
    /* スクロール後：鮮やかな赤グラデーション */
    nav.scrolled .nav-cta {
      background: linear-gradient(135deg, #FF4D6D 0%, #E60033 60%, #C8002C 100%);
      border-color: #E60033;
      color: var(--white) !important;
      text-shadow: 0 1px 3px rgba(0,0,0,0.18);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        0 3px 16px rgba(230,0,51,0.35),
        0 1px 4px  rgba(230,0,51,0.20);
    }
    nav.scrolled .nav-cta:hover {
      background: linear-gradient(135deg, #FF6B80 0%, #F01040 60%, #D4002E 100%);
      border-color: #FF4D6D;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 5px 24px rgba(230,0,51,0.50),
        0 2px 8px  rgba(230,0,51,0.28);
      transform: translateY(-1px);
    }

    /* ── スマホ対応 ── */
    @media (max-width: 767px) {
      nav        { padding: 16px 20px; }
      nav.scrolled { padding: 11px 20px; }
      .nav-logo-ja { font-size: 18px; }
      .nav-logo-icon { width: 24px; height: 24px; }
    }

    /* ── ヘッダー：狭い幅でも一列に保つ ── */
    .nav-links a,
    .nav-cta,
    .nav-logo,
    .nav-logo-ja,
    .nav-logo-en { white-space: nowrap; }
    .nav-links { flex-wrap: nowrap; }

    /* PC幅でぎりぎりになる前にgapを少し詰める */
    @media (min-width: 768px) and (max-width: 940px) {
      nav         { padding: 18px 20px; gap: 10px; }
      nav.scrolled { padding: 12px 20px; }
      .nav-links  { gap: 22px; }
      .nav-links a { font-size: 12.5px; letter-spacing: 0.06em; }
      .nav-cta    { padding: 8px 16px; font-size: 12px; letter-spacing: 0.04em; }
      .nav-logo-ja { font-size: 17px; letter-spacing: 0.10em; }
      .nav-logo-en { font-size: 8.5px; letter-spacing: 0.22em; }
    }

/* --- (B) ハンバーガー & モバイルメニュー --- */
/* ===========================================================
   ===== ハンバーガーメニュー（スマホ用）===================
   =========================================================== */
.nav-hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: 8px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-hamburger:active { transform: scale(0.96); }

nav.scrolled .nav-hamburger {
  background: rgba(255,255,255,0.85);
  border-color: rgba(160,120,80,0.18);
  box-shadow: 0 1px 8px rgba(60,40,20,0.05);
}

.nav-hamburger-line {
  display: block;
  width: 19px;
  height: 1.4px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1),
              opacity 0.25s ease,
              background 0.4s ease,
              width 0.35s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.nav-hamburger-line:nth-child(2) { width: 15px; }

nav.scrolled .nav-hamburger-line {
  background: #4a3d2e;
  box-shadow: none;
}

.nav-hamburger.is-active .nav-hamburger-line:nth-child(1) {
  transform: translateY(6.4px) rotate(45deg);
}
.nav-hamburger.is-active .nav-hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-active .nav-hamburger-line:nth-child(3) {
  transform: translateY(-6.4px) rotate(-45deg);
  width: 19px;
}

@media (max-width: 767px) {
  .nav-hamburger { display: inline-flex; }
  .nav-cta       { display: none; }
  .nav-links     { display: none !important; }
}

/* ===========================================================
   ===== モバイルメニュー（ドロワー）— 完全クリーン版 ========
   =========================================================== */

/* 背景オーバーレイ */
#mobileMenuBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(30, 20, 10, 0.45);
}
#mobileMenuBackdrop.is-open {
  display: block;
}

/* ドロワー本体 */
#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  z-index: 1200;
  background: #FFFCF8;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#mobileMenu.is-open {
  display: flex;
}

/* ── ヘッダー行（MENU ─ YAMAZAKI FARM ／ ×ボタン） ── */
.mm-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(160,120,80,0.12);
  flex-shrink: 0;
  background: #FFFCF8;
}
.mm-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mm-header-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.30em;
  color: #E60033;
  text-transform: uppercase;
}
.mm-header-line {
  width: 22px;
  height: 1px;
  background: rgba(160,120,80,0.30);
}
.mm-header-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.20em;
  color: #a08060;
}

/* × ボタン */
.mm-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(160,120,80,0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mm-close-btn::before,
.mm-close-btn::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: #4a3d2e;
  border-radius: 2px;
}
.mm-close-btn::before { transform: rotate(45deg); }
.mm-close-btn::after  { transform: rotate(-45deg); }

/* ── メニューリスト ── */
.mm-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.mm-nav-list li {
  border-bottom: 1px solid rgba(160,120,80,0.08);
}
.mm-nav-list li:last-child {
  border-bottom: none;
}
.mm-nav-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  text-decoration: none;
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 500;
  color: #2c2016;
  letter-spacing: 0.08em;
  -webkit-tap-highlight-color: transparent;
}
.mm-nav-list a:active {
  background: rgba(230,0,51,0.04);
  color: #E60033;
}
/* ホームリンク（先頭）は控えめに */
.mm-nav-list li:first-child a {
  font-size: 13px;
  color: #a08060;
  border-bottom: 1px solid rgba(160,120,80,0.12);
}
.mm-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #b89a78;
  flex-shrink: 0;
  min-width: 18px;
}

/* ── 電話番号リンク ── */
.mm-brand-visual {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 14px;
  min-height: 80px;
}
.mm-brand-visual img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.mm-tel-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 20px 0;
  padding: 14px 16px;
  background: rgba(230,0,51,0.05);
  border: 1px solid rgba(230,0,51,0.20);
  border-radius: 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: #E60033;
}
.mm-tel-link svg { flex-shrink: 0; }
.mm-tel-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mm-tel-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  color: #a08060;
  letter-spacing: 0.06em;
}
.mm-tel-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #E60033;
  line-height: 1;
}

/* ── Instagramリンク（下部） ── */
.mm-ig-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 20px 20px;
  padding: 11px 14px;
  border: 1px solid rgba(230,0,51,0.16);
  border-radius: 10px;
  background: rgba(230,0,51,0.03);
  text-decoration: none;
  color: #a08060;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.10em;
  flex-shrink: 0;
}
.mm-ig-link:active {
  background: rgba(230,0,51,0.08);
  color: #E60033;
}

/* スクロールロック */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
body.menu-open #main-nav {
  opacity: 0;
  pointer-events: none;
}

/* --- (C) お問い合わせ（最終項目）ボタン風 --- */
/* ─── ヘッダー：お問い合わせ（最終項目）ボタン風スタイル ─── */
.nav-links li:last-child a {
  background: rgba(230,0,51,0.10);
  color: #E60033 !important;
  border: 1.5px solid rgba(230,0,51,0.35);
  border-radius: 20px;
  padding: 6px 16px !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links li:last-child a::after {
  display: none !important;
}
.nav-links li:last-child a:hover {
  background: #E60033 !important;
  color: #fff !important;
  border-color: #E60033;
}


/* --- (D) 現在地ハイライト（common.css 3016-3017 より） --- */
.is-current { color: var(--red) !important; }
.is-current::after { width: 100% !important; background: var(--red) !important; }

/* --- (E) ヘッダーは全ページ共通の赤テーマに固定（cultivation等の --red 上書き対策） --- */
#main-nav, #mobileMenu { --red: #E60033; }


/* --- (F) 各ページの #main-nav 付きルールに勝つための id 付き上書き（recruit基準値） --- */
#main-nav .nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.10em;
  text-shadow: 0 1px 5px rgba(0,0,0,0.55), 0 2px 14px rgba(0,0,0,0.35);
}
#main-nav .nav-links a::after { background: rgba(255,255,255,0.75); }
#main-nav .nav-links a:hover { color: #fff !important; }
#main-nav.scrolled .nav-links a { color: #4a3d2e; text-shadow: none; }
#main-nav.scrolled .nav-links a::after { background: #7a9e6e; }
#main-nav.scrolled .nav-links a:hover { color: #E60033 !important; }
@media (min-width: 768px) and (max-width: 940px) {
  #main-nav .nav-links a { font-size: 12.5px; letter-spacing: 0.06em; }
}


/* ===========================================================
   ===== ナビゲーション hover/current 色を赤に統一 ==========
   =========================================================== */
.nav-links a:hover,
.nav-links a:focus,
.nav-links a.is-current,
.nav-links a.cur,
.nav-links a.current,
.nav-links a.active,
#main-nav.scrolled .nav-links a:hover,
#main-nav.scrolled .nav-links a:focus,
#main-nav.scrolled .nav-links a.is-current,
#main-nav.scrolled .nav-links a.cur,
#main-nav.scrolled .nav-links a.current,
#main-nav.scrolled .nav-links a.active {
  color: #E60033 !important;
}

.nav-links a::after,
.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.is-current::after,
.nav-links a.cur::after,
.nav-links a.current::after,
.nav-links a.active::after,
#main-nav.scrolled .nav-links a::after,
#main-nav.scrolled .nav-links a:hover::after,
#main-nav.scrolled .nav-links a:focus::after,
#main-nav.scrolled .nav-links a.is-current::after,
#main-nav.scrolled .nav-links a.cur::after,
#main-nav.scrolled .nav-links a.current::after,
#main-nav.scrolled .nav-links a.active::after {
  background: #E60033 !important;
}

.mm-nav-list a:hover,
.mm-nav-list a:focus,
.mm-nav-list a:active,
.mm-nav-list a.mm-current,
.mm-nav-list a.is-current {
  color: #E60033 !important;
  background: rgba(230,0,51,0.05) !important;
}

.mm-nav-list a:hover .mm-n,
.mm-nav-list a:focus .mm-n,
.mm-nav-list a:active .mm-n,
.mm-nav-list a.mm-current .mm-n,
.mm-nav-list a.is-current .mm-n {
  color: #E60033 !important;
}


/* ===========================================================
   ===== お問い合わせナビ hover 視認性修正 =================
   =========================================================== */
/* お問い合わせは赤背景になっても文字が読めるよう白文字にする */
.nav-links a[href="#contact"],
.nav-links a[href="../#contact"],
.nav-links a[href="./#contact"] {
  border-radius: 999px;
  padding: 8px 18px !important;
  border: 1px solid rgba(230, 0, 51, 0.28);
}

.nav-links a[href="#contact"]:hover,
.nav-links a[href="#contact"]:focus,
.nav-links a[href="../#contact"]:hover,
.nav-links a[href="../#contact"]:focus,
.nav-links a[href="./#contact"]:hover,
.nav-links a[href="./#contact"]:focus,
#main-nav.scrolled .nav-links a[href="#contact"]:hover,
#main-nav.scrolled .nav-links a[href="#contact"]:focus,
#main-nav.scrolled .nav-links a[href="../#contact"]:hover,
#main-nav.scrolled .nav-links a[href="../#contact"]:focus,
#main-nav.scrolled .nav-links a[href="./#contact"]:hover,
#main-nav.scrolled .nav-links a[href="./#contact"]:focus {
  color: #ffffff !important;
  background: #E60033 !important;
  border-color: #E60033 !important;
  text-shadow: none !important;
}

.nav-links a[href="#contact"]::after,
.nav-links a[href="../#contact"]::after,
.nav-links a[href="./#contact"]::after {
  display: none !important;
}
