/* ==========================================
   ■ :root (変数)
   ========================================== */
:root {
    --wst-color-text-primary: #333333;
    --wst-color-fill-background: #ffffff;
    --main-font: "ot-pshirotae-stdn", "Hiragino Mincho ProN", serif;
    --accent-color: #d4a373;
}

/* モバイルで body の overflow 切替時にスクロールバー分だけレイアウトが横にずれるのを抑える */
html {
    scrollbar-gutter: stable;
}

/* ==========================================
   ■ body 
   ========================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--main-font);
    background-color: var(--wst-color-fill-background);
    color: var(--wst-color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   ■ nav (本体)
   ========================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4vw;
    background-color: rgba(255,255,255,0.95);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
nav.at-top {
    background-color: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}

/* ハンバーガーボタン（PCでは非表示） */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1002;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(0,0,0,0.05); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}
nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
body.nav-open { overflow: hidden; }

/* メニューを包むパネル（PCでは横並びのまま） */
.nav-panel {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* ==========================================
   ■ nav ul / .nav-menu / .nav-sns 
   ========================================== */
.nav-menu, .nav-sns {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-sns {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

/* ==========================================
   ■ nav a (リンク) 
   ========================================== */
nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.6;
}

.site-root nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.site-root nav ul li a:hover {
    color: #777;
}

.nav-menu a:hover { 
    color: var(--accent-color); 
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

/* ==========================================
   ■ .sns-btn (SNSアイコン) 
   ========================================== */
.sns-btn {
    text-decoration: none;
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f0;
    transition: transform 0.3s;
}
.sns-btn:hover { transform: scale(1.1); background: #e0e0e0; }

/* ==========================================
   ■ .content-box / .container-center 
   ========================================== */
.container-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.container-center img {
    max-width: 100%;
    height: auto;
}
.content-box {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 80px 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

/* ==========================================
   ■ トップ：サイト概要（地域・イベント系キーワードを自然に含める）
   ========================================== */
.home-seo-intro {
    position: relative;
    z-index: 2;
    background: #fafafa;
    padding: 48px 4vw 40px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}
.home-seo-intro-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.home-seo-intro .home-seo-heading {
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: normal;
    letter-spacing: 0.1em;
    line-height: 1.55;
    color: #333;
    margin: 0 0 1rem;
    text-align: center;
}
.home-seo-intro .home-seo-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555;
    letter-spacing: 0.04em;
    text-align: center;
}

@media (max-width: 768px) {
    .home-seo-intro {
        padding: 36px max(16px, env(safe-area-inset-left)) 32px max(16px, env(safe-area-inset-right));
    }
    .home-seo-intro .home-seo-text {
        font-size: 0.88rem;
    }
}

/* ==========================================
   ■ トップ：オンラインショップへの動線
   ========================================== */
.home-shop-cta {
    position: relative;
    z-index: 2;
    background: linear-gradient(165deg, #f4faf8 0%, #eef5f2 50%, #f8f9f8 100%);
    padding: 40px 4vw 44px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(18, 125, 98, 0.1);
}
.home-shop-cta-inner {
    max-width: 920px;
    margin: 0 auto;
}
.home-shop-cta-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    background: #fff;
    box-shadow: 0 8px 36px rgba(18, 93, 74, 0.1);
    border: 1px solid rgba(18, 125, 98, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.home-shop-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(18, 93, 74, 0.16);
}
.home-shop-cta-card:focus-visible {
    outline: 3px solid #127d62;
    outline-offset: 3px;
}
.home-shop-cta-photo {
    flex: 0 0 44%;
    min-width: 0;
    min-height: 220px;
    background: #e8eeeb;
}
.home-shop-cta-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}
.home-shop-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 28px 30px 32px;
    min-width: 0;
    text-align: left;
}
.home-shop-cta-en {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #127d62;
}
.home-shop-cta-title {
    margin: 0 0 12px;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.45;
    color: #1a1a1a;
}
.home-shop-cta-lead {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #444;
    letter-spacing: 0.03em;
}
.home-shop-cta-btn {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 20px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(180deg, #127d62 0%, #0d5c48 100%);
    box-shadow: 0 4px 14px rgba(18, 125, 98, 0.35);
}
@media (max-width: 640px) {
    .home-shop-cta {
        padding: 32px max(16px, env(safe-area-inset-left)) 36px max(16px, env(safe-area-inset-right));
    }
    .home-shop-cta-card {
        flex-direction: column;
    }
    .home-shop-cta-photo {
        flex: none;
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
        max-height: 52vw;
    }
    .home-shop-cta-text {
        padding: 22px 20px 26px;
    }
    .home-shop-cta-btn {
        align-self: stretch;
        justify-content: center;
    }
}

/* ==========================================
   ■ トップ：最新トピック（topics.json + topics.js）
   ========================================== */
.topics-section {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    padding: 120px 4vw 100px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.topics-inner {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
}

.topics-section .topics-heading {
    font-size: 1.35rem;
    font-weight: normal;
    letter-spacing: 0.12em;
    margin: 0 0 2.5rem;
}

.topics-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    border-top: 1px solid #eaeaea;
}

.topic-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 1.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid #eaeaea;
}

.topic-date {
    flex: 0 0 auto;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

.topic-body {
    flex: 1 1 min(200px, 100%);
    min-width: 0;
    overflow-wrap: anywhere;
}

.topic-title-link,
.topic-title-text {
    display: block;
    font-size: 1.05rem;
    line-height: 1.55;
    letter-spacing: 0.06em;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
}

a.topic-title-link:hover {
    color: var(--accent-color);
}

.topic-summary {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #666;
    letter-spacing: 0.04em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.topics-loading,
.topics-empty,
.topics-error {
    padding: 2rem 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    border-bottom: 1px solid #eaeaea;
}

.topics-error {
    color: #a65;
}

.topics-more-wrap {
    margin: 2rem 0 0;
    text-align: center;
}

a.topics-more-link {
    display: inline-block;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 163, 115, 0.45);
    padding-bottom: 0.15em;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a.topics-more-link:hover {
    color: #b8895a;
    border-bottom-color: rgba(184, 137, 90, 0.6);
}

/* お知らせアーカイブページ */
.topics-archive-section .topics-archive-box {
    text-align: center;
}

.topics-archive-lead {
    margin: 0 0 2rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #555;
    letter-spacing: 0.04em;
}

.topics-archive-back {
    margin: 2.5rem 0 0;
    font-size: 0.9rem;
}

.topics-archive-back a {
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(212, 163, 115, 0.35);
}

.topics-archive-back a:hover {
    color: #b8895a;
}

@media (max-width: 768px) {
    .topics-section {
        padding: 72px max(16px, env(safe-area-inset-left)) 64px max(16px, env(safe-area-inset-right));
    }

    .topics-section .topics-heading {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.08em;
    }

    .topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 1rem 0;
    }

    .topic-date {
        flex: none;
    }

    .topic-body {
        width: 100%;
    }

    .topic-title-link,
    .topic-title-text {
        font-size: 1rem;
        letter-spacing: 0.04em;
    }

    .topic-summary {
        font-size: 0.85rem;
        line-height: 1.65;
    }
}

@media (max-width: 600px) {
    .topics-section {
        padding: 64px 14px 56px;
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }

    .topics-section .topics-heading {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
}

/* ==========================================
   ■ 場内MAP（map.html / トップ埋め込み）横長画像・スマホは横スクロール
   ========================================== */
.home-venue-map {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 40px;
}

#topics,
#venue-map {
    scroll-margin-top: 1rem;
}

.venue-map-main {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 40px;
}

.venue-map-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 4vw 60px;
    box-sizing: border-box;
}

.venue-map-box {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 56px 40px;
}

.venue-map-en {
    margin-bottom: 0.35rem;
    text-align: center;
}

.venue-map-title {
    font-size: 1.75rem;
    font-weight: normal;
    letter-spacing: 0.15em;
    text-align: center;
    margin: 0 0 1.25rem;
}

.map-hint {
    font-size: 0.88rem;
    color: #444;
    text-align: center;
    line-height: 1.75;
    margin: 0 auto 1.5rem;
    max-width: 36em;
}

.map-hint strong {
    color: #222;
}

.map-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 12px;
    background: #fafafa;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.map-scroll img {
    display: block;
    width: auto;
    max-width: none;
    height: auto;
}

.map-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1.25rem 0 0;
    text-align: center;
}

.map-open-image {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.map-open-image:hover {
    color: #a67c52;
}

@media (max-width: 768px) {
    .venue-map-main {
        padding-top: 80px;
    }

    .venue-map-title {
        font-size: 1.45rem;
    }
}

/* ==========================================
   ■ .hero-stack（sticky 動画の親をヒーロー範囲に限定）
   ※ 親が site-root 全体だと sticky がページ最後まで貼り付き、下のセクションが背後に重なる
   ========================================== */
.hero-stack {
    position: relative;
    z-index: 0;
    min-height: 100vh;
}

/* ==========================================
   ■ .video-background 
   ========================================== */
.video-background {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    background: #000;
}

/* 動画は従来どおり全面カバー（ヒーローは常にビューポートを覆う） */
.video-background video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    animation: fade-out linear both;
    animation-timeline: scroll();
    animation-range: exit 0% exit 100%;
}

@media (max-width: 768px) {
    .video-background video {
        width: auto;
        height: auto;
        min-width: 100%;
        min-height: 100%;
    }
}

/*
 * 静止画：画面より小さいときは拡大しない（1:1〜縮小のみ）。全面カバーしない分、余白は黒。
 * 画面より大きいときだけ max で縮小して収める。
 */
.video-background img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: fade-out linear both;
    animation-timeline: scroll();
    animation-range: exit 0% exit 100%;
}

