@charset "UTF-8";

/*========= 全体のレイアウトと共通部分に関するCSS ===============*/

/*--------------------------------
ページ内リンク時ヘッダー固定分の高さを差し引く
--------------------------------*/

:target {
    -webkit-animation: targetmodify 0.3s;
    animation: targetmodify 0.3s;
}
@-webkit-keyframes targetmodify {
    0% {
        padding-top: 250px;
        margin-top: -250px;
    }
    100% {
        padding-top: 0;
        margin-top: 0;
    }
}
@keyframes targetmodify {
    0% {
        padding-top: 250px;
        margin-top: -250px;
    }
    100% {
        padding-top: 0;
        margin-top: 0;
    }
}

/*--------------------------------
ヘッダー
--------------------------------*/

/* スマホの時は、ヘッダー上部に余白を入れる

@media(max-width:768px){
    .main-box{
        padding-top:50px;
    }
}

*/

/*------------------------------
PCの場合のヘッダーレイアウト
------------------------------*/

.header-inner {
    display: flex;
    /* justify-content: space-between; */
    padding: 10px 20px;
    max-width: 1600px;
    margin: auto;
}

.head-logo {
    max-width: 340px;
    margin-right: auto;
}

@media (max-width: 767px) {
    .head-logo {
        margin: auto;
    }
}

/* ヘッダー検索等ボタンエリア */

.head-btn-wrapper {
    gap: 0 20px;
}

@media (max-width: 767px) {
    .head-btn-wrapper {
        margin-left: auto;
        text-align: right;
    }
}

/* ヘッダー文字サイズ変更ボタン */

.head-size dl {
    display: flex;
}

.head-size dl dt {
    border: 1px solid #21917b;
    padding: 4px 10px;
}
.head-size button {
    border-radius: 0;
    border: 1px solid #21917b;
    border-left: none;
    background: #fff;
    padding: 4px 20px;
    width: 100%;
    height: 100%;
}

.bt-font-medium button:hover,
.bt-font-medium.active button,
.bt-font-large button:hover,
.bt-font-large.active button {
    background: #21917b;
    color: #fff;
    cursor: pointer;
    border-right-color: #fff;
    border-left-color: #fff;
}

/*------------------------------
検索ボタン
------------------------------*/
/* #searchform input{
  border-radius: 4px;
  margin-bottom:0.5em;
  width:100%;
}

.sm-search{
  padding:4em 1em 1em 1em;
} */

.search_container {
    box-sizing: border-box;
    position: relative;
    border: 1px solid #999;
    padding: 3px 10px;
    /* border-radius: 20px; */
    height: 2.3em;
    width: 100%;
    overflow: hidden;
    /* margin-bottom: 20px; */
}
.search_container input[type='text'] {
    border: none;
    height: 2em;
}
.search_container input[type='text']:focus {
    outline: 0;
}
.search_container input[type='submit'] {
    cursor: pointer;
    font-family: FontAwesome;
    font-size: 1.3em;
    border: none;
    background: none;
    color: rgb(96, 96, 96);
    position: absolute;
    width: 2.5em;
    height: 2.5em;
    right: 0;
    top: -7px;
    outline: none;
}

/*------------------------------
採用情報ボタン

.head-recruit{
  background:#ECF8FD;
  padding:4px 20px;
  border-radius: 4px;
  font-size:1.5rem;
}
------------------------------*/

