/* 基本的なリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* ボディ全体のスクロールを禁止 */
    font-family: sans-serif;
    overscroll-behavior-y: contain; /* 追加: 縦方向のオーバースクロール時のデフォルト動作を抑制 */
}
a,a:visited {
    text-decoration: none;
}
.container {
    width: 100%;
    height: 100svh; /* ビューポートの最小の高さに合わせる */
    overflow: hidden; /* 追加: 中身がはみ出ないように */
    position: relative; /* page-wrapperの基準のため */
}

.page-wrapper {
    height: 100%; /* コンテナの高さに合わせる */
    transition: transform 0.5s ease-out; /* スムーズなアニメーション */
}

.page {
    position: relative;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #88bfc1;
}

/* ページ内のコンテンツ用コンテナ */
.content {
    position: relative; /* 背景より手前に表示するため */
    z-index: 1;
    text-align: center;
    /* テキストが見やすいように背景を少し暗くする（オプション） */
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    opacity: 1; /* 初期状態は不透明 */
    transition: opacity 0.5s ease-in-out; /* 0.5秒かけて不透明度を変化 */
}
.content .icon {
    width: 100px;
    height: 100px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(15px);
    }
    100% {
        transform: translateY(0px);
    }
}
/* フェードアウトを実行するためのクラス (JSで付与) */
.content.fading-out {
    opacity: 0;
    pointer-events: none; /* アニメーション後、クリックイベントなどを拾わないように */
}

/* --- 各ページの背景設定 --- */

.full-video,
.full-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    object-fit:cover;
    object-position: center center;
    z-index: 0;
    user-select: none;
    -webkit-user-drag: none;
}
h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}
p {
   font-size: 1.2rem;
}

/* --- ボタンエリア --- */
.button-area {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    background-color: rgba(255, 255, 255, 0); /* 半透明の白 */
    padding: 8px 0; /* 上下のパディングを減らす */
    text-align: center; /* ボタンを中央揃え */
    z-index: 2; /* コンテンツより手前、必要であれば調整 */
    @media (min-width: 768px) { 
        width: 55%;
        min-width: 220px;
    }

}
.button-micro-copy {
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #fff;
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 1); */
    filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.5)) drop-shadow(-3px -3px 4px rgba(0, 0, 0, 0.5));
    padding-left: 1em;
    @media (min-width: 768px) { 
        font-size: 12px;
        letter-spacing: 0em;
    }
}
.button-copy {
    position: relative;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background-color: #e24a3c;
    color: #fff;
    padding: 10px 20px 10px 30px;
    border-radius: 10px;
    width: fit-content;
    margin: 5px auto 10px;
    @media (min-width: 768px) { 
        font-size: 15px;
    }
}
.button-copy::after {
    content: 'FREE!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #e24a3c;
    background-color: #fff;
    border: 2px solid #e24a3c;
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -25px;
    transform: rotate(-20deg);
}

.btn-image {
    width: 80%;
    height: auto;
    margin: auto;
}



/* --- PC View Adjustments --- */
@media (min-width: 768px) { /* 768px以上の画面幅で適用 (ブレークポイントは調整可能) */
    body.bg {
        background-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),url(../img/bg.jpg);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }
    .container {
        /* max-width: 550px; */
        width: auto;
        height: 100svh;
        /* aspect-ratio: 1080 / 2330; */
        aspect-ratio: 9 / 14.8;
        margin: 0 auto; /* コンテナ自体を画面中央に配置 */
        /* 必要であれば、左右に境界線や影を追加してスマホ画面のように見せる */
        border-left: 1px solid rgb(221, 221, 221);
        border-right: 1px solid rgb(221, 221, 221);
        box-shadow: 2px 2px 10px rgba(221,221,221,0.7);
    }

    /* ページ幅もコンテナに合わせる */
    .page {
        width: 100%;
    }
}

