/* ==========================================================================
Responsive Styles
========================================================================== */
@media (max-width: 1199px){
	main{
		width: 100%;
	}
    .index-item {
        padding: 25px 5px;
    }
    .index-item span {
        font-size: 14px;
    }
    .index-title {
        font-size: 30px;
    }
    .intro-bottom-wrapper{
        padding: 24px 50px 24px 24px;
    }
    .intro-tree{
        right: -2vw;
        width: 80px;
    }
    .company-main-content{
        padding: 0 10px;
    }
}



/* 業者一覧セクション レスポンシブ */
@media (max-width: 1024px) {
    main{
        margin-top: 0px;
    }
    body.admin-bar #page {
        padding-top: 20px;
    }
}



/* Mobile (max-width: 767px) */
@media (max-width: 767px){
    /* 共通 */
    .sp-only{
        display: block !important;
    }
    .header-container {
        display: none;
    }
    .site-main{
        margin-top: 0;
    }
    .main-navigation {
        display: none;
    }
    .site-header{
        background-color: transparent;
        border-bottom: none;
    }

    /* SP Hamburger Menu Button - 紫背景・白アイコン */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 20px; /* トップバーの高さ(20px)のすぐ下 */
        right: 0;
        width: 60px;
        height: 60px;
        background: #3499D6 !important;
        border: none;
        border-radius: 0;
        cursor: pointer;
        z-index: 10000;
        padding: 10px;
        gap: 4px;
        box-shadow: none;
    }

    /* WordPress管理バー対応 - ハンバーガーメニュー位置調整（タブレット：782px以上） */
    body.admin-bar .hamburger-btn {
        top: 52px; /* admin-bar(32px) + top-bar(20px) */
    }

    .hamburger-btn span {
        display: block !important;
        width: 26px;
        height: 3px;
        background-color: #FFF !important;
        transition: all 0.3s ease;
        border-radius: 1px;
    }

    .hamburger-btn span.menu-text {
        width: auto !important;
        height: auto !important;
        background: none !important;
        background-color: transparent !important;
        color: #FFF;
        font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
        font-size: 10px;
        font-weight: 600;
        margin-top: 2px;
        letter-spacing: 0.5px;
    }

    /* Hamburger Active State (X mark) - 3本ライン対応 */
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
        top: 22px;
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        top: 22px;
    }

    .hamburger-btn.active span.menu-text {
        position: absolute;
        bottom: 10px;
        transform: none;
    }

    /* Mobile Menu - ハンバーガーボタンと同じ位置から開始 */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 20px;
        right: 0;
        width: 75%;
        max-width: 300px;
        height: calc(100vh - 20px);
        background-color: #3499D6;
        z-index: 10001;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        visibility: hidden;
        border-radius: 0;
    }

    .mobile-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    /* WordPress管理バー対応 - モバイルメニュー位置調整（タブレット：782px以上） */
    body.admin-bar .mobile-menu {
        top: 52px; /* admin-bar(32px) + top-bar(20px) */
        height: calc(100vh - 52px);
    }

    /* 閉じるボタン - ハンバーガーボタンと同じ位置・スタイル */
    .mobile-menu-close {
        display: flex !important;
        position: fixed;
        top: 20px;
        right: 0;
        width: 60px;
        height: 60px;
        background: #3499D6;
        border: none;
        border-radius: 0;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        gap: 4px;
        z-index: 10002;
    }

    .mobile-menu-close .close-icon {
        position: relative;
        width: 26px;
        height: 26px;
    }

    .mobile-menu-close .close-icon::before,
    .mobile-menu-close .close-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 26px;
        height: 3px;
        background-color: #FFF;
        border-radius: 1px;
    }

    .mobile-menu-close .close-icon::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .mobile-menu-close .close-icon::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .mobile-menu-close .close-text {
        color: #FFF;
        font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    /* WordPress管理バー対応 - 閉じるボタン位置調整（タブレット：782px以上） */
    body.admin-bar .mobile-menu-close {
        top: 52px; /* admin-bar(32px) + top-bar(20px) */
    }

    .mobile-menu-content {
        padding: 80px 0 30px;
    }

    .mobile-nav {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav li {
        border-bottom: none;
    }

    .mobile-nav a {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 16px 25px;
        color: #FFF;
        font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
        font-size: 17px;
        font-weight: 600;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .mobile-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }

    .mobile-nav .arrow {
        display: inline-block;
        margin-left: 12px;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 8px solid #FFF;
    }

    .mobile-menu-banner {
        margin: 25px 15px;
        position: relative;
    }

    .mobile-menu-banner-pr {
        position: absolute;
        top: -8px;
        left: 0;
        background: #804EA2;
        color: #FFF;
        font-size: 10px;
        font-weight: 600;
        padding: 2px 8px;
        z-index: 2;
    }

    .mobile-menu-banner img {
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }

    .mobile-menu-overlay.active {
        display: block;
    }
    .intro-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .intro-image {
        flex: 0 0 auto;
        width: 300px;
    }
    .intro-bottom-text {
        font-size: 18px;
    }
    .header-bubble{
        font-size: 2.7vw;
        width: 80%;
    }
    .header-bubble::before{
        width: 76.6vw;
        height: 9.1vw;
    }
    .reviews-text-grid{
        grid-template-columns: repeat(2, 1fr);
        margin-left: 0;
    }
    .overview-content-wrapper{
        margin-left: 0;
    }
    .overview-inner{
        flex-direction: column;
    }
    .overview-table-wrapper{
        width: 100%;
    }
    .overview-map-wrapper{
        width: 100%;
    }
    .company-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    /* Hero section */
    .hero-section {
        max-height: 100%;
        margin-top: 0;
    }
    .hero-content{
        aspect-ratio: 600 / 610;
        max-height: 100%;
        height: 101.7vw !important;
        background-position: right;
        background: url(../images/mv_sp.webp) no-repeat;
        background-size: cover;
    }

    /* Top Bar - 固定表示・スクロール追従 */
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 20px;
        padding: 0;
        display: flex;
        align-items: center;
        z-index: 9999;
        background-color: #fff;
    }

    /* WordPress管理バー対応 - トップバー位置調整 */
    body.admin-bar .top-bar {
        top: 46px;
    }
    #page {
        padding-top: 20px;
    }

    body.admin-bar #page {
        padding-top: 20px;
    }

    .top-bar-inner {
        padding: 0 10px;
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

    .pr-label {
        width: 28px;
        height: 13px;
        font-size: 10px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .top-bar-text {
        font-size: 11px;
        white-space: nowrap;
        overflow: visible;
        display: inline;
    }
    .top-bar-text-pc {
        display: none;
    }

    .top-bar-text-sp {
        display: inline;
    }
    .header-left{
        display: none;
    }
    .hero-cta{
        max-width: 86vw;
    }
    .hero-content{
        padding: 7.17vw 9vw 6.8vw 7vw;
    }
    .hero-top-copy{
        font-size: 5.33vw;
        padding-top: 5.17vw;
        padding-left: 2vw;
        padding-right: 2vw;
        background-color: rgba(255, 255, 255, 0.8);
    }
    .hero-top-copy::before{
        width: 82vw;
        height: 27vw;
        top: -0.5vw;
    }
    .hero-top-copy .yellow-text {
        font-size: 6vw;
    }
    .hero-sub-copy{
        font-size: 6vw;
    }
    .hero-sub-copy .large-text{
        font-size: 1.2em;
    }
    .hero-main-title{
        font-size: 7.7vw;
        margin: 3vw auto 0;
        line-height: 1.8;
        margin-left: 0;
    }
    .hero-crown-copy{
        font-size: 5vw;
        right: -45vw;
    }
    .hero-crown-copy::before{
        width: 10vw;
        height: 10vw;
        left: -19%;
        top: -1vw;
    }
    .hero-crown-copy::after{
        width: 10vw;
        height: 10vw;
        right: -19%;
        top: -1vw;
    }
    .hero-bottom-copy{
        margin: 0 auto;
        font-size: 3.2vw;
    }
    .hero-cta__wrapper{
        margin: 0 auto;
        margin-top: 8vw;
    }

    /* INDEX Section */
    .content-index {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        background-color: #96CCD7;
        padding: 1.67vw 0;
    }
    .index-container {
        flex-direction: column;
        border: none;
        margin:  0 auto;
        width: fit-content;
    }
    .index-item {
        border-right: none;
        border-bottom: none;
        border-left: none;
        padding: 17px 15px;
        min-height: auto;
        justify-content: left;
        align-items: center;
        gap: 5px;
        flex-direction: row;
        font-size: 16px;
    }
    .index-item::before{
        display: none;
    }
    .index-item {
        text-align: center;
        border-bottom: 1px solid #fff;
        max-width: unset;
    }
    .index-item::after{
        margin: 0;
        right: 0;
        top: 50%;
        left: unset;
    }
    .index-item .pc-only{
        display: none;
    }
    .index-item:first-child{
        border-left: none;
    }
    .index-item:last-child {
        border-bottom: none;
    }

    .index-item .index-square,
    .index-item .index-arrow {
        display: inline-block;
        color: #D79748;
        flex-shrink: 0;
    }
    .index-square::before{
        content: "";
        width: 24px;
        height: 24px;
        background-image: url(../images/index-icon.svg);
        position: absolute;
        left: -25px;
        top: -12px;
    }
    .index-item .index-square {
        position: relative;
    }


/* ==========================================================================
Chance Section - Responsive (768px以下)
   ========================================================================== */
    .chance-section {
            padding: 40px 15px; /* 左右に少し余白を作る */
        }

        .chance-inner {
            width: 100%;
        }

        /* タイトルカプセル */
        .chance-title-capsule {
            max-width: 100%;
            padding: 12px 20px;
            border-radius: 30px; /* 少し丸みを抑える（任意） */
            margin-bottom: 25px;
        }

        .chance-main-title {
            font-size: 18px; /* スマホ用にサイズダウン */
            line-height: 1.4;
            word-break: break-all;
        }

        /* タイトルの装飾（キラキラ）の位置調整 */
        .chance-main-title::before {
            width: 20px;
            height: 22px;
            top: -15px;
            left: -10px;
        }
        .chance-main-title::after {
            width: 20px;
            height: 22px;
            top: -15px;
            right: -10px;
        }

        /* カード全体の調整 */
        .chance-card-wrapper {
            flex-direction: column;
            gap: 20px;
        }

        .chance-card {
            padding: 25px 20px 30px !important; /* PCのpadding-left 125pxなどを一括上書き */
            border-radius: 20px;
            box-shadow: 6px 6px 0 0 #A6D482; /* 影を少し小さく */
            max-width: 100% !important;
        }

        /* 実は（画像ラベル） */
        .chance-jitsuwa {
            margin-bottom: 15px;
        }
        .chance-jitsuwa img {
            width: 60px; /* 少し小さく */
        }

        /* 見出し */
        .chance-heading {
            font-size: 18px;
            margin-bottom: 15px;
        }

        /* 左カード（補助金）固有の調整 */
        .chance-card.is-left{
            padding-bottom: 0 !important;
        }
        .chance-lead {
            font-size: 15px;
            margin-left: 0; /* PCのインデントをリセット */
            margin-bottom: 20px;
        }
        .chance-map-img {
            position: static;
            width: 80%;
            margin: 0 auto;
        }

        /* 右カード（業者選び）固有の調整 */
        .chance-card.is-right {
            padding-top: 50px !important;
            padding-bottom: 0 !important;
        }
        .chance-text {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 1em;
            position: relative;
            z-index: 2; /* 文字を画像より上に */
        }
        .chance-panel-img {
            top: 0;
            right: 0;
        }

        /* ボタン */
        .chance-btn-area {
            margin-top: 20px;
            text-align: center;
        }
        .chance-btn {
            font-size: 16px;
            padding: 10px 24px;
            width: 100%; /* スマホでは押しやすくワイドに */
            box-sizing: border-box;
        }
    /* features section */
    .features-section {
        padding: 40px 10px; /* 左右余白を少し削る */
    }

    .features-main-title {
        font-size: 17px;
        padding: 10px 15px;
        border-radius: 50px;
        width: auto;
        display: inline-block;
    }

    .features-intro {
        font-size: 14px;
        margin-bottom: 50px;
        text-align: center;
    }

    /* --- 上段（3枚）は縦並び --- */
    .features-grid.top-row {
        display: flex;
        flex-direction: column;
        gap: 45px;
        margin-bottom: 30px;
    }

    /* --- 下段（家電・ハウスメーカー）は横並びを維持 --- */
    .features-grid.bottom-row {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2列維持 */
        gap: 8px; /* 隙間を狭く */
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* カードの調整 */
    .feature-card {
        height: auto !important;
        padding: 20px 10px 15px !important;
        border-radius: 12px;
    }
    
    .feature-card.is-highlight {
        border-width: 3px;
    }

    /* 下段カード（家電・HM）専用の微調整 */
    .bottom-row .feature-card {
        padding: 15px 5px 10px !important;
    }

    .card-top {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .icon-circle {
        width: 45px; /* アイコンを小さく */
    }

    .card-type-title {
        font-size: 14px; /* 文字を小さく */
    }
    .card-type-title span {
        font-size: 12px;
    }

    .merit-title, .demerit-title {
        font-size: 16px;
    }
    .merit-title::before, .demerit-title::before {
        width: 20px;
        height: 20px;
    }

    .list li {
        font-size: 14px;
        line-height: 1.4;
        padding-left: 10px;
    }

    /* 矢印 */
    .center-arrow img { width: 50px; }
    .small-arrow img { width: 40px; }

    /* メインPOINTボックス（黄色い電球のやつ） */
    .main-point-box {
        padding: 15px;
        margin-bottom: 25px;
    }
    .point-inner {
        flex-direction: column;
        text-align: center;
    }
    .point-icon img { width: 60px; margin-bottom: 10px; }
    .point-label { font-size: 16px; }
    .point-text p { font-size: 13px; text-align: left; }

    /* --- 下段フッターエリア（2つのPOINT横並び） --- */
    .bottom-footer-area {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2列維持 */
        gap: 8px;
        max-width: 100%;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sub-point-box {
        flex-direction: column; /* 箱の中でアイコンと文字を縦並びに */
        padding: 12px 8px;
        min-height: 220px; /* 高さを揃える */
        align-items: center;
    }

    .sub-point-icon {
        margin-bottom: 10px;
    }
    .sub-point-icon img {
        width: 70px; /* アイコンを小さく */
    }

    .point-label-sm {
        font-size: 13px;
        padding: 2px 10px;
        margin-bottom: 5px;
    }

    .sub-point-text p {
        font-size: 11px; /* 2列で読める限界のサイズ */
        line-height: 1.5;
        padding-left: 0;
        text-align: left;
    }

    /* おすすめタグの調整 */
    .recommend-tag {
        font-size: 11px;
        padding: 4px 15px;
        top: -26px;
        left: 10px;
    }

    /* Diagnosis section */
    .diagnosis-section{
        margin-top: -1px;
    }
    /* 1. 全体を横スクロール可能にする（フローと表をセットにする） */
    .diagnosis-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background-attachment: scroll; /* スマホではfixedが重い・効かない場合があるため */
        padding-bottom: 40px;
    }

    /* 2. 1086px（フローチャートの幅）を維持して、スマホで潰れないようにする */
    .diagnosis-inner {
        width: 1086px; /* 横並び関係を維持するために固定幅を指定 */
        margin: 0;
    }

    /* --- タイトル部分（画面の中央に固定せず、コンテンツと一緒に流れる） --- */
    .flowchart-area {
        padding-top: 30px;
    }
    .title-wrap-pc{
        display: none;
    }
    .title-wrap-sp{
        text-align: center;
        padding-top: 30px;
    }
    .title-wrap{
        width: 100%;
    }
    .flow-title-top {
        font-size: 24px;
    }
    .flow-main-title span{
        font-size: 40px;
    }
    .flow-main-title span::before{
        width: 360px;
        left: -220px;
        bottom: 20px;
        height: 47px;
    }
    .flow-main-title{
        font-size: 26px;
        line-height: 2.5;
    }
    .flow-main-title::before{
        left: 0;
    }
    .flow-main-title::after{
        right: 0;
    }

    /* --- フローチャート・キャンバス --- */
    /* インラインで指定されているpx位置を維持するため、全体を少しスケーリングしたい場合はここを調整 */
    .flow-canvas {
        margin: 0 auto;
        /* 元々 1086px なので、.diagnosis-inner と同じ幅で維持 */
    }
    .flow-lines-bg{
        left: -20px;
    }

    /* --- 比較表エリア（フローチャートの真下に配置） --- */
    .comparison-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3列維持 */
        gap: 20px;
        padding: 0 0 50px 10px; /* 左右の余白をPC版と合わせる */
        margin: 0;
    }

    /* 比較カードの微調整 */
    .comp-card {
        width: 100%; /* gridのカラム幅に追従 */
    }

    .comp-company-name {
        font-size: 18px;
    }

    .comp-company-name::before,
    .comp-company-name::after {
        width: 45px;
        height: 45px;
        top: -8px;
    }
    .comp-company-name::before { left: 0; }
    .comp-company-name::after { right: 0; }

    /* 実績の数字サイズ調整 */
    .highlight-red {
        font-size: 28px;
    }
    .highlight-red .text-small {
        font-size: 18px;
    }

    /* ボタンサイズ */
    .comp-footer .btn-orange, 
    .comp-footer .btn-white {
        font-size: 14px;
        justify-content: center;
        gap: 12px;
    }

    /* --- スクロールを促すヒント（任意：必要であればHTMLに追記してください） --- */
    /* スマホで見ているときに、横に動かせることを視覚的に伝えるためのヒント */
    .diagnosis-scroll-wrapper::after {
        content: "← 横スクロールで診断結果をチェック →";
        display: block;
        text-align: center;
        color: #242E54;
        font-size: 12px;
        font-weight: bold;
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.8);
        position: sticky;
        left: 0;
        width: 100vw; /* 画面幅に対して固定 */
        z-index: 20;
    }

    /* Point section */
    .point-section {
        padding: 40px 15px;
    }

    /* メインタイトル */
    .point-main-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 30px;
    }

    /* タイトルの装飾（角のライン）をスマホ用に小さく調整 */
    .point-main-title::before {
        width: 25px;
        height: 31px;
        top: -15px;
        left: -20px;
    }
    .point-main-title::after {
        width: 25px;
        height: 31px;
        bottom: -10px;
        right: -15px;
    }

    .point-list {
        gap: 30px; /* カード同士の間隔 */
    }

    /* 各アイテム（カード）の調整 */
    .point-item {
        flex-direction: column !important; /* 横並び・逆並びを解除して縦並びに固定 */
        padding: 30px 20px;
        gap: 20px;
    }

    /* 画像とテキストの幅を100%に */
    .point-text-content,
    .point-image {
        width: 100% !important;
    }

    /* スマホでは画像を先に、テキストを後に見せるための設定（任意） */
    .point-image {
        order: -1; /* タイトルの次に画像が来るように順序を変更 */
        text-align: center;
    }
    
    .point-image img {
        max-width: 280px; /* スマホで画像が大きくなりすぎないよう制限 */
        margin: 0 auto;
    }

    /* ラベル部分 */
    .point-labels {
        margin-bottom: 15px;
    }

    .label-sub {
        font-size: 15px;
        padding: 2px 8px;
    }

    .label-main {
        font-size: 17px;
        padding: 4px 8px;
        line-height: 1.4;
    }

    /* 説明文 */
    .point-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 25px; /* アドバイス文との間隔を詰める */
    }

    /* オレンジ矢印のアドバイス文 */
    .point-advice {
        font-size: 14px;
        line-height: 1.6;
        padding-left: 20px; /* 矢印のための余白 */
    }

    .point-advice::before {
        width: 18px;
        height: 16px;
        left: -5px;
        top: 4px;
    }

    /* Introduction section */
    .company-introduction-section {
        padding: 40px 0;
        overflow: hidden; /* 装飾のはみ出し防止 */
    }

    /* サイドバーを非表示 */
    .company-intro-sidebar {
        display: none !important;
    }

    /* メインエリアを全幅に */
    .company-introduction-wrapper {
        display: block;
        padding: 0 15px;
    }

    .company-main-content {
        width: 100% !important;
        margin-bottom: 80px;
        padding: 0;
    }

    /* セクションタイトル */
    .introduction-title {
        font-size: 21px;
        margin-bottom: 40px;
        text-align: center;
        line-height: 1.4;
        transform: translateX(-23px);
    }
    .introduction-title .text-green {
        font-size: 40px;
    }
    /* タイトルの左右の紺色ラインはスマホでは非表示か大幅縮小 */
    .introduction-title::before,
    .introduction-title::after {
        display: none;
    }
    .introduction-title .text-green::before {
        width: 30px;
        right: -30px;
    }

    /* 会社名の上のタグ */
    .company-tag {
        font-size: 16px;
        padding: 8px 20px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
    }
    .company-tag-check {
        width: 24px;
        margin-right: 10px;
    }

    /* 会社ヘッダー（名前とスクリーンショット） */
    .company-header-block {
        border-radius: 10px;
    }
    .company-name-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .company-name-number-wrapper {
        width: 100%;
        padding: 8px 20px;
        box-sizing: border-box;
    }
    .company-name {
        font-size: 22px;
        padding: 15px 20px;
    }
    .company-web-capture {
        width: 90%;
        padding-bottom: 20px;
    }
    .source {
        font-size: 12px;
    }

    /* 特徴ボックス */
    .features-box {
        margin: 60px 0 30px;
    }
    .features-box-title {
        font-size: 18px;
        padding: 8px 20px;
        top: -46px;
        left: -2px;
    }
    .features-check-list li {
        padding: 20px 15px 15px 60px; /* アイコン分の余白を縮小 */
        font-size: 14px;
    }
    .features-check-list li::before {
        width: 35px;
        height: 35px;
        left: 15px;
        top: 22px;
    }
    .features-check-list strong {
        font-size: 16px;
        margin-bottom: 5px;
    }

    /* 導入事例・口コミ タイトル */
    .sub-block-title {
        font-size: 32px;
    }
    .sub-block-title::after {
        width: 65vw;
        right: 0;
    }

    /* 導入事例グリッド */
    .case-grid {
        grid-template-columns: 1fr; /* 縦1列 */
        gap: 20px;
    }
    .case-item {
        padding: 15px;
    }
    .case-img img {
        height: auto;
    }
    .case-label {
        font-size: 16px;
    }

    /* 口コミグリッド */
    .review-grid {
        grid-template-columns: 1fr; /* 縦1列 */
        gap: 20px;
        margin-bottom: 40px;
    }
    .review-card-inner {
        height: auto;
    }

    /* 会社概要（背景の青い図形をリセット） */
    .overview-block {
        padding: 20px 0;
    }
    .overview-block::before {
        width: 100vw;
        height: 100%;
        left: -15px;
        top: 0;
    }
    .overview-title::after {
        width: 70vw;
        right: 0;
    }
    .overview-content {
        grid-template-columns: 1fr; /* 地図とテーブルを縦並びに */
        padding: 0;
    }
    .overview-map {
        height: 200px;
        margin-bottom: 15px;
    }
    .overview-table th, 
    .overview-table td {
        padding: 10px;
        font-size: 13px;
    }
    .overview-table th {
        width: 80px;
    }

    /* ボタンエリア（縦並び） */
    .company-action-btns {
        flex-direction: column;
        gap: 15px;
        margin: 30px 0;
    }
    .btn-orange, 
    .btn-white {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 20px 15px 50px;
        font-size: 16px;
        justify-content: center;
    }
    .btn-orange::after, 
    .btn-white::after {
        width: 30px;
        height: 30px;
    }

    /* FAQ Section Responsive */
    .faq-section {
        padding: 4vw 2vw 4.3vw 2vw;
    }

    .faq-container {
        padding: 30px 25px;
    }

    .faq-title-text {
        font-size: 24px;
    }

    .faq-line-icon {
        width: 30px;
        top: -12px;
        right: -28px;
    }

    .faq-question {
        gap: 12px;
    }

    .faq-q-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .faq-q-text {
        font-size: 2.7vw;
    }

    /* 会社一覧セクション */
    .section-title-wrapper {
        padding: 0 20px; /* 左右の装飾が画面端に当たらないよう余白を確保 */
        text-align: center;
    }

    .company-list-title {
        font-size: 20px; /* 32pxから縮小 */
        line-height: 1.6;
        display: inline-block;
    }

    /* 左右の大きな紺色ライン装飾 */
    .company-list-title::before,
    .company-list-title::after {
        width: 40px;  /* 73pxから縮小 */
        height: 52px; /* 比率を維持して縮小 */
        bottom: 10px;
        top: unset;
    }

    .company-list-title::before {
        left: -57px; /* 位置を内側に寄せる */
    }

    .company-list-title::after {
        right: -57px; /* 位置を内側に寄せる */
    }

    /* 下段「業者56社一覧」の横にある細い棒線 */
    .company-list-title-bottom::before,
    .company-list-title-bottom::after {
        width: 20px; /* 40pxから短くする */
        top: 50%;
    }

    .company-list-title-bottom::before {
        left: -25px; /* テキストに近づける */
    }

    .company-list-title-bottom::after {
        right: -25px; /* テキストに近づける */
    }

    .company-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .company-list-btn {
        padding: 14px 16px;
        min-height: 60px;
    }

    .company-list-btn .btn-text {
        font-size: 15px;
    }
    .company-list-btn .btn-text-line2 {
        font-size: 14px;
    }

    .company-list-description {
        padding: 14px 16px;
        font-size: 13px;
        min-height: unset;
    }

    .company-list-info {
        padding: 14px 0 0 0;
    }

    .company-list-more-btn {
        font-size: 16px;
        height: 50px;
    }
    .company-list-empty {
        text-align: center;
        font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
        font-size: 16px;
        color: #666;
        padding: 40px 20px;
    }
    /* Subsidy Section */
    .subsidy-section {
        padding: 40px 15px;
        background-size: cover; /* 背景画像が途切れないように調整 */
    }

    .subsidy-container {
        width: 100%;
    }

    /* タイトル */
    .subsidy-sub-title {
        font-size: 18px;
        -webkit-text-stroke: 1.5px #EEEEEF;
    }
    .subsidy-main-title {
        font-size: 26px;
        -webkit-text-stroke: 1.5px #EEEEEF;
    }
    .subsidy-main-title .small-text {
        font-size: 20px;
    }

    /* 対象設備（中央の枠） */
    .subsidy-target-wrapper {
        width: 100%;
        margin-bottom: 50px;
        padding: 40px 15px 25px;
        border: 2px solid #234D81; /* PCで枠線が抜けていた場合のため追加 */
        border-radius: 20px;
        background: #fff;
    }
    .target-label {
        width: 80%;
        font-size: 18px;
        padding: 5px 0;
        white-space: nowrap;
        text-align: center;
        top: -20px;
    }
    .target-content {
        flex-direction: column;
        gap: 15px;
    }
    .target-item {
        width: 100%;
        height: 80px; /* 高さを抑える */
        font-size: 16px;
        border-radius: 15px;
    }
    .target-item-solar { width: 50px; }
    .target-item-battery { width: 45px; }

    /* メインのカードエリア */
    .subsidy-items {
        flex-direction: column;
        align-items: center;
        gap: 60px; /* アイコンが飛び出している分、間隔を広げる */
    }

    .subsidy-card {
        width: 100%;
        max-width: 350px; /* スマホで横に広がりすぎないように */
    }

    /* 丸いアイコン部分の調整 */
    .card-icon {
        width: 90px;
        height: 90px;
        top: -30px;
        left: 10px; /* 左端に寄せすぎると画面外に出るため調整 */
    }
    .card-icon-solar { width: 60px; }
    .card-icon-battery { width: 40px; }

    .card-header {
        padding: 15px 15px 15px 100px;
        border-radius: 30px 30px 0 0;
    }
    .card-title {
        font-size: 18px;
        text-align: left;
    }

    .card-body {
        padding: 25px 15px 20px;
    }

    .price-row {
        gap: 10px;
    }
    .price-label {
        font-size: 14px;
        padding: 4px 10px;
        white-space: nowrap;
    }
    .price-line-top {
        margin-left: 14px;
    }
    .range, .prefix {
        font-size: 14px;
    }
    .num {
        font-size: 32px;
    }
    .unit {
        font-size: 20px;
    }
    .extra-text {
        font-size: 14px;
        margin-top: 0;
    }
    .note {
        font-size: 12px;
    }

    /* ==========================================================================
    SUBSIDY LIST Section - Responsive
    ========================================================================== */
    .subsidy-list-section {
        padding-bottom: 60px;
    }

    .subsidy-list-container {
        width: 100%;
        padding: 0 10px;
    }

    .subsidy-list-title {
        font-size: 20px;
        line-height: 1.4;
    }
    .subsidy-list-title span {
        font-size: 16px;
        display: block;
    }

    /* テーブルをスマホでスクロール可能にする */
    .subsidy-table-wrapper {
        overflow-x: auto; /* 横スクロールを許可 */
        -webkit-overflow-scrolling: touch;
        border-radius: 15px;
        margin-bottom: 30px;
    }

    .subsidy-table {
        width: 600px; /* 最小横幅を固定して、崩れないようにする */
        table-layout: auto;
    }

    .subsidy-table thead th {
        font-size: 13px;
        padding: 12px 10px;
    }

    .subsidy-table td {
        font-size: 13px;
        padding: 10px 5px;
    }
    
    /* 備考欄のパディング調整 */
    td:nth-child(4) {
        padding-left: 10px;
    }

    /* 注意書きボックス */
    .subsidy-attention-box {
        width: 100%;
        padding: 20px 15px;
    }
    .attention-content {
        flex-direction: column;
        text-align: center;
    }
    .info-icon {
        width: 40px;
        margin-bottom: 10px;
    }
    .attention-text {
        font-size: 13px;
        line-height: 1.6;
    }

    /* フッター */
    .footer-top-section{
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .footer-top-article-container{
        justify-content: center;
    }
    .footer-container{
        padding: 20px;
    }
    .footer-menu a{
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }
    .copyright{
        text-align: center;
    }
    /* 追従 */
    .fixed-right-elements {
        bottom: 20px;
        right: 15px;
        gap: 12px;
    }

    .scroll-to-top-btn {
        width: 45px;
        height: 45px;
    }

    .scroll-to-top-btn .top-text {
        font-size: 9px;
    }

    .scroll-to-top-btn .top-arrow {
        width: 18px;
        height: 18px;
    }

    .fixed-banner {
        width: auto;
        height: auto;
        max-width: 425px;
    }
    .close-banner-btn {
        width: 22px;
        height: 22px;
        top: -8px;
        right: -8px;
    }

    .close-banner-btn svg {
        width: 9px;
        height: 9px;
    }

    /* Privacy Policy Page Responsive */
    .policy-page-title {
        font-size: 24px;
        padding: 15px 20px;
    }

    .policy-intro {
        padding: 20px;
    }

    .policy-intro p {
        font-size: 14px;
    }

    .policy-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .policy-section-title {
        font-size: 17px;
        padding-left: 12px;
    }

    .policy-section-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .policy-subsection-title {
        font-size: 15px;
    }

    .policy-footer {
        margin-top: 40px;
        padding-top: 20px;
    }

    .policy-updated {
        font-size: 13px;
    }

    /* Site Map Page Responsive */
    .sitemap-article {
        padding: 25px 20px;
    }

    .sitemap-page-title {
        font-size: 22px;
    }

    .sitemap-intro p {
        font-size: 14px;
    }

    .sitemap-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .sitemap-section-title {
        font-size: 17px;
        padding-left: 12px;
    }

    .sitemap-list li {
        padding: 10px 0;
        padding-left: 18px;
    }

    .sitemap-list li a {
        font-size: 14px;
    }
}
/* ==========================================================================
   Area Column Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .area-column-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .area-column-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .area-column-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .area-column-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-header .article-title {
        font-size: 22px;
        display: block;
        overflow: visible;
    }

    /* タブレット用：より詳細度の高いセレクタで確実に適用 */
    .area-column-article .article-header .article-title {
        display: block;
        overflow: visible;
        font-size: 22px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 18px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-articles-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 12px;
        padding: 15px 0;
    }

    .breadcrumb-separator {
        margin: 0 5px;
    }

    .article-header .article-title {
        font-size: 20px;
        display: block;
        overflow: visible;
    }

    /* スマホ用：より詳細度の高いセレクタで確実に適用 */
    .area-column-article .article-header .article-title {
        display: block;
        overflow: visible;
        font-size: 20px;
    }

    .article-category-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .article-dates {
        font-size: 12px;
    }

    .area-column-card-title {
        font-size: 14px;
    }

    .area-column-card-date {
        font-size: 12px;
    }
}
/* Small Mobile (max-width: 480px) */
@media (max-width: 480px){
    .top-bar-text {
        font-size: 11px;
    }
    /* Hero Section */
    .index-title {
        font-size: 24px;
    }

    .index-item span:not(.index-square):not(.index-arrow) {
        font-size: 15px;
    }

    .recommended-companies .section-header {
        margin-bottom: 10px;
    }

    /* FAQ Section Responsive */
    .faq-section{
        margin-bottom: 30px;
    }
    .faq-container {
        padding: 25px 20px;
    }
    .faq-container::before{
        right: -4px;
        bottom: -8px;
    }

    .faq-title {
        font-size: 22px;
    }

    faq-title-blue{
        font-size: 1.2em;
    }

    .faq-title-text {
        font-size: 20px;
    }

    .faq-line-icon {
        width: 25px;
        top: -10px;
        right: -22px;
    }

    .faq-item {
        padding: 0;
        width: 100%;
    }

    .faq-question {
        gap: 10px;
    }

    .faq-q-icon {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .faq-q-text {
        font-size: 15px;
        max-width: 70%;
    }

    /* 会社一覧セクション */
    .company-list-btn {
        padding: 12px 14px;
        min-height: 55px;
    }

    .company-list-btn .btn-text {
        font-size: 14px;
    }

    .company-list-btn .btn-text-line2 {
        font-size: 13px;
    }

    /* 追従 */
    .fixed-right-elements {
        bottom: 15px;
        right: 10px;
        gap: 10px;
    }

    .scroll-to-top-btn {
        width: 42px;
        height: 42px;
    }

    .scroll-to-top-btn .top-text {
        font-size: 8px;
    }

    .scroll-to-top-btn .top-arrow {
        width: 16px;
        height: 16px;
    }

    .fixed-banner {
        width: auto;
        height: auto;
        max-width: 340px;
    }

    .close-banner-btn {
        width: 20px;
        height: 20px;
        top: -6px;
        right: -6px;
    }

    .close-banner-btn svg {
        width: 8px;
        height: 8px;
    }
    /* Privacy Policy Page Responsive */
    .company-btn{
        font-size: 16px !important;
    }
    .policy-page-title {
        font-size: 20px;
        padding: 12px 15px;
    }

    .policy-intro {
        padding: 15px;
        margin-bottom: 30px;
    }

    .policy-intro p {
        font-size: 13px;
    }

    .policy-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .policy-section-title {
        font-size: 16px;
        padding-left: 10px;
        margin-bottom: 15px;
    }

    .policy-section-content {
        padding-left: 0;
    }

    .policy-section-content p {
        font-size: 13px;
    }

    .policy-subsection-title {
        font-size: 14px;
        padding: 6px 10px;
    }

    .policy-footer {
        margin-top: 30px;
        padding-top: 15px;
        text-align: center;
    }

    .policy-updated {
        font-size: 12px;
    }

    /* Site Map Page Responsive */
    .sitemap-article {
        padding: 20px 15px;
    }

    .sitemap-page-title {
        font-size: 20px;
    }

    .sitemap-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .sitemap-section-title {
        font-size: 16px;
        padding-left: 10px;
        margin-bottom: 15px;
    }

    .sitemap-list li {
        padding: 8px 0;
        padding-left: 16px;
    }

    .sitemap-list li::before {
        width: 6px;
        height: 6px;
    }

    .sitemap-list li a {
        font-size: 13px;
    }
}
