/* 非表示クラス */
.hidden {
    display: none !important;
}

/* ローディングオーバーレイ */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* 背景を完全な白に設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1; /* 初期状態で完全に表示 */
    transition: opacity 2s ease-out, visibility 2s ease-out; /* フェードアウトのトランジション */
    visibility: visible; /* 初期状態で表示 */
}

/* 非表示状態 */
#loading-overlay.hidden {
    opacity: 0; /* フェードアウト */
    visibility: hidden; /* 完全に透明になったら非表示 */
}

/* ローディング画像 */
.loading-image {
    width: 80px; /* 必要に応じてサイズ調整 */
    height: auto;
}



/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Comic Sans MS", "Comic Sans", cursive; /* ポップでかわいいフォント */
    line-height: 1.6;
    background-color: #ffffff; /* 全体の背景を白に設定 */
    color: #333;
    margin: 0;
    padding: 0;
}

/* コンテナスタイル */
.container {
    width: 100%;
    max-width: 500px; /* 最大幅を500pxに固定 */
    margin: 0 auto;
    background-color: #ffffff; /* 白背景 */
    border-radius: 15px; /* 柔らかい角丸デザイン */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 柔らかい影 */
    position: relative;
    overflow: hidden;
}

/* メインコンテンツ */
.main-content {
    padding: 0;
    position: relative;
}

/* 画像ラッパー */
.image-wrapper {
    position: relative;
    width: 100%;
}

/* TOPバナーラッパー */
.banner-wrapper {
    text-align: center;
}

/* アプリ紹介文エリア */
.app-introduction {
    text-align: center;
    padding: 20px;
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #fff9c4; /* 背景色（補助用） */
    background-image: url('img/background-1.jpg'); /* 背景画像を追加 */
    background-size: cover; /* 画像をコンテナに合わせる */
    background-position: center; /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像を繰り返さない */
    color: #444;
    line-height: 1.8;
}



/* 「チャリンってなに？」画像 */
.subtitle-image {
    width: 100%; /* 画像サイズを調整 */
    max-width: 900px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out; /* アニメーションを適用 */
}

.subtitle-image.show {
    opacity: 1;
    transform: translateY(0); /* 元の位置に移動 */
}

/* アプリ紹介文テキストの初期状態 */
.app-introduction p {
    font-size: 1.1rem;
    font-family: 'Kosugi Maru', sans-serif;
    background-color: rgba(255, 255, 255, 0.8); /* 白背景（半透明） */
    padding: 70px 20px; /* 内側の余白を追加 */
    border-radius: 40px; /* 角を丸く */
    box-shadow: 0 10px 10px rgba(122, 94, 91, 0.5); /* 柔らかい影 */
    display: inline-block; /* テキストのサイズに合わせる */
    margin: 40px auto; /* 上下に余白を追加し中央揃え */

    opacity: 0; /* 初期状態で透明 */
    transform: translateY(50px); /* 初期状態で少し下に配置 */
    transition: opacity 1s ease-out, transform 1s ease-out; /* アニメーションを適用 */
}

/* ビューポートに入ったときのスタイル */
.app-introduction p.show {
    opacity: 1; /* 表示 */
    transform: translateY(0); /* 元の位置に移動 */
}

/* 強調テキスト */
.app-introduction .highlight {
    font-weight: bold;
    font-size: 1.1rem;
    color: #ff4081; /* 明るいピンク */
}

.app-introduction .highlight-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff4bba; /* 鮮やかなピンク */
}

/* TOP画像 */
.top-image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0; /* 初期状態で透明 */
    animation: fadeIn 2s ease-in-out forwards; /* フェードインアニメーションを適用 */
    margin-bottom: -3px;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0; /* 完全に透明 */
    }
    100% {
        opacity: 1; /* 完全に表示 */
    }
}


/* LOGO画像 */
.logo-image {
    position: absolute;
    top: 1%;
    left: 0%;
    width: 50%;
    max-width: 180px;
    height: auto;
}

/* No1画像 */
.no1-image {
    position: absolute;
    bottom: 25%;
    left: 26%;
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
    width: 60%;
    max-width: 250px;
    height: auto;
    animation: no1Appear 1s ease-out 1.5s forwards; /* アニメーションを適用 */
}

