/* Chat modal and bubbles */

/* グローバルフォント設定 */
* {
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, Osaka, "MS PGothic", arial, helvetica, sans-serif;
}

/* ビューポート設定 */
@viewport {
    width: device-width;
    initial-scale: 1.0;
    maximum-scale: 1.0;
    user-scalable: no;
}

/* ローディングオーバーレイ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ローディング中のbodyスタイル */
body.loading-active {
    overflow: hidden;
}

/* 全画面背景オーバーレイ */
.chat-background-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9997;
    background: rgba(255, 255, 255);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-background-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 背景ロゴ画像 */
.chat-background-logo {
    max-width: 600px;
    max-height: 600px;
    width: auto;
    height: auto;
}

/* モバイル対応：背景ロゴのサイズ調整 */
@media (max-width: 768px) {
    .chat-background-logo {
        max-width: 80vw;
        max-height: 80vh;
    }
}

.chat-modal{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100vw;
    height:100vh;
    z-index:9998;
    background:#fff;
    border-radius:0;
    box-shadow:none;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    transform:translateY(100vh);
    transition:transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 1s;
    pointer-events:none;
    backdrop-filter: blur(0px);
}

/* チャットボットが開いているときの背景スクロール禁止 */
body.chat-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.chat-modal.is-open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    transition:transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0s;
    pointer-events:auto;
    backdrop-filter: blur(0px);
}

.chat-modal__header{
	display:flex;
	align-items:center;
	justify-content:space-between;
	padding: 2px 10px;
	background:rgb(234, 84, 41);
	color:#fff;
	font-weight:700;
	position: relative;
}

.chat-modal__header-logo {
	width: 120px;
	height: auto;
	flex-shrink: 0;
}

.chat-modal__title{
	font-size:14px;
	text-align:center;
	flex: 1;
	margin: 0 20px;
	margin-left: -10%;
}

/* モバイル対応：ヘッダーの調整 */
@media (max-width: 768px) {
    .chat-modal__header {
        padding: 8px 12px;
    }
    
    .chat-modal__header-logo {
        width: 80px;
    }
    
    .chat-modal__title {
        font-size: 12px;
        margin: 0 10px;
        margin-left: -5%;
        line-height: 1.3;
    }
}

.chat-modal__close{cursor:pointer;opacity:.9;}

.chat-modal__sub-header{
    height: 30px;
    background:#f5f7ff;
    border-bottom:1px solid #e6e8ef;
}

/* モバイル対応：サブヘッダーの調整 */
@media (max-width: 768px) {
    .chat-modal__sub-header {
        height: 35px;
    }
}

.progress{
    position:relative;
    width:100%;
    height:100%;
    background:#e9ecf5;
    /* border-radius:999px; */
    overflow:hidden;
}
.progress__bar{
    position:absolute;
    left:0;
    top:0;
    height:100%;
    width:16%;
    background:#f9bf2c;
    transition:width .4s ease;
    border-top:1px solid #ffffff;
}
.progress__label{
    position:absolute;
    font-size: 15px !important;
    margin-left: 2%;
    left:8px;
    top:50%;
    transform:translateY(-50%);
    color:#1f2a44;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
    pointer-events:none;
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, Osaka, "MS PGothic", arial, helvetica, sans-serif;
}

/* モバイル対応：プログレスラベルの調整 */
@media (max-width: 768px) {
    .progress__label {
        font-size: 13px !important;
        left: 10px;
    }
}

.progress__label .remaining-count{
    color:#d93025;
    font-weight:700;
}

.chat-modal__body{
    height:calc(100% - 150px);
    overflow:auto;
    background:#f7f8fa;
    padding:16px;
    padding-bottom:80px;
}

/* モバイル対応：ボディの調整 */
@media (max-width: 768px) {
    .chat-modal__body {
        height: calc(100% - 200px);
        padding: 12px;
        padding-bottom: 70px;
    }
}

