/* ===========================================
   共通スタイル
   =========================================== */

/* * {
    outline: 1px solid red !important;
} */

/* スクロールを適用 */
html {
    scroll-behavior: smooth !important;
}

body {
    font-family: var(--font-base);
    color: var(--text-base);
    background-color: var(--bg-body);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
    padding-top: 76px;
}
img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

/* --- Utility & Animations --- */
.text-main {
    color: var(--main-color) !important;
}

.bg-main {
    background-color: var(--main-color) !important;
}

.fw-black {
    font-weight: 900;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 文節の途中での改行を防ぐ */
.text-keep {
    display: inline-block;
}

/* ヘッダーロゴ */
.site-header-logo {
    height: 50px;
    width: auto;
}

/* フッターロゴ */
.site-footer-logo {
    height: 50px;
    width: auto;
    margin-top: -5px;
}

/* --- 共通ヘッダー --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    border-top: 5px solid var(--main-color);
    border-bottom: none;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-weight: bold;
    color: #555;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--main-color);
}

.header-tel {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-base);
    letter-spacing: 1px;
}

.header-tel i {
    color: var(--sub-color);
}

.btn-header-cta {
    background: var(--main-color);
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
    transition: 0.3s;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-header-cta:hover {
    background: #004494;
    color: white;
    transform: translateY(-2px);
}

/* --- 共通ページヘッダー --- */
.page-header {
    background: white;
    padding: 30px 0;
    /* margin-bottom: 30px; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

/* 背景画像付きページヘッダー: テキスト白、ベース背景グレー */
.page-header-articles,
.page-header-faq,
.page-header-contact,
.page-header-customer-voice,
.page-header-about {
    background: #5a5a5a;
}

.page-header-articles .page-title,
.page-header-faq .page-title,
.page-header-contact .page-title,
.page-header-customer-voice .page-title,
.page-header-about .page-title {
    color: #fff;
    margin-top: -20px;
}

.page-header-articles .page-desc,
.page-header-faq .page-desc,
.page-header-contact .page-desc,
.page-header-customer-voice .page-desc,
.page-header-about .page-desc {
    color: rgba(255, 255, 255, 0.85);
}

.page-header-articles .breadcrumb-item a,
.page-header-faq .breadcrumb-item a,
.page-header-contact .breadcrumb-item a,
.page-header-customer-voice .breadcrumb-item a,
.page-header-about .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
}

.page-header-articles .breadcrumb-item.active,
.page-header-faq .breadcrumb-item.active,
.page-header-contact .breadcrumb-item.active,
.page-header-customer-voice .breadcrumb-item.active,
.page-header-about .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.page-header-articles .breadcrumb-item+.breadcrumb-item::before,
.page-header-faq .breadcrumb-item+.breadcrumb-item::before,
.page-header-contact .breadcrumb-item+.breadcrumb-item::before,
.page-header-customer-voice .breadcrumb-item+.breadcrumb-item::before,
.page-header-about .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-header > .container {
    position: relative;
    z-index: 2;
}

/* 背景画像レイヤー（::before = 画像、::after = グレー半透明オーバーレイ）- ページ別 */
.page-header-articles::before,
.page-header-faq::before,
.page-header-contact::before,
.page-header-customer-voice::before,
.page-header-about::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* グレー半透明オーバーレイ */
.page-header-articles::after,
.page-header-faq::after,
.page-header-contact::after,
.page-header-customer-voice::after,
.page-header-about::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(80, 80, 80, 0.75);
    pointer-events: none;
    z-index: 1;
}

.page-header-articles::before {
    background-image: url('../img/page-header-articles.jpg');
}

.page-header-faq::before {
    background-image: url('../img/page-header-faq.jpg');
}

.page-header-contact::before {
    background-image: url('../img/page-header-contact.jpg');
}

.page-header-customer-voice::before {
    background-image: url('../img/page-header-customer-voice.jpg');
}

.page-header-about::before {
    background-image: url('../img/page-header-about.jpg');
}

.page-title {
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0 0;
}

