/* ==========================================================================
   共通変数定義
   ========================================================================== */
:root {
    /* カラーデザインガイド準拠 */
    --color-primary: #1F378D;
    --color-secondary: #2B4C9F;
    --color-bg-white: #FFFFFF;
    --color-bg-gray: #F8F9FA;
    --color-border: #E5E8EB;
    --color-text-heading: #1A1F2E;
    --color-text-body: #4A5568;
    --color-text-secondary: #5A6478;
    --color-success: #0F7938;
    --color-warning: #D97706;
    --color-error: #C53030;
    --color-footer-bg: #1A1F2E;
    --color-footer-text: #9CA3AF;
    
    /* ヘッダー高さ */
    --header-height: 82px;
}

/* ==========================================================================
   基本リセット
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:'BIZ UDGothic', 'Noto Sans JP', 'Hiragino Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-body);
    background: var(--color-bg-white);
}

/*リンク文言下線消す*/
a {
text-decoration: none;
color: inherit; /* Bootstrap の a { color: #007bff } を上書き。親要素の色を引き継ぐ */
}

/* estimate-tool.html用のbodyスタイル */
body.estimate-tool-page {
    background: var(--color-bg-gray);
    min-height: 100vh;
    padding: 20px;
}

/* ==========================================================================
   ヘッダー (全ページ共通) - レスポンシブ対応強化版
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-bg-white);
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.50)/*ヘッダー影追加*/
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1001;
}

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    display: block;
    transition: opacity 0.2s;
}

.logo:hover img {
    opacity: 0.8;
}

.certification-badge {
    display: none;
    background: var(--color-bg-gray);
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-body);
}

.badge-short {
    display: none;
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text-heading);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* メニューが開いている間はハンバーガーを非表示（nav-closeを唯一の閉じるボタンにする） */
.hamburger.active {
    visibility: hidden;
}

/* ナビゲーション */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-header {
    display: none;
}

.nav-close {
    display: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
}

.main-nav li {
    position: relative;
}

.main-nav > ul > li > a {
    text-decoration: none;
    color: var(--color-text-body);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
    display: block;
    padding: 10px 0;
}

.main-nav > ul > li > a:hover {
    color: var(--color-primary);
}

/* ドロップダウントグルボタン（デスクトップでは非表示） */
.dropdown-toggle {
    display: none;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: block; /* Bootstrap の .dropdown-menu { display: none } を上書き */
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    min-width: 300px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    margin-top: 10px;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-body);
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--color-bg-gray);
    color: var(--color-primary);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown > a::after {
    content: " ▼";
    font-size: 10px;
    margin-left: 5px;
}

/* モバイルメニューオーバーレイ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   タブレット対応 (1024px以下)
   ========================================================================== */
@media (max-width: 1024px) {
    .header-content {
        padding: 15px 20px;
    }
    
    .main-nav ul {
        gap: 25px;
    }
    
    .main-nav > ul > li > a {
        font-size: 14px;
    }
    
    .certification-badge {
        padding: 6px 15px;
        font-size: 11px;
    }
    
    .badge-full {
        display: none;
    }
    
    .badge-short {
        display: inline;
    }
}

/* ==========================================================================
   モバイル対応 (768px以下) - ハンバーガーメニュー
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .header-content {
        padding: 15px 20px;
    }
    
    /* 認証バッジを非表示 */
    .certification-badge {
        display: none;
    }
    
    /* ハンバーガーメニューボタンを表示 */
    .hamburger {
        display: flex;
    }
    
    /* ナビゲーションをモバイルメニュー化 */
    .main-nav {
        display: block; /* flexを上書きして縦並びに */
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-bg-white);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1100;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    /* ナビヘッダー（閉じるボタン）：サービス紹介の左横に配置 */
    .nav-header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 16px 20px;
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--color-border);
        border-radius: 50%;
        font-size: 20px;
        line-height: 1;
        color: var(--color-text-heading);
        cursor: pointer;
        padding: 0;
        width: 36px;
        height: 36px;
    }

    /* メニューリスト */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 0 20px;
    }

    .main-nav li {
        border-bottom: none;
    }
    
    .main-nav > ul > li > a {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    /* ドロップダウン付きアイテム */
    .has-dropdown {
        position: relative;
    }
    
    .has-dropdown > a {
        padding-right: 60px;
    }
    
    .has-dropdown > a::after {
        display: none;
    }
    
    /* ドロップダウントグルボタン：モバイルでは非表示（常時展開） */
    .dropdown-toggle {
        display: none;
    }

    .has-dropdown > a {
        padding-right: 20px;
    }

    /* モバイルドロップダウンメニュー：常時展開 */
    .dropdown-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: auto;
        padding: 0;
        background: transparent;
        max-height: none;
        overflow: visible;
    }
    
    .dropdown-menu a {
        padding: 14px 20px 14px 40px;
        font-size: 14px;
    }
    
    .dropdown-menu a:hover {
        background: var(--color-bg-white);
    }
}

/* ==========================================================================
   小型モバイル対応 (480px以下)
   ========================================================================== */
@media (max-width: 480px) {
    .main-nav {
        width: 100%;
        max-width: 100%;
    }
    
    .logo img {
        width: 120px;
        height: auto;
    }
}

/* ==========================================================================
   共通コンテナ
   ========================================================================== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 40px 40px;
}

/* estimate-tool.html用の特別なコンテナ */
body.estimate-tool-page .container {
    max-width: 640px;
    margin: 100px auto 40px;
    background: var(--color-bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 0;
}

/* ==========================================================================
   ページヘッダー (cases.html用)
   ========================================================================== */
.page-header {
    background: var(--color-bg-white);
    padding: 40px 40px 36px;
    margin-bottom: 40px;
    border-radius: 0;
    text-align: center;
}

.page-header::after {
    display: none;
}

.page-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.page-header .page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 12px 0 0;
}

.page-header .post-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 8px 0 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .page-header {
        padding: 35px 25px 30px;
        border-radius: 8px 8px 0 0;
    }
    
    .page-header .page-title {
        font-size: 26px;
    }
    
    .page-header .page-subtitle {
        font-size: 14px;
    }
    
    .page-header::after {
        width: 60px;
        height: 3px;
    }
}

/* ==========================================================================
   フィルタータブ (cases.html用)
   ========================================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 30px;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-white);
}

/* 年度フィルター */
.year-filter {
    display: none;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.year-filter.show {
    display: flex;
}

.year-btn {
    padding: 8px 20px;
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-btn:hover {
    background: var(--color-bg-white);
    border-color: var(--color-primary);
}

.year-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-white);
}

