/* Base variables */
:root {
    --primary-color: #454447;
    --accent-color: #ffb7d5;
    --accent-dark: #ff69b4;
    --bg-color: #ffffff;
    --link-color: #33ccff;
    --warning-color: #ff0000;
    --success-color: #336600;
    --max-content-width: 1020px;
    --spacing-unit: 1.25rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    text-align: left;
}

.loading-screen.hidden .loading-text {
    opacity: 0;
}

.loading-text-line {
    font-family: "elizeth", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 5rem;
    color: var(--accent-dark);
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-text-line:first-child {
    margin-bottom: 0.5rem;
}

.loading-bar-container {
    width: 100%;
    height: 6px;
    background-color: transparent;
    position: relative;
    margin-bottom: 0;
    overflow: visible;
}

.loading-bar {
    height: 4px;
    background-color: var(--accent-dark);
    position: absolute;
    left: 0;
    bottom: 0;
    animation: loadingProgress 2s ease-in-out forwards;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    overflow: visible;
}

.loading-car {
    position: absolute;
    right: -20px;
    bottom: 0;
    width: 50px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Reset & Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--bg-color);
}

/* Layout */
.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: var(--spacing-unit);
}

/* Header */
.header {
    width: 100%;
    margin: 0 0 0.5rem 0;
    padding: 0;
    max-width: 100%;
}

.header img {
    width: 100%;
    height: auto;
}

.header a {
    display: block;
    width: 100%;
}

/* Share Links */
.share-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 0.5rem 0;
    padding: 0;
}

.share-link {
    transition: transform 0.3s ease;
}

.share-link:hover {
    transform: scale(1.1);
}

.share-link img {
    height: 28px;
    width: auto;
}

/* Main Visual */
.main-visual {
    width: 100%;
    margin: 0 0 2rem 0;
}

.main-visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Typography */
h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-dark);
    padding-left: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--primary-color);
}

/* Content sections */
.notice,
.event-notice,
.event-details,
.goods-notice {
    margin: 0.5rem auto 2rem auto;
    padding: 1.5rem;
    max-width: var(--max-content-width);
    background-color: rgba(255, 183, 213, 0.08);
    border-radius: 8px;
}

.event-details {
    background-color: rgba(117, 117, 117, 0.05);
}

.event-details p {
    margin: 0.5rem 0;
}

.event-details a {
    color: var(--link-color);
    text-decoration: none;
}

.event-details a:hover {
    text-decoration: underline;
}

/* Event Details Layout - PC */
.event-details-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-direction: row-reverse;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.event-details-map {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.event-details-map iframe {
    width: 100%;
    max-width: 100%;
    height: 300px;
    min-width: 0;
    min-height: 300px;
    border-radius: 8px;
}

.event-details-text {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.event-details-mobile-map {
    display: none;
    margin: 1rem 0;
}

.event-details-mobile-map iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.event-details-payment {
    margin-top: 1rem;
}

.notice ul,
.goods-notice ul {
    list-style: none;
    padding-left: 1rem;
}

.notice li,
.goods-notice li {
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1rem;
}

.notice li:before {
    content: "・";
    position: absolute;
    left: -0.5rem;
}

.divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 2rem 0;
}

/* Food items grid (限定ドリンク・フード) */
.food-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
    width: 100%;
}

.food-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
}

.food-image {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
    display: block;
}

.food-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.food-info {
    width: 100%;
}

.food-info .goods-name {
    margin: 0.5rem 0;
    text-align: center;
}

.food-info .goods-price {
    margin: 0.5rem 0;
    text-align: center;
}

/* Goods sections */
.goods-item {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 183, 213, 0.3);
    border-radius: 8px;
}

.goods-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Goods No.2: 2x2 grid layout for PC */
.goods-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.goods-image {
    margin: 1rem 0;
    text-align: center;
    position: relative;
}

