@import url("../fonts.css");
:root {
    --gray-links: #828282;
    --hover-links: #313131;
    --active-links: #4f4f4f;
    --main-large-width: 1440px;
    --main-red: #b81c22;
    --red-hover: #961c21;
    --extra-dark-gray: #353940;
    --dark-color: #3c3c3e;
    --dark-gray: #454b53;
    --white: #fff;
    --light-gray: #5c6168;
    --extra-light-gray: #dee0eb;
    --beige-color: #beb098;
    --beige-color-rgb: 190, 176, 152;
    --beige-hover: #886b3b;
    --beige-hover-rgb: 136, 107, 59;
    --light-pink: rgba(255, 203, 203, 0.25);
    --body-color: #f6f7f9;
    --mr-gray-100: #f2f2f2;
    --mr-gray-500: #4f4f4f;
    --mr-gray-700: #444b54;
    --section-padding: 6rem;
    /* BS override */
    --bs-body-font-family: "Hiragino Mincho Pro", var(--bs-font-sans-serif);
    --bs-body-font-size: 16px;
    --custom-font-family: "Noto Sans JP";
    --container-width: 1140px;
    --gray-box-shadow: #6c73811a;
    --gray-shadow-light: #b9c1d033;
    --light-red: #e26258;
    --color-g4: #BDBDBD;
}

html {
    font-size: var(--bs-body-font-size);
}
.rounded-4 {
    border-radius: 0.5rem;
}
.container,
.container-lg {
    max-width: 1200px;
}
body {
    background: var(--body-color);
}
h1, .h1, h2, .h2 {
    font-family: var(--bs-body-font-family);
}
h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: "Noto Sans JP", var(--bs-font-sans-serif);
    line-height: 1.5;
    font-weight: 700;
}
a, p, li {
    font-family: "Noto Sans JP", var(--bs-font-sans-serif);
}
/* Main style */
.title_underlined {
    color: var(--hover-links);
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 40px;
    padding-bottom: 44px;
    position: relative;
    text-align: center;
}
.title_underlined:before,
.title_underlined:after {
    content: "";
    position: absolute;
    width: 72px;
    height: 4px;
}

.title_underlined:before {
    right: calc(50% - 7px);
    background-color: var(--main-red);
    bottom: 10px;
}

.title_underlined:after {
    left: calc(50% - 7px);
    background-color: var(--beige-color);
    bottom: 0;
}

.title_highlight {
    text-decoration: underline;
    -webkit-text-decoration-color: var(--light-pink);
    text-decoration-color: var(--light-pink);
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 11px;
    text-underline-offset: -6px;
    color: var(--active-links);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-underline-position: from-font;
}

.page-content {
    color: var(--active-links);
}

.page-text {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 300;
}

.top-btn-wrapper {
    position: fixed;
    width: 100%;
    z-index: 1;
    bottom: 100px;
}

.top-btn {
    position: absolute;
    right: -1.8rem;
    pointer-events: none;
    opacity: 0;
    transition: 0.4s all ease-in-out;
}
.object-fit-cover.object-fit-cover {
    -o-object-fit: cover;
    object-fit: cover;
}

.object-fit-fill.object-fit-fill {
    -o-object-fit: fill;
    object-fit: fill;
}