/* モバイル：従来どおり全面カバー（拡大しても画面いっぱいに） */
@media (max-width: 768px) {
    .video-background img {
        max-width: none;
        max-height: none;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
}

/* ==========================================
   ■ .ticket-btn 
   ========================================== */
.ticket-btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 20px 60px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ticket-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ==========================================
   ■ #bgm-button 
   ========================================== */
#bgm-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 50px;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ==========================================
   ■ @media (レスポンシブ)
   ========================================== */
@media (max-width: 768px) {
    /* 画面上部の白帯を出さず、ハンバーガーのみ右上に固定 */
    header {
        position: static;
        height: 0;
        min-height: 0;
        overflow: visible;
        pointer-events: none;
        background: transparent !important;
    }

    header nav {
        pointer-events: auto;
    }

    .nav-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        margin: 0;
        flex: none;
        align-self: stretch;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 80px max(24px, env(safe-area-inset-left)) 40px max(24px, env(safe-area-inset-right));
        box-sizing: border-box;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    nav.is-open .nav-panel {
        opacity: 1;
        visibility: visible;
    }
    .nav-menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        font-size: 1.1rem;
        text-align: center;
    }
    .nav-menu li {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    .nav-menu a { font-size: 1.1rem; }
    .nav-sns {
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        gap: 16px;
        margin-top: 16px;
    }
    nav {
        position: fixed;
        top: max(10px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        left: auto;
        bottom: auto;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 0;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        z-index: 1000;
    }

    .nav-toggle {
        display: flex;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-toggle:hover,
    .nav-toggle:focus-visible {
        background: rgba(0, 0, 0, 0.06) !important;
    }

    /* 暗い背景でも明い背景でも見えるよう線に薄いハイライト */
    .nav-toggle span {
        background: #222;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.85),
            0 1px 2px rgba(0, 0, 0, 0.35);
    }

    nav.is-open .nav-toggle span {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.85),
            0 1px 2px rgba(0, 0, 0, 0.35);
    }
    .vertical-text p { font-size: 24px; }
    .vertical-text { margin: 80px auto; }
    .contact-container { padding: 30px 15px; }
    .contact-title { font-size: 1.8rem; }
    .content-box { padding: 40px 20px; }
    h1.page-title { font-size: 2.5rem; }
    /* iOSで fixed 背景が崩れる・重いためモバイルでは scroll に */
    .hero-section,
    .parallax-section,
    .gallery-main,
    main[style*="background-attachment"] {
        background-attachment: scroll !important;
    }
    .main-content { padding: 80px 15px 40px; }
    .hero-section { padding: 60px 15px 40px; }
    .artist-container { padding: 24px 16px; }
    .artist-name { font-size: 1.5rem; }
    .artist-card { margin-bottom: 50px; padding-bottom: 40px; }
    .artist-bio, .artist-links { font-size: 0.9rem; }
    .main-visual h2 { font-size: 1.5rem !important; margin-bottom: 20px !important; }
    .link-banner { height: 300px; margin-top: 60px; }
    .section-headline { font-size: 1.5rem; }
    .info-section { margin-bottom: 50px; }
    .rule-item h4 { font-size: 1.1rem; }
    .ticket-btn { padding: 16px 32px; font-size: 1rem; max-width: 100%; box-sizing: border-box; }
    .ticket-selection-card { padding: 20px 16px; }
    .gallery-video-header { padding: 80px 20px 40px; }
    .full-screen-center { min-height: 50vh; }
    .full-screen-center h1 { font-size: 1.5rem; }
    .concept-box { padding: 30px 20px; }
    .concept-box.venue-map-box {
        max-width: min(100%, 1104px);
        padding: 32px 18px;
    }
    .concept-title { font-size: 1.75rem; margin-bottom: 30px; }
    .concept-body h3 { font-size: 1.2rem; }
    .form-wrapper { padding-top: 1100px; }
    .site-root > footer { padding: 24px 16px !important; font-size: 0.7rem !important; }
    .concept-section { padding: 60px 15px; }
    .concept-section:has(.article-lp-box) {
        padding: 60px max(12px, env(safe-area-inset-left)) 60px max(12px, env(safe-area-inset-right));
    }
}

@media (max-width: 600px) {
    .site-root nav ul {
        gap: 15px;
        font-size: 0.8rem;
    }
    section { padding: 60px 15px; }
    .tile-section { padding: 60px 15px; }
    #bgm-button { bottom: 20px; left: 20px; padding: 14px 18px; font-size: 0.75rem; min-height: 44px; }
    h1.page-title { font-size: 2rem; }
    .artist-name { font-size: 1.35rem; }
    .concept-title { font-size: 1.5rem; }
    .concept-box { padding: 24px 16px; }
    .concept-box.venue-map-box {
        padding: 24px 16px;
    }
    .content-box { padding: 24px 16px; }
    .purchase-container .ticket-selection-card { padding: 16px 12px; }
    .ticket-details h3 { font-size: 1.25rem; }
    .ticket-details .price { font-size: 1.5rem; }
}

@media (max-width: 380px) {
    .link-banner h1 { font-size: clamp(60px, 12vw, 80px); }
    .vertical-text p { font-size: 20px; }
}

/* ==========================================
   ■ その他・固有パーツ (並び替えなし) 
   ========================================== */
.site-root { width: 100%; }

section {
    position: relative;
    padding: 100px 20px;
    box-sizing: border-box;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.parallax-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 200px auto;
    height: auto;
}

.vertical-text p {
    font-size: 34px;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0 15px;
}

.link-banner {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    text-decoration: none;
    position: relative;
}

.link-banner h1 {
    position: relative;
    z-index: 1;
    color: var(--accent-color);
    font-size: clamp(80px, 15vw, 150px);
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin: 0;
} 







/* セクション全体の背景（白でリセット） */
.tile-section {
    background-color: #ffffff;
    padding: 100px 4vw;
}

/* 4つ並べるためのグリッド修正 */
.tile-grid {
    max-width: 1300px; /* 4つ並ぶので少し最大幅を広げると綺麗です */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4等分に変更 */
    gap: 20px; /* カード同士の間隔を少し詰めるとバランスが良いです */
}

/* カード1枚のスタイル */
.tile-card {
    text-decoration: none;
    color: #333;
    display: block;
    transition: transform 0.3s ease;
}

/* 画像を包むエリア（ここで角丸と切り抜き） */
.tile-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* 縦長でおしゃれな雑誌風比率 */
    overflow: hidden;
    border-radius: 12px; /* 柔らかい角丸 */
    background-color: #f0f0f0;
}

.tile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ホバー時の画像拡大 */
.tile-card:hover .tile-image-wrapper img {
    transform: scale(1.08);
}

/* ホバー時に画像の上に出る文字 */
.tile-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 125, 98, 0.2); /* 出旅グリーンの薄い幕 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tile-hover-overlay span {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    border: 1px solid #fff;
    padding: 8px 16px;
}

.tile-card:hover .tile-hover-overlay {
    opacity: 1;
}

/* 画像の下の文字エリア */
.tile-info {
    padding: 20px 0;
    text-align: center;
}

