/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 2.5.0
Text Domain:  Avada
*/

/* ============================================
   一般財団法人メンタルヘルス臨床研究支援財団
   カスタムCSS（Layout Builder対応版）
   ============================================ */

/* =====================
   0. カラー変数（ここを変えれば見出し色が一括変更可能）
   ===================== */
:root {
    --mhcr-heading-bg: #006DF6;       /* h2 背景色 */
    --mhcr-heading-text: #ffffff;      /* h2 文字色 */
    --mhcr-heading-sub: #006DF6;       /* h3 左線の色 */
    --mhcr-heading-sub-text: #2c3e50;  /* h3 文字色 */
}

/* =====================
   1. ロゴの拡大・調整
   ===================== */
/* ロゴ画像 - 適切なサイズに制御 */
html body #wrapper .fusion-tb-header img.fusion-standard-logo,
html body #wrapper .fusion-tb-header img.img-responsive,
html body #wrapper .fusion-tb-header .fusion-imageframe img,
html body #wrapper .fusion-tb-header .fusion-image-element img {
    max-height: none !important;
    max-width: 400px !important;
    width: 400px !important;
    height: auto !important;
}

/* ロゴのリンク親要素 */
html body #wrapper .fusion-tb-header a.fusion-no-lightbox {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 0 !important;
    max-height: none !important;
    max-width: none !important;
}

/* Avadaの画像フレーム・画像要素 */
html body #wrapper .fusion-tb-header .fusion-imageframe,
html body #wrapper .fusion-tb-header .awb-image-frame,
html body #wrapper .fusion-tb-header .fusion-image-element {
    max-height: none !important;
    max-width: none !important;
    width: auto !important;
    overflow: visible !important;
}

/* ロゴカラムの幅をロゴに合わせて拡張 */
html body #wrapper .fusion-tb-header .fusion-layout-column:has(.fusion-image-element) {
    width: auto !important;
    min-width: 420px !important;
    max-width: 450px !important;
}
html body #wrapper .fusion-tb-header .fusion-layout-column:has(.fusion-image-element) .fusion-column-wrapper {
    width: auto !important;
    max-width: 420px !important;
}

/* =====================
   1b. Off Canvasアイコン非表示
   ===================== */
html body #wrapper a[href="#awb-open-oc_2461"],
html body #wrapper .awb-off-canvas-trigger {
    display: none !important;
}

/* =====================
   2. ヘッダー全体（Layout Builder版）
   ===================== */
html body #wrapper .fusion-tb-header {
    background-color: #ffffff !important;
    border-bottom: 2px solid #006DF6 !important;
    box-shadow: 0 2px 8px rgba(26, 111, 160, 0.08) !important;
    margin-bottom: 0 !important;
}

/* =====================
   2b. ヘッダー〜アイキャッチ間のスキマ除去
   ===================== */

/* Avadaデフォルトのページタイトルバーを非表示 */
html body #wrapper .fusion-page-title-bar {
    display: none !important;
}

/* ヘッダー下余白ゼロ */
html body #wrapper .fusion-tb-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* コンテンツ領域の上余白をゼロに */
html body #wrapper #main,
html body #wrapper #main > .fusion-row,
html body #wrapper #content,
html body #wrapper .fusion-tb-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ★ 原因①: fusion-fullwidth セクションのスティッキー無効化
   （body側のコンテンツセクション。ヘッダーのスティッキーには影響しない） */
html body #wrapper .fusion-fullwidth.fusion-sticky-container:not(.fusion-tb-header .fusion-fullwidth) {
    position: relative !important;
    top: auto !important;
}

/* ★ 原因②: スティッキー用スペーサーを除去 */
html body #wrapper .fusion-sticky-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ★ 原因③: 空のスライダーコンテナを除去 */
html body #wrapper #sliders-container {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ★ 原因④: fusion-layout-column の margin-top CSS変数を上書き */
html body #wrapper .fusion-layout-column {
    --awb-margin-top-large: 0px !important;
    margin-top: 0 !important;
}

/* fusion-fullwidth / builder-row / column-wrapper の上余白 */
html body #wrapper .fusion-fullwidth,
html body #wrapper .fusion-builder-row,
html body #wrapper .fusion-column-wrapper,
html body #wrapper .fusion-column-wrapper.fusion-content-layout-column {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* コードブロック自体の上余白 */
html body #wrapper .fusion-code-block {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =====================
   3. メインナビゲーション（awb-menu）
   ===================== */
