@charset "UTF-8";

/* =========================================
   トップページ構成 (Top Page Layout)
   ========================================= */

/* --- ヒーローエリア --- */
.hero {
    height: auto;
    min-height: 60vh;
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-image: url('../images/floor.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(180, 160, 140, 0.85), rgba(80, 60, 50, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    margin-top: 40px; 
}

.hero h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 3rem;
    margin-top: -80px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.4;
    opacity: 0;
}

@keyframes titleCinematicReveal {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(30px) scale(1.1);
        letter-spacing: 0.1em;
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
        letter-spacing: 0.05em;
    }
}

.hero-title-anim.show {
    opacity: 1;
    animation: titleCinematicReveal 2.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 500;
}

.hero-btn-secondary {
    background-color: #fff;
    color: var(--text-dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 500;
}

/* --- ニュースセクション --- */
.news-section {
    background-color: var(--white);
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}

.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.news-item:hover {
    background-color: #fafafa;
    padding-left: 10px;
}

.news-date {
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--text-light);
    margin-right: 20px;
    min-width: 90px;
}

.news-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 15px;
    color: #fff;
    background: #ccc;
    min-width: 80px;
    text-align: center;
}

.news-tag.event { background-color: var(--accent-color); }
.news-tag.info { background-color: var(--primary-color); }

.news-title {
    font-weight: 400;
    color: var(--text-dark);
    flex: 1;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: 0.3s;
}

.news-item:hover .news-title {
    text-decoration-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- コンセプトセクション --- */
.concept-section {
    padding: 80px 0;
    background-color: var(--white);
}

.concept-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

.concept-image {
    flex: 1;
    height: 350px;
    border-radius: 20px;
    background-image: url('../images/drink.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
}

.concept-text {
    flex: 1;
}

.concept-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 30px;
    border-left: 5px solid #a83e3e;
    padding-left: 20px;
}

/* --- フォトギャラリー (修正版) --- */
.gallery-section {
    padding: 50px 0 80px;
    background-color: #fcfcfc;
}

.gallery-slider-wrapper {
    width: 100%;
    height: auto;
    padding: 20px 25px 40px;
    overflow-x: hidden;
    overflow-y: hidden;
    cursor: grab;
}

.gallery-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

.gallery-item {
    flex: 0 0 320px;
    width: 320px;
    flex-shrink: 0; /* ★縮小防止の重要設定 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    opacity: 0.7;
    transform: scale(1.0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    font-family: var(--font-main);
    position: relative;
    padding-bottom: 8px;
}

.gallery-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 8px auto 0;
    opacity: 0.8;
}

.gallery-item:hover,
.gallery-item.active {
    opacity: 1.0;
    transform: scale(1.1);
    z-index: 10;
    transition-duration: 0.2s;
}

.gallery-item:hover .gallery-photo,
.gallery-item.active .gallery-photo {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* --- 3つのポイント (Reasons) --- */
.reasons-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.reason-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    padding: 30px 20px;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.reason-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.reason-title {
    color: #a83e3e;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.reason-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: left;
}

/* --- スタッフセクション --- */
.staff-section {
    padding: 80px 0;
    background-color: var(--white);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

.staff-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.staff-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.staff-img {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center top;
    border: 4px solid var(--bg-light);
    transition: transform 0.5s ease;
}

.staff-card:hover .staff-img {
    transform: scale(1.1);
}

.staff-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.staff-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: var(--font-serif);
    font-weight: 400;
}

.staff-msg {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: left;
}

/* --- システム・料金セクション --- */
.system-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 12px 35px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    pointer-events: none;
}

.tab-btn[data-target="culture"].active {
    background-color: var(--color-culture);
    color: white;
}

.tab-btn[data-target="study"].active {
    background-color: var(--color-study);
    color: white;
}

.tab-btn[data-target="enjoy"].active {
    background-color: var(--color-enjoy);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    border-top: 8px solid #ddd;
    margin-bottom: 40px;
}

.course-card.theme-study { border-color: var(--color-study); }
.course-card.theme-culture { border-color: var(--color-culture); }
.course-card.theme-enjoy { border-color: var(--color-enjoy); }

.course-body { padding: 40px; }

.tag-pill {
    display: inline-block;
    font-size: 0.9rem;
    padding: 5px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    background: #eee;
    color: #555;
    font-weight: 500;
}

.theme-culture .tag-pill { background: var(--bg-culture); color: var(--color-culture); }
.theme-study .tag-pill { background: var(--bg-study); color: var(--color-study); }
.theme-enjoy .tag-pill { background: var(--bg-enjoy); color: var(--color-enjoy); }

.course-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.course-layout {
    display: flex;
    gap: 30px;
    text-align: left;
    align-items: stretch;
}

.course-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.course-right {
    flex: 1;
    display: flex;
}

.detail-block {
    padding: 10px 0;
    width: 100%;
}

.detail-title {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

.detail-content {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.3;
}

.detail-price {
    font-size: 2.6rem;
    margin-right: 5px;
    font-family: var(--font-serif);
    font-weight: 400;
}

.recommend-box {
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-culture .recommend-box { background: var(--bg-culture); }
.theme-study .recommend-box { background: var(--bg-study); }
.theme-enjoy .recommend-box { background: var(--bg-enjoy); }

.recommend-title {
    text-align: center;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.theme-culture .recommend-title { color: var(--color-culture); }
.theme-study .recommend-title { color: var(--color-study); }
.theme-enjoy .recommend-title { color: var(--color-enjoy); }

.check-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-weight: 400;
    color: #555;
    font-size: 1.05rem;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    font-weight: bold;
    top: 1px;
}

/* --- 貸し卓セクション --- */
.rental-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.rental-container {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
    max-width: 950px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.rental-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.rental-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
    border: 2px solid #f0f0f0;
}

.rental-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.rental-day {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    font-size: 1.2rem;
}

.rental-price {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-serif);
}

.rental-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #888;
}

/* --- ルールセクション --- */
.rule-section {
    padding: 80px 0;
    background-color: var(--white);
}

.rule-group-label {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
}

.rule-nav-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.rule-tab-btn {
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.rule-tab-btn:hover { opacity: 0.8; }

.rule-tab-btn.rule-type-game.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.rule-tab-btn.rule-type-manner.active {
    background-color: var(--manner-color);
    color: var(--white);
}

.rule-content-box {
    background: #ffffff !important;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    min-height: 350px;
    box-shadow: var(--shadow-sm);
}

.rule-content-box.mode-game { border-color: var(--primary-color); }
.rule-content-box.mode-manner { border-color: var(--manner-color); }

.rule-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
    background-color: transparent !important;
}

.rule-tab-content.active { display: block; }

.rule-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 3px solid #ddd;
    padding-bottom: 5px;
    font-weight: 400;
}

