body {
    background-image: url("../images/bg-body.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    line-height: 2em!important;
    font-family: 1.7rem!important;
}
body:before {
    background-image: url(../images/top-body.png);
    background-size: cover;
    background-position: center bottom;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 229px;
    width: 100%;
}
/* ==================================================
   ヘッダー
   PC：ロゴ左、メニュー右
   スマホ：ロゴ左、バーガーボタン右
================================================== */

.container-header {
    background: none;
}

/* ヘッダー内の横幅 */
.container-header .container-nav {
    max-width: 1320px;
    width: 100%;
    margin-inline: auto;
}
/* ヘッダーメニュー色*/
.container-header .mod-menu>li>a {
    color: #212529;
    font-weight: 600;
}
/* .container-header .metismenu>li.level-1.active>a{
    text-decoration-line: underline;
    text-decoration-color: red;
} */
/* アクティブメニュー */
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
    position: relative;
}

/* 少し隙間を空けた太いアンダーライン */
.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li.current > a::after,
.container-header .mod-menu > li > a:hover::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 4px;
    background-color: orangered;
    border-radius: 2px;
}

/* PC表示 */
@media (min-width: 992px) {

    .container-header {
        display: flex;
        align-items: center;
        padding-inline: max(1rem, calc((100% - 1320px) / 2));
    }

    /* ロゴ */
    .container-header .navbar-brand {
        flex: 0 0 auto;
        margin: 0;
        padding: 1rem 0;
    }

    .container-header .navbar-brand img {
        display: block;
        width: auto;
        max-height: 70px;
    }

    /* メニュー領域 */
    .container-header .container-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1 1 auto;
        width: auto;
        margin: 0 0 0 auto;
        padding: 0;
    }

    .container-header .container-nav nav {
        margin-left: auto;
    }

    /* メニューを右寄せ */
    .container-header .mod-menu {
        justify-content: flex-end;
        margin-left: auto;
    }
    /*アクティブの場合のアンダーライン*/
    .container-header .mod-menu > li > a {
        padding-bottom: .8rem;
    }

    .container-header .mod-menu > li.active > a::after,
    .container-header .mod-menu > li.current > a::after {
        bottom: 0.35rem;
        height: 4px;
    }
}

/* ========================================
   スマホ・タブレット用ヘッダー
======================================== */
@media (max-width: 991.98px) {

    /* 1行目：ロゴ左、ボタン右 */
    .container-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1rem;
        padding: 0.75rem 1rem;
    }

    /* ロゴ */
    .container-header .navbar-brand {
        grid-column: 1;
        grid-row: 1;

        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .container-header .navbar-brand img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 55px;
    }

    /*
     container-nav と nav の箱をなくして、
     ボタンと開閉メニューをGridへ直接配置
    */
    .container-header .container-nav,
    .container-header .container-nav nav {
        display: contents;
    }

    /* バーガーボタン：右上 */
    .container-header .navbar-toggler {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;

        position: static;
        width: auto;
        margin: 0;
        background-color: #6464ff;
    }

    /* 開いたメニュー：2行目全幅 */
    .container-header .navbar-collapse {
        grid-column: 1 / -1;
        grid-row: 2;

        position: static;
        width: 100%;
        margin: 0.75rem 0 0;
        padding: 0.5rem 0;

        background-color: #1e315f;
    }

    /* 閉じているとき */
    .container-header .navbar-collapse:not(.show):not(.collapsing) {
        display: none;
    }

    /* 開閉中・開いているとき */
    .container-header .navbar-collapse.show,
    .container-header .navbar-collapse.collapsing {
        display: block;
        width: 100%;
        background-color: #fbfbf2;
    }

    /* メニュー本体 */
    .container-header .navbar-collapse .mod-menu {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .container-header .navbar-collapse .mod-menu > li {
        display: block;
        width: 100%;
        margin: 0;
    }

    .container-header .navbar-collapse .mod-menu > li > a {
        display: inline-block;
        width: auto;
        position: relative;
        padding: 0.75rem 0;
        color: #212529;
        white-space: normal;
    }
    .metismenu.mod-menu .metismenu-item.active>a,
    .metismenu.mod-menu .metismenu-item.current>a,
    .metismenu.mod-menu .metismenu-item>a:hover {
        text-decoration: none;
    }
    .metismenu.mod-menu .metismenu-item>a:after {
        opacity: .2;
    }
}
.footer {
    background: none;
    background-color: #fffffa;
    color: rgb(75, 75, 75);
}
/* ========================== */
/* トップページ*/
/* ========================== */
.toppage .card, .aboutuspage .card {
    border: none;
    background: none;
}
/*　セクションタイトル*/
.toppage .card-header, .aboutuspage .card-header {
    margin-top: 50px;
    margin-bottom: 40px;
    background: none;
    text-align: center;
    font-size: 2em;
    color: rgb(75, 75, 75);
    letter-spacing: 0.2em;
    border: none;
}
/* ================================================== */
/*記事カード 上画像、下テキスト*/
/* ================================================== */
.com-content-category-blog__item .page-header {
    margin: 0;
    padding: 0;
    border: none;
}
.estory-article-card-wrap {
    list-style: none;
}
.mod-articles-items .estory-article-card,
.com-content-category-blog__item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.estory-article-card-image {
    margin: 0;
}

