@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ - Jinan Dental カスタマイズ（最適化版）
    Version: 1.2.0
    Author: LOOS WEB STUDIO + Customization
    Author URI: https://loos-web-studio.com/
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ========================================
   基本設定・リセット
======================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    line-height: 1.7;
    font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", sans-serif;
    color: #736357;
}

/* SWELLのヘッダー前の余白を削除 */
#body_wrap,
.l-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 管理バー対応 */
body.admin-bar .l-header {
    margin-top: 0 !important;
}

/* SWELLのトップバー・メインコンテンツの余白削除 */
.p-topBar,
.l-header + *,
.l-header ~ .l-container {
    margin-top: 0 !important;
}

/* 見出しカラー統一 */
h1, h2, h3, h4, h5, h6 {
    color: #534741;
    font-weight: bold;
}

/* ========================================
   ヘッダー関連 - 簡素化版
======================================== */
.l-header {
    background: transparent !important;
    position: relative;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    top: 0 !important;
    overflow-x: hidden; /* 横スクロール防止 */
}

.l-header::before {
    margin: 0 !important;
    padding: 0 !important;
}

body.home .l-header {
    min-height: 400px;
}

/* ロゴ - 完全非表示 */
.l-header__logo,
.c-headLogo,
.c-headLogo__img {
    display: none !important;
    visibility: hidden !important;
}

/* ========================================
   メインビジュアル - 統一表示（横幅100%対応）
======================================== */
/* 旧要素を非表示化 */
.l-header__inner::before {
    display: none !important;
}

/* 通常ページのメインビジュアル */
body:not(.home) .l-header__inner::after {
    content: "";
    display: block;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 0;
    padding-bottom: 10.42%;
    background: url('/article/wp-content/themes/swell_child/assets/img/header_img.png') no-repeat center top;
    background-size: 100% auto;
    z-index: 1;
    margin: 0;
}