.goods-image img {
    max-width: 80%;
    height: auto;
    border-radius: 4px;
}

.goods-grid-2x2 .goods-image img {
    max-width: 50%;
}

.benefit-image {
    margin: 1rem 0;
    text-align: center;
}

.benefit-image img {
    max-width: 60%;
    height: auto;
    border-radius: 4px;
}

/* Postcard flip animation */
.postcard-flip {
    perspective: 1000px;
    display: inline-block;
    width: 100%;
}

.postcard-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.postcard-flip.flipped .postcard-inner {
    transform: rotateY(180deg);
}

.postcard-front,
.postcard-back {
    position: relative;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.postcard-front {
    z-index: 2;
}

.postcard-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: rotateY(180deg);
}

.postcard-front img {
    max-width: 60%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.postcard-back img {
    max-width: 30%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

/* Cosplayer section */
.cosplayer-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.cosplayer-image {
    flex: 0 0 35%;
    text-align: center;
}

.cosplayer-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.cosplayer-text {
    flex: 1;
}

.cosplayer-text ul {
    padding-left: 0;
}

.cosplayer-text li {
    padding-left: 0;
}

/* Campaign list */
.campaign-list {
    padding-left: 0;
}

.campaign-list li {
    padding-left: 0;
}

.campaign-list .reward-item-icon {
    vertical-align: middle !important;
    height: 2.4em !important;
    margin-right: 0.5em !important;
    width: auto !important;
    display: inline-block !important;
}

.goods-info {
    margin-top: 1rem;
}

.goods-name {
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
    font-size: 1.1rem;
    display: inline-block;
    width: 100%;
}

.goods-price {
    font-weight: bold;
    color: var(--accent-dark);
    margin: 1rem 0;
    font-size: 1.1rem;
}

.goods-name-center {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
    font-size: 1.1rem;
    display: inline-block;
    width: 100%;
}

.goods-price-center {
    text-align: center;
    font-weight: bold;
    color: var(--accent-dark);
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Stock status container */
.stock-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Site links */
.site-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: calc(var(--spacing-unit) * 2) 0;
    flex-wrap: wrap;
}

.site-link {
    text-align: center;
    width: 38%;
}

.site-link a {
    text-decoration: none;
    color: var(--primary-color);
    display: block;
    transition: transform 0.3s ease;
}

.site-link a:hover {
    transform: scale(1.05);
}

.site-link img {
    width: 38%;
    height: auto;
    margin-bottom: 0.5rem;
}

.site-link p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Bottom logos */
.bottom-logos {
    width: 100%;
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
}

.bottom-logos img {
    max-height: 80px;
    width: auto;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 20px 0;
    width: 100%;
}

.footer-text {
    max-width: 1020px;
    margin: 0 auto;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--bg-color);
    text-align: center;
    padding: 0 20px;
}


/* Highlight classes */
.highlight-red,
.highlight-green,
.highlight-blue {
    font-weight: bold;
}

.highlight-red { 
    color: var(--warning-color); 
}

.highlight-green { 
    color: var(--success-color); 
}

.highlight-blue { 
    color: var(--link-color); 
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 115px;
    height: 115px;
    background-color: transparent;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    display: none;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.close {
    position: fixed;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.close:hover {
    color: var(--accent-color);
}

/* Flash Cards Animation Modal */
.flash-cards-modal {
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2010;
}

.flash-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.flash-cards-pack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2011;
    animation: packFadeIn 0.5s ease-in forwards, packMoveToCenter 1s ease-in-out 1.2s forwards;
}

.flash-cards-pack img {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
}

.flash-cards-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 268px), -50%);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    row-gap: 1rem;
    width: auto;
    z-index: 2010;
    max-width: 800px;
    align-content: start;
    opacity: 1;
}

.flash-cards-grid .card-item {
    opacity: 0;
    position: relative;
    animation: cardPopOut 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    flex: 0 0 auto;
    z-index: 1;
}