/* 統計バー */
.stats-bar {
    display: none;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--color-bg-gray);
    border-radius: 8px;
}

.stats-bar.show {
    display: flex;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-success);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   カテゴリーセクション (cases.html用)
   ========================================================================== */
.category-section {
    display: none;
    margin-bottom: 60px;
}

.category-section.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-primary);
}

/* ケースカードグリッド */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.case-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(31, 55, 141, 0.1);
    transform: translateY(-2px);
}

.case-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.case-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-body);
}

.case-badge.inspection {
    background: #E6F4EA;
    border-color: var(--color-success);
    color: var(--color-success);
}

.case-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 10px;
}

.case-name a {
    color: inherit;
    text-decoration: none;
}

.case-name a:hover {
    color: var(--color-primary);
}

.case-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--color-bg-gray);
    border-radius: 4px;
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.case-link:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
}

.case-link::after {
    content: "→";
    font-size: 12px;
}

/* シンプルリスト */
.simple-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.simple-list li {
    padding: 15px 20px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.2s;
}

.simple-list li:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-gray);
}

.simple-list a {
    color: var(--color-text-body);
    text-decoration: none;
    font-weight: 500;
}

.simple-list a:hover {
    color: var(--color-primary);
}

/* サブセクション */
.subsection {
    margin-top: 50px;
}

.subsection-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--color-primary);
}

/* ==========================================================================
   見積もりツール用スタイル (estimate-tool.html用)
   ========================================================================== */
/* ツール専用ヘッダー */
body.estimate-tool-page .header {
    background: var(--color-primary);
    color: white;
    padding: 40px;
    text-align: center;
}

body.estimate-tool-page .header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

body.estimate-tool-page .header p {
    font-size: 14px;
    opacity: 0.9;
}

/* コンテンツエリア */
.content {
    padding: 40px;
}

/* プログレスバー */
.progress-bar {
    height: 6px;
    background: var(--color-bg-gray);
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* セクション */
.section {
    margin-bottom: 30px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.section.visible {
    opacity: 1;
    max-height: 5000px;
    overflow: visible;
}

/* フォームグループ */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-heading);
    font-size: 16px;
}

.required {
    color: var(--color-error);
    margin-left: 4px;
}

/* ラジオグループとチェックボックスグループ */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option,
.checkbox-option {
    border: 2px solid var(--color-border);
    padding: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-white);
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-gray);
}

.radio-option.selected,
.checkbox-option.selected {
    border-color: var(--color-primary);
    background: var(--color-bg-white);
}

.radio-circle,
.checkbox-square {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.checkbox-square {
    border-radius: 4px;
}

.radio-option.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
}

.checkbox-option.selected .checkbox-square::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: bold;
}

/* セレクトボックス */
.select-box {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    background: var(--color-bg-white);
    color: var(--color-text-body);
}

.select-box:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ヘルプテキスト */
.help-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 8px;
    padding-left: 4px;
}

/* ボタングループ */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-secondary);
}

.btn-secondary {
    background: var(--color-bg-gray);
    color: var(--color-text-body);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 結果セクション */
.result-section {
    background: var(--color-bg-gray);
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
}

.result-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-heading);
}

.result-note {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* 価格カード */
.price-card {
    background: var(--color-bg-white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.price-label {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.price-range {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* 内訳 */
.breakdown {
    background: var(--color-bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.breakdown-title {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--color-text-heading);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-body);
}

.breakdown-item:last-child {
    border-bottom: none;
}

/* 注意ボックス */
.notice-box {
    background: rgba(217, 118, 6, 0.1);
    border-left: 4px solid var(--color-warning);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.notice-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-heading);
}

.notice-list {
    list-style: none;
    font-size: 13px;
    color: var(--color-text-body);
}

.notice-list li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.notice-list li::before {
    content: '・';
    position: absolute;
    left: 0;
}

/* CTAセクション (見積もりツール用) */
body.estimate-tool-page .cta-section {
    text-align: center;
}

body.estimate-tool-page .cta-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-heading);
}

body.estimate-tool-page .cta-description {
    font-size: 14px;
    color: var(--color-text-body);
    margin-bottom: 25px;
    line-height: 1.8;
}

body.estimate-tool-page .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cta-button {
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 16px;
}

.cta-button.primary {
    background: var(--color-primary);
    color: white;
}

.cta-button.primary:hover {
    background: var(--color-secondary);
}

.cta-button.secondary {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.cta-button.secondary:hover {
    background: var(--color-bg-gray);
}

/* リセットリンク */
.reset-link {
    text-align: center;
    margin-top: 20px;
}

.reset-text {
    color: var(--color-primary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.reset-text:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   index.html用スタイル
   ========================================================================== */
/* ヒーローセクション */
.hero-section {
    margin-top: var(--header-height);
    padding: 20px 0;
    background: var(--color-bg-gray);
}

.hero-right {
    background: transparent !important;
    padding: 0;
    margin: 0;
}

.hero-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 490px 1fr;
    gap: 0 60px;
    align-items: start;
}

.hero-header {
    grid-column: 1 / -1;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--color-text-heading);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
}

/* サービスカード */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 167px);
    gap: 10px;
}

.service-card {
    background: var(--color-bg-white);
    padding: 14px;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    transition: border-color 150ms, box-shadow 150ms;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(31, 55, 141, 0.1);
}

.service-card:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.service-icon {
    width: 115px;
    height: 115px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.service-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--color-text-heading);
    font-weight: 600;
}

.service-card p {
    font-size: 13px;
    color: var(--color-text-body);
    line-height: 1.5;
}

/* 検査証明書セクション */
.certification-section {
    background-image: url('/img/top_syoumeisyo.jpg');
    background-size: 105%;
    background-position: 50% -30px;
    height: 545px;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 20px;
    margin-top: 0;
    overflow: hidden;
}

