@charset "UTF-8";

/* ------------------------
    ヘッダー
------------------------ */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: #ffffff;
    border-bottom: 2px solid #0F73B5;
    transition: .3s;
}

.header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 80px;
    padding: 10px 0;
    transition: .3s;
    position: relative;
}

.header__logo {
    display: block;
    width: 200px;
    height: 50px;
    white-space: nowrap;
    text-indent: 100%;
    overflow: hidden;
    background: url(./img/logo.svg) no-repeat center/contain;
    margin: 0 20px;
    flex-shrink: 0;
}

.header .global-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 15px 30px;
    padding-right: 20px;
}

.header .global-nav__item {
    position: relative;
}


.header .global-nav__link {
    display: block;
    position: relative;
    text-decoration: none;
    color: #333333;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 5px 0;
    line-height: 1;
}

.header .global-nav__link::before {
    content: '';
    width: 0;
    height: 2px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0F73B5;
    transition: .3s;
}

.header .global-nav__link:hover:before {
    width: 100%;
    transition: .3s;
}

.header .header__btn {
    background-color: #FF5E5E;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid #333333;
    transition: .3s;
}

.header .header__btn::before {
    display: none;
}

.header .header__btn:hover {
    opacity: 0.8;
}


.header .global-nav .sub-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: rgba(15, 115, 181, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
}

.header .global-nav .sub-nav.js-fade {
    opacity: 1;
    pointer-events: auto;
    transition: .3s;
}

.header .global-nav .sub-nav .sub-nav__item+.sub-nav__item {
    margin-top: 5px;
}

.header .global-nav .sub-nav__link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    padding: 2px 0;
    font-size: 1.4rem;
}

@media only screen and (max-width: 1024px) {
    .header__inner {
        height: 60px;
        padding: 0;
    }

    .header__logo {
        background-image: url(./img/logo.svg);
        width: 170px;
        height: 60px;
        margin-right: 0;
        margin-left: 15px;
    }

    .header .global-nav {
        width: 100vw;
        height: calc(100vh - 60px);
        border-left: 0 none;
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateY(calc(-100% - 60px)) translateX(-50%);
        transition: .3s;
        opacity: 0;
    }

    .header .global-nav.js-open {
        transform: translateY(0) translateX(-50%);
        transition: .3s;
        opacity: 1;
    }

    .header .global-nav__list {
        display: block;
        /* ↓ 上の余白を 15px から 40px に広げました */
        padding: 15px;
        margin-top: 10px;
        background-color: #0F73B5;
        height: 100%;
        overflow: scroll;
    }

    .header .global-nav__item {
        margin-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0;
    }

    .header .global-nav__item:last-child {
        border-bottom: none;
    }

    .header .global-nav__link {
        padding: 20px 0;
        color: #fff;
    }

    .header .global-nav__link::before {
        display: none;
    }

    .header .header__btn {
        margin-top: 20px;
        text-align: center;
        border: 2px solid #ffffff;
    }

    .header__hamburger {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 60px;
        height: 60px;
        background-color: transparent;
    }

    .header__hamburger span {
        background-color: #0F73B5;
        width: 30px;
        height: 3px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateY(-50%) translateX(-50%);
        transition: .3s;
    }

    .header__hamburger span::before,
    .header__hamburger span::after {
        content: '';
        background-color: #0F73B5;
        width: 30px;
        height: 3px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: .3s;
    }

    .header__hamburger span::before {
        top: -9px;
    }

    .header__hamburger span::after {
        bottom: -9px;
    }

    .header__hamburger.js-open span {
        background-color: transparent;
        transition: .3s;
    }

    .header__hamburger.js-open span::before {
        top: 1px;
        transition: .3s;
        transform: translateX(-50%) rotate(45deg);
    }

    .header__hamburger.js-open span::after {
        bottom: -1px;
        transition: .3s;
        transform: translateX(-50%) rotate(-45deg);
    }
}

/* ------------------------
    フッター 
------------------------ */
.footer {
    position: relative;
    background-color: #ffffff;
    border-top: 2px solid #0F73B5;
    padding: 80px 15px 20px;
    color: #333333;
    font-size: 1.4rem;
    z-index: 1;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.footer__logo {
    display: block;
}

.footer__info {
    width: 300px;
}

.footer__info p {
    margin-top: 15px;
}

.footer__info p a {
    color: #333333;
}

.footer__sitemap {
    display: flex;
    flex-wrap: wrap;
}

.footer__sitemap .sitemap-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 20px 80px;
    margin-left: 60px;
}