.flash-cards-grid .card-item img {
    width: 120px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
    transition: transform 0.2s ease;
    position: relative;
}

@media screen and (min-width: 768px) {
    .flash-cards-grid .card-item:hover {
        z-index: 2030;
    }

    .flash-cards-grid .card-item img:hover {
        transform: scale(1.4);
    }
}

@keyframes packFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes packMoveToCenter {
    from {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    to {
        top: 50%;
        left: 50%;
        transform: translate(calc(-50% - 248px), -50%) scale(0.5);
    }
}


@keyframes cardPopOut {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0) rotate(-180deg);
    }
    30% {
        opacity: 0.8;
        transform: translateY(-30px) scale(1.2) rotate(15deg);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.05) rotate(-10deg);
    }
    80% {
        transform: translateY(0px) scale(0.98) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}


@keyframes cardsPopOutFromPack {
    from {
        opacity: 0;
        transform: translate(calc(-50% + 268px), -50%);
    }
    to {
        opacity: 1;
        transform: translate(calc(-50% + 268px), -50%);
    }
}

.flash-cards-close {
    z-index: 2012;
}

/* Coaster Animation Modal */
.coaster-modal {
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2010;
}

.coaster-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.coaster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    width: 100%;
    align-content: center;
}

.coaster-item {
    position: relative;
    opacity: 0;
    animation: coasterFadeIn 0.6s ease-out forwards;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.coaster-item:nth-child(1) { animation-delay: 0.1s; }
.coaster-item:nth-child(2) { animation-delay: 0.2s; }
.coaster-item:nth-child(3) { animation-delay: 0.3s; }
.coaster-item:nth-child(4) { animation-delay: 0.4s; }
.coaster-item:nth-child(5) { animation-delay: 0.5s; }
.coaster-item:nth-child(6) { animation-delay: 0.6s; }

.coaster-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
    transition: transform 0.3s ease;
}

.coaster-item.is-active {
    z-index: 2030;
}

.coaster-item.is-active img {
    transform: scale(1.3);
}

@media screen and (min-width: 768px) {
    .coaster-item:hover {
        z-index: 2020;
    }

    .coaster-item:hover img {
        transform: scale(1.3);
    }

    .coaster-item.is-active img {
        transform: scale(1.3);
    }
}

