/* ========== 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 20px; display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 120px; width: auto; margin: -28px 0 -44px 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: 12px; font-weight: 600; color: #333; transition: all 0.2s; padding: 6px 8px; 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: 8px; 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 20px; min-width: 140px; border-radius: 50px; white-space: nowrap; transition: all 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.15); text-decoration: none; }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #05a648; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.btn-entry { background: #FFD700; color: #333; }
.btn-entry:hover { background: #e6c200; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* 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 .hl { background: #fff; color: #e53e3e; padding: 2px 10px; border-radius: 4px; margin: 0 6px; font-weight: 900; }
.campaign-bar .sakura { animation: sakura-glow 1.5s ease-in-out infinite alternate; display: inline-block; }
.sp-only { display: none; }
@keyframes sakura-glow { 0% { filter: brightness(1); transform: scale(1); } 100% { filter: brightness(1.6) drop-shadow(0 0 6px rgba(255,182,193,0.9)); transform: scale(1.15); } }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; z-index: 200; }
.hamburger span { display: block; width: 24px; height: 2px; background: #333; border-radius: 2px; }

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

/* ========== SHARED FOOTER ========== */
.footer { background: #333; color: #ccc; padding: 48px 20px 24px; }
.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 { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.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で動的設定 */

  /* ロゴ少し左に */
  .logo-img { height: 70px; margin: -12px 0 -20px -6px; }

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

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

  /* ========== スマホメニュー ========== */
  .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; }

  /* メニュー内 ×閉じるボタン */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #fafafa;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 100%;
    height: 48px;
    padding: 0 20px;
    flex-shrink: 0;
  }
  .nav-close:active { background: #f0f0f0; }

  /* メニューリンク */
  .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: "›";
    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: column;
    gap: 10px;
    margin: 16px 24px 24px;
    padding-top: 14px;
    border-top: 2px solid #f0f0f0;
    width: auto;
  }
  .nav-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 700;
    padding: 14px 24px !important;
    border-radius: 50px;
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s;
    min-height: 48px;
  }
  .nav-cta-btn::after { display: none !important; }
  .nav-cta-line {
    background: #06C755;
    color: #fff !important;
  }
  .nav-cta-entry {
    background: #FFD700;
    color: #333 !important;
  }

  /* キャンペーンバー */
  .campaign-bar { font-size: 12px; padding: 8px 12px; line-height: 1.8; }
  .campaign-bar .hl { display: inline-block; margin: 2px 4px; }
  .sp-only { display: inline; }

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