.en-sub {
    display: block;
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.3em;
    margin-bottom: 5px;
}

.tile-info h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: normal;
    letter-spacing: 0.1em;
}

/* スマホ・タブレット表示の調整 */
@media (max-width: 1024px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr); /* タブレットや大きめのスマホでは2列 */
    }
}

@media (max-width: 600px) {
    .tile-grid {
        grid-template-columns: 1fr; /* 小さなスマホでは1列 */
    }
}





.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.wp-block-media-text__content {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wp-block-embed {
    margin-left: auto !important;
    margin-right: auto !important;
}
.wp-block-media-text__content a {
    word-break: break-all;
}

.artist-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 20px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.artist-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid #ddd;
}
.artist-card:last-child { border-bottom: none; }
.artist-image {
    flex: 1 1 400px;
    padding: 10px;
}
.artist-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.artist-info {
    flex: 1 1 400px;
    padding: 20px;
    text-align: center;
}
.artist-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #111;
}
.artist-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}
.artist-links {
    font-size: 0.8rem;
    margin-bottom: 20px;
    word-break: break-all;
}
.artist-links a { color: #0066cc; text-decoration: none; }
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}
.main-visual {
    text-align: center;
    margin-bottom: 50px;
}
.main-visual img { max-width: 100%; height: auto; }