@keyframes coasterFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile styles for flash cards */
@media screen and (max-width: 767px) {
    .flash-cards-pack img {
        max-width: 250px;
    }

    @keyframes packMoveToCenter {
        from {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        to {
            top: 50%;
            left: 50%;
            transform: translate(calc(-50% - 110px), -50%) scale(0.5);
        }
    }
    
    .flash-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 360px;
        gap: 0.75rem;
        transform: translate(calc(-50% + 110px), -50%);
    }

    @keyframes cardsPopOutFromPack {
        from {
            top: 50%;
            left: 50%;
            transform: translate(calc(-50% - 110px), calc(-50% + 100px));
            opacity: 0;
        }
        to {
            top: 50%;
            left: 50%;
            transform: translate(calc(-50% + 110px), -50%);
            opacity: 1;
        }
    }
    
    @keyframes cardsMoveRight {
        from {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        to {
            top: 50%;
            left: 60%;
            transform: translate(-50%, -50%);
        }
    }
    
    .flash-cards-grid .card-item img {
        width: 80px;
    }

    .flash-cards-grid .card-item:active {
        z-index: 2030;
    }

    .flash-cards-grid .card-item:active img {
        transform: scale(1.6);
    }

    .flash-cards-grid .card-item.is-active {
        z-index: 2030;
    }

    .flash-cards-grid .card-item.is-active img {
        transform: scale(1.6);
    }
}

@media screen and (max-width: 480px) {
    .flash-cards-pack img {
        max-width: 200px;
    }

    @keyframes packMoveToCenter {
        from {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        to {
            top: 50%;
            left: 50%;
            transform: translate(calc(-50% - 90px), -50%) scale(0.5);
        }
    }
    
    .flash-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 300px;
        gap: 0.5rem;
        transform: translate(calc(-50% + 90px), -50%);
    }

    @keyframes cardsPopOutFromPack {
        from {
            top: 50%;
            left: 50%;
            transform: translate(calc(-50% - 90px), calc(-50% + 100px));
            opacity: 0;
        }
        to {
            top: 50%;
            left: 50%;
            transform: translate(calc(-50% + 90px), -50%);
            opacity: 1;
        }
    }
    
    @keyframes cardsMoveRight {
        from {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        to {
            top: 50%;
            left: 55%;
            transform: translate(-50%, -50%);
        }
    }
    
    .flash-cards-grid .card-item img {
        width: 60px;
    }

    .flash-cards-grid .card-item:active {
        z-index: 2030;
    }

    .flash-cards-grid .card-item:active img {
        transform: scale(1.6);
    }

    .flash-cards-grid .card-item.is-active {
        z-index: 2030;
    }

    .flash-cards-grid .card-item.is-active img {
        transform: scale(1.6);
    }
}

/* Zoomable images */
.zoomable-image {
    cursor: pointer;
    transition: opacity 0.3s;
}

.zoomable-image:hover {
    opacity: 0.8;
}

/* Product image with SOLD OUT overlay */
.product-image {
    position: relative;
}

.product-image.sold-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/sold-out.png') center center no-repeat;
    background-size: contain;
    pointer-events: none;
}

/* Tablet styles (768px to 1079px) */
@media screen and (max-width: 1079px) {
    :root {
        --max-content-width: 720px;
        --spacing-unit: 1rem;
    }

    body { 
        font-size: 15px; 
    }
    
    h2 { 
        font-size: 1.4rem; 
    }

    h3 {
        font-size: 1.1rem;
    }

    .goods-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .goods-image img {
        max-width: 60%;
    }

    .food-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .goods-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .back-to-top {
        width: 90px;
        height: 90px;
        bottom: 18px;
        right: 18px;
    }

    .food-image img {
        max-width: 100%;
        width: 100%;
    }

    .footer-text {
        max-width: 720px;
        font-size: 0.75rem;
        padding: 0 15px;
    }

    .share-links {
        padding: 0;
        gap: 0.8rem;
        margin: 0.4rem 0 0.4rem 0;
    }

    .share-link img {
        height: 25px;
    }

    .coaster-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 600px;
    }

    .coaster-item.is-active img {
        transform: scale(1.4);
    }
}

