/* ========================================
   CSS Variables
   ======================================== */
:root {
    --color-bg-primary: #ffffff;
    --color-text-primary: #212529;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 7rem;
    --spacing-6xl: 8rem;

    --container-max-width: 1200px;
    --border-radius: 8px;
    --transition-duration: 0.3s;

    --card-size: clamp(120px, 28vw, 350px);
}

/* ========================================
   Lazy Loading Placeholder
   ======================================== */
img[loading="lazy"] {
    background: linear-gradient(180deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 100% 200%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 0 200%;
    }

    100% {
        background-position: 0 -200%;
    }
}

/* ========================================
   Loading Screen
   ======================================== */
body.loading {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 200px;
    height: auto;
}

.logo-letter {
    fill: var(--color-text-primary);
    opacity: 0;
}

@media (max-width: 768px) {
    .loading-logo {
        width: 100px;
    }
}

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

body {
    font-family: "Marcellus", "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}

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

@media (min-width: 769px) {
    .sp {
        display: none;
    }
}

@media (max-width: 768px) {
    .pc {
        display: none;
    }
}

#main {
    overflow: hidden;
}


/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 769px) {
    .hero {
        background-image: url('../image/hero_pc.jpg');
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .hero {
        background-image: url('../image/hero_sp.jpg');
        aspect-ratio: 9 / 16;
    }
}

.hero__container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__title-01,
.hero__title-02,
.hero__subtitle,
.hero__logo {
    position: absolute;
}

.hero__title-01 {
    top: 40%;
    left: -18%;
    width: 100%;
    font-size: 6vw;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.5rem;
    text-align: center;
    color: #b93a38;
}

.hero__title-01-holiday {
    display: block;
}

.hero__title-char {
    display: inline-block;
    opacity: 0;
}

.hero__title-01-keyword {
    display: block;
}

.hero__title-02 {
    top: 65%;
    left: 19.5%;
    width: 24%;
    opacity: 0;
}

.hero__subtitle {
    top: 50%;
    left: 10%;
    color: #ffffff;
    font-size: 1rem;
    white-space: nowrap;
}

.hero__logo {
    top: 4%;
    right: 3%;
    width: 8vw;
}

@media (max-width: 768px) {
    .hero__title-01 {
        width: 100%;
        top: 57%;
        left: -12%;
        font-size: 10vw;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.2rem;
    }

    .hero__title-02 {
        width: 47%;
        top: 72%;
        left: 13.5%;
    }

    .hero__subtitle {
        top: 42%;
        left: 8%;
        font-size: 0.9rem;
    }

    .hero__logo {
        width: 70px;
        top: 3%;
        right: 5%;
    }
}

/* ========================================
   Hero Lead Section
   ======================================== */
.hero-lead {
    padding: var(--spacing-3xl) var(--spacing-md) 0 var(--spacing-md);
    text-align: center;
}

.hero-lead__container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-lead__text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-primary);
}

.hero-lead__text:last-child {
    margin-bottom: 0;
}

.hero-lead__line {
    display: inline-block;
}

@media (max-width: 768px) {
    .hero-lead {
        padding: var(--spacing-2xl) var(--spacing-md) 0 var(--spacing-md);
    }

    .hero-lead__text {
        font-size: 0.8rem;
        line-height: 2;
        margin-bottom: var(--spacing-lg);
    }
}

/* ========================================
   Section
   ======================================== */
.section {
    margin: var(--spacing-4xl) 0;
    padding: var(--spacing-xl) var(--spacing-md);
}

.section__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.section__title {
    font-size: 1.8rem;
    font-weight: 400;
    /* letter-spacing: 0.18rem; */
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: #b93a38;
}

.section__lead {
    font-size: 1rem;
    text-align: left;
    width: 70%;
    margin: 0 auto;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    line-height: 1.8;
}

.section__media-wrapper {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.section__carousel,
.section__movie {
    flex: 1;
    width: 48%;
    max-width: 900px;
}

.section__media-wrapper--single {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
}

.section__media-wrapper--single .section__carousel {
    flex: 0 0 48%;
    max-width: 900px;
}

.section__movie video {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #1a1a1a;
    display: block;
}

.section__media-credits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-6xl);
    margin-left: auto;
    width: fit-content;
}

