: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: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.logo-sub {
    font-weight: 300;
    opacity: 0.8;
}

.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); /* カードの境界がはっきりするように、ほんのりピンクの影を追加 */
}

.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);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

/* バッジ単体への適用に限定 */
.status-badge.status-available {
    background: rgba(85, 139, 47, 0.1);
    color: var(--available-color);
    border: 1px solid rgba(85, 139, 47, 0.25);
    box-shadow: 0 2px 8px rgba(85, 139, 47, 0.1);
}

.status-badge.status-soldout {
    background: rgba(198, 40, 40, 0.08);
    color: var(--soldout-color);
    border: 1px solid rgba(198, 40, 40, 0.2);
}

/* カード自体のステータスごとの微調整 */
.play-card.status-available {
    border-color: var(--surface-border);
}

.play-card.status-soldout {
    border-color: var(--surface-border);
    opacity: 0.75; /* 完売カードは少し透過させる */
}

.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;
}

.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-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.95rem;
    font-weight: 500;
}

.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.status-available: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: 2rem;
    border-top: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 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;
    }
}
