@charset "utf-8";

.article__header{
    height: 500px;
    width: 100%;
    background-image: linear-gradient(rgba(15, 27, 53, 0.4), rgba(15, 27, 53, 0.4)), url("../images/article_header.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 145px 0;
}

.title{
    font-size: 4.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
}

.subtitle{
    font-size: 2rem;
    color: var(--text-white);
    text-align: center;
}

@media screen and (min-width: 769px){
    .article__header{
        height: 900px;
        padding: 345px 0;
    }

    .title{
        font-size: 8rem;
    }

    .subtitle{
        font-size: 3rem;
    }
}

.section{
    padding: 80px var(--padding-body);
}

.about-heading{
    font-size: 2.2rem;
    color: var(--text-navy);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 24px;
}

.about-body{
    font-size: 1.4rem;
    font-family: 'Montserrat';
    margin-top: 21px;
    text-align: center;
}

.section-title{
    color: var(--text-navy);
    font-size: 3rem;
}

.section-story{
    background-color: var(--background-beige);
}

.section-title--story{
    margin-top: 32px;
}

.section-body{
    font-size: 1.4rem;
    font-family: 'Montserrat';
    margin-top: 21px;
}

.expand{
    font-family: 'Montserrat';
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-navy);
    position: relative;
    text-align: center;
}

.expand--red::after {
    content: '';
    display: inline-block;
    width: 0.6em;
    aspect-ratio: 1 / 1;
    border-top: 2px solid var(--text-red);
    border-right: 2px solid var(--text-red);
    position: absolute;
    top: 25%;
    right: -1em;
    rotate: 45deg;
}

.expand:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-body:last-of-type {
    margin-bottom: 32px;
}

.story__img {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
    object-position: center;
}

.arrow {
    width: 2.1rem;
    height: 2.1rem;
    margin-left: 10px;
}

.heading-collection {
    display: flex;
    justify-content: space-between;    
    align-items: baseline;
}

.collection__img {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: cover;
    object-position: center;  
    margin: 48px auto 0;
}

.collection-list {
    margin: 0 auto;
    max-width: 500px;
}

.collection-title {
    color: var(--text-navy);
    font-size: 1.8rem;
    margin-top: 16px;
}

.collection-body{
    font-family: 'Montserrat';
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 8px 0;
}

.expand--red{
    font-weight: 500;
    color: var(--text-red);
}

@media screen and (min-width: 769px){
    .about-heading{
        font-size: 4rem;
        margin-bottom: 32px;
    }

    .about-body{
        font-size: 1.6rem;
        max-width: 640px;
        margin: 24px auto 0;
    }

    .section-about{
        padding: 120px 5.5%;
    }

    .section-story{
        padding: 100px 5.5%;
        display: flex;
        justify-content: center;
        gap: 5.5%;
        align-items: center;
    }

    .story-group{
        max-width: 640px;
    }

    .section-title{
        font-size: 3.6rem;
    }

    .section-title--story{
        font-size: 4.4rem;
        margin-top: 0;
    }

    .section-body{
        font-size: 1.6rem;
    }

    .expand{
        font-size: 1.4rem;
    }

    .heading-collection{
        max-width: 1260px;
        margin: 0 auto;
    }

    .collection-list{
        display: flex;
        gap: 2.8%;
        justify-content: center;
        max-width: 1260px;
    }

    .collection-title{
        font-size: 2rem;
        margin-top: 20px;
    }

    .collection-body{
        font-size: 1.6rem;
        line-height: 1.3;
    }
}

/* title fade in */
.title--home.show {
    animation: titleReveal 4s ease-out both;
}

@keyframes titleReveal {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}
.subtitle--home {
    opacity: 0;
    transform: scale(0.8);
    transition:
        opacity 1.5s ease,
        transform 1.5s ease-out;
}

.subtitle--home.show {
    opacity: 1;
    transform: scale(1);
}

.title--home.show.skip-animation {
    animation: none;
    clip-path: inset(0);
    opacity: 1;
}

.subtitle--home.show.skip-animation {
    transition: none;
    opacity: 1;
    transform: scale(1);
}

.about-heading,
.about-body {
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 1.5s ease,
        transform 1.5s ease-out;
}

.about-heading.show,
.about-body.show {
    opacity: 1;
    transform: scale(1);
}

/* hide nav bar */
.home .header {
    margin-bottom: -64px;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.8s ease,
        visibility 0s linear 0.8s;
}

.home .header.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background-color: #ffffff;

    transition:
        opacity 0.8s ease,
        visibility 0s;
}

@media (prefers-reduced-motion: reduce) {

    .title--home.show {
        animation: none;
    }

    .subtitle--home {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home .header {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }
}