:root {
    --bg-color: #fff8f9;
    --surface-color: rgba(255, 248, 249, 0.85);
    --surface-border: rgba(209, 73, 91, 0.28); /* 枠線を見えやすく少し濃いめのピンクに調整 */
    --text-primary: #3d2f30;
    --text-secondary: #8c7678;
    --accent-color: #d1495b;
    --accent-glow: rgba(209, 73, 91, 0.15);
    --cyan-accent: #e05a70;
    --available-color: #558b2f;
    --soldout-color: #c62828;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ffeef0 80%);
    z-index: -2;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 248, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Noto Sans JP', sans-serif;
    text-decoration: none;
    font-style: normal !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-text {
    display: flex;
    align-items: baseline; /* 舞台とあかりの下端を揃える */
    gap: 1px; /* 舞台とあかりの間の自然な隙間量に調整 */
}

.logo-image {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(209, 73, 91, 0.12));
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.08);
}

.logo-accent {
    color: var(--accent-color);
    font-weight: 800; /* より太く強調してロゴマークとのバランスをとる */
    font-size: 2.0rem; /* 「あかり」を非常に大きく目立たせる */
    line-height: 1;
    font-style: normal !important;
    text-shadow: none;
    
    /* カルーセル提案Fのグラデーションに合わせたい場合は、以下の4行のコメントアウトを解除してください */
    /*
    background: linear-gradient(135deg, #ff7e95 0%, #ffb07c 60%, #ffd54f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    */
}

.logo-sub {
    font-weight: 500; /* 少しだけ太さを出して視認性を確保 */
    font-size: 0.95rem; /* 「舞台」を小さく控えめにする（あかりの約半分） */
    color: var(--text-secondary);
    opacity: 0.85;
    font-style: normal !important;
    line-height: 1;
}

.date-range {
    font-size: 0.9rem;
    color: var(--cyan-accent);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Hero */
.hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('assets/sakura_theater_hero.png');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 238, 240, 0.2) 0%, var(--bg-color) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    animation: fadeIn 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content .highlight {
    color: var(--cyan-accent);
    text-shadow: 0 0 20px rgba(0,229,255,0.4);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff4b82 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--accent-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(226, 0, 90, 0.6);
}

/* Filters */
.filter-section {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.filter-container {
    display: flex;
    gap: 0.5rem;
    background: var(--surface-color);
    padding: 0.5rem;
    border-radius: 40px;
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(209, 73, 91, 0.1);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(209, 73, 91, 0.05);
}

/* Plays Grid */
.plays-section {
    padding: 1rem max(5vw, 2rem) 5rem;
    min-height: 50vh;
}

.plays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Card */
.play-card {
    background: var(--surface-color);
    border: 3px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    box-shadow: 0 8px 30px rgba(209, 73, 91, 0.05); /* カードの境界がはっきりするように、ほんのりピンクの影を追加 */
    cursor: pointer;
}

.play-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(209, 73, 91, 0.08), 0 0 20px rgba(224, 90, 112, 0.15);
    border-color: rgba(224, 90, 112, 0.3);
}

.card-image-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    background-color: #1a1a24;
}

.play-card:hover .card-image {
    transform: scale(1.08);
}



.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.theater-name {
    font-size: 0.85rem;
    color: var(--cyan-accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.theater-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.theater-separator {
    color: var(--text-secondary);
    opacity: 0.5;
    margin: 0 0.2rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: color 0.2s ease, transform 0.2s ease;
    vertical-align: middle;
}

.map-link:hover {
    color: #ff4b82;
    transform: scale(1.2);
}

.map-icon {
    stroke: currentColor;
    vertical-align: middle;
}

.play-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.company-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-categories {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.category-tag {
    background-color: rgba(209, 73, 91, 0.06);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(209, 73, 91, 0.15);
    transition: all 0.2s ease;
}

.category-tag:hover {
    background-color: rgba(209, 73, 91, 0.12);
    transform: translateY(-1px);
}

.card-leads {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.card-leads strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 0.2rem;
}

.card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--surface-border);
    padding-top: 1rem;
}

.card-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.card-btn {
    background: rgba(209, 73, 91, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(209, 73, 91, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.play-card:hover .card-btn {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* No results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.4;
}

.copyright {
    opacity: 0.8;
}

/* Subpage styling */
.subpage-container {
    max-width: 800px;
    margin: 100px auto 4rem;
    padding: 2.5rem;
    background: var(--surface-color);
    border: 3px solid var(--surface-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(209, 73, 91, 0.05);
    animation: fadeIn 0.6s ease-out forwards;
}

.subpage-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--surface-border);
    padding-bottom: 0.8rem;
    line-height: 1.3;
}

.subpage-body {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
}

.subpage-body h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 0.8rem;
}

.subpage-body p {
    margin-bottom: 1.2rem;
}

.subpage-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.subpage-body li {
    margin-bottom: 0.5rem;
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(209, 73, 91, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.submit-btn-container {
    margin-top: 1rem;
}

.back-btn-container {
    margin-top: 2rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1.5rem;
}

.text-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.text-btn:hover {
    color: #ff4b82;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .plays-grid {
        grid-template-columns: 1fr;
    }
    .header {
        padding: 1rem;
    }
    .subpage-container {
        margin: 80px 1rem 2rem;
        padding: 1.5rem;
    }
    .subpage-title {
        font-size: 1.6rem;
    }
}

/* Modal Detail Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 248, 249, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    max-width: 680px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--surface-color);
    border: 3px solid var(--surface-border);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 60px rgba(209, 73, 91, 0.12), 0 0 30px rgba(209, 73, 91, 0.05);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 2.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-border) transparent;
}

.modal-overlay.active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 2.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-image-wrap {
    height: 280px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--surface-border);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #1a1a24;
}

.modal-theater {
    font-size: 0.95rem;
    color: var(--cyan-accent);
    margin-bottom: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.modal-categories {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.modal-leads {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 1.8rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 0.8rem;
    line-height: 1.5;
}

.modal-leads strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 0.3rem;
}

.modal-synopsis-section {
    background: rgba(209, 73, 91, 0.03);
    border: 1px dashed rgba(209, 73, 91, 0.2);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.modal-synopsis-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-synopsis-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: justify;
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--surface-border);
    padding-top: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-date {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Scrollbar customization for modal */
.modal-window::-webkit-scrollbar {
    width: 6px;
}
.modal-window::-webkit-scrollbar-track {
    background: transparent;
}
.modal-window::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 3px;
}

/* Responsive adjustment for modal */
@media (max-width: 576px) {
    .modal-window {
        padding: 1.5rem;
        max-height: 90vh;
    }
    .modal-image-wrap {
        height: 180px;
    }
    .modal-title {
        font-size: 1.4rem;
    }
    .modal-meta {
        flex-direction: column;
        align-items: stretch;
    }
    .modal-meta .card-btn {
        width: 100%;
        text-align: center;
    }
}
