.elementor-7527 .elementor-element.elementor-element-c5071a7{--display:flex;}/* Start custom CSS for html, class: .elementor-element-9456a98 *//* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ポップアップオーバーレイ */
#popup-overlay-unified {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-sizing: border-box;
}

#popup-overlay-unified.active {
    visibility: visible;
    opacity: 1;
}

/* ポップアップ表示時にボタンを非表示 */
#popup-overlay-unified.active ~ * .municipality-search-overlay,
#popup-overlay-unified.active ~ .municipality-search-overlay,
body:has(#popup-overlay-unified.active) .municipality-search-overlay {
    display: none !important;
}

/* ポップアップコンテナ */
#popup-content {
    background: #ffffff;
    padding: 0;
    border-radius: 24px;
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#popup-overlay-unified.active #popup-content {
    transform: translateY(0) scale(1);
}

/* ヘッダー部分 */
.popup-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 40px 30px 30px 30px;
    position: relative;
    text-align: center;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 32px;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

.popup-title,
#popup-title-text {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
    color: white;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

#popup-title-text small {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-top: 8px;
}

/* コンテンツ部分 */
.popup-body {
    padding: 40px;
    background: #ffffff;
}

/* フォームスタイル */
#unified-mail-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-input {
    width: 100%;
    padding: 20px 24px;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    font-size: 17px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
    color: #1e293b;
    font-weight: 500;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 8px 32px rgba(59, 130, 246, 0.2);
    background: #ffffff;
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-input:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

/* 送信ボタン */
.submit-button {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 20px 32px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(29, 78, 216, 0.4),
        0 4px 16px rgba(29, 78, 216, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(29, 78, 216, 0.5),
        0 8px 24px rgba(29, 78, 216, 0.3);
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.submit-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 閉じるボタン */
#popup-close-btn {
    display: block;
    text-align: center;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    margin-top: 16px;
    transition: color 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

#popup-close-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* プライバシー表記 */
.privacy-notice {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.privacy-notice a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-notice a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 装飾要素 */
.popup-decoration {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.popup-decoration-2 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.popup-decoration-3 {
    position: absolute;
    top: 50%;
    right: -30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

/* ボタン生成部分のスタイル */
.municipality-search-overlay {
    position: absolute;
    top: 1px;
    left: 15px;
    z-index: 9999;
    background: transparent;
    animation: fadeInUp 0.3s ease-out;
}

.municipality-search-overlay .btn-municipality-search {
    background: linear-gradient(to bottom, #3a6bb8, #2c5aa0);
    color: white;
    padding: 16px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 12px rgba(44, 90, 160, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 240px;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.3;
    border: 1px solid rgba(30, 61, 111, 0.8);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.municipality-search-overlay .btn-municipality-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.municipality-search-overlay .btn-municipality-search:hover {
    background: linear-gradient(to bottom, #4a7bc8, #3a6bb8);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(44, 90, 160, 0.5),
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
}

.municipality-search-overlay .btn-municipality-search:hover::before {
    left: 100%;
}

.municipality-search-overlay .search-icon {
    font-size: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* 登録成功後のフィルタ表示 */
#filterBox_table_3.show-after-registration {
    display: block !important;
}

/* 登録成功後はオーバーレイボタンを完全に削除 */
.registration-completed .municipality-search-overlay {
    display: none !important;
}

/* グロー効果 */
.popup-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
    #popup-overlay-unified {
        padding: 15px;
    }

    #popup-content {
        max-width: 100%;
        border-radius: 20px;
    }

    .popup-header {
        padding: 30px 20px 25px 20px;
    }

    .popup-body {
        padding: 30px 20px;
    }

    .popup-title,
    #popup-title-text {
        font-size: 20px;
    }

    .form-input {
        font-size: 16px;
        padding: 16px 20px;
    }

    .submit-button {
        padding: 16px 24px;
        font-size: 15px;
    }

    .popup-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .municipality-search-overlay {
        position: relative;
        top: auto;
        left: auto;
        margin: 10px auto;
        display: block;
        max-width: 250px;
    }
    
    .municipality-search-overlay .btn-municipality-search {
        font-size: 13px;
        padding: 12px 20px;
        min-width: 200px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
    
    .municipality-search-overlay .search-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .municipality-search-overlay .btn-municipality-search {
        font-size: 12px;
        padding: 10px 16px;
        min-width: 180px;
        gap: 8px;
        font-weight: 700;
        letter-spacing: 0.2px;
    }
    
    .municipality-search-overlay .search-icon {
        font-size: 12px;
    }
}

/* WordPress特有のスタイルリセット */
.municipality-search-overlay .btn-municipality-search,
.municipality-search-overlay .btn-municipality-search:visited {
    color: white !important;
    text-decoration: none !important;
}

.municipality-search-overlay .btn-municipality-search:hover,
.municipality-search-overlay .btn-municipality-search:focus {
    color: white !important;
    text-decoration: none !important;
}

/* 高度なブラウザ対応 */
@supports not (backdrop-filter: blur(5px)) {
    .municipality-search-overlay {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(222, 226, 230, 0.9);
    }
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    .municipality-search-overlay {
        animation: none;
    }
    
    .municipality-search-overlay .btn-municipality-search {
        transition: none;
    }
    
    .popup-icon {
        animation: none;
    }
    
    #popup-overlay-unified,
    #popup-content,
    .submit-button {
        animation: none;
        transition: none;
    }
}/* End custom CSS */