/* ========================================
   CSS Reset
======================================== */
*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}
ul[role="list"],ol[role="list"]{list-style:none}
html:focus-within{scroll-behavior:smooth}
body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}
a:not([class]){text-decoration-skip-ink:auto}
img,picture{max-width:100%;display:block}
input,button,textarea,select{font:inherit}
@media(prefers-reduced-motion:reduce){
    html:focus-within{scroll-behavior:auto}
    *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}

/* ========================================
   基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    background-color: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}

#wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ========================================
   セクション共通スタイル
======================================== */
section {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

section img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* 最初の画像だけpositionをrelativeに＆最初から表示 */
section img:first-child {
    position: relative;
    opacity: 1;
}

/* animateクラスがついたら表示 */
section img.animate {
    opacity: 1;
}

/* ========================================
   ファーストビュー
======================================== */

.fv {
    background-color: #fff;
}

/* FV専用ボタン */
.fv__btn {
    position: absolute;
    bottom: 55%;
    left: 20%;
    transform: translateX(-50%);
    z-index: 10;
    width: 35%;
    max-width: 290px;
    text-align: center;
}

.fv__btn a {
    display: block;
    transition: transform 0.3s ease;
}

.fv__btn a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.fv__btn img {
    width: 100%;
    height: auto;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.fv__btn img:hover {
    animation: none;
}
/* FV最後のボタン */
.fv__btn--bottom {
    position: absolute;
    bottom: 0%; /* 下からの位置を調整 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 768px;
    text-align: center;
}

.fv__btn--bottom a {
    display: block;
    transition: transform 0.3s ease;
}

.fv__btn--bottom a:hover img {
    opacity: 0.8;
}

.fv__btn--bottom a:hover {
    transform: scale(1.05);
}

.fv__btn--bottom img {
    width: 100%;
    height: auto;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}
/* ========================================
   featuresセクション
======================================== */

.features {
    background-color: #fff;
}

/* ========================================
   pointsセクション
======================================== */

.points {
    background-color: #fff;
}

/* ========================================
   Q&Aセクション
======================================== */

.qa {
    background-color: #fff;
}

/* ========================================
   CTAセクション
======================================== */

/* ... (省略) ... */

/* CTAボタン */
div.cta__btn {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 768px;
}

div.cta__btn a {
    display: block;
    transition: transform 0.3s ease;
}

/* 【修正・追加】aタグにホバーしたときに、子要素のimgを透過させる */
div.cta__btn a:hover img { /* ★ このセレクタを追加 */
    opacity: 0.8;
}

/* 【変更】aタグにホバーしたときの transform: scale(1.05) はこちらに残す */
div.cta__btn a:hover {
    /* opacity: 0.8; ← 元々ここにありましたが、上でimgに直接かけるため削除 */
    transform: scale(1.05);
}

div.cta__btn img {
    width: 100%;
    height: auto;
    display: block;
    animation: pulse 2s ease-in-out infinite;
    /* transition: opacity 0.3s ease; ← スムーズにするために追加しても良い */
}

div.cta__btn img:hover {
    animation: none;
}

/* ========================================
   フッター
======================================== */

footer {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    background-color: #333;
    color: #fff;
    font-size: 12px;
}

/* ========================================
   pulseアニメーション（ボタン用）
======================================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   レスポンシブ対応
======================================== */

@media (max-width: 768px) {
    .fv__btn {
        width: 40%;
        bottom: 53%;
    }
    
    .cta__btn {
        width: 85%;
        bottom: 7%;
    }
}

@media (max-width: 480px) {
    .fv__btn {
        width: 40%;
        bottom: 53%;
    }
    
    .cta__btn {
        width: 90%;
        bottom: 7%;
    }
}

/* ワイプスライド用画像の初期設定 */
.fv img:nth-of-type(2),
.fv img:nth-of-type(5),
.features img:nth-of-type(11),
.points img:nth-of-type(2),
.points img:nth-of-type(7) {
    opacity: 1 !important;
    transition: none !important;
}

/* ========================================
   アニメーション定義
======================================== */

/* 左から右にワイプ表示アニメーション */
@keyframes wipeRight {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* ふわっと点滅（少し浮かぶ） */
@keyframes softBlink {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.2;
        transform: translateY(-5px);
    }
}

/* パッパッと点滅 */
@keyframes quickBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* 縦揺れアニメーション（2回版） */
@keyframes shakeY {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(8px);
    }
    75% {
        transform: translateY(-8px);
    }
}

/* シンプルなフェードイン */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 左右に傾いてカクカク揺れる（控えめ） */
@keyframes shakeRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(4deg);
    }
    75% {
        transform: rotate(-4deg);
    }
}

