/**
 * Yuibiz Main Stylesheet
 * 
 * カラーパレット:
 * - メインカラー: #0A3D62 (濃紺)
 * - アクセントカラー: #386641 (深緑)
 * - ベースカラー: #FFFFFF (白), #F8F9FA (ごく薄いグレー)
 * - テキストカラー: #212529 (ダークグレー), #6C757D (ミディアムグレー)
 * 
 * フォント: Noto Sans JP
 */

/* ========================================
   リセット・基本設定
======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}

a {
    color: #0A3D62;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #386641;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   タイポグラフィ
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ========================================
   レイアウト
======================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* スクリーンリーダーテキスト */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.skip-link:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
    padding: 15px 20px;
    background-color: #0A3D62;
    color: #FFFFFF;
}

/* ========================================
   ボタン
======================================== */

.btn {
    display: inline-block;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(180deg, #34C759 0%, #30B350 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
    border: none;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #30B350 0%, #2DA44E 100%);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(52, 199, 89, 0.3);
}

.btn-search {
    background: #0A3D62;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(10, 61, 98, 0.2);
}

.btn-search:hover {
    background: #0D47A1;
    box-shadow: 0 3px 8px rgba(10, 61, 98, 0.3);
    transform: translateY(-1px);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(10, 61, 98, 0.2);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #0A3D62;
    border: 2px solid #0A3D62;
}

.btn-secondary:hover {
    background-color: #0A3D62;
    color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    color: #0A3D62;
    border: 2px solid #0A3D62;
}

.btn-outline:hover {
    background-color: #0A3D62;
    color: #FFFFFF;
}

.btn-large {
    padding: 15px 36px;
    font-size: 17px;
    border-radius: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: #6C757D;
    text-decoration: underline;
    font-size: 14px;
}

.btn-link:hover {
    color: #0A3D62;
}

/* ========================================
   ヘッダー
======================================== */

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

/* RFP訴求バナー */
.rfp-banner {
    display: flex;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* バナーカラーバリエーション */
.rfp-banner-orange {
    background: linear-gradient(to right, #F7931E, #E67E00);
}

.rfp-banner-orange:hover {
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
    transform: translateY(-1px);
}

.rfp-banner-orange .rfp-banner-button {
    color: #E67E00;
}

.rfp-banner-orange:hover .rfp-banner-button {
    background-color: #FFF5E6;
}

.rfp-banner-pink {
    background: linear-gradient(to right, #E91E63, #C2185B);
}

.rfp-banner-pink:hover {
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    transform: translateY(-1px);
}

.rfp-banner-pink .rfp-banner-button {
    color: #C2185B;
}

.rfp-banner-pink:hover .rfp-banner-button {
    background-color: #FCE4EC;
}

.rfp-banner-green {
    background: linear-gradient(to right, #4CAF50, #388E3C);
}

.rfp-banner-green:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

.rfp-banner-green .rfp-banner-button {
    color: #388E3C;
}

.rfp-banner-green:hover .rfp-banner-button {
    background-color: #E8F5E9;
}

.rfp-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rfp-banner-message {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
}

.rfp-banner-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.rfp-banner-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rfp-banner-main {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rfp-banner-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
}

.rfp-banner-cta {
    flex-shrink: 0;
}

.rfp-banner-button {
    display: inline-block;
    background-color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

/* デスクトップ版バナー */
.rfp-banner-desktop {
    margin-left: auto;
    flex-shrink: 0;
}

/* モバイル版バナー */
.rfp-banner-mobile {
    display: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    .rfp-banner-desktop {
        margin-left: 16px;
    }
    
    .rfp-banner-main {
        font-size: 13px;
    }
    
    .rfp-banner-sub {
        font-size: 9px;
    }
}

@media screen and (max-width: 768px) {
    /* デスクトップ版バナーを非表示 */
    .rfp-banner-desktop {
        display: none;
    }
    
    /* モバイル版バナーを表示 */
    .rfp-banner-mobile {
        display: flex;
        margin: 0 0 24px 0;
        width: 100%;
        align-self: center;
    }
    
    .rfp-banner-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    .rfp-banner-message {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .rfp-banner-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .rfp-banner-main {
        font-size: 14px;
        white-space: normal;
        text-align: center;
        overflow: visible;
        text-overflow: clip;
    }
    
    .rfp-banner-sub {
        font-size: 10px;
        text-align: center;
    }
    
    .rfp-banner-cta {
        width: 100%;
    }
    
    .rfp-banner-button {
        display: block;
        text-align: center;
        width: 100%;
    }
}

.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* スマホビューでのヘッダー調整 */
@media screen and (max-width: 768px) {
    .site-header {
        position: relative;
    }
    
    .header-container {
        padding: 16px 20px;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 16px;
    }
    
    .site-branding {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .site-logo-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .site-text {
        order: -1;
    }
    
    .site-tagline {
        font-size: 12px;
    }
    
    .main-navigation {
        display: none; /* ハンバーガーメニュー時は非表示 */
    }
    
    .menu-toggle {
        position: absolute;
        top: 16px;
        right: 20px;
    }
    
    .rfp-banner-mobile {
        margin-bottom: 16px;
    }
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo {
    height: 44px;
    width: auto;
    display: block;
}

.site-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-tagline {
    font-size: 13px;
    font-weight: 500;
    color: #6C757D;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #0A3D62;
    line-height: 1.2;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.primary-menu a {
    color: #212529;
    font-weight: 700;
    padding: 8px 0;
}

.primary-menu a:hover {
    color: #0A3D62;
}

.menu-toggle {
    display: none;
}

/* モバイルナビゲーション */
@media (max-width: 768px) {
    .site-logo {
        height: 40px;
    }
    
    .site-tagline {
        font-size: 11px;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 16px;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .header-cta {
        margin-top: 16px;
    }
}

/* ========================================
   フッター
======================================== */

.site-footer {
    color: #FFFFFF;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 上段: リンクセクション（グレー背景） */
.footer-links-section {
    background-color: #F5F5F7;
    color: #333333;
    padding: 48px 0;
}

.footer-links-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    text-align: center;
    border-bottom: 2px solid #F7931E;
}

/* フッターナビゲーション */
.footer-navigation {
    display: flex;
    flex-direction: column;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    color: #555555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: #F7931E;
}

/* ブログリンク */
.footer-blog {
    display: flex;
    flex-direction: column;
}

.footer-blog-posts {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-blog-post {
    display: block;
}

.footer-blog-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #555555;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
}

.footer-blog-post-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.footer-blog-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #F5F5F5;
}

.footer-blog-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.footer-blog-post-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-blog-post-link:hover .footer-blog-post-title {
    color: #F7931E;
}

.footer-blog-post-date {
    color: #999999;
    font-size: 12px;
    margin-top: auto;
}

/* 下段: 会社情報セクション（ダーク背景） */
.footer-bottom-section {
    background-color: #0A3D62;
    color: #FFFFFF;
    padding: 40px 0 24px;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

.footer-info {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.footer-site-name {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-company-link {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.footer-company-link a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-company-link a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright p {
    margin: 0;
}

/* ========================================
   タグ・バッジ
======================================== */

.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    background-color: #F8F9FA;
    color: #6C757D;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag-large {
    font-size: 14px;
    padding: 8px 16px;
}

.tag-country {
    background-color: #E3F2FD;
    color: #0A3D62;
}

.country-flag {
    font-size: 1.1em;
    line-height: 1;
    vertical-align: middle;
}

.tag-field {
    background-color: #E8F5E9;
    color: #386641;
}

.tag-tech {
    background-color: #FFF3E0;
    color: #E65100;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #386641;
    margin-right: 16px;
    margin-bottom: 8px;
}

/* ========================================
   セクション
======================================== */

section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #0A3D62;
}

.section-title-small {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: #0A3D62;
}

.section-subtitle {
    text-align: center;
    color: #6C757D;
    margin-bottom: 48px;
    font-size: 18px;
}

/* ========================================
   パンくずリスト
======================================== */

.breadcrumb {
    background: linear-gradient(135deg, #F5F6F8 0%, #EAEDF1 100%);
    padding: 16px 0;
    border-bottom: 1px solid rgba(10, 61, 98, 0.08);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: #6C757D;
}

.breadcrumb-item.active {
    color: #6C757D;
}

/* ========================================
   フォーム
======================================== */

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group p {
    margin: 0 !important;
}

.form-group br {
    display: none !important;
}

.form-checkbox-group .form-group label,
.form-group.form-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
}

.form-control,
.filter-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.filter-input:focus {
    outline: none;
    border-color: #0A3D62;
    box-shadow: 0 4px 12px rgba(10, 61, 98, 0.15);
    transform: translateY(-1px);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: #D32F2F;
}

/* ========================================
   モーダル
======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 50%, #F8F9FA 100%);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(10, 61, 98, 0.1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #6C757D;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: #212529;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 16px;
    color: #0A3D62;
    font-weight: 700;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 3px solid #0A3D62;
    background: linear-gradient(135deg, #0A3D62 0%, #386641 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-description {
    color: #495057;
    margin-bottom: 12px;
    text-align: center;
    font-size: 15px;
    line-height: 1.7;
}

.modal-saved-notice {
    color: #386641;
    background-color: #E8F5E9;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-clear-btn {
    background-color: #FFFFFF;
    color: #C62828;
    border: 1px solid #C62828;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-clear-btn:hover {
    background-color: #C62828;
    color: #FFFFFF;
}

/* ========================================
   Contact Form 7 スタイル
======================================== */

.wpcf7 p {
    margin-bottom: 16px;
}

.wpcf7 p:last-of-type {
    margin-bottom: 0;
}

.wpcf7 .form-group {
    margin-bottom: 16px;
}

.wpcf7 .form-control {
    width: 100%;
}

.wpcf7 label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.wpcf7 label .required {
    color: #D32F2F;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CED4DA;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #0A3D62;
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 120px;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #D32F2F;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    margin: 24px 0 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: none !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    animation: slideDown 0.4s ease-out !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CF7 v6+ 成功メッセージ */
.wpcf7 form.sent .wpcf7-response-output {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%) !important;
    color: #1B5E20 !important;
    border: none !important;
    padding: 24px 28px 24px 80px !important;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    font-weight: 500 !important;
}

.wpcf7 form.sent .wpcf7-response-output::before {
    content: "✓" !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
    line-height: 40px !important;
    text-align: center !important;
}

/* CF7 v6+ エラーメッセージ */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    background: linear-gradient(135deg, #FFEBEE 0%, #FCE4EC 100%) !important;
    color: #B71C1C !important;
    border: none !important;
    padding: 24px 28px 24px 80px !important;
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    font-weight: 500 !important;
}

.wpcf7 form.invalid .wpcf7-response-output::before,
.wpcf7 form.failed .wpcf7-response-output::before,
.wpcf7 form.aborted .wpcf7-response-output::before {
    content: "!" !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #F44336 0%, #E57373 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3) !important;
    line-height: 40px !important;
    text-align: center !important;
}

.wpcf7 .wpcf7-spinner {
    margin: 0 0 0 10px;
}

.wpcf7 .form-checkbox-group {
    margin-bottom: 24px;
    padding: 0;
}

.wpcf7 .form-checkbox-group p {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.wpcf7 .form-checkbox-group label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 400 !important;
    cursor: pointer;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.6;
}

.wpcf7 .form-checkbox-group br {
    display: none !important;
}

.wpcf7 .form-checkbox-group .wpcf7-form-control-wrap {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcf7 .form-checkbox-group .wpcf7-list-item {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.wpcf7 .form-checkbox-group input[type="checkbox"] {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    accent-color: #0A3D62;
    vertical-align: middle;
    position: relative;
    top: 0;
}

.wpcf7 .form-checkbox-group .wpcf7-list-item-label {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: inline;
}

.wpcf7 .form-checkbox-group .checkbox-text {
    font-size: 14px;
    line-height: 1.6;
    display: inline;
}

.wpcf7 .form-checkbox-group .required {
    color: #D32F2F;
    margin-left: 4px;
}

.wpcf7 .form-checkbox-group a {
    color: #0A3D62;
    text-decoration: underline;
}

.wpcf7 .form-checkbox-group a:hover {
    color: #386641;
}

.wpcf7 .ajax-loader {
    display: inline-block;
    margin-left: 10px;
}

/* Back to Top ボタン */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background-color: #0A3D62;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #386641;
    transform: translateY(-4px);
}

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

/* タブレット対応 */
@media (max-width: 900px) {
    .footer-blog-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    section {
        padding: 48px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 24px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .site-footer {
        margin-top: 48px;
    }
    
    .footer-links-section {
        padding: 32px 0;
    }
    
    .footer-section-title {
        font-size: 16px;
    }
    
    .footer-blog-posts {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer-blog-post-link {
        padding: 10px;
    }
    
    .footer-blog-post-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .footer-blog-post-title {
        font-size: 13px;
    }
    
    .footer-blog-post-date {
        font-size: 11px;
    }
    
    .footer-bottom-section {
        padding: 32px 0 20px;
    }
    
    .footer-site-name {
        font-size: 20px;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

