@charset "UTF-8";
/* マイページの CSS はこの1枚にまとめてある（元は mypage_garapon.css / mypage.css / index.php と mypage_garapon.php 内の <style>）。
   機能ごとに節を分け、各節の PC 用（min-width: 1024px）はその節の末尾に置いている。
   色は57回の common_general.css の変数だけを使う（56回の変数は次のとおり読み替えた）
     --themered → --themeocean / --beige40・--themebeige → --themeskyblue
     --themelightnavy → --thememix / --white → #fff
     ガラポン: --mg-orange → --field / --mg-brown → --themevintage / --mg-ivory → --themecream / --mg-beige → --themewhite

   目次
     1. ページ全体
     2. タブ切り替え（タブ・サブタブ・日付タブ）
     3. My企画タブ：お気に入り一覧と絞り込み
     4. 企画カード（見た目は search/assets/card.css。ここはマイページ用の調整だけ）
     5. スケジュールタブ（タイムテーブル）
     6. お気に入り追加ボタンとモーダル
     7. 使い方（intro.js）
     8. ガラポン企画タブ
     9. 中止になった企画
    10. 使われていないもの（56回からの持ち越し。マイページの PHP / JS に該当するクラスが無い） */

/* ==========================================================================
   1. ページ全体
   ========================================================================== */

/* h3 のデザイン（五角形マーカー）は common_general.css の共通のものを使う */
h3 {
  font-size: 15px;
  margin-top: 30px;
  margin-bottom: 10px;
}

button {
  cursor: pointer;
}

button.disabled {
  background-color: #d3d3d3; /* 灰色 */
  color: #a9a9a9; /* テキストの色 */
  border: 1px solid #c0c0c0; /* 灰色の枠線 */
  cursor: not-allowed; /* 押せないカーソル */
}

.btn {
  margin: 0;
}
.btn a {
  width: 230px;
}

@media screen and (min-width: 1024px) {
  .btn a {
    width: 300px;
  }
}

/* ==========================================================================
   2. タブ切り替え
   ========================================================================== */

/* ----- タブ（My企画 / スケジュール / ガラポン） -----
   見た目は日別おすすめ（search/pickup/day.css の .pd-tab）から ✨（右上の飾りと下線の中央の飾り）を除いたもの。
   白い帯の上に3つ並べ、選ばれていないタブは文字を薄く、hover で濃くなって下線が真ん中から伸びる。
   選ばれているタブは濃いまま下線も出たまま。
   （以前はテンプレページのページ内リンク .anchorlink-list / .a_link を使っていた。#29 の校正で変更） */
.tab_box {
  display: inline-block;
  width: 100%;
  margin: 3% 0;
}

.mp-tabs {
  display: flex;
  width: 90%;
  margin: 0 auto 50px;
  padding: 4px 8px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
}

.mp-tab {
  position: relative;
  flex: 1;
  /* 2行になるタブ（スマホの「My／スケジュール」）があっても文字の高さが揃うように上下中央 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  font-family: "Kiwi Maru", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* 文字は themeocean の単色（以前は日別おすすめと同じ作りのグラデだった） */
.mp-tab__label {
  display: inline-block;
  padding: 0 6px;
  color: var(--themeocean);
  /* 文字の影は付けない（校正 #332。以前は drop-shadow(0 1px 1px) を付けていた） */
  /* 日別おすすめは 0.55。マイページでは使えない機能に見えないよう濃いめにする（#35）。
     選んでいるタブとの差が小さかったので 0.8 → 0.7（校正） */
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.mp-tab:hover .mp-tab__label,
.mp-tab.active .mp-tab__label {
  opacity: 1;
}

/* 下線。ふだんは幅0で、hover で真ん中から左右に伸びる。active では伸びたまま */
.mp-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 10px;
  /* グラデではなく、10px の帯の真ん中に幅 80%・太さ 1.5px の線を1本だけ描く書き方 */
  background: linear-gradient(var(--themeocean), var(--themeocean)) no-repeat
    center / 80% 1.5px;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.34, 1, 0.64, 1);
}

.mp-tab:hover::after,
.mp-tab.active::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .mp-tab__label,
  .mp-tab::after {
    transition: none;
  }
}

@media screen and (min-width: 1024px) {
  .mp-tabs {
    width: 70%;
  }
  .mp-tab {
    padding: 14px 4px;
    font-size: 18px;
  }
}

.panel_area {
  width: 100%;
}

.tab_panel {
  display: none;
}

.tab_panel.active {
  display: block;
}

/* ----- サブタブ ----- */
.subtab_area {
  display: flex;
  margin-top: 30px;
  margin-bottom: 30px;
  justify-content: center;
}

