

/* === 根本的レイアウト修正 START === */
html, body {
    width: 100%;
    height: 100%;
    /* ★これが最重要。htmlレベルでスクロールを完全に禁止 */
    overflow: hidden;
    margin: 0;
    padding: 0;
}
/* === 根本的レイアウト修正 END === */

body {
    font-family: 'Shippori Mincho', serif;
    background-color: #000;
    color: #e0e0e0;
    line-height: 1.6;
}

/* PC表示時の行間調整 */
@media (min-width: 768px) {
    .section p {
        line-height: 1.8;
    }
}

/* スマホ表示時の最適化 */
@media (max-width: 767px) {
    .section p {
        font-size: 1.5rem !important;
        line-height: 1.6;
    }
    
    .section p.text-4xl {
        font-size: 2rem !important;
    }
    
    .section h1.brush-text {
        font-size: 3rem !important;
    }

    .section h2 {
        font-size: 1.8rem !important;
    }

    .desktop-break {
        display: none !important;
    }
    
    .mobile-break {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .mobile-break {
        display: none !important;
    }
    
    .desktop-break {
        display: block !important;
    }
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    margin: 0;
    overflow: hidden;
}

/* 削除：重複したスマホ用設定 */

.section.active {
    opacity: 1;
    visibility: visible;
}

.section.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: elegantEnter 0.8s ease-out forwards;
}

@keyframes elegantEnter {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textTrace {
    0% {
        opacity: 0;
        text-shadow: 0 0 0 transparent;
        transform: translateY(10px);
    }
    50% {
        text-shadow: 0 0 10px rgba(235, 199, 60, 0.5);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(235, 199, 60, 0.3);
        transform: translateY(0);
    }
}

.animated-text {
    animation: textTrace 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.active .animated-text {
    animation: textTrace 0.6s ease-out 0.1s forwards;
}

/* 動画風テキストアニメーション */
.video-style-text {
    perspective: 1000px;
}

/* 高級感のあるテキストスタイル */
.luxury-text {
    perspective: 1000px;
    letter-spacing: 0.1em;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* エレガントなフェード効果 */
.elegant-fade {
    opacity: 1;
    animation: simpleFade 1s ease-out;
}

@keyframes simpleFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 遅延表示ボタン */
.delayed-button {
    opacity: 0;
    animation: textTrace 0.3s ease-out 0.5s forwards;
}

.text-gold {
    color: #ebc73c;
}

.brush-text {
    width: 400px;
    height: 150px;
    background-image: url('assets/trimmed-brush-text.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    text-indent: -9999px;
    overflow: hidden;
    margin: 0 auto;
    display: block;
}

/* 強力なFlexbox中央配置 */
.brush-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* セクション内のコンテンツコンテナ */
.section > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* スマホ用サイズ調整（ボタン幅と同等サイズに拡大） */
@media (max-width: 767px) {
    .brush-text {
        width: 350px !important;
        height: 130px !important;
        max-width: 350px !important;
    }
}

@media (min-width: 768px) {
    .brush-text {
        width: 500px;
        height: 200px;
    }
}

.scroll-hint {
    position: fixed;
    bottom: 80px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50px;
    height: 50px;
    cursor: pointer;
    animation: elegantFloat 2.5s ease-in-out infinite;
    opacity: 0.3;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.scroll-hint.hidden {
    opacity: 0;
    visibility: hidden;
}

/* スマホ・タブレットでのスクロールヒント位置調整 */
@media (max-width: 1024px) {
    .scroll-hint {
        bottom: 70px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 767px) {
    .scroll-hint {
        bottom: 120px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 40px;
        height: 40px;
    }
}

.scroll-icon {
    position: relative;
    width: 20px;
    height: 16px;
}

/* 上のシェブロン */
.scroll-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) rotate(-45deg);
    border-radius: 1px;
}

/* 下のシェブロン */
.scroll-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    transform: translateX(-50%) rotate(-45deg);
    border-radius: 1px;
}

@keyframes elegantFloat {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-10px); 
        opacity: 0.7; 
    }
}

/* 法的情報のスタイル */
.legal-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #666;
    font-size: 0.7rem;
    padding: 8px 0;
    text-align: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #888;
    text-decoration: none;
}