/* 10800画像 */
.price-image {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    width: 100%;
    max-width: 470px;
    height: auto;
    animation: priceAppear 1.8s cubic-bezier(0.25, 2, 0.6, 3) 2.5s forwards; /* 反動を強調 */
}

/* TOPバナー画像ラッパー */
.banner-wrapper {
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #ffe065; /* 黄色い背景 */
    text-align: center; /* 画像を中央揃え */
    margin: 0;
    padding: 0;
    align-items: center;
}

/* TOPバナー画像 */
.top-banner {
    vertical-align: bottom; /* 行のベースラインによる余白を解消 */
    width: 100%;
    max-width: 500px;
    height: auto;
    opacity: 0; /* 初期状態で透明 */
    transform: translateY(50px); /* 初期位置を少し下に設定 */
    animation: fadeInUp 1.5s ease-out 1s forwards; /* 3秒後に開始 */
}

/* 下からふわっと現れるアニメーション */
@keyframes fadeInUp {
    0% {
        opacity: 0; /* 完全に透明 */
        transform: translateY(50px); /* 下に50px移動 */
    }
    100% {
        opacity: 1; /* 完全に表示 */
        transform: translateY(3px); /* 元の位置に移動 */
    }
}


/* No1画像の登場アニメーション */
@keyframes no1Appear {
    0% {
        transform: translateX(-50%) translateY(50px); /* 下から開始 */
        opacity: 0;
    }
    70% {
        transform: translateX(-50%) translateY(0); /* 元の位置に移動 */
        opacity: 0.8; /* 徐々に透明度を上げる */
    }
    100% {
        transform: translateX(-50%) translateY(0); /* 元の位置で静止 */
        opacity: 1;
    }
}

/* 10800画像の登場アニメーション */
@keyframes priceAppear {
    0% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
    70% {
        transform: translateX(-50%) scale(1.1); /* わずかに拡大 */
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1); /* 元のサイズに戻る */
        opacity: 1;
    }
}

/* hanako画像 */
.hanako-image {
    position: absolute;
    bottom: -60px; /* アプリ紹介文の下端に近づける */
    right: -20px; /* アプリ紹介文の右端に近づける */
    width: 220px; /* 適切なサイズ */
    height: auto;
    z-index: 2; /* 前面に表示 */
    animation: float 1.5s ease-in-out infinite; /* 上下にふわふわ動くアニメーション */
}

/* アプリ紹介文エリア */
.app-introduction {
    position: relative; /* hanako-imageを基準に配置 */
    text-align: center;
    padding: 20px;
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #fff9c4; /* 背景色（補助用） */
    background-image: url('img/background-1.jpg'); /* 背景画像を追加 */
    background-size: cover; /* 画像をコンテナに合わせる */
    background-position: center; /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像を繰り返さない */
    color: #444;
    line-height: 1.8;
}

/* 上下にふわふわ動くアニメーション */
@keyframes float {
    0%, 100% {
        transform: translateY(0); /* 初期位置 */
    }
    50% {
        transform: translateY(-10px); /* 少し上に移動 */
    }
}


/* Section 2 のスタイル */
.section-2 {
    position: relative; 
    text-align: center; /* 中央揃え */
}

.section-2-image {
    width: 100%; /* 幅を親要素に合わせる */
    max-width: 500px; /* 最大幅を設定 */
    height: auto; /* アスペクト比を維持 */
    opacity: 0; /* 初期状態で透明 */
    transform: translateY(50px); /* 初期状態で少し下に配置 */
    transition: opacity 1s ease-out, transform 1s ease-out; /* アニメーションを適用 */
}

/* ビューポートに入ったときのスタイル */
.section-2-image.show {
    opacity: 1; /* 表示 */
    transform: translateY(0); /* 元の位置に移動 */
}

/* Hanako2 画像のスタイル */
.hanako2-image {
    position: absolute;
    bottom: 2%;
    right: 3%; /* 右上あたりに配置 */
    width: 25%; /* スマホでもサイズ感が変わらないようにパーセントで指定 */
    max-width: 1000px; /* 最大サイズ */
    height: auto;
    z-index: 2; /* event-image よりも下のレイヤーに配置 */
    opacity: 0; /* 初期状態は非表示 */
    transform: translateY(30px); /* 初期状態で少し下に配置 */
    animation: hanakoAppear 1s ease-out forwards; /* アニメーション適用 */
    animation-delay: 1s; /* 遅延でふわっと現れる */
}

