/* モーダルバナー用スタイル */
:root {
    --modal-bg: rgba(0, 0, 0, 0.7);
    --modal-content-bg: #ffffff;
    --modal-accent: #F39C12;
    /* 伊藤農園カラー：オレンジ系 */
    --modal-text: #333333;
    --modal-radius: 16px;
    --modal-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.it-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.it-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.it-modal-container {
    background-color: var(--modal-content-bg);
    width: 90%;
    max-width: 500px;
    border-radius: var(--modal-radius);
    overflow: hidden;
    box-shadow: var(--modal-shadow);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.it-modal-overlay.is-active .it-modal-container {
    transform: translateY(0) scale(1);
}

.it-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.it-modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.it-modal-close::before,
.it-modal-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #555;
}

.it-modal-close::before {
    transform: rotate(45deg);
}

.it-modal-close::after {
    transform: rotate(-45deg);
}

.it-modal-banner {
    width: 100%;
    display: block;
    line-height: 0;
}

.it-modal-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.it-modal-content {
    padding: 24px;
    text-align: center;
}

.it-modal-comment {
    font-size: 16px;
    color: var(--modal-text);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.it-modal-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--modal-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.it-modal-btn:hover {
    background-color: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* 全体リンク用のホバー連動設定 */
.it-modal-container a:hover .it-modal-btn {
    background-color: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.it-modal-container a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
}

.it-modal-container a:hover .it-modal-banner img {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .it-modal-container {
        width: 95%;
    }

    .it-modal-content {
        padding: 20px;
    }

    .it-modal-comment {
        font-size: 14px;
    }
}