/* ============================================================
   旭区ファンフェスタ2026 — style.css（完全修正版）
   ============================================================ */

:root {
  --sky-1: #fbf5ea;
  --sky-2: #efdfc6;
  --sky-3: #d6a96a;
  --sky-4: #c4682e;
  --sky-5: #9c4620;
  --sky-6: #573018;
  --accent-yellow: #e0a32e;
  --accent-orange: #d9611f;
  --white: #ffffff;
  --text-dark: #2e2118;
  --text-mid: #5a473a;
  --text-light: #8e7c69;
  --shadow-sm: 0 2px 12px rgba(92,50,24,0.10);
  --shadow-md: 0 6px 28px rgba(92,50,24,0.18);
  --shadow-lg: 0 14px 48px rgba(92,50,24,0.24);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --content-width: 94%;
  --content-max: 1200px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  /* 既存の背景画像に温色グレーズを重ね、寒色の写真でも秋色に転ぶようにする */
  background-image:
    linear-gradient(180deg, rgba(217,97,31,0.20) 0%, rgba(224,163,46,0.14) 45%, rgba(87,48,24,0.24) 100%),
    url("背景用.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
}

header, nav, main, footer { position: relative; z-index: 1; }

/* ========== BODY ==========
   fixed → scroll に変更（iOS Safari 全機種対応）
========== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-image: url('背景用.png');
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* iOS Safari の判定（iPhone・iPad・iPod 全機種をカバー） */
@supports (-webkit-touch-callout: none) {
  body, header { background-attachment: scroll; }
}

/* ============================================================
   HEADER（修正版：高さ500px、幅2000px、縦横比固定）
   ============================================================ */
/* ============================================================
   HEADER
   ============================================================ */
header {
  background: linear-gradient(160deg, #7ecef5 0%, #a8ddf8 35%, #c8ecfc 65%, #dff4ff 100%);
  background-image: url(背景(新).png);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 100px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  gap: 6px;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 300px 120px at 15% 40%, rgba(255,255,255,0.30) 0%, transparent 65%),
    radial-gradient(ellipse 350px 140px at 55% 15%, rgba(255,255,255,0.22) 0%, transparent 62%);
  pointer-events: none;
  z-index: 1;
}

/* 画像エリア：横並びで中央寄せ */
.header-images {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header-left {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
}
.header-left img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0,60,140,0.22));
}

.header-center {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.header-center img {
  height: 55px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0,60,140,0.22));
}

/* 日付・会場エリア */
.header-right {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: row;        /* 横並びに変更 */
  align-items: center;
  justify-content: center;
  gap: 16px;                  /* 日付と会場の間隔 */
}

.event-date {
  font-size: clamp(13px, 1.6vw, 20px);
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;           /* 行間を詰める */
  text-align: center;
  text-shadow:
    -2px -2px 0 var(--sky-6),  2px -2px 0 var(--sky-6),
    -2px  2px 0 var(--sky-6),  2px  2px 0 var(--sky-6),
     0   -2px 0 var(--sky-6),  0    2px 0 var(--sky-6),
    -2px  0   0 var(--sky-6),  2px  0   0 var(--sky-6);
}


/* ===== NAV ===== */
.site-nav {
  width: 100%;
  background: var(--sky-light);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,120,180,0.2);
}

.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);
  margin: 2px;
}

.nav-item:visited {
  color: var(--text-blue);
  text-decoration: none;
}
.nav-item:visited:hover,
.nav-item:visited.active {
  color: var(--white);
}
.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);
}

/* ============================================================
   NAV直下のメインビジュアル写真「ラリー開始.png」
   PC・スマホ両対応（画像を切らずに全体表示）
   ============================================================ */

.hero-photo {
  width: 100%;
  max-width: 900px;      /* ★修正：画面幅いっぱいにせず、最大900pxで止める */
  margin: 0 auto;        /* ★追加：PC画面で画像を中央に配置する */
  line-height: 0;
  background: var(--sky-light);
  overflow: hidden;
}

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

/* ===== 木材WS写真 ===== */
.ws-photo {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}

.ws-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .ws-photo {
    margin: 20px auto;
    padding: 0 12px;
  }
  .ws-photo img {
    border-radius: 8px;
  }
}


