:root {
    --color-text: #000000;
    --color-primary: #9be8f0;
    --color-secondary: #abc760;
    --color-tertiary: #ff834e;
    --color-quaternary: #f8c16f;
    --color-background: #ffffff;
    --color-card-bg: #f4f4f4;
    --color-event-card-bg: #e2fbff;
    --color-event-text: #0357af;
    --color-shop-text: #af3f03;
    --color-map-placeholder: #737373;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 110px; /* ヘッダーの高さ分 */
  }
  
  * {
    box-sizing: border-box;
  }
  
  .page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .section-container {
    padding: 80px 20px;
  }
  
  .section-title {
    position: relative;
    width: 100%;
    max-width: 1219px;
    margin: 0 auto 80px;
    padding: 15px;
    border: 3px solid var(--color-text);
    border-radius: 47px;
    box-shadow: 0px 13px 0px 0px var(--color-text);
    text-align: center;
    font-weight: 700;
    font-size: 48px;
    color: var(--color-text);
  }

  /* フェードイン */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  @media (max-width: 768px) {
    .section-title {
      font-size: 36px;
      margin-bottom: 40px;
    }
    .section-container {
      padding: 40px 15px;
    }
  }
  
  /* CSS from section:header */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(244, 244, 244, 0.9);
    border-bottom: 2px solid var(--color-text);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
  }
  

.site-header.scrolled {
  background-color: rgba(244, 244, 244, 1); /* スクロール時にさらに濃く */
}

/* ナビゲーションリンク */
.header-nav a {
  font-size: 24px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(244, 244, 244, 1); /* スクロール時にさらに濃く */
  }

.header-nav a:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

  .header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 62px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 109px;
  }
  .header-logo {
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    color: var(--color-text);
    text-decoration: none;
    text-align: center;
  }
  .header-nav ul {
    display: flex;
    gap: 45px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
/* ナビゲーションリンク */
.header-nav a {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .header-nav a:hover {
    opacity: 0.8;
    transform: scale(1.2);
  }
  
  @media (max-width: 768px) {
    .header-container {
      flex-direction: column;
      gap: 15px;
      padding: 15px 20px;
    }
    .header-nav ul {
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .header-nav a {
      font-size: 18px;
    }
    .header-logo {
      font-size: 20px;
    }
  }


/* =========================
   メインビジュアル (Hero)
   ========================= */
.hero-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 60px;
  gap: 40px;
  background: linear-gradient(135deg, #ffffff); /* 背景色追加 */
  border-radius: 20px;
}

.hero-text {
  flex: 1;
  color: #333;
  font-family: 'Helvetica Neue', sans-serif;
}

.hero-text h1 {
  font-family: 'Rock Salt', cursive; /* 手書き風フォント例 */
  font-size: 3.5rem;
  color: #4a3728;
  text-shadow: 2px 2px 0 #fff;
}


.hero-gallery {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* 中央基準 */
}


/* チェキ風枠 */
.polaroid {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  border-radius: 10px;
  border: 2px solid #ddd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4; /* ← チェキ比率固定（縦長） */
}

.polaroid:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.03);
  box-shadow: 0 15px 5px rgba(0, 0, 0, 0.35);
}

.polaroid img {
  width: 100%;
  height: auto;
  flex: 1; /* 画像部分を自動伸縮 */
  object-fit: cover; /* トリミングで均一に見せる */
}

/* メイン画像 */
.hero-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* PC時 */
  max-height: 500px;   /* 上限を決めておく */
  overflow: hidden;
}

.hero-main .polaroid {
  width: 100%;
  height: 100%;
}

/* サムネイル */
.hero-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-thumbnails .polaroid {
  flex: 1 1 calc(20% - 10px);
  opacity: 0.7;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg)); /* ランダム傾き適用 */
}

.hero-thumbnails .polaroid.active {
  opacity: 1;
  transform: rotate(0deg) scale(1.05);
}

@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
  }
  .hero-main {
    aspect-ratio: 16 / 9; /* スマホ向けに横長 */
  }
}



  /* CSS from section:events */
/* イベントグリッド：左右2列 */
.events-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* イベントカード */
.event-card {
    width: 540px;      /* 固定幅 */
    flex-shrink: 0;    /* 画面幅縮小時も縮まない */
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;  /* フェードイン用初期値 */
    transform: translateY(30px); /* 下から浮き上がる */
    transition: all 0.8s ease;
}

/* フェードイン */
.event-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-card-body {
    background-color: var(--color-event-card-bg);
    border: 2px solid var(--color-text);
    border-radius: 36px;
    width: 100%;
    min-height: 372px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.event-title{
  font-size: 40px;
  color: #023B8F;
}

#event-title-school {
  white-space: pre-line; /* 改行文字(\n)を有効にする */
}

.event-card-subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--color-event-text);
    margin: 20px 0 6px 0; /* 上部余白追加 */
}

.event-card-title {
    font-size: 40px;
    font-weight: 400;
    color: var(--color-event-text);
    margin: 0;
}

.event-card-footer {
    background-color: var(--color-card-bg);
    border-top: 2px solid var(--color-text);
    border-radius: 0 0 34px 34px;
    padding: 20px;
    min-height: 100px;
}

