/* ==========================================================================
   てらすマルシェ イベントサイト共通スタイルシート (styles.css)
   ========================================================================== */

/* Google Fontsからフォントを読み込みます */
/* Outfit: スタイリッシュでモダンな英数字フォント */
/* Noto Sans JP: 優しく読みやすい日本語フォント */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Outfit:wght@400;600;800&display=swap');

/* デザインシステムの設計（共通で使用する変数） */
:root {
  /* メインカラー：あたたかみのある太陽のようなオレンジ */
  --primary: #ff7e47;
  --primary-rgb: 255, 126, 71;
  --primary-light: #ffa87d;
  --primary-dark: #e05e26;
  
  /* サブカラー：楽しさと元気を表すイエロー */
  --secondary: #ffc93c;
  --secondary-light: #ffde82;
  
  /* アクセントカラー：自然や優しさを表すリーフグリーン */
  --accent: #66bb6a;
  --accent-dark: #43a047;
  
  /* 背景用グラデーション：温かみがあり圧迫感のないアイボリー〜ペールオレンジ */
  --bg-gradient: linear-gradient(135deg, #fffcf6 0%, #fff0e2 100%);
  
  /* 文字の色 */
  --text-dark: #3a322d;      /* 柔らかめの黒（完全に真っ黒にしないことで目に優しい） */
  --text-muted: #7c726a;     /* 補足説明や薄い文字用のグレーブラウン */
  --text-light: #ffffff;     /* 白抜き文字用 */
  
  /* グラスモーフィズム（すりガラス効果）用の透過ホワイト */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(199, 137, 104, 0.12);
  
  /* 角の丸み（角を少し大きく丸めることで、優しくアットホームな印象になります） */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* アニメーションの速度設定（0.3秒で滑らかに変化させます） */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 全体のリセットと共通設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* スムーススクロール（メニュー選択時にスーッと滑らかにスクロールする機能） */
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
}

/* スタイリッシュなコンテナ（コンテンツ幅の調整） */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   共通UIパーツ（ボタン、カード、テキストなど）
   ========================================================================== */

/* タイポグラフィ（見出しと段落） */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

/* セクション共通の見出しデザイン */
.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  margin: 8px auto 0 auto;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* プレミアムなすりガラス風カード（グラスモーフィズム） */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  padding: 32px;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px); /* ホバーした時に少し上に浮き上がらせる */
  box-shadow: 0 12px 40px 0 rgba(199, 137, 104, 0.18);
  border-color: rgba(255, 255, 255, 0.8);
}

/* モダンなボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 126, 71, 0.2);
}

/* 主要なオレンジ色のボタン */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 126, 71, 0.35);
  filter: brightness(1.05);
}

/* 緑色のボタン（まーるハローワークや出店者募集用） */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(102, 187, 106, 0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 187, 106, 0.35);
  filter: brightness(1.05);
}

/* アウトラインボタン（枠線のみのボタン） */
.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 126, 71, 0.2);
}

/* ==========================================================================
   レイアウト構造の定義
   ========================================================================== */

/* ヘッダーとナビゲーション */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 252, 246, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 126, 71, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.5rem;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 3px 10px rgba(255, 126, 71, 0.3);
}

/* デスクトップメニュー */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-dark);
  background: rgba(255, 126, 71, 0.08);
}

/* スマホ用ハンバーガーメニューの三本線 */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

/* ==========================================================================
   各セクションのスタイリング
   ========================================================================== */

section {
  padding: 100px 0;
  position: relative;
}

/* ヒーローセクション（メインビジュアル） */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  background: radial-gradient(circle at 10% 20%, rgba(255,243,219,1) 0%, rgba(255,231,202,1) 90%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-text {
  z-index: 2;
}

.hero-tagline {
  background: rgba(255, 126, 71, 0.1);
  color: var(--primary-dark);
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 126, 71, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.25;
}

.hero-title span {
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

/* 次回開催のカウントダウンタイマー */
.countdown-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(199, 137, 104, 0.15);
  display: inline-block;
  width: 100%;
  max-width: 450px;
}

.countdown-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-timer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.timer-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 700;
}

