/* ============================================
   はりま産学交流会 - リブランディング
   ロゴの赤と青を基調としたデザイン
============================================ */
:root {
    /* プライマリカラー（青系） */
    --primary-blue: #284a94;
    --primary-blue-light: #3d5fb8;
    --primary-blue-dark: #1a3366;
    
    /* セカンダリカラー（赤系） */
    --accent-red: #b82b2c;
    --accent-red-light: #d63f40;
    --accent-red-dark: #8a2122;
    
    /* 旧カラー（互換性のため残す） */
    --old-blue: #003d7c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
    font-size: 16px;
    letter-spacing: 0.03em;
}

/* ============================================
   ヘッダー
============================================ */
header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    height: 100px;
}

header:hover {
    box-shadow: 0 2px 8px rgba(40, 74, 148, 0.08);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   ヒーローセクション
============================================ */
.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ボタン
============================================ */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: var(--primary-blue);
    background-size: 200% 200%;
    font-weight: 600;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

/* コンテストバナー以降のプライマリボタン */
.contest-banner .btn-primary,
.container .btn-primary,
.cta-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
}

.contest-banner .btn-primary:hover,
.container .btn-primary:hover,
.cta-section .btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 4px 12px rgba(40, 74, 148, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-blue);
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* コンテナ内やホワイト背景での btn-secondary */
.container .btn-secondary,
.contact-section .btn-secondary,
.cta-section .btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    backdrop-filter: none;
}

.container .btn-secondary:hover,
.contact-section .btn-secondary:hover,
.cta-section .btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ============================================
   メインコンテンツ
============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 3rem;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

.section-title-center {
    text-align: center;
}

/* ============================================
   カードグリッド
============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.card{
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tcard {
    background: white;
    padding: 1rem; 
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    border: none; 
    max-width: 900px;
    margin: 2rem auto; 
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.tcard tr {
    border-bottom: 1px solid #e5e5e5;
}

.tcard tr:last-child {
    border-bottom: none; /* 最後の行の下線は消す */
}

.tcard td {
    padding: 1rem;
}

.tcard td:first-child {
    font-weight: 600;
    width: 150px;
}

.committee-title {
    color: #003d7c;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.committee-role {
    margin-bottom: 1rem;
    color: #666;
}

