@charset "utf-8";

/* ==================================================
   1. 変数（サイト全体のカラー設定）
================================================== */
:root {
  --main-color: #FFB61C;
  --main-color-rgb: 255,182,28;
  --sub-color: #d99c02;
  --sub-color-rgb: 217,156,2;
  --accent-color: #03a39b;
  --accent-color-rgb: 3,163,155;
  --global-text-color: #444;
  --global-heading-color: #444;
  --bottom-nav-height: 58px; /* 【2026-09-20追加】下部固定ナビ（スマホ専用）の高さ */
}

/* ==================================================
   1-b. アクセシビリティ用ユーティリティ
================================================== */
/* 見た目には出さないが、スクリーンリーダー・検索エンジンには読ませたいテキスト用
   （例：メインビジュアルのh1。ティッカーはaria-hidden="true"のため、内容の代わりに使用） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================================================
   2. ベースレイアウト（全体設定）
================================================== */
html {
  font-size: 16px;
  scrollbar-gutter: stable; /* ハンバーガーの開閉時のスクロールバー分 */
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: clamp(14px, 1.5vw + 8px, 17px);
  line-height: 1.5;
  color: var(--global-text-color);
  background-color: rgba(var(--main-color-rgb), .3);
}

/* 見出し（h1・h2）はYusei Magicを使用 */
h1, h2 {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 900;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 50px;
}
@media (min-width: 768px) {
  main { margin-top: 70px; }
}
/* 【2026-10-03追加】各ページでfooterの直前に来る最後のsectionは、
   下の余白を広めに取ってfooterとの間にゆとりを持たせる。
   main直下のsectionなら、どのテンプレート／どのsectionが最後でも自動で効く。 */
main > section:last-of-type {
  padding-bottom: 80px;
}
@media (min-width:1920px) {
  main { padding-top: 100px; }
}

img {
  display: inline-block;
  width: 100%;
}

/* 共通コンテナ */
.inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.375rem;
  color: var(--global-heading-color);
}
@media (min-width: 768px) {
  .page-title { font-size: 1.75rem; }
}
/* RAMUNE君（マスコット）アイコンを左に添えるh1（各ページ共通） */
.page-title--with-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.page-title__mascot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

#wpadminbar {
  display: none !important;
}

