@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap');

html {
    scroll-behavior: smooth;
}
body {
    font-family: "Zen Maru Gothic",sans-serif;
    background: #FFEFCB;
    display: grid;
    grid-template-rows: 1fr auto;
}

.pc {
    display: none;
}
.sp {
    display: block;
}

.content-inner {
    width: 84%;
    max-width: 950px;
    margin-inline: auto;
}

/* common header */
.common-header {
    background: rgb(255 255 255/.8);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    container-type: inline-size;
    container-name: common-header;
}
.common-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;    
    margin-inline: auto;
    padding-inline: 6px;
}
.common-header__logo {
    width: 69px;
}
.common-header__nav {
    display: flex;
    align-items: center;
    gap: 13px;
}
.common-header__nav__list {
    display: flex;
    align-items: center;
}
.common-header__nav__list__items + .common-header__nav__list__items {
    margin-left: 24px;
}
.common-header__nav__list__items:has(.common-header__nav__btn--trial) {
    margin-left: 28px;
}
.common-header__nav__list__items:has(.common-header__nav__btn--inquiry) {
    margin-left: 10px;
}
.common-header__nav__link {
    color: #000;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.43;
    letter-spacing: -.02em;
    text-decoration: none;
    transition: .3s;
    &:hover {
        opacity: .5;
    }
}
.common-header__nav__btn {
    display: block;
    color: #fff;
    padding: 5px 11px 6px;
    border-radius: 10vh;
}
.common-header__nav__btn--trial,
.hbg__list__link__btn--trial {
    background: #8FC221;
}
.common-header__nav__btn--inquiry,
.hbg__list__link__btn--inquiry {
    background: #F063A4;
}
.hbg-btn {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: #706464;
    border: 0;
    border-radius: 6px;
    padding-block: 10px;
    span {
        display: block;
        background: #fff;
        width: 26px;
        height: 3px;
        border-radius: 10vh;
    }
}
.hbg-btn--close {
    position: absolute;
    top: 4px;
    right: 6px;
}
.hbg-btn--close span {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    &:first-child {
        rotate: 45deg;
    }
    &:last-child {
        rotate: -45deg;
    }
}
.hbg {
    pointer-events: none;
    user-select: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 100vw;
    width: 100%;
    height: 100dvh;
    background: #706464;
    transition: .3s;
    visibility: hidden;
}
.hbg.open {
    pointer-events: auto;
    user-select: auto;
    translate: -100vw;
    visibility: visible;
}
.hbg_inner {
    width: 66.66%;
    margin-inline: auto;
    padding-top: 52px;
}
.hbg__list__items + .hbg__list__items {
    border-top: 1px solid #fff;
}
.hbg__list__link {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
    letter-spacing: -.02em;
    text-align: center;
    text-decoration: none;
    display: block;
    padding-block: 13px;
}
.hbg__list__items:has(.hbg__list__link__btn--trial),
.hbg__list__items:has(.hbg__list__link__btn--inquiry) {
    border: 0;
}
.hbg__list__items:has(.hbg__list__link__btn--trial) {
    margin-top: 24px;
}
.hbg__list__items:has(.hbg__list__link__btn--inquiry) {
    margin-top: 10px;
}
.hbg__list__link__btn {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    padding: 8px 0 10px;
    border-radius: 10vh;
}

.common-btn {
    display: block;
    max-width: 262px;
    margin-inline: auto;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    padding-block: 9px 12px;
    border-radius: 10vh;
    position: relative;
    span {
        display: inline-block;
        width: 15px;
        height: 16px;
        background: url(../img/common/ico_btn-arrow.webp) no-repeat center/cover;
        margin-left: 18px;
        vertical-align: -2px;
        transition: .3s;
    }
    &::before {
        content: "";
        display: block;
        width: 102.3%;
        height: 107.14%;
        position: absolute;
        left: 50%;
        top: 2px;
        translate: -50% 0;
        border-radius: 10vh;
        z-index: -1;
    }
    &:hover span {
        translate: 6px;
    }
}