/* カードコンテナ */
.certification-section .certification-content,
.certification-section > div {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(1px);
    padding: 35px 40px;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* バッジ */
.cert-badge {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* タイトル */
.cert-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 説明文 */
.cert-description {
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ボタン */
.cert-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
}

.cert-btn:hover {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(31, 55, 141, 0.15);
}

.cert-btn:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .certification-section {
        height: 500px;
        padding: 30px 20px;
        margin-top: 24px;
    }
    
    .certification-section .certification-content,
    .certification-section > div {
        padding: 28px 25px;
    }
    
    .cert-title {
        font-size: 22px;
    }
    
    .cert-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .cert-btn {
        width: 100%;
        text-align: center;
    }
}

/* ミッションセクション */
.mission-section {
    position: relative;
    background-image: url('/images/top-image01.jpg');
    background-size: cover;
    background-position: center top;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 48px;
    margin-bottom: -1px;
}

.mission-content {
    background: rgba(255, 255, 255, 0.88);
    padding: 36px 60px;
    text-align: center;
}

.mission-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 0;
}

.mission-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text-body);
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 768px) {
    .mission-section {
        min-height: 240px;
        margin-top: 12px;
    }
    .mission-content {
        padding: 28px 24px 36px;
    }
    .mission-title {
        font-size: 20px;
    }
}

/* 3つの強み */
.strengths-section {
    padding: 80px 0;
    background: var(--color-bg-white);
}

/* 幾何学的グリッドパターン (推奨) */
.strengths-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.top-section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 900;
    color: var(--color-text-heading);
}

.strengths-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}


/*3つの強みカード背景グラデーション*/

.strength-card {
    position: relative;
    background: #eceff3;
    border-radius: 8px;
    padding: 36px 28px;
    text-align: left;
}

.strength-number {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--color-primary);
    opacity: 0.6;
}

.strength-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-heading);
}

.strength-description {
    font-size: 14px;
    line-height: 1.85;
    color: var(--color-text-body);
}



/* インタラクティブセクション */
.interactive-section {
    padding: 80px 0;
    background: var(--color-bg-gray);
}

.interactive-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.interactive-box {
    background: var(--color-bg-white);
    padding: 35px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.interactive-box:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(31, 55, 141, 0.1);
}

.interactive-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color-text-heading);
}

.interactive-box p {
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 25px;
}

.interactive-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.interactive-btn:hover {
    background: var(--color-secondary);
}

/* アクセシビリティセクション */
.accessibility-section {
    padding: 80px 0;
    background: #FFFFFF;
}


/* ========================================
   レスポンシブ対応
   ======================================== */


.accessibility-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

.accessibility-grid {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.accessibility-text-centered {
    max-width: 900px;
    width: 100%;
}

.accessibility-text-centered .benefit-list {
    display: grid;
    grid-template-columns: repeat(1, 3fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.accessibility-text-centered .benefit-list li {
    background: var(--color-bg-white);
    padding: 28px 24px;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    text-align: left;
    line-height: 1.8;
}

.accessibility-text-centered .benefit-list li::before {
    display: none;
}

.accessibility-text-centered .benefit-list li strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-heading);
}

.simulator-box {
    background: var(--color-bg-gray);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.simulator-box h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-text-heading);
}

.simulator-box p {
    font-size: 14px;
    color: var(--color-text-body);
    margin-bottom: 30px;
}

.simulator-screen {
    background: var(--color-bg-white);
    height: 250px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
}

/* 導入事例 */
.case-section {
    padding: 80px 0;
    background: var(--color-bg-gray);
}

.case-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.case-metrics {
    display: flex;
    justify-content: space-evenly;
    gap: 80px;
    margin: 50px 0;
}

.metric {
    text-align: center;
    background-color: #ffffff;
    border: 1.5px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(31, 55, 141, 0.08);
    border-radius: 8px;
    width: 15em;
    padding: 8px 0;
}

.metric-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 8px;
    margin-top: 16px;
}

.metric-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.case-description {
    font-size: 18px;
    color: var(--color-text-body);
    margin-bottom: 30px;
    line-height: 1.8;
}

.case-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border-radius: 30px;
    border: 2px solid var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
}

.case-btn:hover {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(31, 55, 141, 0.15);
}

.case-btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* ニュースセクション */
.news-section {
    padding: 80px 0;
    background: var(--color-bg-white);
}

.news-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.news-featured {
    grid-row: span 2;
    background: var(--color-bg-gray);
    border-radius: 8px;
    padding: 32px;
    position: relative;
    border: 1.5px solid var(--color-border);
}

.news-featured-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-bg-white);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.news-card {
    background: var(--color-bg-white);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    padding: 22px;
    transition: border-color 150ms, box-shadow 150ms;
    cursor: pointer;
}

.news-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(31, 55, 141, 0.1);
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-gray);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-heading);
    text-decoration: none;
    display: block;
}

.news-featured .news-title {
    font-size: 20px;
}

.news-title:hover {
    color: var(--color-primary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-date {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.more-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 150ms;
}

.more-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.more-link:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* CTAセクション (index.html用) */
section.cta-section {
    padding: 100px 0;
    background: var(--color-bg-gray);
    text-align: center;
    color: var(--color-text-heading);
    border-top: 1px solid var(--color-border);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

section.cta-section .cta-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.cta-subtitle {
    font-size: 17px;
    margin-bottom: 36px;
    color: var(--color-text-body);
    line-height: 1.7;
}

section.cta-section .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-btn {
    padding: 16px 44px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
}

.cta-btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.cta-btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-white);
    border-color: var(--color-primary);
}

.cta-btn-primary:hover {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(31, 55, 141, 0.15);
}

.cta-btn-secondary {
    background: transparent;
    color: var(--color-bg-white);
    border: 2px solid var(--color-bg-white);
}

.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.12);
}

/* ==========================================================================
   フッター (全ページ共通)
   ========================================================================== */
footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 3fr auto auto;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-bg-white);
}

.footer-brand p {
    color: var(--color-footer-text);
    line-height: 1.8;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--color-bg-white);
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--color-footer-text);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-column a:hover {
    color: var(--color-bg-white);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(156, 163, 175, 0.2);
    text-align: center;
}

/* ==========================================================================
   各templateページ用スタイル
   ========================================================================== */
/*h2の下線装飾*/
.section-title{
    text-align: left;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 900;
    color: var(--color-text-heading);
    border-bottom: 4px solid #F8F9FA;
}
/*h2の下線装飾*/
.section-title:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 4px #1F378D;
  width: 10%;
}


/* ==========================================================================
   汎用ページ用スタイル
   ========================================================================== */
.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    margin-bottom: 30px;
}

.content-section h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-section p {
    margin-bottom: 20px;
}

.content-section ul {
    margin-bottom: 30px;
}

.info-box {
    background: var(--color-bg-gray);
    border-left: 4px solid var(--color-primary);
    padding: 25px;
    border-radius: 4px;
    margin: 30px 0;
}