.event-card-footer p {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-event-text);
    margin: 0;
    line-height: 1.2;
}

/* ボタン */
.event-card-buttons {
    display: flex;
    gap: 12px;
    margin-top: 31px;
}

.event-card-buttons button {
    background-color: var(--color-card-bg);
    border: 2px solid var(--color-text);
    box-shadow: 0px 4px 0px 1px var(--color-text);
    width: 60px;
    height: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    color: var(--color-event-text);
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-card-buttons button:hover {
    transform: scale(1.15);
    background-color: #5AA0FF;
    color: #fff;
    box-shadow: 0px 6px 0px 1px var(--color-text);
}

.event-card-buttons button.active {
    background-color: #0357AF;
    color: #fff;
    transform: scale(1.1);
    border-color: #023B8F;
    box-shadow: 0px 6px 0px 1px #023B8F;
}


/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .event-card {
    width: 400px;    /* 少し小さく */
  }
}

@media (max-width: 850px) {
  .event-card {
    width: 90%;      /* スマホでは画面幅に合わせる */
  }
}

  
/* shops section */
.shop-container {
  display: grid;
  grid-template-columns: repeat(3, 400px); /* 最大3列固定 */
  gap: 48px 86px;
  max-width: calc(3 * 400px + 2 * 86px); /* 3列分の幅＋列間隔2つ分 */
  margin: 0 auto; /* 中央寄せ */
  justify-content: center;
}

.shop-card {
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-text);
  border-radius: 40px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 535px;
  width: 400px;
}

.shop-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-shop-text);
  margin: 0 0 15px 0;
}

.shop-card-tags {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
}

.shop-card-tags .tag {
  background-color: var(--color-shop-text);
  color: var(--color-card-bg);
  font-size: 24px;
  font-weight: 400;
  border-radius: 43px;
  padding: 2px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0 5px;
}

.shop-card-tags .tag:hover {
  transform: scale(1.1);
  background-color: #0357AF;
}

.shop-card-tags .tag.active {
  background-color: #fff;
  color: #0357AF;
  border: 2px solid #0357AF;
  transform: scale(1.2);
  font-weight: 600;
}

.shop-card-item {
  width: 280px;
  height: 280px;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 15px 0;
  background-color: var(--color-primary);
}

.shop-card-item p {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.shop-card-img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}

.shop-card-desc {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-shop-text);
  line-height: 1.2;
  margin: auto 0 0 0;
}

/* 新旧コンテンツ切り替えアニメーション */
.shop-card-item,
.shop-card-desc,
.shop-card-item-name {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* 非表示状態 */
.fade-out-left {
  transform: translateX(-40px); /* 左に40px移動 */
  opacity: 0;
}

.fade-in-right {
  transform: translateX(40px); /* 右から40px移動 */
  opacity: 0;
}

.fade-in-right.active {
  transform: translateX(0);
  opacity: 1;
}



/* レスポンシブ調整 */
@media (max-width: 1300px) {
  .shop-container {
    grid-template-columns: repeat(2, 400px);
    max-width: calc(2 * 400px + 86px); /* 2列用 */
  }
}

@media (max-width: 850px) {
  .shop-container {
    grid-template-columns: 1fr;
    max-width: 400px; /* 1列用 */
    gap: 30px;
  }
}


  
  
  /* CSS from section:schedule */
  .schedule-image-container {
    max-width: 1097px;
    margin: 0 auto;
  }
  .schedule-image-container img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* アクセスコンテンツ全体 */
.access-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: nowrap; /* 横並びを維持 */
}

/* 左側テキスト情報 */
.access-info {
  flex: 1 1 55%; 
  min-width: 320px;
  max-width: 700px; /* 最大幅を設定してマップが圧迫しないように */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.access-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.access-card h3 {
  margin: 0 0 10px 0;
  color: #0357AF;
  font-size: 24px;
}

.access-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* 右側Googleマップ */
.access-map {
  flex: 1 1 45%;
  min-width: 400px;
  max-width: 550px; /* 最大幅を設定 */
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* レスポンシブ調整 */
@media (max-width: 1200px) {
  .access-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .access-info {
    text-align: center;
  }
  .access-map {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    aspect-ratio: 4 / 3; /* 縦横バランスを保つ */
  }
}



/* ステッカー */
/* .sticker-scroll {
  position: absolute;
  top: 200px;
  left: 10%;
  font-size: 50px;
  z-index: 500;
  transition: transform 0.1s linear;
} */



/* =========================
   スクロールアニメーション拡張
   ========================= */

/* 共通：ふわっと出現 */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
  will-change: transform, opacity;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 左スライドイン（メインテキスト用） */
.scroll-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s ease, transform 1s ease;
}

.scroll-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 右スライドイン（ショップ用） */
.scroll-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.scroll-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* チェキ（ふわっと回転して出現） */
.polaroid.scroll-rotate {
  opacity: 0;
  transform: translateY(50px) rotate(-5deg) scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.polaroid.scroll-rotate.visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 2deg)) scale(1);
}
