/*
Theme Name: NADA
Theme URI: 
Author: 
Author URI: 
Description: 農業生産法人 株式会社NADA オリジナルテーマ
Version: 1.0
Text Domain: nada
*/

  :root {
    /* ==== カラー：ここを差し替えるだけで全体に反映されます ==== */
    --color-bg: #f7f5ee;
    --color-bg-card: #ffffff;
    --color-text: #2b2b26;
    --color-text-sub: #5c5a4f;
    --color-green: rgb(79, 95, 58);
    --color-green-dark: rgb(79, 95, 58); /* サイト内の「緑」はすべてこの色に統一 */
    --color-orange: #e0913f;
    --color-line: #e2ddcc;

    /* ==== フォント ==== */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    /* ==== レイアウト・角丸：微調整用 ==== */
    --container-width: 1120px;
    --radius-card: 4px;
    --radius-btn: 999px; /* 角丸ボタンの丸み。四角に近づけたい場合は 4px などに変更 */
    --gap-features: 28px; /* 上段カードの間隔（PC） */
    --gap-links: 20px;    /* 下段カードの間隔（PC） */
  }

/*ダークモード回避のためコメントアウト*/
 /* @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --color-bg: #1c1b17;
      --color-bg-card: #262420;
      --color-text: #ece9df;
      --color-text-sub: #b8b5a8;
      --color-line: #3a382f;
    }
  }
  :root[data-theme="dark"] {
    --color-bg: #1c1b17;
    --color-bg-card: #262420;
    --color-text: #ece9df;
    --color-text-sub: #b8b5a8;
    --color-line: #3a382f;
  }
*/
  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
  }

  /* ============================================
     メインビジュアル（動画＋静止画2枚）
     ・PC：動画16:9 / SP：動画9:16（縦動画）
     ・3要素の間隔・外周はすべて5pxで統一
     ・角丸・コピーのフォントサイズは --radius-hero / --hero-copy-size で一括調整
  ============================================ */
  :root {
    --radius-hero: 10px;
    --hero-copy-size: clamp(24px, 2.4vw, 38px); /* 動画コピー・静止画コピー共通 */
    --hero-gap: 5px; /* 3要素の間隔・外周の余白 */
  }

  .hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--hero-gap);
    padding: var(--hero-gap);
  }

  .hero__main {
    position: relative;
    aspect-ratio: 16 / 9; /* PC：動画は16:9 */
    overflow: hidden;
    border-radius: var(--radius-hero);
    background: #1b241a; /* 動画読み込み前の背景色 */
  }

  .hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,24,14,0.45) 0%, rgba(20,24,14,0.05) 55%, rgba(20,24,14,0) 100%);
    pointer-events: none;
  }

  .hero__copy {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
  }

  .hero__copy-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: var(--hero-copy-size);
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  }

  /* 静止画2枚：PCでは縦に並び、動画と高さを揃える（grid行の高さは動画のaspect-ratioに追従） */
  .hero__side {
    display: flex;
    flex-direction: column;
    gap: var(--hero-gap);
    height: 100%;
  }

  .hero__side-item {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border-radius: var(--radius-hero);
  }

  .hero__side-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 横長で用意した写真をPC/SPそれぞれの枠に合わせてトリミング表示 */
    display: block;
  }

  .hero__side-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15,20,10,0.28);
    transition: background 0.2s ease;
  }

  .hero__side-item:hover::after {
    background: rgba(15,20,10,0.42);
  }

  /* 静止画コピー：PCは縦書き。1枚目＝左揃え／2枚目＝右揃え */
  .hero__side-label {
    position: absolute;
    top: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
    font-family: var(--font-serif);
    font-size: var(--hero-copy-size);
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .hero__side-item--a .hero__side-label {
    left: 20px;
  }

  .hero__side-item--b .hero__side-label {
    right: 20px;
  }

  /* ===== SP（〜768px） ===== */
  @media (max-width: 768px) {
    :root {
      --hero-copy-size: clamp(20px, 5.6vw, 26px);
    }

    .hero {
      grid-template-columns: 1fr;
    }

    .hero__main {
      aspect-ratio: 9 / 16; /* SP：動画は9:16（縦動画） */
    }

    .hero__side {
      flex-direction: row;
    }

    .hero__side-item {
      aspect-ratio: 1 / 1; /* 静止画の比率は仮。指定があれば変更してください */
      flex: 1;
    }

    /* 静止画コピー：SPは横書き。1枚目＝上揃え／2枚目＝下揃え */
    .hero__side-label {
      writing-mode: horizontal-tb;
      text-orientation: initial;
      top: auto;
      bottom: auto;
      left: 16px;
      right: 16px;
    }

    .hero__side-item--a .hero__side-label {
      top: 16px;
      left: 16px;
      right: 16px;
    }

    .hero__side-item--b .hero__side-label {
      bottom: 16px;
      left: 16px;
      right: 16px;
    }
  }

  /* ============================================
     約束／出会い セクション（写真＋中央寄せボタンのみのシンプル構成）
     幅：スマホ100% / PCはmax-width 1000pxで中央寄せ
  ============================================ */
  .simple-section {
    padding: 56px 20px;
  }

  .simple-section__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .simple-section__photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
  }

