/* =========================================
   Variables & Reset
   ========================================= */
:root {
    /* 日本の伝統色をイメージしたパレット */
    --color-bg: #fff0f5;
    /* 生成色（きなりいろ）に近いオフホワイト */
    --color-text: #333333;
    /* 墨色 */
    --color-primary: #586c5c;
    /* 鶯茶（うぐいすちゃ） - 落ち着いた緑 */
    --color-accent: #a84738;
    /* 弁柄色（べんがらいろ） - 深い赤 */
    --color-border: #dcdcdc;
    --color-card-bg: #ffffff;

    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-heading: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    /* 見出しは明朝体で和の雰囲気を */

    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-primary);
    display: inline-block;
    padding-bottom: var(--spacing-sm);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: #666;
}

/* =========================================
   Header / Hero
   ========================================= */
.hero {
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.1em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
    color: #ffd1dc;
    line-height: 1.2;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: #ffd1dc;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
    font-weight: normal;
}

.hero-title .note {
    font-size: 1rem;
    font-weight: normal;
    vertical-align: middle;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
    color: #ffd1dc;
}

.hero-info {
    background: rgba(0, 0, 0, 0.8);
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-info p {
    margin: var(--spacing-sm) 0;
}

.hero-info .label {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 2px;
    margin-right: 8px;
}

/* =========================================
   Overview Section
   ========================================= */
.content-block {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-card-bg);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-block h3 {
    font-family: var(--font-heading);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-sm);
}

.ticket-info ul li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
}

.ticket-info ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* =========================================
   Artist Section (Grid)
   ========================================= */
.artist-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 column */
    gap: var(--spacing-lg);
}

.artist-card {
    background: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.artist-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.artist-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
    /* 画像読み込み前のプレースホルダー色 */
}

.artist-card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
}

.artist-genre {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.artist-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* =========================================
   Access Section
   ========================================= */
.access-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.access-text strong {
    font-size: 1.2rem;
    color: var(--color-primary);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #2c2c2c;
    color: #fff;
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer .contact {
    margin-bottom: var(--spacing-sm);
    color: #aaa;
}

/* =========================================
   Modal
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: var(--color-card-bg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 1001;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal.is-open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 1002;
    padding: 0 10px;
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-header {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.modal-genre {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: bold;
}

.modal-artist-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 4px;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.modal-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    max-height: 80vh;
    /* 画面内に収まる程度の高さ制限 */
    margin: 0 auto;
}

/* 画像が1枚の時のスタイル（基本スタイルと同じで良いが、中央寄せなどを明示的に維持） */
.modal-gallery.is-single {
    /* 特に追加のスタイルは不要だが、将来的な調整のためにクラスは残しておく */
}

.modal-description {
    white-space: pre-wrap;
    /* 改行を反映 */
    line-height: 1.8;
    color: #444;
}

.modal-sns {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.sns-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: 0;
    list-style: none;
}

.sns-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.sns-link:hover {
    background-color: var(--color-primary);
    color: #fff;
    opacity: 1;
}

.sns-instagram {
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f09433', endColorstr='#bc1888', GradientType=1);
    color: #fff;
    font-weight: bold;
}

.sns-instagram:hover {
    opacity: 0.9;
}

.sns-x {
    background-color: #000;
    color: #fff;
}

.sns-facebook {
    background-color: #1877f2;
    color: #fff;
}

/* =========================================
   Responsive Queries
   ========================================= */
@media (min-width: 600px) {
    .artist-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 columns */
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .sp-only {
        display: none;
    }
}

@media (min-width: 900px) {
    .artist-grid {
        grid-template-columns: repeat(3, 1fr);
        /* PC: 3 columns */
    }

    .access-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .access-text {
        flex: 1;
    }

    .map-wrapper {
        flex: 1;
        padding-bottom: 30%;
        /* Adjust aspect ratio for side-by-side */
    }


    @media (min-width: 1200px) {
        .artist-grid {
            grid-template-columns: repeat(4, 1fr);
            /* Large PC: 4 columns */
        }
    }

    /* =========================================
   Creator Link
   ========================================= */
    .footer .creator {
        margin-top: var(--spacing-sm);
        color: #aaa;
    }

    .footer a {
        color: #fff;
        text-decoration: underline;
    }

    .footer a:hover {
        color: #ddd;
        text-decoration: none;
    }
}