/* ============================================================
   ステージ中止お知らせバナー（スマホ対応完全版）
   ============================================================ */

/* セクション全体 */
.cancellation-notice {
  width: 100%;
  background: linear-gradient(135deg, #e0f7ff 0%, #b3e5fc 50%, #81d4fa 100%);
  padding: 40px 0;
  margin: 0;
  border-top: 4px solid #0288d1;
  border-bottom: 4px solid #0288d1;
  position: relative;
  overflow: hidden;
  z-index: 100;
}

/* 背景装飾 */
.cancellation-notice::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(3, 169, 244, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* コンテナ */
.cancellation-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ===== バナー画像エリア ===== */
.cancellation-banner {
  width: 100%;
  max-width: 100%;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #e1f5fe 100%);
  border-radius: 12px;
  box-shadow: 
    0 6px 24px rgba(2, 136, 209, 0.25),
    0 2px 8px rgba(3, 169, 244, 0.15);
  overflow: hidden;
  aspect-ratio: 16 / 5;
  border: 2px solid #4fc3f7;
  margin: 0;
}

.cancellation-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(129, 212, 250, 0.1) 0%,
    transparent 50%,
    rgba(3, 169, 244, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.cancellation-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #ffffff;
  image-rendering: -webkit-optimize-contrast;
}

.cancellation-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #0288d1 0%, 
    #03a9f4 25%, 
    #4fc3f7 50%, 
    #03a9f4 75%, 
    #0288d1 100%
  );
  z-index: 2;
}

/* ===== お知らせ本文エリア ===== */
.cancellation-text {
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid #29b6f6;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 
    0 4px 16px rgba(3, 169, 244, 0.2),
    0 2px 8px rgba(2, 136, 209, 0.1);
  text-align: center;
  line-height: 1.9;
  position: relative;
  overflow: hidden;
}

.cancellation-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #4fc3f7 20%, 
    #29b6f6 50%, 
    #4fc3f7 80%, 
    transparent 100%
  );
}

.cancellation-title {
  font-size: 18px;
  font-weight: 900;
  color: #01579b;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #29b6f6;
  padding-bottom: 12px;
  text-shadow: 0 2px 4px rgba(3, 169, 244, 0.1);
  line-height: 1.6;
}

.cancellation-message {
  font-size: 15px;
  font-weight: 700;
  color: #0277bd;
  margin-bottom: 16px;
  line-height: 2.0;
  letter-spacing: 0.03em;
}