html body #wrapper nav.awb-menu .awb-menu__main-a,
html body #wrapper .fusion-tb-header .awb-menu__main-a {
    color: #2c3e50 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    transition: color 0.3s ease, background-color 0.3s ease !important;
}

/* メニューホバー時 — 背景なし・文字色のみ変更 */
html body #wrapper nav.awb-menu .awb-menu__main-li:hover > .awb-menu__main-a,
html body #wrapper .fusion-tb-header .awb-menu__main-li:hover > .awb-menu__main-a {
    color: #006DF6 !important;
    background-color: transparent !important;
}

/* 現在のページ（アクティブ状態） */
html body #wrapper nav.awb-menu .current-menu-item > .awb-menu__main-a,
html body #wrapper nav.awb-menu .current_page_item > .awb-menu__main-a,
html body #wrapper nav.awb-menu .current-menu-ancestor > .awb-menu__main-a {
    color: #006DF6 !important;
}

/* ===== 背景バーを下線（3px）として表示 ===== */
/* Avadaの背景バー要素を非表示にし、代わりにメニューリンク自体に下線を付ける */
html body #wrapper nav.awb-menu .awb-menu__main-background-active,
html body #wrapper nav.awb-menu .awb-menu__main-background-default {
    display: none !important;
}

/* アクティブ時の下線 */
html body #wrapper nav.awb-menu .current-menu-item > .awb-menu__main-a,
html body #wrapper nav.awb-menu .current_page_item > .awb-menu__main-a {
    border-bottom: 3px solid #006DF6 !important;
}

/* ホバー時の下線 */
html body #wrapper nav.awb-menu .awb-menu__main-li:hover > .awb-menu__main-a {
    border-bottom: 3px solid #006DF6 !important;
}

/* =====================
   4. ドロップダウンサブメニュー
   ===================== */
html body #wrapper nav.awb-menu .awb-menu__sub-ul,
html body #wrapper nav.awb-menu .sub-menu {
    background-color: #ffffff !important;
    border-top: 3px solid #006DF6 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

html body #wrapper nav.awb-menu .awb-menu__sub-a,
html body #wrapper nav.awb-menu .sub-menu a {
    color: #2c3e50 !important;
    font-size: 13px !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

html body #wrapper nav.awb-menu .awb-menu__sub-li:hover > a,
html body #wrapper nav.awb-menu .sub-menu li:hover > a {
    color: #006DF6 !important;
    background-color: #e9f4fb !important;
}

/* =====================
   5. メニューテキストの色
   ===================== */
html body #wrapper nav.awb-menu .awb-menu__main-a .menu-text,
html body #wrapper .fusion-tb-header .menu-text {
    color: inherit !important;
}

/* =====================
   6. モバイル対応
   ===================== */