.info-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 10px;
}

.info-box p {
    margin-bottom: 0;
}

.page-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--color-bg-gray);
    border-radius: 8px;
    margin-top: 60px;
}

.page-cta h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 15px;
}

.page-cta p {
    font-size: 16px;
    color: var(--color-text-body);
    margin-bottom: 30px;
}

/* ==========================================================================
   レスポンシブ対応 (コンテンツ部分)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .hero-header {
        grid-column: 1;
    }
    
    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    
    .accessibility-text-centered .benefit-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-featured {
        grid-row: span 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body.estimate-tool-page {
        padding: 20px;
    }
    
    .container {
        padding: calc(var(--header-height) + 20px) 20px 20px;
    }
    
    body.estimate-tool-page .container {
        margin-top: 80px;
    }
    
    .content {
        padding: 24px;
    }
    
    body.estimate-tool-page .header {
        padding: 30px 20px;
    }
    
    body.estimate-tool-page .header h1 {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .case-metrics {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .button-group,
    body.estimate-tool-page .cta-buttons,
    section.cta-section .cta-buttons {
        flex-direction: column;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 統合CTAセクション */
.unified-cta-section {
    padding: 80px 0;
    background: var(--color-bg-gray);
}

.unified-cta-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 上段：2列グリッド */
.cta-top-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cta-box {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-box:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(31, 55, 141, 0.12);
    transform: translateY(-2px);
}

.cta-box-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-box-description {
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-box-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-box-btn:hover {
    background: var(--color-secondary);
    transform: translateX(4px);
}

/* 下段：全幅ボックス */
.cta-bottom-full {
    width: 100%;
}

.cta-contact-box {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 45px 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-contact-box:hover {
    border-color: #E87B35;
    box-shadow: 0 4px 16px rgba(232, 123, 53, 0.12);
}

.cta-contact-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 15px;
}

.cta-contact-description {
    font-size: 15px;
    color: var(--color-text-body);
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-contact-btn {
    display: inline-block;
    padding: 16px 50px;
    background: #E87B35;
    color: var(--color-bg-white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-contact-btn:hover {
    background: #D96A24;
    transform: translateX(4px);
}

/* お問い合わせボタンのホバー時にテキスト色を白に固定 */
.cta-contact-btn,
.cta-contact-btn:hover,
.cta-contact-btn:visited,
.cta-contact-btn:focus,
.cta-contact-btn:active {
    color: var(--color-bg-white) !important;
    text-decoration: none !important;
}

.cta-contact-btn:hover {
    background: #D96A24;
    transform: translateX(4px);
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .unified-cta-container {
        padding: 0 30px;
    }
    
    .cta-box-title {
        font-size: 20px;
    }
    
    .cta-contact-title {
        font-size: 22px;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .unified-cta-section {
        padding: 60px 0;
    }
    
    .unified-cta-container {
        padding: 0 20px;
    }
    
    .cta-top-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .cta-box {
        padding: 30px 25px;
    }
    
    .cta-box-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .cta-box-description {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .cta-box-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .cta-contact-box {
        padding: 35px 25px;
    }
    
    .cta-contact-title {
        font-size: 20px;
    }
    
    .cta-contact-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .cta-contact-btn {
        padding: 14px 40px;
        font-size: 15px;
    }
}

/* 小型モバイル対応 */
@media (max-width: 480px) {
    .cta-box-title br,
    .cta-contact-title br {
        display: none;
    }
}

/* ==========================================================================
   コンテンツ内画像 (全ページ共通)
   ========================================================================== */
.content-image-wrapper {
    width: 100%;
    margin: 30px 0 40px;
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .content-image-wrapper {
        margin: 20px 0 30px;
    }
}

/* ==========================================================================
   リニューアル版ヘッダー・フッター用CSS
   styles2025.css の末尾に追加してください
   ========================================================================== */

/* ==========================================================================
   リニューアル版ヘッダー
   ========================================================================== */
.site-header-renewal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-bg-white);
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header-renewal .header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-header-renewal .logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1001;
}

/* アクセシビリティ支援ツールバナー */
.header-banner {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
}

.header-banner img {
    display: block;
    width: 160px;
    height: 32px;
}

@media (max-width: 768px) {
    .header-banner {
        display: none;
    }
}

.site-header-renewal .logo {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.site-header-renewal .logo img,
.site-header-renewal .logo .custom-logo {
    display: block;
    max-height: 52px;
    width: auto;
    transition: opacity 0.2s;
}

.site-header-renewal .logo:hover img {
    opacity: 0.8;
}

/* カスタムロゴのリンク装飾を削除 */
.site-header-renewal .custom-logo-link {
    text-decoration: none;
    line-height: 0;
}

/* ==========================================================================
   リニューアル版フッター
   ========================================================================== */
.site-footer-renewal {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 0 0;
}

.site-footer-renewal .footer-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.site-footer-renewal .footer-brand h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--color-bg-white);
    font-weight: 700;
}

.site-footer-renewal .footer-brand p {
    color: var(--color-footer-text);
    line-height: 1.8;
    font-size: 14px;
}

.site-footer-renewal .footer-column h4 {
    margin-bottom: 20px;
    color: var(--color-bg-white);
    font-size: 16px;
    font-weight: 600;
}

.site-footer-renewal .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer-renewal .footer-column li {
    margin: 0;
    padding: 0;
    text-indent: 0;
}

.site-footer-renewal .footer-column a {
    color: var(--color-footer-text);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.2s;
}

.site-footer-renewal .footer-column a:hover {
    color: var(--color-bg-white);
}

/* フッター下部リンク */
.site-footer-renewal .footer-links {
    border-top: 1px solid rgba(156, 163, 175, 0.2);
    padding: 25px 0;
}

.site-footer-renewal .footer-links-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.site-footer-renewal .footer-links a {
    color: var(--color-footer-text);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.site-footer-renewal .footer-links a:hover {
    color: var(--color-bg-white);
}

/* フッター最下部 */
.site-footer-renewal .footer-bottom {
    border-top: 1px solid rgba(156, 163, 175, 0.2);
    padding: 25px 0;
    text-align: center;
}

.site-footer-renewal .footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--color-footer-text);
}

/* ページトップへ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.back-to-top-icon {
    font-size: 18px;
    line-height: 1;
}

.back-to-top-text {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
}

/* パンくずラッパー */
.breadcrumb-wrapper {
    background: var(--color-bg-gray);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb-wrapper .breadcrumb {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 13px;
}

/* ==========================================================================
   レスポンシブ対応（フッター）
   ========================================================================== */
@media (max-width: 1024px) {
    .site-footer-renewal .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .site-footer-renewal .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer-renewal {
        padding: 40px 0 0;
    }
    
    .site-footer-renewal .footer-content {
        grid-template-columns: 1fr;
        padding: 0 20px 30px;
        gap: 30px;
    }
    
    .site-footer-renewal .footer-brand {
        text-align: center;
    }
    
    .site-footer-renewal .footer-column {
        text-align: center;
    }
    
    .site-footer-renewal .footer-links-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   既存OnePressスタイルの上書き
   ========================================================================== */
/* 旧ヘッダーを非表示 */
.site-header:not(.site-header-renewal) {
    display: none !important;
}

/* 旧フッターを非表示 */
.site-footer:not(.site-footer-renewal) {
    display: none !important;
}

/* コンテンツエリアの調整 */
#content.site-content {
    border-top: none;
    margin-top: 0;
}

/* メインコンテナの調整 */
body .container {
    max-width: 1120px;
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 768px) {
    body .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* フロントページ用の調整 */
body.home #content.site-content {
    padding-top: 0;
}

body.home #content-inside {
    padding: 0;
    max-width: none;
}

body.home #primary {
    padding: 0 !important;
}

body.home .site-main {
    padding: 0;
}

/* ==========================================================================
   配下ページ用CSS
   styles2025.css の末尾に追加してください
   ========================================================================== */

/* ==========================================================================
   ページメイン共通
   ========================================================================== */
.page-main,
.single-main {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    min-height: 100vh;
}

.page-main .container,
.single-main .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .page-main,
    .single-main {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 40px;
    }
    
    .page-main .container,
    .single-main .container {
        padding: 0 20px;
    }
}