/* --- 共通フッター --- */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-title {
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-left: 3px solid var(--sub-color);
    padding-left: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--sub-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

/* --- 共通Sticky Action Bar --- */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   トップページ専用スタイル
   =========================================== */

/* --- リッチ見出しスタイル --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    font-family: 'Oswald', sans-serif;
    color: var(--sub-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.section-title {
    font-weight: 900;
    font-size: 2.2rem;
    margin: 0;
    color: var(--main-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--main-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: kenburns 18s linear infinite;
}

.hero-slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1506521781263-d8422e82f27a?w=1600');
    animation: kenburns-first 18s linear infinite;
}

.hero-slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1616363088386-31c4a8414858?w=1600');
    animation-delay: 6s;
}

.hero-slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1621929747188-0b4dc28498d2?w=1600');
    animation-delay: 12s;
}

@keyframes kenburns {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    2% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
        transform: scale(1.1) translateX(-10px);
    }

    35.33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes kenburns-first {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    33.33% {
        opacity: 1;
        transform: scale(1.1) translateX(-10px);
    }

    35.33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    opacity: 0.75;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    padding: 20px;
    /* margin-top: 40px; */
}

.hero-badge {
    display: inline-block;
    background: var(--sub-color);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.hero-lead {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-hero-cta {
    background: linear-gradient(135deg, color-mix(in srgb, var(--sub-color) 70%, white 30%) 0%, var(--sub-color) 100%);
    color: white;
    padding: 18px 50px;
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-hero-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: white;
}

/* --- エリア検索セクション --- */
.area-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.area-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.map-wrapper {
    flex: 0 0 45%;
    max-width: 480px;
    position: relative;
    margin-top: 20px;
}

.map-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.1));
}

.map-label-link {
    position: absolute;
    z-index: 10;
    background: white;
    color: var(--text-base);
    font-size: 13px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.map-label-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.map-label-link::after {
    content: '';
    position: absolute;
    border-style: solid;
}

/* 地域ラベル位置 */

/* 北海道 */
.lbl-010 {
    top: 6%;
    right: 40%;
    border-bottom: 3px solid var(--badge-hokkaido);
}

.lbl-010:hover {
    background: var(--badge-hokkaido);
}

.lbl-010::after {
    top: 50%;
    left: 100%;
    border-width: 5px;
    transform: translateY(-50%);
    border-color: transparent transparent transparent white;
}

.lbl-010:hover::after {
    border-left-color: var(--badge-hokkaido);
}

/* 東北 */
.lbl-020 {
    top: 30%;
    right: 15%;
    border-bottom: 3px solid var(--badge-tohoku);
}

.lbl-020:hover {
    background: var(--badge-tohoku);
}

.lbl-020::after {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-color: transparent white transparent transparent;
}

.lbl-020:hover::after {
    border-right-color: var(--badge-tohoku);
}

/* 関東 */
.lbl-030 {
    top: 58%;
    right: 18%;
    border-bottom: 3px solid var(--badge-kanto);
}

.lbl-030:hover {
    background: var(--badge-kanto);
}

.lbl-030::after {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-color: transparent white transparent transparent;
}

.lbl-030:hover::after {
    border-right-color: var(--badge-kanto);
}

/* 中部 */
.lbl-040 {
    top: 40%;
    left: 39%;
    border-bottom: 3px solid var(--badge-chubu);
}

.lbl-040:hover {
    background: var(--badge-chubu);
}

.lbl-040::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0 5px;
    border-color: white transparent transparent transparent;
}

.lbl-040:hover::after {
    border-top-color: var(--badge-chubu);
}

/* 関西 */
.lbl-050 {
    top: 52%;
    left: 29%;
    border-bottom: 3px solid var(--badge-kansai);
}

.lbl-050:hover {
    background: var(--badge-kansai);
}

.lbl-050::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0 5px;
    border-color: white transparent transparent transparent;
}

.lbl-050:hover::after {
    border-top-color: var(--badge-kansai);
}

/* 中国 */
.lbl-060 {
    top: 58%;
    left: 12%;
    border-bottom: 3px solid var(--badge-chugoku);
}

.lbl-060:hover {
    background: var(--badge-chugoku);
}

.lbl-060::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0 5px;
    border-color: white transparent transparent transparent;
}

.lbl-060:hover::after {
    border-top-color: var(--badge-chugoku);
}

/* 四国 */
.lbl-070 {
    top: 86%;
    left: 20%;
    border-bottom: 3px solid var(--badge-shikoku);
}

.lbl-070:hover {
    background: var(--badge-shikoku);
}

.lbl-070::after {
    top: 0%;
    left: 50%;
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent white transparent;
    transform: translateY(-100%) translateX(-50%);
}

.lbl-070:hover::after {
    border-bottom-color: var(--badge-shikoku);
}

/* 九州 */
.lbl-080 {
    top: 83%;
    left: -8%;
    border-bottom: 3px solid var(--badge-kyushu);
}

.lbl-080:hover {
    background: var(--badge-kyushu);
}

.lbl-080::after {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent white;
}