@media only screen and (max-width: 800px) {

    /* ===========================================
       ① ロゴ中央配置（スマホ）
       ===========================================
       原因: ロゴカラム --awb-width-small:75% / メニューカラム 25% で
       横並びのまま。100%にして縦積みにする。
       =========================================== */

    /* 両カラムを100%幅にして縦積みに変更 */
    html body #wrapper .fusion-tb-header .fusion-builder-row-1 .fusion-layout-column,
    html body #wrapper .fusion-tb-header .fusion-builder-column-0,
    html body #wrapper .fusion-tb-header .fusion-builder-column-1 {
        --awb-width-small: 100% !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }

    /* ロゴカラム（column-0 / 1_5）を中央揃え */
    html body #wrapper .fusion-tb-header .fusion-builder-column-0 .fusion-column-wrapper,
    html body #wrapper .fusion-tb-header .fusion_builder_column_1_5 .fusion-column-wrapper {
        justify-content: center !important;
    }

    /* ロゴ画像の右マージン解除（デスクトップ用10pxを0に） */
    html body #wrapper .fusion-tb-header .fusion-image-element {
        --awb-margin-right: 0px !important;
        margin-right: 0 !important;
    }

    /* ロゴ画像サイズ（スマホ用） */
    html body #wrapper .fusion-tb-header img.img-responsive {
        max-height: 80px !important;
        width: auto !important;
        height: auto !important;
    }


    /* ===========================================
       ② メニューバー左寄せ（スマホ）
       =========================================== */

    /* メニューカラム（column-1 / 3_4）を左揃え */
    html body #wrapper .fusion-tb-header .fusion-builder-column-1 .fusion-column-wrapper,
    html body #wrapper .fusion-tb-header .fusion_builder_column_3_4 .fusion-column-wrapper {
        justify-content: flex-start !important;
    }

    /* ハンバーガーボタン */
    html body #wrapper .awb-menu__m-toggle {
        color: #006DF6 !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        --awb-trigger-padding-left: 0px !important;
    }


    /* ===========================================
       ③ コンテンツ部分を上に詰める
       =========================================== */

    /* ヘッダーの上下パディングを縮小（インライン --awb-padding-top-small:15px を上書き） */
    html body #wrapper .fusion-tb-header .fusion-builder-row-1 {
        --awb-padding-top-small: 8px !important;
        --awb-padding-bottom-small: 8px !important;
    }

    /* wpautopが生成した空pタグを全て非表示
       （実コンテンツは全て.mhcr-*のdiv内なので、.post-content直下のpは全て不要） */
    html body #wrapper .post-content > p {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    /* コンテンツ領域の上余白を除去 */
    html body #wrapper #main,
    html body #wrapper #main > .fusion-row,
    html body #wrapper #content,
    html body #wrapper .post-content,
    html body #wrapper .page .post-content,
    html body #wrapper .post-content > div:first-of-type {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .mhcr-eyecatch {
        margin-top: 0 !important;
    }


    /* ===========================================
       モバイル展開メニュー
       =========================================== */
    html body #wrapper nav.awb-menu .awb-menu__main-ul_column .awb-menu__main-a {
        color: #2c3e50 !important;
        border-bottom: 1px solid #d0e4f0 !important;
    }

    html body #wrapper nav.awb-menu .awb-menu__main-ul_column .awb-menu__main-li:hover > .awb-menu__main-a {
        color: #006DF6 !important;
        background-color: #e9f4fb !important;
    }
}


/* ============================================
   7. 全ページ共通スタイル
   ============================================ */

/* --- 基本タイポグラフィ --- */
.mhcr-content {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.9;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* h2: 背景色ベタ塗り + 白テキスト（参考サイト準拠） */
.mhcr-content h2 {
    background-color: var(--mhcr-heading-bg) !important;
    color: var(--mhcr-heading-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 24px !important;
    padding: 10px 16px !important;
    border: none !important;
    letter-spacing: 0.5px !important;
    line-height: 1.5 !important;
}

/* h3: 左線 + テキスト色（参考サイト準拠） */
.mhcr-content h3 {
    color: var(--mhcr-heading-sub-text) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 32px 0 16px !important;
    padding: 4px 0 4px 14px !important;
    border-left: 4px solid var(--mhcr-heading-sub) !important;
    border-bottom: none !important;
}

.mhcr-content h4 {
    color: #2c3e50;
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.mhcr-content p {
    margin: 0 0 16px;
}

/* --- セクション共通 --- */
.mhcr-section {
    padding: 60px 0;
}

.mhcr-section--gray {
    background-color: #f7fafc;
}

.mhcr-section--blue {
    background-color: #e9f4fb;
}

.mhcr-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- セクション見出し（中央寄せ・トップページ用） --- */
/* h2.mhcr-section-title は背景塗りなしの中央テキスト */
.mhcr-section-title {
    text-align: center;
    color: var(--mhcr-heading-bg);
    background-color: transparent;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    padding: 0;
    letter-spacing: 1px;
}

.mhcr-section-subtitle {
    text-align: center;
    color: #7a9bb5;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 40px;
    text-transform: uppercase;
}

/* --- ボタン --- */
.mhcr-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: #006DF6;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.mhcr-btn:hover {
    background-color: #0058c7;
    box-shadow: 0 4px 12px rgba(26, 111, 160, 0.3);
    color: #ffffff !important;
}

.mhcr-btn--outline {
    background-color: transparent;
    color: #006DF6 !important;
    border: 2px solid #006DF6;
}

.mhcr-btn--outline:hover {
    background-color: #006DF6;
    color: #ffffff !important;
}

.mhcr-btn--large {
    padding: 16px 48px;
    font-size: 16px;
}

/* --- テーブル共通 --- */
.mhcr-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 15px;
}

.mhcr-table th,
.mhcr-table td {
    padding: 14px 18px;
    border: 1px solid #d0e4f0;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}

.mhcr-table th {
    background-color: #006DF6;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    width: 160px;
}

.mhcr-table tr:nth-child(even) td {
    background-color: #f7fafc;
}

/* --- PDFリンクボタン --- */
.mhcr-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #006DF6 !important;
    text-decoration: none !important;
    border: 2px solid #006DF6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 6px 0;
}

.mhcr-pdf-link:hover {
    background-color: #006DF6;
    color: #ffffff !important;
}

.mhcr-pdf-link::before {
    content: none;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 16px;
}

/* --- アイキャッチ画像（全ページ共通） --- */
/*
   使い方:
   <div class="mhcr-eyecatch"
        style="background-image: url('画像URL'); min-height: 300px;">
     <div class="mhcr-eyecatch-inner">
       <h1 class="mhcr-eyecatch-title">タイトル</h1>
       <p class="mhcr-eyecatch-sub">ENGLISH</p>
       <p class="mhcr-eyecatch-text">説明テキスト</p>
     </div>
   </div>

   ・background-image → ページごとにインラインで指定
   ・min-height → ページごとにインラインで指定（HOME: 400px, 下層: 260px 等）
   ・画像なしの場合は背景色 #006DF6 がフォールバック
*/
.mhcr-eyecatch {
    width: 100%;
    background-color: #006DF6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mhcr-eyecatch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.5);
    z-index: 1;
}

.mhcr-eyecatch-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
}

