/*====================================================================================================

　CSS構成

　//絶対に変更しないCSS
　- reset.css           全てのブラウザ固有CSSをリセットするCSS。基本触らないこと。
　- bootstrap.min.css   Bootstrapコンポーネントを利用するためのCSS。基本触らないこと。
　- all.min.css         Font Awesome 6 を利用するためのCSS。基本触らないこと。

　//基本的には変更しないCSS
　- base.css            基本の文字設定や、Webフォントの読み込みなど。基本触らなくてもOK。

　//メインで利用しているCSS
　- common.css          ヘッダー、フッター、下層ページのタイトルなど、共通ページレイアウトを記載したCSS
　- layout.css          各ページ固有のレイアウトを記載したCSS

　//補助的に利用しているCSS
　- module.css          見出しやリスト、テーブルなど、共通利用できるパーツをまとめたCSS
　- utility.css         マージンやパディング、文字サイズや文字色など、補助的に利用できるCSS

====================================================================================================*/



/*------------------------------------------------------------------
　header
------------------------------------------------------------------*/

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

/*  header-container
------------------------------------------------------------------*/
.header-container{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    column-gap: 15px;
    max-width: 1330px;
    padding: 30px 15px;
    margin: 0 auto;
    transition: .2s;
}
.header-container.scroll{
    padding: 10px 15px 0;
}
@media screen and (max-width:1399px){
    .header-container{
        padding: 20px 15px;
    }
}
@media screen and (max-width:991px){
    .header-container,
    .header-container.scroll{
        align-items: center;
        padding: 0 0 0 10px;
    }
}

/*  header-logo
------------------------------------------------------------------*/
.header-logo{
    margin-bottom: 15px;
    line-height: 1;
}
@media screen and (max-width:1399px){
    .header-logo{
        width: 260px;
    }
}
@media screen and (max-width:991px){
    .header-logo{
        width: 160px;
        margin-bottom: initial;
    }
}

/*  header-right
------------------------------------------------------------------*/
.header-right{
    flex-shrink: 0;
}
@media screen and (max-width:991px){
    .header-right{
        position: fixed;
        top: 0;
        left: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 250px;
        height: 100vh;
        padding-top: 50px;
        padding-bottom: 150px;
        background: #fff;
        overflow-y: scroll;
        transition: .2s;
        z-index: 1;
    }
    .header-right.is-show{
        transform: translateX(-100%);
    }
    .header-right::-webkit-scrollbar{
        display: none;
    }
}

/*  header-contact
------------------------------------------------------------------*/
.header-contact{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    column-gap: 12px;
    margin-bottom: 20px;
}
@media screen and (max-width:991px){
    .header-contact{
        order: 2;
        flex-direction: column-reverse;
        row-gap: 10px;
        width: 100%;
        padding: 15px;
        margin-bottom: initial;
    }
    .header-contact > li{
        width: 100%;
    }
}

/*  header-contact-btn
------------------------------------------------------------------*/
.header-contact-btn{
    display: block;
    width: 180px;
    padding: 10px 15px;
    border: 1px solid #123551;
    border-radius: 2.5em;
    color: #123551;
    text-align: center;
    line-height: 1;
    transition: .2s;
}
a.header-contact-btn:hover{
    background: #123551;
    color: #fff;
}
@media screen and (max-width:991px){
    .header-contact-btn{
        width: 100%;
        font-size: 1rem;
    }
}

/*  header-nav
------------------------------------------------------------------*/
.header-nav{
    display: flex;
    align-items: center;
    column-gap: 40px;
}
.header-nav > li{
    position: relative;
}
.header-nav > li > a{
    position: relative;
    display: block;
    padding-bottom: 15px;
    line-height: 1;
    transition: .2s;
    z-index: 1;
}
.header-nav > li > a::after{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #a92626;
    content: "";
    transition: .2s;
    z-index: 1;
}
/* アクティブ時動作 */
.header-nav > li > a.active{
    color: #a92626;
}
.header-nav > li > a.active::after{
    width: 100%;
}
/* ホバー時動作 */
.header-nav > li > a:hover{
    color: #a92626;
}
.header-nav > li > a:hover::after{
    width: 100%;
}
@media screen and (max-width:991px){
    .header-nav{
        order: 1;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    .header-nav > li{
        width: 100%;
    }
    .header-nav > li > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #ccc;
        color: #333;
    }
    .header-nav > li > a::before{
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: bold;
        line-height: 1;
        transition: .2s;
    }
    .header-nav > li > a::after{
        display: none;
    }
    /* アクティブ時動作 */
    .header-nav > li > a.active::before{
        right: 5px;
    }
    /* ホバー時動作 */
    .header-nav > li > a:hover::before{
        right: 5px;
    }
}