.subtab_btn {
  padding: 8px 16px;
  background: color-mix(in srgb, var(--themeskyblue) 50%, #fff);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--themeocean);
  position: relative;
  width: 130px;
  font-weight: bold;
}
.subtab_btn.active::before {
  position: absolute;
  content: "";
  border-top: 7px solid var(--themeocean);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.subtab_btn.active {
  background: var(--themeocean);
  color: var(--themewhite);
}

.subtab_panel {
  display: none;
}
.subtab_panel.active {
  display: block;
  position: relative;
  top: -10px;
}

/* ----- 日付タブ ----- */
.daypanel_area {
  padding-top: 20px;
}
.daytab_area {
  display: flex;
  width: 100%;
}
.daytab_btn {
  width: calc(100% / 3);
  padding: 6px 14px;
  background: color-mix(in srgb, var(--themeskyblue) 50%, #fff);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--themeocean);
  transition:
    background 0.3s,
    color 0.3s;
  border-radius: 10px 10px 0 0;
}

.daytab_btn:hover {
  background: var(--themeocean);
  color: white;
}

.daytab_btn.active {
  background: var(--themeocean);
  color: white;
  font-weight: bold;
}
.daytab_panel {
  display: none;
}
.daytab_panel.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

@media screen and (min-width: 1024px) {
  .subtab_area {
    margin-top: 50px;
  }
  .subtab_btn {
    width: 200px;
  }
  .daytab_area {
    justify-content: center;
  }
  .daytab_btn {
    width: calc(70% / 3);
  }
  .daytab_panel.active::before {
    height: 2px;
    width: 100%;
    position: absolute;
    content: "";
    background-color: var(--themeocean);
    top: -20px;
  }
  .daytab_panel.active {
    flex-wrap: wrap;
    padding: 10px auto;
  }
}

/* ==========================================================================
   3. My企画タブ：お気に入り一覧と絞り込み
   ========================================================================== */

/* ----- お気に入り一覧・閲覧企画の白い枠 ----- */
/* カードの並べ方は企画検索TOP（css/search_top.css の .cards.event-cards）に合わせる */
.list {
  box-sizing: border-box;
  max-height: 500px;
  min-height: 150px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
  padding: 16px;
  width: 100%;
  overflow-y: scroll;
  background-color: #fff;
  justify-content: center;
  align-items: center;
}
.listEdge {
  padding-bottom: 5%;
  width: 90%;
  margin: 0 auto;
}

/* お気に入りが1件も無いときは、白い枠を押すと「お気に入り企画を追加」のモーダルが開く（校正 #315。mypage.js）。
   押せることが分かるよう、カーソルと一言を出す。絞り込みで0件のとき（カードは隠れているだけ）は対象外 */
#list .list:not(.viewed-list):not(:has(.event-card)) {
  cursor: pointer;
}

#list .list:not(.viewed-list):not(:has(.event-card)) .no-fav-message::after {
  content: "ここを押すと、お気に入りに追加する企画を探せます。";
  display: block;
  margin-top: 6px;
  font-size: 0.9em;
  color: var(--themeocean);
}

/* 白い枠の中にまだ続きがあるとき、続きのある側の端をぼかす（校正 #308。タイムテーブルの横スクロールと同じ考え方）。
   どちら側に続きがあるかは mypage.js が .list に data-more="bottom" / "top" / "both" で付ける */
.list[data-more] {
  --list-fade: 36px;
  -webkit-mask-image: var(--list-fade-image);
  mask-image: var(--list-fade-image);
}

.list[data-more="bottom"] {
  --list-fade-image: linear-gradient(to bottom, #000 calc(100% - var(--list-fade)), transparent);
}

.list[data-more="top"] {
  --list-fade-image: linear-gradient(to top, #000 calc(100% - var(--list-fade)), transparent);
}

.list[data-more="both"] {
  --list-fade-image: linear-gradient(to bottom, transparent, #000 var(--list-fade), #000 calc(100% - var(--list-fade)), transparent);
}

/* ----- 絞り込みの見出し。クリアボタンを右端に置く。左右の余白はフィルター本体と揃える ----- */
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 30px 10% 10px;
}
.filter-head h3 {
  margin: 0;
}

#clear-btn,
#clear-date-btn {
  flex-shrink: 0;
  padding: 1px 12px;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid var(--themeocean);
  border-radius: 7px;
  color: var(--themeocean);
  font-size: 11px;
  transition: all 0.2s;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

#clear-btn p,
#clear-date-btn p {
  margin: 0;
  font-size: 11px;
  color: var(--themeocean);
}

/* ----- ジャンル絞り込み。スマホは1行2個、PC は3個 ----- */
.genre-filter {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 10%;
  width: 100%;
  align-items: center;
  margin-bottom: 20px;
}

/* 枠付きの横並び（アイコン＋文字）。選ぶと色が反転し、hover は大きさで示す（PC のみ） */
.genre-btn {
  height: 25px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.2s;
  background-color: var(--themewhite);
  border: 1.5px solid var(--themeocean);
  border-radius: 9999px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
}

.genre-filter img {
  /* アイコンの幅は全部 24px（PC 27px）にそろえる。体験型（join.svg）だけ横長で幅が広く、
     左の列で体験型と講演会の文字の位置がずれていた（校正）。幅をそろえると同じ文字数の名前は同じ位置に来る。
     絵の大きさは今までどおり 16px で、左右に 4px ずつ足して 24px にする */
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 0 4px;
  transition: filter 0.2s;
}
/* 体験型（join.svg）だけ横長（18×11）なので、正方形の枠だと小さく見える。横に広げて他と揃える */
.genre-filter img[src$="join.svg"] {
  width: 24px;
  height: auto;
  padding: 0;
}

.genre-label {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--themeocean);
  font-family: "Zen Kaku Gothic New", sans-serif;
  transition: color 0.2s;
}

.genre-btn.active {
  background-color: var(--themeocean);
}
/* アイコンは単色（#0C5F81）の SVG なので、白に塗りつぶして反転させる */
.genre-btn.active img {
  filter: brightness(0) invert(1);
}
.genre-btn.active .genre-label {
  color: var(--themewhite);
}

/* ----- 日付絞り込み。3日分を1行に並べる ----- */
.date-filter {
  box-sizing: border-box;
  display: flex;
  padding: 0 10%;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

/* 枠付き。選ぶと文字と背景の色が反転し、hover は大きさで示す（PC のみ） */
.date-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.2s,
    color 0.2s;
  background-color: var(--themewhite);
  border: 1.5px solid var(--themeocean);
  border-radius: 9999px;
  box-sizing: border-box;
  font-size: 12px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  position: relative;
  color: var(--themeocean);
  /* 3日分を1行に並べ、間を空ける */
  width: calc((100% - 20px) / 3);
  height: 25px;
}

.date-btn.active {
  background-color: var(--themeocean);
  color: var(--themewhite);
}

@media screen and (min-width: 1024px) {
  h3 {
    font-size: 18px;
  }

  /* 高さは、スクロールしなくても2段ぶんのカードが見え、3段目の頭が少しのぞく高さ（校正 #308。以前は 330px で1段半） */
  .list {
    max-height: 410px;
    min-height: 150px;
    margin-top: 40px;
    gap: 30px 26px;
  }

  .listEdge {
    width: 68%;
  }

  .filter-head {
    width: 70%;
    margin: 30px auto 10px;
  }
  #clear-btn,
  #clear-date-btn {
    padding: 4px 14px;
  }
  #clear-btn p,
  #clear-date-btn p {
    font-size: 13px;
  }

  #clear-btn:hover,
  #clear-date-btn:hover {
    background-color: var(--themeocean);
    color: var(--themewhite);
  }

  #clear-btn:hover p,
  #clear-date-btn:hover p {
    color: var(--themewhite);
  }

  .genre-filter {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
    width: 70%;
    margin: 10px auto;
    padding: 0;
  }
  .genre-btn {
    height: 30px;
    gap: 8px;
  }
  .genre-filter img {
    width: 18px;
    height: 18px;
    padding: 0 4.5px;
  }
  .genre-filter img[src$="join.svg"] {
    width: 27px;
    height: auto;
    padding: 0;
  }
  .genre-label {
    font-size: 15px;
  }

  .date-filter {
    width: 70%;
    margin: 10px auto;
    padding: 0;
    margin-bottom: 20px;
  }
  .date-btn {
    width: calc((100% - 40px) / 3);
    height: 30px;
    font-size: 16px;
  }

  .genre-btn:hover,
  .date-btn:hover {
    transform: scale(1.08);
  }
}

