/* ============================================================
   旭区ファンフェスタ2026 — music.css
   音楽の祭日ページ（saijitu相当）
   ============================================================
   【PDF縦横比の設定】
   --pdf-ratio を変更するだけでPC・スマホ両方に適用されます
     A4縦（標準チラシ）: 210 / 297
     A4横:              297 / 210
     B5縦:              182 / 257
============================================================ */
 
/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --sky-light:      #b8e4f9;
  --sky-mid:        #79c8f0;
  --sky-dark:       #3ca8e0;
  --sky-deeper:     #1a7bbf;
  --fb-blue:        #1877f2;
  --fb-blue-dark:   #0d5bbf;
  --accent-yellow:  #f5c842;
  --accent-orange:  #f08030;
  --white:          #ffffff;
  --text-dark:      #1a1a1a;
  --text-mid:       #444;
  --text-blue:      #1565c0;
  --text-blue-dark: #0d47a1;
  --shadow-soft:    0 4px 20px rgba(0, 80, 160, 0.12);
  --shadow-hover:   0 12px 36px rgba(0, 80, 160, 0.22);
  --shadow-card:    0 2px 16px rgba(0, 80, 160, 0.14);
  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
 
  /* ★ PDF縦横比 — ここを変更してください ★ */
  --pdf-ratio: 210 / 297;
}
 
/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
 
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-image:img:"ヘッダー背景用.png";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-dark);
}
 