/* ホームページのメインビジュアル */
body.home .l-header__inner::after {
    content: "";
    display: block;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 350px;
    background: url(http://jinai.net/article/wp-content/uploads/2025/10/jinai-main.png) no-repeat center center;
    background-size: contain;
    z-index: 1;
    margin: 0;
}

/* ========================================
   グローバルナビゲーション - 木の枠デザイン
======================================== */
.l-header__gnav {
    position: relative;
    z-index: 3000;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    min-height: 100px;
    clear: both;
    margin-top: 0;
    overflow: visible;
}

/* 背景画像 */
.l-header__gnav::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url('http://jinai.net/article/wp-content/uploads/2025/10/bg_gnav.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    z-index: 1;
    pointer-events: none;
}

/* 古い疑似要素は非表示 */
.l-header__gnav::before {
    display: none;
}

/* ホームページ専用の位置調整 */
body.home .l-header__gnav {
    margin-top: 350px;
}

body:not(.home) .l-header__gnav {
    margin-top: 0;
}

/* ナビゲーションメニュー本体 */
.c-gnav {
    margin: 0;
    padding: 30px 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    min-height: 40px;
}

/* ナビゲーションリンク - 統一スタイル */
.c-gnav li {
    margin: 0;
    padding: 0;
}

.c-gnav a,
.l-header__gnav a,
.p-globalNav a {
    display: block;
    padding: 0.5em 1em 0.5em 2em;
    margin: 0.4em;
    color: #FFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    background-color: transparent;
    background-image: none !important;
    border-radius: 25px;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-underline-offset: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
}

/* ナビゲーションホバー・フォーカス時 */
.c-gnav a:hover,
.c-gnav a:focus,
.l-header__gnav a:hover,
.l-header__gnav a:focus,
.p-globalNav a:hover,
.p-globalNav a:focus {
    background-color: rgba(0, 0, 0, 0.5);
    color: #d9d501 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateY(-2px);
}

/* オレンジ線の完全削除 */
.l-header__gnav a::after,
.l-header__gnav a::before,
.c-gnav a::after,
.c-gnav a::before,
.p-globalNav a::after,
.p-globalNav a::before {
    display: none !important;
    content: none !important;
}

/* 現在のページ */
.c-gnav .current-menu-item a,
.c-gnav .current_page_item a {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    text-decoration: none !important;
}

/* ========================================
   コンテンツエリア
======================================== */
.l-container {
    max-width: 1400px;
    padding: 1em 2em;
    margin: 0 auto;
}

/* メインコンテンツ */
.l-mainContent {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
    padding: 2em;
	width: auto;
}

/* サイドバー付きレイアウト */
.l-mainContent.-sidebar {
    max-width: 100%;
}

/* 見出しデザイン */
.c-pageTitle,
.p-entryContent h2 {
    padding: 0.5em 0 0.5em 1.3em;
    background: url(images/common/border_h2.gif) transparent no-repeat scroll 10px 14px;
    border-top: 1px solid #C7B299;
    border-bottom: 1px dotted #C7B299;
}

.p-entryContent h3 {
    position: relative;
    margin: 2em 0 1em 0;
    padding: 0 0 1em 0;
    border-bottom: 1px dotted #C7B299;
}

/* メインコンテンツの高さを内容に合わせる */
.l-mainContent {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
    padding: 2em;
    width: auto;
    align-self: flex-start !important; /* 追加：自分の高さで止める */
}

/* コンテナの設定 */
.l-container::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   サイドバー
======================================== */
.l-sidebar {
    width: 100%;
}

/* ウィジェット */
.c-widget,
.widget {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
    padding: 1em 1.9em;
    margin-bottom: 1em;
    overflow: hidden !important;
}

/* サイドバー見出し - 統一スタイル */
.c-widget__title,
.widget-title,
.widget h2,
.widget h3.widget-title,
aside .widget-title,
aside h2,
.sidebar .widget-title,
.sidebar h2,
#secondary .widget-title,
#secondary h2,
.l-sidebar .c-widget__title,
.widget-area .widget-title,
.l-sidebar .widget h2 {
    border-left: 4px solid #4dc950 !important;
    padding: 10px 20px !important;
    background-color: #f1ece0 !important;
    border-bottom: 1px dotted #eae3da !important;
    margin: -1em -1.9em 1em -1.9em !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    position: relative !important;
}

/* サイドバーリスト項目 */
.c-widget li,
.widget li,
.widget-area li,
aside li,
.sidebar li,
#secondary li {
    margin: 0.5em 0;
    padding: 0.5em 0;
    border-bottom: 1px dotted #eae3da !important;
    list-style: none !important;
}

.c-widget li:last-child,
.widget li:last-child,
.widget-area li:last-child,
aside li:last-child,
.sidebar li:last-child,
#secondary li:last-child {
    border-bottom: none !important;
}

/* サイドバーのリンク */
.c-widget a,
.widget a {
    color: #534741;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.c-widget a:hover,
.widget a:hover {
    color: #007177;
    text-decoration: none !important;
    border: none !important;
}

/* ========================================
   フッター - フレキシブル版
======================================== */
.l-footer {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    clear: both !important;
    border-radius: 0 !important;
    position: relative !important;
    width: 100% !important;
    box-shadow: none !important;
    min-height: auto !important;
}

/* フッター内側コンテナ */
.l-footer__inner {
    background: #f9f9f9 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 20px 110px 20px !important;
    position: relative !important;
    z-index: 1 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: auto !important;
    height: auto !important;
}

/* フッター最下部の装飾画像 */
.l-footer__inner::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('http://jinai.net/article/wp-content/uploads/2025/10/jinai-footer.png') no-repeat center bottom;
    background-size: cover;
    z-index: 999;
    pointer-events: none;
}