.cancellation-apology {
  font-size: 13px;
  font-weight: 600;
  color: #0288d1;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* ===== PC・タブレット用の設定 ===== */
@media (min-width: 769px) {
  .cancellation-notice {
    padding: 60px 0;
    margin: 48px 0;
  }
  
  .cancellation-container {
    width: var(--content-width);
    max-width: var(--content-max);
    gap: 40px;
    padding: 0 20px;
  }
  
  .cancellation-banner {
    max-width: 1600px;
    border-radius: 16px;
    border-width: 3px;
  }
  
  .cancellation-banner::after {
    height: 6px;
  }
  
  .cancellation-text {
    max-width: 800px;
    border-radius: 20px;
    padding: 40px 32px;
    border-width: 3px;
  }
  
  .cancellation-text::before {
    height: 8px;
  }
  
  .cancellation-title {
    font-size: 26px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom-width: 3px;
  }
  
  .cancellation-message {
    font-size: 20px;
    margin-bottom: 24px;
    line-height: 2.2;
  }
  
  .cancellation-apology {
    font-size: 17px;
    line-height: 2.0;
  }
}

/* ===== スマホ専用（480px以下） ===== */
@media (max-width: 480px) {
  .cancellation-notice {
    padding: 32px 0;
    margin: 0;
    border-top-width: 3px;
    border-bottom-width: 3px;
  }
  
  .cancellation-container {
    gap: 20px;
    padding: 0 12px;
  }
  
  .cancellation-banner {
    border-radius: 10px;
    border-width: 2px;
    aspect-ratio: 16 / 5;
  }
  
  .cancellation-banner::after {
    height: 3px;
  }
  
  .cancellation-text {
    padding: 20px 16px;
    border-radius: 14px;
  }
  
  .cancellation-text::before {
    height: 4px;
  }
  
  .cancellation-title {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  
  .cancellation-message {
    font-size: 14px;
    margin-bottom: 14px;
  }
  
  .cancellation-apology {
    font-size: 12px;
  }
}

/* ===== 極小スマホ（360px以下） ===== */
@media (max-width: 360px) {
  .cancellation-notice {
    padding: 24px 0;
    border-top-width: 2px;
    border-bottom-width: 2px;
  }
  
  .cancellation-container {
    gap: 16px;
    padding: 0 10px;
  }
  
  .cancellation-banner {
    border-radius: 8px;
    border-width: 1.5px;
  }
  
  .cancellation-text {
    padding: 18px 14px;
    border-radius: 12px;
  }
  
  .cancellation-title {
    font-size: 15px;
  }
  
  .cancellation-message {
    font-size: 13px;
  }
  
  .cancellation-apology {
    font-size: 11.5px;
  }
}


/* ============================================================
   ① ギャラリー
   ============================================================ */
.gallery-section {
  width: 100%;
  margin: 0;
  padding: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--sky-light);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.40s ease;
}
.gallery-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0,60,120,0.28) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.30s;
}
.gallery-item:hover img              { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============================================================
   ② インスタグラム
   ============================================================ */

.section-title-btn {
  background: var(--white);
  border: 3px solid #ccc;
  border-radius: 24px;
  padding: 8px 32px;
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 900;
  color: var(--text-dark);
  margin: 0 auto 16px;
  display: block;
  text-align: center;
  width: -webkit-fit-content;
  width: fit-content;
}

.instagram-embed {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  background: var(--sky-light);
  border: 3px solid var(--sky-mid);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.instagram-embed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   ③ 出展者一覧
   ============================================================ */
.exhibitor-title {
  text-align: center;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.exhibitor-title .link-text {
  color: var(--text-blue);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.exhibitor-title .link-text::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sky-mid), var(--sky-dark), var(--sky-mid));
}
.spark {
  color: var(--accent-yellow);
  font-size: 0.9em;
}

.exhibitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 580px;
  margin: 24px auto 0;
}

.exhibitor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  padding: 10%;
  box-shadow:
    0 2px 8px  rgba(0,80,160,0.10),
    0 1px 3px  rgba(0,80,160,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.exhibitor-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(0,80,160,0.20),
    0  4px 12px rgba(0,80,160,0.10);
}
.exhibitor-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.30s ease;
}
.exhibitor-card:hover img { transform: scale(1.05); }