.rule-type-game .rule-title {
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.rule-type-manner .rule-title {
    color: var(--manner-dark);
    border-color: var(--manner-color);
}

.rule-list li {
    margin-bottom: 15px;
    padding-left: 1.5em;
    position: relative;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    color: var(--text-dark);
}

.rule-list li:last-child { border-bottom: none; }

.rule-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    font-size: 0.8em;
    top: 6px;
}

.rule-type-game .rule-list li::before { color: var(--primary-color); }
.rule-type-manner .rule-list li::before { color: var(--manner-color); }

/* --- アクセスセクション --- */
.access-section {
    background-color: #f0f4f2;
    padding: 80px 0;
}

.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.access-info {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* --- レスポンシブ調整 (Index Specific) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.9rem; }
    
    .news-item { flex-direction: column; }
    .news-date { margin-bottom: 5px; }
    
    .concept-container { flex-direction: column; gap: 30px; }
    .concept-image { width: 100%; height: 250px; }
    
    .reason-grid,
    .rental-grid {
        grid-template-columns: 1fr;
    }
    
    .course-layout { flex-direction: column; }
    .course-left,
    .course-right {
        width: 100%;
    }
    
    .recommend-box { height: auto; }
    .access-grid { grid-template-columns: 1fr; }
    
    .tab-content {
        display: block !important;
        opacity: 1 !important;
    }
    
    .tab-btn.active {
        pointer-events: auto;
        background-color: transparent;
        color: var(--text-light);
    }
    
    .course-title { font-size: 1.8rem; }
    .recommend-title { font-size: 1.1rem; }
    
    /* ギャラリーのスクロール設定 */
    .gallery-slider-wrapper {
        overflow-x: auto;
        padding-bottom: 30px;
    }
    
    .gallery-slider-wrapper::-webkit-scrollbar {
        display: block;
        height: 5px;
    }
    
    .gallery-slider-wrapper::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }
    
    .gallery-item {
        flex: 0 0 250px;
        width: 250px;
    }
    
    .rule-tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* =========================================
   月間カレンダー画像モーダル (Monthly Calendar Modal)
   ========================================= */

/* 画面全体を覆う黒い背景 */
.popup-modal {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    z-index: 99999; /* 最前面 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 濃い半透明の黒 */
    backdrop-filter: blur(4px); /* 背景ぼかし */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 表示時のアニメーション用クラス */
.popup-modal.show {
    opacity: 1;
}

/* コンテンツのラッパー */
.popup-content-wrapper {
    position: relative;
    text-align: center;
    max-width: 95%;
    max-height: 90%;
}

/* カレンダー画像本体 */
.popup-cal-img {
    max-width: 100%;
    max-height: 80vh; /* 画面高さの80%まで */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-modal.show .popup-cal-img {
    transform: scale(1);
}

/* 閉じるボタンエリア */
.popup-close-area {
    margin-bottom: 15px;
    text-align: right;
}

/* 閉じるボタン */
.popup-close-btn {
    display: inline-block;
    background: #fff;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.popup-close-btn:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}