/* Site styles migrated from the production WPCode CSS snippets (2026-10). Order follows the original output order. */

/* ---- WPCode #2346 ・をチェックに ---- */
/* ✅ ここに postid-XXXX を追加するだけで対象ページが増える */
body.single-post:is(.postid-2330, .postid-2373, .postid-2482, .postid-2527, .postid-2573, .postid-2586) .oe-single .oe-content ul {
  list-style: none;
  margin-left: 0;
}

body.single-post:is(.postid-2330, .postid-2373, .postid-2482, .postid-2527, .postid-2573, .postid-2586) .oe-single .oe-content ul > li {
  position: relative;
  padding-left: 1.6em;
  margin: .35em 0;
}

body.single-post:is(.postid-2330, .postid-2373, .postid-2482, .postid-2527, .postid-2573, .postid-2586) .oe-single .oe-content ul > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4em;
  line-height: 1;
}

/* ---- WPCode #2283 A8 ---- */
/* 広告ブロック全体を中央寄せ */
.oe-ad-banner{
  text-align: center;
}

/* クリックされるバナー（a）の中央寄せ＋ラベル用 */
.oe-ad-banner > a{
  position: relative;
  display: inline-block;  /* text-align:center の中で中央に来る */
  line-height: 0;         /* 画像下の隙間対策 */
}

/* バナー画像 */
.oe-ad-banner > a > img{
  display: block;
  max-width: 100%;
  height: auto;
}

/* 左上の「広告」表記 */
.oe-ad-banner > a::before{
  content: "広告";
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.65);
  border-radius: 6px;
  line-height: 1;
  pointer-events: none; /* クリックの邪魔をしない */
}

/* 1pxの計測GIFは見えない＆レイアウトを崩さない */
.oe-ad-banner > img{
  display: none;
}

/* ---- WPCode #2278 recaptcha ---- */
/* reCAPTCHAが切れる原因になりやすい overflow を潰す */
.g-recaptcha,
.g-recaptcha * {
  box-sizing: border-box;
}

.g-recaptcha {
  overflow: visible;
  max-width: 100%;
}

/* 親が hidden になってると右が切れるので、フォーム側も保険 */
form,
#loginform,
#bp-login-widget-form {
  overflow: visible;
}

/* reCAPTCHAが親のoverflowで切られないようにする保険 */
.g-recaptcha {
  overflow: visible;
  max-width: 100%;
}

/* ---- WPCode #2257 お知らせ　投稿　ブロック ---- */
/* =========================================================
   Latest Posts ブロック（アイキャッチ + 日付あり）
   page-news.php と同系統：白黒 / 影なし / 角丸控えめ / 枠線
   対象：ul.wp-block-latest-posts__list.has-dates.wp-block-latest-posts
   ========================================================= */

/* リスト全体 */
ul.wp-block-latest-posts__list.wp-block-latest-posts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* 各アイテム = カード */
ul.wp-block-latest-posts__list.wp-block-latest-posts > li {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 10px; /* 丸すぎない */
  padding: 14px 14px;
  background: #fff;
  box-shadow: none;

  /* サムネ + 本文の横並び */
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
}