.main-content {
    padding: 120px 20px 60px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
}

.contact-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    letter-spacing: 0.2em;
}

.form-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 1250px; 
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.form-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-section {
    background-image: url('images/DSC08747.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1.page-title {
    font-size: 3.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-weight: normal;
}

.sub-lead {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 60px;
    color: #666;
    display: block;
}

.info-section {
    margin-bottom: 80px;
    text-align: left;
}

.section-headline {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    display: inline-block;
    width: 100%;
    padding-bottom: 10px;
}

.rule-item {
    margin-bottom: 40px;
}

.rule-item h4 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.ticket-btn-wrapper {
    margin-top: 60px;
}

/* コンセプトページ用 */
.concept-box {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    padding: 60px 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* マップ画像 1024px 幅に合わせる（.concept-box の 900px より広いため上書き） */
.concept-box.venue-map-box {
    max-width: min(100%, 1104px);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.concept-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    letter-spacing: 0.1em;
}
.concept-body {
    text-align: center;
    color: #333;
    line-height: 1.8;
}
.concept-body h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
}
.concept-body p {
    margin-bottom: 40px;
}
.concept-body p:last-child {
    margin-bottom: 10px;
}

/* 活動記事・LP テンプレート（article-template.html など） */
.article-lp-box .concept-body {
    text-align: left;
}
.article-lp-box .concept-body h3 {
    text-align: left;
}
.article-lp-lead {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
    margin: 0 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
}
.article-lp-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
}
.article-lp-footer a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 163, 115, 0.4);
}
.article-lp-footer a:hover {
    color: #b8895a;
}

