﻿@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Kiwi+Maru:wght@400;500;700&family=Lexend:wght@600;700&display=swap');
html {
  overflow-x: hidden;
}
body {
  font-family: 'Kiwi Maru', serif, sans-serif;
  padding: 20px;
  color: #000;
  background-color: #FEEA92; /* 背景 */
  /* html 側にも overflow-x: hidden を付けないと、Firefoxでメニューの
     ボタン（position: fixed）がずれて消えて見えることがある */
  overflow-x: hidden; /* 横スクロール防止 */
}

/*見出し的なやつ*/
.main-title-container {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 50px;
}

.main-title {
  font-family: 'Fredoka', sans-serif; /* Popな英字フォント */
  font-size: 38px;
  font-weight: normal; /* 他ページのタイトルと同じ太さに（以前は300で細すぎた） */
  color: #000;
  display: inline-block;
  position: relative;
  padding-bottom: 12px; /* 下線との隙間 */
  margin: 0;
}

/* ピンクの手書き風SVGアンダーライン */
.main-title::after {
  content: "";
  position: absolute;
  bottom: -10px;        /* 線が表示される上下位置の調整 */
  left: 50%;
  transform: translateX(-50%); /* 中央寄せ */
  width: 294px;         /* SVGの元の幅 */
  height: 23px;         /* SVGの元の高さ */
  
  background-image: url('data:image/svg+xml;utf8,<svg width="294" height="23" viewBox="0 0 294 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.338364 19.51C0.338364 19.51 161.8 1.2259 227.057 3.16785L293.894 5.15676" stroke="%23F15658" stroke-width="6.04724"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ボタン共通設定（中央寄せ） */
.filter-group {
  margin-bottom: 15px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center; /* ★全ボタンを中央に配置 */
  width: 100%;
}
.filter-group:has(.filter-btn[data-type="place"]) {
  gap: 8px; /* ★好みの詰まり具合に合わせて 6px〜10px あたりで調整してください */
}

.filter-btn {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

/* -----------------------------------
   1. 日付ボタン（イベントページの .date-button と統一）
----------------------------------- */
.filter-btn[data-type="day"] {
  font-family: 'Lexend', sans-serif;
  position: relative;
  width: 140px;
  height: 140px;
  padding: 0;
  border-radius: 50%;
  background-color: #F9AD22; /* 通常時の薄いオレンジ */
  color: #FFFFFF;
  box-shadow: 5px 5px 0 #D6840C;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.filter-btn[data-type="day"] .date-month {
  font-size: 34px;
  text-shadow: 2px 2px 0 #F97F22;
}

.filter-btn[data-type="day"] .date-day {
  font-size: 54px;
  line-height: 1;
  font-weight: 400;
  text-shadow: 2px 2px 0 #F97F22;
}

/* 日付選択時（濃いオレンジ） */
.filter-btn[data-type="day"].active {
  background-color: #F97F22; /* 選択時の濃いオレンジ */
}

.filter-btn[data-type="day"].active .date-month,
.filter-btn[data-type="day"].active .date-day {
  text-shadow: 2px 2px 0 #C7661C;
}

.filter-btn[data-type="day"] .date-star {
  display: none;
  position: absolute;
  width: 50px;
  height: 50px;
  top: -12px;
  right: -6px;
  z-index: 2;
}

/* 選択時のみ右上星マーク */
.filter-btn[data-type="day"].active .date-star {
  display: block;
  /* ぷるんっアニメーションの呼び出し */
  animation: purun 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ぷるんっアニメーション定義 */
@keyframes purun {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotate(10deg); /* 一度ぐっと大きく */
    opacity: 1;
  }
  75% {
    transform: scale(0.9) rotate(-5deg); /* 反動で少し縮む */
  }
  100% {
    transform: scale(1) rotate(0deg); /* 元のサイズに着地 */
    opacity: 1;
  }
}

/* -----------------------------------
   2. 場所ボタン（カプセル型）
----------------------------------- */
.filter-btn[data-type="place"] {
  font-family: 'Kiwi Maru', serif;
  padding: 8px 18px;
  border-radius: 25px;
  background-color: #63C5C9; /* 通常時の水色 */
  color: #000;
  font-size: 15px;
  border: 3px solid transparent;
  /* transform / transition を削除してアニメーションをオフ */
}

/* 場所選択時 */
.filter-btn[data-type="place"].active {
  color: #000;
  background-color: #63C5C9;    
  border: 4px solid #FFFFFF; /* 選択時は白枠のみ変化 */
  font-size: 15px; /* サイズ固定 */
}

/* -----------------------------------
   2-2. 天気選択エリア
----------------------------------- */
.weather-toggle-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* アイコンが小さくなった分、間隔も少し詰める */
  margin-bottom: 15px;
  width: 100%;
}

/* 天気ボタン（全体のサイズを80%に縮小） */
.weather-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.4;
  transform: scale(0.8); /* ★非選択時は80%サイズ */
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.weather-btn.active {
  opacity: 1;
  transform: scale(0.95); /* ★選択時も控えめなサイズ（95%） */
}

/* 中央の三角形矢印 */
.weather-arrow {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;   /* ★ 12px → 8px に縮小 */
  border-bottom: 8px solid transparent;/* ★ 12px → 8px に縮小 */
  border-right: 12px solid #F9AD22;   /* ★ 18px → 12px に縮小 */
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 晴れ選択時：矢印は左（晴れ）を向く */
.weather-toggle-group:has(.weather-btn[data-value="sunny"].active) .weather-arrow {
  transform: rotate(0deg);
}

/* 雨選択時：矢印が180度くるっと回って右（雨）を向く */
.weather-toggle-group:has(.weather-btn[data-value="rainy"].active) .weather-arrow {
  transform: rotate(180deg);
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px dashed #F97F22;
}

/* -----------------------------------
   3. 見出し枠（中央寄せ設定）
----------------------------------- */
.heading-box {
  display: block;           /* ★中央寄せのためblock化 */
  width: fit-content;       /* ★文字幅に合わせる */
  margin: 0 auto 20px auto; /* ★中央配置 */
  border: 4px solid #F9AD22; /* オレンジの太枠 */
  background-color: #f7f7f7;
  padding: 10px 30px;
  border-radius: 30px; /* カプセル型 */
  font-size: 15px;
  letter-spacing: 1px;
  text-align: center;
}

/* -----------------------------------
   4. スケジュールエリア
----------------------------------- */
.schedule-content {
  display: none;      /* 通常は非表示 */
  position: relative; /* ★惑星の位置基準 */
  max-width: 320px;   /* 画像のサイズ感に合わせる */
  margin: 40px auto;  /* ★上下に余白をとって中央表示 */
}

.schedule-content.active {
  display: block; /* activeが付いたものだけ表示 */
}

/* タイムテーブル本体（背景の惑星より手前に表示） */
.timeline-wrapper {
  display: flex;
  background-color: #FFF3C4; /* 薄いイエロー背景 */
  border: 3px solid #F9AD22;  /* オレンジの枠線 */
  border-radius: 16px;        /* 全体の角丸 */
  box-shadow: 6px 6px 0px #F9AD22; /* 右下のオレンジ影 */
  max-width: 450px;
  padding: 15px 10px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;                 /* ★惑星より前面 */
}

/* 左側：時間軸 */
.time-axis {
  width: 65px;
  background-color: transparent;
  border-right: 2px solid #F9AD22; /* オレンジの縦区切り線 */
  color: #000;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.hour-mark {
  height: 60px;
  line-height: 20px;
  text-align: center;
  box-sizing: border-box;
}

/* 右側：イベント配置エリア */
.event-list {
  position: relative;
  flex: 1;
  background-color: transparent;
  min-height: 540px;
}

/* イベントカード（画像通りのオレンジ枠＆角丸） */
.event-card {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 50px;
  background-color: #FFF8DF; /* カード内側の薄い色 */
  border: 2px solid #F97F22; /* オレンジの太枠 */
  border-radius: 12px; /* 角丸 */
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.event-time {
  font-weight: bold;
  font-size: 12px;
  color: #333;
}

.event-title {
  font-size: 14px;
  color: #000;
}


/* 準備中表示：外部CSSのタイムテーブル設定に左右されず中央に表示 */
.preparing-state {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}
.preparing-message {
  display: block !important;
  width: 100%;
  padding: 48px 12px;
  box-sizing: border-box;
  font-family: 'Kiwi Maru', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #000;
  text-align: center;
}
