/* =========================

   ヘッダー

========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 140px; /* ロゴ・ナビが収まる帯の高さ */
  z-index: 50;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease, background .3s ease, box-shadow .3s ease;
}

/* 左上ロゴ */
.site-header__logo {
  pointer-events: auto;
  position: absolute;
  top: 20px;
  left: 50px;

  /* 長方形領域で描画（丸クロップで見切れていたのを解消・2026-06） */
  width: 150px;
  height: 105px;
  border-radius: 14px;
  overflow: hidden;

  opacity: 0.55;
  transition: opacity .25s ease, transform .25s ease;
}

.site-header__logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 長方形領域に全体を収める（見切れ防止） */
  display: block;
}

/* 右上メニュー */
.site-header__nav {
  pointer-events: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* メニューリンク */
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-family: 'Montserrat', 'Zen Kaku Gothic New', sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
  /* 白文字時の可読性：落ち影（2026-06） */
  text-shadow: 0 2px 10px rgba(176, 72, 28, 0.5), 0 1px 3px rgba(58, 28, 14, 0.4);
  transition: color .25s ease, text-shadow .25s ease;
}

.nav-link:hover {
  color: var(--link-hover, #ff8a4d);
  text-shadow: 0 0 8px rgba(255, 90, 122, 0.4);
}

.site-header.is-hidden {
  transform: translateY(-160px);
  opacity: 0;
}

/* コンテンツ（白背景）上では帯だけにブラーをかける */
.site-header.is-over-content {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px); /* ヘッダー帯のみに適用・弱め */
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-header.is-over-content .nav-link {
  color: #444;
  text-shadow: none;   /* 白帯上では落ち影オフ */
}

.site-header.is-over-content .nav-link:hover {
  color: #e85d1a;
  text-shadow: 0 0 8px rgba(192, 80, 112, 0.3);
}

.site-header.is-over-content .site-header__logo {
  opacity: 0.85;
}

/* =========================

   フッター

========================= */
/* ーーーーーーーーーーーーーー
    フッター全体
ーーーーーーーーーーーーーー*/
/* ーーーーーーーーーーーーーー
    フッター（スリムバー）
ーーーーーーーーーーーーーー*/
.site-footer {
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  font-size: 12px;
}

.footer-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(0, 0, 0, 0.85);
}

@media (max-width: 680px) { /* bp-phone-lg */
  .footer-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 14px;
  }
}










/* =========================

   サイドバー（news,newsdetail共通）

========================= */
.news-main {
  flex: 1;
}

.sidebar {
  width: 260px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-section h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-brand-border);
  color: var(--color-brand-primary);
}

.sidebar-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-section ul li {
  margin: 6px 0;
}

.sidebar-section ul li a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  padding: 4px 0;
  display: inline-block;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.sidebar-section ul li a:hover {
  color: var(--color-brand-primary);
}

/* --------------------------
   検索
-------------------------- */
.news-search-box {
  width: 90%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-brand-border);
  background: var(--color-surface-white);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  margin-top: 8px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.news-search-box:focus { border-color: var(--color-brand-primary); }
.news-search-box::placeholder { color: var(--color-text-disabled); }