/* ==========================================================================
   ページヘッダー
   ========================================================================== */
.page-header {
    background: var(--color-bg-white);
    padding: 40px 40px 36px;
    margin-bottom: 40px;
    border-radius: 0;
    text-align: center;
}

.page-header::after {
    display: none;
}

.page-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.page-header .page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 12px 0 0;
}

.page-header .post-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 8px 0 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .page-header {
        padding: 35px 25px 30px;
        border-radius: 8px 8px 0 0;
    }
    
    .page-header .page-title {
        font-size: 26px;
    }
    
    .page-header .page-subtitle {
        font-size: 14px;
    }
    
    .page-header::after {
        width: 60px;
        height: 3px;
    }
}

.page-header .post-date {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}

/* アイキャッチ画像付きヘッダー */
.page-header-with-image {
    position: relative;
    padding: 80px 40px;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
}

.page-header-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.page-header-with-image .page-title {
    position: relative;
    z-index: 1;
    font-size: 36px;
    font-weight: 900;
    color: var(--color-text-heading);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .page-header .page-title,
    .page-header-with-image .page-title {
        font-size: 28px;
    }
    
    .page-header-with-image {
        padding: 50px 20px;
    }
}

/* ==========================================================================
   パンくずリスト
   ========================================================================== */
.breadcrumb-container {
    margin-bottom: 30px;
}

.breadcrumb-container .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    background: transparent;
}

.breadcrumb-container .breadcrumb-item {
    color: var(--color-text-secondary);
}

.breadcrumb-container .breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-container .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-container .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 8px;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   コンテンツセクション
   ========================================================================== */
.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-border);
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 80px;
    height: 3px;
    background: var(--color-primary);
}

.content-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid var(--color-primary);
}

.content-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-top: 30px;
    margin-bottom: 12px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text-body);
    margin-bottom: 20px;
}

.content-section ul,
.content-section ol {
    margin-bottom: 25px;
    padding-left: 0;
}

.content-section ul li,
.content-section ol li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-body);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    list-style: none;
    text-indent: 0;
}

.content-section ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--color-primary);
    font-weight: bold;
}

.content-section ol {
    counter-reset: ol-counter;
}

.content-section ol li::before {
    counter-increment: ol-counter;
    content: counter(ol-counter) ".";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* インフォボックス */
.content-section .info-box {
    background: var(--color-bg-gray);
    border-left: 4px solid var(--color-primary);
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.content-section .info-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-text-heading);
}

.content-section .info-box p {
    margin-bottom: 0;
}

/* テーブル */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.content-section table th,
.content-section table td {
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.content-section table th {
    background: var(--color-bg-gray);
    font-weight: 600;
    color: var(--color-text-heading);
}

.content-section table td {
    color: var(--color-text-body);
}

/* 画像 */
.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.content-section figure {
    margin: 30px 0;
}

.content-section figcaption {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .content-section h2 {
        font-size: 24px;
    }
    
    .content-section h3 {
        font-size: 20px;
    }
    
    .content-section p,
    .content-section ul li,
    .content-section ol li {
        font-size: 15px;
    }
}

/* ==========================================================================
   投稿サムネイル
   ========================================================================== */
.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   投稿メタ情報フッター
   ========================================================================== */
.post-meta-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.post-meta-footer .post-categories,
.post-meta-footer .post-tags {
    margin-bottom: 10px;
}

.post-meta-footer .meta-label {
    font-weight: 600;
    color: var(--color-text-body);
}

.post-meta-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

.post-meta-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   投稿ナビゲーション
   ========================================================================== */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: var(--color-bg-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-navigation a:hover {
    background: var(--color-bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-navigation .nav-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-heading);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }
}

/* ==========================================================================
   配下ページ用 統合CTAセクション調整
   ========================================================================== */
.page-main .unified-cta-section,
.single-main .unified-cta-section {
    margin-top: 60px;
    padding: 0;
    background: transparent;
}

.page-main .unified-cta-container,
.single-main .unified-cta-container {
    padding: 0;
}

/* ==========================================================================
   旧スタイルの上書き（配下ページ用）
   ========================================================================== */
/* 旧コンテナスタイルをリセット */
.page-main #content,
.single-main #content,
.page-main #content-inside,
.single-main #content-inside {
    padding: 0;
    max-width: none;
}

/* 旧セクションスタイルをリセット */
.page-main section,
.single-main section {
    padding: 0;
}

.page-main #main section h2,
.single-main #main section h2 {
    text-align: left;
    padding: 0;
    border-top: none;
    border-bottom: 3px solid var(--color-border);
    width: 100%;
    margin: 50px auto 20px;
}