/* ==================================================
   3. ヘッダー周り
================================================== */
header {
  display: flex;
  background-color: #806b36;
  height: min(50px);
  color: #000;
  padding-inline: 3%;
  position: fixed;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1001; /* Leaflet controls 最大値(~1000)より上 */
  justify-content: space-between;
  align-items: center;
  transition: background-color 1s ease-out, border-radius .3s ease-out, height .5s ease-out;
}
header.is-scroll {
  background-color: rgba(128, 107, 54,.5);
  backdrop-filter: blur(12px);
}
header .logo-area {
  transition: .5s ease-out;
  padding-inline: 5%;
}
header h1 {
  font-weight: 700;
  width: 35%;
  max-width: 200px;
  margin: 0;
  white-space: nowrap;
  transition: transform .5s ease-out;
}
header h1 a {
  margin: 0 auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
header h1 img {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 100/30;
  max-width: 130px;
  padding: .2em;
  z-index: 200;
}

/* ベータ版表記 */
header .beta-notice {
  margin: 0;
  font-size: 0.875rem;
  color: #bbb;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
header .beta-notice .beta-badge {
  display: inline-block;
  background: var(--main-color);
  color: #fff;
  font-size: 0.875rem;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.4;
}
/* スマホは「β」バッジのみ */
header .beta-notice .beta-text {
  white-space: break-spaces;
}
@media (min-width: 768px) {
  header .beta-notice .beta-text {
    display: inline;
  }
}

/* PCメニュー */
header .PC-menu { display: none; }
header .PC-menu ul { display: flex; flex-direction: row; align-items: stretch; }
header .PC-menu ul li { width: auto; display: flex; }
header .PC-menu ul li a {
  display: flex; padding: .5em; color: #fff;
  border-right: .7px solid rgba(38, 88, 151, .3);
  transition: all .3s ease-out;
  font-size: 0.75rem; line-height: 1;
  align-items: center;
}

header .PC-menu ul li a small { font-size: .7em; }
header .PC-menu ul li:last-of-type a { border-right: none; }
header .PC-menu ul li a:hover { background-color: var(--accent-color); }
header .PC-menu ul li.current a { background-color: var(--main-color); color: #fff; }

/* SPメニュー */
header .SP-mymenu {
  display: flex;
  align-items: center;
  gap: 4px;
}
header .SP-mymenu li a.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid currentColor;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
header .SP-mymenu li a.sp-btn img {
  width: 20px !important;
  height: 20px !important;
  margin-right: 0 !important;
}
/* ログインボタンはアクセントカラー */
header .SP-mymenu li a.swpm-login-btn {
  background-color: var(--main-color);
  border-color: var(--main-color);
}

header .SP-mymenu li a.swpm-logout-btn {
  border-color: #aaa;
  color: #666;
}
header .SP-mymenu li a.nav-item {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: #fff;
}

/* ヘッダー・レスポンシブ */
@media (max-width: 559px) {
  header .beta-notice { position: relative; cursor: pointer; }
  header .beta-notice .beta-text {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 0.875rem;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    z-index: 200;
  }
  /* 吹き出しの三角 */
  header .beta-notice .beta-text::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #333;
  }
  header .beta-notice.is-open .beta-text { display: block; }
  header .SP-mymenu li a.sp-btn { font-size: 0.875rem; padding: 1px 4px; gap: 2px; }
  header .SP-mymenu { gap: 3px; }
}
/* 狭幅スマホ（370px前後）で「マイページ」「ログアウト」が重なるため、
   ここだけサイト全体の最小14pxルールの例外として縮小する */
@media (max-width: 400px) {
  header .SP-mymenu li a.sp-btn { font-size: 0.6875rem; padding: 1px 3px; gap: 2px; }
}
@media (min-width: 768px) {
  header { height: 70px; }
  nav.PC-menu { display: block; }
  header h1 { font-size: 2em; }
  header h1 img { max-width: 220px; }
  header .SP-mymenu { display: none; }
}
@media (min-width:1920px) {
  header { height: 100px; }
  header .header-content { max-width: 1920px; padding-inline: 5%; }
  header .header-content .logo-area { width: 34%; flex-grow: 1; }
  header span.copy { font-size: 0.8125rem; }
  header h1 { font-size: 1.875rem; }
  header .header-content > nav.PC-menu { width: fit-content; padding-inline: 5%; }
  header nav ul { column-gap: 1em; }
  header nav ul li { font-size: 0.875rem; font-weight: 600; }
  nav.PC-menu li a:hover { color: var(--global-text-color); }
  .Header__overlay, .Header__burger, .Header__burger__toggle { display: none; }
}

/* ==================================================
   4. ドロワー（ハンバーガーメニュー）
================================================== */
#drawer-button {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  width: fit-content;
}
@media (min-width: 768px) {
  #drawer-button { display: none; }
}

.drawer-button__icon {
  position: relative;
  width: 32px;
  height: auto;
  aspect-ratio: 1;
}
.drawer-button__bar {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--main-color);
  border-radius: 9999px;
}
.drawer-button__bar:nth-child(1) {
  transform: translate(-50%, calc(-50% - 8px));
  transition: transform 450ms ease;
}
.drawer-button__bar:nth-child(2) {
  transform: translate(-50%, -50%);
  transition: opacity 450ms ease;
}
.drawer-button__bar:nth-child(3) {
  transform: translate(-50%, calc(-50% + 8px));
  transition: transform 450ms ease;
}
.drawer-button__bar:nth-child(1):where(.is-open *) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.drawer-button__bar:nth-child(2):where(.is-open *) {
  opacity: 0;
}
.drawer-button__bar:nth-child(3):where(.is-open *) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#drawer-nav[hidden] {
  display: none;
}
:where([hidden]:not([hidden="until-found"])) {
  display: none !important;
}

#drawer-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 1;
  background: transparent;
}

.drawer-nav__inner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 500px;
  padding: 2em 1em;
  background-color: #fff;
  opacity: 1;
  transform: translate3d(100%, 0, 0);
  transition: transform 500ms ease, opacity 500ms ease;
}
.drawer-nav__inner .button-red,
.drawer-nav__inner .button-blue {
  width: 100%;
  text-align: center;
}
.drawer-nav__inner:where(.is-open *) {
  transform: unset;
}