/* ドンドン!と拡大（シンプル版） */
@keyframes dondon {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* バウンスアニメーション */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ========================================
   ファーストビューのアニメーション
======================================== */

/* fv_1 ワイプスライド（2番目の画像） */
.fv img:nth-of-type(2).animate {
    animation: wipeRight 0.6s ease-out forwards;
    animation-delay: 0.3s;
}

/* fv_3 ふわっと点滅（4番目の画像） */
.fv img:nth-of-type(4).animate {
    animation: softBlink 0.6s ease-in-out 2 forwards;
    animation-delay: 0.5s;
}

/* fv_4 ワイプスライド（5番目の画像） */
.fv img:nth-of-type(5).animate {
    animation: wipeRight 0.6s ease-out forwards;
    animation-delay: 0.8s;
}

/* fv_5 パッパッと点滅（6番目の画像） */
.fv img:nth-of-type(6).animate {
    animation: quickBlink 0.6s ease-in-out 2 forwards;
    animation-delay: 1.1s;
}

/* fv_6 縦揺れ（7番目の画像） */
.fv img:nth-of-type(7).animate {
    animation: shakeY 1s ease-in-out forwards;
    animation-delay: 1.4s;
}

/* ========================================
   featuresセクションのアニメーション
======================================== */

/* features_4、5、6は最初非表示 */
.features img:nth-of-type(5),
.features img:nth-of-type(6),
.features img:nth-of-type(7) {
    opacity: 0;
}

/* features_4、5、6を順番に表示 */
.features img:nth-of-type(5).animate {
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

.features img:nth-of-type(6).animate {
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.6s;
}

.features img:nth-of-type(7).animate {
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.9s;
}

/* features_10 ワイプスライド（11番目の画像） */
.features img:nth-of-type(11).animate {
    animation: wipeRight 0.5s ease-out forwards;
    animation-delay: 2.4s;
}

/* ========================================
   CTAセクションのアニメーション
======================================== */

/* cta_1 パッパッと点滅（2番目の画像） */
.cta img:nth-of-type(2).animate {
    animation: quickBlink 0.6s ease-in-out 2 forwards;
    animation-delay: 0.3s;
}

/* cta_2 左右にカクカク揺れる（3番目の画像） */
.cta img:nth-of-type(3).animate {
    animation: shakeRotate 0.6s ease-in-out forwards;
    animation-delay: 0.6s;
}

/* cta_3 ドンドン!と拡大（4番目の画像） */
.cta img:nth-of-type(4).animate {
    animation: dondon 0.6s ease-in-out forwards;
    animation-delay: 0.9s;
}

/* cta_4 バウンス（5番目の画像） */
.cta img:nth-of-type(5).animate {
    animation: bounce 1s ease-in-out forwards;
    animation-delay: 1.2s;
}

/* cta_5 点滅（6番目の画像） */
.cta img:nth-of-type(6).animate {
    animation: quickBlink 0.6s ease-in-out 2 forwards;
    animation-delay: 1.5s;
}

/* ========================================
   pointsセクションのアニメーション
======================================== */

/* points_1 ワイプスライド（2番目の画像） */
.points img:nth-of-type(2).animate {
    animation: wipeRight 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

/* points_2、3、4、5は最初非表示 */
.points img:nth-of-type(3),
.points img:nth-of-type(4),
.points img:nth-of-type(5),
.points img:nth-of-type(6) {
    opacity: 0;
}

/* points_2、3、4、5を順番に表示 */
.points img:nth-of-type(3).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.points img:nth-of-type(4).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

.points img:nth-of-type(5).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.3s;
}

.points img:nth-of-type(6).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.7s;
}

/* points_6 ワイプスライド（7番目の画像） */
.points img:nth-of-type(7).animate {
    animation: wipeRight 0.6s ease-out forwards;
    animation-delay: 1.5s;
}

/* points_8、9、10は最初非表示 */
.points img:nth-of-type(9),
.points img:nth-of-type(10),
.points img:nth-of-type(11) {
    opacity: 0;
}

/* points_8、9、10を順番に表示（points_6の後） */
.points img:nth-of-type(9).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.7s;
}

.points img:nth-of-type(10).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 2.1s;
}

.points img:nth-of-type(11).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 2.5s;
}

/* points_11 点滅（12番目の画像） */
.points img:nth-of-type(12).animate {
    animation: quickBlink 0.6s ease-in-out 2 forwards;
    animation-delay: 3.0s;
}

/* points_12 バウンス（13番目の画像） */
.points img:nth-of-type(13).animate {
    animation: bounce 1s ease-in-out forwards;
    animation-delay: 3.5s;
}

/* ========================================
   Q&Aセクションのアニメーション
======================================== */

/* qa_1~8は最初非表示 */
.qa img:nth-of-type(2),
.qa img:nth-of-type(3),
.qa img:nth-of-type(4),
.qa img:nth-of-type(5),
.qa img:nth-of-type(6),
.qa img:nth-of-type(7),
.qa img:nth-of-type(8),
.qa img:nth-of-type(9) {
    opacity: 0;
}

/* qa_1~8を順番に表示 */
.qa img:nth-of-type(2).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.qa img:nth-of-type(3).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.qa img:nth-of-type(4).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.qa img:nth-of-type(5).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

.qa img:nth-of-type(6).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.4s;
}

.qa img:nth-of-type(7).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.7s;
}

.qa img:nth-of-type(8).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 2.0s;
}

.qa img:nth-of-type(9).animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 2.3s;
}