/* フッターウィジェットエリア */
.l-footer__widgetArea {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    justify-content: center !important;
    max-width: 1200px !important;
    margin: 0 auto 10px auto !important;
    padding: 0 20px !important;
    background: transparent !important;
}

/* 各フッターウィジェット */
.l-footer__widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    color: #cfcbc7 !important;
    flex: 1 1 auto !important;
    min-width: 250px !important;
}

/* 1カラム目（診療時間等） */
.l-footer__widget:nth-child(1) {
    flex: 2 1 auto !important;
    min-width: 350px !important;
}

/* 2カラム目（その他のコンテンツ） */
.l-footer__widget:nth-child(2) {
    flex: 2 1 auto !important;
    min-width: 350px !important;
    padding: 0 20px !important;
}

/* 3カラム目（地図） */
.l-footer__widget:nth-child(3) {
    flex: 1.5 1 auto !important;
    min-width: 280px !important;
    max-width: 350px !important;
}

/* フッター見出し・テキスト */
.l-footer__widget h2,
.l-footer__widget .c-widget__title,
.l-footer__widget .widget-title,
.l-footer__widget p,
.l-footer__widget,
.l-footer__widget * {
    color: #cfcbc7 !important;
}

.l-footer__widget h2,
.l-footer__widget .c-widget__title,
.l-footer__widget .widget-title {
    font-size: 14px !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
    padding: 0 0 8px 0 !important;
    border-bottom: 1px dotted #cfcbc7 !important;
    border-top: none !important;
    background: none !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
}

.l-footer__widget p,
.l-footer__widget {
    font-size: 13px !important;
    line-height: 1.8 !important;
}

.l-footer__widget p {
    margin: 0 0 8px 0 !important;
}

/* フッターリスト */
.l-footer__widget ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.l-footer__widget li {
    color: #cfcbc7 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    margin: 0 0 5px 0 !important;
    padding: 0 0 5px 0 !important;
    border-bottom: 1px dotted #cfcbc7 !important;
    background: none !important;
}

.l-footer__widget li:last-child {
    border-bottom: none !important;
}

/* サブリスト */
.l-footer__widget:nth-child(2) ul ul {
    margin: 8px 0 0 15px !important;
    padding: 0 !important;
}

.l-footer__widget:nth-child(2) ul ul li {
    display: block !important;
    margin: 0 0 5px 0 !important;
    padding: 0 0 0 12px !important;
    border: none !important;
    position: relative !important;
}

.l-footer__widget:nth-child(2) ul ul li::before {
    content: "・" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #cfcbc7 !important;
}

/* フッターリンク */
.l-footer__widget a {
    color: #cfcbc7 !important;
    text-decoration: none !important;
    font-size: inherit !important;
    transition: color 0.3s ease !important;
}

.l-footer__widget a:hover {
    color: #007177 !important;
    text-decoration: underline !important;
}

