/* ==========================================================================
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;
    }
    .section-title .txt-black{
        font-size: 18px;
    }
    .section-title{
        font-size: 32px;
    }
    .btn span{
        width: 80%;
    }
    .btn::after{
        width: 30px;
        height: 30px;
    }

    /* 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: #FF902F !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: #FF902F;
        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: #FF902F;
        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: #FF902F;
        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;
    }
    

    /* 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;
    }
}

/* --- ボタンのレスポンシブ --- */
@media screen and (max-width: 767px) {
    .btn, .btn.--wide {
        width: 100%;
        max-width: 400px;
        font-size: 15px;
        height: 60px;
    }
}
/* ==========================================================================
   First View (FV) - 375px Base VW (SP)
   375pxのカンプ数値を x / 375 * 100vw で計算
   ========================================================================== */
@media screen and (max-width: 768px) {
    .fv-section { 
        width: 100vw;
        /* スマホ用のアスペクト比（例: 375:667 や 縦長表示に合わせた高さ） */
        aspect-ratio: 375 / 667; 
        height: auto;
        background-color: #fff;
    }

    /* 左側のテキストエリア */
    .fv-content { 
        top: 8vw;           /* 30px / 375 */
        left: 5.33vw;       /* 20px / 375 */
        width: 89.33vw;     /* 335px / 375 */
        z-index: 2;
    }

    .fv-copy-01 { 
        font-size: 6.4vw;   /* 24px / 375 */
        margin-bottom: 2vw;
        line-height: 1.3;
    }

    /* 「不動産売却」画像（スマホ幅に合わせて大きく表示） */
    .fv-copy-highlight { 
        width: 80vw;        /* 300px / 375 */
        height: auto;
        display: block;
        margin-bottom: 3.2vw; /* 12px / 375 */
    }

    /* その下の解説テキスト */
    .fv-sub-copy { 
        font-size: 4.8vw;   /* 18px / 375 */
        line-height: 1.5;
        margin-bottom: 1.6vw;
    }

    .fv-sub-desc { 
        font-size: 3.46vw;  /* 13px / 375 */
        line-height: 1.4;
    }

    /* 右側の人物・背景・1枚絵（スマホでは下部に配置） */
    .fv-right-bg {
        top: auto;
        bottom: 100px;
        right: 0;
        left: 0;
        width: 100vw;
        height: auto;
    }

    .fv-right-bg img {
        width: 100%;
        height: auto;
    }

    /* 下部のCTAボタン */
    .fv-cta { 
        width: 88vw;        /* 330px / 375 */
        left: 50%;
        bottom: 6vw;        /* 22.5px / 375 */
        transform: translateX(-50%) translateY(30px);
    }

    .fv-cta.is-visible {
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================================================
   INDEX Section Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 絶対配置を解除して通常のブロックフローに戻す */
    .content-index {
        position: static;
        transform: none;
        margin-top: 20px; /* 必要に応じて上のセクションとの余白を調整してください */
        padding: 0 16px;
    }

    /* グリッドを1列（縦並び）に変更 */
    .index-grid-container {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    /* 各グリッドアイテムの調整 */
    .index-grid-item {
        padding: 20px 16px;
    }

    /* 2番目以降のアイテムの区切り線を「縦の点線」から「横の点線」に変更 */
    .index-grid-item:not(:first-child)::before {
        content: "";
        position: absolute;
        top: 0;
        left: 5%;
        width: 90%;
        height: 0;
        border-left: none;
        border-top: 1px dashed #707070;
    }

    /* 1番目の「INDEX」タイトル部分の角丸をスマホ用に調整 */
    .index-title-item {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border-bottom-left-radius: 0;
        padding: 16px;
    }

    .index-text-large {
        font-size: 20px;
    }

    /* テキストサイズと矢印位置の調整 */
    .index-grid-text {
        font-size: 14px;
        margin-bottom: 24px; /* 矢印とテキストが被らないように余白を確保 */
    }

    .small-text {
        font-size: 12px;
    }

    /* 矢印画像をスマホで少し調整 */
    .index-arrow {
        width: 14px;
        bottom: 12px;
    }
}





/* ==========================================================================
   Comparison Section Responsive
   ========================================================================== */

/* タブレット・スマホ共通 */
@media screen and (max-width: 1024px) {
    .comparison-section{
        padding: 40px 0;
    }
    .comparison-inner {
        max-width: 100%;
        padding: 0; /* 左右の余白はscroll-wrapperのpaddingで管理 */
    }
    .comparison-header{
        margin: 0 auto 40px;
    }
    /* ヘッダー周りの調整 */
    .comparison-sub-title {
        font-size: 20px;
        padding: 0 20px;
    }
    .comparison-main-title {
        font-size: 28px;
        padding: 0 20px;
    }
    
    /* タイトル横のライン（335px固定だとスマホからはみ出るため縮小） */
    .title-line-decor {
        width: 15vw; /* 画面幅に合わせて伸縮 */
        min-width: 40px;
    }
    .title-line-decor img {
        width: 100%;
        height: auto;
    }

    /* --- スクロールエリアの挙動強化 --- */
    .comparison-scroll-wrapper {
        margin: 0;
        padding: 20px 20px 40px; /* 下に余白を設けてスクロールしやすく */
        /* スムーズなスクロール体験を強制 */
        scroll-snap-type: x mandatory; 
    }

    .comparison-cards-container {
        margin: 0;
        gap: 15px; /* スマホでは少し詰める */
        padding-right: 20px; /* 最後のカードの右側に余白を確保 */
    }

    /* カードの横幅調整 */
    .comparison-company-card {
        width: 340px; /* スマホ画面に収まりつつ次が見えるサイズ */
        flex-shrink: 0; /* 潰れないように固定 */
        scroll-snap-align: center; /* スクロールが止まったときに中央に来る */
        border-radius: 20px;
    }

    /* カード内部のサイズ微調整 */
    .comparison-card-intro-box {
        font-size: 16px;
        min-height: 110px;
    }
    .comparison-card-header {
        min-height: 100px;
    }
    .comparison-card-company-name {
        font-size: 24px;
    }
    .feature-text{
        padding: 0;
    }
    .card-actions{
        padding: 20px;
    }
}

/* 小さいスマホ用調整 */
@media screen and (max-width: 375px) {
    .comparison-company-card {
        width: 290px; /* より小さい画面向け */
    }
    .comparison-main-title {
        font-size: 22px;
    }
}

/* ==========================================================================
   Pitfalls Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .pitfalls-section {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    /* タイトルエリア */
    .pitfalls-header-bg {
        padding: 30px 16px;
        margin-bottom: 40px;
    }

    .pitfalls-title {
        font-size: 22px;
        line-height: 1.4;
    }

    /* コンテンツエリアの外枠カード */
    .pitfalls-inner {
        padding: 0 16px;
        gap: 24px;
    }

    .pitfalls-card {
        padding: 24px 16px;
        border-radius: 12px;
    }

    /* 01画像と見出しエリア */
    .pitfalls-num-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    .pitfalls-num-img {
        width: 80px;
    }

    .pitfalls-intro-text p {
        font-size: 18px;
        line-height: 1.5;
    }

    /* 仲介・買取の比較エリア（1列に並べ替え） */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .pitfalls-comparison-box {
        padding: 20px 16px;
    }

    .pitfalls-comparison-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 12px;
        min-height: auto;
        padding-left: 0;
        margin-bottom: 16px;
    }

    .comparison-lead {
        font-size: 17px;
    }

    /* バッジサイズ調整 */
    .badge {
        width: 120px;
        height: 48px;
        font-size: 22px;
    }

    .comparison-desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* リスト調整 */
    .comparison-list li {
        font-size: 15px;
        padding-left: 32px;
        margin-bottom: 16px;
    }

    .comparison-list li::before {
        width: 24px;
        height: 24px;
    }

    /* カラム（テキストと画像の横並びを縦並びへ変換） */
    .pitfalls-column,
    .pitfalls-column.-reverse {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .pitfalls-column-text-wrapper,
    .pitfalls-column-img {
        width: 100%;
    }

    .pitfalls-column-text {
        font-size: 15px;
        line-height: 1.8;
    }

    /* 下部の補足アドバイスボックス */
    .pitfalls-advice-box {
        padding: 24px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        border-radius: 12px;
    }

    .advice-icon {
        width: 60px;
    }

    .advice-text {
        font-size: 15px;
        width: 100%;
    }
}

/* ==========================================================================
   Point Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .point-section {
        padding: 50px 16px 40px;
    }

    /* 上部のヘッダーカード */
    .point-header-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        gap: 16px;
        margin-bottom: 24px;
    }

    .point-header-left img {
        width: 100px;
        margin: 0 auto;
    }

    .point-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .point-title-highlight {
        font-size: 18px;
    }

    /* イントロテキスト */
    .point-intro-text {
        font-size: 16px;
        margin-bottom: 60px; /* 数字バッジが上に飛び出す分の余白を確保 */
        line-height: 1.6;
    }

    /* 4つのカードグリッド（1列化と上下間隔の調整） */
    .point-grid {
        grid-template-columns: 1fr;
        /* バッジ（top: -38px）が上のカードと被らないよう大きめにgapを設定 */
        gap: 60px; 
    }

    /* 各カード */
    .point-card {
        padding: 50px 16px 24px; /* 上部にバッジが入るスペースを確保 */
        border-radius: 16px;
    }

    /* 数字バッジ（01など） */
    .point-badge-img {
        width: 65px;
        top: -32px;
    }

    /* 見出し・イラスト・説明文 */
    .point-card-heading {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .point-illust-box {
        width: 90%;
        margin-bottom: 16px;
    }

    .point-card-desc {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* ==========================================================================
   Introduction Section Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .company-intro-block {
        padding: 40px 16px 60px;
    }

    /* 共通ヘッダー */
    .intro-common-header {
        padding: 20px 16px 24px;
        margin-bottom: 30px;
    }

    .intro-main-title {
        font-size: 20px;
        line-height: 1.4;
    }

    /* メインカード枠 */
    .company-intro-box {
        padding: 30px 16px 40px;
        border-radius: 12px;
    }

    /* メインビジュアル（縦並びへ変更） */
    .company-main-visual {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .company-main-visual img {
        max-width: 100%;
    }

    .company-visual-right {
        width: 100%;
    }

    .company-visual-number {
        font-size: 24px;
        padding: 0 30px 0 16px;
        margin-bottom: 12px;
    }

    .company-visual-right-company-name {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .company-visual-right-text {
        font-size: 16px;
        line-height: 1.5;
    }

    /* 理由コンテナ（屋根背景の調整） */
    .company-reason-box {
        padding: 70px 16px 30px;
        border-radius: 16px;
        background-size: 100% auto;
    }

    .company-reason-header {
        margin-bottom: 30px;
    }

    .company-reason-header .header-sub {
        font-size: 18px;
    }

    .company-reason-header .header-title {
        font-size: 24px;
    }

    /* 01〜04のカードグリッド（1列化） */
    .reason-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    /* 各カード */
    .reason-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    /* 数字の緑色バッジ（スマホ用にリサイズ） */
    .reason-num {
        width: 50px;
        height: 50px;
        font-size: 24px;
        top: 12px;
        left: 12px;
    }

    .reason-img-circle {
        width: 130px;
        margin: 0 auto 12px;
    }

    .reason-card-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .reason-card-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    /* 05の横長カード（スマホでは縦並びへ変換） */
    .reason-card-wide {
        padding: 20px 16px;
        margin-bottom: 30px;
    }

    .reason-wide-inner {
        flex-direction: column;
        gap: 16px;
        padding-left: 0;
        text-align: center;
    }

    /* ボタンエリア（縦並び化） */
    .company-reason-btns {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* ==========================================================================
   Review Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .review-section {
        padding: 60px 16px;
    }

    /* ヘッダータイトル */
    .review-header {
        margin-bottom: 30px;
    }

    .review-header .header-sub {
        font-size: 18px;
    }

    .review-header .header-title {
        font-size: 28px;
    }

    /* 3カラムのグリッドを1列（縦並び）に変更 */
    .review-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    /* 口コミカード */
    .review-card {
        border-radius: 30px; /* スマホ画面に合わせて角丸を調整 */
        padding: 30px 16px 20px;
    }

    /* 特殊なカード（review-card-none）の調整 */
    .review-card-none {
        padding: 24px 16px;
        border-radius: 16px;
        margin-bottom: 30px;
    }

    .review-card-text {
        font-size: 14px;
    }

    /* カード内タイトル */
    .review-card-title {
        font-size: 18px;
        min-height: auto;
        margin-bottom: 16px;
    }

    /* アバター画像 */
    .review-avatar {
        width: 140px;
        margin: 0 auto 20px;
    }

    /* 星とスコア */
    .stars,
    .rating-num {
        font-size: 26px;
    }

    .review-rating {
        margin-bottom: 16px;
    }

    /* 口コミ本文 */
    .review-desc {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    /* 右下の引用元 */
    .review-note {
        font-size: 11px;
    }

    /* ボタンエリア（縦並びへ変更・隙間の調整） */
    .review-btns {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* ==========================================================================
   Works Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .works-section {
        padding: 0 16px 60px;
    }

    /* ヘッダータイトル */
    .works-header {
        margin-bottom: 30px;
    }

    .works-header .header-sub {
        font-size: 18px;
    }

    .works-header .header-title {
        font-size: 28px;
    }

    /* データなし枠（works-none） */
    .works-none {
        padding: 24px 16px;
        margin-bottom: 30px;
    }

    .works-none-text {
        font-size: 14px;
    }

    /* テーブルの横スクロール設定 */
    .works-table-container {
        overflow-x: auto; /* スマホ画面からはみ出る場合は横スクロール可能にする */
        -webkit-overflow-scrolling: touch; /* iOSで滑らかにスクロールさせる */
        margin-bottom: 12px;
    }

    /* テーブル本体 */
    .works-table {
        min-width: 600px; /* 文字潰れや改行崩れを防ぐため最小幅を確保 */
    }

    .works-table th {
        font-size: 14px;
        padding: 14px 10px;
    }

    .works-table td {
        font-size: 14px;
        padding: 16px 10px;
    }

    /* 数字フォントの調整 */
    .num-red,
    .works-table .num,
    .works-table tr td:nth-child(3) .num-red {
        font-size: 22px;
    }

    /* 右下の引用元 */
    .works-note {
        font-size: 11px;
        margin-bottom: 30px;
    }

    /* ボタンエリア（縦並び化） */
    .works-btns {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* ==========================================================================
   Company Detail Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .company-detail-section {
        padding: 50px 16px 60px;
    }

    /* タイトルエリア（上下緑ライン） */
    .company-detail-header {
        margin-bottom: 30px;
        padding: 12px 0;
    }

    .company-detail-header .header-title {
        font-size: 22px;
        line-height: 1.4;
    }

    /* 2カラムグリッドを1列（縦並び）に変更 */
    .company-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    /* 地図（iframe）エリア */
    .company-map {
        height: 250px;
        border-radius: 8px; /* 角丸で整える場合 */
    }

    /* 会社概要テーブル */
    .company-table-wrap {
        border-radius: 8px;
    }

    .company-table th,
    .company-table td {
        padding: 12px 10px;
        font-size: 14px;
        line-height: 1.5;
    }

    .company-table th {
        width: 30%; /* スマホ画面に合わせて項目の幅を適正化 */
    }

    /* ボタンエリア（縦並び化・間隔の調整） */
    .company-detail-btns {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* ==========================================================================
   Market Price Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .market-price {
        padding: 40px 16px;
    }

    /* 3カラムリストを1列（縦並び）に変更 */
    .market-price-list {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 30px;
    }

    /* カードヘッダー */
    .card-header {
        padding: 12px 16px;
        gap: 12px;
    }

    /* 白丸アイコン画像 */
    .card-icon img {
        width: 60px;
        height: 60px;
    }

    /* カードタイトル */
    .card-title {
        font-size: 20px;
    }

    /* カードボディ */
    .card-body {
        padding: 16px;
    }

    /* データ行（dt / dd） */
    .price-dl {
        padding: 14px 0;
    }

    .price-dl dt {
        font-size: 15px;
    }

    /* 金額・数値 */
    .price-num {
        font-size: 22px;
    }

    .sub-text {
        font-size: 12px;
    }

    /* 引用元テキスト */
    .market-price-note {
        font-size: 11px;
        margin-top: 12px;
    }
}

/* ==========================================================================
   FAQ Section Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .faq-section {
        padding: 60px 16px 50px;
        background-size: cover; /* スマホで背景画像が潰れないようにカバー表示へ調整 */
    }

    .faq-inner {
        max-width: 100%;
    }

    .faq-list {
        margin-top: 30px;
        gap: 16px;
    }

    /* 各FAQアイテム（白いカード枠） */
    .faq-item {
        padding: 18px 16px;
    }

    /* 質問エリア */
    .faq-q {
        padding: 0 0 12px 0;
    }

    .q-icon {
        font-size: 18px;
        margin-right: 8px;
    }

    .q-text {
        font-size: 15px;
        line-height: 1.5;
    }

    /* トグルボタン（スマホ用に少しコンパクト化する場合） */
    .faq-toggle-btn {
        width: 28px;
        height: 28px;
        margin-left: 12px;
    }

    /* 回答の中身 */
    .faq-a {
        font-size: 14px;
        padding-top: 14px;
        line-height: 1.7;
    }

    .a-icon {
        font-size: 16px;
        margin-right: 8px;
    }
}








/* ==========================================================================
   Company List Section - Responsive
   ========================================================================== */

/* タブレットサイズ（1024px以下）: 2カラムに変更 */
@media (max-width: 1024px) {
    .company-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* スマホサイズ（768px以下） */
@media (max-width: 768px) {
    .company-list-section {
        padding: 60px 0 50px;
    }

    .section-title-wrapper {
        margin-bottom: 30px;
    }

    .company-list-title {
        font-size: 26px; /* タイトルサイズを調整 */
    }

    /* グリッドを1カラムに */
    .company-list-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    /* カードデザインの微調整 */
    .company-card {
        border-radius: 30px; /* 角丸を少し小さく */
        width: 100%;
    }

    .company-card .card-header {
        min-height: 80px;
        padding: 15px 10px;
    }

    .company-card .card-title {
        font-size: 22px;
    }

    /* 特徴ボックス */
    .feature-box {
        min-height: auto;
        padding: 15px;
    }

    .feature-box p {
        font-size: 16px;
    }

    /* 情報エリア */
    .info-label {
        font-size: 17px;
        padding-left: 5px;
    }

    .info-label::after {
        width: 80px; /* 下線の太い部分も短く調整 */
    }

    .info-value {
        font-size: 16px;
    }

    /* 地図の高さ調整 */
    .company-map iframe {
        height: 200px;
    }

    /* もっと見るボタンの調整 */
    .more-btn-area {
        margin-top: 20px;
    }

    .btn-more-gold {
        width: 100%; /* スマホでは横幅いっぱいに */
        max-width: 340px;
        padding: 16px 20px; /* 左右の大きなパディング(100px)を解除 */
        font-size: 18px;
        box-sizing: border-box;
        justify-content: center; /* テキストを中央に */
    }

    .btn-more-gold .btn-icon {
        width: 30px;
        right: 15px; /* アイコンの位置を調整 */
    }
}

/* 小さなスマホ（375px以下）向け */
@media (max-width: 375px) {
    .company-card .card-title {
        font-size: 20px;
    }
    .info-label {
        font-size: 16px;
    }
    .info-value {
        font-size: 15px;
    }
}


/* ==========================================================================
   Footer Responsive
   ========================================================================== */

/* タブレットサイズ (1024px以下) */
@media screen and (max-width: 1100px) {
    .footer-top-container {
        padding: 60px 40px;
        gap: 40px;
    }
    .footer-column {
        width: 48%; /* 横並び維持しつつ幅調整 */
    }
    .footer-dark-inner {
        padding: 0 40px;
    }
}

/* スマホサイズ (767px以下) */
@media screen and (max-width: 767px) {
    /* 1. フッタートップ（記事・会社一覧） */
    .footer-top-container {
        flex-direction: column; /* 縦並び */
        padding: 40px 20px;
        gap: 30px;
    }

    .footer-column {
        width: 100%; /* 全幅 */
    }

    .footer-section-title {
        font-size: 18px;
        text-align: center;
    }

    .footer-section-content {
        padding: 15px;
    }

    .footer-article-list, 
    .footer-company-links {
        gap: 15px;
    }

    .footer-article-list a, 
    .footer-company-links a {
        font-size: 14px; /* スマホで読みやすいサイズに調整 */
    }

    /* 2. 免責事項（24pxはスマホでは大きすぎるため調整） */
    .footer-disclaimer {
        font-size: 16px; /* 視認性を保ちつつダウン */
        padding: 0 20px 40px;
        line-height: 1.6;
        text-align: left; /* スマホでは左寄せの方が読みやすい */
    }

    /* 3. ダークセクション（メニュー・コピーライト） */
    .footer-dark-section {
        padding: 40px 0 60px;
        background-size: cover; /* 背景画像をスマホにフィットさせる */
    }

    .footer-navigation ul {
        flex-wrap: wrap; /* 折り返しを許可 */
        gap: 10px 20px;
        justify-content: center;
    }

    .footer-navigation ul li a {
        font-size: 15px; /* メニュー文字をスマホサイズに */
    }

    /* 4. 境界線とコピーライト */
    .footer-separator {
        margin-bottom: 40px; /* 130pxから大幅に縮小 */
    }

    .copyright {
        text-align: center; /* スマホでは中央寄せが定石 */
        font-size: 10px;
        line-height: 1.6;
        padding: 0 10px;
    }
}

/* 超小型スマホ用 (375px以下) */
@media screen and (max-width: 375px) {
    .footer-navigation ul {
        flex-direction: column; /* メニューを完全に縦に並べる */
        align-items: center;
        gap: 12px;
    }
    .footer-disclaimer {
        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;
    }

    /* 会社一覧セクション */
    .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: 0px;
        right: 0px;
        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: 100%;
        height: auto;
    }

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

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