/* =============================================================
   エンターページ(年齢認証・トップ入口)用スタイル(PC/SP統合版)

   レスポンシブ統合前はPC専用CSSとSP専用CSSの2ファイルに分かれており、
   サーバーサイドのUA判定でどちらか一方だけが読み込まれていた。
   css/style.css と同じ方針で1ファイルに統合している。

   構成:
     1. 全幅共通ルール
        PC用CSSとSP用CSSで宣言がまったく同一だったルールのみ。
     2. @media (max-width: 991.98px) … SP・タブレット幅
        統合前のSP専用CSSの内容(記述順そのまま)。
     3. @media (min-width: 992px) … PC幅
        統合前のPC専用CSSの内容(記述順そのまま)。
        末尾の @media (max-height: 780px) はPC専用CSSにのみ
        存在した高さクエリ(SP側に対応ルールなし)のため、
        (min-width: 992px) と組み合わせてPC幅限定のまま維持する
        (単純な無条件の高さクエリにすると、横幅の狭いSP端末の
        短い縦画面にまでこのルールが効いてしまい、統合前のSP表示と
        変わってしまうため)。

   なぜ1・2・3に分けているか(css/style.cssと同じ理由):
     PC用とSP用は同じセレクタに対して別々のプロパティ集合を
     指定している箇所が多く、「SP側を無条件のベースにしてPC側を
     @mediaで上書きする」書き方にすると、PC側が指定していない
     プロパティがPC幅に残ってしまい、統合前のPC表示と一致しなく
     なる。そのため両方を排他的な @media で囲み、各幅で統合前と
     まったく同じ宣言集合だけが効くようにしている。
   ============================================================= */

/* 1. 全幅共通ルール(統合前のPC専用CSS / SP専用CSSで宣言が完全一致) */

.index-header-movie {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    opacity: .4;
}

/* 2. @media (max-width: 991.98px) … 統合前のSP専用CSS

   上限が 991px ではなく 991.98px なのは(この .98 は消さないこと):
   境界を (max-width: 991px) / (min-width: 992px) の整数ペアにすると、
   ブラウザのCSSピクセル幅が小数になったとき(ズーム・OSの拡大縮小等)
   どちらの @media にも一致しない隙間ができ、このファイルはほぼ全ての
   宣言を下記2ブロックのどちらかに入れているためエンターページの
   レイアウト指定がまるごと失われる。詳しい理由は css/style.css 冒頭の
   同名コメントを参照。下限側の (min-width: 992px) は変更してはいけない。 */

@media (max-width: 991.98px) {

    #index_mv {
        position: relative;
        width: 100%;
        height: 100%;
        height: 100vh;
        height: 100svh;
        background: #000;
    }
    .pattern {
        width: 100%;
        height: 100%;
        background: url(../images/line_bk_sp.webp);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .index-contents {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
    }
    .index-contents::after{
        position: absolute;
        border: 1px solid #fff;
        content: "";
        top: 3vw;
        bottom: 3vw;
        left: 3vw;
        right: 3vw;
        pointer-events: none;
    }
    img.logo {
        width: 80%;
        margin: 0 auto;
    }

    img.kin18 {
        width: 40px;
        margin-top: 5rem;
    }

    p.enter-text-j {
        font-family: "Noto Serif JP", serif;
        font-weight: lighter;
        font-size: 1.5rem;
        margin-top: 2.5rem;
        text-align: center;
        color: #fff;
        line-height: 1.6;
    }

    p.enter-text-e {
        font-family: "EB Garamond", serif;
        font-style: italic;
        font-weight: lighter;
        font-size: 1.6rem;
        margin-top: 2rem;
        text-align: center;
        color: #fff;
        line-height: 1.6;
    }

    a.enter-btn {
        width: 65%;
        margin-top: 3rem;
        font-family: "Cinzel", serif;
        font-weight: 400;
        letter-spacing: 0.2rem;
        font-size: 2rem;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 1.8rem 0;
        border-radius: 40px;
        display: inline-block;
        text-decoration: none;
        color: #fff;
        transition: opacity 0.3s ease;
    }

    a.enter-btn:hover {
        opacity: 0.7;
    }


    #banner_area_1 {
        width: 90%;
        margin: 10rem auto 0;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .bn {
        width: 100%;
        text-align: center;
        font-size: 1.5rem;
        line-height: 1;
        color: #000;
    }

    .bn img {
        width: 100%;
        ;
        display: inline-block;
        margin: 0.3rem 0;
    }


    #banner_area_2 {
        width: 90%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

    #banner_area_2 .bn {
        width: 100%;

    }

    #banner_area_2 .bn img {
        width: 100%;
    }

    .copyright {
        display: block;
        margin: 10rem auto 0;
        padding-bottom: 2rem;
        text-align: center;
        font-size: 1.4rem;
        color: #3f3f3f;
    }
    .for_outcalls{
        width:45%;
        margin:4rem auto 0;
    }

}