.simple-section__inner picture {
  display: block;
  width: 100%;
}

  /* このセクションのボタンだけ少し大きめに（「ナダオレンジとは？」のボタンはそのまま） */
  .simple-section .about-nada__btn {
    font-size: 14px;
    padding: 13px 32px;
  }

  @media (max-width: 768px) {
    .simple-section {
      padding: 40px 16px;
    }

    .simple-section__inner {
      gap: 18px;
    }
  }

  .about-nada {
    padding: 72px 20px 88px;
  }

  .about-nada__inner {
    max-width: var(--container-width);
    margin: 0 auto;
  }

  .about-nada__header {
    text-align: center;
    margin-bottom: 56px;
  }

  .about-nada__eyebrow {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--color-green);
    margin-bottom: 12px;
  }

  .about-nada__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(26px, 4vw, 34px);
    margin: 0 0 14px;
    color: var(--color-text);
  }

  .about-nada__lead {
    font-size: 15px;
    color: var(--color-text-sub);
    margin: 0;
  }

  /* ============================================
     共通：角丸罫線ボタン「詳しく見る」
     上段・下段どちらの詳しく見るボタンもこのクラスを使う
  ============================================ */
  .about-nada__btn {
    display: inline-block;
    font-size: 12.5px;
    line-height: 1;
    color: var(--color-green);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--color-green);
    border-radius: var(--radius-btn);
    padding: 9px 22px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .about-nada__link-card:hover .about-nada__btn,
  .about-nada__feature .about-nada__btn:hover {
    background: var(--color-green);
    color: #fff;
  }

  /* ============================================
     上段：特徴カード（4項目）
  ============================================ */
  .about-nada__features {
    list-style: none;
    margin: 0 0 72px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-features);
  }

  .about-nada__feature {
    background: var(--color-bg-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    padding: 32px 22px 28px;
    text-align: center;
  }

  .about-nada__feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: var(--color-orange);
  }

  .about-nada__feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .about-nada__feature-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px;
  }

  .about-nada__feature-text {
    font-size: 13.5px;
    color: var(--color-text-sub);
    margin: 0 0 20px;
    text-align: left;
  }

  /* ============================================
     下段：関連ページリンク（4枚・写真＋説明＋ボタン）
  ============================================ */
  .about-nada__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap-links);
  }

  .about-nada__link-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
  }

  .about-nada__link-photo {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, var(--color-green) 0%, #7d9160 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    flex: none;
overflow: hidden; /* 角丸で画像をクリップ */
  }