.legal-links a.provider-link {
    transition: color 0.2s;
}

.legal-links a.provider-link:hover {
    color: #ebc73c;
}

.disclaimer {
    margin-top: 5px;
    font-size: 0.65rem;
    color: #888;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .legal-info {
        font-size: 0.6rem;
    }
    
    .legal-links {
        gap: 10px;
    }
    
    .disclaimer {
        font-size: 0.6rem;
    }
    
    .gold-button {
        margin-bottom: 4rem !important;
    }
}

.gold-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #ffc107 50%, #ffb300 75%, #ffd700 100%);
    color: #000;
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-top: 1.5rem;
    margin-bottom: 8rem;
    font-family: 'Shippori Mincho', serif;
    width: 100%;
    max-width: 400px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.gold-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.gold-button:hover::before {
    transform: translateX(100%);
}

.gold-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 25%, #ffb300 50%, #ffc107 75%, #ffed4e 100%);
}

.gold-button:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #1a1a1a;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 12px;
    max-width: 480px;
    width: 85%;
    text-align: center;
    border: 2px solid #ebc73c;
    box-shadow: 0 10px 30px rgba(235, 199, 60, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

/* 法的情報モーダル専用のスクロール設定 - プロレベル実装 */
#legalModal.show .popup-content {
    max-height: 85vh !important;
    min-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* スマホ対応のモーダル高さ調整 */
@media (max-width: 767px) {
    #legalModal.show .popup-content {
        max-height: 95vh !important;
        min-height: 400px !important;
        padding: 1.5rem !important;
        width: 95% !important;
        max-width: none !important;
        overflow-y: visible !important;
    }
    
    .provider-modal-title {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .provider-cta-section {
        margin-top: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .provider-cta-text h4 {
        font-size: 1.1rem !important;
    }
    
    .provider-cta-text p {
        font-size: 0.85rem !important;
    }
}

#legalModal .popup-content h3 {
    flex-shrink: 0 !important;
    margin-bottom: 1rem !important;
}

#legalModal .popup-content > div {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 15px !important;
    margin-right: -15px !important;
}

/* 強制的なスクロール有効化 */
#legalModal.show .popup-content > div {
    height: auto !important;
    max-height: none !important;
    min-height: 300px !important;
}

/* 完全非表示スクロールバー（プロ仕様） - 全モーダル対応 */
#legalModal .popup-content::-webkit-scrollbar,
#legalModal .popup-content > div::-webkit-scrollbar,
#tokushoScrollArea::-webkit-scrollbar,
#privacyScrollArea::-webkit-scrollbar,
#providerScrollArea::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
    display: none !important;
}

#legalModal .popup-content::-webkit-scrollbar-track,
#legalModal .popup-content > div::-webkit-scrollbar-track,
#tokushoScrollArea::-webkit-scrollbar-track,
#privacyScrollArea::-webkit-scrollbar-track,
#providerScrollArea::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

#legalModal .popup-content::-webkit-scrollbar-thumb,
#legalModal .popup-content > div::-webkit-scrollbar-thumb,
#tokushoScrollArea::-webkit-scrollbar-thumb,
#privacyScrollArea::-webkit-scrollbar-thumb,
#providerScrollArea::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

/* Firefox用スクロールバー非表示 - 全モーダル対応 */
#legalModal .popup-content,
#legalModal .popup-content > div,
#tokushoScrollArea,
#privacyScrollArea,
#providerScrollArea {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* 高速スクロール最適化 - 全モーダル対応 */
#legalModal .popup-content,
#legalModal .popup-content > div,
#tokushoScrollArea,
#privacyScrollArea,
#providerScrollArea {
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: auto !important;
    overscroll-behavior: auto !important;
    transform: translateZ(0) !important;
    will-change: scroll-position !important;
}

/* ユニバーサルスクロールバー非表示 - 動的生成要素対応 */
div[style*="overflow-y: auto"]::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
}

div[style*="overflow-y: auto"] {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* スクロール領域の視覚的フィードバック */
#legalModal .popup-content > div {
    position: relative !important;
}