/*======================================================
グローバルナビ
======================================================*/
@media (min-width: 768px) {
    /* アイコンの高さを揃える */
    .g-nav > ul > li img {
        height: 42px;
    }

    /* PCの時はナビが横並び・上部固定 */
    .g-nav-wrapper {
        width: 100%;
        background: #fff;
    }

    .g-nav > ul {
        margin: auto;
        display: -webkit-box;
        display: flex;
        /* justify-content: space-between; */
        /* max-width:1600px; */
        position: relative;
        align-items: center;
    }

    .g-nav > ul > li {
        font-size: clamp(1.2rem, 1.4vw, 1.4rem);
        flex: 1;
    }

    /* 第２階層までのメニュー表示 */
    .g-nav > ul > li > a,
    .megamenu:not(.has-fourth) > ul > li > a {
        /* text-align: center; */
        display: block;
        /* padding:4px 24px; */
        background: #fff;
        width: 100%;
        height: 100%;
        margin-bottom: 0.5em;
    }
    /* PCの場合のグローバルナビ区切り */

    .g-nav > ul {
        padding: 4px 0;
    }
    .g-nav > ul > li {
        border-left: 1px solid #bbcae5;
        text-align: center;
    }
    .g-nav > ul > li:last-child {
        border-right: 1px solid #bbcae5;
    }
    .navi.fixed .g-nav {
        margin-bottom: 0;
    }

    /* PCの場合のホバーアニメーション設定 */

    .g-nav > ul > li > a {
        position: relative;
    }
    .g-nav > ul > li > a::after {
        position: absolute;
        left: 0;
        content: '';
        width: 100%;
        height: 5px;
        background: #7d715d;
        bottom: -11px;
        transform: scale(0, 1);
        transform-origin: left top;
        transition: transform 0.3s;
    }

    .g-nav > ul > li > a:hover::after {
        transform: scale(1, 1);
    }

    .g-nav > ul > li > a.current::after {
        transform: scale(1, 1);
    }

    /* カレント表示 */

    .lead {
        padding: 50px 20px;
    }
}
/*------------------------------
↑ ここまでグローバルナビ PCでの表示
------------------------------*/

/* スクロールして「scroll-navクラス」がついたときのヘッダーデザイン */
.g-nav-wrapper.scroll-nav {
    padding: 0 15px;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0;
    transition: 0.5s;
    z-index: 10;
}

/*----------------------------------
メガメニュー　768px以上のみ表示
----------------------------------*/

