@charset "utf-8";

/* modern-css-reset v1.4.0 | MIT License | https://github.com/hankchizljaw/modern-css-reset */
:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

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

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
    cursor: pointer;
}

button {
    cursor: pointer;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    vertical-align: middle;
}

img,
video {
    max-width: 100%;
    height: auto;
}


/* 固定ロゴヘッダー */
.fixed-header-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* 必要に応じて調整 */
    background: linear-gradient(to bottom, #0086A2 0%, #005870 100%);
    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;
    background: #005870 !important;
}

#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;
    background-color: #005870 !important;
}

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

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

.subpage-body {
    background-color: #f8f9fa !important;
    /* or #fff */
}

.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(187, 187, 187, 0.32);
}

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

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

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

.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;
    cursor: pointer;
}

.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;
}

.apagetop a img {
    transition: opacity 0.3s ease;
}

.apagetop a:hover img {
    opacity: 0.7;
}

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

#business {
    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;
}


@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;
        cursor: pointer;
    }

    .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;
    position: relative;
    min-width: 200%;
    /* animation: loopSlideAnim 20s linear infinite;  JSで制御するため削除 */
}

.loopSlide img {
    width: auto;
    object-fit: cover;
    display: block;
}

@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;
}

/* --- Philosophyセクション モダン化用カスタム --- */

/* Montserratフォント */
.font-montserrat {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif !important;
}

/* グラデーションライン */
.bg-gradient-to-r {
    background: linear-gradient(to right, #60a5fa 0%, #22d3ee 100%);
}

/* backdrop-blur (フォールバック) */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- videoループ時フェード用 --- */
.video-fade {
    transition: opacity 1s;
    opacity: 1;
}

.video-fade.fadeout {
    opacity: 0;
}

/* Philosophyリストのli本体 */
.philosophy-section ol li {
    color: #222;
    font-weight: 600;
    background: transparent;
    border: none;
}

hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    /* border-gray-200 と同等の色 */
    height: 1px;
    overflow: visible;
    display: block;
    width: 100%;
    /* デフォルトで幅を持たせる */
}

.leading-relaxed {
    line-height: 1.25 !important;
}

/* Prose custom styles for lists */
.prose ul {
    padding-left: 1.5em;
}

.prose li {
    padding-left: 0.5em;
}

.prose li::marker {
    color: #6b7280;
}

.prose p,
.prose li,
.prose dd {
    line-height: 1.75;
    /* 行間を広げる */
}

.prose h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}

.prose dt {
    font-weight: 600;
    /* 太字にする */
    margin-top: 1.5em;
}

.prose ul,
.prose dl {
    margin-top: 1.5em;
}

.logo-inverted {
    filter: invert(1);
    mix-blend-mode: screen;
}

/* --- ナビゲーションメニュー用スタイル --- */

/* ヘッダーの固定とスタイル */
#header {
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ナビゲーションリンク */
.nav-link {
    position: relative;
    font-weight: 500;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #60a5fa, #22d3ee);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* モバイルメニュー */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e7eb;
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mobile-nav-link:hover {
    background-color: #f9fafb;
    color: #3b82f6;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* ヘッダーの高さ分のパディングを追加 */
body {
    padding-top: 80px;
}

/* サブページは上部パディングをリセット */
.subpage-body {
    padding-top: 0 !important;
}

/* ヒーローセクションはヘッダーの下に密着させる */
.hero-section {
    margin-top: -80px;
    padding-top: 80px;
}

/* モバイルメニューボタンのアニメーション */
#mobile-menu-btn {
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

#mobile-menu-btn:hover {
    background-color: #f3f4f6;
    border-radius: 6px;
}

#mobile-menu-btn.active svg {
    transform: rotate(90deg);
}

/* モバイルメニューボタンのアイコン */
#mobile-menu-btn svg {
    transition: transform 0.3s ease;
}