#legalModal .popup-content > div::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 2px !important;
    height: 20px !important;
    background: rgba(235, 199, 60, 0.3) !important;
    border-radius: 1px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
}

#legalModal .popup-content > div.scrolling::before {
    opacity: 1 !important;
}

/* 提供者プロフィール専用スタイル */
.provider-modal-title {
    color: #ebc73c !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    flex-shrink: 0 !important;
    font-size: 1.5rem !important;
}

.provider-modal-content {
    text-align: center !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    overflow-y: auto !important;
    padding-right: 15px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
}

/* 新しいプロフィールデザイン */
.profile-image-section {
    text-align: center !important;
    margin-bottom: 2rem !important;
}

.provider-modal-content .profile-image {
    width: 195px !important;
    height: 195px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ebc73c !important;
    box-shadow: 0 4px 15px rgba(235, 199, 60, 0.3) !important;
    display: block !important;
    margin: 0 auto !important;
}

.profile-title {
    text-align: center !important;
    margin-bottom: 2rem !important;
}

.profile-title h4 {
    color: #ebc73c !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
}

.profile-title h3 {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

.profile-description {
    text-align: left !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: #ffffff !important;
}

.profile-description p {
    margin: 0 0 0.3rem 0 !important;
}

.profile-description .note {
    color: #cccccc !important;
    font-size: 0.9rem !important;
    font-style: italic !important;
}

.profile-description .note-small {
    color: #cccccc !important;
    font-size: 0.75rem !important;
    text-align: left !important;
}

.provider-modal-content::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
    display: none !important;
}

.provider-modal-content::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.provider-modal-content::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

.provider-item {
    margin-bottom: 1rem !important;
    padding-bottom: 0.8rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}

.provider-item:last-child {
    border-bottom: none !important;
}

.provider-item strong {
    color: #ffffff !important;
    display: block !important;
    margin-bottom: 0.3rem !important;
    font-weight: bold !important;
}

.provider-item span {
    color: #ffffff !important;
    display: block !important;
}

.provider-disclaimer span {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* 提供者プロフィール CTA セクション */
.provider-cta-section {
    margin-top: 2rem !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    background: rgba(235, 199, 60, 0.1) !important;
    border: 1px solid rgba(235, 199, 60, 0.3) !important;
}

.provider-cta-text h4 {
    color: #ebc73c !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

.provider-cta-text p {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

.provider-email-input {
    width: 100% !important;
    padding: 12px 15px !important;
    margin-bottom: 1rem !important;
    border: 1px solid rgba(235, 199, 60, 0.5) !important;
    border-radius: 6px !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
}

.provider-email-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.provider-email-input:focus {
    outline: none !important;
    border-color: #ebc73c !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.provider-submit-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #ebc73c 0%, #d4a429 100%) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0.8rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.provider-submit-btn::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.8s ease !important;
}

.provider-submit-btn:hover {
    background: linear-gradient(135deg, #d4a429 0%, #b8900f 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(235, 199, 60, 0.4) !important;
}

.provider-submit-btn:hover::before {
    transform: translateX(100%) !important;
}

/* プロフィールからメインポップアップへの切り替えボタン */
.provider-switch-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #ebc73c 0%, #d4a429 100%) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0.8rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.provider-switch-btn::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.8s ease !important;
}

.provider-switch-btn:hover {
    background: linear-gradient(135deg, #d4a429 0%, #b8900f 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(235, 199, 60, 0.4) !important;
}

.provider-switch-btn:hover::before {
    transform: translateX(100%) !important;
}

/* 新しいLPスタイルのボタン */
.provider-switch-btn-new {
    width: 100% !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, #f4d03f 0%, #f1c40f 50%, #e6b800 100%) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3) !important;
    border: 2px solid transparent !important;
}

.provider-switch-btn-new::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: left 0.8s ease !important;
}

.provider-switch-btn-new:hover {
    background: linear-gradient(135deg, #e6b800 0%, #d4ac0d 50%, #b7950b 100%) !important;
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.5) !important;
    border-color: rgba(244, 208, 63, 0.6) !important;
}

.provider-switch-btn-new:hover::before {
    left: 100% !important;
}

.provider-switch-btn-new:active {
    transform: translateY(-1px) scale(1.01) !important;
    transition: all 0.1s ease !important;
}

/* クリーンなボタンスタイル（囲みなし） */
.provider-switch-btn-clean {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 18px 32px !important;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #ffc107 50%, #ffb300 75%, #ffd700 100%) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(255, 193, 7, 0.3) !important;
    display: block !important;
}

.provider-switch-btn-clean::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: left 0.8s ease !important;
}

.provider-switch-btn-clean:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 25%, #ffb300 50%, #ffc107 75%, #ffed4e 100%) !important;
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6), inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 0 0 2px rgba(255, 193, 7, 0.5) !important;
}