/*  hamburger
------------------------------------------------------------------*/
.hamburger{
    display: none;
}
@media screen and (max-width:991px){
    .hamburger {
        position: relative;
        flex-shrink: 0;
        display: block;
        width: 54px;
        height: 50px;
        cursor: pointer;
        z-index: 1;
    }
    .hamburger .inner-line {
        display: block;
        position: absolute;
        left: 8px;
        width: 34px;
        height: 2px;
        background-color: #123551;
        border-radius: 2px;
        transition: .2s;
    }
    .hamburger #line1 {
        top: 12px;
    }
    .hamburger #line2 {
        top: 24px;
    }
    .hamburger #line3 {
        top: 36px;
    }
    .hamburger .inner-line.open#line1 {
        transform: rotate(-45deg);
        top: 24px !important;
    }
    .hamburger .inner-line.open#line2 {
        opacity: 0;
    }
    .hamburger .inner-line.open#line3 {
        transform: rotate(45deg);
        top: 24px !important;
    }
}


/*------------------------------------------------------------------
  footer
------------------------------------------------------------------*/
footer{
    position: relative;
    padding: 80px 0;
    background: url(../images/common/footer-bg.jpg) no-repeat center/ cover;
    color: #fff;
    z-index: 1;
}
@media screen and (max-width:991px){
    footer{
        padding: 60px 0;
        background: #123551;
    }
}

/*  footer-wrapper
------------------------------------------------------------------*/
.footer-wrapper{
    display: flex;
    justify-content: space-between;
    column-gap: 30px;
    margin-bottom: 70px;
}
@media screen and (max-width:767px){
    .footer-wrapper{
        flex-direction: column;
        align-items: center;
        row-gap: 50px;
        margin-bottom: 50px;
    }
}

/*  footer-corporation
------------------------------------------------------------------*/
@media screen and (max-width:767px){
    .footer-corporation{
        text-align: center;
    }
}

/*  footer-logo
------------------------------------------------------------------*/
.footer-logo{
    margin-bottom: 24px;
}

/*  footer-address
------------------------------------------------------------------*/
.footer-address{
    font-size: 0.875rem;
    line-height: 1.5;
}
@media screen and (max-width:350px){
    .footer-address{
        font-size: 0.75rem;
    }
}

/*  footer-right
------------------------------------------------------------------*/
.footer-right{
    flex-shrink: 0;
}
@media screen and (max-width:767px){
    .footer-right{
        width: 100%;
    }
}

/*  footer-nav
------------------------------------------------------------------*/
.footer-nav{
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: 64px;
    row-gap: 24px;
}
.footer-nav > li > a{
    position: relative;
    display: block;
    font-size: 0.875rem;
    line-height: 1;
}
@media screen and (max-width:767px){
    .footer-nav{
        width: 100%;
        max-width: 500px;
        column-gap: 10px;
        row-gap: 10px;
    }
    .footer-nav > li > a{
        padding: 10px;
        border: 1px solid #999;
    }
    .footer-nav > li > a::before{
        position: absolute;
        top: 50%;
        right: 6px;
        transform: translateY(-50%);
        content: "\f105";
        margin-right: 0;
        font-family: "Font Awesome 6 Free";
        font-weight: bold;
    }
}
@media screen and (max-width:575px){
    .footer-nav > li{
        width: 100%;
    }
}

/*  footer-banner-list
------------------------------------------------------------------*/
.footer-banner-list{
    display: flex;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 15px;
    margin-bottom: 60px;
}
@media screen and (max-width:1199px){
    .footer-banner-list{
        justify-content: center;
    }
}
@media screen and (max-width:767px){
    .footer-banner-list{
        flex-direction: column;
        align-items: center;
    }
}

/*  copyright
------------------------------------------------------------------*/
.copyright{
    font-size: 12px;
    color: #ccc;
    text-align: center;
}
@media screen and (max-width:767px){
    .copyright{
        text-align: center;
    }
}


/*-----------------------------------------------------------------
  common contact
------------------------------------------------------------------*/

