body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* モーダルのカスタムスタイル */
.c-modal__overlay {
    z-index: 10001;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.c-modal__container {
    background-color: #fff;
    padding: 18px;
    max-width: 600px;
    max-height: 95vh;
    border-radius: calc(20px + 10 * (100vw - 375px) / 1545);
    overflow-y: auto;
    box-sizing: border-box;
    width: 85%;
}

.c-modal__container button {
    margin-top: 0;
    box-shadow: none;
}
.c-modal__container button:hover {
    margin-top: 0;
    box-shadow: none;
}

.c-modal__header {
    padding: 1em 0 1.5em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.c-modal__main > h3 span {
    line-height: 1.3 !important;
}

.c-modal__footer {
    margin-top: 0;
    text-align: center;
}

.c-modal__title {
    font-size: 24px;
    margin-bottom: 20px;
}
.c-modal__image {
    height: 25vw;
    text-align: center;
    margin-bottom: 20px;
}
.c-modal__image > a:focus {
    outline: none;
    transition: 0s;
}

.c-modal__btn {
    padding: 0;
    border: none;
    outline: none;
    font: inherit;
    cursor: pointer;
    color: inherit;
    background: none;
    border-bottom: 1px solid #ac4e4f;
    font-size: 14px;
    padding: 0.5em;
    border-radius: 0;
    box-shadow: none;
}
button.c-modal__btn {
    height: 45px;
}
button.c-modal__btn:hover {
    height: 45px;
}

.c-modal__close-wrap {
    cursor: pointer;
    padding: 0;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    background: none;
    position: absolute;
    top: 0;
    right: 1em;
}

.c-modal__close {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    width: 2em;
    height: 0.1em;
    background: #ac4e4f;
    border-radius: 0.1em;
    position: relative;
    transform: rotate(45deg);
}

.c-modal__close::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: rotate(90deg);
}

/*スマホ対応 */

@media screen and (max-width: 768px) {
    .c-modal__image {
        height: 95vw;
        text-align: center;
    }
}

/*pbtn */
.c-modal__button {
    display: block;
    margin: 20px auto 10px;
    padding-top: 9px;
    width: 270px;
    height: 78px;
    box-sizing: border-box;
    font-family: "Ryumin Bold KL", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "游明朝体", "YuMincho", "游明朝", "Yu Mincho", Roboto, serif;
    font-size: 20px;
    color: #5e2b20 !important;
    line-height: 28px;
    text-align: center;
    border-radius: 5px;
    background-color: #ffcccf;
    box-shadow: 0px -5px 0 0px #ff9697 inset;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    text-decoration: none;
}
.c-modal__button:hover {
    margin-top: 25px;
    height: 73px;
    box-shadow: none;
    text-decoration: none !important;
}

a.c-modal__button:focus {
    outline: none;
    transition: 0s;
}

/* Animation */
@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(10%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .c-modal__overlay {
    animation: mmfadeIn 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="false"] .c-modal__container {
    animation: mmslideIn 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="true"] .c-modal__overlay {
    animation: mmfadeOut 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="true"] .c-modal__container {
    animation: mmslideOut 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide .c-modal__container,
.micromodal-slide .c-modal__overlay {
    will-change: transform;
}