/* ヒーロー画像のコンテナ（チラシの美しい重ね合わせ） */
.hero-image-area {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-flyer-card {
  width: 85%;
  max-width: 400px;
  transform: rotate(-3deg);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(199, 137, 104, 0.25);
  overflow: hidden;
  border: 8px solid #fff;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.main-flyer-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.main-flyer-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* 装飾用の背面カード */
.deco-card {
  position: absolute;
  width: 80%;
  max-width: 360px;
  height: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--secondary-light), var(--primary-light));
  opacity: 0.3;
  transform: rotate(6deg) translate(20px, 10px);
  z-index: 1;
}

/* --- コンセプトセクション --- */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.concept-text {
  font-size: 1.05rem;
}

.concept-highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.concept-p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* アイコン代わりのアクセントライン（絵文字廃止に伴い変更） */
.feature-item::before {
  content: '';
  width: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  flex-shrink: 0;
  align-self: stretch;
}

.feature-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- 開催日程（スケジュール）セクション --- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.schedule-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.schedule-card.past {
  opacity: 0.65;
  background: rgba(240, 235, 230, 0.5);
}

.schedule-card.next {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 230, 0.95) 100%);
  border: 2px solid var(--primary-light);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 126, 71, 0.15);
}

.schedule-card.next::before {
  content: '★ 次回開催';
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: flex-content;
  margin: -36px auto 16px auto;
  box-shadow: 0 3px 8px rgba(255, 126, 71, 0.3);
}

.schedule-month {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* 2026年・2027年の日程が混在するため、カード上部に小さく年を表示 */
.schedule-year {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.schedule-date {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 12px;
}

.schedule-day {
  color: var(--primary);
}

.schedule-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.schedule-card.past .schedule-status {
  background: #e2e8f0;
  color: #718096;
}

/* Instagramレポートリンクがある終了カードはクリック可能にする */
.schedule-card.past.has-instagram {
  cursor: pointer;
  opacity: 0.75;
  position: relative;
  overflow: hidden;
}

/* ホバー時に不透明度を上げてリンクを示す */
.schedule-card.past.has-instagram:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(131, 58, 180, 0.15);
  border-color: rgba(131, 58, 180, 0.3);
}

/* 「開催報告を見る」のオーバーレイ表示 */
.schedule-card.past.has-instagram::after {
  content: '開催報告を見る';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: var(--transition);
}

.schedule-card.past.has-instagram:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.schedule-card.next .schedule-status {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
}

.schedule-card.future .schedule-status {
  background: rgba(255, 126, 71, 0.1);
  color: var(--primary-dark);
}

/* 「もっと見る」エリア：デフォルトは非表示、openクラスで展開 */
#schedule-more-container {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

#schedule-more-container.open {
  display: grid;
}

.schedule-more-btn-wrap {
  text-align: center;
  margin-top: 16px;
}

.schedule-more-btn {
  min-width: 240px;
}

/* --- まーるハローワークセクション --- */
.kids-section {
  background: radial-gradient(circle at 80% 20%, #fff7eb 0%, #fffbf2 100%);
  border-top: 1px solid rgba(255, 126, 71, 0.05);
  border-bottom: 1px solid rgba(255, 126, 71, 0.05);
}

.kids-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.kids-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(102, 187, 106, 0.15);
  border: 6px solid #fff;
}

.kids-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.kids-tag {
  background: rgba(102, 187, 106, 0.1);
  color: var(--accent-dark);
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(102, 187, 106, 0.2);
}

.kids-title {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.kids-title span {
  color: var(--accent-dark);
}

.kids-steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border-left: 5px solid var(--accent);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- ギャラリーセクション --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1; /* 正方形に固定します */
  border: 4px solid #fff;
  box-shadow: 0 6px 20px rgba(199, 137, 104, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像をはみ出させて枠に合わせる設定です */
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.gallery-item img.fade-out {
  opacity: 0;
}

.gallery-item::after {
  content: '拡大する';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 126, 71, 0.85); /* てらすマルシェのオレンジ色 */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(199, 137, 104, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* --- アクセス・概要セクション --- */
.access-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 6px solid #fff;
  min-height: 350px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* アイコン代わりのアクセントライン（絵文字廃止に伴い変更） */
.info-item::before {
  content: '';
  width: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  flex-shrink: 0;
  align-self: stretch;
  color: var(--primary);
  border: 1px solid rgba(255, 126, 71, 0.1);
}

.info-detail h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-detail p {
  font-size: 1.05rem;
  font-weight: 500;
}

.info-detail .sub-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* チラシダウンロード・表示エリア */
.flyer-banner {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(255, 126, 71, 0.05) 0%, rgba(255, 201, 60, 0.08) 100%);
  border: 1px dashed var(--primary);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.flyer-banner-text h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.flyer-banner-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}



/* ==========================================================================
   フッター
   ========================================================================== */
footer {
  background: #fff4ea;
  border-top: 1px solid rgba(255, 126, 71, 0.1);
  padding: 60px 0 30px 0;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-contact {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-contact strong {
  color: var(--primary-dark);
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

/* 公式Instagram（QRコード）リンクカード */
.footer-instagram {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.6);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 126, 71, 0.15);
  transition: var(--transition);
}

.footer-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(214, 36, 159, 0.12);
  border-color: rgba(214, 36, 159, 0.3);
}

.footer-instagram-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.footer-instagram-text p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 126, 71, 0.08);
}

