
/* Google Fontsから日本語フォントを読み込む例 */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
}

body, h1, h2, h3, h4, h5, p, a, dl, dt, dd, td, th {
    font-family: YuGothic, "Yu Gothic", 游ゴシック体, 游ゴシック, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, "MS ゴシック", "MS Gothic", sans-serif;
    color: #222;
}

img {
    max-width: 100%;
}

/* --- フォームリセット --- */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
}

button,
select {
  text-transform: none;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
  border: none;
}

input[type="text"],
input[type="search"],
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='%23666' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7em center;
  background-size: .65em auto;
  padding-right: 2em;
}

select::-ms-expand {
  display: none;
}
@media screen and (min-width: 768px) {
    .hide-pc {
        display:none !important;
    }
}

@media screen and (max-width: 768px) {
    .hide-sp {
        display: none !important;
    }

}


/*==================================
Loadning
==================================*/

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0071bc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loaded #loading-overlay {
    opacity: 0;
    visibility: hidden;
}


/*==================================
トップバー
==================================*/


header.top-bar {
    width:100%;
    height:60px;
    background-color:#0071bc;
    color:#fff;
    padding:10px;
    box-sizing: border-box;
    position: fixed;
    top:0px;
    z-index: 200;
    display: flex;
    justify-content: space-between;
}

header.top-bar a {
    color:#fff;
    text-decoration: none;
}

header.top-bar a:hover {
    text-decoration: underline;
}

header.top-bar .logo{
    color:#fff;
}

header.top-bar .logo img{
    width: 200px;
}

.top-left,
.top-right{
    display: flex;
    align-items: center;
}

.login-user {
    display: flex;
    align-items: center;
}