/* Chat stream container: 70% width and centered */
.chat-stream{
    width:45%;
    margin:0 auto 5% auto;
}

/* モバイル対応：チャットストリームの調整 */
@media (max-width: 768px) {
    .chat-stream {
        width: 95%;
        margin: 0 auto 3% auto;
    }
}

.bubble{
    max-width:100%;
    margin:7px 0;
    padding:10px 12px;
    border-radius:12px;
    line-height:1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: bubbleSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes bubbleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bubbleSlideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.bubble--intro{
    display:block;
    width:fit-content;
    max-width:85%;
    text-align:left;
    background:rgb(238, 238, 238);
    border:1px solid #e6e8ef;
    color:#111;
    font-size: 16px;
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, Osaka, "MS PGothic", arial, helvetica, sans-serif;
}

/* モバイル対応：バブルの調整 */
@media (max-width: 768px) {
    .bubble {
        padding: 12px 14px;
        margin: 8px 0;
    }
    
    .bubble--intro {
        font-size: 15px;
        line-height: 1.5;
    }
}

.bubble--bot{
    background:#ffffff;
    border:1px solid #e6e8ef;
    color:#111;
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgb(249, 191, 44);
    font-size: 14px;
    box-shadow: 1px 1px 5px 0 rgba(20, 20, 20, .2);
}

/* モバイル対応：ボットバブルの調整 */
@media (max-width: 768px) {
    .bubble--bot {
        font-size: 15px;
        width: 90%;
    }
}

.bubble--user{background:#2b7cff;color:#fff;margin-left:auto;}

.bubble__fields{margin-top:8px;}
.bubble__field{margin:6px 0;}
.bubble__error{color:#d93025;font-size:12px;margin-top:4px;}

/* モバイル対応：フィールドの調整 */
@media (max-width: 768px) {
    .bubble__fields {
        margin-top: 10px;
    }
    
    .bubble__field {
        margin: 8px 0;
    }
    
    .bubble__error {
        font-size: 11px;
        margin-top: 6px;
    }
}

/* Intro bubble container with icon outside */
.bubble--intro-container{
    display:flex;
    align-items:flex-start;
    gap:12px;
    width:fit-content;
    max-width:95%;
    opacity: 0;
    transform: translateX(-20px);
    animation: bubbleSlideInLeft 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
/* コンテナ内のバブルは基底アニメーションを無効化して親に同期 */
.bubble--intro-container .bubble{
    opacity: 1;
    transform: none;
    animation: none;
}

/* モバイル対応：イントロコンテナの調整 */
@media (max-width: 768px) {
    .bubble--intro-container {
        gap: 8px;
        max-width: 98%;
    }
}

.bubble--intro__icon{
    flex-shrink:0;
    width:32px;
    height:32px;
    border-radius:50%;
    overflow:hidden;
    padding-top:10px;
}

.bubble--intro__icon img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* モバイル対応：アイコンの調整 */
@media (max-width: 768px) {
    .bubble--intro__icon {
        width: 28px;
        height: 28px;
        padding-top: 8px;
    }
}


/* モバイル対応：イントロバブルの調整 */
@media (max-width: 768px) {
    .bubble--intro {
        max-width: 90%;
    }
}

/* 初期画像のスタイル */
.bubble--image{
    text-align:center;
    background:transparent;
    border:none;
    padding:0;
    width:100%;
    height:auto;
}

.bubble--image .initial-image{
    width:100%;
    height:auto;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.initial-message-notice{
    font-size: 10px;
}

/* モバイル対応：初期メッセージの調整 */
@media (max-width: 768px) {
    .initial-message-notice {
        font-size: 9px;
    }
}

select,input{
    width: 98%;
    border-radius: 4px;
    border: 1px solid rgb(249, 191, 44);
    /* font-size: 14px; */
    font-size: 19px;
    height: 48px !important;
    border-radius: 3px;
    background-color: #FFF8EA;
    padding-left: 10px;
    box-sizing: border-box;
}

/* モバイル対応：入力フィールドの調整 */
@media (max-width: 768px) {
    select, input {
        width: 100%;
        font-size: 16px; /* iOSでズームを防ぐ */
        height: 44px !important; /* タッチターゲットの最小サイズ */
        padding-left: 12px;
        border-radius: 6px;
    }
}

/* 生年月日セレクトボックスを横並びにする */
.bubble__field--birthday {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bubble__field--birthday select {
    flex: 1;
    width: auto;
}

.bubble__field--birthday label {
    margin: 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

/* モバイル対応：生年月日フィールドの調整 */
@media (max-width: 768px) {
    .bubble__field--birthday {
        gap: 6px;
    }
    
    .bubble__field--birthday select {
        font-size: 16px;
        height: 44px !important;
    }
    
    .bubble__field--birthday label {
        font-size: 13px;
    }
}

.next_btn{
    font-size: 18px;
    color: #fff;
    padding: 10px 50px;
    height: auto;
    border-radius: 60px;
    width: 100%;
    max-width: 100%;
    font-weight: bold;
    border: 1px solid #fff;
    background-image: linear-gradient(70deg, #ea5429 45%, #fff 50%, #ea5429 55%);
    background-size: 600% 100%;
    animation: shine 4s infinite !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next_btn:disabled,
.next_btn.answered{
    opacity: 0.6;
    /* cursor: pointer;
    animation: none !important;
    background-image: linear-gradient(70deg, #ccc 45%, #fff 50%, #ccc 55%); */
}

/* モバイル対応：次へボタンの調整 */
@media (max-width: 768px) {
    .next_btn {
        font-size: 16px;
        padding: 12px 30px;
        height: 48px !important; /* タッチターゲットの最小サイズ */
        border-radius: 24px;
        min-height: 44px; /* タッチターゲットの最小サイズ */
    }
}

/* 確認画面のスタイル */
.bubble--confirmation {
    background: #f8f9fa;
    border: 1px solid rgb(249, 191, 44);
}

.confirmation-content {
    margin-bottom: 16px;
}

.confirmation-list {
    background:#ffffff;
    border:1px solid #e6e8ef;
    color:#111;
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgb(249, 191, 44);
    font-size: 14px;
    box-shadow: 1px 1px 5px 0 rgba(20, 20, 20, .2);
    padding: 0;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-label {
    font-weight: bold;
    color: #333;
    min-width: 120px;
}

.confirmation-value {
    color: #666;
    text-align: right;
    flex: 1;
    margin-left: 16px;
}

/* モバイル対応：確認画面の調整 */
@media (max-width: 768px) {
    .confirmation-content {
        margin-bottom: 12px;
    }
    
    .confirmation-list {
        font-size: 13px;
    }
    
    .confirmation-item {
        padding: 10px 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .confirmation-label {
        min-width: auto;
        margin-bottom: 4px;
        font-size: 12px;
    }
    
    .confirmation-value {
        text-align: left;
        margin-left: 0;
        font-size: 13px;
    }
}

/* ニュースレター登録チェックボックス */
.newsletter-container {
    display: flex;
    align-items: center;
    padding: 5px 12px 5px 12px;
}

.newsletter-checkbox {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 21px !important;
    height: 22px !important;
    border: 2px solid #f9bf2c;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
    box-shadow: 0px 0px 0px 1px rgb(255 0 47 / 10%);
    transition: all 0.2s ease;
    box-sizing: border-box;
    padding: 0;
    flex-shrink: 0;
}

.newsletter-checkbox:checked {
    background: white;
    border-color: #f9bf2c;
}

.newsletter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 4px;
    border-left: 3px solid #ff002f;
    border-bottom: 3px solid #ff002f;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.newsletter-label {
    margin: 0;
    color: #000000;
    font-size: 13px;
    cursor: pointer;
    flex: 1;
}

/* モバイル対応：ニュースレターチェックボックスの調整 */
@media (max-width: 768px) {
    .newsletter-container {
        padding: 8px 12px;
    }
    
    .newsletter-checkbox {
        width: 24px !important;
        height: 24px !important;
        margin-right: 10px;
    }
    
    .newsletter-label {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* 確認メッセージ */
.confirmation-message {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

/* モバイル対応：確認メッセージの調整 */
@media (max-width: 768px) {
    .confirmation-message {
        font-size: 15px;
    }
}

.submit_btn {
    font-size: 18px;
    color: #fff;
    padding: 10px 50px;
    height: auto;
    border-radius: 60px;
    width: 100%;
    max-width: 100%;
    font-weight: bold;
    border: 1px solid #28a745;
    background: #28a745;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit_btn:hover {
    background: #218838;
}

.submit_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* モバイル対応：送信ボタンの調整 */
@media (max-width: 768px) {
    .submit_btn {
        font-size: 16px;
        padding: 12px 30px;
        height: 48px !important;
        border-radius: 24px;
        min-height: 44px;
    }
}

/* .back_btn {
    font-size: 18px;
    color: #666;
    padding: 10px 50px;
    height: auto;
    border-radius: 60px;
    width: 100%;
    max-width: 100%;
    font-weight: bold;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back_btn:hover {
    background: #f8f9fa;
} */

.chat-modal__footer{
    padding:10px;
    border-top:1px solid #e6e8ef;
    background:#fff;
}

/* モバイル対応：フッターの調整 */
@media (max-width: 768px) {
    .chat-modal__footer {
        padding: 12px;
    }
}

.chat-modal__main__footer{
    padding:12px 16px 12px 16px;
    border-top:1px solid #e6e8ef;
    background: rgb(128, 128, 128);
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    z-index:10;
}

/* モバイル対応：メインフッターの調整 */
@media (max-width: 768px) {
    .chat-modal__main__footer {
        padding: 10px 12px;
    }
}

.chat-modal__footer-content{
    max-width:100%;
}

.chat-modal__footer-info{
    font-size:11px;
    line-height:1.4;
    color:#ffffff;
    text-align:left;
}

.chat-modal__footer-company,
.chat-modal__footer-address,
.chat-modal__footer-contact{
    margin-bottom:2px;
    font-size:9px;
}

/* モバイル対応：フッター情報の調整 */
@media (max-width: 768px) {
    .chat-modal__footer-info {
        font-size: 10px;
    }
    
    .chat-modal__footer-company,
    .chat-modal__footer-address,
    .chat-modal__footer-contact {
        font-size: 8px;
        margin-bottom: 3px;
    }
}

.chat-modal__actions{display:flex;gap:8px;flex-direction:column;}
.btn{appearance:none;border:0;border-radius:8px;padding:10px 12px;font-weight:700;cursor:pointer;}
.btn--primary{background:#2b7cff;color:#fff;}
.btn--secondary{background:#eef2ff;color:#1f2a44;}

.loading{
	display:inline-block;width:18px;height:18px;border:2px solid #fff;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite;
}

@keyframes spin{to{transform:rotate(360deg)}}

/* 初期メッセージのスタイル */
/* .initial-message {

    font-size: 15px;
} */

.initial-message h5 {
    font-size: 10px;
}

.initial-message br {
    display: block;
}

/* ステップイントロのスタイル */
.step-intro strong {
    font-weight: 700;
}

/* エラーと成功時のバブルスタイル */
.bubble--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* .bubble--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
} */

/* 再送信ボタン */
.retry-btn {
    font-size: 16px;
    color: #fff;
    padding: 12px 30px;
    height: auto;
    border-radius: 30px;
    font-weight: bold;
    border: 1px solid #dc3545;
    background: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.retry-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* モバイル対応：再送信ボタンの調整 */
@media (max-width: 768px) {
    .retry-btn {
        font-size: 15px;
        padding: 14px 25px;
        height: 44px !important;
        border-radius: 22px;
        margin-top: 12px;
    }
}

.change-notice{
    font-size: 13px;
    margin-top: 5px;
}

/* モバイル対応：変更通知の調整 */
@media (max-width: 768px) {
    .change-notice {
        font-size: 12px;
        margin-top: 8px;
    }
}

/* ギフト券プレゼント条件関連のスタイル */
.present-notice-link {
    display: inline-block;
    margin-top: 8px;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    color: #000000;
}

.present-notice-link:hover {
    color: #000000;
}

.present-notice-container {
    display: none;
    max-height: 220px;
    overflow-y: auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 14px 16px;
    margin-top: 8px;
    font-size: 13px;
    color: #333;
    border-radius: 6px;
}

.policy-notice {
    margin-top: 12px;
    font-size: 13px;
}

.privacy-policy-link {
    text-decoration: underline;
    color: #000000;
}

.privacy-policy-link:hover {
    text-decoration: underline;
    color: #000000;
}

.present-condition-text {
    color: red;
}

/* モバイル対応：ギフト券関連の調整 */
@media (max-width: 768px) {
    .present-notice-link {
        font-size: 12px;
        margin-top: 10px;
        padding: 8px 0;
    }
    
    .present-notice-container {
        max-height: 180px;
        padding: 12px 14px;
        margin-top: 10px;
        font-size: 12px;
    }
    
    .policy-notice {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.4;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-stream {
        width: 70%;
    }
    
    .chat-modal__title {
        font-size: 13px;
        margin-left: -8%;
    }
    
    .bubble {
        padding: 11px 13px;
    }
    
    .next_btn,
    .submit_btn {
        font-size: 17px;
        padding: 11px 40px;
        height: 46px !important;
    }
}

/* 大きな画面対応 */
@media (min-width: 1025px) {
    .chat-stream {
        width: 40%;
    }
}

/* タッチデバイス用のホバー効果無効化 */
@media (hover: none) and (pointer: coarse) {
    .next_btn:hover,
    .submit_btn:hover,
    .retry-btn:hover {
        background-image: inherit;
        background: inherit;
    }
}

/* アニメーション効果の最適化（低スペックデバイス用） */
@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .next_btn {
        animation: none !important;
    }
    
    .chat-modal {
        transition: none;
    }
    
    .progress__bar {
        transition: none;
    }
}

/* ギフト券プレゼント条件のスタイル */

/* .lp02-contact-img-dev {
    margin: 0 auto;
    width: 740px;
}

#contact div.ttl {
    margin-bottom: 10px !important;
} */
.present_caution{
    margin: 15px auto 0;
    text-align: center;
}
.present_caution button {
    color: inherit;
    font-family: inherit;
    -webkit-appearance: button;
}
.present_caution .popup {
    background: transparent;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #000;
    font-size: 108%;
    font-weight: 500;
    line-height: 1.1em;
}
.present_caution p{
    text-align: center;
    line-height: 1.6em;
}
.pp-box {
    opacity: 0;
    visibility: hidden;
}
.pp-box.open {
    opacity: 1;
    visibility: visible;
    position: fixed;
    z-index: 9997;
    width: 100%;
    height: 100vh;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.pp-box.open .pp-overlay {
    position: relative;
    z-index: 9998;
    background: rgba(0, 0, 0, .6);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pp-box.open .pp-contents {
    padding: 70px 30px 30px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    height: 90vh;
    background: #fff;
    position: relative;
    z-index: 9999;
    overflow: auto;
    font-size: 16px;
    box-sizing: border-box;
    /*font-weight: bold;*/
}

/* スマホ対応・レスポンシブ対応 */
@media (max-width: 768px) {
    .pp-box.open .pp-contents {
        padding: 60px 15px 20px;
        max-width: 95%;
        height: 95vh;
        font-size: 14px;
    }
    
    .pp-close {
        font-size: 24px;
        padding: 15px;
    }
    
    .pp-contents h3 {
        font-size: 1.1rem;
        margin-top: 1.2rem;
    }
    
    .pp-contents ol.benefit1 li,
    .pp-contents ol.benefit2 li {
        margin-left: 1.5em;
        margin-top: 0.4em;
    }
    
    .pp-contents ol.benefit1 li ul li,
    .pp-contents ol.benefit2 li ul li,
    .pp-contents ul.remark li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .present_caution .popup {
        font-size: 100%;
    }
    
    .present_caution p {
        line-height: 1.5em;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pp-box.open .pp-contents {
        padding: 50px 10px 15px;
        max-width: 98%;
        height: 98vh;
        font-size: 13px;
    }
    
    .pp-close {
        font-size: 20px;
        padding: 10px;
    }
    
    .pp-contents h3 {
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .pp-contents ol.benefit1 li,
    .pp-contents ol.benefit2 li {
        margin-left: 1.2em;
        margin-top: 0.3em;
    }
    
    .present_caution .popup {
        font-size: 95%;
    }
    
    .present_caution p {
        line-height: 1.4em;
        font-size: 13px;
    }
}
.pp-contents ol.benefit1 li {
    list-style-type: decimal;
    margin-left: 2em;
    margin-top: .5em;
}
.pp-contents ol.benefit1 li ul li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    display: flex;
}
.pp-contents ol.benefit1 li ol {
    margin-top: 0.1rem;
}
.pp-contents ol.benefit1 li ol li {
    list-style-type: upper-alpha;
    margin-left: 1.4em;
    margin-top: .5em;
}
.pp-contents ul.remark li {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    display: flex;
}
.pp-contents ol.benefit2 li {
    list-style-type: upper-alpha;
    margin-left: 2em;
    margin-top: .5em;
}
.pp-contents ol.benefit2 li ul li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    display: flex;
}
.pp-scroll {
    overflow: auto;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}
@media(max-width:750px) {
.pp-scroll {
    max-width: initial;
    padding: 70px 10px 15px;
    padding: 0 10px;
}
}

/* 既存のスマホ対応を統合・改善 */
@media (max-width: 768px) {
    .lp02-contact-img-dev {
        margin: 0 auto;
        margin-top: 30px;
        width: auto;
    }
    #contact div.ttl {
        margin-bottom: 10px !important;
    }

    .pp-box span{
        margin: 0;
    }

    .benefit1{
        margin-left: 0;
        padding-left:5px
    }

    .condition{
        margin-left: 0;
        padding-left:5px
    }
    .comment{
        margin-left: 0;
        padding-left:5px
    }
    
    /* スクロールエリアの改善 */
    .pp-scroll {
        padding: 0 10px;
    }
}
.pp-scroll::-webkit-scrollbar {
width: 5px;
}
.pp-scroll::-webkit-scrollbar-track {
background-color: #ccc;
}
.pp-scroll::-webkit-scrollbar-thumb {
background-color: #472d26;
}
.pp-contents ol.benefit1 li ul.comment li:before {
    content: "※";
    margin-right: 0.3em;
}
.pp-contents ol.benefit1 li ul.others li:before {
    content: "・";
    margin-right: 0.3em;
}
.pp-contents ul.remark li:before {
    content: "※";
    margin-right: 0.3em;
}
.pp-contents ol.benefit2 li ul li:before {
    content: "※";
    margin-right: 0.3em;
}
.pp-close {
    position: absolute;
    z-index: 9999;
    right: 0;
    top: 0;
    font-size: 30px;
    color: #000;
    padding: 20px;
    cursor: pointer;
    line-height: 1;
}
.pp-contents h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}
.pp-contents ol:has(+p) {
    margin-bottom: .20rem;
}
.pp-contents ol {
    margin-top: .40rem;
}
.pp-contents ul.remark:has(+p) {
    margin-bottom: .20rem;
}
.pp-contents ul.remark {
    margin-top: 1rem;
}
.red {
    color: #ff0000;
}
.txt-bold {
    font-weight: 700;
}
/* 重複を削除 - 上記のメディアクエリに統合済み */