.page-main #main section h3,
.single-main #main section h3 {
    font-size: 22px;
    padding-bottom: 0;
    border-bottom: none;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

.page-main #main section h3::before,
.single-main #main section h3::before {
    display: none;
}

/* リストスタイルのリセット */
.page-main #main li,
.single-main #main li {
    text-indent: 0;
    padding-left: 25px;
}

/* ==========================================================================
   WordPress既存クラス対応CSS
   styles2025.css の末尾に追加してください
   ========================================================================== */

/* ==========================================================================
   WordPressブロックエディタの見出し対応
   ========================================================================== */

/* h2 - メインセクション見出し */
.content-section h2.wp-block-heading,
.page-main h2.wp-block-heading,
.single-main h2.wp-block-heading,
#main h2.wp-block-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
line-height: 1.4 !important;
    border-top: none;
    border-bottom: 3px solid var(--color-border);
    position: relative;
    text-align: left;
    width: 100%;
}

.content-section h2.wp-block-heading::after,
.page-main h2.wp-block-heading::after,
.single-main h2.wp-block-heading::after,
#main h2.wp-block-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 80px;
    height: 3px;
    background: var(--color-primary);
}

/* 中央揃えの見出しの場合 */
.content-section h2.wp-block-heading.has-text-align-center,
.content-section h2.text-center,
.page-main h2.text-center,
.single-main h2.text-center,
#main h2.text-center {
    text-align: center;
}

.content-section h2.wp-block-heading.has-text-align-center::after,
.content-section h2.text-center::after,
.page-main h2.text-center::after,
.single-main h2.text-center::after,
#main h2.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* h3 - サブセクション見出し */
.content-section h3.wp-block-heading,
.page-main h3.wp-block-heading,
.single-main h3.wp-block-heading,
#main h3.wp-block-heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-left: 15px;
    padding-bottom: 0;
    border-left: 4px solid var(--color-primary);
    border-bottom: none;
    text-align: left;
}

.content-section h3.wp-block-heading::before,
.page-main h3.wp-block-heading::before,
.single-main h3.wp-block-heading::before,
#main h3.wp-block-heading::before {
    display: none;
}

/* h4 - 小見出し */
.content-section h4.wp-block-heading,
.page-main h4.wp-block-heading,
.single-main h4.wp-block-heading,
#main h4.wp-block-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-top: 30px;
    margin-bottom: 12px;
}

/* ==========================================================================
   Bootstrapマージンクラスの上書き（必要に応じて）
   ========================================================================== */

/* mb-5 などのマージンを維持しつつデザインを適用 */
.page-main h2.mb-5,
.single-main h2.mb-5,
#main h2.mb-5 {
    margin-bottom: 3rem !important;
}

/* ==========================================================================
   WordPressブロックエディタの段落・リスト対応
   ========================================================================== */

/* 段落ブロック */
.content-section p.wp-block-paragraph,
.page-main p.wp-block-paragraph,
.single-main p.wp-block-paragraph,
#main p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text-body);
    margin-bottom: 20px;
}

/* リストブロック */
.content-section ul.wp-block-list,
.content-section ol.wp-block-list,
.page-main ul.wp-block-list,
.page-main ol.wp-block-list,
.single-main ul.wp-block-list,
.single-main ol.wp-block-list,
#main ul,
#main ol {
    margin-bottom: 25px;
    padding-left: 0;
    list-style: none;
}

.content-section ul.wp-block-list li,
.content-section ol.wp-block-list li,
.page-main ul.wp-block-list li,
.page-main ol.wp-block-list li,
.single-main ul.wp-block-list li,
.single-main ol.wp-block-list li,
#main ul li,
#main ol li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-body);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    list-style: none;
    text-indent: 0;
}

.content-section ul.wp-block-list li::before,
.page-main ul.wp-block-list li::before,
.single-main ul.wp-block-list li::before,
#main ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--color-primary);
    font-weight: bold;
}

/* 順序付きリスト */
.content-section ol.wp-block-list,
.page-main ol.wp-block-list,
.single-main ol.wp-block-list,
#main ol {
    counter-reset: ol-counter;
}

.content-section ol.wp-block-list li::before,
.page-main ol.wp-block-list li::before,
.single-main ol.wp-block-list li::before,
#main ol li::before {
    counter-increment: ol-counter;
    content: counter(ol-counter) ".";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* ==========================================================================
   WordPressブロックエディタの画像・メディア対応
   ========================================================================== */

/* 画像ブロック */
.wp-block-image {
    margin: 30px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.wp-block-image figcaption {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 10px;
}

/* ==========================================================================
   WordPressブロックエディタのテーブル対応
   ========================================================================== */

.wp-block-table {
    margin: 25px 0;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.wp-block-table th {
    background: var(--color-bg-gray);
    font-weight: 600;
    color: var(--color-text-heading);
}

.wp-block-table td {
    color: var(--color-text-body);
}

/* ==========================================================================
   WordPressブロックエディタの引用・ボックス対応
   ========================================================================== */

/* 引用ブロック */
.wp-block-quote {
    background: var(--color-bg-gray);
    border-left: 4px solid var(--color-primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.wp-block-quote p {
    margin-bottom: 10px;
    font-style: italic;
}

.wp-block-quote cite {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-style: normal;
}

/* グループブロック（ボックス風） */
.wp-block-group.has-background {
    padding: 25px 30px;
    border-radius: 8px;
    margin: 30px 0;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 768px) {
    .content-section h2.wp-block-heading,
    .page-main h2.wp-block-heading,
    .single-main h2.wp-block-heading,
    #main h2.wp-block-heading {
        font-size: 24px;
    }
    
    .content-section h3.wp-block-heading,
    .page-main h3.wp-block-heading,
    .single-main h3.wp-block-heading,
    #main h3.wp-block-heading {
        font-size: 20px;
    }
    
    .content-section p.wp-block-paragraph,
    .page-main p.wp-block-paragraph,
    .single-main p.wp-block-paragraph,
    #main p,
    .content-section ul.wp-block-list li,
    .content-section ol.wp-block-list li,
    #main ul li,
    #main ol li {
        font-size: 15px;
    }
}

/* ==========================================================================
   WordPress メニュー対応CSS
   styles2025.css の末尾に追加してください
   ========================================================================== */

/* ==========================================================================
   リニューアルメニュー基本スタイル
   ========================================================================== */
.renewal-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.renewal-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    text-indent: 0;
}