/* ==========================================================================
   ライトボックス (画像拡大表示機能)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 4px solid #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  font-family: sans-serif;
  transition: var(--transition);
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--secondary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* ==========================================================================
   アニメーション用ユーティリティ
   ========================================================================== */

/* 下からふわっとフェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ポップイン効果 */
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   レスポンシブ対応 (画面サイズごとのレイアウト調整)
   ========================================================================== */

/* タブレット〜大きめのPC未満 (最大幅 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .concept-grid, .kids-grid, .access-grid {
    gap: 32px;
  }
}

/* タブレット・スマホ縦横 (最大幅 768px) */
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  /* メニューの折りたたみ */
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fffcf6;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 126, 71, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-120%);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  /* ヒーローセクションを縦並びにする */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .countdown-box {
    margin: 0 auto;
  }
  
  .hero-image-area {
    order: -1; /* 画像をテキストより上に表示します */
  }
  
  .main-flyer-card {
    width: 70%;
  }
  
  /* グリッドを縦並びに */
  .concept-grid, .kids-grid, .access-grid {
    grid-template-columns: 1fr;
  }
  
  .kids-image-wrapper {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .flyer-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* 小型スマートフォン (最大幅 480px) */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .timer-value {
    font-size: 1.8rem;
  }
  
  .timer-label {
    font-size: 0.65rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-instagram {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   お仕事体験紹介「こんなお仕事があるよ！」のスタイル
   ========================================================================== */
.kids-jobs-intro {
  text-align: center;
}

.kids-jobs-title {
  font-size: 1.8rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
}

.kids-jobs-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 8px auto 0 auto;
  border-radius: var(--radius-full);
}

.kids-jobs-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.job-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: 4px solid var(--accent);
  padding: 0;
  overflow: hidden;
}

.job-img-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background-color: #f7fafc;
}

.job-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.job-card:hover .job-img-container img {
  transform: scale(1.08);
}

.job-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.job-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.job-name {
  font-size: 1.15rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.season-badge {
  font-size: 0.7rem;
  background: #feb2b2;
  color: #c53030;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.job-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* その他の仕事ボックス */
.other-jobs-box {
  border-left: 6px solid var(--accent-dark);
  padding: 32px;
  text-align: left;
}

.other-jobs-title {
  font-size: 1.3rem;
  color: var(--accent-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.other-jobs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin-bottom: 20px;
}

.other-jobs-list li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 絵文字の代わりの控えめなドットマーカー */
.other-jobs-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.other-jobs-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px dashed rgba(102, 187, 106, 0.3);
  padding-top: 16px;
}

/* お仕事紹介セクションのレスポンシブ対応 */
@media (max-width: 900px) {
  .job-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .other-jobs-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .other-jobs-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   出店者募集セクションのスタイル
   ========================================================================== */
.recruit {
  background: radial-gradient(circle at 10% 20%, #fff7eb 0%, #fffcf6 100%);
  border-top: 1px solid rgba(255, 126, 71, 0.05);
}

.recruit-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.recruit-info-card, .recruit-action-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recruit-info-card h3, .recruit-action-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 126, 71, 0.1);
  padding-bottom: 12px;
}

.recruit-intro, .action-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.recruit-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.recruit-detail-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.detail-label {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.recruit-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.recruit-action-buttons .btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.95rem;
}

.recruit-qr-area {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 126, 71, 0.3);
}

.qr-code-wrapper {
  width: 100px;
  height: 100px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.qr-code-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.qr-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 出店者募集セクションのレスポンシブ対応 */
@media (max-width: 900px) {
  .recruit-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .recruit-qr-area {
    flex-direction: column;
    text-align: center;
  }
}