.contact-info-card {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    padding: 2rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.contact-info-card h3 {
    color: #003d7c;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #444;
}

.contact-icon {
    font-size: 1.1rem;
}

.note-text {
    text-align: center;
    color: #666;
    margin-top: 2rem;
    font-size: 0.875rem;
}

.cta-section {
    background: #f0f4f8;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.cta-section h2 {
    color: #003d7c;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    color: #444;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .tcard table, 
    .tcard tbody, 
    .tcard tr, 
    .tcard td {
        display: block;
        width: 100% !important;
    }
    
    .tcard tr {
        padding: 1rem 0;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .tcard tr:last-child {
        border-bottom: none;
    }
    
    .tcard td {
        padding: 0.25rem 1rem;
    }
    
    .tcard td:first-child {
        color: #003d7c;
        font-size: 0.9rem;
        padding-top: 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.acard{
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 3rem;
}

.hcard{
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.hcard .full-link {
    text-decoration: none !important;
    color: inherit;
}

.hcard:hover {
    transform: translateY(-4px);
}

.hcard .full-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-header {
    background: #e3f2fd;
    padding: 2rem;
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.3s ease;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

.card-body {
    padding: 2rem;
}

.card-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.9375rem;
}

/* ============================================
   イベントハイライト（次回イベント案内）
============================================ */
.event-highlight {
    background: url('/files/uploads/20260512_sozoreikai202606_ページ_1.jpg') center center no-repeat;
    background-size: contain;
    border: 2px solid var(--primary-blue);
    padding: 3rem;
    margin: 0 auto;
    max-width: 900px;
    position: relative;
}

.event-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.event-highlight > * {
    position: relative;
    z-index: 1;
}

.event-highlight-title {
    font-size: 1.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.event-highlight-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-highlight-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 100px;
    font-size: 0.9375rem;
}

.top-info-value {
    color: #333;
    font-size: 0.9375rem;
}

.event-highlight-cta {
    text-align: center;
    padding-top: 1rem;
}

/* ============================================
   実績セクション
============================================ */
.achievements {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f7ff 100%);
    padding: 5rem 2rem;
    margin: 5rem 0;
}

/* ============================================
   連携組織
============================================ */
.partner-category {
    margin-bottom: 3rem;
}

.partner-category-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #e5e5e5;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.timeline-tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #e5e5e5;
    letter-spacing: 0.05em;
}

.tags a {
    text-decoration: none;
}

.tag:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 61, 124, 0.15);
}

.cta-box {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    text-align: center;
}

.cta-box p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

/* ============================================
   CTAセクション
============================================ */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

.cta-section p {
    font-size: 1.0625rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ============================================
   フッター
============================================ */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: #999;
    line-height: 1.8;
    font-size: 0.875rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }

    .contest-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem;
        border-bottom: 1px solid #e5e5e5;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a::after {
        display: none;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .logo-image {
        height: 35px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .event-highlight {
        padding: 2rem;
    }

    .event-highlight-title {
        font-size: 1.5rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .info-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 30px;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .contest-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .event-highlight {
        padding: 1.5rem;
    }

    .event-highlight-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   ヒーローセクション - シンプル版
============================================ */
.hero-simple {
    position: relative;
    height: 500px;
    background-image: url('/BcThemeSample/img/hero-industry-academic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 61, 124, 0.75) 0%,
        rgba(0, 74, 153, 0.65) 50%,
        rgba(0, 61, 124, 0.75) 100%
    );
}

.hero-content-simple {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-content-simple h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero-subtitle-simple {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 0.05em;
}

/* ============================================
   メニューセクション - コンパクト版
============================================ */
.menu-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.menu-grid-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.menu-card-compact {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.menu-card-compact a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.menu-card-compact:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(40, 74, 148, 0.1);
    transform: translateY(-2px);
}

.menu-card-compact h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.menu-card-compact p {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.menu-card-compact a {
    text-decoration: none; 
    color: inherit; 
    display: block;
}

/* ============================================
   イベントセクション
============================================ */
.event-section {
    padding: 2rem 2rem;
}

/* ============================================
   コンテストセクション - コンパクト版
============================================ */
.contest-section {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.contest-content-compact {
    max-width: 1200px;
    margin: 0 auto;
}

.contest-header {
    margin-bottom: 1rem;
}

.contest-label {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contest-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.contest-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contest-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.9rem;
    color: #333;
}

.contest-cta {
    text-align: left;
}

/* ============================================
   Aboutセクション
============================================ */
.about-section {
    padding: 2rem 2rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

/* ============================================
   活動内容セクション
============================================ */
.activities-section {
    padding: 2rem 2rem;
    background: #f8f9fa;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.activity-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative !important;
}

.activity-card a.stretched-link::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* 他の要素より上に持ってくる */
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 61, 124, 0.15);
}

.activity-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-card h3,
.activity-card p {
    padding: 0 1.5rem;
}

.activity-card h3 {
    padding-top: 1.5rem;
}

.activity-card p {
    padding-bottom: 1.5rem;
}

.activity-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.activity-title a.stretched-link {
    color: inherit !important;   
    text-decoration: none !important;
    font-size: inherit !important;    
    font-weight: inherit !important;     
}

.activity-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

/* ============================================
   メリットセクション
============================================ */
.top-benefits-section {
    padding: 2rem 0;
}

.top-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e3f2fd;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    font-size: 0.9rem;
    color: #666;
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 600;
}

/* ============================================
   会員企業セクション
============================================ */
.members-section {
    padding: 2rem 2rem;
}

.section-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ============================================
   連携組織セクション
============================================ */
.partners-section-wrapper {
    position: relative;
    background-image: url('/BcThemeSample/img/himeji-castle-modern.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.partners-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.partners-section {
    position: relative;
    z-index: 1;
    padding: 2rem 2rem;
}

/* ============================================
   お問い合わせセクション
============================================ */
.contact-section {
    padding: 2rem 0;
}

.contact-info-grid {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 80px;
}

.contact-value {
    color: #333;
}

/* ============================================
   レスポンシブ対応
============================================ */
@media (max-width: 1024px) {
    .menu-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-simple {
        height: 400px;
    }
    
    .hero-content-simple h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle-simple {
        font-size: 0.95rem;
    }
    
    .menu-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .contest-details {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.syosai-box {
    text-align: center;
    margin-bottom: 50px;
}

#contest {
    scroll-margin-top: 100px; /* ヘッダーの高さ + 少しの余白 */
}

.bc-update-info {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   新規ページ用スタイル
============================================ */

/* パンくずリスト */
.breadcrumb {
    background: #f8f9fa;
    padding: 0 2rem;
    margin-top: 0;
    height: 100px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.breadcrumb a {
    color: #003d7c;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ページヒーロー */
.page-hero {
    background: linear-gradient(135deg, #003d7c, #0052a3);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 100px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* イントロボックス */
.intro-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid #003d7c;
}

.intro-box p {
    margin: 0;
    line-height: 1.8;
}

/* タイムライン */
.timeline-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #003d7c, #0052a3);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #003d7c;
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #003d7c;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* 連絡先情報カード */
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-card h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
}

.contact-info-card h4 {
    color: #666;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* 統計カード */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #003d7c;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #666;
    font-size: 0.875rem;
}

/* 業種カード */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.industry-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.industry-card h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
}

/* メリットグリッド */
.benefits-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* 学生向けメッセージボックス */
.student-message-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.message-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.student-message-box h3 {
    color: #003d7c;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.student-message-box p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.message-cta {
    margin-top: 2rem;
}

/* 入会情報グリッド */
.admission-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: #003d7c;
    margin-bottom: 1rem;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #003d7c;
    margin-bottom: 0.5rem;
}

.info-note {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* 注意事項ボックス */
.notice-box {
    background: #fff3e0;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #f57c00;
    margin-bottom: 3rem;
}

.notice-box h3 {
    color: #f57c00;
    margin-bottom: 1rem;
}

.notice-box ul {
    margin-left: 1.5rem;
}

.notice-box li {
    margin-bottom: 0.5rem;
}

/* フォームスタイル */
.admission-form,
.admission-form-con,
.contact-form,
.contact-form-con,
.entry-form-con,
.entry-form-con {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.required {
    color: #d32f2f;
}

/* 連絡先CTAボックス */
.contact-cta-box {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.contact-cta-box h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
}

/* 連絡方法グリッド */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.contact-method-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-method-card h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
}

.contact-method-value {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-method-note {
    font-size: 0.875rem;
    color: #666;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.faq-question,
.faq-answer {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #003d7c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.faq-question h3 {
    color: #003d7c;
    margin: 0;
    font-size: 1.125rem;
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.faq-answer .faq-icon {
    background: #0052a3;
}

/* 30周年バナー */
.anniversary-banner {
    background: linear-gradient(135deg, #003d7c, #0052a3);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
}

.anniversary-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.anniversary-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* マイルストーングリッド */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.milestone-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.milestone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.milestone-card h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
}

/* ビジョンセクション */
.vision-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.vision-text {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vision-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vision-card h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
}

/* パートナーグリッド */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.partner-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.partner-card:hover {
    transform: translateY(-4px);
}

.partner-card.support {
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
}

.partner-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.partner-card h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
}

.partner-card h3 a.full-link {
    text-decoration: none !important; 
    color: inherit; 
    display: inline-block;
}

.full-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

/* ケーススタディグリッド */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.case-study-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.case-study-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.case-study-card h3 {
    color: #003d7c;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* セクション説明 */
.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

/* アクティブナビゲーション */
.nav-links a.active {
    color: #003d7c;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .stats-grid,
    .industry-grid,
    .benefits-grid,
    .contact-methods-grid,
    .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admission-info-grid,
    .milestone-grid,
    .vision-cards,
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        height: 80px;
    }

    .page-hero {
        margin-top: 80px;
        min-height: 400px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 80px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        width: 80px;
        height: 80px;
        font-size: 1.125rem;
    }
    
    .stats-grid,
    .industry-grid,
    .benefits-grid,
    .admission-info-grid,
    .contact-methods-grid,
    .milestone-grid,
    .vision-cards,
    .partner-grid,
    .case-study-grid {
        grid-template-columns: 1fr;
    }
}

/* メールフォーム設定 */
.admission-form tr,
.admission-form-con tr {
    display: block;
    margin-bottom: 1.5rem;
}

.admission-form .col-head,
.admission-form-con .col-head {
    display: block;
    font-weight: 500;
    color: #333;
    text-align: left;
    width: 100%;
}

.admission-form .col-head {
    margin-bottom: 0.5rem;
}

.admission-form .col-input,
.admission-form-con .col-input{
    width: 100%;
    display: block;
    font-weight: 500;
    color: #333;
}

.admission-form .col-input .bs-mail-attention{
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.admission-form input,
.admission-form textarea,
.admission-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-weight: 500;
    color: #333;
}

.admission-form [id^="RowMessageName"],
.admission-form #RowMessageName,
.admission-form #RowMessageName1,
.admission-form #RowMessageName2 {
    display: inline-block !important;
    vertical-align: top;
    width: 48% !important;
}

[id="RowMessageName1"],
[id="RowMessageName"] {
    margin-right: 4% !important;
}

.admission-form #RowMessagePost,
.admission-form #RowMessageAddress1 {
    display: inline-block !important;
    vertical-align: top;
    width: 48% !important;
    margin-bottom: 1.5rem !important;
}

.admission-form #RowMessagePost {
    margin-right: 4% !important;
}

@media (max-width: 768px) {
    [id^="RowMessageName"],
    .admission-form #RowMessageName,
    .admission-form #RowMessageName1,
    .admission-form #RowMessageName2,
    .admission-form #RowMessagePost,
    .admission-form #RowMessageAddress1 {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
}

.admission-form .required,
.admission-form-con .required {
    font-size: 0 !important;
    color: transparent !important;
}

.admission-form .required::before,
.admission-form-con .required::before {
    content: "*" !important; 
    font-size: 1.1rem !important;
    color: #ff4d4f !important;
    font-weight: bold !important;
    margin-left: 0.25rem;
    vertical-align: top;
}

.admission-form .normal,
.admission-form-con .normal {
    display: none !important;
}

.admission-form .message,
.admission-form .error-message,
.admission-form-con .message,
.admission-form-con .error-message {
    color: #ff4d4f !important;
}

/* ==========================================================================
   【完全解決】送信・取り消すボタンの横並び設定
   ========================================================================== */

/* 💡 1. 判明した親要素（.bs-mail-form-submit）を横並びの土台にする */
.admission-form .bs-mail-form-submit,
.admission-form-con .bs-mail-form-submit {
    display: flex !important;
    justify-content: center !important; /* ボタンを中央に寄せる */
    gap: 4% !important; /* 💡 ボタンとボタンの間のすき間 */
    width: 100% !important;
    max-width: 500px !important; /* パソコンで見た時にボタンが広がりすぎないサイズ */
    margin: 2.5rem auto 0 !important; /* 上に程よい余白を作り、左右中央に配置 */
}

/* 💡 2. ボタン自体の共通設定（サイズと余白を整える） */
.admission-form .bs-mail-form-submit .bs-button,
.admission-form-con .bs-mail-form-submit .bs-button {
    display: block !important;
    flex: 1 !important; /* 💡 2つのボタンを50%ずつ均等な大きさに広げる */
    
    /* ボタンの見た目調整 */
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* 💡 3. 左側：「取り消す」ボタンの色（目立たないグレー系に） */
.admission-form .bs-mail-form-submit input[type="reset"],
.admission-form-con .bs-mail-form-submit #BtnMessageBack {
    background-color: #eeeeee !important;
    border: 1px solid #ddd !important;
    color: #666666 !important;
}

/* 💡 4. 右側：「入力内容を確認する」ボタンの色（パッと目立つ色に） */
.admission-form .bs-mail-form-submit input[type="submit"],
.admission-form-con .bs-mail-form-submit #BtnMessageSubmit {
    background-color: #333333 !important; /* ➔ お好きなテーマカラーがあれば変更してください */
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

/* ✨ マウスを乗せたときのふわっとした効果 */
.admission-form .bs-mail-form-submit input[type="reset"]:hover { background-color: #e0e0e0 !important; }
.admission-form .bs-mail-form-submit input[type="submit"]:hover { opacity: 0.85 !important; }

/* 📱 スマホの時は押しやすいように縦並びに戻す（横幅768px以下） */
@media (max-width: 768px) {
    .admission-form .bs-mail-form-submit {
        flex-direction: column !important; /* ➔ 縦並びに変更 */
        gap: 1rem !important;
        max-width: 100% !important;
    }
    .admission-form .bs-mail-form-submit .bs-button {
        width: 100% !important; /* スマホ画面いっぱいの大きなボタンに */
    }
}

.mail-text-p {
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   ブログ設定
============================================ */

/* 1. 記事一つの塊 */
.report-simple-list .bs-blog-post__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 45px 0 !important;
    border-bottom: 1px solid #ddd !important;
    list-style: none !important;
}

/* 2. 日付：一番上（青） */
.report-simple-list .bs-blog-post__item-date {
    order: 1 !important;
    color: #284a94 !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    margin-bottom: 12px !important;
    display: block !important;
}

/* 3. カテゴリ：青背景・白文字（塗りつぶし） */
.report-simple-list .bs-blog-post__item-category {
    order: 2 !important;
    display: inline-block !important;
    background-color: #284a94 !important; /* 背景はテーマの青 */
    color: #ffffff !important;      /* 文字は白 */
    font-size: 0.8rem !important;
    padding: 4px 16px !important;
    border-radius: 4px !important;
    margin-bottom: 20px !important;
    text-decoration: none !important; 
}

.report-simple-list .bs-blog-post__item-category:hover {
    opacity: 0.8 !important;         /* ホバー時は少し透かして反応を見せる */
    color: #ffffff !important;
}

.report-simple-list .bs-blog-post__item-category a {
    color: #ffffff !important;      /* 文字は白 */
    background-color: #284a94 !important; /* 背景はテーマの青 */
    border: 2px solid #284a94 !important; /* 枠も青にしてサイズ感を確保 */
    font-size: 0.8rem !important;
    padding: 4px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important; 
    font-weight: bold !important;
    transition: opacity 0.3s;
}

.report-simple-list .bs-blog-post__item-category a:hover {
    opacity: 0.8 !important;         /* ホバー時は少し透かして反応を見せる */
    color: #ffffff !important;
}

/* 4. タイトル：デカタイトル・下線なし */
.report-simple-list .bs-blog-post__item-title {
    order: 3 !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.report-simple-list .bs-blog-post__item-title a {
    color: #333 !important;
    text-decoration: none !important;
}

.report-simple-list .bs-blog-post__item-title a:hover {
    color: #284a94 !important;
    text-decoration: none !important;
}

/* 5. 不要な要素の徹底排除 */
.report-simple-list .bs-blog-title,
.report-simple-list .bs-blog-post__item-detail,
.report-simple-list .bs-top-post__item-detail,
.report-simple-list .bs-blog-post__item-eye-catch,
.report-simple-list .bs-blog-category-title,
.report-simple-list .bs-blog-post-title,
.report-simple-list .bs-single-post__meta-category,
.report-simple-list .bs-single-post__meta-date {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-simple {
    margin-top: 0 !important;
}

.hero-cat-label {
    display: inline-block;
    border: 1px solid #fff;
    padding: 2px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease; /* ふわっと変化させる設定 */
}

/* ホバー時の見た目（色が反転する） */
.hero-cat-label:hover {
    background-color: #fff;   /* 背景を白に */
    color: #284a94 !important; /* 文字を青に */
    text-decoration: none;
}

/* 1. 外枠：clearfixなどの古い設定をリセット */
div.bs-blog-contents-navi.clearfix {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 50px 0 !important;
    padding: 20px 0 !important;
    border-top: 1px solid #eee !important;
    float: none !important; /* floatを解除 */
    overflow: visible !important;
}

/* 2. aタグ本体：全ての装飾を上書き */
div.bs-blog-contents-navi.clearfix a.prev-link,
div.bs-blog-contents-navi.clearfix a.next-link {
    /* 配置のリセット */
    float: none !important; 
    display: inline-block !important;
    
    /* デザイン：白地に青枠 */
    background-color: #fff !important;
    color: #284a94 !important;
    border: 2px solid #284a94 !important;
    
    /* サイズと余白 */
    padding: 12px 25px !important;
    min-width: 180px !important;
    text-align: center !important;
    
    /* フォントと角丸 */
    font-weight: 800 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    
    /* アニメーション */
    transition: all 0.3s ease !important;
}

/* 3. ホバー：青地に白文字へ反転 */
div.bs-blog-contents-navi.clearfix a.prev-link:hover,
div.bs-blog-contents-navi.clearfix a.next-link:hover {
    background-color: #284a94 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-2px); /* ちょこっと浮かす */
    box-shadow: 0 5px 15px rgba(40, 74, 148, 0.2) !important;
}

/* --- スマホ・タブレット対応（画面幅が800px以下の時） --- */
@media screen and (max-width: 800px) {
    
    /* 1. 外枠を「横並び」から「縦並び」に変える */
    div.bs-blog-contents-navi.clearfix {
        flex-direction: column !important; /* 上下並びにする */
        gap: 15px !important;            /* ボタン同士の間隔 */
        padding: 30px 0 !important;
    }

    /* 2. ボタンを画面幅いっぱい（100%）にする */
    div.bs-blog-contents-navi.clearfix a.prev-link,
    div.bs-blog-contents-navi.clearfix a.next-link {
        width: 100% !important;        /* 横幅いっぱい */
        min-width: unset !important;   /* PC用の幅指定を解除 */
        box-sizing: border-box !important;
        padding: 15px 10px !important; /* 少し厚みを持たせて押しやすく */
        font-size: 0.95rem !important; /* 文字が長すぎても収まりやすく */
    }

    /* 3. 「前へ」の記号が邪魔なら、少し調整 */
    div.bs-blog-contents-navi.clearfix a.prev-link::before {
        margin-right: 5px;
    }
}

/* カテゴリナビゲーションの外枠 */
.category-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

/* 各カテゴリボタン */
.category-filter-nav a {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #284a94;
    border-radius: 20px; /* 丸みのあるチップ形式 */
    color: #284a94;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

/* マウスを乗せた時 or 現在選択中のカテゴリ */
.category-filter-nav a:hover,
.category-filter-nav a.current {
    background-color: #284a94;
    color: #fff;
}

/* フィルタリングボタンの基本形 */
.filter-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid #284a94;
    border-radius: 30px;
    background: #fff;
    color: #284a94;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ホバー時と「今選んでいるカテゴリ」の見た目 */
.filter-btn:hover,
.filter-btn.current {
    background-color: #284a94 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 74, 148, 0.2);
}

/* スマホでボタンが多くなったら横に流せるようにする */
@media screen and (max-width: 600px) {
    .category-filter-nav {
        justify-content: flex-start !important;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    .category-filter-nav li {
        flex: 0 0 auto;
    }
}

/* 1. 全体の背景を白、枠線を青にする */
.bs-pagination {
    background-color: #fff; /* 白背景 */
    border: 2px solid #0044cc; /* 青い枠線（太さや色は調整してください） */
    border-radius: 8px; /* 角を少し丸く */
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px auto;
    max-width: fit-content; /* 中身に合わせて横幅を調整 */
}

/* 2. 数字や「前へ・次へ」の共通ボタンデザイン */
.bs-pagination__number a, 
.bs-pagination__number span,
.bs-pagination__prev a,
.bs-pagination__next a {
    display: inline-block;
    padding: 8px 14px;
    text-decoration: none;
    color: #0044cc; /* 文字を青に */
    font-weight: bold;
    transition: 0.3s;
}

/* 3. 現在表示しているページ（青背景に白文字） */
.bs-pagination .current {
    background-color: #0044cc; /* 青背景 */
    color: #ffffff !important; /* 白文字 */
    
    /* 丸の大きさを調整（ここをお好みのサイズに変えてください） */
    width: 40px;               
    height: 40px;
    
    /* 正円にする設定 */
    border-radius: 50% !important; 
    
    /* 数字を真ん中に配置するための設定 */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    
    /* 前後の数字とのバランス調整 */
    line-height: 1;
    margin: 0 4px;
    vertical-align: middle;
}

/* 4. マウスを乗せたとき（ホバー） */
.bs-pagination__number a:hover,
.bs-pagination__prev a:hover,
.bs-pagination__next a:hover {
    background-color: #e6f0ff; /* 薄い青 */
    border-radius: 4px;
}

/* 5. 無効なボタン（「前へ」がない時など）の色を薄くする */
.bs-pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 元々あったページネーションを隠す（必要であれば） */
.report-simple-list > .bs-pagination:not(.custom-navigation) {
    display: none !important;
}

/* 1. 全体のリスト形式を横並びにする（・を消す） */
.custom-navigation {
    display: flex !important;      /* 横並びにする */
    justify-content: center !important; /* ★左右中央に寄せる */
    align-items: center !important;     /* 上下中央に寄せる */
    list-style: none !important;   /* 「・」を消す */
    padding: 0 !important;
    margin: 40px auto !important;  /* 上下に余白、左右は自動で真ん中 */
    width: 100%;                   /* 横幅いっぱい使って中央配置 */
    gap: 10px;                     /* ボタン同士の間隔 */
}

/* 2. すべてのボタン（最初・最後・数字・前次）の共通設定 */
.custom-navigation li a,
.custom-navigation li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0044cc; /* 文字は青 */
    font-weight: bold;
    padding: 8px 12px;
    transition: 0.3s;
}

/* 3. 現在のページの「大きな青い丸」 */
.custom-navigation .current {
    background-color: #0044cc !important;
    color: #ffffff !important;
    width: 48px; /* 丸のサイズ */
    height: 48px;
    border-radius: 50% !important;
    font-size: 1.2rem;
}

/* 4. マウスを乗せた時の背景（薄い青） */
.custom-navigation li a:hover {
    background-color: #e6f0ff;
    border-radius: 4px;
}

/* 5. 「最初」「最後」の文字も青くする（aタグを狙い撃ち） */
.custom-navigation .first a,
.custom-navigation .last a {
    color: #0044cc !important;
}

/* 6. 押せない状態のボタンを薄くする */
.custom-navigation .disabled {
    color: #ccc !important;
    cursor: not-allowed;
}

/* --- スマホ用の調整（画面幅が768px以下のとき） --- */
@media screen and (max-width: 768px) {
    .custom-navigation {
        flex-wrap: wrap;       /* 入りきらないボタンを次の行に落とす */
        gap: 5px;             /* ボタン同士の隙間を少し詰める */
        padding: 10px;        /* 左右の余白を調整 */
    }

    /* 1. スマホでは青い丸を少し小さくする（48px → 38pxくらい） */
    .custom-navigation .current {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem;      /* 数字も少し小さく */
    }

    /* 2. 他の数字や「最初・最後」のボタンもサイズ調整 */
    .custom-navigation li a,
    .custom-navigation li span {
        padding: 6px 8px;     /* ボタンの余白を削る */
        font-size: 0.8rem;    /* 文字を少し小さく */
        min-width: 35px;      /* 最低限の幅を確保 */
    }
    
    /* 3. 「最初」「最後」などの文字が長すぎるなら少し詰める */
    .custom-navigation .first a, 
    .custom-navigation .last a,
    .custom-navigation .prev a, 
    .custom-navigation .next a {
        padding: 5px;
    }
}