/* 広い PC ではお気に入り・閲覧企画を3列にする（カード 310px ×3 ＋ 間 26px ×2 ＋ 枠の内側 16px ×2 = 1014px に、
   白い枠の縦スクロールバーの幅（Windows で約17px）と端数のゆとりを足して 1050px）。
   1024〜1279px は 68% では3枚入らないので2列のまま */
@media screen and (min-width: 1280px) {
  .listEdge {
    width: min(94%, 1050px);
  }
}

/* ==========================================================================
   4. 企画カード
   見た目は企画検索TOP と同じ event-card（search/assets/card.css を index.php で読む）。
   HTML は card_functions_mypage.php の renderCard()。ここにはマイページ用の調整だけを書く
   ========================================================================== */

/* 中止の印は企画名の前に出す */
.event-card__title .canceled_badge {
  vertical-align: 1px;
}

/* ==========================================================================
   5. スケジュールタブ（タイムテーブル）
   ========================================================================== */

.no-fav-message-list {
  padding: 0;
}
/* Myスケジュールの「この日は登録された企画がありません。」。リストは padding_true の左右 10% で
   折り返して左寄せ、タイムテーブルは中央1行と食い違っていたので、どちらも中央にそろえる */
#schedule .no-fav-message {
  padding: 0;
  text-align: center;
  white-space: nowrap; /* 1行で収まる長さ（320px 幅でも入る）。リストは入れ物が狭く、句点だけ落ちていた */
}

/* 表の見た目はタイムテーブルページと同じ（search/timetable/timetable.css と timetable_top.css の
   コンパクト表示）。HTML は card_functions_mypage.php の render_timetable_panel。
   ここで決めるのは表の幅だけ。タイムテーブルページは .page-wrapper の左右の余白
   （スマホ 10% / PC 15%）の内側に表があるので、同じ幅にする。
   左の余白が無いと、目盛りの左に出る「中夜祭」などの札が画面の端で切れる */
#schedule_tt .ttwrapper {
  width: 80%;
  margin: 0 auto;
}
@media screen and (min-width: 1024px) {
  #schedule_tt .ttwrapper {
    width: 70%;
  }
}

.programname {
  font-weight: bold;
  width: 100%;
  margin: 0 2%;
  max-height: 60px;
  border-bottom: 2px solid var(--themeocean);
}

@media screen and (max-width: 1023px) {
  /* Myスケジュールのリスト：縦に並ぶカードどうしの間を空ける（くっついていた） */
  .list_card-wrapper .event-card + .event-card {
    margin-top: 16px;
  }
}

@media screen and (min-width: 1024px) {
  .list_card-wrapper {
    width: 70%;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 30px 26px;
  }
  .programname {
    font-size: 20px !important;
    width: 100%;
  }
}

/* ==========================================================================
   6. お気に入り追加ボタンとモーダル
   ========================================================================== */

/* ----- モーダルを開くボタン -----
   「お気に入り企画を追加」（.card-plus-open）も「使い方を見る」（.modal-open）と同じ見た目。右端の＋は疑似要素で描く */
#schedule .card-plus {
  margin-top: 30px;
}
.card-plus-open {
  margin: 0 auto;
  text-align: center;
}
.card-plus-open p {
  margin: 0;
  color: inherit;
  font: inherit;
  /* 共通の p は両端揃え（左寄せ）なので、PC の幅の広い枠で文字が左に寄っていた（校正 #296） */
  text-align: center;
}
.modal-open,
.card-plus-open {
  display: block;
  width: fit-content;
  font-family: "Kiwi Maru", sans-serif;
  font-weight: 500;
  font-size: 12px;
  padding: 0.6em 3.5em;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
  color: var(--themeocean);
  border: 1.5px solid var(--themeocean);
  background-color: var(--themewhite);
}
.modal-open::before,
.card-plus-open::before {
  position: absolute;
  content: "";
  display: block;
  width: 0.8em;
  height: 1px;
  background-color: var(--themeocean);
  right: 13px;
  top: 50%;
  transform: translate(0, -50%);
}
.modal-open::after,
.card-plus-open::after {
  position: absolute;
  content: "";
  display: block;
  width: 0.8em;
  height: 1px;
  background-color: var(--themeocean);
  right: 13px;
  top: 50%;
  transform: translate(0, -50%) rotate(90deg);
}

.modal-open:hover,
.card-plus-open:hover {
  background: var(--themeocean);
  color: var(--themewhite);
}
/* 「♥お気に入り企画を追加」の♥（#49）。文字と同じ色で、ホバーで白くなる。
   形はお気に入りボタンと揃えるため img/icon/heart_gray.svg を使い、色は文字色（currentColor）で塗る */