/* PC styles (1080px and above) - ensure 3 columns */
@media screen and (min-width: 1080px) {
    .event-details-content {
        flex-wrap: nowrap;
    }

    .event-details-map {
        min-width: 450px;
        flex: 0 0 450px;
        max-width: 450px;
    }

    .event-details-map iframe {
        min-width: 0;
        min-height: 450px;
        width: 100%;
        height: 450px;
    }

    .event-details-text {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 450px - 2rem);
    }

    .event-details-text {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 450px - 2rem);
    }

    .food-items-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }
    
    .food-item {
        width: 100%;
    }
    
    .food-image img {
        width: 100%;
        max-width: 100%;
    }
    
    /* Goods No.2: 2x2 grid layout */
    .goods-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .goods-grid-2x2 .goods-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .goods-grid-2x2 .goods-image {
        margin: 0;
    }
    
    .goods-grid-2x2 .goods-image img {
        max-width: 50%;
    }
    
    .goods-grid-2x2 .goods-info {
        margin-top: 0.5rem;
    }
    
    /* Modal background - PC only */
    .modal {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

/* Mobile landscape styles (481px to 767px) */
@media screen and (max-width: 767px) {
    .loading-text {
        top: 50%;
        left: 2rem;
        transform: translateY(-50%);
    }

    .loading-text-line {
        font-size: 3rem;
    }

    :root {
        --max-content-width: 100%;
        --spacing-unit: 0.875rem;
    }

    body { 
        font-size: 14px; 
    }
    
    h2 { 
        font-size: 1.3rem; 
    }

    h3 {
        font-size: 1rem;
    }

    .notice,
    .event-notice,
    .event-details,
    .goods-notice { 
        padding: 1rem; 
    }

    /* Event Details - Mobile Layout */
    .event-details-content {
        flex-direction: column;
        flex-direction: column;
    }

    .event-details-map {
        display: none;
    }

    .event-details-mobile-map {
        display: block;
    }

    .goods-item {
        padding: 1rem;
    }

    .goods-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .goods-image img {
        max-width: 80%;
    }

    .benefit-image img {
        max-width: 80%;
    }

    .cosplayer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cosplayer-image {
        flex: 0 0 auto;
    }

    .cosplayer-image img {
        max-width: 100%;
    }

    .cosplayer-text ul {
        padding-left: 1rem;
    }

    .cosplayer-text li {
        padding-left: 1rem;
    }

    .food-items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .food-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    .site-links { 
        gap: 1rem; 
    }

    .footer-text {
        max-width: 100%;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .share-links {
        padding: 0;
        gap: 0.6rem;
        margin: 0.4rem 0 0.4rem 0;
    }

    .share-link img {
        height: 22px;
    }

    .coaster-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 400px;
    }

    .coaster-item.is-active img {
        transform: scale(1.4);
    }

    .back-to-top {
        width: 65px;
        height: 65px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top img {
        width: 100%;
        height: 100%;
    }
}

/* Mobile portrait styles (480px and below) */
@media screen and (max-width: 480px) {
    .coaster-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 400px;
    }

    .coaster-item.is-active img {
        transform: scale(1.4);
    }

    .loading-text {
        top: 50%;
        left: 1.5rem;
        transform: translateY(-50%);
    }

    .loading-text-line {
        font-size: 2rem;
    }

    :root { 
        --spacing-unit: 0.75rem; 
    }

    body { 
        font-size: 13px; 
    }
    
    h2 { 
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 0.95rem;
        margin: 1rem 0 0.75rem 0;
    }

    .notice,
    .event-notice,
    .event-details,
    .goods-notice { 
        padding: 0.875rem; 
    }

    .goods-item {
        padding: 0.875rem;
    }

    .goods-image img {
        max-width: 100%;
    }

    .benefit-image img {
        max-width: 100%;
    }

    .cosplayer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cosplayer-image {
        flex: 0 0 auto;
    }

    .cosplayer-image img {
        max-width: 100%;
    }

    .cosplayer-text ul {
        padding-left: 1rem;
    }

    .cosplayer-text li {
        padding-left: 1rem;
    }

    .food-items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .food-image img {
        max-width: 70%;
        margin: 0 auto;
    }

    .site-links {
        gap: 1rem;
        align-items: flex-start;
    }

    .site-link {
        width: 50%;
        flex: 1;
    }

    .site-link img {
        width: 60px;
        height: auto;
        margin: 0 auto 0.5rem;
        display: block;
    }

    .site-link p { 
        font-size: 0.65rem;
        line-height: 1.3;
        white-space: normal;
        word-break: keep-all;
    }

    .footer { 
        padding: var(--spacing-unit); 
    }

    .footer-text {
        padding: 0 8px;
        font-size: 0.65rem;
    }

    .share-links {
        padding: 0;
        gap: 0.5rem;
        margin: 0.3rem 0 0.3rem 0;
    }

    .share-link img {
        height: 20px;
    }

    .back-to-top {
        width: 65px;
        height: 65px;
        bottom: 10px;
        right: 10px;
    }

    .back-to-top img {
        width: 100%;
        height: 100%;
    }
}