/* ============================================================
   HEADER（index2026.html と共通）
============================================================ */
header {
  background-image: url(../../images/ヘッダー背景用.png);
  background-size: cover; background-position: center;
  background-repeat: no-repeat; background-color: #f5eea0;
  position: relative; overflow: hidden;
  padding: 20px 40px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 32px; min-height: 200px;
}
header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 260px 120px at  5% 60%, rgba(255,255,255,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 200px  90px at 20% 80%, rgba(255,255,255,0.40) 0%, transparent 70%),
    radial-gradient(ellipse 300px 140px at 50% 30%, rgba(255,255,255,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 180px  80px at 78% 70%, rgba(255,255,255,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 240px 110px at 95% 50%, rgba(255,255,255,0.50) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
header > * { position: relative; z-index: 1; }
 
.header-left  { flex-shrink: 0; height: 160px; display: flex; align-items: center; }
.header-left img { height: 160px; width: auto; object-fit: contain; display: block; }
.header-center {
  flex-shrink: 0; height: 160px;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 12px;
}
.header-center img { height: 72px; width: auto; object-fit: contain; display: block; }
.header-right  { flex-shrink: 0; height: 160px; display: flex; align-items: center; }
.event-date    { display: inline-flex; flex-direction: column; gap: 8px; }
.event-date .badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.65);
  border-radius: 999px; padding: 6px 20px;
  font-size: clamp(13px, 2vw, 22px); font-weight: 900;
  color: #fff; letter-spacing: 0.04em; white-space: nowrap;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  text-shadow: -2px -2px 0 #4a8fc0, 2px -2px 0 #4a8fc0,
               -2px  2px 0 #4a8fc0, 2px  2px 0 #4a8fc0;
  transition: background 0.2s;
}
.event-date .badge:hover { background: rgba(255,255,255,0.40); }
 
/* ============================================================
   NAV（index2026.html と完全一致）
============================================================ */
.site-nav {
  width: 100%; background: var(--sky-light);
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 4px; padding: 8px 12px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(227, 231, 4, 0.12);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(248, 240, 162, 0.52);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(227, 231, 4, 0.12);
}
.nav-inner { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-item {
  color: var(--text-blue); text-decoration: none;
  font-weight: 700; font-size: clamp(12px, 3vw, 15px);
  padding: 8px 20px; border: 2px solid var(--sky-mid);
  border-radius: 4px; transition: all 0.2s; white-space: nowrap;
  background: rgba(255,255,255,0.45);
}
.nav-item:hover, .nav-item.active {
  background: var(--sky-dark); border-color: var(--sky-dark); color: var(--white);
}
.nav-item.coming-soon { color: var(--accent-orange); }
 
/* ============================================================
   MAIN
============================================================ */
main {
  width: 92%; max-width: 900px;
  margin: 0 auto; padding: 32px 16px 80px;
}
 
/* ライズアニメーション */
.rise {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rise.visible { opacity: 1; transform: translateY(0); }
 
.section { margin: 48px auto; }
.section-header { text-align: center; margin-bottom: 24px; }
 
/* ============================================================
   波型区切り
============================================================ */
.wave-divider {
  width: 100%; overflow: hidden;
  line-height: 0; margin: 24px 0; opacity: 0.55;
}
.wave-divider svg { display: block; width: 100%; height: 32px; }
 

/* Main Layout */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.two-column-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.column {
    flex: 1;
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-title {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    flex-direction: column;
}

.section-title span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Left Column - PDF Ratio Control */
.pdf-link-container {
    margin-bottom: 15px;
}

.pdf-btn {
    color: #d32f2f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #d32f2f;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s;
}

.pdf-btn:hover {
    background: #d32f2f;
    color: white;
}

.pdf-frame {
    width: 100%;
    /* A4比率を保持 (1:1.414) */
    aspect-ratio: 1 / 1.414;
    background: #eee;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

.pdf-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Right Column - Access */
.access-info {
    margin-bottom: 20px;
}

.info-group {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.label {
    flex: 0 0 80px;
    height: 24px;
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 2px;
}

.address-label { background: #d32f2f; }
.transport-label { background: #0056b3; }

.transport-details h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #0056b3;
}

.transport-details ul {
    list-style: none;
    font-size: 0.9rem;
}

.transport-details li {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 2px solid #ccc;
}

.map-container {
    position: relative;
}

.map-link-btn {
    display: block;
    background: #d32f2f;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
    }
    
    .nav-item {
        flex: 1 1 45%;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .info-group {
        flex-direction: column;
    }
    
    .label {
        margin-bottom: 8px;
    }
}

/* ============================================================
   Googleマップ — 中央揃え＆ボタン幅統一（修正）
============================================================ */

.map-container {
    position: relative;
    /* 中央揃え */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;                       /* iframeとボタンの隙間はmarginで管理 */
}

/* iframe の width="200%" をCSSで上書き */
.map-container iframe {
    width: 100% !important;       /* HTMLのwidth="200%"を強制上書き */
    height: 300px;
    border: 0;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.map-link-btn {
    display: block;
    width: 100%;                  /* マップ幅に揃える */
    background: #d32f2f;
    color: white;
    text-align: center;
    padding: 14px 10px;           /* 高さを少し増やして視認性UP */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-top: 10px;
    border-radius: 4px;           /* 角丸で統一感を出す（不要なら削除可） */
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.map-link-btn:hover {
    background: #b71c1c;
}

/* スマホ対応（既存の @media (max-width: 768px) 内に追記） */
@media (max-width: 768px) {
    .map-container iframe {
        height: 220px;
    }
}

/* ============================================================
   トップへ戻るボタン
============================================================ */
.back-to-top {
  position: fixed; bottom: 24px; right: 20px; z-index: 200;
  background: var(--sky-dark); color: #fff;
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 16px; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,80,160,0.3);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--sky-deeper); }
 
/* ============================================================
   フッター
============================================================ */
footer {
  background: linear-gradient(160deg, var(--sky-dark) 0%, var(--sky-deeper) 100%);
  color: rgba(255,255,255,0.85); text-align: center;
  padding: 28px 16px; font-size: 12px; letter-spacing: 0.05em;
}
footer a { color: rgba(255,255,255,0.90); text-decoration: none; }
footer a:hover { text-decoration: underline; }
 
/* ============================================================
   レスポンシブ — スマホ（〜600px）
============================================================ */
@media (max-width: 600px) {
 
  /* ヘッダー */
  header {
    flex-direction: row; align-items: stretch;
    justify-content: space-between;
    padding: 8px 6px; gap: 4px; min-height: auto;
  }
  .header-left  { flex: 0 0 22%; flex-shrink: 1; height: auto; justify-content: center; }
  .header-left img { width: 100%; height: auto; max-height: 18vw; object-fit: contain; }
  .header-center { flex: 0 0 44%; flex-shrink: 1; height: auto; gap: 3px; }
  .header-center img { width: 100%; height: auto; max-height: 13vw; object-fit: contain; }
  .header-right { flex: 0 0 34%; flex-shrink: 1; height: auto; justify-content: flex-start; }
  .event-date { gap: 3px; }
  .event-date .badge {
    font-size: clamp(7px, 2.5vw, 11px); padding: 3px 10px;
    text-shadow: -1px -1px 0 #4a8fc0, 1px -1px 0 #4a8fc0,
                 -1px  1px 0 #4a8fc0, 1px  1px 0 #4a8fc0;
  }
 
  /* NAV */
  .site-nav { padding: 5px 4px; gap: 3px; }
  .nav-inner { flex-wrap: nowrap; width: 100%; justify-content: space-between; }
  .nav-item {
    padding: 6px 4px; font-size: clamp(9px, 2.6vw, 12px);
    white-space: nowrap; flex: 1; text-align: center; border-radius: 3px;
  }
 
  /* ヒーロー */
  .hero-section { padding: 28px 12px 20px; }
  .hero-subtitle { font-size: clamp(11px, 3vw, 15px); padding: 5px 14px; }
 
  /* Facebook ボタン */
  .facebook-btn { padding: 12px 20px; font-size: clamp(13px, 3.5vw, 16px); gap: 8px; }
 
  /* ラリーカード */
  .rally-card { padding: 20px 16px; }
  .rally-step { padding: 12px 14px; }
 
  /* PDFボタン */
  .pdf-toggle-btn { padding: 12px 24px; font-size: clamp(14px, 4vw, 16px); }
  /* PDF比率はCSSのaspect-ratioが自動処理（追加指定不要） */
  .pdf-frame-outer { border-radius: var(--radius); }
 
  /* アクセス */
  .access-card { padding: 18px 16px; }
  .access-list { padding-left: 0; }
  .access-address { padding-left: 0; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .cl-label { min-width: unset; }
 
  /* 波区切り */
  .wave-divider svg { height: 20px; }
 
  /* iOS Safari */
  body, header { background-attachment: scroll; }
}
 
/* ============================================================
   レスポンシブ — タブレット（601px〜900px）
============================================================ */
@media (min-width: 601px) and (max-width: 900px) {
  main { width: 95%; padding: 24px 12px 60px; }
  .rally-steps { gap: 10px; }
}
 