.card-plus-heart {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.3em;
  vertical-align: -0.15em;
  background: currentColor;
  -webkit-mask: url(/visitor/img/icon/heart_gray.svg) no-repeat center / contain;
  mask: url(/visitor/img/icon/heart_gray.svg) no-repeat center / contain;
}

/* 「お気に入り企画を追加」と、その下の「閲覧企画」の見出しの間を空ける（#32・#44） */
#list .viewed-heading {
  margin-top: 60px;
}
@media screen and (min-width: 1024px) {
  #list .viewed-heading {
    margin-top: 90px;
  }
}

/* 「My企画Pageの使い方を見る」の右端は＋ではなく「？」にする（#34）。
   ＋だと下から何か出てきそうに見えるため。使い方は吹き出しで説明が出る */
.introduction-toggle .modal-open::before {
  content: none;
}
/* 丸と「?」の大きさは整数の px で決め、上下中央は flex でそろえる。
   以前は em（スマホ 14.28px・PC 19.04px）と translate(-50%) で置いていて、半端な px の丸め方が
   ボタンの位置（上の余白が % なので画面幅で変わる）によって変わり、幅 1200px 以上で「?」が上下中央からずれていた。
   line-height: 1em も丸の高さより小さく、文字が丸の上に寄っていた */
.introduction-toggle .modal-open::after {
  content: "?";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  right: 10px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  transform: none;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: none;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}
@media screen and (min-width: 1024px) {
  .introduction-toggle .modal-open::after {
    width: 19px;
    height: 19px;
    font-size: 13px;
  }
}
.introduction-toggle .modal-open:hover::after {
  background: none;
}

/* 右端の＋も白に（青地に青い線で消えていた） */
.modal-open:hover::before,
.modal-open:hover::after,
.card-plus-open:hover::before,
.card-plus-open:hover::after {
  background-color: var(--themewhite);
}

/* 「お気に入り企画を追加」の＋は、1つの箱に縦横の線を背景で描く。
   線2本を別々の疑似要素で描き、片方を rotate(90deg) で縦にしていたが、
   幅が 0.8em（スマホで 9.6px）と半端なうえ translate(-50%) で位置もずれるため、
   スマホで縦線と横線の太さ・中心がずれて見えた。
   箱を奇数の整数 px にして transform を使わないと、線がピクセルに揃い中心も一致する。
   色は currentColor なので、ホバーで文字が白くなると＋も白くなる */
.card-plus-open::before,
.card-plus-open:hover::before {
  width: 11px;
  height: 11px;
  margin-top: -5px;
  transform: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
.card-plus-open::after {
  content: none;
}
@media screen and (min-width: 1024px) {
  .card-plus-open::before,
  .card-plus-open:hover::before {
    width: 13px;
    height: 13px;
    margin-top: -6px;
  }
}

/* ----- 背景 ----- */
#overlay {
  background: var(--thememix);
  opacity: 0.8;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9800;
}

#overlay1,
.overlay {
  background: rgba(0, 0, 0, 0.8); /* 透明度の高い黒 */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9800;
  transition: opacity 0.3s ease;
}

/* ----- モーダル本体 ----- */
.modal-window {
  position: fixed;
  display: none;
  width: 90%;
  max-width: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9100;
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  color: #fff;
  /* ×は文字ではなく図形で大きめに描く（校正 #304。文字の「×」は小さく、丸の中央からもずれやすかった）。
     タイムテーブルの小窓の閉じるボタン（timetable.css の .popup-content .close）と同じ描き方 */
  font-size: 0;
  background: var(--themeocean)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M13 13l14 14M27 13l-14 14' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
}

.modal-content {
  background: var(--themewhite);
  text-align: left;
  line-height: 1.8;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  border-radius: 12px;
  align-items: center;
  position: relative;
  width: 80%;
  margin: 0 auto;
  padding-bottom: 20px;
}
.modal-content img {
  aspect-ratio: 1 / 1;
  height: calc(70px + 100vh / 20);
}

/* 右上の「?」（使い方を出す） */
.modal-help {
  position: absolute;
  right: 30px;
  top: 10px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--themeocean);
  color: var(--themewhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-help:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal_title {
  font-family: "Kiwi Maru", sans-serif;
  font-weight: 500;
  border-bottom: 1px solid var(--themeocean);
  margin-bottom: 5px;
  margin-top: 35px;
  font-size: 15px;
}

@media screen and (min-width: 1024px) {
  #schedule .card-plus {
    margin-top: 50px;
  }
  .modal-open,
  .card-plus-open {
    width: 450px;
    font-size: 16px;
  }
  .modal-content {
    padding-bottom: 30px;
  }
  .modal-help {
    width: 40px;
    height: 40px;
  }
  .modal_title {
    font-size: 20px;
    border-width: 2px;
  }
}

/* ==========================================================================
   7. 使い方（intro.js）
   ========================================================================== */

.introduction-toggle {
  display: block;
  width: fit-content;
  margin: 10% auto 5% auto;
  border: none;
}

/* オーバーレイとヘルパーがモーダルより前面に表示されるように（9999未満） */
.introjs-overlay {
  z-index: 9200 !important;
  transition: all 0.3s ease-in-out !important;
}

.introjs-helperLayer {
  z-index: 9300 !important;
  box-shadow:
    var(--themeocean) 0px 0px 1px 2px,
    rgba(33, 33, 33, 0.5) 0px 0px 0px 5000px !important;
  transition: all 0.3s ease-in-out !important;
}

.introjs-tooltipReferenceLayer {
  z-index: 9400 !important;
}

/* チュートリアル中は PAGE TOP ボタンを隠す。囲み（.introjs-helperLayer）は中が透明な枠で、
   暗くするのは外側の影だけなので、囲みの中に重なった #pagetop がそのまま透けて見えていた。
   body.is-tutorial は tutorial.js の runTutorial が付け外しする */
body.is-tutorial #pagetop {
  visibility: hidden;
}
/* 下のナビ（スマホ）も同じく、囲みが下まで伸びたときに囲みの中に透けて見えていた。使い方の間は隠す */
body.is-tutorial #header_bot {
  visibility: hidden;
}