/* 下からふわっと現れるアニメーション */
@keyframes hanakoAppear {
    0% {
        opacity: 0;
        transform: translateY(80%); /* 初期位置 */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 元の位置 */
    }
}
/* Section 3 のスタイル */
.section-3 {
    position: relative; /* 子要素を絶対配置できるように基準を設定 */
    text-align: center;
}

.section-3-image {
    position: relative;
    z-index: 2; /* Hanako2 よりも上のレイヤーに配置 */
    width: 100%; /* 幅を親要素に合わせる */
    max-width: 500px; /* 最大幅を設定 */
    height: auto; /* アスペクト比を維持 */
    opacity: 0; /* 初期状態で透明 */
    transform: translateY(50px); /* 初期位置で下に移動 */
    transition: opacity 1s ease-out, transform 1s ease-out; /* アニメーション */
}

.event-image {
    position: absolute; /* 親要素に絶対配置 */
    bottom: -2%; /* 下端からの位置を調整 */
    left: 50%; /* 水平中央揃え */
    transform: translateX(-50%); /* 左右の中央揃え */
    width: 90%; /* デバイス幅の90%を基準に調整 */
    max-width: 400px; /* 最大幅を設定 */
    height: auto; /* アスペクト比を維持 */
    z-index: 4; /* section-3-imageの上に配置 */
    opacity: 1; /* 表示を確実に */
    transition: all 0.3s ease; /* スムーズなアニメーションを設定 */
    animation: bounce 2s infinite ease-in-out; /* アニメーションを追加 */
}


/* ビューポートに入ったときに表示 */
.section-3 .section-3-image.show + .event-image {
    opacity: 1; /* 表示 */
}

/* 揺れるアニメーション */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0); /* 元の位置 */
    }
    50% {
        transform: translateX(-50%) translateY(-20px); /* 少し上に移動 */
    }
}


/* ビューポートに入ったときのスタイル */
.section-3-image.show {
    opacity: 1; /* 表示 */
    transform: translateY(0); /* 元の位置に移動 */
}

.section-4 {
    margin-top: 0; /* 上余白を削除 */
    margin-bottom: 0; /* 下余白を削除 */
    padding-top: 0; /* 上パディングを削除 */
    padding-bottom: 0; /* 下パディングを削除 */
}


.section-5 {
    padding: 40px 20px;
    background-color: #ffffff; /* 明るい背景色 */
    text-align: center;
}

.faq-title {
    font-size: 1.8rem;
    font-family: 'Kosugi Maru', sans-serif;
    color: #ff7ba7; /* 明るいピンクで目立たせる */
    text-align: center;
    margin-bottom: 20px;
}