.estory-article-card-image figure,
.estory-article-card-image .item-image,
.estory-article-card-image img {
    margin: 0;
}

.estory-article-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.estory-article-card-title, 
.com-content-category-blog__item .page-header h2{
    margin: 0;
    padding: 1rem 1.25rem .4rem;
    font-size: 1.25rem!important;
    line-height: 1.4;
}

.estory-article-card-title a,
.com-content-category-blog__item .page-header a {
    color: #174a9a;
    text-decoration: none;
}

.estory-article-card-title a:hover,
.com-content-category-blog__item .page-header a:hover {
    text-decoration: underline;
}

.estory-article-card-text,
.com-content-category-blog__item p {
    padding: 0 1.25rem 1.25rem;
    line-height: 1.7;
}

/* ================================================================== */
/*  About us */
/* ================================================================== */
.section-title-wrap {
    margin-bottom: 2.5rem;
}
.section-title-wrap .section-title {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.2;
}
.title-gradient {
    background: -webkit-gradient(linear,left top,right top,from(#4FB0D1),to(#57B9D3));
    background: -webkit-linear-gradient(left,#4FB0D1,#57B9D3);
    background: -o-linear-gradient(left,#4FB0D1,#57B9D3);
    background: linear-gradient(to right,#4FB0D1,#57B9D3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}
.app-img {
    margin-bottom: 1.5rem;
}
/* ========================================
   左画像・右テキストの共通レイアウト
======================================== */

.animate-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    /* margin-block: 4rem; */
}

.animate-block__image img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   アニメーション共通
======================================== */

/* 表示前 */
.reveal {
    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* 下から */
.reveal-up {
    transform: translateY(100px);
}

/* 左から */
.reveal-left {
    transform: translateX(-55px);
}

/* 右から */
.reveal-right {
    transform: translateX(55px);
}

/* 表示後 */
.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 少し遅れて表示 */
.reveal-delay {
    transition-delay: 0.18s;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 767.98px) {

    .animate-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-block: 2.5rem;
    }

    /*
     スマホでは左右から大きく動かすと
     横スクロールの原因になりやすいため移動量を小さくする
    */
    .reveal-left {
        transform: translateX(-25px);
    }

    .reveal-right {
        transform: translateX(25px);
    }

    .reveal-up {
        transform: translateY(30px);
    }

    .reveal-delay {
        transition-delay: 0.1s;
    }
}


/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   ABOUT US スライダー
======================================== */
.top-slider-module,
.top-slider-module .n2-section-smartslider,
.top-slider-module .n2-ss-slider,
.top-slider-module .n2-ss-slider-1,
.top-slider-module .n2-ss-slider-2,
.top-slider-module .n2-ss-slider-3 {
    border-radius: 32px;
    overflow: hidden;
}
/* ========================================
   ABOUT US スライダー下の案内・ボタン
======================================== */

.top-action-box {
    position: relative;
    z-index: 10;

    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 3rem;

    max-width: 1180px;
    margin: -90px auto 4rem;
    padding: 2.75rem 3.5rem;

    background: #fff;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgb(0 0 0 / 8%);
}

.top-action-box__message {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.65;
    color: #111;
}

.top-action-box__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.top-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    /* min-height: 90px; */
    padding: 1rem 1.5rem;

    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 16px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.top-action-button:hover,
.top-action-button:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgb(0 0 0 / 10%);
}

@media (max-width: 767.98px) {
    .top-slider-module,
    .top-slider-module .n2-section-smartslider,
    .top-slider-module .n2-ss-slider,
    .top-slider-module .n2-ss-slider-1,
    .top-slider-module .n2-ss-slider-2,
    .top-slider-module .n2-ss-slider-3 {
        border-radius: 16px;
        overflow: hidden;
    }
    .top-slider-module .card-body,
    .top-slider-module-action .card-body {
        padding: 0;
    }
    .top-action-box {
        display: block;
        padding: 2rem 1rem;
        margin: -35px auto 0;
    }
    .top-action-box__message {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
        color: #111;
        margin-bottom: 1rem;
    }
    .estory-slide-tilte div {
        font-size: 1.2rem!important;
    }
    .estory-slide-text {
        font-size: .7rem!important;
    }
}
