/* オープニング全体 */
.opening {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    opacity: 1;
  visibility: visible;
  transition: opacity .8s ease, visibility .8s ease;
}

/* 閉じる時 */
.opening.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /*transform: translateY(-100%);
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease,
        transform 0.8s ease;*/
}

/* スライド枠 */
.opening__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* 各スライド */
.opening__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.opening__slide.is-active {
    opacity: 1;
}

/* 1枚目画像 */
.opening__slide--first img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.opening__slide--first img.is-show {
    opacity: 1;
}

/* 通常画像 */
.opening__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 黒オーバーレイ */
.opening__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.opening__overlay.is-show {
    opacity: 1;
}

/* コンテンツ */
.opening__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

/* タイトル */
.opening__title {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin-bottom: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    font-family: "Sorts Mill Goudy", serif;
    font-weight: 400;
    font-style: normal;
}

.opening__title.is-ready {
    opacity: 1;
    visibility: visible;
}

.opening__title.is-hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.opening__title-line {
    display: block;
}

.opening__char {
    display: inline-block;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    will-change: opacity, transform;
}

.opening__char.is-show {
    opacity: 1;
    transform: translateX(0);
}

/* ロゴ */
.top-intro-logo {
    position: absolute;
    left: 50px;
    top: 50px;
    /*top: 50%;
  transform: translate(-50%, -50%);*/
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    width: 30%;
}

.top-intro-logo.is-show {
    opacity: 1;
    visibility: visible;
}

.top-intro-logo img {
    display: block;
    /*max-width: min(280px, 70vw);
  width: 100%;*/
    height: auto;
    max-height: 150px;
}

/* 下部テキスト */
.opening__text {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opening__text.is-show {
    opacity: 1;
    visibility: visible;
}

html.opening-already-played #opening {
  display: none !important;
}

