/**
 * EC-Cube Integration - アクセス拒否メッセージスタイル
 *
 * 購入者限定記事のアクセス拒否画面用CSS
 */

/* スクロール防止 - bodyを固定 */
body:has(.eccube-deny-message) {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* 記事本文の上に半透明オーバーレイ */
.eccube-deny-message::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* アクセス拒否メッセージを画面下部に固定 */
.eccube-deny-message {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-top: 30%;
    text-align: center;
    z-index: 999;
}

.eccube-deny-message .field {
    position: relative;
    padding: 3.0em 1.0em;
    background-color: #fdf3f6;
    z-index: 1000;
}

.eccube-deny-message .container {
    max-width: 600px;
    margin: 0 auto;
}

.eccube-deny-message p.reset {
    margin: 0;
    padding: 0;
}

.eccube-deny-message strong {
    display: block;
    margin-bottom: 0.75em;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
}

.eccube-deny-message .item-button {
    text-align: center;
}

.eccube-deny-message .item-button > a {
    display: inline-block;
    padding: 1.0em 2.0em;
    color: #ffffff;
    background-color: #007e41;
    font-size: 1.25em;
    line-height: 1.0;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.eccube-deny-message .item-button > a:hover {
    opacity: 0.8;
}

.eccube-deny-message .item-button.bk > a {
    color: #ffffff;
    background-color: #000000;
}

.eccube-deny-message .login {
    margin-top: 3.0em;
    margin-bottom: 1.5em;
    padding: 1.5em;
    background-color: #cccccc;
}

.eccube-deny-message .login .item-button > a {
    background-color: #007e41;
}

/* レスポンシブ対応 */
@media screen and (max-width: 834px) {
    .eccube-deny-message {
        padding-top: 20%;
    }

    .eccube-deny-message .field {
        padding: 2.0em 1.0em;
    }

    .eccube-deny-message strong {
        font-size: 1.25em;
    }

    .eccube-deny-message .item-button > a {
        padding: 0.8em 1.5em;
        font-size: 1.1em;
    }
}