@media (min-width: 768px) {
    /* .gnav-wrapper {
  background: #5e5e5e;
  position: relative;
  width:100%;
 } */

    .g-nav > ul > li {
        /* padding: 18px 0; */
        text-align: center;
        transition: all 0.3s ease-in-out;
    }

    /* .g-nav li:hover {
  background: #3e3e3e;
 } */

    .g-nav > ul > li:hover .megamenu {
        max-height: 9999px;
        opacity: 1;
        padding: 30px 0;
    }

    .megamenu {
        background: rgba(220, 220, 220, 0.95);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        width: 100%;
        position: absolute;
        /* top: 98px; */
        top: 80px;
        left: 0;
        transition: all 0.2s ease-in;
        z-index: 999;
    }

    .megamenu-inner {
        display: flex;
        flex-wrap: wrap;
        padding: 0 50px;
    }

    .megamenu-inner > li {
        color: #333;
        /* display: flex; */
        margin-bottom: 10px;
        font-weight: bold;
        position: relative;
        text-align: left;
    }

    .megamenu-inner li a {
        border-left: none;
        color: #333;
        display: flex !important;
        background: #fff;
        padding: 20px;
        margin: 10px;
        font-weight: bold;
        font-size: 1.6rem;
        display: flex;
        align-items: center;
        /* height:100%; */
        margin: auto;
        /* height:90px; */
    }

    .megamenu-inner > li:after {
        content: '\f0da';
        font-family: 'Fontawesome';
        margin-left: 0.5em;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 16px;
        font-weight: 400;
    }

    .megamenu-inner-img {
        margin: 0 0 10px;
    }

    .megamenu-inner-text img {
        margin: 0 5px 0 0;
    }

    /*----------------------------------
メガメニュー内第4階層まである場合
----------------------------------*/

    /* 第４階層まである場合は第３階層の矢印アイコン非表示　代わりに別のアイコン */

    .has-fourth .megamenu-inner > li::after {
        content: '';
    }

    .megamenu.has-fourth > .megamenu-inner > li > a {
        /* display:block; */
        background: #fff;
        width: 100%;
        margin-bottom: 0.5em;
        padding: 20px 6px;
        text-align: center;
        font-size: 1.6rem;
        background: none;
        color: #333;
        background: #fff;
        border: 2px solid #7d715d;
    }

    .megamenu.has-fourth > .megamenu-inner li a span {
        margin: auto;
    }

    .megamenu-fourth li a {
        font-size: 1.4rem;
        padding: 10px 4px;
        justify-content: center;
    }

    .megamenu-fourth {
        width: 98%;
        margin: auto;
    }

    .megamenu-fourth li {
        margin-bottom: 1em;
    }

    .megamenu.has-fourth > .megamenu-inner > li > a:hover {
        background: #7d715d;
        color: #fff;
    }

    /*----------------------------------
メガメニュー内ホバーアニメーション
「事業から探す」では動かさない
----------------------------------*/

    .megamenu-inner:not(.has-fourth) li a {
        position: relative;
    }

    /*アニメーションの指定*/
    /* 横 */
    .megamenu-inner li a::before,
    .megamenu-inner li a::after {
        content: '';
        position: absolute;
        background: #7d715d;
        width: 0;
        height: 2px;
        transition: all 0.2s linear;
    }

    .has-fourth .megamenu-inner li a::before,
    .has-fourth .megamenu-inner li a::after {
        background: none;
    }

    .megamenu-inner li a::before {
        right: 0;
        bottom: 0;
    }

    .megamenu-inner li a::after {
        left: 0;
        top: 0;
    }

    /*線の基点位置2 spanタグ*/

    .megamenu-inner li a span {
        display: block;
        margin: auto;
    }

    /* 縦 */
    .megamenu-inner li a span::before,
    .megamenu-inner li a span::after {
        content: '';
        /*絶対配置で線の位置を決める*/
        position: absolute;
        background: #7d715d;
        /*線の形状*/
        width: 2px;
        height: 0;
        /*アニメーションの指定*/
        transition: all 0.1s linear;
    }

    :not(.has-fourth) .has-fourth .megamenu-inner li a span::before,
    .has-fourth .megamenu-inner li a span::after {
        background: none;
    }

    .megamenu-inner li a span::before {
        left: 0;
        bottom: 0;
    }
    .megamenu-inner li a span::after {
        right: 0;
        top: 0;
    }

    /*現在地とhoverした際の線の変化 */
    /* .megamenu-inner li a.current::before,
.megamenu-inner li a.current::after, */
    .megamenu-inner:not(.has-fourth .megamenu-inner) li a:hover::before,
    .megamenu-inner:not(.has-fourth .megamenu-inner) li a:hover::after {
        width: 100%;
    }

    .megamenu-inner li a:hover::after {
        transition-delay: 0s; /*すぐ線を出現させる*/
    }

    .megamenu-inner li a:hover::before {
        transition-delay: 0.3s; /*線の出現を0.3秒遅らせる*/
    }

    /* .megamenu-inner li a.current span::before,
.megamenu-inner li a.current span::after, */
    .megamenu-inner li a:hover span::before,
    .megamenu-inner li a:hover span::after {
        height: 100%;
    }

    .megamenu-inner li a:hover span::before {
        transition-delay: 0.5s; /*線の出現を0.5秒遅らせる*/
    }

    .megamenu-inner li a:hover span::after {
        transition-delay: 0.2s; /*線の出現を0.2秒遅らせる*/
    }

    /* メガメニュー第４階層は矢印をつける */

    .megamenu-inner .megamenu-fourth li a {
        position: relative;
        height: 100%;
    }

    .megamenu-inner .megamenu-fourth li a::after {
        content: '\f0da';
        font-family: 'Font Awesome 6 Pro';
        color: #333;
        margin-left: 0.5em;
        font-weight: bold;
        position: absolute;
        left: inherit;
        bottom: inherit;
        right: 20px;
        top: 25%;
    }

    .megamenu-inner .megamenu-fourth li a:hover {
        background: #7d715d;
        color: #fff;
    }

    .megamenu-inner .megamenu-fourth li a:hover::after {
        color: #fff;
    }
}

/*----------------------------------
↑↑ここまでメガメニューの設定　PCの時のみ↑↑
----------------------------------*/

/*----------------------------------
 ナビ固定
----------------------------------*/

/* ロゴのデザイン */
.head-logo {
    transition: 0.5s;
    margin-right: auto;
}

/*======================================================
スマホドロワーメニュー　※全て767px以下の場合
======================================================*/

@media only screen and (max-width: 767px) {
    /* .nav{
          margin-top:60px;
        } */
    .nav li ul {
        width: 100%;
        margin: auto;
    }

    .nav > li li:hover > a {
        color: #222;
        background: #cedbf6;
    }
    .nav li ul li a {
        border-top: 1px solid #eee;
    }
}