.mhcr-eyecatch-title {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    margin: 0 0 8px !important;
    line-height: 1.5 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.mhcr-eyecatch-sub {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px;
    letter-spacing: 3px;
    margin: 0;
    text-transform: uppercase;
}

.mhcr-eyecatch-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px;
    line-height: 1.9;
    margin: 16px 0 0;
    letter-spacing: 0.5px;
}

/* --- 最新情報セクション --- */
/*
   背景を変更したい場合:
   HTML側の .mhcr-news-section に style="background-image: url('...'); background-size: cover;"
   または style="background-color: #f0f0f0;" などを追加
*/
.mhcr-news-section {
    background-color: #f7fafc;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mhcr-news-card {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* --- ニュースリスト --- */
.mhcr-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mhcr-news-list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e8ef;
}

.mhcr-news-list li:last-child {
    border-bottom: none;
}

.mhcr-news-date {
    color: #006DF6;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
}

.mhcr-news-title {
    color: #2c3e50;
    font-size: 15px;
}

.mhcr-news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mhcr-news-title a:hover {
    color: #006DF6;
}

/* --- 沿革（タイムライン） --- */
.mhcr-timeline {
    position: relative;
    padding-left: 30px;
}

.mhcr-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8px;
    bottom: 0;
    width: 3px;
    background-color: #d0e4f0;
}

.mhcr-timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-left: 16px;
}

.mhcr-timeline-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: #006DF6;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #006DF6;
}

.mhcr-timeline-year {
    color: #006DF6;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mhcr-timeline-text {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.7;
}

/* --- フッター --- */
/*
   背景画像を使う場合:
   HTML側の .mhcr-footer に style="background-image: url('画像URL');" を追加
   オーバーレイは ::before で自動適用される
*/
.mhcr-footer {
    background-color: #1a3a52;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #c8dae8;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    position: relative;
}

/* 背景画像使用時のオーバーレイ */
.mhcr-footer[style*="background-image"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.85);
    z-index: 1;
}

.mhcr-footer-body {
    position: relative;
    z-index: 2;
    padding: 40px 0 0;
}

.mhcr-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.mhcr-footer-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.mhcr-footer-address {
    color: #a0bcd0;
    font-size: 13px;
    margin: 0 0 24px;
}

.mhcr-footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.mhcr-footer-nav li {
    list-style: none;
}

.mhcr-footer-nav a {
    color: #c8dae8 !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: color 0.2s ease;
}

.mhcr-footer-nav a:hover {
    color: #ffffff !important;
}

.mhcr-footer-copyright {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    color: #7a9bb5;
    font-size: 12px;
    text-align: center;
}

/* --- Avadaフッターテンプレート内でのCSS隔離 --- */
/* フッターのコードブロック外のAvada要素に影響しないよう、
   .mhcr-footer 内のAvadaデフォルトスタイルをリセット */
.mhcr-footer,
.mhcr-footer * {
    box-sizing: border-box;
}

.mhcr-footer p {
    margin: 0;
    padding: 0;
}

.mhcr-footer ul {
    margin: 0;
    padding: 0;
}

/* --- Contact Form 7 カスタマイズ --- */
.mhcr-content .wpcf7 input[type="text"],
.mhcr-content .wpcf7 input[type="email"],
.mhcr-content .wpcf7 input[type="tel"],
.mhcr-content .wpcf7 textarea,
.mhcr-content .wpcf7 select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d0e4f0;
    border-radius: 4px;
    font-size: 15px;
    color: #2c3e50;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.mhcr-content .wpcf7 input:focus,