/* アイキャッチ枠（alignleftの余計なfloatを無効化） */
ul.wp-block-latest-posts__list.wp-block-latest-posts
  .wp-block-latest-posts__featured-image {
  margin: 0;
  float: none;
  width: 92px;
  height: 92px;
  grid-column: 1;
  grid-row: 1 / span 2;

  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

/* 画像そのもの */
ul.wp-block-latest-posts__list.wp-block-latest-posts
  .wp-block-latest-posts__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* タイトル */
ul.wp-block-latest-posts__list.wp-block-latest-posts
  a.wp-block-latest-posts__post-title {
  grid-column: 2;
  grid-row: 1;

  color: #111;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
  font-size: 16px;

  display: inline;
}

/* hover */
ul.wp-block-latest-posts__list.wp-block-latest-posts
  a.wp-block-latest-posts__post-title:hover {
  border-bottom-color: #111;
}

/* 日付 */
ul.wp-block-latest-posts__list.wp-block-latest-posts
  time.wp-block-latest-posts__post-date {
  grid-column: 2;
  grid-row: 2;

  display: block;
  margin: 0;

  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* 抜粋ONの場合（任意） */
ul.wp-block-latest-posts__list.wp-block-latest-posts
  .wp-block-latest-posts__post-excerpt {
  grid-column: 2;
  margin: 6px 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* SP調整 */
@media (max-width: 640px) {
  ul.wp-block-latest-posts__list.wp-block-latest-posts > li {
    grid-template-columns: 78px 1fr;
    column-gap: 10px;
  }

  ul.wp-block-latest-posts__list.wp-block-latest-posts
    .wp-block-latest-posts__featured-image {
    width: 78px;
    height: 78px;
  }

  ul.wp-block-latest-posts__list.wp-block-latest-posts
    a.wp-block-latest-posts__post-title {
    font-size: 15px;
  }
}

/* ---- WPCode #2127 イベントタブのみmax-width制約を解除 ---- */
/* イベントタブのみmax-width制約を解除 */
#oe-group-tab-events {
    max-width: none;
}

.oe-group-section--events {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- WPCode #2033 page-id-0（登録ページ）上のサインアップボタンに z-index を効かせる ---- */
/* page-id-0（登録ページ）上のサインアップボタンに z-index を効かせる */
body.page-id-0 .submit #signup_submit {
  position: relative;
  z-index: 1000;
}

/* ---- WPCode #1927 AboutCSS ---- */
body.page-id-432 #main {
	padding: 10px;
}

/* ---- WPCode #1926 利用規約CSS ---- */
body.page-id-1204 #main {
  padding: 10px;
}

/* ---- WPCode #1836 フロントページ ---- */
/* メンテナンス通知部分のラッパー */
/* このラッパーが固定されることで、内部の .maintenance-wrapper にインラインの余白が反映されます */
.maintenance-wrapper-container {
  position: fixed;
  top: 60px; /* トップバー(30px)＋ヘッダー(40px) = 70px */
  left: 0;
  right: 0;
  height: 50px; /* 内部の .maintenance-wrapper (40px) ＋ 上下の余白 (5pxずつ) = 50px */
  z-index: 1050;
  margin: 0;
  padding: 0;
  background-color: transparent;
}

