* {
    box-sizing: border-box
}

html {
    font-size: 16px;
    scroll-behavior: smooth
}

html,
body {
    min-height: 100%
}

body {
    margin: 0;
    padding-bottom: 72px;
    color: #2f2440;
    font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.9;
    background-image: repeating-linear-gradient(-45deg, #eeeeee, #eeeeee 20px, #dddddd 20px, #dddddd 40px)
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

.wrap {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #222;
    color: #fff
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px
}

.header-link a {
    font-size: 16px;
    color: #fff
}

.header-link a:hover {
    text-decoration: underline
}

.event-logo-text {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: .06em
}

.event-detail-page {
    padding: 32px 0 56px
}

.event-detail-card {
    padding: 28px 28px 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 40px rgba(31, 8, 36, .12)
}

.event-main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 24px
}

.event-main-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    cursor: zoom-in;
    background: transparent
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 18px
}

.event-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: #5a1a5f;
    background: rgba(90, 26, 95, .12);
    font-size: .86rem;
    font-weight: 700
}

.event-date {
    color: #7d718c;
    font-size: .92rem
}

.event-header {
    margin-bottom: 26px
}

.event-title {
    margin: 0 0 13px;
    color: #24172f;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.4
}

.event-lead {
    margin: 0;
    color: #5b5068;
    font-size: 1.02rem
}

.event-owner {
    margin: 9px 0 0;
    color: #887b91;
    font-size: .84rem
}

.event-description,
.event-gallery-section,
.event-link-box,
.event-share {
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #eee6f4;
    border-radius: 16px;
    background: #faf7fc
}

.event-description h2,
.event-gallery-section h2,
.event-link-box h2,
.event-share h2 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(90, 26, 95, .12);
    color: #24172f;
    font-size: 1.38rem;
    line-height: 1.5
}

.event-gallery-lead {
    margin: 0 0 14px;
    color: #5b5068;
    font-size: .95rem
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.event-gallery-item {
    margin: 0;
    padding: 6px;
    border-radius: 0;
    background: #efe8f5;
    overflow: visible
}

.event-gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    cursor: zoom-in;
    background: transparent
}

.event-article-body {
    color: #51445b
}

.event-article-body h2 {
    margin: 1.45em 0 .6em;
    padding-bottom: .4em;
    border-bottom: 2px solid rgba(90, 26, 95, .12);
    font-size: 1.24rem
}

.event-article-body h3 {
    margin: 1.2em 0 .45em;
    font-size: 1.05rem
}

.event-article-body p {
    margin: .6em 0
}

.event-article-body ul,
.event-article-body ol {
    padding-left: 1.5em
}

.event-article-body a {
    color: #6d2d91;
    text-decoration: underline;
    font-weight: 700
}

.event-article-body hr {
    margin: 1.5em 0;
    border: 0;
    border-top: 1px solid #dfd2e3
}

.event-info-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 16px;
    margin: 0
}

.event-info-list dt {
    font-weight: 800
}

.event-info-list dd {
    margin: 0;
    color: #5b5068;
    overflow-wrap: anywhere
}

.event-official-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.event-official-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fff;
    background: #db530a;
    font-size: .98rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(197, 61, 19, .22);
    transition: .2s
}

.event-official-button:hover {
    transform: translateY(-1px);
    opacity: .94
}

.event-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer
}

.share-x {
    color: #fff;
    background: #111
}

.share-copy {
    color: #4d2a67;
    background: #fff;
    border: 1px solid #ddd
}

.copy-message {
    min-height: 1.5em;
    margin: 8px 0 0;
    color: #5b5068;
    font-size: .85rem
}

.back-nav {
    margin-bottom: 14px
}

.bottom-back-nav {
    margin-top: 28px;
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(90, 26, 95, .12)
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #5b5068;
    background: rgba(255, 255, 255, .7);
    font-size: .92rem;
    box-shadow: 0 4px 10px rgba(31, 8, 36, .05)
}

.back-link:hover {
    color: #5a1a5f
}

.event-loading,
.event-error {
    padding: 28px;
    border-radius: 14px;
    color: #594c64;
    background: rgba(255, 255, 255, .87);
    text-align: center
}

.event-error {
    color: #8b363b
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .86);
    cursor: zoom-out
}

.image-lightbox.is-open {
    display: flex
}

.image-lightbox-content {
    max-width: 96vw;
    max-height: 90vh
}

.image-lightbox img {
    max-width: 96vw;
    max-height: 75vh;
    object-fit: contain;
    background: #111;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35)
}

.image-lightbox-copy {
    max-width: min(720px, 96vw);
    padding: 12px 15px;
    color: #fff;
    background: rgba(16, 13, 19, .8)
}

.image-lightbox-copy strong {
    display: block
}

.image-lightbox-copy p {
    margin: 3px 0 0;
    color: #e4dfe7;
    font-size: .88rem;
    white-space: pre-wrap
}

.image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #24172f;
    background: rgba(255, 255, 255, .92);
    font-size: 30px;
    line-height: 1;
    cursor: pointer
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    padding: 16px 0;
    color: #fff;
    background: #252525;
    font-size: 14px;
    text-align: center
}

.footer-text {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px
}

.footer a:hover {
    text-decoration: underline
}

@media(max-width:768px) {
    .header {
        padding: 10px 14px;
        gap: 10px
    }

    .header-right {
        gap: 14px
    }

    .header-link a {
        font-size: 14px
    }

    .event-detail-card {
        padding: 22px 18px 26px
    }

    .event-title {
        font-size: 1.7rem
    }

    .event-description h2,
    .event-gallery-section h2,
    .event-link-box h2,
    .event-share h2 {
        font-size: 1.18rem
    }

    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .event-info-list {
        grid-template-columns: 1fr;
        gap: 0
    }

    .event-info-list dt {
        margin-top: 10px
    }

    .event-official-button {
        width: 100%
    }
}

/* STST horizontal logo */
.event-logo-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.event-logo-image {
    display: block;
    width: min(170px, 38vw);
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

@media (max-width: 560px) {
    .event-logo-image {
        width: 136px;
        max-height: 34px;
    }
}


/* ギャラリー拡大時の前後移動 */
.image-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(18, 14, 21, 0.72);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-lightbox-nav:hover {
    background: rgba(90, 26, 95, 0.94);
    transform: translateY(-50%) scale(1.05);
}

.image-lightbox-nav:focus-visible {
    outline: 3px solid #f4c542;
    outline-offset: 3px;
}

.image-lightbox-nav[hidden] {
    display: none;
}

.image-lightbox-nav-previous {
    left: 22px;
}

.image-lightbox-nav-next {
    right: 22px;
}

.event-logo-link {
    display: inline-flex;
    align-items: center;
}

.event-logo-image {
    display: block;
    width: min(170px, 32vw);
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .image-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 34px;
    }

    .image-lightbox-nav-previous {
        left: 10px;
    }

    .image-lightbox-nav-next {
        right: 10px;
    }

    .event-logo-image {
        width: min(138px, 42vw);
        max-height: 34px;
    }
}