.is-vertical :where(.drawer-nav__inner) {
  transform: translate3d(0, 100%, 0);
}
.is-open.is-vertical :where(.drawer-nav__inner) {
  transform: unset;
}

.is-fade :where(.drawer-nav__inner) {
  opacity: 0;
}
.is-open.is-fade :where(.drawer-nav__inner) {
  opacity: 1;
}

.drawer-nav__menu {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}
.drawer-nav__menu li {
  width: 90%;
  height: auto;
  margin: 0 auto;
  border-bottom: .7px solid rgba(38, 88, 151, .3);
}
.drawer-nav__menu li a {
  display: block;
  padding: 1em;
  line-height: 1.4;
  font-weight: 600;
  font-size: 1em;
  color: var(--main-color);
  text-decoration: none;
  position: relative;
  transition: all .3s ease-out;
  text-align: center;
  line-height: 1.2;
}
.drawer-nav__menu li a:hover { background-color: var(--accent-color); }
.drawer-nav__menu li.current a { background-color: var(--main-color); color: #fff; }

.drawer-nav__link i:last-of-type {
  position: absolute;
  right: 0;
  top: 0;
  transform: translateY(50%);
  width: 1.2em;
}
.drawer-nav__link.button-red,
.drawer-nav__link.button-blue {
  padding-block: 1em;
  margin-top: .8em;
  font-size: .875em;
  font-weight: 600;
}

#drawer__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 450ms ease;
}
#drawer__overlay:where(.is-open *) {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .drawer-button__bar,
  .drawer-nav__inner,
  #drawer__overlay {
    transition: none !important;
  }
}

/* ==================================================
   5. フッター＆各種ボタン
================================================== */
footer { width: 100%; padding: 2em 1em; background-color: #fff; border-top: 1px solid #eee; }
footer p { text-align: center; font-size: .8em; margin: 0; }

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 20px;
}
.footer-info {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.8;
}
.footer-info p { margin: 0; }
.footer-org {
    font-weight: bold;
    color: #444;
    margin-bottom: 4px !important;
}
.footer-info a {
    color: var(--main-color);
    text-decoration: none;
}
.footer-info a:hover { text-decoration: underline; }
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}
.footer-nav ul li a {
    font-size: 0.875rem;
    color: #888;
    text-decoration: none;
}
.footer-nav ul li a:hover {
    color: var(--main-color);
    text-decoration: underline;
}
.copy { margin-top: 10px !important; }

/* ==================================================
   RAMUNE君 追従ウィジェット（掲載店舗数アピール）
   【2026-09-20変更】ページトップへ戻るボタン（#page-top）は下部固定ナビに
   統合、タレコミ・使い方ウィジェットはハンバーガーメニューに移動したため、
   このRAMUNE君のみ右下フローティングとして残す。
================================================== */
.ramune-stats-widget {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 91;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ramune-stats-widget__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--main-color, #FFB61C);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ramune-stats-widget__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.ramune-stats-widget__bubble {
  position: relative;
  max-width: 180px;
  margin-bottom: 10px;
  padding: 12px 28px 12px 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateY(6px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.ramune-stats-widget__bubble::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  transform: rotate(45deg);
}
.ramune-stats-widget.is-open .ramune-stats-widget__bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ramune-stats-widget__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #333;
}
.ramune-stats-widget__text strong {
  font-size: 1.05rem;
  color: var(--main-color, #FFB61C);
}
.ramune-stats-widget__close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: none;
  background: none;
  font-size: 14px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px;
}
/* スマホ（下部固定ナビ表示中）は、ナビの上に重ならないよう位置を上げる */
@media (max-width: 767px) {
  .ramune-stats-widget { bottom: calc(var(--bottom-nav-height) + 10px); }
}
@media (max-width: 480px) {
  .ramune-stats-widget__icon { width: 44px; height: 44px; }
}