/* メンテナンス通知部分 */
.maintenance-wrapper {
  position: relative; /* ラッパー内で相対位置 */
  height: 40px;
  margin: 5px 0; /* インラインで設定した余白 */
  background-color: #fff;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* カテゴリーバーを固定（例：高さ40px） */
/* ※上記固定要素の下端 = 70px + ラッパー高さ50px = 120px に配置 */
#tab-bar {
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #fff;
  z-index: 1000;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* 対象ページのみ、固定部分の合計高さ分下部コンテンツが隠れないよう余白を追加 */
/* ※トップバー(30px)+ヘッダー(40px)+メンテナンスラッパー(50px)+カテゴリーバー(40px)=160px */
body.page-id-619 {
    padding-top: 145px;
}

/* ---- WPCode #1805 メンテナンスメッセージ ---- */
/* 親コンテナ：はみ出た部分は隠す */
.maintenance-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

/* アニメーションするテキスト */
.maintenance-notice {
  font-size: 8px;
  margin: 5px 0;
  display: inline-block;
  animation: slide 35s linear infinite;
}

/* テキスト複製間の間隔（必要に応じて調整） */
.maintenance-notice span {
  display: inline-block;
  padding-right: 50px;
}

/* 右から左へ連続で流れるアニメーション */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.announcement {
    font-weight: bold;
}

/* ---- WPCode #1417 イベントページネーション ---- */
/* ページネーション全体のコンテナ */
.jp-events-pagination {
  text-align: center;           /* 中央寄せ */
  margin: 20px 0;              /* 上下余白 */
}

/* ページ番号リンク（"page-numbers" クラスが付与される） */
.jp-events-pagination .page-numbers {
  display: inline-block;        /* 横並びにする */
  margin: 0 4px;                /* リンク同士の間隔 */
  padding: 6px 12px;            /* ボタンっぽい余白 */
  border: 1px solid #ccc;       /* 薄めの枠線 */
  border-radius: 4px;           /* 角丸 */
  background-color: #fff;       /* 背景色 */
  color: #333;                  /* 文字色 */
  text-decoration: none;        /* 下線を消す */
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ホバー時の変化 */
.jp-events-pagination .page-numbers:hover {
  background-color: #f5f5f5;
}

/* 現在ページ（.currentクラスが付与される） */
.jp-events-pagination .current,
.jp-events-pagination .current:hover {
  background-color: #333;
  color: #fff;
  border-color: #333;
  cursor: default; /* ホバーしてもリンクにならない */
}

.jp-events-pagination .page-numbers {
  margin: 0 6px;
  padding: 8px 16px;
  border-radius: 30px; /* 角を大きく丸める */
  background-color: #fff;
  border: 1px solid #ddd;
}

.jp-events-pagination .page-numbers:hover {
  background-color: #eee;
}

.jp-events-pagination .current {
  background-color: #0066cc;
  border-color: #0066cc;
  color: #fff;
}

/* ---- WPCode #1395 single-event-css ---- */
/* Events Manager Mobile UI CSS */

/* PC・モバイル共通のスタイルとして最大幅600pxで中央配置（ヘッダー以外は中央揃え） */
.em-event-details-container {
    max-width: 600px;
    margin: 30px auto 0; /* 上部の余白と中央配置 */
    margin-top: 30px; /* ヘッダーとの間隔を確保 */
    padding-top: 0; /* ヘッダーのパディングを削除 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff; /* サイトヘッダーと同じ背景色に設定 */
}

.em-event-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    align-items: center;
    background-color: #fff; /* サイトヘッダーと同じ背景色に設定 */
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 10;
    border-bottom: 1px solid #eee;
    height: 60px; /* ヘッダーの高さ */
    box-sizing: border-box;
    margin-bottom: 15px;
    margin: 0 auto 15px;
}

.em-back-button a {
    font-size: 24px;
    color: #333;
    text-decoration: none;
}

.em-share-close {
    display: flex;
}

.em-share-icon, .em-close-icon {
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.em-event-title {
    padding: 0 16px;
    margin-bottom: 16px;
    background-color: #fff;
}

.em-event-title h1 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.em-event-image {
    position: relative;
    margin-bottom: 16px;
    background-color: #fff;
}

.em-event-image img {
    width: 100%;
    height: auto;
    display: block;
}

.em-status-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e86464;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
}

.em-event-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
    margin-bottom: 16px;
    background-color: #fff;
}

.em-like-action, .em-comment-action, .em-view-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.em-like-action {
    cursor: pointer;
}

.em-like-action.active .em-like-icon {
    color: #e86464;
}

.em-like-icon, .em-comment-icon, .em-view-icon {
    font-size: 24px;
    color: #333;
}

.em-like-count, .em-comment-count, .em-view-count {
    font-size: 14px;
    color: #333;
}

.em-register-button, .em-register-button-bottom {
    background-color: #e86464;
    color: white;
    text-align: center;
    padding: 16px;
    margin: 16px;
    border-radius: 4px;
}

.em-register-button a, .em-register-button-bottom a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: block;
    width: 100%;
}

.em-event-datetime, .em-event-location, .em-event-venue {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.em-calendar-icon, .em-location-icon, .em-venue-icon {
    font-size: 24px;
    color: #666;
}

.em-date-time-details, .em-location-details, .em-venue-details {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.em-meeting-time, .em-deadline, .em-calendar-link {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}

.em-calendar-link a {
    color: #4a89dc;
    text-decoration: none;
}

.em-event-participants {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.em-participants-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.em-participants-count {
    font-size: 18px;
    color: #e86464;
}

.em-participants-avatars {
    display: flex;
    align-items: center;
}

.em-participant-avatar {
    margin-left: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    width: 32px;
    height: 32px;
}

.em-participant-avatar:first-child {
    margin-left: 0;
}

.em-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.em-participant-more {
    margin-left: 5px;
    background-color: #f0f0f0;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.em-participants-info, .em-participants-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.em-event-description {
    padding: 16px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    background-color: #fff;
}

.em-event-description h2 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
}

.em-event-notes {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.em-event-notes.expanded {
    max-height: none;
}

.em-read-more {
    text-align: center;
    margin-top: 12px;
}

.em-read-more a {
    color: #4a89dc;
    text-decoration: none;
    font-size: 14px;
}

.em-event-organizer {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.em-event-organizer h2 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
}

.em-organizer-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    width: 100%;
}

.em-organizer-left {
    display: flex;
    align-items: center;
}

.em-organizer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 10px;
}

.em-organizer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: 100%;
}