/* MAKING 記事・LP：白枠を広く（長い見出しの折り返しを減らす） */
.concept-section:has(.article-lp-box) {
    flex-direction: column;
    align-items: center;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
}
.concept-box.article-lp-box {
    width: 100%;
    max-width: min(1200px, 100%);
    box-sizing: border-box;
}
.article-lp-box .concept-title {
    line-height: 1.35;
    letter-spacing: 0.07em;
}

.concept-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('images/AF63C3F8-D43D-4F38-8841-3E37405E37DB.JPEG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.full-screen-center {
    display: flex;
    justify-content: center; /* 水平中央 */
    align-items: center;     /* 垂直中央 */
    min-height: 60vh;        /* 画面の高さの6割程度を確保（お好みで100vhに） */
    text-align: center;
}
/* ギャラリー全体の背景（画像固定を活かす） */
.gallery-main {
    background-image: url('images/AF63C3F8-D43D-4F38-8841-3E37405E37DB.JPEG');
    background-attachment: fixed;
    background-size: cover;
}

/* ==========================================
   ■ ギャラリーセクション（1画面固定）
   ========================================== */
   .gallery-scroll-section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 5vw; /* 上下に少し余裕を */
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 12カラム・グリッドシステム */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    width: 100%;
    height: 100%; /* 親の80〜90%程度で表示される */
    max-width: 1300px;
    margin: 0 auto;
    gap: 20px;
}

