@charset "utf-8";
/* Bootstrapカスタム用: 必要な場合のみここに追記 */

/* 固定ロゴヘッダー */
.fixed-header-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* 必要に応じて調整 */
    background: #212529;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

html,
body {
    overflow-x: hidden;
}

/* ローディング画面中央揃え */
#loader-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 必要に応じて変更 */
    z-index: 99999;
}

#loader-bg>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logomark {
    display: block;
    margin-bottom: 1rem;
}

/* Hero以外の全体フォント指定 */
body {
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    font-weight: 500;
}

h2.card-title {
    font-size: 55px;
    margin-bottom: 56px;
}

h3.desc-card {
    font-size: 30px;
    line-height: 50px;
}

.header-logo {
    height: 1.5vh;
    margin: 1vh 0;
}

/* Heroセクションテキストフォント */
.hero-section h1,
.hero-section h2,
.hero-section p {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
}


/* Philosophyセクション背景画像透過 */
.parallax-bg {
    opacity: 0.3;
}

/* Philosophyセクション テキストシャドウ */
.philosophy-section .card-body * {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
}

/* Heroセクション高さ調整 */
.hero-section {
    min-height: 80vh;
}

/* Philosophyセクション高さ調整 */
.philosophy-section {
    min-height: 80vh;
}

/* contactCtaセクション パララックス背景対応 */
.contactCta-section {
    min-height: 60vh;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contactCta-section .parallax-bg {
    opacity: 0.3;
}

.contactCta-section .card-body * {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
}

.contactCta-section .card {
    background: transparent;
    border: none;
}

.contactCta-section .btn-primary {
    font-weight: 700;
}

#Philosophy ol li {
    font-size: 18px;
    margin-bottom: 18px;
    font-weight: 700;
}

/* hr */
hr.hr-bk {
    margin: 0;
}

/* Page Top ボタン右下固定 */
.apagetop {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: block;
    text-align: center;
}

.apagetop.show {
    opacity: 1;
    pointer-events: auto;
}

.apagetop a {
    display: inline-block;
    width: 110px;
    height: 110px;
    background: none;
    text-decoration: none;
}

.apagetop img,
.apagetop svg {
    display: block;
    margin: 0 auto 4px auto;
    width: 100px;
    height: 100px;
}

.apagetop a span,
.apagetop a p {
    display: block;
    color: #1976d2;
    font-size: 1rem;
    margin-top: 2px;
}

#business,
#news,
#aboutus {
    background-color: #eef3f7 !important;
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

#business h2.card-title,
#news h2.card-title,
#aboutus h2.card-title,
#news-list h2.card-title {
    color: #222 !important;
}

#business .text-muted,
#news .text-muted,
#aboutus .text-muted {
    color: #444 !important;
}

#business .small,
#news .small,
#aboutus .small,
#news-list .small {
    color: #555 !important;
}

.footerInner {
    text-align: center !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #183a6d;
    --bs-btn-border-color: #183a6d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #142e56;
    --bs-btn-hover-border-color: #112646;
    --bs-btn-focus-shadow-rgb: 24, 58, 109;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #112646;
    --bs-btn-active-border-color: #0d1b2f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #183a6d;
    --bs-btn-disabled-border-color: #183a6d;
}

.btn-outline-primary {
    --bs-btn-color: #183a6d;
    --bs-btn-border-color: #183a6d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #183a6d;
    --bs-btn-hover-border-color: #183a6d;
    --bs-btn-focus-shadow-rgb: 24, 58, 109;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #142e56;
    --bs-btn-active-border-color: #112646;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #183a6d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #183a6d;
    --bs-gradient: none;
}

@media (max-width: 767px) {
    body {
        font-size: 16px !important;
        line-height: 1.7;
    }

    h1 {
        font-size: 1.6rem !important;
    }

    h2,
    .card-title,
    h2.card-title,
    #aboutus h2.card-title,
    #business h2.card-title,
    #news h2.card-title {
        font-size: 2.0rem !important;
        font-weight: 700;
    }

    h3,
    .desc-card,
    h3.desc-card {
        font-size: 1.0rem !important;
        line-height: 1.5;
    }

    h5.card-title {
        font-size: 1.05rem !important;
        font-weight: 700;
    }

    .philosophy-section .card-body,
    .contactCta-section .card-body {
        font-size: 1rem !important;
    }

    .aboutus-table,
    .aboutus-table td,
    .aboutus-table th {
        font-size: 0.95rem !important;
    }

    p,
    li,
    td,
    th {
        font-size: 0.95rem !important;
    }

    .btn,
    button {
        font-size: 0.95rem !important;
    }

    .small {
        font-size: 0.95rem !important;
    }

    .contactCta-section {
        min-height: 40vh;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        flex-direction: column;
        justify-content: flex-start;
    }

    .contactCta-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-section {
        min-height: 60vh;
    }

    .philosophy-section {
        min-height: 60vh;
    }

    .apagetop {
        display: none !important;
    }

}