/* ==================================================
   下部固定ナビ（スマホ専用タブバー）【2026-09-20追加】
   よく使うページ（TOP・店舗一覧・イベント一覧・地図・今夜の営業情報）への
   入り口を常時表示する。「TOP」は旧#page-topのスクロール機能を統合。
   タレコミ・使い方はハンバーガーメニュー（drawer-nav__menu）に移動済み。
   PC表示（768px以上）では非表示。
================================================== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-nav-height);
  background: rgba(0,0,0,.72); /* 【2026-10-03変更】透明度を下げてより不透明に(.7→.92) */
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
  z-index: 95;
}
.bottom-nav__list {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
}
.bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  height: 26px;
}
.bottom-nav__label {
  white-space: nowrap;
}
@media (max-width: 767px) {
  body { padding-bottom: var(--bottom-nav-height); }
}
@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

a.return-top {
  width: fit-content; display: block; margin: 10% auto; padding: 5% 8%; text-align: center;
  background-color: var(--main-color); color: #fff; font-weight: 600; font-size: min(6vw, 1.5em); transition: all .3s ease-out;
}
a.return-top:hover { opacity: .7; }
@media (min-width: 768px){ a.return-top{ padding: 3% 5%; } }

/* ==================================================
   6. 共通ポップアップモーダル
================================================== */
.event-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); z-index: 9999; justify-content: center; align-items: center; padding: 20px;
}
body.modal-open { overflow: hidden; }

.event-modal-window {
  background: #fff; width: 100%; max-width: 400px; max-height: calc(100vh - 40px);
  border-radius: 16px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  position: relative; animation: modal-anim 0.3s ease;
}
@keyframes modal-anim { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.event-modal-close-btn {
  position: absolute; top: 12px; right: 16px; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 1.75rem;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
}
.event-modal-close-btn:hover { background: rgba(0,0,0,0.7); }

.modal-img-wrapper { width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #f0f0f0; }
.modal-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
/* 【2026-09-26追加】モーダル内でのメイン動画再生（inc/media-video.php参照） */
.modal-img-wrapper video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.modal-body-wrapper { padding: 24px; }
#modal-title { margin: 0 0 16px 0; font-size: 1.375rem; color: var(--global-heading-color); }
.modal-meta-info p { margin: 8px 0; font-size: 0.9375rem; color: var(--global-text-color); }
.modal-info-item { margin: 12px 0; font-size: 1rem; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }
#modal-venue-link { color: #0073aa; text-decoration: none; font-weight: bold; }
#modal-venue-link:hover { text-decoration: underline; }

.modal-detail-btn {
  display: inline-block; background-color: var(--main-color); color: #fff; padding: 12px 35px;
  border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: all 0.3s ease;
}
.modal-detail-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); color: #fff; opacity: 0.9; }
#modal-excerpt { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #ccc; font-size: 0.875rem; color: #555; line-height: 1.6; display: none; }
.modal-btn-wrapper { text-align: center; margin-top: 25px; }

/* モーダル内：参加予定＋フォローボタンを横並び（アイコン＋ラベル） */
.modal-action-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}
.modal-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.modal-action-label {
    font-size: 0.875rem;
    color: #888;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}
/* モーダル内のfavorite-btnはabsolute不要→relative配置に上書き */
.modal-action-item .favorite-btn {
    position: relative;
    inset: auto;
    bottom: auto;
    right: auto;
    flex-shrink: 0;
}
/* モーダル内のattending-btnはpill形状ではなく丸アイコン */
.modal-action-item .attending-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    border-width: 1px;
    background-color: #fff;
    font-size: 0;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.modal-action-item .attending-btn::before {
    content: '';
    position: absolute;
    top: calc(50% - 4px);
    left: calc(50% - 6px);
    width: 11px;
    height: 6px;
    border-left: 3px solid #94a3b8;
    border-bottom: 3px solid #94a3b8;
    transform: rotate(-45deg);
    transition: border-color 0.2s ease;
}
.modal-action-item .attending-btn.is-active {
    border-color: #e91e63;
    background-color: #fff;
}
.modal-action-item .attending-btn.is-active::before {
    border-left-color: #e91e63;
    border-bottom-color: #e91e63;
}
.modal-action-item .attending-btn:hover,
.modal-action-item .favorite-btn:hover {
    background-color: #fff;
}
/* 詳細ボタンを全幅に */
.modal-btn-wrapper .modal-detail-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* ==================================================
   h2見出しのRAMUNEアイコン（絵文字の代わりに使用）
================================================== */
.h2-mascot-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==================================================
   h2見出し（RAMUNEアイコン付き）：メインカラーのボックスデザインで統一
================================================== */
h2:has(> img.h2-mascot-icon) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  background: var(--main-color);
  color: #3a2a00;
  padding: 10px 16px 10px 12px;
  border-radius: 0;
  border-left: 5px solid #3a2a00;
  margin: 20px 0 16px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.4;
}
@media (max-width: 400px) {
  h2:has(> img.h2-mascot-icon) {
    font-size: 0.95rem;
    padding: 8px 14px 8px 10px;
  }
}
h2:has(> img.h2-mascot-icon)::before,
h2:has(> img.h2-mascot-icon)::after {
  display: none;
}
/* 絞り込みヘッダー内（ボタンと横並び）では外側マージンを親要素に任せる */
.list-section-header h2:has(> img.h2-mascot-icon) {
  margin: 0;
}