.accordion {
    max-width: 500px;
    margin: 0 auto;
    text-align: left; /* 左揃えに設定 */
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-question {
    width: 100%;
    background-color: rgb(255, 241, 159);
    color: #662714;
    font-size: 1.2rem;
    text-align: left;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-family: 'Kosugi Maru', sans-serif;
    outline: none;
    transition: background-color 0.3s ease;
}

.accordion-question:hover {
    background-color: #ffe15d;
}

/* アコーディオン回答の初期スタイル */
.accordion-answer {
    max-height: 0; /* 初期状態で非表示 */
    overflow: hidden; /* コンテンツが見切れないようにする */
    background-color: #f9f9f9;
    padding: 0 15px; /* 初期状態では余白をなくす */
    font-size: 1rem;
    font-family: 'Kosugi Maru', sans-serif;
    color: #444;
    border-top: 1px solid #ddd;
    transition: max-height 0.4s ease, padding 0.4s ease; /* スムーズな開閉アニメーション */
}

/* 回答が開かれたときのスタイル */
.accordion-answer.open {
    max-height: 1000px; /* 必要な高さに調整 */
    padding: 15px; /* 開いた状態で余白を表示 */
    overflow: visible; /* 回答が見切れないようにする */
}


/* お問い合わせフォーム全体のスタイル */
.contact-form {
    background-color: #ffeef5; /* 背景色 */
    padding: 80px 30px;
    margin: auto;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* お問い合わせタイトル */
.contact-title {
    font-size: 1.8rem;
    font-family: 'Kosugi Maru', sans-serif;
    color: #ff6f9f;
    margin-bottom: 20px;
    text-align: center;
}

/* 各フォームグループ */
.form-group {
    margin-bottom: 20px;
}

/* ラベル */
.form-group label {
    display: block;
    font-size: 1rem;
    font-family: 'Kosugi Maru', sans-serif;
    color: #444;
    margin-bottom: 8px;
}

/* 入力フィールド */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ffb6c7;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Kosugi Maru', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* フォーカス時のスタイル */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff4081;
    box-shadow: 0 0 5px rgba(255, 64, 129, 0.5);
    outline: none;
}

/* 送信ボタン */
.submit-button {
    width: 100%;
    padding: 10px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #ff6196;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Kosugi Maru', sans-serif;
    transition: background-color 0.3s ease;
}

/* ホバー時のボタン */
.submit-button:hover {
    background-color: #ff91b6;
}



/* フッター */
.footer {
    text-align: center;
    padding: 25px 0;
    padding-bottom: 60px;
    background-color: #979797;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-link:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media screen and (max-width: 500px) {
    .container {
        width: 100%;
    }
    .logo-image {
        width: 40%;
        max-width: 180px;
    }
    .no1-image {
        width: 60%;
        max-width: 270px;
    }
    .price-image {
        width: 100%;
        max-width: 500px;
    }
    .top-banner {
        width: 100%;
        max-width: 500px;
    }
    .subtitle-image {
        width: 100%; /* 小さい画面では幅を広げる */
    }
}

/* お問い合わせフォームスタイル */
.contact-form {
    max-width: 500px;
    text-align: left;
    font-family: 'Kosugi Maru', sans-serif;
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.contact-form-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-form-group label {
    font-size: 1rem;
    color: #555555;
}

.contact-form-group input,
.contact-form-group textarea {
    resize: none;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ffcbf0;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #ff69b4;
    outline: none;
}

.contact-submit-button {
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #ff69b4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.contact-submit-button:hover {
    background-color: #ff85c1;
}

/* ポップアップとオーバーレイのスタイル */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.contact-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.contact-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: 'Kosugi Maru', sans-serif;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.contact-popup p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    max-width: 100%; /* 横幅の制限 */
    white-space: nowrap; /* 改行を防止 */
    overflow: hidden; /* 内容が溢れた場合に隠す */
    text-overflow: ellipsis; /* テキストが溢れた場合に「...」を表示 */
    margin: 15px auto;
}


.contact-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.contact-popup.hidden {
    display: none;
}

.contact-popup-close {
    margin-top: 20px;
    padding: 8px 16px;
    font-size: 1rem;
    background-color: #ff69b4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-popup-close:hover {
    background-color: #ff85c1;
}


/* オーバーレイのスタイル */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 背景を半透明の黒に設定 */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999; /* ポップアップの直下に表示 */
    pointer-events: auto; /* 常にクリック可能 */
}

/* オーバーレイが表示されている状態 */
.overlay.show {
    opacity: 1;
    pointer-events: auto; /* 表示状態でクリック有効 */
}

/* ローディングオーバーレイ */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 背景を暗くする */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

/* スピナー */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #ff69b4; /* カラーをお好みで調整 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* スピナーアニメーション */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 隠れた状態 */
.hidden {
    display: none;
}

/* ポップアップが表示されるとき */
.contact-popup.show {
    opacity: 1;
    visibility: visible;
}

.contact-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.show {
    display: block;
}

.hidden {
    display: none;
}

/*banner*/

.fixed-banner {
    position: fixed;
    top: 0; /* 上端に固定 */
    left: 0;
    width: 100%;
    padding-top: 0%;
    z-index: 900; /* 他の要素より前面に表示 */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6); /* 背景色を白にし、不透明度を80%に設定 */
}

.fixed-banner img {
    width: 100%; /* 横幅を100%に設定 */
    max-width: 500px; /* 最大幅を指定 */
    height: auto; /* 高さを自動調整 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバー時のトランジション */
}