/* --------------------------
   タグ
-------------------------- */
.tag-cloud .tag-link {
  display: inline-block;
  background: var(--color-brand-bg);
  color: var(--color-brand-primary);
  padding: 6px 10px;
  margin: 4px;
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.tag-cloud .tag-link:hover {
  background: var(--color-brand-primary);
  color: var(--color-text-inverse);
}

/* --- レイアウト --- */
.layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* =====================================================
   RESPONSIVE — Header / Sidebar
===================================================== */

/* ── タブレット横（1024px）─────────────────────────── */
@media (max-width: 1024px) { /* bp-tablet-landscape */
  .site-header {
    height: 110px;
  }
  .site-header__logo {
    width: 88px;
    height: 88px;
    top: 12px;
    left: 32px;
  }
  .site-header__nav {
    right: 40px;
    gap: 24px;
  }
  .nav-link {
    font-size: 17px;
  }
  .site-header.is-hidden {
    transform: translateY(-130px);
  }
}

/* ── タブレット縦（900px）──────────────────────────── */
@media (max-width: 900px) { /* bp-tablet */
  .site-header {
    height: 90px;
  }
  .site-header__logo {
    width: 72px;
    height: 72px;
    top: 9px;
    left: 20px;
  }
  .site-header__nav {
    right: 24px;
    gap: 18px;
  }
  .nav-link {
    font-size: 15px;
    letter-spacing: 0.04em;
  }
  .site-header.is-hidden {
    transform: translateY(-110px);
  }

  /* ニュース等のサイドバーレイアウト → 1カラム */
  .layout-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ── 大型スマホ（680px）────────────────────────────── */
@media (max-width: 680px) { /* bp-phone-lg */
  .site-header {
    height: 68px;
  }
  .site-header__logo {
    width: 54px;
    height: 54px;
    top: 7px;
    left: 14px;
  }
  .site-header__nav {
    right: 14px;
    gap: 12px;
  }
  .nav-link {
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  .site-header.is-hidden {
    transform: translateY(-90px);
  }
}

/* ── 標準スマホ（520px）────────────────────────────── */
@media (max-width: 520px) { /* bp-phone */
  .site-header {
    height: 60px;
  }
  .site-header__logo {
    width: 46px;
    height: 46px;
    top: 7px;
    left: 10px;
  }
  .site-header__nav {
    right: 10px;
    gap: 8px;
  }
  .nav-link {
    font-size: 11px;
  }
  .site-header.is-hidden {
    transform: translateY(-80px);
  }
}

/* =====================================================
   HAMBURGER MENU — 480px 以下
===================================================== */

/* デフォルトは非表示 */
.site-header__menu-btn {
  display: none;
}

@media (max-width: 480px) { /* bp-phone-sm */

  /* ── ハンバーガーボタン本体 ── */
  .site-header__menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 7px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    z-index: 110;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
  }

  .site-header__menu-btn:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  /* ヘッダーが白帯モードのときはボタンも反転 */
  .site-header.is-over-content .site-header__menu-btn {
    background: rgba(192, 80, 112, 0.08);
    border-color: rgba(192, 80, 112, 0.25);
  }

  /* ── ３本線 ── */
  .menu-btn__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.25s ease;
  }

  .site-header.is-over-content .menu-btn__bar {
    background: #e85d1a;
  }

  /* 開いたとき → × に変形 */
  .site-header.is-menu-open .menu-btn__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.is-menu-open .menu-btn__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .site-header.is-menu-open .menu-btn__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── ナビ：デフォルトは折りたたみ ── */
  .site-header__nav {
    /* 絶対配置→固定に変更してヘッダー下に固定 */
    position: fixed;
    top: 60px;   /* header height (480px = 60px) */
    left: 0;
    right: 0;
    bottom: auto;

    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;

    background: linear-gradient(
      160deg,
      rgba(249, 200, 212, 0.97) 0%,
      rgba(240, 144, 178, 0.97) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(192, 80, 112, 0.2);
    box-shadow: 0 8px 32px rgba(180, 80, 30, 0.18);

    /* アコーディオン開閉 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding    0.3s ease;
    pointer-events: none;
  }

  .site-header.is-menu-open .site-header__nav {
    max-height: 320px;
    padding: 6px 0 16px;
    pointer-events: auto;
  }

  /* ── 各ナビリンク ── */
  .site-header__nav .nav-link {
    display: block;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #a83410;
    text-align: left;
    border-bottom: 1px solid rgba(192, 80, 112, 0.1);
    transition: background 0.15s, color 0.15s;
  }

  /* ✦ デコレーション前置き */
  .site-header__nav .nav-link::before {
    content: "✦ ";
    font-size: 9px;
    opacity: 0.5;
    margin-right: 6px;
  }

  .site-header__nav .nav-link:hover {
    background: rgba(192, 80, 112, 0.08);
    color: #e85d1a;
    text-shadow: none;
  }

  /* auth ボタン用エリア */
  .site-header__nav #header-auth {
    padding: 10px 28px 0;
  }
}
