/* ========== SHARED HEADER ========== */
#site-header { position: sticky; top: 0; z-index: 100; }
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 10px 12px 10px 8px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.header-inner > a:first-child { position: relative; z-index: 201; }
.logo-img { height: 120px; width: auto; margin: -28px 0 -44px 0; }
.current-page-badge { display: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font-size: 12px; font-weight: 600; color: #333; transition: all 0.2s; padding: 6px 7px; border-radius: 6px; white-space: nowrap; text-decoration: none; }
.nav a:hover { background: #FFF8DC; color: #333; }
.nav a.nav-active { background: #FFD700; color: #333; font-weight: 700; }
.header-cta { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.btn-line, .btn-entry { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; padding: 10px 14px; min-width: 150px; border-radius: 50px; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease; box-shadow: 3px 3px 0 rgba(0,0,0,0.15), 4px 4px 8px rgba(0,0,0,0.12); text-decoration: none; border: 2px solid #fff; }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { box-shadow: 1px 1px 0 rgba(0,0,0,0.15), 2px 2px 4px rgba(0,0,0,0.12); transform: translate(2px, 2px); }
.btn-entry { background: #FFD700; color: #fff; }
.btn-entry:hover { box-shadow: 1px 1px 0 rgba(0,0,0,0.15), 2px 2px 4px rgba(0,0,0,0.12); transform: translate(2px, 2px); }

/* Campaign Bar */
.campaign-bar { background: #e53e3e; color: #fff; text-align: center; padding: 10px 20px; font-size: 14px; font-weight: 700; }
.campaign-bar a { color: #fff; text-decoration: underline; margin-left: 8px; }
.campaign-bar .campaign-text { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; }
.campaign-bar .campaign-copy,
.campaign-bar .campaign-link { white-space: nowrap; }
.campaign-bar .hl { background: #fff; color: #e53e3e; padding: 2px 10px; border-radius: 4px; margin: 0 6px; font-weight: 900; }
.campaign-bar .spark { animation: spark-glow 1.5s ease-in-out infinite alternate; display: inline-block; }
.sp-only { display: none; }
@keyframes spark-glow { 0% { filter: brightness(1); transform: scale(1); } 100% { filter: brightness(1.6) drop-shadow(0 0 6px rgba(255,224,130,0.9)); transform: scale(1.15); } }

/* Hamburger（× へアニメーション変形） */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; width: 40px; height: 40px; position: relative; z-index: 200; }
.hamburger span {
  display: block; position: absolute; left: 8px; right: 8px; height: 2px; background: #333; border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease 0.3s, opacity 0.2s ease;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.active span:nth-child(1) { top: 19px; transform: rotate(45deg); transition: top 0.3s ease, transform 0.3s ease 0.3s; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); transition: top 0.3s ease, transform 0.3s ease 0.3s; }

/* PC: メニュー内×・CTAは非表示 */
.nav-close { display: none; }
.nav-cta-area { display: none; }

/* ========== SHARED FOOTER ========== */
.footer { background: #333; color: #ccc; padding: 48px 20px 24px; box-shadow: 0 50vh 0 50vh #333; }
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { display: inline-flex; align-items: center; width: 172px; max-width: 100%; margin-bottom: 14px; }
.footer-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.2)); }
.footer-desc { font-size: 13px; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 13px; color: #aaa; transition: color 0.2s; text-decoration: none; }
.footer ul a:hover { color: #FFD700; }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; font-size: 12px; text-align: center; color: #888; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  /* ヘッダー固定（キャンペーンバーごと） */
  #site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 100;
  }
  /* body padding-topはJSで動的設定 */
  .header-inner { padding: 10px 20px; }

  /* ロゴ少し左に */
  .logo-img { height: 88px; margin: -16px 0 -28px -6px; }

  /* ヘッダーCTAはスマホでは非表示（メニュー内にあるため） */
  .header-cta { display: none; }

  /* ハンバーガー表示 */
  .hamburger { display: flex; }

  /* 現在のページ名バッジ（SPのみ） */
  .current-page-badge:not(:empty) {
    display: inline-block;
    background: #FFD700;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    margin-left: 2px;
    z-index: 201;
    position: relative;
  }

  /* ========== スマホメニュー ========== */
  .nav {
    display: none;
    position: fixed;
    top: 120px; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    gap: 0;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { display: flex; }

  /* SP: メニュー内×は非表示（ハンバーガー自身が×に変形するため） */
  .nav-close { display: none; }

  /* メニューリンク */
  .nav a {
    font-size: 14px;
    font-weight: 600;
    padding: 14px 24px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
  }
  .nav a::after {
    content: "\203A";
    font-size: 22px;
    color: #ccc;
    font-weight: 300;
    margin-left: 8px;
    flex-shrink: 0;
  }
  .nav a:active { background: #f5f5f5; }
  .nav a:hover { background: transparent; }
  .nav a:first-of-type { margin-top: 0; }

  /* メニュー内CTAボタン（ページ内ボタンと同じデザイン） */
  .nav-cta-area {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    margin: 16px 16px 24px;
    padding-top: 14px;
    border-top: 2px solid #f0f0f0;
    width: auto;
  }
  .nav-cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 4px;
    font-size: 13px !important;
    font-weight: 700;
    padding: 14px 8px !important;
    border-radius: 999px !important;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    min-height: 52px;
    border: 2px solid #fff !important;
    flex: 1;
    min-width: 0;
    max-width: none;
    width: auto;
    white-space: nowrap !important;
    box-shadow:
      3px 3px 0 rgba(0,0,0,0.15),
      4px 4px 8px rgba(0,0,0,0.15),
      inset 0 1px 0 rgba(255,255,255,0.35);
    position: relative;
  }
  .nav-cta-btn:active {
    transform: translate(2px, 2px);
    box-shadow:
      1px 1px 0 rgba(0,0,0,0.15),
      2px 2px 4px rgba(0,0,0,0.15),
      inset 0 1px 0 rgba(255,255,255,0.35);
  }
  .nav-cta-btn::after { display: none !important; }
  .nav-cta-line {
    background: #06C755;
    color: #fff !important;
  }
  .nav-cta-entry {
    background: #FFD700;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  }

  /* キャンペーンバー（1行表示） */
  .campaign-bar { font-size: 10px; padding: 6px 8px; line-height: 1.4; white-space: nowrap; overflow: visible; }
  .campaign-bar .campaign-text { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
  .campaign-bar .campaign-copy { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .campaign-bar .hl { display: inline-block; flex: 0 0 auto; margin: 0; padding: 1px 6px; font-size: 10px; }
  .campaign-bar a { flex: 0 0 auto; margin-left: 0; font-size: 10px; }
  .campaign-bar .spark { font-size: 11px; }
  .sp-only { display: inline; }

  /* フッター */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