/* 写真アイテム共通設定（額縁・ポラロイド風） */
.gallery-item {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: clamp(5px, 1vw, 12px); /* 画面サイズに合わせて余白調整 */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* ホバー時に写真を少し拡大させる演出 */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================
   ■ 写真の配置パターン
   ========================================== */

/* メイン（横写真） */
.main-landscape {
    grid-column: 1 / 9;
    grid-row: 3 / 10;
    z-index: 2;
}

/* サブ1（縦写真） */
.sub-portrait-left {
    grid-column: 9 / 13;
    grid-row: 1 / 8;
    z-index: 1;
}

/* サブ2（縦写真） */
.sub-portrait-right {
    grid-column: 7 / 11;
    grid-row: 8 / 13;
    z-index: 3;
}

/* 反転パターン（偶数セクションなどに is-reverse を付与） */
.is-reverse .main-landscape { grid-column: 5 / 13; }
.is-reverse .sub-portrait-left { grid-column: 1 / 5; }
.is-reverse .sub-portrait-right { grid-column: 3 / 7; }

/* ==========================================
   ■ スクロールアニメーション（Reveal）
   ========================================== */
.reveal {
    opacity: 0;
    /* translateYを少し抑え、scaleを足して「奥から出てくる」感を出す */
    transform: translateY(30px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 遅延：3枚がバラバラに浮き上がるようにする（HTMLの並び順） */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.3s; }
.reveal:nth-child(3) { transition-delay: 0.5s; }

/* トップヒーロー縦書き：行ごとの表示タイミングはスクロール閾値で制御するため遅延なし */
.vertical-text .hero-vertical-reveal:nth-child(1),
.vertical-text .hero-vertical-reveal:nth-child(2),
.vertical-text .hero-vertical-reveal:nth-child(3) {
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .hero-vertical-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================
   ■ スマホ対応（レスポンシブ）
   ========================================== */
@media (max-width: 768px) {
    .gallery-scroll-section {
        height: auto; /* スマホではスクロール固定を解除 */
        padding: 60px 20px;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        height: auto;
    }

    .gallery-item {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2; /* デフォルトを横長に */
    }

    /* 縦写真はスマホでも縦長を維持 */
    .sub-portrait-left, .sub-portrait-right {
        aspect-ratio: 2 / 3;
        width: 85%; /* 少し横幅を削るとおしゃれ */
        margin: 0 auto;
    }
    
    .reveal {
        transform: translateY(20px); /* スマホではscale変更なしの方がスムーズ */
    }
}
/* 動画ヘッダーセクション */
.gallery-video-header {
    padding: 120px 5vw 60px; /* ナビに被らないよう上を広めに */
    display: flex;
    justify-content: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2カラム並列 */
    gap: 40px;
    width: 100%;
    max-width: 1300px;
}

.video-item {
    background: #fff;
    padding: 15px; /* 写真のgallery-itemと合わせたポラロイド風 */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.video-inner {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9比率 */
}

.video-inner iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.video-caption {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--main-font);
    letter-spacing: 0.1em;
    color: #333;
}

/* スマホ表示では縦に並べる */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* チケット購入画面用 */
.purchase-container {
    max-width: 600px; /* 少しスリムにして入力しやすく */
}

.ticket-selection-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    text-align: left;
}

.ticket-details h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.ticket-details .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.ticket-details .price span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #888;
}

.ticket-notes {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    color: #666;
    margin: 20px 0;
}

.purchase-form {
    border-top: 2px dashed #eee;
    padding-top: 25px;
}

.quantity-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector select {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.total-display {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}
/* おわり */

/* ==========================================
   モバイル時ナビ常に透明（JS で body.mobile-view 付与・メディアクエリに依存しない）
   ========================================== */
body.mobile-view .site-root > header {
    position: static;
    height: 0;
    min-height: 0;
    overflow: visible;
    pointer-events: none;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

body.mobile-view .site-root > header nav {
    pointer-events: auto;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* 他ページ用：header の背後に表示する背景レイヤー（モバイルでナビ透明時に見える） */
.site-root > .page-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

/* ==========================================
   トップ：5/9 出演アーティスト（インスタ風グリッド）
   ========================================== */
.home-day9-section {
    background: #fff;
    padding: 48px 4vw 56px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.home-day9-inner {
    max-width: 520px;
    margin: 0 auto;
}

.home-day9-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #666;
    background: #f3f3f3;
    border-radius: 999px;
}

.home-day9-title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #222;
}

.home-day9-lead {
    margin: 0 0 20px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #555;
}

.home-day9-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.home-day9-cell {
    display: block;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.home-day9-cell:focus-visible {
    box-shadow: inset 0 0 0 2px var(--accent-color, #d4a373);
    z-index: 1;
}

.home-day9-cell-inner {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.home-day9-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
    transition: transform 0.35s ease;
}

.home-day9-cell:hover img,
.home-day9-cell:focus-visible img {
    transform: scale(1.04);
}

.home-day9-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 6px;
    font-size: 0.65rem;
    line-height: 1.25;
    text-align: center;
    color: #fff;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.home-day9-cell:hover .home-day9-hover,
.home-day9-cell:focus-visible .home-day9-hover {
    opacity: 1;
}

@media (hover: none) {
    .home-day9-hover {
        opacity: 1;
        font-size: 0.58rem;
        padding: 8px 4px;
        background: linear-gradient(transparent 25%, rgba(0, 0, 0, 0.65));
    }

    .home-day9-cell:hover img {
        transform: none;
    }
}

.home-day9-more {
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.8rem;
}

.home-day9-more a {
    color: var(--accent-color, #d4a373);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    .home-day9-inner {
        max-width: 480px;
    }
}

/* ARTIST ページ：アンカー時に固定ヘッダーで隠れないように */
.artist-card[id] {
    scroll-margin-top: 88px;
}