.introjs-tooltip {
  background-color: var(--themewhite) !important;
  border: 2px solid var(--themeocean) !important;
  border-radius: 5px !important;
  transition: all 0.3s ease-in-out !important;
}
.introjs-tooltiptext {
  padding: 10px !important;
  font-family: "Zen Kaku Gothic New", sans-serif !important;
  background-color: white !important;
  width: 90% !important;
  margin: 5px auto !important;
  box-shadow: 2px 2px 2px 2px white !important;
  font-size: 12px !important;
}

.introjs-bullets ul li a {
  background: var(--themeskyblue) !important;
}
.introjs-bullets ul li a.active {
  background: var(--themeocean) !important;
}
.introjs-button {
  border: 2px solid var(--themeocean) !important;
  color: var(--themevintage) !important;
  text-shadow: none !important; /* introjs.min.css が後から読まれて白い影を付けるので !important */
  border-radius: 30px !important;
  font-family: "Zen Kaku Gothic New", sans-serif !important;
}

.introjs-disabled {
  opacity: 0.7;
}

/* 吹き出しの三角。外側（青い枠）を三角そのもので、内側（地の色）を ::after で描き、
   本体の枠線と切れ目なくつなげる（以前は枠なしで、本体からも 2px 離れていた）。
   本体の枠は 2px。外側の三角は 10px、内側は 8px で、斜めの辺の枠が約 2.8px になる */
.introjs-arrow.top,
.introjs-arrow.top-right,
.introjs-arrow.top-middle,
.introjs-arrow.bottom,
.introjs-arrow.bottom-right,
.introjs-arrow.bottom-middle {
  border-width: 10px;
}
.introjs-arrow.top-middle,
.introjs-arrow.bottom-middle {
  margin-left: -10px !important;
}
.introjs-arrow.top,
.introjs-arrow.top-right,
.introjs-arrow.top-middle {
  top: -20px !important; /* introjs.min.css が後から読まれるので !important */
  border-bottom-color: var(--themeocean) !important;
}
.introjs-arrow.bottom,
.introjs-arrow.bottom-right,
.introjs-arrow.bottom-middle {
  bottom: -20px !important;
  border-top-color: var(--themeocean) !important;
}
.introjs-arrow.top::after,
.introjs-arrow.top-right::after,
.introjs-arrow.top-middle::after,
.introjs-arrow.bottom::after,
.introjs-arrow.bottom-right::after,
.introjs-arrow.bottom-middle::after {
  content: "";
  position: absolute;
  left: -8px;
  border: 8px solid transparent;
}
/* 内側の三角の底辺を本体の枠の内側まで下ろして、三角の根元の枠線を消す */
.introjs-arrow.top::after,
.introjs-arrow.top-right::after,
.introjs-arrow.top-middle::after {
  top: -4px;
  border-bottom-color: var(--themewhite);
}
.introjs-arrow.bottom::after,
.introjs-arrow.bottom-right::after,
.introjs-arrow.bottom-middle::after {
  top: -12px;
  border-top-color: var(--themewhite);
}
/* 吹き出しが囲みの左右に出たときの三角（left / left-bottom / right / right-bottom）も、上下と同じ形にする（校正 #342。
   PC では画面が広いと左右に出ることがあり、intro.js 既定の白い小さな三角のままで、スマホと見た目が違っていた） */
.introjs-arrow.left,
.introjs-arrow.left-bottom,
.introjs-arrow.right,
.introjs-arrow.right-bottom {
  border-width: 10px;
}
.introjs-arrow.left,
.introjs-arrow.left-bottom {
  left: -20px !important;
  border-right-color: var(--themeocean) !important;
}
.introjs-arrow.right,
.introjs-arrow.right-bottom {
  right: -20px !important;
  border-left-color: var(--themeocean) !important;
}
.introjs-arrow.left::after,
.introjs-arrow.left-bottom::after,
.introjs-arrow.right::after,
.introjs-arrow.right-bottom::after {
  content: "";
  position: absolute;
  top: -8px;
  border: 8px solid transparent;
}
.introjs-arrow.left::after,
.introjs-arrow.left-bottom::after {
  left: -4px;
  border-right-color: var(--themewhite);
}
.introjs-arrow.right::after,
.introjs-arrow.right-bottom::after {
  left: -12px;
  border-left-color: var(--themewhite);
}

/* intro.js の矢印は class="introjs-arrow top" になるため、timetable.css の「表トップへ」用の
   .top::before（Font Awesome の矢印）まで付いてしまう。矢印の上では消す */
.introjs-arrow.top::before {
  content: none;
}

/* スタート時専用スタイル（遅いアニメーション） */
.introjs-tooltip.initial-start {
  transition: all 1.2s ease-in-out !important;
}

.introjs-overlay.initial-start {
  transition: all 1.2s ease-in-out !important;
}

.introjs-helperLayer.initial-start {
  transition: all 1.2s ease-in-out !important;
}

/* 特定のステップのツールチップ専用スタイル */
.introjs-tooltip.step4-tooltip {
  margin-top: 78px !important;
}

.introjs-tooltip.step5-tooltip {
  margin-left: 30px !important;
}

@media screen and (min-width: 1024px) {
  .introduction-toggle {
    margin: 5% auto 3% auto;
  }
  .introjs-tooltiptext {
    font-size: 15px !important;
  }
  .introjs-tooltip.step4-tooltip {
    margin-top: 15px !important;
  }
}

/* ==========================================================================
   8. ガラポン企画タブ（元 mypage_garapon.css / mypage_garapon.php 内の <style>）
   ========================================================================== */

/* 説明文の中のリンク（「一橋祭アンケート」）。共通の .textlink は黒字に下線だけで強調と見分けにくいので、
   このタブでは文字も青にする。共通側を変えると全ページに効くので、ここだけで上書きする */
.each_intro .textlink {
  color: var(--themeocean);
}
.each_intro .textlink:hover {
  opacity: 0.7;
}

