@charset "UTF-8";

/* ==========================================
   1. 基本設定（全デバイス共通）
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    margin-inline: auto;
}

body {
    background-color: #FFFAC4;
    overflow-x: hidden;
    max-width: 1440px;
}

/* 画像を囲むブロック要素の隙間をゼロにする */
section,
picture {
    display: block;
    line-height: 0;
    font-size: 0;
}

/* ★修正：基本は画像の横幅を自動（引き伸ばさない）にします */
img {
    max-width: 100%;
    vertical-align: bottom;
    height: auto;
    border: none;
}

/* リンク要素を完全ブロック化 */
main a {
    display: block;
    line-height: 0;
    font-size: 0;
}

/* 最大幅1440pxで中央寄せ */
main {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    background-color: #fff;
    overflow: hidden;
}

main a:hover img {
    opacity: 0.8;
    transition: 0.3s;
}

/* フッターなどの背景緑ボックス */
.bk {
    background-color: #007A50;
}

.m60 {
    max-width: 1440px;
    height: 60px;
    background-color: #007A50;
}

/* プライバシーポリシーの画像リンクの設定 */
.policy-link {
    display: block;
    text-align: center;
    margin: 0 auto;
}

.policy-link img.text {
    max-width: 146.5px !important;
    height: auto !important;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.policy-link:hover img.text {
    opacity: 0.7;
}

/* ==========================================
   2. アニメーション設定
========================================== */
@keyframes lineBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.line-bounce-btn {
    display: block;
    line-height: 0;
    font-size: 0;
    animation: lineBounce 1.6s infinite ease-in-out;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.line-bounce-btn:hover {
    animation-play-state: paused;
}

.line-bounce-btn:hover img {
    transform: scale(1.02);
}

img.line_btn {
    background-color: #FFFAF5;
}

/* ==========================================
   3. プライバシーポリシーページ専用設定
========================================== */
.back-btn-wrap {
    text-align: center;
    padding: 60px 20px;
    display: block;
    line-height: normal !important;
    font-size: 16px !important;
}

.back-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #007A50;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: bold;
    text-decoration: none;
    padding: 18px 60px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 74, 48, 0.2);
}

.back-link:hover {
    background-color: #005c3c;
    transform: translateY(-2px);
    opacity: 1 !important;
}

.back-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0;
}

/* ==========================================
   4. レスポンシブ切り替えスイッチ (900px基準)
========================================== */

/* -------------------------------------------
   ① PC大画面 〜 iPad横向き（901px以上）の表示設定
------------------------------------------- */
@media screen and (min-width: 901px) {
    .sp-only {
        display: none !important;
    }

    .pc-only {
        display: block !important;
    }

    /* PCの時はPCフッターを表示して背景を緑にする */
    .footer-pc {
        display: block !important;
        background-color: #007A50;
    }

    .footer-sp {
        display: none !important;
        background-color: #007A50;
    }

    main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
    }

    main img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .page-top-btn {
        position: fixed !important;
        left: auto !important;
        right: 30px !important;
        bottom: 30px !important;
        margin-left: 0 !important;
    }
}

/* -------------------------------------------
   ② iPad縦画面 〜 スマホ（900px以下）の表示設定
------------------------------------------- */
@media screen and (max-width: 900px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block !important;
    }

    /* ★ここが超重要：900px以下になった瞬間、PCフッターを跡形もなく完全に消し去る */
    .footer-pc {
        display: none !important;
    }

    /* スマホフッターを表示して背景を緑にする */
    .footer-sp {
        display: block !important;
        background-color: #007A50;
    }

    main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    main img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-top-btn {
        position: fixed !important;
        left: auto !important;
        margin-left: 0 !important;
        right: 20px !important;
        bottom: 20px !important;
    }
}

/* ==========================================
   5. トップへ戻るボタン共通デザイン (一律40px)
========================================== */
.page-top-btn {
    width: 40px !important;
    height: 40px !important;
    background-color: #007A50 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;

    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.page-top-btn.is-show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.page-top-btn::after {
    content: "" !important;
    position: absolute !important;
    top: 58% !important;
    left: 50% !important;
    width: 9px !important;
    height: 9px !important;
    max-width: 9px !important;
    max-height: 9px !important;
    border-top: 2px solid #ffffff !important;
    border-left: 2px solid #ffffff !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
    box-sizing: border-box !important;
}

.page-top-btn:hover {
    background-color: #005c3c !important;
    transform: translateY(-2px) !important;
    opacity: 1 !important;
}