.exhibitor-card-hover {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(10,50,100,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 12px;
  transition: opacity 0.22s ease;
}
.exhibitor-card:hover .exhibitor-card-hover { opacity: 1; }
.exhibitor-card-hover span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1.5px solid rgba(255,255,255,0.85);
  padding: 6px 18px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ============================================================
   主催者・お問い合わせ
   ============================================================ */
.contact-block {
  margin-top: 40px;
  text-align: center;
}
.contact-title {
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-info {
  font-size: clamp(13px, 3vw, 16px);
  line-height: 2;
  color: var(--text-dark);
}
.contact-info a {
  color: var(--text-blue);
  text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  background: var(--nav-bg);
  color: #888;
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
}
footer a {
  color: var(--sky-mid);
  text-decoration: none;
}

/* ============================================================
   レスポンシブ（タブレット横：769px〜900px）
   ============================================================ */
@media (min-width: 769px) and (max-width: 900px) {
  header {
    min-height: 90px;
    padding: 10px 20px;
    gap: 8px;
  }
  .header-images { gap: 10px; }
  .header-left img  { height: 54px; }
  .header-center img { height: 50px; }
  .event-date {
    font-size: clamp(13px, 1.8vw, 17px);
    gap: 12px;
  }
}

/* ============================================================
   レスポンシブ（タブレット縦：601px〜768px）
   ============================================================ */
@media (min-width: 601px) and (max-width: 768px) {
  header {
    min-height: 80px;
    padding: 8px 16px;
    gap: 6px;
  }
  .header-images { gap: 8px; }
  .header-left img  { height: 46px; }
  .header-center img { height: 42px; }
  .header-right { gap: 10px; }
  .event-date {
    font-size: clamp(12px, 1.8vw, 15px);
    line-height: 1.3;
  }

  /* NAV */
  .nav-item {
    font-size: clamp(11px, 2vw, 14px);
    padding: 7px 14px;
  }

  /* main */
  main {
    width: 94%;
    padding: 16px 12px 48px;
  }
}

/* ============================================================
   レスポンシブ（スマホ大：481px〜600px）
   ============================================================ */
@media (min-width: 481px) and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    gap: 5px;
    min-height: auto;
  }
  .header-images {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .header-left img  {
    height: 9vw;
    max-height: 44px;
    width: auto;
  }
  .header-center img {
    height: 8vw;
    max-height: 40px;
    width: auto;
  }
  .header-right {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
  .event-date {
    font-size: clamp(11px, 2.6vw, 14px);
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
  }

  /* NAV */
  .site-nav { padding: 5px 6px; }
  .nav-inner {
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-item {
    padding: 6px 8px;
    font-size: clamp(10px, 2.4vw, 13px);
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  /* main */
  main { width: 96%; padding: 14px 10px 40px; }

  /* ギャラリー */
  .gallery-grid { gap: 3px; }
  .exhibitor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
  }
  .exhibitor-card { padding: 8%; border-radius: 8px; }

  body, header { background-attachment: scroll; }
}

/* ============================================================
   レスポンシブ（スマホ標準：〜480px）
   ============================================================ */
@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 7px 8px;
    gap: 4px;
    min-height: auto;
    overflow: hidden;
  }
  .header-images {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
  }
  .header-left img {
    height: 11vw;
    max-height: 42px;
    width: auto;
  }
  .header-center {
    flex-direction: row;
    gap: 3px;
  }
  .header-center img {
    height: 10vw;
    max-height: 38px;
    width: auto;
  }
  .header-right {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;          /* 極小画面では折り返し許可 */
  }
  .event-date {
    font-size: clamp(10px, 2.8vw, 13px);
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
  }

  /* NAV */
  .site-nav { padding: 4px 4px; gap: 2px; }
  .nav-inner {
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-item {
    padding: 5px 4px;
    font-size: clamp(9px, 2.6vw, 12px);
    white-space: nowrap;
    flex: 1;
    text-align: center;
    border-radius: 3px;
  }

  /* main */
  main { width: 98%; padding: 12px 8px 36px; }

  /* ギャラリー */
  .gallery-grid { gap: 2px; }
  .gallery-item { aspect-ratio: 1 / 1; }

  /* 出展者 */
  .exhibitor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 100%;
  }
  .exhibitor-card {
    padding: 7%;
    border-radius: 8px;
  }

  body, header { background-attachment: scroll; }
}

/* ============================================================
   レスポンシブ（極小スマホ：〜360px）
   ============================================================ */
@media (max-width: 360px) {
  header {
    padding: 6px 6px;
    gap: 3px;
  }
  .header-left img {
    height: 12vw;
    max-height: 38px;
  }
  .header-center img {
    height: 11vw;
    max-height: 34px;
  }
  .header-right { gap: 6px; }
  .event-date {
    font-size: clamp(9px, 2.6vw, 11px);
  }

  /* NAV */
  .nav-item {
    padding: 5px 3px;
    font-size: clamp(8px, 2.4vw, 10px);
  }

  /* main */
  main { padding: 10px 6px 28px; }

  /* 出展者 */
  .exhibitor-grid { gap: 4px; }
  .exhibitor-card { padding: 6%; }
}

/* ============================================================
   ▼▼▼ ヘッダー画像見切れ対策（HTML構造対応・最終版）▼▼▼
   スマホでは高さ基準をやめ、画面幅基準で3枚に幅を配分する
   ============================================================ */

/* 全画面共通の保険 */
header {
  width: 100%;
  overflow: hidden;
}
.header-images {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  min-width: 0;
}
.header-left,
.header-center {
  min-width: 0;
}
header img {
  max-width: 100%;
}

/* ---- スマホ（600px以下）：幅基準に切り替え ---- */
@media (max-width: 600px) {
  .header-images {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2vw;
    padding: 0 2vw;
  }
  .header-center {
    gap: 1.5vw;
  }

  /* ロゴ（あさひファン★フェスタ） */
  .header-left img {
    width: 26vw;
    height: auto;
    max-height: none;
  }

  /* 金色の「旭区ブランド」 */
  .header-center img:first-child {
    width: 42vw;
    height: auto;
    max-height: none;
  }

  /* 「旭わがまち お宝」 */
  .header-center img:last-child {
    width: 20vw;
    height: auto;
    max-height: none;
  }
}

/* ============================================================
   ▼▼▼ PC向け：ボックス型レイアウト（不要なワイドを除去）▼▼▼
   ============================================================ */
@media (min-width: 901px) {

  /* サイト全体を1200px幅に固定して中央配置 */
  header,
  .site-nav,
  main,
  footer {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ボックスの輪郭を出して背景と区別する */
  header {
    border-radius: 0 0 0 0;
  }
  main {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 40px rgba(0, 80, 160, 0.10);
  }

  /* main内の上限もボックス幅に合わせて拡大 */
  main {
    max-width: 1200px;
    width: 100%;
    padding: 32px 40px 80px;
  }
  .instagram-embed {
    max-width: 820px;
  }
  .exhibitor-grid {
    max-width: 760px;
  }
}
/* ============================================================
   秋色テーマ上書き（スクショ完全再現版）
   必ずCSSの一番最後に追加（前回追加分と差し替え）
   ============================================================ */

/* 1. 左右の余白（水色を消してスクショの薄い茶色に統一） */
body {
  background-color: #d6c5b3; /* スクリーンの左右に見える上品な薄茶色 */
  background-image:
    linear-gradient(rgba(214, 197, 179, 0.88), rgba(214, 197, 179, 0.88)),
    url("背景用.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* 2. サイトの一番上（明るい茶色で、ロゴもくっきり見えるように） */
header {
  background-color: #e9d6bb;
  background-image:
    linear-gradient(
      180deg,
      rgba(243, 228, 205, 0.85) 0%,
      rgba(226, 202, 168, 0.80) 100%
    ),
    url("背景(新).png");
  background-size: cover;
  background-position: center top;
}

/* ヘッダー内部の余計な白モヤを除去して文字・ロゴをクリアに */
header::after {
  display: none;
}

.header-left img,
.header-center img {
  filter: drop-shadow(0 2px 6px rgba(87, 48, 24, 0.15));
}

/* 3. ナビゲーションバー（スクショ通りの淡いベージュ帯とボタン色） */
.site-nav {
  background: #f4ece2;
  box-shadow: 0 2px 8px rgba(87, 48, 24, 0.10);
}

.nav-item,
.nav-item:visited {
  background: #ffffff;
  color: #573018;
  border: 1.5px solid #c8a882;
}

/* 選択中（HOME）やホバー時の濃い茶色ボタン */
.nav-item:hover,
.nav-item.active,
.nav-item:visited.active {
  background: #9c4620;
  border-color: #9c4620;
  color: #ffffff;
}

/* 4. メイン画像エリアの背景を透明にして馴染ませる */
.hero-photo {
  background: transparent;
}

/* 5. その他の共通カラー変数 */
:root {
  --sky-light: #efdfc6;
  --sky-mid: #d6a96a;
  --sky-dark: #9c4620;
  --text-blue: #573018;
  --nav-bg: #efdfc6;
  --radius: var(--radius-md);
}

/* 出展者カードやPC時の影の青みを薄茶色に */
.exhibitor-card {
  box-shadow: 0 2px 8px rgba(87, 48, 24, 0.08);
}
.exhibitor-card-hover {
  background: rgba(87, 48, 24, 0.45);
}
@media (min-width: 901px) {
  main {
    box-shadow: 0 0 40px rgba(87, 48, 24, 0.10);
  }
}
footer {
  background: #efdfc6;
}
footer a {
  color: #9c4620;
}


/* ============================================================
   ▲▲▲ ここまで ▲▲▲
   ============================================================ */