.mhcr-content .wpcf7 textarea:focus,
.mhcr-content .wpcf7 select:focus {
    border-color: #006DF6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 111, 160, 0.1);
}

.mhcr-content .wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

.mhcr-content .wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 14px 48px;
    background-color: #006DF6;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mhcr-content .wpcf7 input[type="submit"]:hover {
    background-color: #0058c7;
    box-shadow: 0 4px 12px rgba(26, 111, 160, 0.3);
}

.mhcr-content .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.mhcr-form-row {
    margin-bottom: 24px;
}

.mhcr-form-row label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 14px;
}

.mhcr-form-row .mhcr-required {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 4px;
}


/* ============================================
   8. 投稿ページ（single post）のスタイル
   ============================================ */

/* --- スキマ除去CSSを投稿ページでは解除 --- */
.single-post #wrapper .fusion-page-title-bar,
.single-post #wrapper .fusion-page-title-bar *,
.single-post #wrapper .fusion-page-title-bar::before,
.single-post #wrapper .fusion-page-title-bar::after,
.single-post #wrapper .fusion-page-title-bar *::before,
.single-post #wrapper .fusion-page-title-bar *::after {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Avada CSS変数によるボーダーを上書き */
.single-post #wrapper .fusion-page-title-bar,
.single-post #wrapper .fusion-page-title-bar > div,
.single-post #wrapper .fusion-tb-page-title-bar,
.single-post #wrapper .fusion-tb-page-title-bar > div {
    --awb-border-top: 0px solid transparent !important;
    --awb-border-bottom: 0px solid transparent !important;
    --awb-border-left: 0px solid transparent !important;
    --awb-border-right: 0px solid transparent !important;
    --awb-border-top-width: 0px !important;
    --awb-border-bottom-width: 0px !important;
    --awb-border-color: transparent !important;
    border-top-width: 0px !important;
    border-bottom-width: 0px !important;
}

.single-post #wrapper .fusion-page-title-bar,
.single-post #wrapper section.fusion-page-title-bar.fusion-tb-page-title-bar {
    display: block !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ヘッダー・セパレーター等の線を投稿ページでは非表示 */
.single-post #wrapper .fusion-tb-header {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ヘッダーとタイトルバーの隙間を除去 */
.single-post #wrapper > .fusion-wrapper > div[id="home"],
.single-post #wrapper .fusion-wrapper > div[style*="position"] {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* body/wrapperの背景色を白にして隙間が目立たないように */
.single-post,
.single-post #wrapper,
.single-post #wrapper > .fusion-wrapper {
    background-color: #ffffff !important;
}

.single-post #wrapper .fusion-separator,
.single-post #wrapper .fusion-header-separator {
    display: none !important;
}

.single-post #wrapper #sliders-container {
    display: none !important;
    height: 0 !important;
    border: none !important;
}

/* タイトルバー内を上下中央揃え */
.single-post #wrapper .fusion-page-title-bar .fusion-fullwidth {
    --awb-padding-top: 0px !important;
    --awb-padding-bottom: 0px !important;
    --awb-padding-top-small: 0px !important;
    --awb-padding-bottom-small: 0px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 300px !important;
}

.single-post #wrapper .fusion-page-title-bar .fusion-builder-row,
.single-post #wrapper .fusion-page-title-bar [class*="fusion-flex-content-wrap"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 300px !important;
    width: 100% !important;
}

.single-post #wrapper .fusion-page-title-bar .fusion-layout-column {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-post #wrapper .fusion-page-title-bar .fusion-column-wrapper,
.single-post #wrapper .fusion-page-title-bar .fusion-flex-justify-content-flex-start {
    justify-content: center !important;
    align-items: center !important;
}

.single-post #wrapper .fusion-page-title-bar h1,
.single-post #wrapper .fusion-page-title-bar .entry-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
}

.single-post #wrapper .fusion-page-title-bar .fusion-page-title-captions {
    padding: 0 20px !important;
}

.single-post #wrapper #main,
.single-post #wrapper #main > .fusion-row,
.single-post #wrapper #content {
    padding-top: 40px !important;
}

.single-post #wrapper .fusion-fullwidth,
.single-post #wrapper .fusion-builder-row,
.single-post #wrapper .fusion-column-wrapper {
    padding-top: revert !important;
    margin-top: revert !important;
}