/* バナーのスタイル */
.fixed-banner img {
    width: 100%;
    max-width: 500px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバー時のトランジション */
}

/* ホバー時に拡大 */
.fixed-banner img:hover {
    transform: scale(1.05); /* 少し拡大 */
    cursor: pointer; /* ホバー時にカーソルを指の形に変更 */
}

/* クリック時に沈む */
.fixed-banner img:active {
    transform: scale(1); /* 少し縮小 */
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* クリック時は短いアニメーション */
}

/* ポップアップのスタイル */
.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff; /* 優しいアイボリーカラー */
    border: 2px solid #ffb6c1; /* 柔らかいピンクの境界線 */
    border-radius: 15px; /* 角丸 */
    box-shadow: 0 8px 20px rgba(255, 143, 195, 0.151); /* 柔らかい影 */
    padding: 20px;
    z-index: 2000;
    text-align: center;
    width: 80%;
    max-width: 400px;
    box-sizing: border-box;
    font-family: 'Kosugi Maru', sans-serif; /* 丸みのあるかわいいフォント */
}

/* 非表示時 */
.custom-popup.hidden {
    display: none;
}

/* 閉じるボタン */
.custom-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ff69b4; /* 明るいピンク */
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, color 0.3s ease;
}

.custom-popup-close:hover {
    color: #ff1493; /* 濃いピンク */
    transform: scale(1.2); /* 少し拡大 */
}

/* 質問のテキスト */
.popup-message {
    font-size: 1rem;
    color: #333;
    margin: 15px;
}

/* ボタンラッパー */
.popup-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ボタン */
.popup-button {
    background-color: #ff69b4; /* 指定された色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px; /* 丸みを強調 */
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 影を追加 */
}

.popup-button:hover {
    background-color: #ff1493; /* 濃いピンク */
    transform: scale(1.05); /* 少し拡大 */
}

/* 新しい背景オーバーレイ */
.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    z-index: 1999; /* ポップアップの背面に配置 */
    display: none; /* 初期状態は非表示 */
}

/* 表示時のスタイル */
.custom-overlay.show {
    display: block;
}

/* 追加のポップアップスタイル */
.popup-image {
    width: 100%;
    max-width: 120%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Androidポップアップスタイル */
#androidPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 2000;
    text-align: center;
    width: 80%;
    max-width: 400px;
    max-height: 80%; /* 高さを制限 */
    overflow-y: auto; /* 縦方向のスクロールを有効化 */
    box-sizing: border-box;
    font-family: 'Kosugi Maru', sans-serif;
}

/* 画像スタイル */
.popup-image {
    width: 100%; /* ポップアップ幅に収まるように調整 */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* スクロールバーのカスタムスタイル */
#androidPopup::-webkit-scrollbar {
    width: 10px; /* スクロールバーの幅 */
}

#androidPopup::-webkit-scrollbar-thumb {
    background-color: #ffa3d1; /* スクロールバーのつまみの色 */
    border-radius: 5px; /* 丸みを付ける */
    border: 2px solid #fff; /* スクロールバーつまみの外側の白い境界線 */
}

#androidPopup::-webkit-scrollbar-thumb:hover {
    background-color: #ff69b4; /* ホバー時の色 */
}

#androidPopup::-webkit-scrollbar-track {
    background-color: transparent; /* トラック部分を透明に */
    border-radius: 5px; /* トラック部分の丸み */
}

/* インストールボタンのラッパースタイル */
.install-button-wrapper {
    text-align: center;
    padding: 20px; /* ボタン周囲の内側余白 */
    background-color: #ffeef5; /* お問い合わせフォームと同じ背景色 */
    border-radius: 10px; /* 柔らかな角丸デザイン */
}

/* インストールボタン */
.install-button {
    width: 80%; /* 親コンテナ幅の80%に設定 */
    max-width: 400px; /* 最大幅を400pxに設定 */
    padding-top: 2%;
    height: auto; /* アスペクト比を維持 */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバー時のエフェクト */
}

/* ホバー時に拡大 */
.install-button:hover {
    transform: scale(1.05); /* 少し拡大 */
}