.lbl-080:hover::after {
    border-left-color: var(--badge-kyushu);
}

/* 沖縄（九州と同色扱い） */
.lbl-090 {
    bottom: 8%;
    right: 5%;
    border-bottom: 3px solid var(--badge-kyushu);
}

.lbl-090:hover {
    background: var(--badge-kyushu);
}

.lbl-090::after {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-color: transparent white transparent transparent;
}

.lbl-090:hover::after {
    border-right-color: var(--badge-kyushu);
}

/* 都道府県リスト */
.area-list-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

.region-row {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px dashed #eee;
    padding: 4px 0;
}

.region-row:last-child {
    border-bottom: none;
}

.region-name {
    width: 70px;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.85rem;
    color: #444;
    position: relative;
    line-height: 1.2;
    padding-top: 3px;
}

.pref-badges {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pref-btn {
    display: inline-block;
    font-size: 0.8rem;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 1px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.pref-btn:hover {
    color: white;
    transform: translateY(-1px);
    border-color: transparent;
}

/* エリアカラー設定 */
/* エリアカラー設定 */

/* 北海道 */
.row-010 .region-name {
    color: var(--badge-hokkaido);
}

.row-010 .pref-btn:hover {
    background: var(--badge-hokkaido);
}

/* 東北 */
.row-020 .region-name {
    color: var(--badge-tohoku);
}

.row-020 .pref-btn:hover {
    background: var(--badge-tohoku);
}

/* 関東 */
.row-030 .region-name {
    color: var(--badge-kanto);
}

.row-030 .pref-btn:hover {
    background: var(--badge-kanto);
}

/* 中部 */
.row-040 .region-name {
    color: var(--badge-chubu);
}

.row-040 .pref-btn:hover {
    background: var(--badge-chubu);
}

/* 関西 */
.row-050 .region-name {
    color: var(--badge-kansai);
}

.row-050 .pref-btn:hover {
    background: var(--badge-kansai);
}

/* 中国 */
.row-060 .region-name {
    color: var(--badge-chugoku);
}

.row-060 .pref-btn:hover {
    background: var(--badge-chugoku);
}

/* 四国 */
.row-070 .region-name {
    color: var(--badge-shikoku);
}

.row-070 .pref-btn:hover {
    background: var(--badge-shikoku);
}

/* 九州 */
.row-080 .region-name,
.row-090 .region-name {
    /* 沖縄も同色扱い */
    color: var(--badge-kyushu);
}

.row-080 .pref-btn:hover,
.row-090 .pref-btn:hover {
    /* 沖縄も同色扱い */
    background: var(--badge-kyushu);
}


/* 企業カード（トップ用） */
.company-card {
    border: none;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.company-header {
    background: #f8f9fa;
    text-align: center;
    border-bottom: 1px solid #eee;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--main-color);
    margin-bottom: 10px;
}

.company-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    min-height: 3em;
}

.tag-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px 0 15px 0;
}

.tag-item {
    font-size: 0.75rem;
    background: #eef2ff;
    color: var(--main-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* .btn-company {
    width: 100%;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    font-weight: bold;
    border-radius: 6px;
    padding: 10px;
    transition: 0.3s;
    background: white;
} */

.btn-company {
    width: 100%;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    font-weight: bold;
    border-radius: 6px;
    padding: 10px;
    transition: 0.3s;
    background: white;
    /* ▼ 上部の余白を自動で埋めて、ボタンを最下部に押し下げる */
    margin-top: auto;
}

.company-card:hover .btn-company {
    background: var(--main-color);
    color: white;
}

/* 選ばれる理由 */
.reason-card {
    text-align: center;
    background: white;
    padding: 40px 20px;
    border-radius: 15px;
    height: 100%;
    border-bottom: 5px solid var(--sub-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.reason-icon {
    width: 90px;
    height: 90px;
    background: var(--bg-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--sub-color);
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.reason-title {
    font-weight: 900;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-base);
}

.reason-text {
    font-size: 0.95rem;
    color: #666;
    text-align: left;
}

/* ===========================================
   一覧ページ専用スタイル
   =========================================== */

/* Search Accordion */
.search-accordion {
    max-width: 900px;
    margin: 10px auto 0;
    border: none;
}

.accordion-button {
    background-color: var(--main-color);
    color: white;
    font-weight: 900;
    font-size: 1rem;
    border-radius: 8px !important;
    box-shadow: 0 4px 0 #003d82 !important;
    padding: 12px 20px;
    justify-content: center;
    transition: all 0.1s ease;
    position: relative;
    transform: translateY(0);
}

.accordion-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #003d82 !important;
}

.accordion-button::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    background-image: none;
    margin-left: 15px;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-button:not(.collapsed) {
    background-color: var(--main-color);
    color: white;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px 8px 0 0 !important;
}

.search-panel-body {
    background: white;
    padding: 20px;
    border: 2px solid var(--main-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.collapsing {
    transition: height 0.3s ease-out;
}

.search-group-label {
    font-weight: 900;
    font-size: 0.95rem;
    border-left: 5px solid var(--main-color);
    padding-left: 12px;
    margin-bottom: 15px;
    background: #fff;
    color: var(--text-base);
}

.search-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 30px;
}

.search-option-label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.search-option-label:hover {
    background: #eef2ff;
    border-color: var(--main-color);
}

.search-option-label input {
    margin-right: 8px;
    accent-color: var(--main-color);
}

/* 一覧カード（選択機能付き） */
.company-card.selected {
    border-color: var(--sub-color);
    background-color: #fff8e1;
    box-shadow: 0 0 0 2px var(--sub-color);
}

.company-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color);
    transform: translateY(-3px);
}

.check-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    pointer-events: none;
}

.custom-checkbox {
    width: 28px;
    height: 28px;
    cursor: pointer;
    accent-color: var(--sub-color);
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.search-result-checkbox {
    width: 28px;
    height: 28px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    display: inline-block;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    background: #fff;
    color: #ddd;
    font-size: 18px;
}

.js-cart-toggle.added .search-result-checkbox {
    background: var(--sub-color, #ffc107);
    border-color: white;
    color: white;
}

/* チェックマーク位置調整：translate(x, y) */
.search-result-checkbox::before {
    display: inline-block;
    transform: translate(0px, 1px); 
}

.card-img-top {
    height: 180px;
    object-fit: cover;
    background: #eee;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catch-copy {
    font-weight: bold;
    font-size: 0.9rem;
    color: #e91e63;
    /* margin-bottom: 5px;
    min-height: 2.5em; */
}

.spec-table {
    width: 100%;
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #555;
}

.spec-table th {
    width: 30%;
    font-size: 12px;
    font-weight: normal;
    color: #888;
    padding: 3px 0;
}

.tag-area {
    margin: 7px 0 7px 0;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    background: #eef2f7;
    color: #555;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 3px;
    margin-bottom: 3px;
}

.btn-detail {
    width: 100%;
    display: block;
    text-align: center;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-weight: bold;
    background: white;
    padding: 10px;
    border-radius: 6px;
    transition: 0.3s;
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.btn-detail:hover {
    background: var(--main-color);
    color: white;
}

.btn-submit {
    background: var(--sub-color);
    color: white;
    border: none;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 10px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-submit:hover {
    background: #f57c00;
    color: white;
    transform: scale(1.02);
}

/* ===========================================
   フォーム入力ページ専用スタイル
   =========================================== */

.step-flow {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.step-item {
    position: relative;
    font-weight: bold;
    color: #999;
    font-size: 0.9rem;
}

.step-item.active {
    color: var(--main-color);
}

.step-item.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: var(--main-color);
    margin-top: 5px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.selected-companies-area {
    background: #eef2ff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.selected-label {
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-company {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.selected-company .btn-remove {
    margin-left: 8px;
    color: #999;
    cursor: pointer;
    font-size: 0.8rem;
}

.selected-company .btn-remove:hover {
    color: #dc3545;
}

.form-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    margin-bottom: 30px;
}

.form-section-header {
    background: #f9f9f9;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-base);
    display: flex;
    align-items: center;
}

.form-section-header i {
    margin-right: 10px;
    color: var(--sub-color);
}

.form-section-body {
    padding: 25px;
}

.form-label {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.badge-require {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: text-bottom;
}

.badge-any {
    background: #6c757d;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: text-bottom;
}

.form-control,
.form-select {
    padding: 10px;
    border-radius: 5px;
    border-color: #ccc;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
}

.privacy-box {
    background: white;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-link {
    color: var(--main-color);
    text-decoration: underline;
}

.btn-confirm {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: var(--sub-color);
    color: white;
    font-weight: 900;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.3rem;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    transition: 0.3s;
}

.btn-confirm:hover {
    background: #f57c00;
    color: white;
    transform: translateY(-2px);
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* ===========================================
   確認画面
   =========================================== */

/* ボタンエリアのレイアウト */
.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    /* ボタン間の余白 */
}

/* 修正する（戻る）ボタン：白背景・グレー枠 */
.btn-action-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #ccc;
    color: #666;
    font-weight: bold;
    padding: 14px 40px;
    /* 上下・左右の余白を広めに */
    border-radius: 50px;
    /* 完全に丸くする */
    min-width: 180px;
    /* 最小幅を指定して見た目を揃える */
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-action-back:hover {
    background: #f0f0f0;
    color: #333;
    border-color: #bbb;
    transform: translateY(-2px);
}

/* 送信するボタン：サブカラー（オレンジ）強調 */
.btn-action-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sub-color);
    /* サイト共通のアクセントカラー */
    border: 2px solid var(--sub-color);
    color: white;
    font-weight: 900;
    padding: 14px 50px;
    border-radius: 50px;
    /* 完全に丸くする */
    min-width: 200px;
    /* 戻るボタンより少し大きく強調 */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    /* ふんわりとした影 */
}

.btn-action-submit:hover {
    background: #f57c00;
    /*少し濃く*/
    border-color: #f57c00;
    transform: translateY(-3px);
    /* 浮き上がるアニメーション */
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

/* スマホ対応：縦並びにする場合 */
@media (max-width: 576px) {
    .form-actions {
        flex-direction: column-reverse;
        /* 送信する を上に持ってくる */
        gap: 20px;
    }

    .btn-action-back,
    .btn-action-submit {
        width: 100%;
        max-width: 300px;
    }
}

/* ===========================================
   詳細ページ専用スタイル
   =========================================== */
.breadcrumb {
    display: flex;
    align-items: center;
}

.breadcrumb-area {
    /* padding: 15px 0; */
    background: transparent;
}

.breadcrumb-item a {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb-item.active {
    color: #999;
    font-size: 0.9rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    /* 区切り文字 */
}

.detail-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.company-title {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.company-catch {
    font-weight: bold;
    color: #e91e63;
    font-size: 1.1rem;
    margin-bottom: 1px;
}

.main-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    position: relative;
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
    opacity: 1;
    border-color: var(--main-color);
}

.detail-tags {
    margin: 20px 0 20px 0;
}

.detail-tag {
    display: inline-block;
    font-size: 0.85rem;
    background: #eef2f7;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: bold;
}

.info-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.section-head {
    font-weight: 900;
    font-size: 1.3rem;
    border-left: 5px solid var(--sub-color);
    padding-left: 15px;
    margin-bottom: 20px;
    color: var(--text-base);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    width: 25%;
    background: #f9f9f9;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #555;
}

.info-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.cta-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--sub-color);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.cta-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn-sidebar-submit {
    display: block;
    width: 100%;
    background: var(--sub-color);
    color: white;
    font-weight: 900;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
    transition: 0.3s;
    margin-bottom: 15px;
}

.btn-sidebar-submit:hover {
    background: #f57c00;
    color: white;
    transform: translateY(-2px);
}

/* --- 右サイドバー（PC向け） --- */
/* リスト追加：メインカラー */
.btn-sidebar-add {
    display: block;
    width: 100%;
    background: var(--main-color); /* 変数を使用 */
    color: white;
    font-weight: bold;
    padding: 12px;
    border-radius: 50px;
    font-size: 1rem;
    border: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.btn-sidebar-add:hover {
    /* 色指定ではなく、現在の色を10%暗くするフィルタをかける */
    filter: brightness(0.9); 
    transform: translateY(-2px);
    color: white;
}

/* 見積もり依頼：サブカラー */
.btn-sidebar-req {
    display: block;
    width: 100%;
    background: var(--sub-color); /* 変数を使用 */
    color: white;
    font-weight: 900;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-sidebar-req:hover {
    filter: brightness(0.9); /* 現在の色を10%暗く */
    transform: translateY(-2px);
    color: white;
}

/* --- フッター追従（スマホ最適化） --- */
/* 共通ボタンスタイル */
.btn-footer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    /* PCデフォルト */
    padding: 12px;
    font-size: 1rem;
}

/* リスト追加：メインカラー */
.btn-footer-add {
    background: var(--main-color);
}
.btn-footer-add:hover {
    filter: brightness(0.9);
}

/* 見積もり依頼：サブカラー */
.btn-footer-req {
    background: var(--sub-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-footer-req:hover {
    filter: brightness(0.9);
}

/* スマホ時のサイズ調整 */
@media (max-width: 576px) {
    .action-bar {
        /* padding: 8px 0;  */
    }
    
    .btn-footer-action {
        padding: 8px 0;      /* ボタンの太さを減らす */
        font-size: 0.8rem;   /* 文字サイズを小さく */
        line-height: 1.2;
    }
    
    .btn-footer-action i {
        font-size: 0.9em;
        margin-right: 4px !important;
    }
    
    /* グリッドの隙間も少し詰める */
    .action-bar .row.g-2 {
        --bs-gutter-x: 0.5rem;
    }
}

.tel-area {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.btn-submit-mobile {
    background: var(--sub-color);
    color: white;
    border: none;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 10px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
    transition: 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}


/* =========================================
   検索フォーム：特徴・カテゴリー（チップ型レイアウト）
   ========================================= */

/* グループごとのコンテナ（横並び・折り返し有効） */
.search-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-left: 0;
}

/* 個々のチップ（選択肢）のデザイン */
.search-chip {
    display: inline-flex;
    align-items: center;
    width: auto !important;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

/* チェックボックス本体 */
.search-chip input[type="checkbox"] {
    margin-right: 6px;
    margin-top: 0;
}

/* ホバー時 */
.search-chip:hover {
    background-color: #f1f1f1;
    border-color: #c0c0c0;
}

/* 選択済み（チェックあり）のスタイル */
/* :has() は最新ブラウザ用ですが、JS制御なしでCSSだけで完結させるため記述 */
.search-chip:has(input:checked) {
    background-color: #e7f1ff;
    /* 薄い青背景 */
    border-color: #0d6efd;
    /* 青枠 */
    color: #0d6efd;
    /* 青文字 */
    font-weight: bold;
}

/* 親カテゴリのラベル（緑の左ボーダー） */
.industry-parent-label {
    border-left: 4px solid var(--sub-color);
    /* Bootstrap success color */
    padding-left: 12px;
    font-weight: bold;
    color: #212529;
    margin-bottom: 12px;
    margin-top: 16px;
    font-size: 0.95rem;
}

/* 各グループ間の余白調整 */
.search-chip-group {
    margin-bottom: 24px;
}

/* =========================================
   問い合わせフォーム
   ========================================= */

/* アコーディオン風開閉用スタイル */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.accordion-content.is-open {
    opacity: 1;
    /* max-heightはJSでscrollHeightを設定、または十分な高さを指定 */
}

.hp-field {/* ハニーポットフィールド */
    display: none;
}

/* =========================================
   ページネーション
   ========================================= */

/* ページネーション全体のコンテナ */
.pagination {
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 各ページアイテム */
.page-item {
    margin: 0;
}

/* ページリンク共通スタイル */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ホバー時 */
.page-link:hover {
    color: var(--main-color);
    background: #f0f7ff;
    border-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.15);
}

/* アクティブ（現在のページ） */
.page-item.active .page-link {
    color: white;
    background: linear-gradient(135deg, var(--main-color) 0%, #004494 100%);
    border-color: var(--main-color);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
    font-weight: 700;
    cursor: default;
}

.page-item.active .page-link:hover {
    transform: none;
}

/* 無効化（前後ボタン） */
.page-item.disabled .page-link {
    color: #d1d5db;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* 矢印ボタンの形状 */
.page-link.page-first {
    font-size: 1rem;
}

.page-link.page-prev {
    font-size: 1.1rem;
}

.page-link.page-next {
    font-size: 1.1rem;
}

.page-link.page-last {
    font-size: 1rem;
}

/* フォーカス時のアウトライン */
.page-link:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* ナビゲーションラベル */
nav[aria-label="Page navigation"] {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header-articles,
    .page-header-faq,
    .page-header-contact,
    .page-header-customer-voice,
    .page-header-about {
        padding: clamp(12px, 3vw, 30px) 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-header-articles .page-title,
    .page-header-faq .page-title,
    .page-header-contact .page-title,
    .page-header-customer-voice .page-title,
    .page-header-about .page-title {
        margin-top: 0;
        font-size: clamp(0.85rem, 4vw, 1.8rem);
    }

    .page-header-articles .page-desc,
    .page-header-faq .page-desc,
    .page-header-contact .page-desc,
    .page-header-customer-voice .page-desc,
    .page-header-about .page-desc {
        font-size: clamp(0.6rem, 2.5vw, 0.9rem);
        margin-bottom: 0;
    }

    .page-header-articles .breadcrumb,
    .page-header-faq .breadcrumb,
    .page-header-contact .breadcrumb,
    .page-header-customer-voice .breadcrumb,
    .page-header-about .breadcrumb {
        display: none;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .pagination {
        gap: 4px;
    }

    .page-link.page-first,
    .page-link.page-prev,
    .page-link.page-next,
    .page-link.page-last {
        font-size: 0.9rem;
    }
}

/* ===========================================
   記事一覧
   =========================================== */

/* テキストカラー */
.text-main {
    color: var(--main-color) !important;
}

/* 背景色 (薄い背景) */
.bg-main-light {
    background-color: color-mix(in srgb, var(--main-color), white 90%) !important;
}

/* ボタン (メインカラー) */
.btn-main {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}
.btn-main:hover {
    background-color: color-mix(in srgb, var(--main-color), black 10%); /* ホバーで少し暗く */
    border-color: color-mix(in srgb, var(--main-color), black 10%);
    color: #fff;
}

/* バッジ (メインカラーベース) */
.badge-main {
    background-color: color-mix(in srgb, var(--main-color), white 90%);
    color: var(--main-color);
}

/* サイドバー: アクティブなカテゴリー */
.cat-link-active {
    background-color: var(--main-color) !important;
    color: #fff !important;
}
.cat-link-active:hover {
    background-color: var(--main-color) !important;
    color: #fff !important;
}

/* サイドバー: 通常リンクホバー */
.cat-link:hover {
    background-color: color-mix(in srgb, var(--main-color), white 90%) !important;
    color: var(--main-color) !important;
}

/* ページネーション (Bootstrapの上書き) */
.page-link {
    color: var(--main-color);
}
.page-link:hover {
    color: color-mix(in srgb, var(--main-color), black 20%);
    background-color: color-mix(in srgb, var(--main-color), white 90%);
}
.page-item.active .page-link {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

/* 検索ボックスのボーダー */
.border-start-main {
    border-left-color: var(--main-color) !important;
}

/* カードホバー時の画像ズーム */
.transition-zoom {
    transition: transform 0.3s ease;
}
.hover-lift:hover .transition-zoom {
    transform: scale(1.05);
}
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.child-cat-link:hover {
    color: var(--main-color) !important;
    background-color: color-mix(in srgb, var(--main-color), white 95%);
}

.child-cat-link-active {
    color: var(--main-color) !important;
    font-weight: bold;
}


/* 記事本文のスタイル調整 */
.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
.article-content h2 {
    border-bottom: 3px solid var(--main-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    font-size: 1.5rem;
}
.article-content h3 {
    border-left: 5px solid var(--main-color);
    padding-left: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.3rem;
    background-color: #f8f9fa;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.article-content p {
    margin-bottom: 1.5rem;
}

/* ページャーボタン内のレイアウト調整 */
.pager-btn-inner {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    /* padding: 5px; */
}

.btn-detail:hover .text-muted,
.btn-detail:hover .text-dark,
.btn-detail:hover i {
    color: #fff !important;
}

/* ===========================================
   レスポンシブ対応
   =========================================== */

@media (max-width: 991px) {

.nav-search-link br { display: none; } /* スマホで改行させない */

    /* トップページ */
    .area-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .map-wrapper {
        display: none;
    }

    .region-name {
        width: 100%;
        margin-bottom: 2px;
    }

    .region-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }

    .pref-btn {
        padding: 5px 12px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    /* 詳細ページ */
    .sidebar-sticky {
        display: none;
    }

    .info-table th {
        width: 30%;
        font-size: 0.85rem;
        padding: 10px;
    }

    .info-table td {
        font-size: 0.9rem;
        padding: 10px;
    }

    .hide-sp { display: none; } /* SP非表示 */
    .small-sp { font-size: 18px; } /* SPテキストサイズ */
}

@media (min-width: 1200px) {
    .row-cols-xl-4>* {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* スマホ用：検索パネルのスタイル調整 */
@media (max-width: 767.98px) {

    /* --- スクロール化 --- */
    .search-panel-body {
        max-height: 400px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 15px;
    }

    /* ---ペア表示の縦並び化--- */
    .search-options-area .row.g-0 {
        flex-direction: column;
    }

    .search-options-area .col-auto,
    .search-options-area .col {
        width: 100%;
        flex: 0 0 auto;
        max-width: 100%;
    }

    .search-options-area .pe-2 {
        padding-right: 0 !important;
        margin-bottom: 1rem;
    }

    /* 都道府県ボタンをコンパクトにして3列並びやすくする */
    .mobile-compact-list {
        gap: 4px !important;
    }

    .mobile-compact-list .search-option-label {
        font-size: 11px;
        padding: 6px 4px;
    }

    .mobile-compact-list .search-option-label input {
        margin-right: 2px;
    }

}

/* スマホサイズ（〜576px）の時 */
@media (max-width: 576px) {
    .hero-badge {
        margin-top: 50px;
    }

    .footer {
        padding-top: 40px;
        padding-bottom: 15px;
    }
}


/* ヘッダー：ツールチップのはみ出し防止 */
#headerCartBtn {
    position: relative; /* 基準点を確保 */
}

#cartEmptyTooltip {
    /* デフォルトの中央揃えを解除し、右端基準にする */
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    /* 画面幅を超えないようにする */
    max-width: 250px;
    width: max-content !important;
    white-space: nowrap;
}

/* ツールチップの矢印位置も右寄りに調整 */
#cartEmptyTooltip .position-absolute {
    left: auto !important;
    right: 15px !important;
    transform: none !important;
}

/* スマホ時のみ余白を小さくする */
@media (max-width: 767.98px) {
    .row.g-5 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
        margin-right: calc(-0.5 * var(--bs-gutter-x));
        margin-left: calc(-0.5 * var(--bs-gutter-x));
    }
    
    /* コンテナのパディングを少し広げて、はみ出しを吸収する */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* サンプル画像帯テキスト */
.sample-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.sample-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sample-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    padding: 4px 0;
    letter-spacing: 0.1em;
    pointer-events: none;
}
.thumb-item .sample-image-label {
    font-size: 0.5rem;
    padding: 2px 0;
    letter-spacing: 0;
}

/* ============================================
 * 市区町村パネル（検索ページ・トップページ共通）
 * ============================================ */

/* 検索ページ: 都道府県 + ▼ボタンのラッパー */
.search-pref-wrapper {
    display: inline-flex;
    align-items: center;
}

/* ▼ボタン（ミニピル型） */
.city-toggle-btn {
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    color: var(--sub-color);
    background: color-mix(in srgb, var(--sub-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--sub-color) 30%, transparent);
    border-radius: 50%;
    padding: 0 6px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.city-toggle-btn:hover {
    background: color-mix(in srgb, var(--sub-color) 22%, transparent);
    border-color: var(--sub-color);
}
.city-toggle-btn[aria-expanded="true"] .fa-caret-down {
    transform: rotate(180deg);
}

/* 市区町村パネル */
.city-panel {
    margin-bottom: 0.5rem;
}
.city-panel-inner {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}
.city-panel-controls .btn-xs {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}
.city-list {
    gap: 0.25rem !important;
}
.search-option-label-city {
    font-size: 0.8rem !important;
    padding: 0.15rem 0.5rem !important;
}

/* トップページ: 都道府県+市区町村アコーディオン */
.pref-item-top {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}
.btn-top-city-toggle {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.65rem;
    padding: 0 3px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
}
.btn-top-city-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}
.btn-top-city-toggle:hover {
    color: #0d6efd;
}
.top-city-panel {
    flex-basis: 100%;
    width: 100%;
}
.city-links-area {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.25rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #dee2e6;
}
.city-link {
    font-size: 0.75rem;
    color: #6c757d;
    text-decoration: none;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}
.city-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* 対応エリア グリッドレイアウト */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.4rem;
}
.area-grid .btn {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 576px) {
    .area-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* ========================= */
/* しおり型追従サイドバー     */
/* ========================= */
.bookmark-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    width: 40px;
    text-align: center;
}
.bookmark-banner__link {
    display: block;
    text-decoration: none;
    color: #fff;
}
.bookmark-banner__link:hover {
    color: #fff;
    text-decoration: none;
}
.bookmark-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto -15px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--main-color, #0056b3);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.bookmark-banner__body {
    writing-mode: vertical-rl;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.225rem;
    width: 40px;
    box-sizing: border-box;
    padding: 22px 6px 15px;
    background-color: var(--main-color, #0056b3);
    border-radius: 6px 0 0 0;
    box-shadow: -1px 1px 6px rgba(0, 0, 0, 0.25);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    transition: background-color 0.3s;
    position: relative;
}
.bookmark-banner__link:hover .bookmark-banner__body {
    background-color: color-mix(in srgb, var(--main-color, #0056b3) 85%, #000);
}
.bookmark-banner__body span {
    white-space: nowrap;
}
.bookmark-banner__divider {
    writing-mode: horizontal-tb;
    width: 70%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0.11rem 0;
}
.bookmark-banner__close {
    all: unset;
    writing-mode: horizontal-tb;
    position: absolute;
    bottom: 3px;
    left: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.375rem;
    line-height: 1;
    cursor: pointer;
}
.bookmark-banner__close:hover {
    color: #fff;
}