#top-wrapper {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 30px;
  border-radius: 15px;
  background-color: var(--themeskyblue);
  width: 71%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#top-wrapper p {
  font-size: 18px;
  font-weight: 600;
}

.top-first {
  margin-top: 10px;
}

p.garapon-finish-message {
  margin: -5px 10% 12px 10%;
  color: var(--themeocean);
  font-size: 14px !important;
  text-shadow: 0.5px 0.5px 1px #efd669cc;
}

.top-second {
  /* 「0回」の塊を枠の左右中央に（校正 #311。以前は左に 5% の余白があり、右に寄っていた）。回数は1桁の前提 */
  margin-left: 0;
  margin-bottom: 8px;
  margin-top: -5px;
  text-align: center;
}

#top-wrapper p span {
  font-size: 48px;
  font-family: "Kiwi Maru", sans-serif;
  font-weight: 500;
  margin-right: 8px;
  color: var(--themeocean);
  text-shadow: 1px 1px 3px
    color-mix(in srgb, var(--themevintage) 40%, transparent);
}

#state_wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.each_state {
  border: 2px solid var(--themeskyblue);
  color: var(--themeocean);
  width: 64%;
  position: relative;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
}

#survey_state_wrapper {
  border: 2px solid var(--themeocean);
}

.each_state .state-top {
  color: var(--themeocean);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: -5px;
}

.state-topright {
  position: absolute;
  top: -1em;
  right: -2px;
  background-color: var(--themeocean);
  color: var(--themewhite);
  font-size: 14px;
  padding: 1px 5px;
  font-weight: bold;
}

.state-topright-survey {
  font-size: 16px;
  border: 2px solid var(--themeocean);
  background: var(--themeocean);
  padding: 1px 9px;
}

.state-main {
  display: flex;
  height: 60px;
  font-size: 30px;
  font-weight: 700;
  font-family: "Kiwi Maru", sans-serif;
  justify-content: center;
  align-items: center;
  color: var(--themeblack);
}
/* 回答済み・投票済み（1回以上）は青。回答済みと3回投票済みは金色の影も付ける */
.state-main.is-done,
.state-main.is-voted {
  color: var(--themeocean);
}
/* まだのとき（未回答・回答中・未投票）は細めに */
.state-main:not(.is-done):not(.is-voted) {
  font-weight: 500;
}
.state-main.is-done,
.state-count.is-done {
  text-shadow: 1px 1px 1px #efd669cc;
}
.state-count {
  font-size: 43px;
}

.state-main-contest {
  align-items: baseline;
  font-size: 14px;
  margin-left: 26px;
}

.state-main-contest span {
  margin-right: 4px;
}

.template_btn {
  text-align: center;
  position: relative;
  margin-bottom: 3px;
  margin-top: 9px;
}

.template_btn a {
  color: var(--themeocean);
  border: 1px solid var(--themeocean);
  display: inline-block;
  font-family: "Kiwi Maru", sans-serif;
  font-weight: 500;
  font-size: 11px;
  position: relative;
  transition: all 0.3s;
  line-height: 1.4;
  padding: 0.6em 2em;
}

.template_btn a:hover {
  color: var(--themewhite);
  background-color: var(--themeocean);
}

/* 矢印の線は背景ではなく border で描く（下の .garapon_btn span と同じ理由）。
   top:50% が端数になるボタンとならないボタンで、背景の線は太さが変わって見えた */
.template_btn span {
  display: inline-block;
  width: 36px;
  height: 0;
  border-top: 1px solid var(--themeocean);
  position: absolute;
  top: 50%;
  right: -19px;
  transition: all 0.3s;
}

.template_btn a:hover span {
  right: -26px;
}

.template_btn a:hover span::after {
  background-color: var(--themeocean);
}

.template_btn span::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 7px;
  transform: rotate(35deg);
  right: -1px;
  top: -3px; /* 線の上端から -2px（border の 1px ぶん上げる） */
  background-color: currentColor;
}

#garapon_intro_wrapper {
  margin-top: 48px;
}

#garapon_intro_wrapper img {
  width: 70%;
  height: auto;
  margin: 15px 15%;
}

#contest_intro_wrapper {
  margin-top: 48px;
}

.each_intro p {
  padding-left: 10%;
  padding-right: 10%;
}

.garapon_btn {
  margin: 20px 0 30px 0 !important;
}
/* ボタンが2つ続くところ（特設ページ・アンケート）は間を詰める */
.garapon_btn:has(+ .garapon_btn) {
  margin-bottom: 12px !important;
}
.garapon_btn + .garapon_btn {
  margin-top: 12px !important;
}

.garapon_btn a {
  padding: 0.6em;
}

/* 右の矢印の線を、背景ではなく border で描く。
   共通パーツ（common_general.css の .btn span）は height:1.5px の背景で描いていて、
   top:50% の位置が端数になるボタンでは 1px、ならないボタンでは 2px に丸められ、
   ボタンごとに線の太さが違って見えた。border は位置に関係なく枠線と同じ太さに揃う。
   矢じり（::after）は線の上端からの位置を元と同じにするため、border の分だけ上げる */
.garapon_btn span {
  height: 0;
  background: none;
  border-top: 1.5px solid var(--themeocean);
}
.garapon_btn span::after {
  top: -3.5px;
}

/* ----- ガラポンの確認モーダル ----- */
.garaponmodal {
  display: none; /* 初期は隠す */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.garaponmodal-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  max-width: 350px;
}
.garaponmodal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

/* 「ガラポンを引きました」と確認モーダルのボタン。
   共通の .btn / .btn_red は中の <a> にだけ見た目を付けるので、<button> にはブラウザの素の見た目が出ていた */
#opengaraponModalBtn,
.garaponmodal-buttons .btn {
  margin: 0;
  padding: 0.7em 2em;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: var(--themeocean);
  border: 1.5px solid var(--themeocean);
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.3s;
}
#opengaraponModalBtn {
  margin-bottom: 18px;
}
.garaponmodal-buttons .btn_gray {
  color: var(--themeblack);
  background: #fff;
  border-color: #aaa;
}
#opengaraponModalBtn:hover,
.garaponmodal-buttons .btn:hover {
  opacity: 0.8;
}