.renewal-menu li::before {
    display: none;
}

.renewal-menu > li > a {
    text-decoration: none;
    color: var(--color-text-body);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
    display: block;
    padding: 10px 0;
}

.renewal-menu > li > a:hover {
    color: var(--color-primary);
}

/* サブメニューあり表示 */
.renewal-menu > li.has-dropdown > a::after {
    content: " ▼";
    font-size: 10px;
    margin-left: 5px;
}

/* ドロップダウンメニュー */
.renewal-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: block; /* Bootstrap の .dropdown-menu { display: none } を上書き */
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    min-width: 280px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    margin-top: 10px;
}

.renewal-menu .dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-body);
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.renewal-menu .dropdown-menu a:hover {
    background: var(--color-bg-gray);
    color: var(--color-primary);
}

.renewal-menu li.has-dropdown:hover .dropdown-menu,
.renewal-menu li.has-dropdown.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ドロップダウントグルボタン（デスクトップでは非表示） */
.renewal-menu .dropdown-toggle {
    display: none;
}


/* ==========================================================================
   モバイル対応（768px以下）
   ========================================================================== */
@media (max-width: 768px) {
    .renewal-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .renewal-menu li {
        border-bottom: none;
    }

    .renewal-menu > li > a {
        padding: 14px 20px;
        font-size: 16px;
    }

    /* サブメニューあり：トグル不要、常時展開 */
    .renewal-menu > li.has-dropdown > a {
        padding-right: 20px;
    }

    .renewal-menu > li.has-dropdown > a::after {
        display: none;
    }

    /* ドロップダウントグルボタン：非表示 */
    .renewal-menu .dropdown-toggle {
        display: none;
    }

    /* サブメニュー常時展開 */
    .renewal-menu .dropdown-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: auto;
        padding: 0;
        background: transparent;
        max-height: none;
        overflow: visible;
        margin-top: 0;
    }

    .renewal-menu .dropdown-menu a {
        padding: 10px 20px 10px 32px;
        font-size: 14px;
        color: var(--color-text-body);
    }

    /* お問い合わせボタンの左余白 */
    .renewal-menu a[href*="/inquiry"] {
        margin-left: 20px;
    }
}

/* ==========================================================================
   タブレット対応（1024px以下）
   ========================================================================== */
@media (max-width: 1024px) {
    .renewal-menu {
        gap: 25px;
    }
    
    .renewal-menu > li > a {
        font-size: 14px;
    }
}

/* ==========================================================================
   配下ページのレイアウト修正
   ========================================================================== */

/* CTAセクションの回り込み解除 */
.page-main .unified-cta-section,
.single-main .unified-cta-section {
    clear: both;
    width: 100%;
    float: none;
}

/* コンテンツエリアの回り込み解除 */
.page-main #primary,
.single-main #primary {
    float: none;
    width: 100%;
}

/* コンテナ内のクリアフィックス */
.page-main .container::after,
.single-main .container::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Bootstrap の text-center を上書き（見出し用）
   ========================================================================== */

/* 見出しの text-center を左寄せで上書き */
.page-main h1.text-center,
.page-main h2.text-center,
.page-main h3.text-center,
.page-main h4.text-center,
.single-main h1.text-center,
.single-main h2.text-center,
.single-main h3.text-center,
.single-main h4.text-center,
#main h1.text-center,
#main h2.text-center,
#main h3.text-center,
#main h4.text-center,
.entry-content h1.text-center,
.entry-content h2.text-center,
.entry-content h3.text-center,
.entry-content h4.text-center {
    text-align: left !important;
}

/* 中央寄せにしたい場合は has-text-align-center を使う */
.has-text-align-center {
    text-align: center !important;
}

/* 見出し下線装飾も左寄せにする */
.page-main h2.text-center::after,
.single-main h2.text-center::after,
#main h2.text-center::after,
.entry-content h2.text-center::after,
.content-section h2.text-center::after,
h2.wp-block-heading.text-center::after {
    left: 0 !important;
    transform: none !important;
}

/* ==========================================================================
   本文リンクのアクセシビリティ対応
   ========================================================================== */

/* 本文内のリンクに下線と色を設定（ボタン・CTAは除外） */
.page-main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc),
.page-main .content-section a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc),
.single-main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc),
.single-main .content-section a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc),
#main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc),
#main p a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc),
.content-section p a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc) {
    color: #0000CC !important;
    text-decoration: underline !important;
}

/* ホバー時のスタイル（ボタン・CTAは除外） */
.page-main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc):hover,
.page-main .content-section a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc):hover,
.single-main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc):hover,
.single-main .content-section a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc):hover,
#main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc):hover,
#main p a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc):hover,
.content-section p a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):not(.btn-ifc):hover {
    color: #000080 !important;
}

/* 訪問済みリンク
   :not() でGutenbergボタン・カスタムボタンクラスを除外する */
.page-main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):visited,
.page-main .content-section a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):visited,
.single-main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):visited,
.single-main .content-section a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):visited,
#main .entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):visited,
#main p a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):visited,
.content-section p a:not(.wp-block-button__link):not(.wp-element-button):not(.btn):not(.cta-btn):visited {
    color: #551A8B !important;
}

/* ボタンやナビゲーションには装飾を適用しない */
.page-main .entry-content a.btn,
.page-main .entry-content a.cta-btn,
.page-main .entry-content a.interactive-btn,
.single-main .entry-content a.btn,
#main a.btn {
    text-decoration: none !important;
}

/* =========================================
   サイト共通ボタン：紺背景・白文字（btn-ifc）
   使い方：WordPressエディターで「追加CSSクラス」に btn-ifc を入力する
   ※ WordPress は div に btn-ifc クラスを付けるため、内部の <a> を対象にする
   ========================================= */
.btn-ifc,
a.btn-ifc:link,
a.btn-ifc:visited,
a.btn-ifc:hover,
a.btn-ifc:active {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1f378d;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}
.btn-ifc:hover,
a.btn-ifc:hover {
    background-color: #2b4c9f;
}
/* WordPress が <div class="btn-ifc"> に付けた場合、内部 <a> を対象にするルール */
/* #main（IDセレクター）を使い、紫visited上書きルール（特異度71）より高い特異度を確保する */
.btn-ifc a,
.btn-ifc a:link,
.btn-ifc a:visited,
.btn-ifc a:hover,
.btn-ifc a:active,
#main .btn-ifc a,
#main .btn-ifc a:link,
#main .btn-ifc a:visited,
#main .btn-ifc a:hover,
#main .btn-ifc a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}
.btn-ifc a:hover,
#main .btn-ifc a:hover {
    opacity: 0.9;
}

