/* ============================================
   POWER TRAIN - メインスタイルシート
   Bootstrap 5.3.0 ベース
   ============================================ */

/* ============================================
   カスタムプロパティ（CSS変数） custom property (CSS variable)
   ============================================ */
:root {
    /* カラーパレット */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray: #666666;
    --color-light-gray: #F5F5F5;
    --color-border: #E0E0E0;
    --color-line: #231815;

    /* フォント */
    --font-ja: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;

    /* スペーシング */
    --section-padding: 3.5rem; /* 56px */
    --section-padding-mobile: 2.5rem; /* 40px */
}

/* ============================================
   リセット・基本設定 reset and basic settings
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-size: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ja);
    line-height: 1.8;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}
.hero.position-relative {
    background-image: url(assets/Top-bg.svg);
    /* box-shadow: 0 0 10px rgba(0,0,0,0.2); */
    background-color: #FFFFFF;
    background: radial-gradient(1200px 600px at 20% 10%, #EAEAEA 0%, #EAEAEA 50%, #EAEAEA 100%);
}
.font-maru-gothic {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.font-maru-gothic-m,
.hero-title,
.concept-section .section-heading {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.font-maru-gothic-b {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* ============================================
   共通セクションスタイル
   ============================================ */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* 縦線を持つセクション */
.section-with-line {
    position: relative;
}

.section-line-vertical {
    position: absolute;
    left: 5%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-line);
    z-index: 1;
}

/* 横の区切り線 */
.section-divider-horizontal {
    width: 100%;
    height: 1px;
    background-color: var(--color-line);
    margin: 0;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #999;
}

.section-title {
    /* font-size: clamp(28px, 4vw, 42px); */
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.section-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.9;
    color: var(--color-gray);
    margin-bottom: 1.65rem;
}

.section-heading {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: center;
}
.custom-close {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1000;
}

.custom-close img {
    width: auto;
    height: 46px;
}
main p {
    line-height: 1.9;
    margin-bottom: 0.8rem;
}
p.lead,
.lead p {
    font-size: 1.065rem;
    line-height: 2;
}

/* Image container styling */
.image-container {
    margin-top: 0;
}

.concept-text{
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    font-size: 1.15rem;
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
}
/* ============================================
   ボーダースタイルユーティリティ
   ============================================ */
.border.border-dotted {
    border-style: dotted !important;
}
.border-bottom.border-dotted {
    border-bottom-style: dotted !important;
}
.border-top.border-dotted {
    border-top-style: dotted !important;
}
.border-left.border-dotted {
    border-left-style: dotted !important;
}
.border-right.border-dotted {
    border-right-style: dotted !important;
}

/* ============================================
   ボタンスタイル
   ============================================ */
.btn-black {
    display: inline-block;
    padding: .5rem 2.5rem;
    line-height: 1.25;
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: .9rem;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: none;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.btn-black:hover {
    background-color: #333;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: none;
    opacity: 1;
}
   ============================================ */
.btn-grad {
    display: inline-block;
    padding: .5rem 2.5rem;
    line-height: 1.25;
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: none;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.btn-grad:hover {
    background-color: #333;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: none;
    opacity: 1;
}

.btn-arrow-right {
    position: relative; /* ::after の基準 */
    display: inline-block;
    padding-right: 3rem; /* 矢印分の余白 */
}
.btn-arrow-right::after {
    content: "\f061"; /* arrow-right（Solid） */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Solid */
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 80%;
    line-height: 1;
    pointer-events: none;
}

.solution-btn {
    background: #FAFAFA;
    background: linear-gradient(180deg, rgba(250, 250, 250, 1) 0%, rgba(242, 242, 242, 1) 100%);
    border: 1px solid #AAA;
    padding: .5rem 1.6rem;
    border-radius: .5rem;
    text-align: center;
    font-size: 1.15rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: block;
    align-content: center;
    height: 100%;
    font-weight: 500;
    opacity: 1;
    min-height: 4rem;
}

.solution-btn small,
.solution-btn .subtitle {
    font-size: 65%;
    color: #666;
    margin-top: .1rem;
    display: block;
}

.solution-btn:hover {
    opacity: 0.8;
}

.solution-btn::after {
    content: "\f103";
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Solid */
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #B2B2B2;
    font-size: 75%;
}

.solution-btn.active {
    border-color: #333;
}

/* Mobile: keep stacked layout as is */
@media (max-width: 768px) {
    .solution-btn {
        font-size: 1rem;
        padding: .25rem 1.65rem;
        min-height: 3.5rem;
    }
    .solution-btn::after {
        right: .75rem;
        font-size: 70%;
    }

    .solution-btn small,
    .solution-btn .subtitle {
        font-size: 65%;
    }
}

/* ============================================
   ヘッダー header
   ============================================ */

/* ========================= */
/* PC版スタイル (768px以上)
/* ========================= */

.site-header {
    height: 80px;
    align-content: center;
}
.site-header .navbar {
    padding-top: 0;
    padding-bottom: 0;
    height: 100%;
}
.site-header .navbar > * {
    height: 100%;
    padding-right: 0 !important;
}
.site-header .navbar .header-menu {
    height: 100%;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    margin-left: auto;
}

/* ハンバーガーボタン */
.hamburger-btn {
    border: none;
    background-color: var(--color-black);
    padding: 0 5px;
    height: 100%;
    border-radius: 0;
    cursor: pointer;
    margin-left: 1rem;
}
.hamburger-btn img {
    width: 75px;
    height: auto;
    /* max-width: 61px; */
    /* min-width: 40px; */
}


/* ヘッダーロゴ */
.navbar-brand img {
    width: auto;
    max-width: 20vw;
    min-width: 60px;
    height: auto;
}

@media (min-width: 1200px) {
    .navbar-brand img {
        width: auto;
        max-width: 180px;
    }
}

/* ナビゲーションリンク */
.navbar .nav-link {
    /* font-size: 1.2vw; */
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

/* オフキャンバス基本設定（PC版） */
@media (min-width: 768px) {
    .offcanvas {
        top: 0;
        left: 0;
        width: 100%;
        min-height: 50vh;
        max-height: 60vh;
        height: auto;
        background-color: #f8f9fa;
    }

    .offcanvas-body .row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    /* オフキャンバス内ロゴ（PC版） */
    .offcanvas-logo {
        width: auto;
        max-height: 120px;
        max-width: 180px;
        margin-bottom: 20px;
    }

    /* ロゴ列の配置 */
    #offcanvasMenu .offcanvas-logo-col {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 32px 0;
    }

}

/* ========================= */
/* レスポンシブ版スタイル (767px以下)
/* ========================= */
@media (max-width: 767px) {
    /* ヘッダーロゴ */
    .navbar-brand img {
        max-width: 200px;
    }

    /* ナビゲーションリンク */
    .navbar .nav-link {
        font-size: 3vw;
        line-height: 1.4;
    }

    /* オフキャンバス基本設定（モバイル版） */
    .offcanvas {
        top: 0;
        bottom: 0;
        right: 0;
        width: 17em;
        background-color: #f8f9fa;
    }

    /* スクロール可能に */
    .offcanvas-body {
        overflow-y: auto;
        padding-bottom: 100px;
    }

    /* 1カラムレイアウト */
    .offcanvas-body .row > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* オフキャンバス内ロゴ（モバイル版） */
    .offcanvas-logo {
        width: 60vw;
        max-width: 220px;
        height: auto;
        margin: 24px auto 40px;
    }

    /* メニューセクション：全て左寄せ */
    .offcanvas-body .menu-section {
        text-align: left !important;
        margin-bottom: 32px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ロゴだけは中央寄せ */
    .offcanvas-body .menu-section:first-child {
        text-align: center !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* セクション見出し（白文字） */
    .offcanvas-body .menu-section h6 {
        font-size: .9rem;
        font-weight: 400;
        margin-bottom: 1rem;
        /* color: #ffffff; */
        color: var(--color-black);
        letter-spacing: 0.05em;
    }

    /* リストアイテム */
    .offcanvas-body .menu-section .list-unstyled {
        margin-bottom: 24px;
    }

    .offcanvas-body .menu-section .list-unstyled li {
        margin-bottom: .35rem;
        /* line-height: normal; */
    }

    /* リンク（白文字） */
    .offcanvas-body .menu-section .footer-link {
        font-size: 0.8rem;
        /* color: #ffffff; */
        color: var(--color-black);
        font-weight: 300;
        margin: 0;
    }

    .offcanvas-body .menu-section .footer-link:hover {
        color: #cccccc;
    }

    /* 閉じるボタン（モバイル版）：コンテンツより下、右固定 */
    .custom-close {
        /* position: absolute; */
        position: fixed;
        bottom: 24px;
        right: 24px;
        border: none;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        z-index: 1050;
    }

    .custom-close img {
        width: auto;
        height: 46px;
    }

    /* テキストで「×」を使用する場合 */
    .custom-close::before {
        content: "×";
        color: #2a2a2a;
        font-size: 32px;
        font-weight: 300;
        line-height: 1;
    }

    /* 画像を使用する場合は::beforeを削除 */
    .custom-close:has(img)::before {
        content: none;
    }
}
/* ============================================
   メインビジュアル（ヒーローセクション）
   ============================================ */

/* 背景：ごく薄いグラデ + 角のシャドウ感 */
.hero {
    background: radial-gradient(1200px 600px at 20% 10%, #ffffff 0%, #f7f8f9 50%, #f2f3f5 100%);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 1px 8px rgba(0, 0, 0, .04) inset;
}

/* タイトルとサブタイトル */
.hero-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
    /* モバイル～PCで可変 */
    letter-spacing: .06em;
}

.hero-subtitle {
    font-size: clamp(.95rem, 2.5vw, 1.05rem);
}

.hero-subtitle .dash {
    display: inline-block;
    margin: 0 .5rem;
    opacity: .6;
}

/* 右レールの幅バランス */
.right-rail {
    max-width: 420px;
}

/* アンカーリンクの見た目（画像に寄せる：薄い枠＋右山括弧） */
.rail-link {
    border: 1px solid rgba(0, 0, 0, .08) !important;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    text-align: left;
}

.rail-link:hover {
    border-color: rgba(0, 0, 0, .14) !important;
}

.link-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.link-label {
    font-weight: 500;
}

.chev {
    font-size: 1.6rem;
    line-height: 1;
    transform: translateY(-1px);
    color: rgba(0, 0, 0, .45);
}

.chev.chev-down {
    transform: translateY(-1px) rotate(90deg);
}

/* CTAボタンは角丸大きめ */
.btn-cta {
    border-radius: .6rem;
}

/* RSSカード */
/* .rss-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.rss-list .rss-item+.rss-item {
    margin-top: .75rem;
}

.rss-title {
    font-size: .95rem;
} */

/* モバイル最適化：右カラムの左右余白 */
@media (max-width: 991.98px) {
    .right-rail {
        margin-inline: auto;
        max-width: 520px;
    }

    .hero {
        padding-top: .5rem;
    }
}


/* ============================================
   ページトップボタン
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: var(--color-white);
    border: 1px solid var(--color-black);
    border-radius: 50%;
    display: block;
    text-align: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000; /* Higher than footer (999) and mobile nav (1000) */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Add shadow for better visibility */
}

.scroll-top:hover {
    background-color: var(--color-light-gray);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover svg {
    stroke: var(--color-black); /* Keep black on hover */
}

.scroll-top svg {
    stroke: var(--color-black);
    transition: stroke 0.3s ease;
}

.scroll-top p {
    font-size: 10px;
    line-height: normal;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .scroll-top {
        bottom: 90px; /* Above mobile nav (70px + 20px spacing) */
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
    
    .scroll-top p {
        font-size: 9px;
    }
}

/* Extra small mobile */
@media (max-width: 575px) {
    /* ヘッダーロゴ */
    .navbar-brand img {
        max-width: 180px;
    }

    .hamburger-btn {
        padding: 0 0;
    }
    .hamburger-btn img {
        width: 70px;
    }
    .scroll-top {
        bottom: 80px;
        right: 20px;
        width: 48px;
        height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4px;
    }
    
    .scroll-top svg {
        width: 16px;
        height: 16px;
        margin-bottom: 2px;
    }
    
    .scroll-top p {
        font-size: 7px;
        line-height: 1;
        margin: 0;
        white-space: nowrap;
    }
}

/* Fix footer z-index issue */
.footer {
    position: relative;
    z-index: 1; /* Lower than scroll-top button */
}

.mobile-bottom-nav {
    z-index: 1000; /* Lower than scroll-top button (1050) */
}


/* ========================= */
/* フッター */
/* ========================= */

/* ============================================
   スマホ用固定ナビゲーション
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text);
    padding: 4px 12px;
    transition: color 0.3s;
    flex: 1;
    max-width: 120px;
}

.mobile-nav-item:hover {
    color: var(--color-primary);
    opacity: 1;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.mobile-nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-nav-label {
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

/* スマホ版でbodyの下部に余白を追加（固定ナビに隠れないように） */
@media (max-width: 767px) {
    body {
        padding-bottom: 65px;
    }
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: #f5f5f5;
    text-align: center;
    background: url(../images/top-mv-bg-gd.png) repeat-x bottom left;
    background-size: cover;
    position: relative; /* causes footer link freeze issue */
    overflow: hidden; /* はみ出し対策 */
}

.footer::before {
    content: "";
    display: block;
    position: absolute;
    right: -150px;
    bottom: -100px;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: url(../images/top-mv-bg-gear@2x.png) no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: .65;
}
.footer::before,
.footer::after {
    pointer-events: none;
}

/* .footer {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
} */

.footer-logo {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.footer-text p {
    line-height: 1.2;
}

.footer-link {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.8rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-link:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========================= */
/* 共通：メニューセクション統一スタイル */
/* （フッター＆オフキャンバス両方で使う） */
/* ========================= */
.menu-section h6 {
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.menu-section .list-unstyled li {
    line-height: 1.8;
    margin-bottom: 4px;
}

.menu-section .list-unstyled+h6 {
    margin-top: 1.5rem;
    /* セクション間の余白 */
}

/* リンク見た目（フッターと同じトーン） */
.menu-section a {
    color: #555;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, transform 0.15s ease;
}

.menu-section a:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    transform: translateX(2px);
}
/* レスポンシブ調整 */
@media (max-width: 767px) {

    .footer {
        padding-bottom: 20px !important;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        max-width: 120px;
        margin-bottom: 0.5rem;
    }

    .footer-link {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .footer .col-12.text-center img {
        margin-left: auto;
        margin-right: auto;
    }
}
/* ============================================
   レスポンシブデザイン
   ============================================ */

/* タブレット（1200px以下） */
@media (max-width: 1200px) {

    .side-menu-fixed,
    .news-card-fixed {
        display: none;
    }

    .section-label {
        left: 20px;
    }

    .section-line-vertical {
        left: 5%;
    }
}

/* タブレット（991px以下） */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .section-label {
        display: none;
    }

    .section-line-vertical {
        display: none;
    }

    .team-intro {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .home .hero-section {
        min-height: 80vh;
    }

    .section-label {
        display: block !important;
        /* スマホでも表示 */
        position: relative !important;
        /* 通常配置に変更 */
        writing-mode: horizontal-tb !important;
        /* 横書きに変更 */
        transform: none !important;
        /* 回転をリセット */
        text-align: center;
        font-size: 0.9rem;
        font-weight: 400;
        letter-spacing: 0.2em;
        color: #999;
        margin-bottom: 1rem;
        left: 0;
        top: 0;
    }

    /* ボタンの幅調整 */
    .btn-black {
        max-width: 50vw;
        /* 最大幅を制限 */
        text-align: center;
        display: inline-block;
    }


}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
    :root {
        --section-padding: 40px;
    }

    .header-content {
        padding: 12px 20px;
    }

    .home .hero-section {
        min-height: 70vh;
        padding-top: 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .topic-item {
        /* flex-direction: column; */
        display: flex;
        align-items: center;
        gap: 10px;
        /* padding-left: 35px; */
        flex-wrap: wrap;
    }

    .topic-date,
    .topic-category {
        min-width: auto;
    }

    .topic-title {
        flex-basis: 100%;
        margin-top: 6px;
        font-size: 15px;
        line-height: 1.6;
    }

    .topic-line {
        width: 18px;
    }

    .btn-black {
        width: 100%;
        text-align: center;
        max-width: 45vw;
    }
}

/* 小型スマートフォン（575px以下） */
@media (max-width: 575px) {
    .scroll-top {
        bottom: 80px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    /* .service-name, */
    .case-thumb p {
        font-size: 0.9rem;
        padding: 1rem;
    }

    /* section {
        padding: 30px 0;
    } */
    .btn-black {
        max-width: 60vw;
        /* スマホではさらに狭く */
    }
}




/* Desktop Layout (768px and up) */
@media (min-width: 768px) {
    /* First row with main image and content */
    .case-section .container > .row:first-of-type {
        margin-bottom: 20px;
    }
    
    /* Position cards to align with right column */
    .case-section .container > .row:last-of-type {
        position: relative;
    }
    
    .case-cards-wrapper {
        margin-left: calc(41.666667%);
        padding-left: 15px;
        margin-top: -180px; /* Adjust this value to align bottoms */
    }
    
    /* .case-card-image img {
        height: 140px;
    }
    
    .case-card-description {
        font-size: 13px;
    } */
}

/* Large Desktop */
@media (min-width: 992px) {
    .case-cards-wrapper {
        margin-top: -200px; /* Fine tune for larger screens */
    }
    
    /* .case-card-image img {
        height: 160px;
    }
    
    .case-card-description {
        font-size: 0.9rem;
    } */
}

/* Tablet Layout */
@media (max-width: 991px) and (min-width: 768px) {
    .case-cards-wrapper {
        margin-top: -160px;
    }
    
    /* .case-card-image img {
        height: 120px;
    }
    
    .case-card-description {
        font-size: 12px;
    } */
}

/* Mobile Layout (below 768px) */
@media (max-width: 767px) {
    .case-section .container > .row:first-of-type {
        margin-bottom: 20px;
    }
    
    /* Reset desktop positioning */
    .case-cards-wrapper {
        margin-left: 0;
        margin-top: 0;
        padding-left: 0;
    }
    
    /* Keep 3 columns side by side */
    /* .case-cards-row {
        gap: 8px;
    }
    
    .case-cards-row > div {
        flex: 0 0 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
    }
    
    .case-card-image {
        margin-bottom: 8px;
    }
    
    .case-card-image img {
        height: 85px;
    }
    
    .case-card-description {
        font-size: 11px;
        line-height: 1.3;
    } */
    
    .case-content {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    /* .case-cards-row {
        gap: 6px;
    }
    
    .case-cards-row > div {
        flex: 0 0 calc(33.333% - 4px);
        max-width: calc(33.333% - 4px);
    }
    
    .case-card-image img {
        height: 75px;
    }
    
    .case-card-description {
        font-size: 10px;
    } */
}
/* ============================================
   スクロールマージン（固定ヘッダー対応）
   ============================================ */
section[id],
div[id] {
    scroll-margin-top: 100px; 
}


#satisfaction,
#performance,
#DX,
#AI,
#management {
    scroll-margin-top: 100px; 
}

/* singles.php */
/* ====================== */
/* ====================== */
.single-article {
    min-height: 60vh;
    /* background-color: #f8f8f8 !important; */
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\03e" !important;
    color: #999;
}

.breadcrumb-item a {
    transition: opacity 0.3s;
    font-size: 90%;
}

.breadcrumb-item a:hover {
    opacity: 0.7;
}

/* Article Title */
.article-title {
    font-size: 1.75rem;
    line-height: 1.6;
    color: #444 !important;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 1.85rem;
    }
}

/* Article Content */
.article-content {
    line-height: 2;
    font-size: 0.9375rem;
    color: #333;
}

.article-content p {
    font-size: 1rem;
    line-height: 2.1;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content strong,
.article-content b {
    font-weight: 600;
}

/* Diamond bullet for headers */
.article-content h3::before,
.article-content h4::before {
    content: "◆ ";
    color: #2c7c4a;
    margin-right: 0.5em;
}

.article-content h3,
.article-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}

/* Lists in content */
.article-content ul,
.article-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

/* Links in content */
.article-content a {
    color: #2c7c4a;
    text-decoration: underline;
}

.article-content a:hover {
    opacity: 0.7;
}

/* Images in content */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1.5em 0;
}

/* Back Button Customization */
.btn-outline-success {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: #2c7c4a;
    border-color: #2c7c4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 124, 74, 0.2);
}

/* Card Shadows */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Text Colors */
.text-success {
    color: #2c7c4a !important;
}

.btn-outline-success {
    color: #2c7c4a;
    border-color: #2c7c4a;
}

.btn-outline-success:hover,
.btn-outline-success:active,
.btn-outline-success:focus {
    color: #fff;
    background-color: #2c7c4a;
    border-color: #2c7c4a;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 0.875rem;
    }
    
    .btn-lg {
        font-size: 0.875rem;
        padding: 0.75rem 2rem;
    }
}

/* Print Styles */
@media print {
    .breadcrumb,
    .btn-outline-success {
        display: none !important;
    }
    
    .single-article {
        background-color: #fff !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}


header img.img-fluid,
footer img.img-fluid {
    filter: none !important;
}

/* Image Grayscale Effect */
.img-gray {
  filter: grayscale(100%);
  transition: filter 1.8s ease;
  backface-visibility: hidden;
  min-height: 100px;
}
.img-gray.is-active,
.img-gray:hover {
  filter: grayscale(0%);
}
/* Fade-in effect */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}
.fade-in.is-active {
    opacity: 1;
    transform: translateY(0);
}
/* For menu */
div#offcanvasMenu{
    z-index: 9999;
}