.about-nada__link-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 4:3の枠に合わせてトリミング */
}

  .about-nada__link-body {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .about-nada__link-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
  }

  .about-nada__link-text {
    font-size: 12.5px;
    color: var(--color-text-sub);
    margin: 0 0 16px;
    flex: 1;
  }

  .about-nada__link-body .about-nada__btn {
    align-self: flex-start;
  }

  /* ===== SP（〜768px） ===== */
  @media (max-width: 768px) {
    .about-nada { padding: 56px 16px 64px; }
    .about-nada__header { margin-bottom: 36px; }

    /* 上段：横並びリスト表示に切り替え */
    .about-nada__features {
      grid-template-columns: 1fr;
      gap: 0;
      margin-bottom: 44px;
    }

    .about-nada__feature {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      text-align: left;
      border: none;
      border-bottom: 1px solid var(--color-line);
      border-radius: 0;
      padding: 22px 4px;
    }

    .about-nada__feature-icon {
      flex: none;
      width: 40px;
      height: 40px;
      margin: 2px 0 0;
    }

    .about-nada__feature-body { flex: 1; }

    .about-nada__feature-title { margin-bottom: 8px; }
    .about-nada__feature-text { margin-bottom: 12px; }

    /* 下段：写真＋説明＋ボタンの横並びカード */
    .about-nada__links {
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .about-nada__link-card {
      flex-direction: row;
      align-items: flex-start;
      gap: 14px;
    }

    .about-nada__link-photo {
      width: 96px;
      margin-bottom: 0;
    }

    .about-nada__link-text {
      margin-bottom: 12px;
    }

    .about-nada__btn {
      padding: 7px 18px;
      font-size: 11.5px;
    }
  }

  /* ============================================
     ONLINE STORE（ベーシックな実装でOK）
  ============================================ */
  .store {
    padding: 56px 20px;
    background: #efe9da;
  }

  .store__inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
  }

  .store__title {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(26px, 4vw, 34px); /* 「ナダオレンジとは？」の見出しと同じサイズ */
    letter-spacing: 0.1em;
    margin: 0 0 32px;
    color: var(--color-green-dark);
  }

  .store__grid {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .store__item {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .store__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-card);
    display: block;
    margin-bottom: 8px;
    background: #fff;
  }

  .store__name {
    font-size: 14px; /* 元12pxの120%程度 */
    color: var(--color-green-dark);
  }

  /* ボタンは約束/出会いセクションと同じ大きめサイズに揃える */
  .store .about-nada__btn {
    font-size: 14px;
    padding: 13px 32px;
  }

  @media (max-width: 768px) {
    .store {
      padding: 40px 16px;
    }

    .store__grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .store__name {
      font-size: 13px; /* 元11pxの120%程度 */
    }
  }

  /* ============================================
     ヘッダー
     ・ロゴ／電話／カート／ハンバーガーメニュー（開閉）
     ・ナビ項目はul/liの単純なリストなので追加・削除が容易
  ============================================ */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
  }

  .site-header__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    min-width: 0;
  }

  .site-header__logo {
    display: block;
    flex: none;
  }

  .site-header__logo img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .site-header__tagline {
    font-size: 12px;
    color: rgb(79, 95, 58);
    line-height: 1.4;
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .site-header__icon-btn,
  .site-header__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-green-dark);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .site-header__icon-btn svg,
  .site-header__menu-btn svg {
    width: 22px;
    height: 22px;
  }

  /* ハンバーガー/クローズアイコンの出し分け */
  .site-header__menu-btn .icon-close {
    display: none;
  }

  .site-header__menu-btn[aria-expanded="true"] .icon-burger {
    display: none;
  }

  .site-header__menu-btn[aria-expanded="true"] .icon-close {
    display: block;
  }

  /* ドロップダウン式ナビ（開閉） */
  .site-nav {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.25s ease;
  }

  /*.site-nav.is-open {
    max-height: 480px; /* リスト項目数が増えても収まる余裕を持たせた値。増える場合は調整 */
  /*}*/
	.site-nav.is-open {
	  max-height: calc(100dvh - 64px);
	  overflow-y: auto;
	}
  .site-nav__list {
    list-style: none;
    margin: 0;
    /*padding: 8px 20px 16px;*/
	  padding: 20px 20px;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
  }

  .site-nav__list li {
    border-bottom: 1px solid rgba(79, 95, 58, 0.5); /* --color-greenの50%透過 */
  }

  .site-nav__list li:last-child {
    border-bottom: none;
  }

  .site-nav__list a {
    display: block;
    /*padding: 14px 4px;*/
	  padding: 12px 4px;
    font-size: 14px;
    color: rgb(79, 95, 58);
    text-decoration: none;
  }

  .site-nav__list a:hover {
    color: var(--color-green);
  }

  @media (max-width: 768px) {
    .site-header__inner {
      height: 56px;
      padding: 0 16px;
    }

    .site-header__logo img {
      width: 26px;
      height: 26px;
    }

    .site-header__tagline {
      font-size: 9px;
    }
	  
	  .site-nav.is-open {
  max-height: calc(100dvh - 56px);
}
  }

  /* ============================================
     フッター
  ============================================ */
  .site-footer__top {
    padding: 56px 20px 40px;
    text-align: center;
  }

  .site-footer__logo img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 14px;
  }

  .site-footer__tagline {
    font-size: 12px;
    color: rgb(79, 95, 58);
    margin: 0 0 20px;
  }

  .site-footer__sns {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
  }

  .site-footer__sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgb(79, 95, 58);
  }

  .site-footer__sns svg {
    width: 18px;
    height: 18px;
  }

  .site-footer__bottom {
    background: rgb(79, 95, 58);
    color: rgba(255, 255, 255, 0.9);
    padding: 32px 20px;
    text-align: center;
  }

  .site-footer__bottom-inner {
    max-width: var(--container-width);
    margin: 0 auto;
  }

  .site-footer__company {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
  }

  .site-footer__address,
  .site-footer__tel {
    font-size: 12px;
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.8);
  }

  .site-footer__links {
    list-style: none;
    margin: 10px 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 20px;
  }

  .site-footer__links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
  }

  .site-footer__links a:hover {
    text-decoration: underline;
  }

  .site-footer__copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
  }

  @media (max-width: 768px) {
    .site-footer__top {
      padding: 40px 16px 32px;
    }

    .site-footer__links {
      flex-direction: column;
      gap: 5px;
      margin: 9px 0 18px;
    }
  }

 /* ==========================================
   NADA Radar Lightbox
========================================== */

/* 拡大対象画像 */
.radar__zoom {
  display: block;
  cursor: zoom-in;
}

.radar__zoom img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 比較画像の注釈 */
.compare__note {
  margin: 10px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #777;
  text-align: center;
}

@media (max-width: 768px) {
  .compare__note {
    margin-top: 8px;
    font-size: 11px;
  }
}

#about03 .radar__zoom {
  display: block;
  width: 100%;
}

#about03 .radar__chart {
  display: block;
  width: 100%;
  max-width: 650px;
  height: auto;
}

/* ライトボックス背景 */
#nada-radar-lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.8) !important;
}

/* 非表示 */
#nada-radar-lightbox[hidden] {
  display: none !important;
}

/* 拡大画像 */
#nada-radar-lightbox .nada-radar-image {
  display: block !important;
  max-width: 90vw !important;
  max-height: 80dvh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: auto !important;
}

/* 閉じるボタン */
#nada-radar-lightbox .nada-radar-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

/* NADA HERO VIDEO REVEAL */
.hero__main {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero__main.is-video-ready {
  opacity: 1;
}