/* ==================================================
   汎用h2デザイン（A案：左ライン＋薄背景）
================================================== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.section-title::before,
.section-title::after {
  content: "";
  width: 40px; /* 線の長さ */
  height: 2px;
  background-color: var(--main-color); /* オレンジの線 */
  border-radius: 2px;
}
/* セクション見出しの下に添える説明文（2026-09-02追加：オーナー投稿イベントセクションで使用） */
.section-lead {
  text-align: center;
  color: #666;
  font-size: .8125rem;
  line-height: 1.7;
  margin: 8px auto 20px;
  max-width: 560px;
}

/* ==================================================
   🌟 お気に入りボタン（共通）
================================================== */
.favorite-btn {
  position: absolute;
  bottom: 10px; /* カードの右下に配置 */
  right: 10px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
}

/* ボタンの中のハートアイコン */
.favorite-btn::before {
  content: "☆";
  font-size: 1.125rem;
  color: #94a3b8; /* 通常時はグレー */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* ポップなアニメーション */
  line-height: 1;
  margin-bottom: 4px;
}

/* マウスホバー時 */
.favorite-btn:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* 🌟 お気に入り追加状態（is-activeクラスがついた時） */
.favorite-btn.is-active {
  border-color: var(--main-color); /* 赤枠 */
}
.favorite-btn.is-active::before {
  content: "★"; /* 塗りつぶしハートに変化 */
  color: var(--main-color); /* 赤色 */
  transform: scale(1.15);
}

/* ==================================================
   FullCalendar 共通上書き
================================================== */
.fc-event-title-container {
    white-space: pre-wrap !important;
    word-break: break-all;
}
.fc-daygrid-event {
    white-space: pre-wrap !important;
}
.fc-event-thumb {
    width: 20px;
    height: 20px;
    object-fit: cover;
    margin-right: 5px;
    border-radius: 3px;
    vertical-align: middle;
}
.fc-event-inner {
    display: flex;
    align-items: center;
}

/* FullCalendar フォントサイズ縮小・スマホ対応 */
/* 【2026-09-09修正】.fc-toolbar-title（カレンダー見出し）はvenue-title/event-titleと
   サイズを揃えるため、スマホ1.5rem・PC2remに拡大。他のカレンダー要素（曜日・日付・イベント名等）は
   グリッドの密度を保つため従来サイズのまま。 */