.em-organizer-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.em-organizer-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.em-organizer-location {
    font-size: 12px;
    color: #666;
}

.em-owner-label {
    color: #666;
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
}

.em-owner-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.em-owner-avatar {
    margin-right: 0;
    margin-bottom: 5px;
}

.em-owner-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.em-owner-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.em-event-bookings {
    padding: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    background-color: #fff;
}

.em-event-bookings h2 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
}

.em-event-booking-form {
    margin: 30px 0;
    padding: 15px;
    background-color: #fff;
}

.em-booking-buttons {
    text-align: center;
    margin-top: 20px;
}

.em-booking-submit {
    padding: 12px 25px;
    background-color: #e86464;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    width: auto;
    min-width: 200px;
    max-width: 80%;
}

.em-booking-submit:hover {
    background-color: #d65555;
}

.em-share-menu {
    position: absolute;
    top: 60px;
    right: 16px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 101;
    display: none;
}

.em-share-menu.active {
    display: block;
}

.em-share-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.em-share-menu li {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.em-share-menu li:last-child {
    border-bottom: none;
}

.em-share-menu a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.em-venue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.em-copy-address-btn {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    color: #888;
    transition: all 0.3s;
}

.em-copy-address-btn:hover {
    background-color: #f0f0f0;
    color: #666;
}

.em-copy-icon {
    font-size: 14px;
    margin-right: 4px;
}

.em-copy-success {
    background-color: #f0f8f0;
    color: #4caf50;
    border-color: #c8e6c9;
}

.em.pixelbones {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: none;
}

.em.pixelbones .em-booking-form {
    padding: 0;
}

.em.pixelbones input[type="submit"],
.em.pixelbones button[type="submit"] {
    background-color: #e86464;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: bold;
    width: auto;
    min-width: 200px;
    max-width: 80%;
    margin: 0 auto;
    display: block;
}

.em-event-details-container .em-tickets {
    margin-bottom: 20px;
}

.em-event-details-container .em-ticket {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.em-event-details-container .em-ticket-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.em-event-details-container .em-ticket-name {
    font-weight: bold;
    flex: 1;
}

.em-event-details-container .em-ticket-price {
    font-weight: bold;
    color: #e74c3c;
    margin: 0 10px;
}

.em-event-details-container .em-ticket-select {
    width: 80px;
    text-align: right;
}

.em-event-details-container .em-ticket-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.em-booking-form-user-fields {
    margin-top: 20px;
}

.em-booking-form-user-field {
    margin-bottom: 15px;
}

.em-booking-form-user-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.em-booking-form-user-field input,
.em-booking-form-user-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.em-status-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
    width: 65px;
    text-align: center;
}

.em-status-user img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.em-status-name {
    font-size: 0.75rem;
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    color: #555;
}

.em-status-section h4 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.em-status-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-header {
    margin-bottom: 20px;
}

.em-user-booking-status {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.em-booking-confirmed {
    display: flex;
    align-items: flex-start;
}

.em-booking-status-icon {
    background-color: #2ecc71;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.em-booking-status-info {
    flex-grow: 1;
}

.em-booking-status-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2ecc71;
    font-size: 1.2rem;
}

.em-booking-status-info p {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
}

.em-booking-date {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.em-booking-ticket-info {
    margin-top: 1rem;
    border-top: 1px dashed #e0e0e0;
    padding-top: 0.5rem;
}

.em-booking-ticket-info ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.em-booking-ticket-info li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.em-event-details-container .ticket-name {
    font-weight: 600;
    flex-grow: 1;
}

.em-event-details-container .ticket-spaces {
    margin: 0 0.5rem;
    color: #666;
}

.em-event-details-container .ticket-price {
    font-weight: 600;
    color: #e74c3c;
}

/* キャンセルセクションのスタイル */
.em-booking-cancel-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.em-cancel-notice {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.em-booking-cancel-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.em-booking-cancel-button:hover {
    background-color: #c0392b;
}

.em-booking-cancel-policy {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    background-color: #f9f9f9;
    padding: 0.8rem;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
}

.em-login-required {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.em-login-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.em-login-required h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.em-login-required p {
    margin-bottom: 1.5rem;
    color: #555;
}

.em-login-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.em-login-button, .em-register-button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.em-login-button {
    background-color: #3498db;
    color: white;
}

.em-login-button:hover {
    background-color: #2980b9;
}

.em-register-button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.em-register-button:hover {
    background-color: #e1e1e1;
}

.em-login-note {
    font-size: 0.85rem;
    color: #777;
}

/* ---- WPCode #1301 events-list追加CSS ---- */
/* ===========================
   jp-events-wrapper 全体のスタイル
=========================== */
.jp-events-wrapper {
  padding: 0px 15px;
}

/* ===========================
   jp-events-grid：グリッドレイアウト
=========================== */
.jp-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* ===========================
   jp-event-card：カードの基本スタイル
=========================== */
.jp-event-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s;
}
.jp-event-card:hover {
  transform: translateY(-4px);
}

/* ===========================
   アイキャッチ画像部分
=========================== */
.jp-event-image {
  position: relative;
  width: 100%;
  height: 169px; /* 固定高さで統一 */
  overflow: hidden;
}
.jp-event-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.jp-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
   ステータスラベル
=========================== */
.jp-event-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 12px;
  color: #fff;
  border-radius: 3px;
}
.jp-status-open {
  background-color: #28a745; /* 参加受付中 → 緑 */
}
.jp-status-full {
  background-color: #dc3545; /* 満席 → 赤 */
}
.jp-status-closed {
  background-color: #6c757d; /* 受付終了 → 灰色 */
}

/* ===========================
   jp-event-content：詳細情報部分
=========================== */
.jp-event-content {
  padding: 15px;
}
.jp-event-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #FA6E59;
  font-weight: bold;
}
.jp-event-title a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   旧：日付・時間＆会場情報
   （必要に応じて使用可）
=========================== */
.jp-event-info {
  font-size: 14px;
  color: #292929;
  margin-bottom: 10px;
}
.jp-event-datetime {
  margin-right: 10px;
}

/* ===========================
   旧：参加者数表示
   （今回のレイアウトでは未使用なら削除）
=========================== */
.jp-event-participants-count {
  font-size: 14px;
  margin-bottom: 10px;
  color: #292929;
}

/* ===========================
   参加者アイコン
=========================== */
.jp-event-participant-icons {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.jp-participant-avatar img {
  border-radius: 50%;
  border: 1px solid #ddd;
}

/* ===========================
   予約進捗バー
=========================== */
.jp-event-progress {
  margin-bottom: 10px;
}
.jp-progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}
.jp-progress {
  height: 100%;
  background-color: #4897D8;
  width: 0;
  transition: width 0.5s;
}
.jp-progress-text {
  font-size: 12px;
  color: #4897D8;
  text-align: right;
  margin-top: 4px;
}

/* ===========================
   詳細ボタン
=========================== */
.jp-event-actions {
  text-align: center;
}
.jp-event-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #4897D8;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}
.jp-event-button:hover {
  background-color: #0056b3;
}

/* ===========================
   イベントがない場合
=========================== */
.jp-no-events {
  text-align: center;
  font-size: 16px;
  color: #999;
  padding: 20px;
}

/* ===========================
   ここから新レイアウトの追加・修正分
=========================== */

/* 
  ★★★ 旧：日付（左）とチケット価格（右）を同じ行に配置するクラス 
      （今回のレイアウトと競合する場合は使用しない or 削除）
.jp-event-info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.jp-event-datetime-left {
  font-size: 14px;
  color: #292929;
}

.jp-event-ticket-price-right {
  font-size: 14px;
  color: #292929;
}
*/

/* 
   ★★★ 新：開催日・参加費（左）と 「参加者ボックス」（右）を並べるコンテナ 
*/
.jp-event-info-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* 左右の上部を揃える */
  margin-bottom: 10px;
}