.single-post #wrapper .fusion-layout-column {
    --awb-margin-top-large: revert !important;
    margin-top: revert !important;
}

.single-post #wrapper .fusion-fullwidth.fusion-sticky-container {
    position: revert !important;
    top: revert !important;
}

.single-post #wrapper .fusion-sticky-spacer {
    display: revert !important;
    height: revert !important;
}

/* --- 投稿コンテンツのスタイル --- */
.single-post .post-content,
.single-post .fusion-post-content,
.single-post #content .entry-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-size: 15px;
    line-height: 1.9;
    color: #2c3e50;
}

/* 投稿メタ情報（日付・カテゴリー） */
.single-post .fusion-meta-info {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 0 20px;
    color: #7a9bb5;
    font-size: 14px;
}

/* 投稿ナビゲーション */
.single-post .fusion-single-navigation {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px;
    border-top: 1px solid #e0e8ef;
}


/* ============================================
   9. レスポンシブ対応（全ページ共通コンポーネント）
   ============================================ */

/* --- タブレット (max-width: 768px) --- */
@media only screen and (max-width: 768px) {

    /* セクション余白 */
    .mhcr-section {
        padding: 40px 0;
    }

    .mhcr-container {
        padding: 0 16px;
    }

    /* 見出し */
    .mhcr-content h2 {
        font-size: 16px !important;
        padding: 8px 14px !important;
        margin-bottom: 20px !important;
    }

    .mhcr-content h3 {
        font-size: 14px !important;
    }

    .mhcr-section-title {
        font-size: 20px;
    }

    /* アイキャッチ */
    .mhcr-eyecatch-title {
        font-size: 22px !important;
        letter-spacing: 1px !important;
    }

    .mhcr-eyecatch-inner {
        padding: 32px 16px;
    }

    .mhcr-news-card {
        padding: 8px 20px;
    }

    /* テーブル横スクロール対応 */
    .mhcr-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mhcr-table th {
        width: 120px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .mhcr-table td {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* ニュースリスト */
    .mhcr-news-list li {
        flex-direction: column;
        gap: 4px;
    }

    /* ボタン */
    .mhcr-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .mhcr-btn--large {
        padding: 14px 36px;
        font-size: 15px;
    }

    /* PDFリンク */
    .mhcr-pdf-link {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* フッター */
    .mhcr-footer-nav {
        gap: 16px;
    }

    .mhcr-footer-name {
        font-size: 14px;
    }
}

/* --- スマートフォン (max-width: 480px) --- */
@media only screen and (max-width: 480px) {

    .mhcr-section {
        padding: 32px 0;
    }

    .mhcr-content h2 {
        font-size: 15px !important;
        padding: 8px 12px !important;
    }

    .mhcr-content h3 {
        font-size: 13px !important;
    }

    .mhcr-section-title {
        font-size: 18px;
    }

    .mhcr-section-subtitle {
        font-size: 11px;
        margin-bottom: 32px;
    }

    /* アイキャッチ */
    .mhcr-eyecatch-title {
        font-size: 19px !important;
        letter-spacing: 0.5px !important;
    }

    .mhcr-eyecatch-text {
        font-size: 13px;
    }

    .mhcr-eyecatch-inner {
        padding: 24px 16px;
    }

    /* テーブル縦積み */
    .mhcr-table,
    .mhcr-table tbody,
    .mhcr-table tr,
    .mhcr-table th,
    .mhcr-table td {
        display: block;
        width: 100%;
    }

    .mhcr-table tr {
        margin-bottom: 12px;
        border: 1px solid #d0e4f0;
        border-radius: 6px;
        overflow: hidden;
    }

    .mhcr-table th {
        width: 100%;
        white-space: normal;
    }

    .mhcr-table tr:nth-child(even) td {
        background-color: #ffffff;
    }

    /* ボタン全幅 */
    .mhcr-btn {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* PDFリンク全幅 */
    .mhcr-pdf-link {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    /* タイムライン */
    .mhcr-timeline {
        padding-left: 24px;
    }

    .mhcr-timeline-year {
        font-size: 15px;
    }

    .mhcr-timeline-text {
        font-size: 14px;
    }

    /* フッター */
    .mhcr-footer {
        padding: 32px 0 0;
    }

    .mhcr-footer-nav {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .mhcr-footer-copyright {
        font-size: 11px;
        padding: 12px 0;
    }
}