.search-btn {
    display: none; /* PCでは非表示 */
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.search-btn span {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 8px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.search-btn span::after {
    content: '';
    display: block;
    width: 8px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    bottom: -4px;
    right: -6px;
    transform: rotate(45deg);
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.search-btn.is-active span::after {
    content: none;
}

.search-btn.is-active span:nth-child(1) {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    border-radius: 0;
    border: none;
    position: absolute;
    left: 5px;
    top: 19px;
    transform: rotate(45deg);
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.search-btn.is-active span:nth-child(2) {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 0;
    border: none;
    background-color: #fff;
    position: absolute;
    left: 5px;
    top: 19px;
    transform: rotate(-45deg);
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}


@media screen and (max-width: 768px) {
    header.top-bar {
        height:50px;
        justify-content: center;
    }
    
    .top-left {
        position: fixed;
        left:10px;
        top:5px;
    }
    .top-right{
        position: fixed;
        right:10px;
        top:5px;
    }

    header.top-bar .logo img{
        width: 180px;
    }

    .search-btn {
        display: block;
    }
}

/*==================================
ログインユーザー
==================================*/

.user-icon{
    width:50px;
    height:50px;
    border-radius: 50%;
    overflow: hidden;
    margin:0 20px;
    background-color: #f4f4f4;
}

.user-icon img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*==================================
ハンバーガーメニュー
==================================*/

.hamburger-btn {
    width: 40px;
    height: 40px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    margin-left: 20px;
    z-index: 300;
}

.hamburger-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 5px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn span:nth-child(1) { top: 10px; }
.hamburger-btn span:nth-child(2) { top: 19px; }
.hamburger-btn span:nth-child(3) { top: 28px; }

.hamburger-btn.is-active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/*==================================
ナビゲーション 　search
==================================*/

.nav-search {
    width: 360px;
    height:calc(100dvh - 60px);
    background-color: #eee;
    padding:20px 10px;
    box-sizing: border-box;
    position: fixed;
    left:0px;
    top:60px;
    overflow-y: scroll;
    z-index: 300;
}

.nav-search-box {
    background-color: #fff;
    padding:20px;
    border-radius: 10px;
}

.nav-search h2{
    font-size:20px;
    color:#444;
    font-weight: 400;
    border-bottom:1px solid #444;
    margin-top:40px;
    margin-bottom:20px;
}


.nav-search-box .search-filter-group select{
    display: block;
    padding: 5px 50px 5px 0px;
    margin: 10px 0;
}

.view-toggle button {
    height: 50px;
    min-width: 50px;
    border: 1px solid #ccc;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.5;
}

.view-toggle button.active {
    border-color: #0071bc;
    background-color: #e6f7ff;
    opacity: 1;
}


.search-filter-group.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spot-filter-label {
    display: inline-block;
    height: 30px;
    padding: 0 15px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 30px;
    transition: all 0.2s ease;
    user-select: none;
}

.spot-filter-label.active {
    border-color: #0071bc;
    background-color: #e6f7ff;
    color: #0071bc;
    font-weight: bold;
}

.spot-filter-label .spot-checkbox,
.spot-filter-label input[type="checkbox"] {
    display: none;
}

.spot-filter-label.today.active { border-color: #222222; color: #222222; background-color: #eeeeee; }
.spot-filter-label.morning.active { border-color: #00aeff; color: #00aeff; background-color: #eaf8ff; }
.spot-filter-label.afternoon.active { border-color: #f15a24; color: #f15a24; background-color: #ffefe9; }
.spot-filter-label.night.active { border-color: #2e3192; color: #2e3192; background-color: #e9e9ff; }


.age-filter-row { display: flex; align-items: center; margin-bottom: 10px; }
.age-filter-row:last-child { margin-bottom: 0; }
.gender-label { width: 50px; font-weight: bold; }
.age-input { width: 50px; height: 30px; text-align: center; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.age-input[type=number] { -moz-appearance: textfield; }
.age-input::-webkit-outer-spin-button,
.age-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.age-tilde { margin: 0 5px; }


.price-filter-row { display: flex; align-items: center; }
.price-input { width: 80px; height: 30px; text-align: center; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.price-input[type=number] { -moz-appearance: textfield; }
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-tilde { margin: 0 5px; }


.freeword-input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}


.search-reset-container { margin-bottom: 20px; text-align: right; }
.search-reset-btn { padding: 5px 10px; font-size: 16px; cursor: pointer; transition: background-color 0.2s ease; text-decoration: underline; }
.search-reset-btn:hover { text-decoration: none; }

@media screen and (max-width: 768px) {
    .nav-search {
        width: 80%;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.4s ease, visibility 0.4s ease;
        top:50px;
        z-index: 300;
    }
    .nav-search.is-active { transform: translateX(0); visibility: visible; }
    .main-content { padding-left: 20px; }
    .nav-grobal { width: 80%; max-width: 300px; top: 0; height: 100dvh; }
}

/*==================================
ナビゲーション　Grobal
==================================*/
.nav-grobal {
    width: 360px;
    height: calc(100dvh - 60px); 
    background-color: #f4f4f4;
    box-shadow: 0px 0px 5px 0px rgba(100,100,100,0.9);
    padding: 20px 10px;
    box-sizing: border-box;
    position: fixed;
    top: 60px;
    right: 0px;
    z-index: 300;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.4s ease, visibility 0.4s ease, opacity 0.4s ease;
    overflow-y: auto;
}

.nav-grobal.is-active { transform: translateX(0); visibility: visible; opacity: 1; }
.nav-grobal .menu-section{ border-bottom:1px solid #aaa; padding:10px 0 40px 0; }
.nav-grobal ul{ list-style: none; padding:0px; margin:0; }
.nav-grobal ul li a{ display: block; padding:10px; text-decoration: none; }
.nav-grobal ul li a:hover{ background-color: #aaa; }

#nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 250;
    display: none;
}
#nav-overlay.is-active { display: block; }

@media screen and (max-width: 768px) {
    .nav-grobal { width: 80%; max-width: 300px; top: 50px; height: calc(100dvh - 60px); }
}

.guest-menu { padding: 10px; text-align: center; }
.guest-menu p { font-size: 14px; margin-bottom: 15px; color: #333; }
.auth-button-menu { display: block; width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 4px; text-decoration: none; font-weight: bold; box-sizing: border-box; transition: background-color 0.2s, color 0.2s; }
.auth-button-menu.register { background-color: #0071bc; color: #fff; border: 1px solid #0071bc; }
.auth-button-menu.register:hover { background-color: #005a9a; }
.auth-button-menu { background-color: #fff; color: #333; border: 1px solid #ccc; }
.auth-button-menu:hover { background-color: #f4f4f4; }

/*==================================
横スクロールバーのスタイル
==================================*/
.nav-search { scrollbar-color: #bbb transparent; scrollbar-width: thin; }
.date-list, .event-list-today { scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color 0.3s ease-out; }
.nav-search:hover, .date-list:hover, .event-list-today:hover { scrollbar-color: #bbb transparent; }
.nav-search::-webkit-scrollbar, .date-list::-webkit-scrollbar, .event-list-today::-webkit-scrollbar { height: 8px; }
.nav-search::-webkit-scrollbar-track, .date-list::-webkit-scrollbar-track, .event-list-today::-webkit-scrollbar-track { background-color: #fff; }
.nav-search::-webkit-scrollbar-thumb, .date-list::-webkit-scrollbar-thumb, .event-list-today::-webkit-scrollbar-thumb { background-color: #bbb; border-radius: 4px; }
.nav-search::-webkit-scrollbar-thumb:hover, .date-list::-webkit-scrollbar-thumb:hover, .event-list-today::-webkit-scrollbar-thumb:hover { background-color: #999; }

/*==================================
メインコンテンツ
==================================*/
.main-content { padding:20px; margin-top:60px; padding-left:380px; transition: padding-left 0.4s ease; min-height: calc(100dvh - 110px); }
.main-header { margin-bottom:40px; }
.search-description h1 { font-size: 32px; margin-bottom: 8px; }
.search-description .criteria-summary.active { font-size: 14px; color: #555; display: flex; flex-wrap: wrap; gap: 0px 20px; background-color: #fafafa; padding:10px; border-radius: 4px; }
.search-description .criteria-item { display: flex; align-items: baseline; }
.search-description .criteria-label { font-weight: bold; margin-right: 8px; white-space: nowrap; }
nav.date-list{ width: 100%; overflow-x: scroll; }
nav.date-list ul{ display: flex; align-items: end; list-style: none; padding:0; padding-left: 10px; white-space: nowrap; }
nav.date-list ul li{ padding:20px; border-radius:10px 10px 0 0; background-color: #999; margin-right:10px; line-height: 1rem; height: 40px; font-weight: 400; color:#fff; display: flex; align-items: center; box-sizing: border-box; transition: all 0.2s ease; }
nav.date-list ul li.today{ font-weight: 600; min-width:auto; height:50px; font-size:20px; }
nav.date-list ul li.tomorrow{ font-weight: 600; min-width:auto; height:50px; font-size:20px; }
nav.date-list ul li:hover{ height:50px; transition: all 0.2s ease; }
nav.date-list ul li.selected{ height:50px; background-color: #444; transition: all 0.1s ease; }
.horizontal-scroll-wrapper-date{ position: relative; }
.horizontal-scroll-wrapper-date::after { content:""; display: block; width: 100%; border-bottom:2px solid #999; position: absolute; bottom: 25px; }

@media screen and (max-width: 768px) {
    .main-content { padding: 10px; }
    .main-header { margin-bottom:40px; }
    .main-header h1{ font-size:26px; }
    nav.date-list ul li{ padding:15px; border-radius:5px 5px 0 0; margin-right:10px; font-size:14px; line-height: 1rem; height: 35px; font-weight: 400; }
    nav.date-list ul li.today{ font-size:16px; }
    nav.date-list ul li.tomorrow{ font-size:16px; }
    .horizontal-scroll-wrapper-date::after { bottom: 15px; }
}

h2.header-timeline { border-bottom:1px solid #222; font-weight: 400; margin-top:40px; }
h2.header-timeline.today { color:#222; border-bottom:1px solid #222; }
.header-timeline.morning { color:#00aeff; border-color: #00aeff; }
.header-timeline.afternoon { color:#f15a24; border-color: #f15a24; }
.header-timeline.night { color:#2e3192; border-color: #2e3192; }

@media screen and (max-width: 768px) {
    h2.header-timeline { font-size:20px; margin-top:40px; }
}

ul.event-list-today { list-style: none; padding: 10px; display: flex; gap:20px; width: 100%; overflow-x: scroll; box-sizing: border-box; }
ul.event-list-today li{ width:240px; flex-shrink: 0; overflow: hidden; }
ul.event-list-today li a{ text-decoration: none; display: block; }
ul.event-list-today li a:hover{ text-decoration: underline; }
ul.event-list-today li a:hover img{ opacity: 0.8; }
ul.event-list-today li img{ width: 100%; height: auto; aspect-ratio:1/1.414; display: block; object-fit: contain; background-color: #eee; box-shadow: 0px 0px 5px 0px rgba(100,100,100,0.5); }
.event-list-details-today { padding:10px 0px; box-sizing: border-box; }
.event-list-details-today .title a { color: inherit; text-decoration: none; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.event-list-details-today .title a:hover { text-decoration: underline; }

@media screen and (max-width: 768px) {
    ul.event-list-today { padding: 0px; display: flex; gap:15px; }
    ul.event-list-today li { width: 33%; height: auto; }
    .event-list-details-today { font-size:14px; }   
}

ul.event-list { list-style: none; border-left:1px solid #aaa; padding: 0; margin-left: 10px; padding-left: 30px; padding-bottom:30px; display: flex; flex-wrap: wrap; gap:20px; width: 100%; box-sizing: border-box; }
ul.event-list li{ display: flex; flex-direction: column; text-decoration: none; padding:10px; height: 100%; position: relative; box-sizing: border-box; background-color: #fff; box-shadow: 0px 0px 5px 0px rgba(100,100,100,0.5); }
ul.event-list li .title a{ flex-grow: 1; margin: 10px 0; line-height: 1.3rem; max-height: 60px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
ul.event-list li a img{ display: block; width: 100%; height: auto; aspect-ratio:3/2; object-fit: contain; }
ul.event-list li a:hover img{ opacity: 0.8; }
ul.event-list li a{ text-decoration: none; display: block; }
ul.event-list li a:hover{ text-decoration: underline; }
ul.event-list .event-list-details-header { display: flex; justify-content: space-between; font-weight: 600; font-size:20px; }
ul.event-list .event-list-details-footer { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.organizer { font-size:16px; }
.apply-num { font-size:20px; }
.apply-num span{ font-size:30px; font-weight: 600; color:#ff5500; }

@media screen and (max-width: 768px) {
    ul.event-list { border-left:none; padding: 0; padding-bottom:30px; }
    .apply-num { font-size:16px; }
    .apply-num span{ font-size:20px; color:#ff5500; }
    .organizer { font-size:14px; }
}

/* --- 表示スタイル切替 --- */
ul.event-list.view-box-big li{ width:280px; height: auto; aspect-ratio: 7/9; }
@media screen and (max-width: 768px) {
    ul.event-list.view-box-big { list-style: none; border-left:none; padding: 0; margin-left: 0px; padding-left: 0px; padding-bottom:30px; display: flex; flex-direction: column; gap:20px 0; width: 100%; box-sizing: border-box; }
    ul.event-list.view-box-big li{ width: 100%; height: auto; aspect-ratio: inherit; box-shadow: 0px 0px 8px 0px rgba(100,100,100,0.3); }
    ul.event-list.view-box-big li .title a{ max-height:60px; }
    ul.event-list li img{ margin:5px 0; }
}

ul.event-list.view-box-small li{ width:200px; height: auto; aspect-ratio: 7/9; padding:5px; }
ul.event-list.view-box-small li .event-list-details-header{ font-size:15px; padding:0px; }
ul.event-list.view-box-small li .title a{ font-size:14px; padding:0px; margin:0; height: 60px; overflow: hidden; margin: 0; }
ul.event-list.view-box-small li .event-list-details-footer { font-size:14px; padding:5px; }
ul.event-list.view-box-small li .organizer { font-size:12px; }
ul.event-list.view-box-small li .apply-num { font-size:14px; }
ul.event-list.view-box-small li .apply-num span{ font-size:18px; color:#ff5500; }
@media screen and (max-width: 768px) {
    ul.event-list.view-box-small { list-style: none; border-left:none; padding: 0; margin-left: 0px; padding-left: 0px; padding-bottom:30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap:20px 0; width: 100%; box-sizing: border-box; }
    ul.event-list.view-box-small li{ width: calc(50% - 5px); height: auto; aspect-ratio: 1 / 1.5; box-shadow: 0px 0px 8px 0px rgba(100,100,100,0.3); }
    ul.event-list.view-box-small li a img{ margin: 0; }
}

ul.event-list.view-list { flex-direction: column; }
ul.event-list.view-list li { max-width: 900px; width: 100%; height: 160px; aspect-ratio: inherit; display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "image header" "image title" "image footer"; padding: 10px; gap: 0 15px; }
ul.event-list.view-list li > .event-image { grid-area: image; width: auto; height: 140px; aspect-ratio: 3/2; }
ul.event-list.view-list li > .event-image img { width: 100%; height: 100%; object-fit: contain; }
ul.event-list.view-list li > .event-list-details-header { grid-area: header; justify-content: flex-start; }
ul.event-list.view-list li > .event-list-details-header .time { margin-right: 20px; }
ul.event-list.view-list li > .title{ grid-area: title; font-size: 18px; padding: 0; margin: 0; }
ul.event-list.view-list li > .title a{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media screen and (max-width: 768px) {
    ul.event-list.view-list{ display: flex; flex-flow: column; list-style: none; border-left:none; padding: 0; margin-left: 0px; padding-left: 0px; padding-bottom:30px; }
    ul.event-list.view-list li { max-width: 100%; width: 100%; height: 100px; aspect-ratio: inherit; display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "image header" "image title" "image footer"; padding: 5px; gap: 0 10px; }
    ul.event-list.view-list li > .event-image{ grid-area: image; width: auto; height: calc(100% - 10px); aspect-ratio: 3/2; }
    ul.event-list.view-list li > .event-image img{ width: 100%; }
    ul.event-list.view-list li > .event-list-details-header { grid-area: header; font-size: 16px; }
    ul.event-list.view-list li > .event-list-details-header .time { margin-right: 10px; }
    ul.event-list.view-list li > .title a{ grid-area: title; font-size:14px; line-height: 1.3; margin: 0; }
    ul.event-list.view-list li > .event-list-details-footer { grid-area: footer; margin-top: 0; }
    ul.event-list.view-list li .organizer { font-size: 12px; }
    ul.event-list.view-list li .apply-num { font-size: 14px; }
    ul.event-list.view-list li .apply-num span { font-size: 16px; }
}

/*==================================
ポップアップウィンドウ
==================================*/
body.popup-open { overflow: hidden; }
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.popup-overlay.is-active { opacity: 1; visibility: visible; }
.popup-window { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); width: 95%; max-width: 1000px; height: 90dvh; max-height: 1000px; background-color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 999; opacity: 0; visibility: hidden; transition: transform 0.3s, opacity 0.3s, visibility 0.3s; display: flex; flex-direction: column; }
.popup-window.is-active { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
#popup-content { display: flex; flex-direction: column; height: 100%; padding: 30px; overflow-y: auto; box-sizing: border-box; }
.popup-close-btn { position: absolute; top: 15px; right: 15px; width: 30px; height: 30px; border: none; background: none; cursor: pointer; z-index: 10; }
.popup-close-btn::before, .popup-close-btn::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: #333; }
.popup-close-btn::before { transform: rotate(45deg); }
.popup-close-btn::after { transform: rotate(-45deg); }

.popup-image-wrapper { width: 100%; text-align: center; margin-bottom: 20px; }
.popup-image-wrapper img { max-width: 100%; max-height: 430px; object-fit: contain; }
.popup-body { flex-grow: 1; }
.popup-header { display: flex; align-items: center; font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.popup-header .time { margin-right: 20px; }
.popup-title { font-size: 20px; margin: 0 0 15px 0; }
.popup-organizer { margin-bottom: 20px; }
.popup-description { line-height: 1.8; }
.popup-appeal-options, .popup-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.popup-appeal-option { padding: 5px; font-size: 12px; color: #fff; background-color: var(--option-color, #6c757d); }
.popup-tag { padding: 5px; font-size: 12px; color: #333; background-color: #e9ecef; }
.popup-title { font-size: 24px; margin: 0 0 10px 0; }
.popup-header { display: flex; align-items: center; font-size: 18px; font-weight: bold; margin-bottom: 15px; }
.popup-description { margin-top: 20px; line-height: 1.8; }

@media screen and (max-width: 768px) {
    #popup-content { padding: 20px; }
    .popup-title { font-size: 20px; }
    .popup-header { font-size: 16px; }
    .popup-description { font-size: 16px; }
}

.popup-window.two-columns { flex-direction: row; }
#popup-content { display: flex; flex-direction: row; height: 100%; padding: 0; overflow: hidden; }
.popup-left-column { width: 700px; max-width: 70%; padding: 30px; box-sizing: border-box; overflow-y: auto; }
.popup-right-column { width: 300px; max-width: 30%; padding: 30px; box-sizing: border-box; background-color: #f9f9f9; display: flex; flex-direction: column; }

.popup-organizer-info, .popup-apply-info { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.popup-organizer-info .organizer { display: flex; align-items: center; gap: 15px; }
.popup-organizer-info .organizer-icon { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid #eee; background-color: #fff; }
.popup-organizer-info .organizer a { font-size: 16px; text-decoration: none; color: #333; line-height: 1.2em; }
.popup-organizer-info .organizer a span{ font-size: 14px; }
.popup-organizer-info .organizer a:hover { text-decoration: underline; }
.popup-organizer-info:last-child, .popup-apply-info:last-child, .popup-tickets-info:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.popup-tickets-info { flex-grow: 1; display: flex; flex-direction: column; min-height: 0; }
.popup-tickets-info h3 { margin-top: 0; margin-bottom: 10px; flex-shrink: 0; }
.tickets-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; overflow-y: auto; }
.tickets-list li { margin-bottom: 10px; }
.tickets-list li:last-child { margin-bottom: 0; }

/* ▼▼▼ ポップアップ内チケットのスタイルをここから変更・追加 ▼▼▼ */
.ticket-link { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid #ddd; border-radius: 8px; text-decoration: none; color: inherit; background-color: #fff; transition: background-color 0.2s, border-color 0.2s; }
.ticket-link:not(.disabled):not(.sold-out):hover { background-color: #f7faff; border-color: #0071bc; }
.ticket-details { display: flex; flex-direction: column; }
.ticket-name { font-weight: bold; margin-bottom: 5px; }
.ticket-price { font-size: 1em; color: #555; }
.ticket-status { font-weight: bold; color: #28a745; white-space: nowrap; margin-left: 15px; text-align: right; }
.ticket-status strong { font-size: 1.2em; }

/* 売り切れ */
.ticket-link.sold-out { background-color: #f2f2f2; border-color: #e0e0e0; color: #999; cursor: not-allowed; }
.ticket-link.sold-out:hover { background-color: #f2f2f2; border-color: #e0e0e0; }
.ticket-link.sold-out .ticket-status { color: #999; font-weight: normal; }

/* 参加資格なし */
.ticket-link.disabled { background-color: #f2f2f2; border-color: #e0e0e0; color: #999; cursor: not-allowed; pointer-events: none; }
.ticket-link.disabled .ticket-status { color: #dc3545; font-size: 14px; }
/* ▲▲▲ 変更・追加ここまで ▲▲▲ */

.popup-left-column h3 { font-size: 18px; border-bottom: 2px solid #0071bc; padding-bottom: 8px; margin-top: 30px; margin-bottom: 15px; }
.popup-left-column .section-divider { border-top: 1px solid #eee; margin: 30px 0; }
.popup-summary-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.popup-summary-table th, .popup-summary-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.popup-summary-table td span{ font-size:14px; }
.popup-summary-table th { background-color: #f8f9fa; font-weight: bold; width: 30%; }
.popup-map-container { margin-top: 10px; position: relative; width: 100%; padding-top: 75%; background-color: #f0f0f0; }
.popup-map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.popup-notes, .popup-cancellation-policy { font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.external-apply-btn { display: block; width: 100%; padding: 12px; background-color: #28a745; color: #fff; font-size: 16px; font-weight: bold; text-align: center; text-decoration: none; border-radius: 5px; margin-bottom: 15px; box-sizing: border-box; }
.external-apply-btn:hover { background-color: #218838; }

@media screen and (max-width: 768px) {
    .popup-window { transition:opacity 0.3s, visibility 0.3s; }
    .popup-window.two-columns { flex-direction: column; height: auto; max-height: 95dvh; overflow-y: auto; }
    #popup-content { flex-direction: column; overflow-y: visible; }
    .popup-left-column { width: 100%; max-width: 100%; height: auto; overflow-y: visible; padding: 20px; }
    .popup-right-column { width: 100%; max-width: 100%; height: auto; overflow-y: visible; padding: 20px; }
    .tickets-list { overflow-y: visible; }
    .popup-summary-table { font-size: 14px; }
}

footer {
    height:50px;
    text-align: center;
    background-color: #333;
    color:#fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