/* 左カラム：開催日と参加費を縦方向に並べる */
.jp-event-info-left {
  display: flex;
  flex-direction: column;
}
.jp-event-date {
  font-size: 14px;
  margin-bottom: 5px; 
  color: #292929;
}
.jp-event-price {
  font-size: 14px;
  color: #292929;
}

/* 右カラム：1つのボックスに「参加者(上)」＋「n席/MAX席(下)」を上下色分け */
.jp-event-info-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 右揃え */
}

.jp-participant-seat-box {
  margin-top: 5px;
  border: 2px solid #F8A055;       /* 枠線をオレンジ色 */
  border-radius: 4px;
  overflow: hidden;
  width: 100px;                    /* 適度な幅（お好みで調整） */
  text-align: center;
}

.jp-participant-seat-box-top {
  background-color: #F8A055; /* 上半分 → オレンジ */
  color: #fff;              /* 文字色は白 */
  padding: 5px 0;
  font-weight: bold;
}

.jp-participant-seat-box-bottom {
  background-color: #fff;     /* 下半分 → 白 */
  color: #F8A055;            /* 文字色はオレンジ */
  padding: 5px 0;
  font-weight: bold;
}

/* ラベルとテキストを1行にする */
.jp-event-line {
  display: flex;
  align-items: center;
  margin-bottom: 5px; /* 行間の余白 */
}