/* --- ページャースタイル --- */
.pager {
    position: fixed;
    bottom: 15px; /* ボタンエリアの高さと自身の高さを考慮して調整 */
    left: 20px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5); /* 見やすいように背景色 */
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 10; /* ボタンエリアと同じかそれ以上 */
    user-select: none; /* テキスト選択不可に */
}

/* PC表示時の調整（任意） */
/* ボタンエリアが画面下部を占めるので、ページャーの位置をボタンエリアの上に調整するなど */
@media (min-width: 768px) {
    /* .container, .page のスタイルはここにも書けるが、既存のものを優先するためここでは省略 */
    .pager {
        /* PCではボタンエリアの高さが変わらないので、bottomの値は微調整程度で良いかも */
        /* もしボタンエリアと重なるなら、bottomをボタンエリアの高さ分上げるなど */
        /* 例: bottom: 60px; (button-areaのpadding 8px*2 + buttonのpadding 15px*2 + buttonのfont-sizeなど考慮) */
        /* 具体的な値は .button-area の高さを見て調整してください */
         bottom: 20px; /* 少し余裕を持たせる */
    }
}

/* カルーセルスタイル */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    width: 100%;
    height: 100%;
    background: transparent;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    object-fit: cover;
    object-position: center center;
}

/* Slickの矢印カスタマイズ */
.slick-prev,
.slick-next {
    z-index: 3;
    width: 35px;
    height: 35px;
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:before,
.slick-next:before {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    background-image: url(../img/arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
}
.slick-prev:before {
    transform: rotate(-90deg);
}
.slick-next:before {
    transform: rotate(90deg);
}


/* ドットナビゲーションのカスタマイズ */
.slick-dots {
    bottom: 100px;
    z-index: 3;
}

.slick-dots li {
    margin: 0 4px;
}

.slick-dots li button:before {
    color: white;
    font-size: 8px;
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: white;
    opacity: 1;
}
.slick-dotted.slick-slider {
    margin-bottom: 0;
}

/* Slickのスライダーラッパーの調整 */
.slick-list,
.slick-track {
    height: 100%;
}

.slick-slide {
    height: 100%;
}

.slick-slide > div {
    height: 100%;
}


/* ページ遷移時のフェードアウト */
.page.fade-out {
    opacity: 0;
}

/* ページ遷移時のスライドアニメーション */
.page.slide-up {
    transform: translateY(-100%);
}

.page.slide-down {
    transform: translateY(100%);
}

/* テキスト画像のスタイル */
.txt-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}
.txt-image[src*="001_txt_01"] {
    width: calc(261 / 1080 * 100%);
    height: auto;
    top: calc(63 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(20 / 2330 * 100svh); 
    }
}
.txt-image[src*="001_txt_02"] {
    width: calc(956 / 1080 * 100%);
    height: auto;   
    top: calc(414 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        top: calc(200 / 2330 * 100svh); 
    }
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(120 / 2330 * 100svh);
    }
}
.txt-image[src*="001_txt_03"] {
    opacity: 0;
    width: calc(468 / 1080 * 100%);
    height: auto;   
    top: calc(900 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        top: calc(800 / 2330 * 100svh); 
    }
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(840 / 2330 * 100svh);
    }
    @media (min-width: 768px) {
        top: calc(760 / 2330 * 100svh);
    }
}
.txt-image[src*="001_txt_03"].fade-up {
    animation: fadeup 1.5s cubic-bezier(0.33, 1, 0.68, 1) forwards .4s;
}
@keyframes fadeup {
0% {
    transform: translateY(50px) translateX(-50%);
    opacity: 0;
}
80% {
    opacity: 1;
}
100% {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
}
}
.txt-image[src*="001_txt_04"] {
    width: calc(420 / 1080 * 100%);
    height: auto;   
    top: calc(1500 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(1550 / 2330 * 100svh);
    }
}
.txt-image[src*="001_txt_04"].fade-out {
    animation: fadeout 1s cubic-bezier(0.33, 1, 0.68, 1) forwards 2.5s;
}
@keyframes fadeout {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
.txt-image[src*="002_txt_01"] {
    width: calc(792 / 1080 * 100%);
    height: auto;
    top: calc(309 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        top: calc(100 / 2330 * 100svh); 
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(700 / 1080 * 100%);
        top: calc(60 / 2330 * 100svh); 
    }
}
.txt-image[src*="002_txt_02"] {
    width: calc(325 / 1080 * 100%);
    height: auto;
    bottom: calc(450 / 2330 * 100svh);
    left: unset;
    right: calc(120 / 1080 * 100%);
    transform: none;
    @media (min-aspect-ratio: 9 / 18) {
        bottom: calc(400 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(290 / 1080 * 100%);
        bottom: calc(350 / 2330 * 100svh);
    }
}
.txt-image[src*="003_1_txt_01"] {
    width: calc(752 / 1080 * 100%);
    height: auto;
    top: calc(324 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(100 / 2330 * 100svh);
    }
}
.txt-image[src*="003_2_txt_01"] {
    width: calc(668 / 1080 * 100%);
    height: auto;
    top: calc(335 / 2330 * 100svh);
    transform: translateX(-65%);
    @media (min-aspect-ratio: 9 / 18) {
        top: calc(280 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(200 / 2330 * 100svh);
    }
}
.txt-image[src*="004_1_txt_01"] {
    width: calc(958 / 1080 * 100%);
    height: auto;
    top: calc(324 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(100 / 2330 * 100svh);
    }
}
.txt-image[src*="004_3_txt_01"] {
    width: calc(364 / 1080 * 100%);
    height: auto;
    top: calc(300 / 2330 * 100svh);
    transform: translateX(10%);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(250 / 2330 * 100svh);
    }
}
.txt-image[src*="005_1_txt_01"] {
    width: calc(744 / 1080 * 100%);
    height: auto;
    top: calc(324 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(100 / 2330 * 100svh);
    }
}
.txt-image[src*="005_2_txt_01"] {
    width: calc(706 / 1080 * 100%);
    height: auto;
    top: calc(324 / 2330 * 100svh);
    transform: translateX(-65%);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(100 / 2330 * 100svh);
    }
}
.txt-image[src*="006_txt_01"] {
    width: calc(787 / 1080 * 100%);
    height: auto;
    top: calc(322 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        top: calc(100 / 2330 * 100svh); 
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(680 / 1080 * 100%);
        top: calc(20 / 2330 * 100svh); 
    }
}
.txt-image[src*="006_txt_02"] {
    width: calc(400 / 1080 * 100%);
    height: auto;
    bottom: calc(300 / 2330 * 100svh);
    left: unset;
    right: calc(85 / 1080 * 100%);
    transform: none;
    @media (min-aspect-ratio: 9 / 18) {
        width: calc(350 / 1080 * 100%);
        bottom: calc(300 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(250 / 1080 * 100%);
        bottom: calc(330 / 2330 * 100svh);
    }
}
.txt-image[src*="007_1_txt_01"] {
    width: calc(928 / 1080 * 100%);
    height: auto;
    top: calc(300 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(100 / 2330 * 100svh);
    }
}
.txt-image.txt-image-7-common {
    width: calc(836 / 1080 * 100%);
    height: auto;
    bottom: calc(440 / 2330 * 100svh);
    transform: translateX(-55%);
    @media (min-aspect-ratio: 9 / 16) {
        bottom: calc(530 / 2330 * 100svh);
    }
}
.carousel-item-7-5 {
    background-color: #f0f0ea;
}
.txt-image[src*="007_5_txt_01"] {
    width: calc(865 / 1080 * 100%);
    height: auto;
    top: 50%;
    transform: translate(-50%,-52%);
    @media (min-aspect-ratio: 9 / 18) {
        transform: translate(-50%,-60%);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(700 / 1080 * 100%);
        transform: translate(-50%,-60%);
    }
}
.txt-image[src*="008_1_txt_01"] {
    width: calc(938 / 1080 * 100%);
    height: auto;
    top: calc(300 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(100 / 2330 * 100svh);
    }
}
.txt-image[src*="008_2_txt_01"],
.txt-image[src*="008_3_txt_01"] {
    width: calc(797 / 1080 * 100%);
    height: auto;
    top: calc(300 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        top: calc(100 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(670 / 1080 * 100%);
        top: calc(60 / 2330 * 100svh);
    }
}
.txt-image[src*="010_1_txt_01"] {
    width: calc(904 / 1080 * 100%);
    height: auto;
    top: calc(580 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 16) {
        top: calc(100 / 2330 * 100svh);
    }
}
.carousel-item-10-2-5 {
    background-color: #fff;
}
.txt-image[src*="010_2_txt_01"] {
    width: calc(1002 / 1080 * 100%);
    height: auto;
    bottom: calc(1100 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        width: calc(900 / 1080 * 100%);
        bottom: calc(1050 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(770 / 1080 * 100%);
        bottom: calc(1020 / 2330 * 100svh);
    }
    @media (min-width: 768px) {
        bottom: calc(1100 / 2330 * 100svh);
    }
}
.txt-image[src*="010_3_txt_01"] {
    width: calc(946 / 1080 * 100%);
    height: auto;
    bottom: calc(1100 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        width: calc(900 / 1080 * 100%);
        bottom: calc(1050 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(770 / 1080 * 100%);
        bottom: calc(1020 / 2330 * 100svh);
    }
    @media (min-width: 768px) {
        bottom: calc(1100 / 2330 * 100svh);
    }
}
.txt-image[src*="010_4_txt_01"] {
    width: calc(923 / 1080 * 100%);
    height: auto;
    bottom: calc(1100 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        width: calc(900 / 1080 * 100%);
        bottom: calc(1050 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(770 / 1080 * 100%);
        bottom: calc(1020 / 2330 * 100svh);
    }
    @media (min-width: 768px) {
        bottom: calc(1100 / 2330 * 100svh);
    }
}
.txt-image[src*="010_5_txt_01"] {
    width: calc(943 / 1080 * 100%);
    height: auto;
    bottom: calc(1100 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        width: calc(900 / 1080 * 100%);
        bottom: calc(1050 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(770 / 1080 * 100%);
        bottom: calc(1020 / 2330 * 100svh);
    }
    @media (min-width: 768px) {
        bottom: calc(1100 / 2330 * 100svh);
    }
}
.carousel-item-11-1 {
    background-color: #8fa0a8;
}
.txt-image[src*="011_1_txt_01"] {
    width: calc(980 / 1080 * 100%);
    height: auto;
    top: calc(350 / 2330 * 100svh);
    @media (min-aspect-ratio: 9 / 18) {
        top: calc(50 / 2330 * 100svh);
    }
    @media (min-aspect-ratio: 9 / 16) {
        width: calc(810 / 1080 * 100%);
        top: 0;
    }
}
.txt-image[src*="012_txt_01"] {
    width: calc(600 / 1080 * 100%);
    height: auto;
    top: calc(50 / 2330 * 100svh);
}
.txt-image[src*="012_txt_02"] {
    width: calc(540 / 1080 * 100%);
    height: auto;
    top: calc(1450 / 2330 * 100svh);
}
.txt-image[src*="012_txt_01"].fade-out,
.txt-image[src*="012_txt_02"].fade-out {
    animation: fadeout cubic-bezier(0.33, 1, 0.68, 1) forwards 1s;
}

.vjs-poster img,
.video-js .vjs-tech {
    object-fit: cover !important;
    object-position: center center !important;
}

#video-control-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}