/* =========================================
   Gutenbergボタンブロックの文字色統一
   未訪問・訪問済み・ホバーすべて白文字に固定
   （WordPressのclassic-theme-stylesと同方針。
     他のスタイルがcolor:inheritで上書きするのを防ぐ）
   ========================================= */
.wp-block-button__link,
.wp-element-button {
    color: #fff !important;
    background-color: #1f378d !important; /* btn-ifcと同じ紺色をデフォルトに */
}
.wp-block-button__link:visited,
.wp-element-button:visited {
    color: #fff !important;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
    color: #fff !important;
    opacity: 0.85;
}

/* =========================================
   .service-card__btn ボタンスタイル
   サービスカード内のリンクをボタン化（紺背景・白文字）
   ========================================= */
.service-card__btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    margin-top: 12px;
}
.service-card__btn:hover {
    background: var(--color-secondary);
    color: #fff;
}
.service-card__btn:visited {
    color: #fff !important;
}

/* =========================================
   ヘッダーお問い合わせボタン
   ========================================= */
/* styles2025.css に追加 */
.renewal-menu a[href*="/inquiry"] {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 28px !important;
    background: #E87B35;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    border: 2px solid #E87B35;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(232, 123, 53, 0.25);
}

.renewal-menu a[href*="/inquiry"]:hover {
    background: #D96A24;
    border-color: #D96A24;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(232, 123, 53, 0.35);
    transform: translateY(-2px);
}

.renewal-menu a[href*="/inquiry"]:before {
    content: '✉';
    font-style: normal;
    font-size: 16px;
}

/* =========================================
   パンくずリスト - ヘッダー直下配置
   ========================================= */
.breadcrumb-wrapper {
    background: var(--color-bg-gray);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    margin-top: var(--header-height); /* ヘッダーの高さ分のマージン */
}

.breadcrumb-wrapper .breadcrumb {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.breadcrumb-wrapper .breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-wrapper .breadcrumb a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 10px 0;
    }
    
    .breadcrumb-wrapper .breadcrumb {
        padding: 0 20px;
        font-size: 12px;
    }
}

/* ========================================
   セクションタイトルのスタイル強化
   ======================================== */

.top-section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 900;
    color: var(--color-text-heading);
    position: relative;
    z-index: 1;
    /* 白い縁取りで可読性向上（強化版） */
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 1),
        0 0 12px rgba(255, 255, 255, 1),
        2px 2px 6px rgba(255, 255, 255, 1),
        -2px -2px 6px rgba(255, 255, 255, 1),
        2px -2px 6px rgba(255, 255, 255, 1),
        -2px 2px 6px rgba(255, 255, 255, 1),
        3px 3px 8px rgba(255, 255, 255, 0.9),
        -3px -3px 8px rgba(255, 255, 255, 0.9);
}

/* デザイン性のある下線 */
.top-section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1F378D 0%, #2B4C9F 50%, #1F378D 100%);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(31, 55, 141, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .top-section-title {
        font-size: 28px;
    }
    
    .top-section-title::after {
        width: 60px;
        height: 3px;
        margin: 15px auto 0;
    }
}


/* ========================================
   ヒーローセクション - 背景デザイン
   ======================================== */

.hero-section {
    margin-top: 0;
}

.hero-section > .hero-container {
    padding-top: 0;
    margin-top: 0;
}

.hero-header {
    padding-top: 0;
    margin-top: 0;
}

.hero-section .hero-title {
    margin-top: 0;
}

.hero-header {
    display: none;
}

/* ==========================================================================
   企業情報ページ - ページ内ナビゲーションリストマーク打ち消し
   ========================================================================== */
#main .about-page-nav li::before,
#main .about-page-nav li::after,
.content-section .about-page-nav li::before,
.content-section .about-page-nav li::after {
    content: none !important;
    display: none !important;
}
#main .about-page-nav,
#main .about-page-nav li,
.content-section .about-page-nav,
.content-section .about-page-nav li {
    list-style: none !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}
.about-page-nav {
    background: transparent !important;
}

/* ==========================================================================
   事例紹介ページ用スタイル
   ========================================================================== */

.case-study-section {
    padding: 60px 0 80px;
}

.case-study-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--color-text-heading);
    margin-bottom: 20px;
    text-align: center;
}

.page-intro {
    font-size: 16px;
    color: var(--color-text-body);
    text-align: center;
    margin-bottom: 60px;
}

/* サービスブロック */
.case-service-block {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    transition: box-shadow 0.3s ease;
}

.case-service-block:hover {
    box-shadow: 0 4px 12px rgba(31, 55, 141, 0.1);
}

/* サービスヘッダー（アイコン + タイトル横並び） */
.case-service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-bg-gray);
}

.case-service-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-service-title {
    flex: 1;
}

.case-service-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 8px;
    line-height: 1.4;
    margin-top: 16px;
}

.case-service-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* 実績リスト */
.case-list {
    padding-left: 63px;
}

.case-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-list li {
    font-size: 15px;
    color: var(--color-text-body);
    line-height: 1.8;
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--color-bg-gray);
}

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

/* リストマーカー */
.case-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
    
    .case-service-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .case-service-icon {
        width: 48px;
        height: 48px;
        margin: 0;
    }
    
    .case-service-title {
        text-align: left;
    }
    
    .case-service-title h2 {
        font-size: 20px;
    }
    
    .case-list {
        padding-left: 0;
    }
    
    .case-list li {
        font-size: 14px;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .case-study-container {
        padding: 0 20px;
    }

    .case-service-block {
        padding: 20px;
    }

    .page-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   アクセシビリティ：フォーカス可視性（WCAG 2.2 AA準拠）
   style.css の a:focus { outline: none } を上書き
   キーボード操作時のみフォーカスリングを表示（マウス操作には影響しない）
   ========================================================================== */
a:focus-visible,
button:focus-visible,
[href]:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 3px !important;
}

/* サービスカード・ボタン類は角丸に合わせる */
.service-card:focus-visible,
.cta-btn:focus-visible,
.cert-btn:focus-visible,
.case-btn:focus-visible,
.more-link:focus-visible,
.nav-item > a:focus-visible,
.dropdown-menu a:focus-visible {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 3px !important;
    border-radius: 4px;
}