.footer__sitemap .sitemap-list__item {
    margin-top: 0;
}

.footer__sitemap .sitemap-list__link {
    display: block;
    position: relative;
    padding-left: 0;
    color: #333333;
    line-height: 1;
}

.footer__sitemap .sitemap-list__link::before {
    display: none;
}

.footer__sitemap .sitemap-list__link:hover {
    color: #0F73B5;
}

.footer__sitemap .sitemap-list__sub {
    margin-top: 20px;
}

.footer__sitemap .sitemap-list__sub li {
    padding-left: 10px;
}

.footer__sitemap .sitemap-list__sub li+li {
    margin-top: 10px;
}

.footer__sitemap .sitemap-list__sub li a {
    display: block;
    position: relative;
    padding-left: 15px;
    line-height: 1.5;
    text-decoration: none;
    color: #333333;
}

.footer__sitemap .sitemap-list__sub li a::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 1px;
    background-color: #333333;
    left: 0;
    top: calc(50% - 0.5px);
}

.footer__sitemap .sitemap-list__sub li a:hover {
    color: #0F73B5;
}

.footer__copy {
    margin-top: 80px;
    text-align: center;
    font-size: 1.4rem;
    color: #0F73B5;
}

@media only screen and (max-width: 768px) {
    .footer {
        background-color: #ffffff;
        border-top: 2px solid #0F73B5;
        padding: 40px 0 20px;
        color: #333333;
    }

    .footer__info {
        width: 200px;
        margin: 0 auto;
    }

    .footer__info p a {
        color: #333333;
    }

    .footer__sitemap {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        border-top: 1px solid #e5e5e5;
        margin-top: 20px;
    }

    .footer__sitemap .sitemap-list {
        display: block;
        width: 100%;
        margin-left: 0;
    }

    .footer__sitemap .sitemap-list__item {
        position: relative;
        margin-top: 0;
        padding: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .footer__open {
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 56px;
    }

    .footer__open::before {
        content: '';
        position: absolute;
        top: calc(50% - 4px);
        left: 50%;
        transform: translateY(-50%) translateX(-50%) rotate(135deg);
        width: 12px;
        height: 12px;
        border-top: 2px solid #333333;
        border-right: 2px solid #333333;
        transition: .3s;
    }

    .footer__open.js-open::before {
        top: calc(50%);
        transform: translateY(-50%) translateX(-50%) rotate(-45deg);
        transition: .3s;
    }

    .footer__sitemap .sitemap-list__link {
        display: block;
        position: relative;
        padding: 20px 15px;
        color: #333333;
        line-height: 1;
    }

    .footer__sitemap .sitemap-list__link::before {
        display: none;
    }

    .footer__sitemap .sitemap-list__link:hover {
        color: unset;
    }

    .footer__sitemap .sitemap-list__sub {
        display: none;
        margin-top: 0;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .footer__sitemap .sitemap-list__sub li a {
        color: #333333;
    }

    .footer__sitemap .sitemap-list__sub li a::before {
        background-color: #333333;
    }

    .footer__copy {
        margin-top: 60px;
        text-align: center;
        font-size: 1.4rem;
        color: #0F73B5;
    }
}

/* ------------------------
    フローティングバナー 
------------------------ */
.floating-banners {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    padding: 15px 5px;
    text-decoration: none;
    color: #ffffff;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    transition: .3s;
}

.floating-banner:hover {
    opacity: 0.9;
    transform: translateX(-5px);
    color: #ffffff;
}

.floating-banner--contact {
    background-color: #FF5E5E;
}

.floating-banner--request {
    background-color: #FFA726;
}

.floating-banner__text {
    writing-mode: vertical-rl;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.floating-banner__icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-banner__icon svg {
    width: 100%;
    height: 100%;
    stroke: #ffffff;
    fill: none;
}

@media only screen and (max-width: 768px) {
    .floating-banners {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        gap: 0;
    }

    .floating-banner {
        flex-direction: row;
        justify-content: center;
        width: 50%;
        padding: 15px 10px;
        border-radius: 0;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    .floating-banner:hover {
        transform: none;
    }

    .floating-banner__text {
        writing-mode: horizontal-tb;
        font-size: 1.3rem;
        letter-spacing: 0;
        margin-bottom: 0;
        margin-right: 8px;
    }

    .floating-banner__icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}