.provider-switch-btn-clean:hover::before {
    left: 100% !important;
}

.provider-switch-btn-clean:active {
    transform: translateY(-2px) scale(1.02) !important;
    transition: all 0.1s ease !important;
}

/* プロフィールCTAセクションの調整 */
.provider-cta-section {
    margin-top: 2rem !important;
    padding: 0 !important;
    text-align: center !important;
}

.provider-privacy-note {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* 法的情報項目のスタイリング */
.legal-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(235, 199, 60, 0.2);
}

.legal-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-title {
    margin: 0 0 0.5rem 0 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 1rem !important;
}

.legal-content {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.legal-content small {
    font-size: 0.8rem !important;
    color: #aaa !important;
    line-height: 1.4 !important;
}

.popup h3 {
    color: #ebc73c;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

@media (max-width: 768px) {
    .popup h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .popup-content {
        padding: 2rem 1.5rem 1.5rem 1.5rem !important;
        width: 90% !important;
    }
    
    .popup p {
        margin-bottom: 1.2rem !important;
        font-size: 0.85rem !important;
    }
    
    .popup h3 {
        font-size: 1.3rem !important;
    }
}

.popup p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.popup input {
    width: 100%;
    padding: 15px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.popup input:focus {
    outline: none;
    border-color: #ebc73c;
    box-shadow: 0 0 10px rgba(235, 199, 60, 0.3);
}

/* ポップアップ内のボタンスタイル */
.popup .gold-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #ffc107 50%, #ffb300 75%, #ffd700 100%) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(255, 193, 7, 0.3) !important;
    font-size: 1.1rem !important;
    padding: 16px 24px !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.popup .gold-button::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.8s ease !important;
}

.popup .gold-button:hover::before {
    transform: translateX(100%) !important;
}

.popup .gold-button:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6), inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 0 0 2px rgba(255, 193, 7, 0.5) !important;
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 25%, #ffb300 50%, #ffc107 75%, #ffed4e 100%) !important;
}

.popup .gold-button:active {
    transform: translateY(-2px) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1000 !important;
    pointer-events: auto !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #fff;
}

.privacy-note {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.3;
    text-align: left;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

/* 特別CTAページのスタイル */
.exclusive-cta {
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    gap: 3rem;
    animation: fadeInUp 2s ease-out;
}

.exclusive-cta .decorative-line {
    width: 60px;
    height: 0.5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 100%);
    animation: expandLine 2s ease-out;
}

.exclusive-cta .decorative-line.top {
    margin-bottom: 0;
}

.exclusive-cta .decorative-line.bottom {
    margin-top: 0;
}

.exclusive-cta .primary-message {
    text-align: center;
    position: relative;
}

.exclusive-cta .small-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.4);
    font-weight: 300;
    display: block;
    margin-bottom: 1.5rem;
    animation: fadeIn 1.5s ease-out;
}

.exclusive-cta .main-title {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    line-height: 1.6;
}

.exclusive-cta .title-line {
    display: block;
    position: relative;
}

.exclusive-cta .title-line.accent {
    font-weight: 300;
    color: #ffffff;
    margin-top: 0.5rem;
    animation: glow 3s ease-in-out infinite alternate;
}

.exclusive-cta .additional-info {
    text-align: center;
    margin-top: 0;
}

.exclusive-cta .exclusive-note {
    font-size: 0.85rem;
    line-height: 2;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    font-weight: 200;
    animation: fadeIn 3s ease-out;
}

.exclusive-cta .cta-section {
    margin-top: 0;
}