/*----CSSアニメーション-----------------------------------*/
/*                                                      */
/* ===== loopSlide 無限横スクロールCSSアニメーション ===== */
.loopSlideWrap {
    overflow: hidden;
    position: relative;
    background: #fff;
}

.loopSlide {
    display: flex;
    height: 300px;
    position: relative;
    /* 画像4枚分の幅。画像幅が可変の場合はmin-width:200%などでもOK */
    min-width: 200%;
    /* animation: loopSlideAnim 20s linear infinite;  JSで制御するため削除 */
}

.loopSlide img {
    width: auto;
    height: 100%;
}

@keyframes loopSlideAnim {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.loopSlideWrap .scroll {
    position: absolute;
    right: 80px;
    bottom: 110px;
    writing-mode: vertical-rl;
    font-weight: 600;
    mix-blend-mode: difference;
    color: #fff;
    letter-spacing: 0;
}

.loopSlideWrap .scroll::before {
    animation: scroll 2.5s infinite;
    background-color: #3a3a3a;
    bottom: -115px;
    content: "";
    height: 100px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    width: 1px;
    z-index: 2;
}

.loopSlideWrap .scroll::after {
    background-color: #ccc;
    bottom: -115px;
    content: "";
    height: 100px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    width: 1px;
}

@keyframes scroll {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }

    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }

    51% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }

    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}

/* ===== /loopSlide ===== */

/* bus00x.jpg画像にズーム効果 */
.card-img-top[src*="bus0"] {
    transition: transform 1.2s cubic-bezier(.4, 0, .2, 1), opacity 1.2s cubic-bezier(.4, 0, .2, 1);
}

.card-img-top[src*="bus0"]:hover {
    transform: scale(1.08);
    opacity: 0.8;
}

/* ズーム時にはみ出し防止 */
.card {
    overflow: hidden;
}

/* セクション フェードインアニメーション */
/* 速度を半分（0.7s→1.4s）に調整 */
.section-fadein {
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1);
}

.section-fadein.show {
    opacity: 1;
}

/* Heroセクションリード文の行間調整 */
.hero-section .lead span {
    line-height: 2;
}

/* 画像ノイズエフェクト */
.img-noise {
    position: relative;
    display: inline-block;
}

.img-noise img {
    display: block;
}

.img-noise::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch' /%3E%3CfeColorMatrix type='saturate' values='0' /%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.5' /%3E%3CfeFuncG type='linear' slope='0.5' /%3E%3CfeFuncB type='linear' slope='0.5' /%3E%3CfeFuncA type='linear' slope='0.3' /%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E%0A");
    /* ここはサンプルの1pxノイズ。後で差し替え可 */
    opacity: 0.9;
    mix-blend-mode: multiply;
    z-index: 2;
}

/* お知らせページ上部マージン調整 */
#news-detail,
#news-list {
    margin-top: 30px;
}

/* お知らせ詳細ページの段落スタイル */
#news-detail .blog-post-body p {
    line-height: 1.8;
}

/* お知らせ詳細ページの見出しスタイル */
#news-detail .blog-post h1,
#news-detail .blog-post h2,
#news-detail .blog-post h3,
#news-detail .blog-post h4,
#news-detail .blog-post h5 {
    font-weight: 700;
}

/* 可読性向上のためのスタイル調整 */
#news-detail .blog-post-body {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

#news-detail .blog-post h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

#news-detail .blog-post h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.4rem;
}

#news-detail .blog-post h4 {
    font-size: 1.25rem;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
}

#news-detail .blog-post h5 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

#news-detail .blog-post-body p,
#news-detail .blog-post-body ul,
#news-detail .blog-post-body ol,
#news-detail .blog-post-body .table-responsive,
#news-detail .blog-post-body blockquote {
    margin-bottom: 1.5rem;
}

/* カードの背景を白、テキストを黒に設定 */
#news .card,
#news-list .card,
#business .card,
#aboutus .card {
    background-color: #fff !important;
    color: #212529 !important;
}

#news .card .card-title,
#news .card .card-text,
#news-list .card .card-title,
#news-list .card .card-text,
#business .card .card-title,
#business .card .card-text,
#aboutus .card .card-title,
#aboutus .card .card-text {
    color: #212529 !important;
}

#news .card a,
#news-list .card a,
#business .card a,
#aboutus .card a {
    color: #212529 !important;
}

#news .card .text-secondary,
#news-list .card .text-secondary,
#business .card .text-secondary,
#aboutus .card .text-secondary {
    color: #6c757d !important;
}

#aboutus .list-group-item,
#news-detail .table {
    background-color: #fff !important;
    color: #212529 !important;
}

#news-detail .table {
    --bs-table-border-color: #c6c7c8;
}

#news-detail .table th,
#news-detail .table td {
    background-color: #fff !important;
    color: #212529 !important;
}

/* ページネーションのスタイル調整 */
.pagination .page-link {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

.pagination .page-item.active .page-link {
    background-color: #183a6d !important;
    color: #fff !important;
    border-color: #183a6d !important;
}

.pagination .page-item.disabled .page-link {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}