body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6,
pre, code, form, figure, fieldset, legend, input, textarea,
p, blockquote, th, td{
    margin: 0;
    padding: 0;
}

*, *::before, *::after{
    box-sizing: border-box;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
    outline: none;
    color: #000;
}

dl, dt, dd{
    box-sizing: border-box;
}

button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

html{
    font-size: 62.5%;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: 400;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    padding-top: 9rem;
}

button, input, select, textarea{
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.popup-body{
    padding-top: 0;
}

/*ヘッダ*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
}

.popup-header{
    position: static;
}

.header-nav{
    display: flex;
    height: 9rem;
    align-items: stretch;
}

.logo{
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 20px;
}

.logo a {
    display: inline-block;
}

.logo img {
    display: block;
}

.header-phone{
    display: flex;
    align-items: center;
    gap: 3px;
    color: #005693;
    font-size: 2rem;
    font-weight: bold;
    white-space: nowrap;
}

.header-link{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    row-gap: 0.2rem;
    column-gap: 0;
    margin: auto 10px;
    padding: 0;
    font-size: 1.2rem;
}

.header-link li {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 5px;
}

.header-link li a {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.header-link li::before {
    content: "▶";
    display: inline-block;
    margin-right: 3px;
}

.header-link li a:hover{
    text-decoration: underline;
}

.header-button{
    display: flex;
    align-items: stretch;
}

.header-button a{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 9rem;
    height: 100%;
    font-weight: bold;
    color: #fff;
}

.header-button a:hover{
    filter: brightness(1.1);
}

.header-button img{
    display: block;
    height: 25px;
}

.header-apply{
    background-color: #01bb00;
}

.header-mypage{
    background-color: #ff7f00;
}

/*ハンバーガーメニュー*/
.hamburger-button{
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-button div{
    width: 35%;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

.hamburger-nav{
    display: none;
}

.hamburger-nav a{
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/*フッター*/
footer{
    margin-top: auto;
}

.footer-container{
    margin: 40px auto 0;
}

.footer-nav{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: stretch;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav a:hover{
    text-decoration: underline;
}

.footer-nav:first-child{
    border-bottom: 1px #ccc solid;
}

.list-title{
    font-size: 1.6rem;
    font-weight: bold;
    padding: 10px 0 0;
}

.list-child{
    font-size: 1.4rem;
    padding-left: 1.5rem;
}

.list-child li::before{
    content: "▶";
    margin-right: 3px;
}

.list-child li{
    margin: 10px 0;
    text-indent: -1.5rem;
}

.footer-info{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1240px;
    margin: 0 auto;
    font-size: 1.2rem;
    padding: 0 20px;
}

.company{
    display: flex;
    gap: 2rem;
}

.footer-phone{
    color: #fff;
    text-decoration: underline;
}

.footer-info small{
    font-size: 1.2rem;
    white-space: nowrap;
}

/*背景共済ブルー*/
.footer-info-block{
    color: #fff;
    background-color: #005693;
    margin-top: 40px;
    padding: 20px 0;
}

/*共通部分*/
.contact-phone a{
    color: #005693 !important;
    text-decoration: underline !important;
}

/*パンくずリスト*/
.breadcrumbs{
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px;
    font-size: 1.4rem;
    line-height: 1;
}

.breadcrumbs ul{
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    line-height: 1.8;
}

.breadcrumbs li + li::before {
    content: "›";
    margin: 0 8px;
    color: #999;
    align-self: flex-start;
}

.breadcrumbs a{
    color: #0062b1;
    text-decoration: underline;
}

/*960px以下*/
@media screen and (max-width: 960px){
    body{
        padding-top: 7rem;
    }

    /*ヘッダ*/
    .header-nav{
        height: 7rem;
    }

    .logo{
        margin-left: 10px;
    }

    .logo img{
        width: 150px;
    }

    .header-link, .header-phone{
        display: none;
    }

    .header-button{
        margin-left: 10px;
    }

    .header-button a{
        width: 7rem;
        font-size: 1rem;
    }

    .header-button img{
        height: 35%;
    }

    /*ハンバーガーメニュー*/
    .hamburger-button{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 7rem;
        height: 100%;
        font-size: 1rem;
        font-weight: bold;
        color: #fff;
        background-color: #135cb5;
    }

    .hamburger-nav{
        position: fixed;
        top: 7rem;
        right: 0;
        height: calc(100dvh - 7rem);
        width: 0;
        background-color: #e1effb;
        overflow-x: hidden;
        transition: width 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 0;
        z-index: 1000;
    }

    .hamburger-nav a{
        display: block;
        color: #333;
        font-weight: bold;
        padding: 10px 20px;
        border-bottom: 1px #ccc solid;
    }

    .hamburger-nav a:hover{
        background-color: #c8e3fa;
    }

    .hamburger-nav.open {
        width: 90%;
    }

    .hamburger-button.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-button.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger-button.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .overlay {
        position: fixed;
        top: 6rem;
        left: 0;
        width: 100%;
        height: calc(100% - 6rem);
        background-color: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 900;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /*フッター*/
    .footer-container{
        margin: 0 auto;
    }

    .footer-nav{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-info{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .footer-info small{
        font-size: 1rem;
    }

    .sp-display-none{
        display: none;
    }
}