/*  common-contact-section
------------------------------------------------------------------*/
.common-contact-section{
    padding-bottom: 80px;
    background: url(../images/common/bg-spikes.png) repeat;
    overflow: hidden;
}
@media screen and (max-width:1399px){
    .common-contact-section{
        padding-bottom: 60px;
    }
}
@media screen and (max-width:991px){
    .common-contact-section{
        padding-bottom: 0;
        background: initial;
    }
}

/*  common-contact-image
------------------------------------------------------------------*/
.common-contact-image{
    position: relative;
    width: 100vw;
    height: 500px;
    margin: 0 calc(50% - 50vw);
    z-index: 1;
}
.common-contact-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media screen and (max-width:1399px){
    .common-contact-image{
        height: 400px;
    }
}
@media screen and (max-width:1199px){
    .common-contact-image{
        height: 300px;
    }
}
@media screen and (max-width:991px){
    .common-contact-image{
        height: 200px;
    }
}

/*  common-contact-box
------------------------------------------------------------------*/
.common-contact-box{
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-top: 80px;
    padding-left: 80px;
    padding-bottom: 80px;
    margin-top: -120px;
    background: #fff;
    z-index: 2;
}
.common-contact-box::after{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: #fff;
    content: "";
    z-index: -1;
}
@media screen and (max-width:1199px){
    .common-contact-box{
        padding-top: 60px;
        padding-left: 60px;
        padding-bottom: 60px;
        margin-top: -100px;
    }
}
@media screen and (max-width:991px){
    .common-contact-box{
        flex-direction: column;
        padding: 40px 0 60px;
        margin-top: initial;
    }
}

/*  common-contact-item
------------------------------------------------------------------*/
.common-contact-item{
    display: flex;
    align-items: center;
    column-gap: 60px;
}
@media screen and (max-width:1199px){
    .common-contact-item{
        column-gap: 30px;
    }
}
@media screen and (max-width:991px){
    .common-contact-item{
        justify-content: center;
    }
}
@media screen and (max-width:767px){
    .common-contact-item{
        flex-direction: column;
        row-gap: 30px;
        align-items: center;
    }
}

/*  common-contact-tel
------------------------------------------------------------------*/
.common-contact-tel{
    font-size: 1rem;
    font-weight: bold;
    color: #123551;
    line-height: 1;
}
.common-contact-tel span{
    font-size: 2.25rem;
}
@media screen and (max-width:767px){
    .common-contact-tel span{
        font-size: 1.75rem;
    }
}

/*  common-contact-mail
------------------------------------------------------------------*/
.common-contact-mail{
    display: block;
    padding: 30px 40px;
    border: 1px solid #123551;
    border-radius: 3em;
    font-size: 1.125rem;
    color: #123551;
    line-height: 1;
    transition: .2s;
}
.common-contact-mail:hover{
    background: #123551;
    color: #fff;
}
@media screen and (max-width:767px){
    .common-contact-mail{
        font-size: 1rem;
    }
}

/*-----------------------------------------------------------------
  common page-top
------------------------------------------------------------------*/

/*  page-top-section
------------------------------------------------------------------*/
.page-top-section{
    position: relative;
    padding: 100px 0;
    background: url(../images/common/bg-spikes-blue.png) repeat;
    z-index: 1;
}
@media screen and (max-width:991px){
    .page-top-section{
        padding: 80px 0;
    }
}
@media screen and (max-width:575px){
    .page-top-section{
        padding: 60px 0;
    }
}

/*  page-top-title
------------------------------------------------------------------*/
.page-top-title{    
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}
@media screen and (max-width:991px){
    .page-top-title{
        font-size: 1.75rem;
    }
}
@media screen and (max-width:767px){
    .page-top-title{
        font-size: 1.5rem;
    }
}

/*------------------------------------------------------------------
  paging
------------------------------------------------------------------*/
.paging{
    display: flex;
    justify-content: center;
    margin: 0 -10px;
    padding: 30px 0;
}
.paging .paging-text{
    display:inline-block;
    padding:0px 10px;
}
.paging .paging-text a,
.paging .paging-text.current{
    display:flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 50px;
    cursor: pointer;
    transition: .2s;
}
.paging .paging-text.current{
    margin: 0 10px;
    border-bottom: 1px solid #a92626;
    color: #a92626;
}
@media screen and (max-width:767px){
    .paging{
        margin: 0 -5px;
    }
    .paging .paging-text{
        padding:0px 5px;
    }
    .paging .paging-text.current{
        margin:0px 5px;
    }
}