.fc-toolbar-title {
    font-size: 1.5rem !important;
}
.fc-col-header-cell {
    font-size: 0.875rem !important;
}
.fc-daygrid-day-number {
    font-size: 0.875rem !important;
    padding: 2px 4px !important;
}
.fc-button {
    font-size: 0.875rem !important;
    padding: 3px 8px !important;
}
.fc-daygrid-day-frame {
    min-height: 40px !important;
}
.fc-event-title {
    font-size: 0.875rem !important;
}
@media (max-width: 767px) {
    .fc-col-header-cell {
        font-size: 0.75rem !important;
    }
    .fc-daygrid-day-number {
        font-size: 0.75rem !important;
    }
    .fc-button {
        font-size: 0.75rem !important;
        padding: 1px 6px !important;
    }
    .fc-daygrid-day-frame {
        min-height: 28px !important;
    }
    .fc-event-title {
        font-size: 0.75rem !important;
    }
    /* ヘッダー（前月/次月・タイトル・today等）が折り返さないよう1行に収める */
    .fc-toolbar.fc-header-toolbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
        gap: 4px !important;
        margin-bottom: 8px !important;
    }
    .fc-toolbar-chunk {
        display: flex;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
    }
    .fc-toolbar-chunk:nth-child(2) {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        overflow: hidden;
    }
    .fc-toolbar-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fc-button-group .fc-button {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

/* 店舗ページ(single-venue.php)のカレンダー周辺のみ、スマホでさらに文字を小さく
   （サイト全体の最小フォントサイズ14pxより小さくしたいので、ここだけ個別に指定） */
@media (max-width: 767px) {
    /* 【2026-09-09修正】.fc-toolbar-titleはここから除外（1.5rem/2remへ拡大したため、
       11pxへの再縮小対象から外す） */
    .venue-calendar-section .fc-col-header-cell,
    .venue-calendar-section .fc-daygrid-day-number,
    .venue-calendar-section .fc-button,
    .venue-calendar-section .fc-event-title {
        font-size: 0.6875rem !important; /* 11px */
    }
    .venue-calendar-section .calendar-legend,
    .venue-calendar-section .calendar-legend__list {
        font-size: 0.75rem !important; /* 12px */
    }
    .venue-calendar-section h3 {
        font-size: 0.8125rem !important; /* 13px */
    }
}

/* 【2026-09-09追加】PCサイズ（1024px〜）でfc-toolbar-title・venue-title・event-titleを2remに統一 */
@media (min-width: 1024px) {
    .fc-toolbar-title {
        font-size: 2rem !important;
    }
    .venue-title-wrapper .venue-title {
        font-size: 2rem;
    }
    /* common.cssはpage.cssより先に読み込まれるため、page.css側の.event-title
       （同じ詳細度）に上書きされないよう、.event-title-wrapperを含めて詳細度を上げている */
    .event-title-wrapper .event-title {
        font-size: 2rem;
    }
}

/* メモモーダル */
.memo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.memo-modal-inner {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.memo-modal-title {
    margin-top: 0;
    margin-bottom: 15px;
}
.memo-modal-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.875rem;
}
.memo-modal-textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}
.memo-modal-actions {
    display: flex;
    justify-content: space-between;
}
.btn-memo {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-memo-close  { background: #ccc; }
.btn-memo-delete { background: #e74c3c; color: #fff; margin-right: 5px; }
.btn-memo-save   { background: #2ecc71; color: #fff; }


/* ==================================================
   カレンダー凡例（calendar-legend パーシャル）
================================================== */
.calendar-legend {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}
.calendar-legend__title {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}
.calendar-legend__list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.875rem;
}
.calendar-legend__list li {
    display: flex;
    align-items: center;
    gap: 5px;
}
.calendar-legend__dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}
.legend-single  { background: #ffe0b2; border: 1px solid #ffb74d; }
.legend-regular { background: #dcedc8; border: 1px solid #aed581; }
.legend-staff   { background: #bbdefb; border: 1px solid #64b5f6; }
.legend-hours   { background: #ffcdd2; border: 1px solid #e57373; }
.calendar-legend__note {
    margin: 0;
    color: #555;
}

/* ==================================================
   お気に入りセクション・カードグリッド（全ページ共通）
   favorites-section.php が top/page 両方で使われるため common.css に定義
================================================== */
.archive-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0 30px;
}
@media (min-width: 768px) {
    .archive-card-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
    .archive-card-grid { grid-template-columns: repeat(5, 1fr); }
}

/* お気に入り「すべて見る」ボタン（全ページ共通） */
.section-btn-wrapper {
    text-align: center;
    margin-top: 20px;
}
.btn-to-list {
    display: inline-block;
    background-color: var(--main-color, #ffa500);
    color: #000033;
    padding: 12px 50px;
    font-size: 0.875rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-to-list:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: #000033;
}
.btn-to-list--orange {
    background: #ff9800;
}

/* お気に入りセクション共通スタイル */
.section-favorites {
    padding: 40px 0;
}
.section-favorites .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}
.fav-section-title {
    font-size: 0.875rem;
    padding-left: 10px;
    margin: 20px 0 15px;
}
.fav-section-title--event { border-left: 4px solid #e91e63; }
.fav-section-title--bar   { border-left: 4px solid #0073aa; }
.fav-card-grid { margin-bottom: 30px; }
.fav-empty-notice {
    text-align: center;
    padding: 30px 20px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffe082;
    margin: 20px 0;
}
.fav-empty-notice__title { font-size: 0.875rem; font-weight: bold; margin-bottom: 8px; }
.fav-empty-notice__text  { color: #666; font-size: 0.875rem; }
.alert-notice {
    text-align: center;
    padding: 30px 20px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffe082;
    margin: 20px auto;
    width: 90%;
}
.alert-notice__title { font-weight: bold; font-size: 0.875rem; margin-bottom: 8px; }
.alert-notice__text  { color: #666; margin-bottom: 15px; }

/* RAMUNE君（マスコット）が語りかける会員限定・未アクション時のメッセージ用アイコン
   .alert-notice / .fav-empty-notice の先頭に添える */
.alert-notice__mascot,
.fav-empty-notice__mascot {
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    object-fit: cover;
}
.alert-notice__btn {
    display: inline-block;
    background: var(--main-color);
    color: #000033;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
}

/* ==================================================
   参加予定ボタン（イベント専用）
================================================== */
.attending-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 2px solid #e91e63;
    color: #e91e63;
    background: #fff;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}
.attending-btn:hover {
    background: #fce4ec;
}
.attending-btn.is-active {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
}
/* カード内：丸いアイコンボタン（星ボタンの左隣） */
.card .attending-btn {
    position: absolute;
    bottom: 10px;
    right: 52px; /* 星(36px) + gap(6px) + 星のright(10px) */
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    border-width: 1px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
    z-index: 10;
}
.card .attending-btn::before {
    content: '';
    position: absolute;
    top: calc(50% - 4px);
    left: calc(50% - 6px);
    width: 11px;
    height: 6px;
    border-left: 3px solid #94a3b8;
    border-bottom: 3px solid #94a3b8;
    transform: rotate(-45deg);
    transition: border-color 0.2s ease;
}
.card .attending-btn.is-active {
    border-color: #e91e63;
    background-color: rgba(255, 255, 255, 0.9);
}
.card .attending-btn.is-active::before {
    border-left-color: #e91e63;
    border-bottom-color: #e91e63;
}
.card .attending-btn:hover {
    background-color: #fff;
}
/* イベント詳細ページの大きいバージョン */
.attending-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 20px;
    flex-wrap: wrap;
}
.attending-count {
    font-size: 0.875rem;
    color: #888;
}

/* ==========================================
   年齢確認オーバーレイ
   ========================================== */
#age-verify-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(var(--main-color-rgb), 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.age-verify-box {
    background: #fff;
    border: 3px solid var(--main-color);
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    color: var(--global-text-color);
    box-shadow: 0 8px 40px rgba(var(--main-color-rgb), 0.25);
}
.age-verify-catch {
    font-size: 0.875rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
    color: var(--sub-color);
}
.age-verify-body {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 20px;
}
.age-verify-question {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--global-text-color);
    margin: 0 0 28px;
}
.age-verify-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#age-verify-yes {
    padding: 14px 20px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}
#age-verify-yes:hover { opacity: 0.85; }
#age-verify-no {
    padding: 12px 20px;
    background: transparent;
    color: #aaa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
#age-verify-no:hover { color: #888; border-color: #bbb; }

/* ==========================================
   ドコイクREDリニューアルバナー
   ========================================== */
.rebrand-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--main-color);
    color: #fff;
    font-size: 0.875rem;
    font-weight: bold;
    padding: 10px 16px;
    text-align: center;
}
.rebrand-notice__icon {
    font-size: 0.625rem;
    flex-shrink: 0;
}
.rebrand-notice__text {
    line-height: 1.4;
}
@media (max-width: 560px) {
    .rebrand-notice { font-size: 0.875rem; }
    .age-verify-box { padding: 30px 20px; }
    .age-verify-catch { font-size: 0.875rem; }
}
