@charset "UTF-8";
/*------------------------------------------------------------
パンフレットダウンロード機能
------------------------------------------------------------*/

/*========================================
1. 固定トリガーボタン（左下）
========================================*/
#pamphlet-trigger-btn {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 9999; /* モバイルフッターナビ(99999)の下 */
    background: #534741; /* ブランドブラウン */
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(83, 71, 65, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 240px;
}

#pamphlet-trigger-btn:hover {
    background: #3d342e; /* 濃いブラウン */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(83, 71, 65, 0.6);
}

.pamphlet-btn-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pamphlet-icon {
    width: 90px;
    height: 38px;
    object-fit: contain;
}

.pamphlet-text {
    font-size: 0.9em;
    line-height: 1.4;
    font-weight: bold;
    text-align: center;
}

.pamphlet-text .year-text {
    font-size: 1.1em;
    color: #fff; /* 白 */
}

.pamphlet-text .main-text {
    font-size: 0.85em;
}

.pamphlet-hover-text {
    display: none;
    margin-top: 8px;
    font-size: 0.75em;
    text-align: center;
    color: #fff;
    animation: pulse 1.5s infinite;
}

#pamphlet-trigger-btn:hover .pamphlet-hover-text {
    display: block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/*========================================
2. 全画面モーダル
========================================*/
#pamphlet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000; /* 全ての上 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#pamphlet-modal-overlay.pamphlet-modal-hidden {
    display: none;
    opacity: 0;
}

#pamphlet-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#pamphlet-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #534741;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

#pamphlet-modal-close:hover {
    background: #ff3d65;
    transform: rotate(90deg);
}

.pamphlet-modal-inner {
    padding: 30px;
}

/*========================================
3. モーダルコンテンツレイアウト
========================================*/
.pamphlet-eyecatch {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

.pamphlet-eyecatch img {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.pamphlet-eyecatch h2 {
    font-size: 1.8em;
    color: #534741;
    font-weight: bold;
    margin: 0;
}

.pamphlet-eyecatch h2 .year-text {
    color: #ffa700;
}

.pamphlet-form-area {
    margin-top: 20px;
}

.form-intro {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/*========================================
4. Contact Form 7 カスタムスタイル
========================================*/
#pamphlet-modal-content .wpcf7 {
    width: 100% !important;
    margin: 0 !important;
}

.pamphlet-dl-form .box {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.pamphlet-dl-form .box:last-of-type {
    border-bottom: none;
}

.pamphlet-dl-form .line {
    display: block;
    font-weight: bold;
    font-size: 1em;
    color: #333;
    margin-bottom: 8px;
}

.pamphlet-dl-form .must {
    background: #ff3d65;
    color: #fff;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: normal;
    display: inline-block;
}

.pamphlet-dl-form input[type="text"],
.pamphlet-dl-form input[type="email"],
.pamphlet-dl-form input[type="tel"] {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.pamphlet-dl-form input:focus {
    border-color: #ffa700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 167, 0, 0.1);
}

.pamphlet-dl-form .submit-box {
    margin-top: 30px;
    text-align: center;
}

.pamphlet-dl-form input[type="submit"] {
    background: #ffa700;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 167, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.pamphlet-dl-form input[type="submit"]:hover {
    background: #e69500;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 167, 0, 0.4);
}

/* CF7バリデーションメッセージ */
.pamphlet-dl-form .wpcf7-not-valid-tip {
    color: #ff3d65;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.pamphlet-dl-form .wpcf7-validation-errors {
    background: #fff3f3;
    border: 2px solid #ff3d65;
    color: #c00;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.pamphlet-dl-form .wpcf7-mail-sent-ok {
    background: #f0f9ff;
    border: 2px solid #4a90e2;
    color: #333;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

/*========================================
5. レスポンシブデザイン - タブレット
========================================*/
@media only screen and (max-width: 1000px) {
    #pamphlet-trigger-btn {
        bottom: 80px; /* モバイルフッターナビ（高さ47px）の上 */
        left: 15px;
        max-width: 220px;
        padding: 10px 12px;
    }

    .pamphlet-icon {
        width: 75px;
        height: 32px;
    }

    .pamphlet-text {
        font-size: 0.8em;
    }

    .pamphlet-eyecatch img {
        max-width: 500px;
    }

    #pamphlet-modal-content {
        max-width: 95%;
    }

    .pamphlet-modal-inner {
        padding: 25px 20px;
    }

    .pamphlet-eyecatch h2 {
        font-size: 1.5em;
    }
}

/*========================================
6. レスポンシブデザイン - モバイル
========================================*/
@media only screen and (max-width: 736px) {
    #pamphlet-trigger-btn {
        bottom: 70px;
        left: 10px;
        max-width: 180px;
        padding: 8px 10px;
    }

    .pamphlet-btn-inner {
        gap: 8px;
    }

    .pamphlet-icon {
        width: 65px;
        height: 28px;
    }

    .pamphlet-text {
        font-size: 0.7em;
    }

    .pamphlet-hover-text {
        font-size: 0.65em;
    }

    #pamphlet-modal-overlay {
        padding: 10px;
    }

    #pamphlet-modal-content {
        max-height: 95vh;
        border-radius: 8px;
    }

    .pamphlet-modal-inner {
        padding: 20px 15px;
    }

    #pamphlet-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1em;
        top: 10px;
        right: 10px;
    }

    .pamphlet-eyecatch img {
        max-width: 280px;
    }

    .pamphlet-eyecatch h2 {
        font-size: 1.3em;
    }

    .pamphlet-dl-form .line {
        font-size: 0.95em;
        margin-bottom: 6px;
    }

    .pamphlet-dl-form .must {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        width: fit-content;
    }

    .pamphlet-dl-form input[type="text"],
    .pamphlet-dl-form input[type="email"],
    .pamphlet-dl-form input[type="tel"] {
        font-size: 16px; /* iOSズーム防止 */
        padding: 10px;
    }

    .pamphlet-dl-form input[type="submit"] {
        font-size: 1em;
        padding: 12px 20px;
    }

    .form-intro {
        font-size: 0.9em;
    }
}

/*========================================
7. 印刷時は非表示
========================================*/
@media print {
    #pamphlet-trigger-btn,
    #pamphlet-modal-overlay {
        display: none !important;
    }
}

/*========================================
8. reCAPTCHAバッジを非表示
========================================*/
.grecaptcha-badge {
    display: none !important;
}