/* 3. @media (min-width: 992px) … 統合前のPC専用CSS */

@media (min-width: 992px) {

    #index_mv {
        position: relative;
        width: 100%;
        height: 100vh;
        height: 100svh;
        background: #000;
    }
    .pattern {
        width: 100%;
        height: 100%;
        background: url(../images/line_bk.webp);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
    }

    .index-contents {
        position: absolute;
        z-index: 3;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .index-contents::after {
        position: absolute;
        border: 1px solid #fff;
        content: "";
        top: 4vh;
        bottom: 4vh;
        left: 4vh;
        right: 4vh;
        pointer-events: none;
    }

    img.logo {
        width:550px;
    }

    img.kin18 {
        width: 55px;
        margin-top: 60px;
    }

    p.enter-text-j {
        font-family: "Noto Serif JP", serif;
        font-weight: 400;
        font-size: 1.6rem;
        margin-top: 35px;
        text-align: center;
        color: #fff;
        line-height: 1.6;
        letter-spacing: 0.4rem;
    }

    p.enter-text-e {
        font-family: "EB Garamond", serif;
        font-style: italic;
        font-weight: 400;
        font-size: 1.7rem;
        margin-top: 15px;
        text-align: center;
        color: #fff;
        line-height: 1.6;
    }

    a.enter-btn {
        width: 500px;
        margin-top: 50px;
        font-family: "Cinzel", serif;
        font-weight: 400;
        letter-spacing: 0.2rem;
        font-size: 3rem;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 3.1rem 0;
        border-radius: 80px;
        display: inline-block;
        text-decoration: none;
        color: #fff;
        transition: 0.3s ease;
    }

    a.enter-btn:hover {
        color: #a28870;
    }


    #banner_area_1 {
        width: 870px;
        margin: 120px auto 50px;
        display: flex;
        flex-wrap: wrap;
        gap: 30px 70px;
    }

    #banner_area_1.flex-jc-center{
        justify-content:center;
        }

    .bn {
        width: 400px;
        text-align: center;
        font-size: 1.5rem;
        line-height: 1;
        color: #3f3f3f;
    }

    .bn img {
        width: 400px;
        display: inline-block;
        margin: 0.5rem 0;
    }

    .bn span.bnr_txt {
        font-size: 1.4rem;
    }

    .bn a {
        text-decoration: none;
        color: #3f3f3f;
    }

    #banner_area_2 {
        width: 670px;
        margin: 120px auto 50px;
        display: flex;
        flex-wrap: wrap;
        gap: 30px 70px;
    }

    #banner_area_2.flex-jc-center{
    justify-content:center;
    }

    #banner_area_2 .bn {
        width: 300px;

    }

    #banner_area_2 .bn img {
        width: 300px;
    }

    .copyright {
        display: block;
        margin: 120px auto 0;
        padding-bottom: 20px;
        text-align: center;
        font-size: 1.6rem;
        color: #3f3f3f;
    }

    .for_outcalls{
        /* width:250pxは今回追加(元のPC専用CSSには無かった)。
           本番PC版はfor_outcall_pc.png(250x80)を幅指定無しの
           実寸表示で使っていたが、統合後はSP版と共通の
           for_outcall_sp.png(500x160)を1枚だけ使う構成にしたため、
           幅を明示しないと実寸の500pxで表示されてしまう。
           本番PC版と同じ見た目になるよう250pxを明示指定した。 */
        width: 250px;
        margin-top:60px;
        transition: opacity 0.2s ease;
    }

    .for_outcalls:hover {
        opacity: 0.7;
    }

    @media (max-height: 780px) {

        img.logo{
            width: 400px;
        }
        img.kin18{
            margin-top: 40px;
        }
        a.enter-btn{
            width: 400px;
            margin-top: 30px;
            padding: 1.5rem 0;
        }
        .for_outcalls{
            display: none;
        }
    }

}