.exclusive-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #ffc107 50%, #ffb300 75%, #ffd700 100%);
    color: #000;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(255, 193, 7, 0.3);
    font-size: 1.1rem;
    padding: 20px 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: auto;
    min-width: 280px;
}

.exclusive-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.exclusive-button:hover::before {
    transform: translateX(100%);
}

.exclusive-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6), inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 0 0 2px rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 25%, #ffb300 50%, #ffc107 75%, #ffed4e 100%);
}

.exclusive-button:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

/* 補足情報のスタイル */
.disclaimer-section {
    margin-top: 1.5rem;
    text-align: center;
}

.disclaimer-text {
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    font-weight: 200;
}

/* レスポンシブ調整 - 特別CTAページ */
@media screen and (max-width: 768px) {
    .exclusive-cta {
        gap: 2rem;
        padding: 0 8%;
    }
    
    .exclusive-cta .main-title {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .exclusive-cta .exclusive-note {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .exclusive-button {
        font-size: 1rem;
        padding: 18px 32px;
        width: 320px;
        max-width: 90%;
        min-width: 280px;
    }
    
    .exclusive-cta .small-text {
        font-size: 0.65rem;
    }
}

@media screen and (min-width: 768px) {
    .exclusive-cta .main-title {
        font-size: 2.5rem;
    }
    
    .exclusive-cta .exclusive-note {
        font-size: 0.85rem;
    }
}

@media screen and (min-width: 800px) {
    .exclusive-cta .main-title {
        font-size: 3rem;
    }
}

/* 南京錠と鍵のアニメーション */
.lock-animation-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lock-animation-container.show {
    opacity: 1;
}

.padlock-icon, .key-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.padlock-img, .key-img {
    width: auto;
    height: 36px; /* ページ表示文字の1.5倍程度のサイズ */
    max-width: 36px;
    object-fit: contain;
    opacity: 0.6; /* ページ数表記と同じ透明度 */
}

.key-icon {
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

/* 鍵の段階的表示用のマスク */
.key-img {
    position: relative;
    clip-path: inset(0 0 66% 0); /* 初期状態：下部1/3のみ表示（持ち手部分） */
    transition: clip-path 0.3s ease;
}

/* セキュリティアイコン（安心してページ用） */
.security-icon {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-icon.show {
    opacity: 1;
}

.security-img {
    width: auto;
    height: 55px; /* さらに適度に拡大してより強い存在感を確保 */
    max-width: 55px;
    object-fit: contain;
    opacity: 0.6; /* ページ数表記と同じ透明度 */
}

/* ページ数表示 */
.page-counter {
    position: fixed;
    bottom: 120px;
    right: 50%;
    transform: translateX(50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.page-counter.hidden {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .lock-animation-container {
        top: 40px;
    }
    
    .padlock-img, .key-img {
        height: 28px; /* モバイルでは少し小さく */
        max-width: 28px;
    }
    
    .security-icon {
        top: 40px; /* 南京錠と同じ位置 */
    }
    
    .security-img {
        height: 42px; /* モバイルでもより強い存在感を確保 */
        max-width: 42px;
    }
    
    .page-counter {
        bottom: 100px;
        font-size: 0.8rem;
    }
}

/* 免責事項テキスト - 洗練されたモバイル対応 */
@media screen and (max-width: 768px) {
    .disclaimer-text {
        font-size: 1rem;
        line-height: 1.4;
        transform: scale(0.7);
        transform-origin: center;
        margin: 0.5rem 0;
        padding: 0;
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .disclaimer-text {
        transform: scale(0.6);
        margin: 0.3rem 0;
    }
}

@media screen and (max-width: 360px) {
    .disclaimer-text {
        transform: scale(0.55);
        margin: 0.2rem 0;
    }
}

/* プロフィール画像のモバイル対応 */
@media screen and (max-width: 768px) {
    .provider-modal-content .profile-image {
        width: 156px !important;
        height: 156px !important;
    }
    
    .profile-title h4 {
        font-size: 1rem !important;
    }
    
    .profile-title h3 {
        font-size: 1.2rem !important;
    }
    
    .profile-description {
        font-size: 0.9rem !important;
    }
}