/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 620px;
    margin: 0 auto;
    padding: 0;
}

/* 画像セクションのスタイル */
.image-section {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* CTAセクションのスタイル */
.cta-section {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
}

.cta-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ボタンセクションのスタイル */
.button-section {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-image {
    max-width: 300px;
    height: auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
}

.button-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .button-section {
        padding: 30px 15px;
    }
    
    .button-image {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .overlay-btn {
        max-width: 92%;
        width: auto;
    }
    
    .fv-section .overlay-button {
        padding-bottom: 15%;
    }
    
    .cta-section .overlay-button {
        padding-bottom: 12%;
    }
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-section,
.cta-section {
    animation: fadeInUp 0.8s ease-out;
}

/* スクロール時の視差効果 */
.image-section:nth-child(odd) {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.image-section:nth-child(even) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* 画像の読み込み最適化 - 必要に応じてHTMLでloading="lazy"を設定 */

/* 画像のホバー効果は無効化 */

/* オーバーレイボタンのスタイル */
.overlay-button {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.overlay-button a {
    display: block;
    pointer-events: auto;
    text-align: center;
    width: 100%;
}

/* FV画像のボタン位置調整 */
.fv-section .overlay-button {
    align-items: flex-end;
    padding-bottom: 18%;
}

/* CTA画像のボタン位置調整 */
.cta-section .overlay-button {
    align-items: flex-end;
    padding-bottom: 8%;
}

.overlay-btn {
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 10px;
    max-width: 92%;
    width: auto;
    margin: 0 auto;
}

/* ボタンのホバー効果 */
.overlay-btn:hover {
    opacity: 0.8;
}