/*======================================================
印刷ではサブナビは表示しない
======================================================*/

@media print {
    .nav li ul {
        display: none;
    }
}

/*======================================================
パンくずリスト
======================================================*/

.breadcrumbs {
    font-size: 1.4rem;
    margin: 40px auto;
}

.breadcrumbs ul {
    display: flex;
    justify-content: flex-start;
}

.breadcrumbs a {
    color: #3077bf;
}

.breadcrumbs ul li a:link {
    text-decoration: none;
}

.breadcrumbs ul li a:after {
    content: '>';
    /* font-family:"Font Awesome 6 Pro"; */
    color: #333;
    margin-left: 0.5em;
    font-weight: 400;
    margin-right: 0.5em;
}

.breadcrumbs ul li a:link::after {
    text-decoration: none;
}

.breadcrumbs ul li:first-of-type::before {
    content: '\f015';
    font-family: 'Font Awesome 6 Pro';
    color: #3077bf;
    margin-right: 0.5em;
}

/*--------------------------------
フッター上事業一覧
--------------------------------*/
.foot-list li a:link,
.foot-list li a:visited {
    color: #333;
    text-decoration: none;
}

.foot-list li {
    margin-bottom: 0.4em;
}

.foot-list > li {
    font-weight: bold;
    font-size: 1.5rem;
}

.foot-list-sub > li {
    font-size: 1.4rem;
    margin-left: 1em;
    font-weight: normal;
}

.foot-list > li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Pro';
    color: #21937d;
    margin-right: 0.5em;
    font-weight: bold;
}

.foot-list-sub {
    margin-bottom: 1em;
}

.foot-list-sub > li::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Pro';
    color: #7d715d;
    margin-left: 0.5em;
    font-weight: bold;
    font-size: 1.2rem;
}

.foot-list-sub > li a:hover {
    color: #7d715d;
}

/*--------------------------------
フッター
--------------------------------*/

footer {
    background: #7b715f;
}
@media (max-width: 768px) {
    footer {
        padding-bottom: 50px;
    }
}

.foot-wave {
    background: url(../img/footer/bg-wave2.png) repeat-x center top;
    margin-bottom: 0;
    height: 24px;
}

.foot-copyright p {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

a.footer-map:link,
a.footer-map:visited {
    color: #fff;
}

/* フッターナビ */

.foot-nav ul {
    max-width: 800px;
    margin: auto;
    gap: 0 20px;
    padding: 20px 0;
}

.foot-nav li {
    font-size: 1.8rem;
}

.foot-nav li a {
    color: #fff;
    font-size: 1.2rem;
}

.foot-nav li a:before {
    color: #fff;
}

/*  ページトップへ戻る  */

#pageTop {
    position: fixed;
    bottom: 20px;
    right: 0;
    width: 80px;
    z-index: 100;
}

@media (max-width: 600px) {
    #pageTop {
        width: 50px;
        bottom: 0;
    }
}

#pageTop i {
    padding-top: 6px;
}

#pageTop a {
    display: block;
    z-index: 999;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

#pageTop a:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* 20260312追加：寄付はこちらボタン */
.dona-wrapper_pc {
    position: fixed;
    bottom: 240px;
    right: 38px;
    z-index: 50;
    width: 20px;
    height: 150px;
    display: grid;
}

.dona-wrapper_pc a {
    padding: 20px;
    font-size: 1.2em;
    text-decoration: none;
    display: grid;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: #589aaa;
    color: #fff;
    gap: 0;
    line-height: 1.1;
}
.dona-wrapper_pc a:hover {
    background-color: #336471;
}

.dona-wrapper_pc a span {
    width: fit-content;
    height: fit-content;
}
.dona-wrapper_pc a i {
    margin: 0 0 5px;
    padding: 0;
}

.dona-wrapper_sp {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    height: 50px;
    display: grid;
}

.dona-wrapper_sp a {
    font-size: 1.1em;
    text-decoration: none;
    display: grid;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: #589aaa;
    color: #fff;
}

.dona-wrapper_sp a:hover {
    background-color: #336471;
}