@media screen and (min-width: 1024px) {
  .template_btn a {
    font-size: 13px;
  }

  .each_intro p {
    padding-left: 15%;
    padding-right: 15%;
  }

  #garapon_intro_wrapper img {
    width: 30%;
    height: auto;
    margin: 15px 35%;
  }
}

/* ==========================================================================
   9. 中止になった企画
   お気に入りからは消さず、カードと TT に「中止」と出して残す（card_functions_mypage.php）
   ========================================================================== */

.canceled_badge {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: 3px;
  background: var(--decoration);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.6;
  vertical-align: middle;
}
.card_canceled .event-card__thumb img {
  filter: grayscale(1);
  opacity: 0.6;
}
/* ==========================================================================
   10. 使われていないもの
   56回からの持ち越し。マイページの PHP / JS に該当するクラス・ID が見当たらない（2026-10-11 時点）。
   使う予定が無ければ消してよい
   ========================================================================== */

/* ----- 旧モーダル ----- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-sizing: border-box;
  z-index: 5000;
}
.modal:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  margin-left: -0.2em;
}
.modal.is-active {
  opacity: 1;
  visibility: visible;
}

#modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

#modal .modal-content {
  background-color: #fefefe;
  margin: 30vh auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
}

#modal.is-hidden {
  display: none;
}

#modal.is-shown {
  display: block;
}

#modal .close {
  color: #aaa;
  float: right;
  font-size: 100%;
  font-weight: bold;
}

#modal .close:hover,
#modal .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal_scroll {
  max-height: 500px;
}
.modal-title {
  font-weight: bold;
  font-size: 15px;
  color: var(--themeocean);
}
.modal_search {
  font-size: 12px;
  width: 70%;
  height: 30px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.modal_search::before {
  content: "→";
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
}
.modal_btn {
  display: flex;
  width: 100%;
  max-width: 440px;
  gap: 10px;
  flex-direction: row;
  transition: all 0.5s;
  align-items: flex-start;
  justify-content: center;
}
.modal_btn:nth-of-type(even) {
  flex-direction: row-reverse;
}
.modal_btn img {
  width: 40%;
  height: fit-content;
  aspect-ratio: 3/2;
}
.modal_detail {
  font-size: 0.7em;
}
.modal_btn:hover {
  transform: scale(1.05);
}

/* ----- スタンプカード（旧モーダル new） ----- */
#overlay-new {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9800;
}

.modal-window-new {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--field);
  z-index: 9900;
  width: 80%;
  border-radius: 12px;
  max-width: 600px;
}

.modal-open-new {
  display: block;
  width: fit-content;
  margin: 3% auto 0 auto;
  font-family: "Kiwi Maru", sans-serif;
  font-weight: 500;
  font-size: 12px;
  border-radius: 9999px;
  padding: 0.6em 3.5em;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
  color: var(--themeocean);
  border: 1.5px solid var(--themeocean);
}
.modal-open-new::before {
  position: absolute;
  content: "";
  display: block;
  width: 0.8em;
  height: 1px;
  background-color: var(--themeocean);
  right: 13px;
  top: 50%;
  transform: translate(0, -50%);
}
.modal-open-new::after {
  position: absolute;
  content: "";
  display: block;
  width: 0.8em;
  height: 1px;
  background-color: var(--themeocean);
  right: 13px;
  top: 50%;
  transform: translate(0, -50%) rotate(90deg);
  transition: all 0.3s;
}

.modal-open-new:hover {
  background: var(--field);
  color: #fff;
  border-color: var(--field);
}

.modal-open-new:hover::before,
.modal-open-new:hover::after {
  background-color: #fff;
}

.modal-close-new {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--themevintage);
  border-radius: 50%;
  cursor: pointer;
}

.modal-content-new {
  width: 100%;
  height: 100%;
}

.stampcard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 40px;
  align-items: center;
  justify-items: center;
  margin: 5px 10px;
}
.card_name {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 8px;
}

.stamp {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  max-width: 200px;
  flex-flow: column;
}

.stampcard .name p {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 0.7em;
}

.stamp img {
  width: 80%;
}

.card_explain {
  background: var(--themecream);
  padding: 5px 10px;
  border-radius: 10px;
}
.card_title,
.stamp_card,
.card_name,
.card_explain {
  margin: 0 20px;
}
.stamp p {
  font-size: 8px;
}

.card_btn button {
  width: 100%;
  margin-top: 10px;
  height: 50px;
  background-color: var(--themewhite);
  border: none;
  border-radius: 0 0 5px 5px;
  font-family: "Kiwi Maru", sans-serif;
}

/* ----- 紙吹雪 ----- */
.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  background-color: #ffcc00;
  opacity: 0.8;
  border-radius: 50%;
  pointer-events: none;
  animation: fall linear infinite;
  z-index: 500;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}

/* ----- その他 ----- */
.wave {
  position: relative;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  margin-top: -50px;
  z-index: -1;
}
.wave img {
  position: relative;
  display: block;
  width: calc(143% + 1.3px);
  height: 119px;
  max-width: 100%;
}

.midashi2 {
  padding: 0 10%;
}

.h3_wrapper span,
.h3_wrapper span::before,
.h3_wrapper span::after {
  background: #fff;
}

.h3_wrapper {
  translate: -10px;
}

.favevent_h1 h1 {
  margin-bottom: 0;
  padding-bottom: 30px;
  background: #fff;
}

.btn_area_genre > .tab_btn {
  font-size: 0.8em;
}

.garaponbtn_gray {
  background: #aaa;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
}

p.hinmoku {
  font-size: 12px;
  color: var(--themeblack);
  font-family: "Kiwi Maru", sans-serif;
  line-height: 1.2;
}

#voted_booths {
  margin-top: 28px;
}

#contest_booths_wrapper {
  margin-left: 10%;
  margin-right: 10%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#contest_booths_wrapper .card_event {
  width: 190px;
}

