#loading.fadeout {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

h3 {
    margin-bottom: 64px;
}

#header-logo {
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 1000;
}

#header-logo.is-show {
    opacity: 1;
    visibility: visible;
}


/* SPトップー */
.top {
    background-color: var(--main-color);
    padding-top: 55px;
}

.img-wrapper {
    position: relative;
    /* ← 重ねる基準 */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 90vh;
    box-sizing: border-box;
    background-color: var(--main-color);
}

.img-top {
    display: block;
    /* 画像下の謎の余白防止 */
    width: 100%;
    height: 100%;
    max-width: calc(100% - 64px);
    max-height: calc(100% - 64px);
    object-fit: cover;
    object-position: center;
}

.img-bg {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-top {
    position: absolute;
    max-width: calc(100% - 64px);
    max-height: calc(100% - 64px);

    opacity: 0;
    transition: opacity 1.5s ease;
}

.img-top.active {
    opacity: 1;
}

.img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.text {
    position: absolute;
    top: 24px;
    left: 72px;
    /* ど真ん中 */
    color: var(--sub-color);
    font-size: 16px;
    line-height: 100%;

    opacity: 1;
    transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease;
}

.text.is-hide {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    /* 念のため */
}

.text-vertical {
    position: absolute;
    writing-mode: vertical-rl;
    top: 24px;
    left: 16px;
    /* ど真ん中 */
    color: var(--sub-color);
    font-size: 48px;
    line-height: 100%;

    opacity: 1;
    transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease;
}

.text-vertical.is-hide {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    /* 念のため */
}

/*====== 縦線が動いてスクロールを促す =======*/

/*スクロールダウン全体の場所*/
.scrolldown1 {
    /*描画位置※位置は適宜調整してください*/
    position: absolute;
    bottom: 10px;
    /*全体の高さ*/
    height: 193px;
    right: 56px;
}

/*Scrollテキストの描写*/
.scrolldown1 span {
    /*描画位置*/
    position: absolute;
    left: -5px;
    top: -30px;
    /*テキストの形状*/
    color: var(--sub-color);
    font-size: 12px;
    letter-spacing: 0.05em;
    writing-mode: vertical-rl;
    line-height: 100%;
}

/* 線の描写 */
.scrolldown1::after {
    content: "";
    /*描画位置*/
    position: absolute;
    top: 0;
    /*線の形状*/
    width: 1px;
    height: 40px;
    background: var(--sub-color);
    /*線の動き1.4秒かけて動く。永遠にループ*/
    animation: pathmove 3s ease-in-out infinite;
    opacity: 0;
}

/*高さ・位置・透過が変化して線が上から下に動く*/
@keyframes pathmove {
    0% {
        height: 0;
        top: 0;
        opacity: 0;
    }

    40% {
        height: 80px;
        opacity: 1;
    }

    100% {
        height: 0;
        top: 160px;
        opacity: 0;
    }
}

.top-wrapper {
    padding: 128px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 128px;
    background-color: var(--main-color);
    color: var(--bg-color);
}

.top-text {
    max-width: 528px;
    display: flex;
    flex-direction: column;
}


.top-title {
    writing-mode: vertical-rl;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 400;
    margin: auto;
}

.top-title-en {
    writing-mode: horizontal-tb;
}


.top-title span {
    display: block;
}

.top-dececripton {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.top-dececripton p {
    margin: 64px 0;
}

.top-title-dececripton p {
    margin: 64px 0;
}

.top-dececripton a {
    margin-left: auto;
    line-height: 1;
    padding-bottom: 8px;
}

.top-img {
    width: 100%;
    max-width: 468px;
}

.img-top-work {
    width: 60%;
    display: block;
    margin: auto;
    margin-bottom: 10%;
}

.img-top-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.img-top-artist {
    width: 45%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 auto auto 0;
}

.img-top-use {
    aspect-ratio: 3 / 4;
    width: 45%;
    object-fit: cover;
    margin-top: 15%;
}

/* PCトップ */
@media (min-width: 1073px) {
    .text {
        font-size: 24px;
        left: 80px;
        top: 20px;
    }

    .text-vertical {
        font-size: 56px;
        top: 20px;
    }

    .top-wrapper {
        max-width: 1224px;
        flex-direction: row;
        justify-content: space-between;
        margin: auto;
        padding: 144px 36px;
        gap: 36px;
        align-items: start;
    }

    .top-text {
        height: 100%;
    }

    .top-img {
        margin-top: 36px;
    }

    .top-dececripton {
        align-items: flex-start;
        width: 100%;
    }

    .top-dececripton p {
        margin: 72px 0;
    }

    .top-title-dececripton p {
        margin: 72px 0;
    }

    .top-dececripton a {
        margin-left: 0;
        line-height: 1;
        padding-bottom: 8px;
    }
}


/* SP作家紹介ー */
.top-artist {
    width: 100%;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-artist h3 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-artist .h3-en {
    align-items: flex-start;
    justify-content: flex-start;
}

figcaption {
    font-size: 16px;
    line-height: 24px;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
}

.img-a {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 82%;
    padding-right: 10%;
}

.img-b {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    margin: auto;
    padding-left: 10%;
}

.img-c {
    grid-column: 1;
    grid-row: 2;
    padding-right: 10%;
}

/* PC作家紹介 */
@media (min-width: 740px) {
    .top-artist {
        max-width: 1224px;
        margin: 0 auto 144px;
        padding: 0 36px;
    }

    .grid-wrapper {
        display: flex;
        gap: 6.25%;
    }

    .top-artist-wrapper {
        display: flex;
        gap: 6.25%;
    }

    .top-artist-wrapper figure {
        padding: 0;
        width: 100%;
    }

    .top-artist h3 {
        width: auto;
        display: flex;
        justify-content: flex-start;
    }

    .img-a {
        margin-top: 36px;
    }

    .img-b {
        margin-top: calc(36px * 2);
    }

    .img-c {
        margin-top: calc(36px * 3);
    }

    .top-artist .top-dececripton {
        align-items: flex-start;
        width: 100%;
    }

    .top-artist .top-dececripton a {
        margin-left: 0;
    }
}


/* SP作品紹介ー */
.top-work {
    padding: 64px 32px;
    padding-left: 0;
    background-color: var(--main-color);
    color: var(--bg-color);
}

.text-area {
    display: flex;
    justify-content: flex-end;
}

.top-dececripton-pc {
    display: none;
}

.top-work .en .text-area {
    justify-content: flex-start;
    padding-left: 32px;
}

.top-work .en .top-dececripton-sp {
    align-items: flex-start;
    padding-left: 32px;
}

.top-work .en .top-dececripton-sp a {
    margin-left: 0;
}

/* PC作家紹介 */
@media (min-width: 740px) {
    .top-work {
        padding: 64px 0;
        background-color: var(--main-color);
        color: var(--bg-color);
    }

    .top-work-container {
        max-width: 1224px;
        margin: 0 auto;
        padding: 0 36px;
    }

    .top-work-wrapper {
        display: flex;
        flex-direction: row-reverse;
        align-items: stretch;
    }

    /* 画像 */
    .image-area {
        width: 50vw;
        margin-left: calc(50% - 50vw);
        flex-shrink: 0;
    }

    .image-area img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* テキスト */
    .text-area {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .top-dececripton-pc {
        display: flex;
        width: 100%;
        align-items: flex-end;
    }

    .top-dececripton-sp {
        display: none;
    }

    .top-work .en .h3-en {
        text-align: right;
    }

    .top-work .en .text-area {
        justify-content: space-between;
        padding-left: 32px;
    }
}

/* SP店舗情報ー */
.top-shop {
    padding: 0 32px;
}

.top-dececripton-en p {
    margin: 64px 0;
}

.top-shop-dececripton {
    margin-top: 32px;
}

.top-shop-dececripton p {
    margin-bottom: 32px;
}

.top-dececripton-en a {
    justify-content: flex-end;
}

/* PC店舗情報 */
@media (min-width: 740px) {
    .top-shop {
        max-width: 1224px;
        margin: 0 auto 144px;
        padding: 0 36px;
    }

    .top-shop-wrapper {
        display: flex;
        justify-content: space-between;
        gap: 6.25%;
    }

    .top-shop-wrapper-en {
        flex-direction: column;
    }

    .top-shop-en {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 64px;
    }

    .top-shop-img img {
        width: 100%;
        height: auto;
        max-width: 590px;
    }

    .top-dececripton-en {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .top-shop-wrapper .top-dececripton {
        width: fit-content;
        margin-top: auto;
    }

    .top-shop-wrapper .top-dececripton a {
        margin-left: auto;
    }

}


/* SPお知らせー */
.top-news {
    padding: 0 32px;
}

.news-wrapper {
    display: block;
}

.news-list {
    width: 100%;
}

.news-item {
    margin-bottom: var(--space-1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-img {
    height: 210px;
    /* 高さ固定 */
    width: 100%;
    overflow: hidden;
    background-color: var(--content-color);
    padding: var(--space-0);
}

.news-info {
    margin: var(--space-0) 0;
}

.news-img img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    /* 上下左右を切ってでも比率維持 */
}

.news-detail-link {
    text-align: right;
    margin-top: auto;
}

.top-news a {
    margin-top: var(--space-1);
}

@media (min-width: 740px) {
    .news-wrapper {
        display: flex;
        gap: 6.25%;
    }

    .news-item-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 3等分で横並び */
        gap: var(--space-1);
        /* 余白（任意） */
    }

    .news-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


/* PCお知らせ */
@media (min-width: 1073px) {
    .top-news {
        max-width: 1224px;
        margin: 0 auto 144px;
        padding: 0 36px;
    }

    .news-wrapper {
        display: block;
    }

    .news-item-wrapper {
        display: block;
    }

    .top-news .top-dececripton a {
        margin-left: auto;
    }

    .news-list {
        display: flex;
        gap: var(--space-2);
    }

    .news-item {
        flex: 1;
    }

}