/* ラベルの共通スタイル */
.jp-event-label {
  display: inline-block;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;             /* 文字色は白 */
  border-radius: 4px;
  margin-right: 6px;       /* 隙間 */
}

/* オレンジラベル（開催日） */
.jp-event-label-orange {
  background-color: #F8A055; /* 既存のオレンジ色 */
}

/* 青ラベル（参加費） */
.jp-event-label-blue {
  background-color: #4897D8; /* 既存の青色 */
}

/* テキスト部分 */
.jp-event-date-text,
.jp-event-price-text {
  font-size: 14px;
  color: #292929;           /* 通常文字色 */
}

p.jp-no-participants {
    margin: 4px;
}

/* ---- WPCode #1162 イベント作成フォームcss ---- */
form textarea {
    background-color: var(--background-color-inputs);
}

/* ---- WPCode #1159 一度に申し込める最大席数、最小席数　非表示 ---- */
.ticket-spaces.ticket-spaces-min.inline-inputs {
    display: none; /* 強制的に非表示にする */
}

/* 指定したクラスのdiv要素を非表示にする */
.ticket-spaces.ticket-spaces-max.inline-inputs {
    display: none; /* 強制的に非表示にする */
}

.ticket-type {
	display: none;
}

/* ---- WPCode #931 登録フォームのデザイン ---- */
/* ────────────────────────────────────────── */
/* 登録ページのみ：フォームを縦並びに変更 */
/* ────────────────────────────────────────── */
body.registration.register.buddypress.bp-legacy.page.page-id-0 .standard-form {
  display: block;   /* flex を無効化してブロックレイアウトに */
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* 各セクションをフル幅に */
body.registration.register.buddypress.bp-legacy.page.page-id-0 .standard-form .register-section {
  width: 100%;
  float: none;
  margin-bottom: 30px;
  box-sizing: border-box;
}

/* セクション見出しの余白調整 */
body.registration.register.buddypress.bp-legacy.page.page-id-0 .standard-form h2 {
  margin-top: 0;
}

/* reCAPTCHA も中央＋幅あふれ防止 */
body.registration.register.buddypress.bp-legacy.page.page-id-0 .g-recaptcha {
  display: block;
  margin: 20px auto;
  transform: none !important;
  max-width: 100%;
}
body.registration.register.buddypress.bp-legacy.page.page-id-0 .g-recaptcha iframe {
  width: 100%;
  height: auto;
}

body.page-id-0 #main {
  padding: 20px;
}

/* float: right を解除して中央寄せ */
#buddypress .standard-form#signup_form div.submit {
  float: none;
  text-align: center;
}

/* submit ボタン自体を中央寄せ */
#buddypress .standard-form#signup_form div.submit input[type="submit"] {
  display: inline-block;
  margin: 0 auto;
}

