@charset "utf-8";

/* -------------------- */
/* PCSP共通 */
/* -------------------- */

.gooad_close {
    display: none !important;
}

/* オーバーレイ共通 */
#gooad-pc_overlay,
#gooad-spbadge320_3 {
    position: fixed;
    z-index: 1010;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    background: #fff;
    text-align: center;
}


/* -------------------- */
/* PC */
/* -------------------- */

#gooad-long {
    min-height: 90px;
    margin: 0 0 1em;
    text-align: center;
}

#gooad-badge300_1,
#gooad-badge300_2 {
    min-height: 250px;
    margin: 0 0 2em;
    text-align: center;
}

/* ダブレク親1～2 */
[id^="gooad-wrec"] {
    min-height: 250px;
    margin: 0 auto 2em;
    text-align: center;
}

/* ダブレク */
#gooad-mbadge300_1,
#gooad-mbadge300_2,
#gooad-badge300_3,
#gooad-badge300_4 {
    display: inline-block;
    margin: 0 1em;
}

/* オーバーレイ */
#gooad-pc_overlay {
    height: 90px;
}

/* オーバーレイ閉じるボタン */
.gooad_close_button_pc {
    position: absolute;
    right: 0px;
    top: -25px;
    cursor: pointer;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 5px 5px 0;
    z-index: 1010;
    opacity: 0.8;
}

.gooad_close_button_pc::before,
.gooad_close_button_pc::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 23px;
    background: #999;
}

.gooad_close_button_pc::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gooad_close_button_pc::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* フッター調整 */
/* gam_event_listenersで追加 */
.gooad_footer_bottom_pc {
    padding-bottom: 90px;
}

/* オーバーレイが閉じられたときフッターの余白をデフォルトにする */
.gooad_footer_default_pc {
    padding-bottom: 24px;
}

/* 幅600px以下の時 */
@media (max-width: 599px) {
    /* ダブレク上余白に変更 */
    #gooad-mbadge300_1,
    #gooad-mbadge300_2,
    #gooad-badge300_3,
    #gooad-badge300_4 {
        margin: 1em 0 0;
    }
}


/* -------------------- */
/* SP */
/* -------------------- */

/* SPレクタングル sp300_1～5 */
[id^="gooad-spbadge300"] {
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#gooad-spbadge320_1,
#gooad-spbadge320_2 {
    min-height: min(180px, calc(100vw / 320 * 100));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* iPhone safe-area */
@supports (padding-bottom: constant(safe-area-inset-bottom)) {
    #gooad-sp_overlay {
        padding-bottom: constant(safe-area-inset-bottom)
    }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #gooad-sp_overlay {
        padding-bottom: env(safe-area-inset-bottom)
    }
}

/* フッター調整 */
/* gam_event_listenersで追加 */
.gooad_footer_bottom_sp {
    padding-bottom: 100px;
}