@media screen and (max-width: 991px) {
    .title_underlined {
        padding-bottom: 24px;
        font-size: 1.75rem;
    }

    .title_underlined:before {
        right: calc(50% - 14px);
        width: 60px;
    }

    .title_underlined:after {
        left: calc(50% - 14px);
        width: 60px;
    }

    .title_highlight {
        font-size: 1.125rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .page-content {
        padding-bottom: 2.75em;
    }

    .top-btn {
        right: 11px;
    }

    body.no-scroll {
        height: 100%;
        overflow: hidden;
    }
}

@media screen and (min-width: 992px) {
    .title_underlined {
        letter-spacing: 0.2em;
    }

    .container,
    .container-lg {
        max-width: var(--container-width);
    }
}

/* Banner */

/* .banner {
    height: 608px;
} */

.small-banner .banner {
    height: 380px;
}

.banner .img-wrapper {
    height: 100%;
}

.banner img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

@media screen and (max-width: 991px) {
    .banner {
        height: 521px;
    }
}

/* Menu links */
.menu-desktop ul {
    display: flex;
    margin-bottom: 0;
}

.menu-desktop a,
.menu-drawer a {
    color: var(--mr-gray-500);
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    display: block;
    padding: 36px var(--nav-item-padding-x, 1rem);
}

.menu-desktop li:first-child .menu-link:after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: solid 2px var(--gray-links);
    border-left: solid 2px var(--gray-links);
    transform-origin: 11% 30%;
    transform: rotate(-135deg);
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.menu-desktop .menu-link.active {
    color: var(--hover-links);
    position: relative;
    font-weight: bold;
}

.menu-desktop .menu-link.active::before {
    content: "";
    border-bottom: var(--main-red) solid 4px;
    width: 100%;
    bottom: 0;
    position: absolute;
    right: 0;
    left: 0;
}

.menu-desktop li:first-child .menu-link.active::after {
    border-color: var(--hover-links);
}

.menu-desktop a:hover,
.menu-drawer a:hover {
    color: var(--hover-links);
    font-weight: 600;
}

.menu-drawer {
    opacity: 0;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 82px;
    z-index: 1;
    background: var(--white);
    transition: opacity ease-in-out 0.5s;
    pointer-events: none;
}

.menu-drawer .menu-wrapper {
    border-top: 1px solid var(--main-red);
    height: 100%;
    overflow: scroll;
}

.menu-drawer a {
    font-size: 1.25rem;
    padding: 28.5px 51px;
}

.menu-drawer a.active {
    color: var(--hover-links);
    font-weight: 600;
}

.menu-drawer li {
    border-bottom: 1px solid var(--extra-light-gray);
}

.menu-toggle {
    position: relative;
    z-index: 10;
}

.menu-toggle .open-icon {
    transition: 0.3s ease-in-out all;
    fill: none;
    stroke: #454b53;
    stroke-width: 2px;
}

.close-icon {
    opacity: 0;
    position: absolute;
    right: 6px;
    bottom: 0;
    transition: 0.3s ease-in-out all;
}

.menu-drawer.active {
    opacity: 1;
    pointer-events: all;
}

.menu-toggle.active .close-icon {
    opacity: 1;
}

.menu-toggle.active .open-icon {
    opacity: 0;
}

/* Header */
.header {
    background: var(--white);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 101;
}

.header-content {
    margin: 0 auto;
}

.header .logo-wrapper img,
.header .logo-wrapper svg {
    max-width: 253px;
}

.header .logo-wrapper svg {
    height: 75px;
    width: auto;
}

.header .dropdown {
    position: relative;
    --nav-item-padding-x: 1rem;
}

.header .dropdown .nav-item {
    padding: 10px 5px 28px 80px;
    border: none;
}

.header .dropdown .nav-link {
    font-size: 1rem;
    padding: 0 0 0 45px;
    transition: background-color 0.5s ease-in;
    position: relative;
}

.header .dropdown .nav-link.active {
    font-weight: 600;
}

.header .dropdown .nav-link.active svg path {
    fill: var(--main-red);
}

.header .dropdown .nav-link:hover {
    color: var(--hover-links);
}

.header .dropdown .nav-link:hover svg path {
    fill: var(--main-red);
}

.header .dropdown svg {
    height: 24px;
    width: 32px;
    margin-right: 0.25rem;
}

.header .dropdown .navbar-toggle-wrapper {
    border: none;
    position: relative;
    display: flex;
    align-items: center;
}

.header .dropdown .navbar-toggler {
    display: inline-block;
    padding: 9px 10px;
    background: var(--body-color);
    border: 1px solid var(--extra-light-gray);
    margin-left: 20px;
    border-radius: 2px;
}

.header .dropdown .navbar-toggle-wrapper a {
    padding-right: 0;
}

.header .dropdown .navbar-toggler[aria-expanded="true"] + a {
    color: var(--hover-links);
    font-weight: 600;
}

.header .dropdown .navbar-toggler:after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: solid 2px var(--gray-links);
    border-left: solid 2px var(--gray-links);
    transform-origin: 11% 30%;
    transform: rotate(-135deg);
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.header .dropdown .navbar-toggler-wrapper:focus {
    box-shadow: none;
}

@media screen and (max-width: 991px) {
    .header {
        border-bottom: 1px solid var(--main-red);
        padding: 0 20px;
    }

    .header .logo-wrapper {
        position: relative;
        z-index: 10;
    }

    .header .logo-wrapper img,
    .header .logo-wrapper svg {
        max-width: 150px;
    }

    .header .logo-wrapper svg {
        height: 50px;
    }

    .header .dropdown svg {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media screen and (min-width: 992px) {
    .header {
        box-shadow: 0 3px 6px #00000029;
    }

    .header .dropdown .navbar-collapse {
        position: absolute;
        top: 100%;
        background: var(--white);
        padding: 16px 0;
        box-shadow: 0 4px 12px #737e931f;
        right: var(--nav-item-padding-x);
    }

    .header .dropdown .nav-item {
        padding: 0;
    }

    .header .dropdown .nav-link {
        padding: 14px 20px;
    }

    .header .dropdown .nav-link:hover {
        background: var(--mr-gray-100);
    }

    .header .dropdown:hover a {
        color: var(--hover-links);
    }

    .header .dropdown:hover > a:before {
        content: none;
    }

    .header .dropdown:hover > a:after {
        border-color: var(--hover-links);
    }

    .header .dropdown:hover .navbar-collapse {
        display: block;
        border-top: 2px solid var(--main-red);
    }

    .header .dropdown:hover ~ li > a:before {
        content: none;
    }
}

/* Footer */

.footer {
    padding-top: 64px;
    background: var(--white);
    /* font-size: 0.875rem; */
}

.footer-content {
    margin: 0 auto;
}

.footer .footer-top {
    border-bottom: var(--beige-color) solid 1px;
}

.footer li {
    color: var(--active-links);
    max-width: 355px;
}

.footer .menu-wrapper a {
    color: var(--active-links);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
}

/* .footer .menu-wrapper a.active {
    font-weight: bold;
} */

.footer .menu-wrapper li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
}

.footer .logo-wrapper {
    margin-bottom: 36.5px;
}

.footer .logo-wrapper img {
    max-width: 196px;
}

.contact-info li {
    position: relative;
    padding-left: 37px;
    margin-bottom: 16px;
}

.contact-info svg {
    position: absolute;
    left: 0;
    top: 8px;
}

.footer .copyright p {
    font-size: 1rem;
    color: var(--active-links);
}

.footer .copyright a {
    font-size: 1rem;
    color: var(--active-links);
    text-decoration: none;
}

.footer .navbar-toggler-wrapper {
    padding: 0;
    border: none;
}

@media screen and (max-width: 991px) {
    .footer {
        padding: 30px 0;
        position: relative;
    }

    .footer:before {
        content: "";
        position: absolute;
        top: 0;
        left: 2px;
        right: 2px;
        height: 2px;
        background: var(--beige-color);
    }

    .footer:after {
        content: "";
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%) rotate(-45deg);
        border-top: 8px solid transparent;
        border-right: 8px solid transparent;
        transform-origin: 50% 50%;
        border-left: var(--beige-color) 8px solid;
        border-bottom: var(--beige-color) 8px solid;
    }

    .footer .logo-wrapper {
        text-align: center;
    }

    .footer .logo-wrapper img {
        max-width: 190px;
    }

    .footer .footer-top {
        margin: 0 auto;
        border-bottom: none;
        padding: 0 26px;
    }

    .footer .footer-bottom {
        border-top: var(--beige-color) solid 1px;
        padding: 0 21px;
    }

    .footer .footer-bottom p:first-child {
        font-weight: 600;
    }

    .footer .footer-top > div:first-child {
        background: var(--body-color);
        margin: 0 0 40px;
        padding: 32px 16px 9px;
    }

    .contact-info li {
        font-size: 0.875rem;
    }

    .footer .menu-wrapper ul {
        display: flex;
        justify-content: center;
        -moz-column-gap: 30px;
        column-gap: 30px;
        flex-wrap: wrap;
    }

    .footer .menu-wrapper li {
        margin-bottom: 20px;
        padding: 0;
    }

    .footer .menu-wrapper a {
        font-size: 0.75rem;
    }

    .footer .copyright {
        text-align: center;
    }

    .footer .copyright p {
        font-size: 0.875rem;
    }
}

@media screen and (min-width: 992px) {
    .footer .contact-info ul {
        padding-left: 20px;
    }
    .footer .menu-wrapper li:before {
        content: "";
        position: absolute;
        background: var(--beige-color);
        width: 5px;
        height: 5px;
        transform: rotate(45deg) translateY(-50%);
        transform-origin: 50% 50%;
        left: 0;
        top: 50%;
    }
}
.block-section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}