.section__media-wrapper--single+.section__media-credits {
    margin-right: 26%;
}

/* ========================================
   Carousel (Swiper)
   ======================================== */
.carousel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

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

.carousel__media {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--color-bg-tertiary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel__media a img {
    transition: filter 0.3s ease;
}

.carousel__media a:hover img {
    filter: brightness(1.2);
}

.carousel__media--video {
    background-color: #1a1a1a;
}

.carousel__media--video .placeholder {
    color: #ffffff;
}

.carousel__media--image {
    background-color: #e9ecef;
}

.carousel__button--prev,
.carousel__button--next {
    color: var(--color-accent);
}

.carousel__button--prev::after,
.carousel__button--next::after {
    font-size: 1.5rem;
}

.carousel__pagination {
    bottom: 1rem;
}

.carousel__pagination .swiper-pagination-bullet {
    background-color: var(--color-accent);
}

/* ========================================
   Grid
   ======================================== */
.grid {
    display: grid;
    justify-content: center;
}

.grid--2col {
    grid-template-columns: repeat(2, var(--card-size));
}

.grid--3col {
    grid-template-columns: repeat(3, var(--card-size));
}

.section__grid {
    margin-bottom: var(--spacing-lg);
}

.section__grid:last-child {
    margin-bottom: 0;
}

.grid__item {
    margin-bottom: var(--spacing-xl);
}

/* ========================================
   Card
   ======================================== */
.card {
    background-color: var(--color-bg-primary);
    max-width: var(--card-size);
    width: 100%;
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e9ecef;
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__image a img {
    transition: filter 0.3s ease;
}

.card__image a:hover img {
    filter: brightness(1.2);
}

.credit {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: center;
}

.credit__name {
    font-size: 0.9rem;
    color: #212529;
    flex: 0 0 100px;
}

.credit__price {
    font-size: 0.9rem;
    color: #212529;
    flex: 0 0 80px;
}

.credit__link {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0 1rem;
    color: var(--color-text-primary);
    border: 1px solid var(--color-text-primary);
    background-color: var(--color-bg-primary);
    text-decoration: none;
    transition: all 0.2s ease-out;
    margin-left: auto;
}

.credit__link:hover {
    color: #ffffff;
    background-color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.card .credit+.credit {
    margin-top: var(--spacing-md);
}

/* ========================================
   Placeholder
   ======================================== */
.placeholder {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: center;
}

/* ========================================
   Staff Credits
   ======================================== */
.staff-credits {
    padding: var(--spacing-4xl) var(--spacing-md) var(--spacing-4xl) var(--spacing-md);
    text-align: center;
    background-color: #f8f9fa;
}

.staff-credits__container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.staff-credits__item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.staff-credits__role {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.staff-credits__name {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 400;
}

/* ========================================
   EC Section
   ======================================== */
.ec {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
}

.ec p {
    font-size: 1rem;
    line-height: 1.6rem;
    letter-spacing: 0.15rem;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 0;
}

.ec p a {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid var(--color-text-primary);
    padding: 0 20px;
    transition: all var(--transition-duration), color var(--transition-duration);
}

.ec p a:link,
.ec p a:visited {
    color: var(--color-text-primary);
}

.ec p a:hover,
.ec p a:active {
    color: #ffffff;
    background-color: var(--color-text-primary);
}

@media (min-width: 769px) {
    .ec {
        margin: 8vw auto 4vw auto;
    }

    .ec p {
        margin: 0 10px;
    }

    .ec p a {
        width: 40vw;
        max-width: 480px;
        min-height: 70px;
        text-decoration: none;
    }
}

@media (max-width: 768px) {
    .ec {
        margin: 20vw auto 4vw auto;
    }

    .ec p {
        margin: 0 0 10px 0;
    }

    .ec p a {
        min-width: 80vw;
        max-width: 70%;
        min-height: 70px;
        padding: 10px 20px;
        margin: 0 auto;
        text-decoration: none;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--spacing-4xl) var(--spacing-md);
    text-align: center;
    background-color: #ffffff;
}

.footer-logo {
    margin: 0 auto var(--spacing-4xl) auto;
}

.footer-logo h3 {
    width: 150px;
    margin: 0 auto var(--spacing-sm) auto;
}

.footer-logo h3 img {
    width: 100%;
}

.footer-logo p {
    font-size: 1rem;
    letter-spacing: 0.1rem;
}

.footer-link {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    margin: 0 auto var(--spacing-4xl) auto;
}

.footer-link a {
    text-decoration: none;
    color: var(--color-text-primary);
    transition: opacity 0.3s ease;
}

.footer-link a:hover {
    opacity: 0.7;
}

.footer-link span {
    color: #aaa;
    margin: 0 var(--spacing-md);
}

.footer-sns {
    margin: 0 auto var(--spacing-4xl) auto;
}

.footer-sns p {
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
    margin: 0 auto var(--spacing-xl) auto;
}

.footer-sns a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-sns a:hover {
    opacity: 0.7;
}

.footer-sns img {
    width: 40px;
    margin: 0 var(--spacing-sm);
}

.footer-sns a:nth-of-type(3) img {
    margin: 0 var(--spacing-sm) 0 0;
}

.footer-copyright {
    width: 100%;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    color: var(--color-text-secondary);
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (min-width: 769px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .grid {
        column-gap: var(--spacing-2xl);
        row-gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }

    .section {
        padding: 0;
        margin: var(--spacing-2xl) 0;
    }

    .section__container {
        max-width: none;
    }

    .section__title {
        font-size: 1.2rem;
    }

    .section__lead {
        width: 90%;
        font-size: 0.8rem;
    }

    .section__media-wrapper {
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-xl);
        margin-bottom: var(--spacing-md);
    }

    .section__media-credits {
        width: 100%;
        justify-content: center;
        /* align-items: flex-start; */
        padding: 0 11%;
        gap: var(--spacing-md);
        margin: var(--spacing-xl) auto var(--spacing-2xl) auto;
    }

    .section__media-credits .credit {
        flex-direction: row;
        align-items: flex-start;
    }

    .section__movie {
        width: 100%;
    }

    .section__carousel {
        width: 80%;
        margin-top: var(--spacing-lg);
    }

    .carousel__button--prev::after,
    .carousel__button--next::after {
        font-size: 1.25rem;
    }

    .grid {
        column-gap: var(--spacing-sm);
        row-gap: var(--spacing-lg);
    }

    .grid--2col {
        /* column-gap: var(--spacing-2xl); */
        column-gap: 3rem;
        row-gap: var(--spacing-lg);
    }

    .card .credit {
        flex-direction: column;
        align-items: center;
        gap: 0 !important;
    }

    .card .credit+.credit {
        margin-top: var(--spacing-lg);
    }

    .card .credit .credit__name {
        align-items: center;
        flex: 1;
    }

    .card .credit .credit__price {
        align-items: center;
        flex: 1;
    }

    .card .credit .credit__link {
        align-items: center;
        flex: 1;
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }

    .staff-credits {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .staff-credits__container {
        gap: var(--spacing-lg);
    }

    .staff-credits__role {
        font-size: 0.65rem;
    }

    .staff-credits__name {
        font-size: 0.8rem;
    }

    .footer {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .footer-logo {
        margin-bottom: 90px;
    }

    .footer-logo h3 {
        width: 90px;
    }

    .footer-link {
        font-size: 0.8rem;
        letter-spacing: 0.1rem;
    }

    .footer-link a {
        display: block;
        margin-bottom: 1rem;
    }

    .footer-link span {
        display: none;
    }

    .footer-sns {
        margin-bottom: 90px;
    }

    .footer-sns p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .footer-sns img {
        width: 33px;
        margin: 0 15px;
    }

    .footer-sns a:nth-of-type(3) img {
        margin: 0 15px 0 8px;
    }

    .footer-copyright p {
        font-size: 0.8rem;
    }

    .placeholder {
        font-size: 1rem;
    }
}