#contest_booths_wrapper p {
  padding-left: 0;
  padding-right: 0;
}

@media screen and (min-width: 1024px) {
  .midashi2 {
    padding: 0 15%;
  }

  .stamp p {
    font-size: 12px;
  }

  .modal-window-new {
    width: 60%;
  }

  .modalbtn-wrapper {
    display: flex;
    width: 50%;
    margin: 0 auto;
    justify-content: center;
  }

  #contest_booths_wrapper {
    margin-left: 15%;
    margin-right: 15%;
  }
}

/* ==========================================================================
   My企画タブ：絞り込みの置き場所（校正 #331。企画検索TOP の css/search_top.css と同じ形）
   スマホ … 「絞り込み」ボタン → 下からせり上がるシート（開け閉めは mypage.js「絞り込みのシート」）
   PC    … 一覧の左に常に出す
   細かい見た目（色・大きさ）はあとで決める。いまは形だけ
   ========================================================================== */

/* ---- スマホ：ボタン ---- */
.mp-filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px; /* 校正。以前は 32px で押しにくかった */
  margin: 0 5% 12px auto;
  padding: 0 14px 0 12px;
  background: var(--themeocean);
  border: 1px solid var(--themeocean);
  border-radius: 19px;
  color: var(--themewhite);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.mp-filter-toggle img {
  width: 14px;
  height: auto;
}

/* 選んでいる条件の数 */
.mp-filter-toggle__count {
  min-width: 18px;
  padding: 2px 4px;
  background: var(--themewhite);
  border-radius: 9px;
  color: var(--themeocean);
  font-size: 11px;
  font-weight: bold;
  text-align: center;
}

.mp-filter-toggle__count[hidden] {
  display: none;
}

/* ---- スマホ：シート ---- */
.mp-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mp-filter-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

body.is-mp-filter-open {
  overflow: hidden;
}

.mp-filter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  max-height: 80dvh;
  background: var(--themewhite);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.3s;
}

.mp-filter.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.mp-filter__head {
  position: relative;
  flex: none;
  padding: 14px 16px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--themeocean) 20%, transparent);
  text-align: center;
}

.mp-filter__title {
  margin: 0;
  text-align: center;
  font-family: "Kiwi Maru", sans-serif;
  font-size: 15px;
  color: var(--themeocean);
}

.mp-filter__close {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 28px;
  height: 28px;
  padding: 0;
  margin-top: -14px;
  border: 0;
  background:
    linear-gradient(var(--themeocean), var(--themeocean)) center / 18px 2px no-repeat,
    linear-gradient(var(--themeocean), var(--themeocean)) center / 2px 18px no-repeat;
  transform: rotate(45deg);
  cursor: pointer;
}

/* 条件だけをスクロールさせる */
.mp-filter__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 8px;
}

.mp-filter__foot {
  flex: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--themeocean) 20%, transparent);
}

.mp-filter__done {
  display: block;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--themeocean);
  color: var(--themewhite);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .mp-filter,
  .mp-filter.is-open,
  .mp-filter-overlay,
  .mp-filter-overlay.is-open {
    transition: none;
  }
}

/* ---- PC：一覧の左に常に出す ---- */
@media screen and (min-width: 1024px) {
  .mp-fav {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: min(94%, 1300px);
    margin: 30px auto 0;
  }

  .mp-filter-toggle,
  .mp-filter-overlay,
  .mp-filter__head,
  .mp-filter__foot {
    display: none;
  }

  body.is-mp-filter-open {
    overflow: visible;
  }

  /* シートにはせず、スクロールしても見えたままにする（固定ヘッダー 70px の下） */
  .mp-filter,
  .mp-filter.is-open {
    position: sticky;
    top: 90px;
    z-index: auto;
    max-height: calc(100vh - 110px);
    background: #fff;
    border-radius: 12px;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .mp-filter__body {
    padding: 16px;
  }

  /* 左の欄の幅（280px）に合わせて、絞り込みの部品の幅・余白を詰める（PC の 70% 幅の指定を打ち消す） */
  .mp-filter .filter-head {
    width: auto;
    margin: 0 0 10px;
  }

  .mp-filter .filter-head h3 {
    font-size: 15px;
  }

  .mp-filter .genre-btn {
    padding: 0 4px;
  }

  /* 7つ目（パフォーマンス）は文字が長いので、2列ぶんの幅にする */
  .mp-filter .genre-btn:last-child {
    grid-column: 1 / -1;
  }

  .mp-filter .genre-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    margin: 0 0 24px;
    padding: 0;
  }

  .mp-filter .genre-label {
    font-size: 14px;
  }

  .mp-filter .date-filter {
    width: auto;
    margin: 0 0 8px;
    padding: 0;
  }

  /* 3日分を1行に。「23日(月・祝)」は文字が多いので、その枠だけ広くして文字を大きくする（校正。
     以前は3つとも同じ幅で 12px、23日は枠に文字がぎりぎりだった） */
  .mp-filter .date-filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 8px;
  }
  .mp-filter .date-btn {
    width: auto;
    font-size: 14px;
    white-space: nowrap;
  }

  /* 見出しの五角形のアイコンは全体の h3（PC 28px）のままだと、ここの見出し（15px）より大きく、
     上の端をそろえているので下にずれて見えた（校正）。小さくして文字の上下中央に置く */
  .mp-filter .filter-head h3 {
    padding-left: 26px;
  }
  .mp-filter .filter-head h3::before {
    width: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* 一覧は右の欄いっぱいに */
  .mp-fav__main .listEdge {
    width: 100%;
  }

  .mp-fav__main .list {
    margin-top: 0;
  }
}

/* スマホのシートの中の部品は、シートの左右の余白に合わせる */
@media screen and (max-width: 1023px) {
  .mp-filter .filter-head {
    margin: 16px 5% 10px;
  }

  .mp-filter .genre-filter,
  .mp-filter .date-filter {
    padding: 0 5%;
  }
}