/* フッター画像 */
.l-footer__widget img {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.l-footer__widget img[alt*="100"],
.l-footer__widget img[alt*="選"],
.l-footer__widget .footer-banner {
    display: block !important;
    width: auto !important;
    max-width: 250px !important;
    margin: 20px 0 !important;
}

.l-footer__widget img[alt*="ポイント"],
.l-footer__widget img[alt*="カード"] {
    display: inline-block !important;
    width: auto !important;
    max-width: 180px !important;
    margin: 10px 0 !important;
}

/* フッター要素の非表示化 */
.l-footer__copyright,
.c-copyright,
footer .copyright,
.p-copyright,
#copyright,
.footer-copyright,
.p-footerMenu,
.l-footer .p-footerMenu,
.l-footer__menu,
nav[class*="footer"],
.l-footer nav,
.l-footer .menu,
.l-footer .wp-block-navigation,
.l-footer__content,
.l-footer [class*="menu-container"],
.l-footer [class*="navigation-container"],
.l-footer article,
.l-footer .article,
article[class*="footer"],
footer article,
.l-footer .p-articleAuthor,
.l-footer [class*="author"],
article.p-articleAuthor,
.l-footer [class*="__nav"],
.l-footer [class*="__links"],
.l-footer [class*="__sitemap"],
body .l-footer > *:not(.l-footer__inner):not(.l-footer__copyright):not(.l-footer__widgetArea) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* SWELLのデフォルトフッタースタイル無効化 */
.l-footer.-bg-on,
.l-footer.-bg-off,
.l-footer[class*="bg"],
.l-footer__inner[class*="l-container"],
.l-footer__inner[class*="container"] {
    background: transparent !important;
    max-width: 100% !important;
    padding: 20px 20px 110px 20px !important;
}

.l-footer .c-widget,
.l-footer [class*="widget"],
.l-footer .c-widget__body,
.l-footer .widget-body {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.l-footer__bottom,
.l-footer [class*="bottom"],
.p-footer__bottom {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* その他のユーティリティ */
.text_center {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 0.5em;
}

.alignright {
    float: right;
    margin-left: 0.5em;
}

.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

a.more {
    display: block;
    float: right;
    padding-bottom: 0.3em;
    clear: both;
    color: #F15A24;
}

.-rss {
    display: none !important;
}

.c-scrollHint {
    margin-top: 0em;
}

.mark_yellow {
    color: red;
}

/* COVID-19バナー */
.covid_bnr {
    width: 100%;
    max-width: 569px;
    margin: 2% auto;
}

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

/* ページネーション */
.c-pagination__item a {
    padding: 2px 0.4em;
    border: solid 1px #ccc;
}

.c-pagination__item a:hover {
    color: white;
    background: #998675;
}

.c-pagination__item.-current {
    padding: 2px 0.4em;
    color: white;
    background: #998675;
    font-weight: bold;
}

/* ブログ一覧 */
.p-postList__item {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
}

.p-postList__date {
    position: relative;
    padding-left: 90px;
}

.p-postList__date::before {
    content: attr(data-date);
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 85px;
    height: 20px;
    font-size: 11px;
    background: url(images/common/bg_entry_meta.gif) transparent no-repeat scroll 0px center;
    line-height: 20px;
    padding: 0 0 0 15px;
    color: #FFF;
}

.p-postList__item.category-blog .p-postList__date::before {
    background: url(images/common/bg_blog_entry_meta.gif) transparent no-repeat scroll 0px center;
}

/* ========================================
   フッター文字色変更 - #817167
======================================== */

/* フッター全体の文字色変更 */
.l-footer__widget,
.l-footer__widget * {
    color: #817167 !important;
}

/* フッター見出し */
.l-footer__widget h2,
.l-footer__widget .c-widget__title,
.l-footer__widget .widget-title {
    color: #817167 !important;
}

/* フッターパラグラフ */
.l-footer__widget p {
    color: #817167 !important;
}

/* フッターリスト項目 */
.l-footer__widget li {
    color: #817167 !important;
    border-bottom: 1px dotted #817167 !important;
}

/* サブリストの中黒 */
.l-footer__widget:nth-child(2) ul ul li::before {
    color: #817167 !important;
}

/* フッターリンク */
.l-footer__widget a {
    color: #817167 !important;
}

/* フッターリンクホバー時（既存のホバー色は維持） */
.l-footer__widget a:hover {
    color: #007177 !important;
    text-decoration: underline !important;
}

/* フッター見出しの下線 */
.l-footer__widget h2,
.l-footer__widget .c-widget__title,
.l-footer__widget .widget-title {
    border-bottom: 1px dotted #817167 !important;
}

/* ========================================
   レスポンシブ対応
======================================== */
/* PC表示（960px以上） */
@media screen and (min-width: 960px) {
    .l-header {
        min-height: auto;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    body.home .l-header {
        min-height: 450px;
    }
    
    /* メインビジュアル - PC（修正版） */
    body:not(.home) .l-header__inner::after {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        background-size: 100% auto;
    }
    
    body.home .l-header__inner::after {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        height: 400px;
        background-size: contain;
        background-position: center center;
    }
    
    /* ナビゲーション - PC */
    .l-header__gnav {
        overflow: hidden;
    }
    
    body.home .l-header__gnav {
        margin-top: 400px;
    }
    
    body:not(.home) .l-header__gnav {
        margin-top: 0;
		margin-bottom: -50px;
    }
    
    .l-header__gnav::after {
        width: 1200px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background-size: 1200px auto !important;
    }
    
    .c-gnav {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        min-height: 50px;
    }
    
    .c-gnav li {
        display: inline-block;
    }
    
    .c-gnav a {
        padding: 0.7em 2em;
        margin: 0 0.5em;
        font-size: 16px;
    }
    
    /* コンテンツ - PC */
    .l-container {
        width: 100%;
        max-width: 1200px;
        padding: 1em 30px;
    }
    
    .l-mainContent.-sidebar {
        width: calc(100% - 330px);
        max-width: 800px;
        float: left;
    }
    
    .l-sidebar {
        width: 308px;
        float: right;
    }
    
    .c-pageTitle,
    .p-entryContent h2 {
        background-position: 10px 8px;
    }
    
    /* フッター - PC */
    .l-footer__inner::before {
        content: "";
        display: block;
        position: absolute;
        bottom: 10px;
        left: calc(50% - 600px);
        width: 120px;
        height: 120px;
        background: url(images/footer/footer_character.png) transparent no-repeat scroll center center;
        background-size: contain;
        z-index: 3;
    }
    
    .w-footer.-col3 {
        display: grid !important;
        grid-template-columns: minmax(350px, 2fr) minmax(350px, 2fr) minmax(280px, 1.5fr) !important;
        gap: 40px !important;
    }
    
    /* ヘッダーボタン非表示 */
    .l-header__customBtn,
    .l-header__menuBtn {
        display: none !important;
    }
}

/* 大画面対応（1201px以上） */
@media screen and (min-width: 1201px) {
    /* メインビジュアルも木の枠と同じ挙動に */
    body:not(.home) .l-header__inner::after,
    body.home .l-header__inner::after {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
    
    body:not(.home) .l-header__inner::after {
        background-size: 100% auto;
    }
    
    body.home .l-header__inner::after {
        background-size: contain;
    }
    
    .l-header__gnav {
        overflow: visible !important;
    }
	
	.l-header__gnav::after {
        width: 100% !important;
		height: 50px;
        left: 0 !important;
        transform: none !important;
        background-size: 100% auto !important;
    }
}

/* タブレット表示（768px～959px） */
@media screen and (min-width: 768px) and (max-width: 959px) {
    /* メインビジュアル - タブレット */
    body:not(.home) .l-header__inner::after,
    body.home .l-header__inner::after {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* ナビゲーションの木の枠も100%幅に（追加） */
    .l-header__gnav {
        overflow: visible !important;
    }
    
    .l-header__gnav::after {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        background-size: 100% auto !important;
    }
    
    .l-footer__inner {
        padding: 20px 30px 110px 30px !important;
    }
    
    .l-footer__widgetArea {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .l-footer__widget {
        flex: 0 0 45% !important;
        max-width: 45% !important;
        margin-bottom: 30px !important;
    }
    
    .l-footer__widget:nth-child(1),
    .l-footer__widget:nth-child(2) {
        min-width: 280px !important;
    }
    
    .l-footer__widget:nth-child(3) {
        flex: 0 0 90% !important;
        max-width: 90% !important;
        text-align: center !important;
    }
}

/* モバイル表示（767px以下） */
@media screen and (max-width: 767px) {
    /* 横スクロール防止 */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* メインビジュアル - モバイル */
    body:not(.home) .l-header__inner::after,
    body.home .l-header__inner::after {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
    
    body.home .l-header__inner::after {
        height: 200px; /* モバイルでは低く調整 */
        background-size: contain;
    }
    
    /* ナビゲーションとの間隔調整 */
    body.home .l-header__gnav {
        margin-top: 200px;
    }
    
    /* コンテンツ調整 */
    .l-container {
        padding: 1em;
    }
    
    .l-mainContent.-sidebar,
    .l-sidebar {
        max-width: 100%;
        width: 100%;
    }
    
    /* メインボタン - モバイル */
    .main_button {
        width: calc(100% - 20px);
        margin: 0.5em auto;
        padding: 15px 20px;
        font-size: 17px;
    }
    
    /* テーブル - モバイル */
    .table_scroll {
        overflow-x: scroll;
        table-layout: fixed;
    }
    
    .table_scroll table,
    .tableScroll table {
        width: 100%;
        border-collapse: collapse;
        white-space: nowrap;
        font-size: 13px;
    }
    
    /* フッター - モバイル */
    .l-footer__inner {
        padding: 20px 15px 110px 15px !important;
        background-position: center bottom !important;
    }
    
    .l-footer__widgetArea {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .l-footer__widget,
    .l-footer__widget:nth-child(1),
    .l-footer__widget:nth-child(2),
    .l-footer__widget:nth-child(3) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        padding: 0 !important;
    }
    
    .l-footer__widget:nth-child(3) {
        text-align: center !important;
    }
    
    .l-footer__widget:nth-child(3) img {
        margin: 0 auto !important;
    }
    
    /* 装飾画像非表示 */
    .l-footer__inner::before {
        display: none !important;
    }
    
    /* フッターコンテナ */
    .l-footer,
    .l-footer .l-container,
    .l-footer .w-footer,
    .w-footer.-col3,
    .w-footer__box,
    #custom_html-2,
    #custom_html-3,
    #custom_html-4 {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    .w-footer__box {
        margin: 0 0 30px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
	
    /* テキスト折り返し */
    .w-footer__box,
    .w-footer__box * {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    
    .w-footer__box h2 {
        font-size: 16px !important;
    }
    
    /* リスト調整 */
    .w-footer__box ul,
    .w-footer__box li {
        max-width: 100% !important;
        padding-left: 0 !important;
        list-style: none !important;
    }
    
    /* ヘッダーボタン表示 */
    .l-header__customBtn,
    .l-header__menuBtn {
        position: absolute !important;
        top: 10px;
        z-index: 5000;
    }
    
    .l-header__customBtn {
        right: 60px;
    }
    
    .l-header__menuBtn {
        right: 10px;
    }
}

/* 小画面対応（375px以下） */
@media screen and (max-width: 375px) {
    body.home .l-header__inner::after {
        height: 180px; /* さらに小さい画面用 */
    }
    
    body.home .l-header__gnav {
        margin-top: 180px;
    }
    
    .w-footer__box {
        font-size: 13px !important;
    }
    
    .w-footer__box h2 {
        font-size: 15px !important;
    }
}

@media screen and (max-width: 959px) {
    .l-header__menuBtn {
        display: none !important;
    }
    
    /* メニューボタンのスペースも削除 */
    .l-header__inner {
        grid-template-columns: 1fr auto !important;
    }
}

/* customize-supportのスクロール問題を修正 */
body.customize-support {
    min-height: unset !important;
    overflow: visible !important;
}

/* div.l-scrollObserverの影響を無効化 */
.l-scrollObserver {
    display: none !important;
}

/* ヘッダーのスクロールを完全に防ぐ */
.l-header,
.l-header__inner {
    overflow: visible !important;
    min-height: unset !important;
    max-height: unset !important;
    height: auto !important;
}

/* bodyタグ自体のオーバーフロー設定もリセット */
body {
    overflow-x: hidden !important;  /* 横スクロールは防ぐ */
    overflow-y: visible !important; /* 縦は通常通り */
    min-height: unset !important;
}