.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    overflow-y: auto;
    padding: 50px 10px;
    background-color: rgba(51, 51, 51, 0.7);
    box-sizing: border-box;
    cursor: pointer;
}
.modal-dialog {
    display: none;
    position: relative;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 375px;
    border-radius: 4px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}
/* ランドスケープ時にモーダルが見切れ内容に調整 */
.landscape {
    top: 0;
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0%);
}
.modal-sub-heading {
    position: relative;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: #FFFFFF;
    color: #7BA931;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: bold;
    font-size: 13px;
    line-height: 30px;
    text-align: center;
}
.modal-sub-heading::before {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 21.1%;
    width: 17px;
    height: 17px;
    background: url("../images/apple-touch-icon.jpg") no-repeat;
    background-size: cover;
    content: "";
    transform: translate(-18.9%, -50%);
    -webkit-transform: translate(-18.9%, -50%);
}
.modal-heading {
    display: block;
    background-color: #F1CC00;
    text-align: center;
}
.modal-heading-text {
    display: table-cell;
    width: 70%;
    height: 63px;
    color: #534742;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: bold;
    font-size: 23px;
    line-height: 1.01;
    text-align: center;
    vertical-align: middle;
}
.modal-heading-small-text {
    font-size: 19px;
}
.modal-main {
    padding: 8px 10px 14px 10px;
    background-color: #F8F6E5;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.modal-main-sub-text {
    color: #7BA931;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.54;
    text-align: center;
}
.merit-image-list {
    display: inline-flex;
    margin: 5px 5px 4px 5px;
    justify-content: space-between;
}
.merit-image-item {
    display: inline-block;
    width: calc((100% - 12px) / 3);
}

li.merit-image-item-right {
    display: inline-block;
    width: calc((115% - 10px) / 3);
    margin: 10px 20px 10px 10px;
}

li.merit-image-item-left {
    display: inline-block;
    width: calc((115% - 10px) / 3);
    margin: 10px 10px 10px 20px;
}
.explanation-box {
    position: relative;
}
.explanation-left-list {
    display: inline-block;
    position: relative;
    padding: 0px 0px 0px 30px;
}
.explanation-left-item {
    margin: 0 0 0 30px;
}
.explanation-left-item + .explanation-left-item {
    display: block;
    margin: 10px 0 0 30px;
}
.explanation-left-single-item {
  display: inline-block;
  position: relative;
  padding: 25px 0px 30px 5px;
}
.explanation-box-text {
    position: relative;
    color: #534742;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.16;
}
.explanation-box-text::before {
    display: inline-block;
    position: absolute;
    top: 3px;
    left: -18px;
    width: 0;
    height: 0;
    border-left: 11px solid #F1CC00;
    border-top: 5.5px solid transparent;
    border-bottom: 5.5px solid transparent;
    content: "";
}
.img-nurse-human {
    display: inline-block;
    position: absolute;
    right: 0;
    width: 28%;
    max-width: 94px;
    z-index: 1;
}
.line-subscribe-button {
    display: block;
    position: relative;
    width: 100%;
    z-index: 3;
    background-color: #00B900;
    border-radius: 10px;
    box-shadow:0px 6px 0px #007C00;
    text-align: center;
    line-height: 48px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #FFFFFF;
}
.line-subscribe-button:hover {
  color: #FFFFFF;
}

.line-subscribe-button:visited {
  color: #FFFFFF;
}
.line-subscribe-button::before {
    display: inline-block;
    position: relative;
    top: 6px;
    width: 28px;
    height: 26.3px;
    z-index: 3;
    background: url("/wp-content/themes/pcn/images/icon-line.png") no-repeat;
    background-size: cover;
    content: "";
}
.link-button-small-text {
    font-size: 15px;
}
.modal-trigger {
    display: inline-block;
    position: absolute;
    top: -16px;
    right: -9px;
    width: 32px;
    height: 32px;
    background-color: #000000;
    border-radius: 50%;
    line-height: 32px;
    text-align: center;
    text-decoration: none;
}
.modal-trigger::before, .modal-trigger::after {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    content: "";
    transform: translate(-50%, -50%) rotate(45deg);
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
}
.modal-trigger::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
}
/* イベント計測用の対応：リンクボタン内部の要素をクリックしても反応させないように調整 */
.prevent-events {
  pointer-events: none;
}
@media screen and (min-width: 375px){
    .modal-dialog {
        width: 355px;
    }
    .modal-sub-heading {
        font-size: 16px;
        line-height: 35px;
    }
    .modal-sub-heading::before {
        width: 19px;
        height: 19px;
        background: url("../images/apple-touch-icon.jpg") no-repeat;
        background-size: cover;
    }
    .modal-heading-text {
        height: 75px;
        font-size: 27px;
        line-height: 1.01;
    }
    .modal-heading-small-text {
        font-size: 22px;
    }
    .modal-main {
        padding: 8px 10px 14px 10px;
    }
    .modal-main-sub-text {
        font-size: 18px;
    }
    .merit-image-list {
        margin: 0 0 4px 0;
        display: flex;
    }
    .img-example-merit {
        width: 100%;
    }
    .explanation-left-single-item {
      padding: 25px 0px 40px 5px;
    }
    .explanation-box-text {
        font-size: 17px;
        letter-spacing: 0.05em;
        line-height: 1.16;
    }
    .explanation-box-text::before {
        top: 3px;
        left: -18px;
        border-left: 13px solid #F1CC00;
        border-top: 6.5px solid transparent;
        border-bottom: 6.5px solid transparent;
    }
    .img-nurse-human {
        width: 94px;
    }
    .line-subscribe-button {
        line-height: 56px;
    }
}