/* common footer */
.common-footer {
    background: #fff;
    padding-block: 13px 31px;
}
.common-footer__banner-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 7px;
    width: 68.93%;
    max-width: 950px;
    position: fixed;
    bottom: 64px;
    left: 50%;
    translate: -50%;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    &.show {
        opacity: 1;
        .common-footer__banner-btn {
            pointer-events: auto;
        }
    }
}
.common-footer__banner-btn {
    transition: .3s;
    &:active {
        opacity: .5;
    }
}
.common-footer__nav {
    margin-bottom: 37px;
}
.common-footer__nav__list {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.common-footer__nav__link {
    color: #000;
    font-size: 11px;
    text-decoration: none;
    transition: .3s;
    &:hover {
        opacity: .5;
    }
}
.copyrights {
    color: #5F5F5F;
    font-size: 10px;
    text-align: center;
}
.common-footer__to-top-btn-wrapper {
    position: fixed;
    width: 96%;
    max-width: 950px;
    height: 36px;
    left: 50%;
    translate: -50%;
    bottom: 18px;
    z-index: 900;
    pointer-events: none;
}
.common-footer__to-top-btn {
    display: block;
    margin-left: auto;
    width: 36px;
    height: 36px;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: .3s;
    &.show {
        opacity: 1;
        pointer-events: auto;
        user-select: auto;
    }
    &:active {
        opacity: .5;
    }
}

/* subpage-header */
.subpage-header {
    padding-block: 53px 33px;
    background: url(../img/common/bg_subpage-header.webp) repeat-x center bottom/1000px auto;
}
.subpage-header__ttl-wrapper {
    width: 84.27%;
    margin-inline: auto;
}
.subpage-header__ttl-en {
    color: #fff;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.4;
}
.subpage-header__ttl {
    font-size: 12px;
    font-weight: 700;
}

/* breadcrumb */
.breadcrumb {
    display: flex;
    gap: 19px;
    width: 82.4%;
    margin: 19px auto 32px;
}
.breadcrumb__items {
    font-size: 10px;
    display: -webkit-box;             
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;;
    -webkit-line-clamp: 1; 
    &+&::before {
        content: "＞";
        margin-right: 12px;
    }
    &:last-child {
        flex: 1;
    }
}
.breadcrumb__link {
    color: #000;
    text-decoration: none;
    transition: .3s;
    &:hover {
        opacity: .5;
    }
}

/* recaptcha */
.grecaptcha-badge {
    visibility: hidden;
}

@media(min-width:751px) {
    .sp {
        display: none;
    }
    .pc {
        display: block;
    }
    .common-header .sp {
        display: block;
        &.hbg-btn {
            display: grid;
        }
    }
    .common-header .pc {
        display: none;
    }

    /* subpage-header */
    .subpage-header {
        padding-block: 105px 66px;
        background-size: 2000px auto;
    }
    .subpage-header__ttl-wrapper {
        max-width: 950px;
    }
    .subpage-header__ttl-en {
        font-size: 70px;
    }
    .subpage-header__ttl {
        font-size: 24px;
    }

    /* breadcrumb */
    .breadcrumb {
        gap: 26px;
        max-width: 950px;
        margin: 43px auto 63px;
    }
    .breadcrumb__items {
        font-size: 16px;
        &+&::before {
            margin-right: 20px;
        }
    }

    .common-btn {
        max-width: 344px;
        font-size: 20px;
        padding-block: 12px 14px;
        span {
            width: 19px;
            height: 21px;
            background: url(../img/common/ico_btn-arrow.webp) no-repeat center/cover;
            margin-left: 11px;
            vertical-align: -2px;
        }
        &::before {
            content: "";
            display: block;
            width: 102.3%;
            height: 107.14%;
            position: absolute;
            left: 50%;
            top: 2px;
            translate: -50% 0;
            border-radius: 10vh;
            z-index: -1;
        }
    }
    
    .common-footer {
        padding-block: 30px 29px;
    }
    .common-footer__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 522px;
        margin-inline: auto;
    }
    .common-footer__banner-list {
        width: 100%;
        grid-template-columns: 1fr;
        bottom: 97px;
    }
    .common-footer__banner-btn {
        display: block;
        max-width: 200px;
        margin-inline: auto 0;
        transition: .3s;
        &:hover {
            opacity: .5;
        }
    }
    .common-footer__nav {
        margin: 0;
    }
    .common-footer__nav__link {
        font-size: 12px;
    }
    .copyrights {
        font-size: 12px;
    }
    .common-footer__to-top-btn-wrapper {
        height: 54px;
    }
    .common-footer__to-top-btn {
        width: 54px;
        height: 54px;
        &:hover {
            opacity: .5;
        }
    }
}
@container common-header (min-width:1080px) {
    .common-header__inner {
        padding-inline: 13px 28px;
    }
    .common-header .sp {
        display: none;
        &.hbg-btn {
            display: none;
        }
    }
    .common-header .pc {
        display: block;
    }
    .common-header__logo {
        width: 138px;
    }
    .common-header__nav__link {
        font-size: 14px;
    }
    .common-header__nav__btn {
        padding: 5px 14px 6px;
    }
}