@charset "UTF-8";

/* =========================================
   1. 基本設定 (Base)
      テーマ：基本＝緑(#2e7d32), メニュー＝青(#0277bd)
      文字サイズ：大きめ設定
   ========================================= */

/* ★重要：全ての要素で「線と余白を幅に含める」設定（レイアウト崩れ防止） */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    width: 100%;
    overflow-x: hidden; /* 横スクロール防止 */
}

/* リンク色：基本は緑 */
a { text-decoration: none; color: #2e7d32; transition: 0.3s; }
a:hover { color: #1b5e20; opacity: 0.8; }
ul, ol { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* 共通コンテナ */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    /* ★重要：スマホで画面端にくっつかないよう左右に余白を強制 */
    padding-left: 20px;
    padding-right: 20px;
}
/* ページ本文の余白ラッパー */
.page-body {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* =========================================
   2. ヘッダー (Header)
   ========================================= */
header {
    background: #fff;
    width: 100%;
    position: relative;
    z-index: 1000;
    border-bottom: 3px solid #0277bd;
}

/* --- 上段エリア --- */
.header-top {
    padding: 15px 0;
    background: #fff;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.logo {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.05em;
    text-decoration: none;
    line-height: 1;
}
.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* 右側エリア */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 連絡先情報 */
.header-info {
    text-align: right;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}
.header-address { margin: 0 0 2px 0; }
.header-tel {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #2e7d32;
    letter-spacing: 0.05em;
}
.header-hours {
    font-size: 12px;
    color: #888;
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: normal;
}

/* ヘッダーボタン */
.header-btns {
    display: flex;
    gap: 10px;
}
.btn-head {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 48px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    line-height: 1.2;
}
.btn-head i { margin-right: 5px; font-size: 16px; }

/* ホバー時も文字色白 */
.btn-head:hover { 
    opacity: 0.9; 
    transform: translateY(-2px);
    color: #fff; 
}
.btn-head:active { transform: translateY(1px); box-shadow: none; }

.btn-head.join {
    background-color: #f39c12;
    box-shadow: 0 3px 0 #d38308;
}
.btn-head.contact {
    background-color: #0277bd;
    box-shadow: 0 3px 0 #01579b;
}


/* --- 下段：帯メニュー --- */
.main-nav { 
    background: #0277bd;
    width: 100%; 
    box-shadow: 0 4px 6px rgba(2, 119, 189, 0.2);
}
.main-nav .container { 
    padding: 0; /* メニューバー自体は端まで広げる */
    max-width: 1100px; 
}

.main-nav ul { display: flex; width: 100%; margin: 0; padding: 0; list-style: none; }
.main-nav li { flex: 1; border-right: 1px solid rgba(255,255,255,0.2); }
.main-nav li:first-child { border-left: 1px solid rgba(255,255,255,0.2); }
.main-nav li a {
    display: block; color: #fff; text-align: center;
    padding: 18px 5px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap; text-decoration: none;
    transition: background 0.3s;
}
.main-nav li a:hover { background: #29b6f6; color: #fff; }


/* --- スマホ対応 --- */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: column; gap: 15px; padding-bottom: 15px;
    }
    .logo { font-size: 26px; }
    
    .header-right {
        flex-direction: column; gap: 15px; width: 100%;
    }
    .header-info { text-align: center; width: 100%; }
    .header-btns {
        width: 100%; justify-content: center;
    }
    .btn-head {
        flex: 1; max-width: 48%;
    }

    /* メニューを縦積みに */
    .main-nav ul { flex-direction: column; }
    .main-nav li { 
        border-right: none; 
        border-bottom: 1px solid rgba(255,255,255,0.2); 
    }
    .main-nav li a { 
        padding: 15px 20px; /* 左右余白確保 */
        text-align: left; 
    }
    .main-nav li a::after { content: '›'; float: right; margin-right: 10px; font-weight: normal; }
}

/* =========================================
   3. メインビジュアル (Hero) 
   ========================================= */
.hero {
    background: linear-gradient(135deg, #2e7d32 0%, #00695c 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    width: 100%;
}

/* --- トップページ専用 --- */
.hero.hero-lg {
    background: url('image/main-bg.jpg') no-repeat center center/cover;
    background-color: #2e7d32;
    min-height: 650px;
}
.hero.hero-lg::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2; width: 100%; 
    padding: 0 20px;
}

.hero-lg .hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(20, 50, 20, 0.85);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.4);
    backdrop-filter: blur(3px);
}

.hero-title {
    font-size: 40px; margin-bottom: 25px; font-weight: 600; line-height: 1.4;
}
.hero-lg .hero-title {
    font-size: 38px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-text {
    font-size: 18px; color: #e8f5e9; margin: 0; letter-spacing: 0.05em;
}
.hero-lg .hero-text {
    margin-bottom: 35px;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-btn-area { margin-top: 15px; }

/* 下層ページの高さ */
.hero-md { height: 320px; }
.hero-sm { height: 260px; }

@media (max-width: 768px) {
    .hero.hero-lg { min-height: 450px; }
    /* スマホ調整 */
    .hero-lg .hero-content { width: 100%; padding: 30px 20px; border-radius: 0; }
    .hero-title { font-size: 28px; }
    .hero-lg .hero-title { font-size: 26px; }
    .hero-text { font-size: 15px; }
}

/* --- バナーエリア --- */
#banners { margin-bottom: 60px; }
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.banner-grid a {
    display: flex;
    align-items: center; justify-content: center;
    aspect-ratio: 200 / 60;
    background: #fff;
    border: 1px solid #eee;
    transition: opacity 0.3s;
    overflow: hidden;
}
.banner-grid a:hover { opacity: 0.7; }
.banner-grid img {
    max-width: 100%; max-height: 100%; height: auto; display: block;
}

/* =========================================
   4. 共通パーツ・コンポーネント
   ========================================= */

/* ボタン */
.btn {
    display: inline-block; 
    background: #2e7d32;
    color: #fff;
    padding: 16px 45px;
    font-size: 16px;
    border-radius: 50px;
    font-weight: bold; letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
    border: none; cursor: pointer;
    text-align: center;
    max-width: 100%;
}
.btn:hover {
    background: #1b5e20;
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.5); opacity: 1;
}

.btn-sm { padding: 12px 25px; font-size: 14px; }
.btn-gray { background: #999; box-shadow: none; }
.btn-gray:hover { background: #777; box-shadow: none; transform: none; }

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 300; letter-spacing: 0.1em; position: relative;
    color: #2e7d32;
    padding: 0 10px;
}
.section-title span {
    display: block; font-size: 15px;
    color: #43a047;
    margin-top: 10px; font-weight: bold; text-transform: uppercase;
}
.section-title::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: #2e7d32;
    margin: 25px auto 0;
}
.section-title-sm { font-size: 28px; margin-bottom: 35px; }
.section-divider {
    display: block; margin-bottom: 15px;
    border-bottom: 1px solid #ddd; padding-bottom: 8px;
    font-weight: bold; font-size: 18px;
}

/* ニュースリスト */
.news-list { list-style: none; padding: 0; }
.news-list li {
    border-bottom: 1px solid #eee; padding: 18px 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.news-date { color: #999; font-size: 15px; width: 120px; font-family: 'Courier New', monospace; }
.news-title { font-weight: bold; color: #333; flex: 1; font-size: 16px; min-width: 200px; }
.news-title:hover { color: #0277bd; text-decoration: underline; opacity: 1; }
.news-empty { border: none; text-align: center; padding: 30px; font-size: 15px; }

/* カテゴリラベル */
.cat-label {
    display: inline-block; padding: 4px 12px; margin-right: 0;
    font-size: 12px;
    border-radius: 4px; color: #fff;
    font-weight: bold; min-width: 90px; text-align: center;
}
.cat-news { background-color: #0277bd; }
.cat-seminar { background-color: #f39c12; }
.cat-event { background-color: #27ae60; }
.cat-kentei { background-color: #c0392b; }
.cat-press { background-color: #8e44ad; }
.cat-other { background-color: #555; }
a.cat-label:hover { opacity: 0.8; }

/* グリッドメニュー */
.support-nav {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; margin-bottom: 70px;
}
.support-card {
    display: block; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 35px 25px; text-align: center;
    transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.support-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #29b6f6; opacity: 1;
}
.support-icon { font-size: 46px; color: #43a047; margin-bottom: 18px; display: block; }
.support-title { font-size: 20px; font-weight: bold; color: #333; margin-bottom: 12px; display: block; }
.support-desc { font-size: 14px; color: #777; line-height: 1.6; display: block; }

/* 会報誌エリア */
.imessage-banner {
    background: #f1f8e9; border: 1px solid #43a047;
    border-radius: 8px; padding: 30px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; margin-top: 50px;
}
.imessage-info { flex: 1; }
.imessage-title {
    font-size: 20px; font-weight: bold; color: #2e7d32; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.imessage-latest { font-size: 15px; color: #d35400; font-weight: bold; }
.imessage-btns { display: flex; gap: 10px; flex-shrink: 0; }

/* 会報誌カード（上下分割） */
.card-split {
    padding: 0 !important; overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
}
.card-split-main {
    display: block; padding: 35px 25px 20px;
    flex: 1; text-decoration: none; color: inherit; transition: 0.3s;
}
.card-split-main:hover { opacity: 0.7; }
.card-split-note { font-size: 13px; color: #d35400; text-decoration: underline; }
.card-split-divider { border-top: 1px solid #eee; margin: 0 20px; }
.card-split-sub {
    display: block; padding: 20px 25px;
    font-size: 14px; color: #666; background: #fcfcfc;
    text-decoration: none; transition: 0.3s;
}
.card-split-sub:hover { background-color: #f0f0f0; color: #0277bd; }

@media (max-width: 768px) {
    .imessage-banner { flex-direction: column; text-align: center; }
    .imessage-title { justify-content: center; }
    .imessage-btns { flex-direction: column; width: 100%; }
    .imessage-btns .btn { width: 100%; box-sizing: border-box; }
}

/* =========================================
   5. 詳細ページレイアウト (2 Column)
   ========================================= */
.two-col-wrapper {
    display: flex; 
    gap: 40px; 
    align-items: flex-start;
    /* ★修正：左右の余白設定（containerの20px）を消さないために上下のみ指定 */
    padding-top: 60px;
    padding-bottom: 60px;
}
.main-column { flex: 1; width: 0; min-width: 0; }

.main-column-full { 
    width: 100%; 
    /* ★修正：ここも上下のみ指定 */
    padding-top: 60px;
    padding-bottom: 60px;
}

.side-column { width: 300px; flex-shrink: 0; position: sticky; top: 20px; }

@media (max-width: 1024px) {
    .two-col-wrapper { flex-direction: column; }
    .side-column { width: 100%; position: static; margin-top: 40px; order: 2; }
    .main-column { width: 100%; order: 1; }
}

.side-widget {
    background: #fff; border: 1px solid #eee;
    border-radius: 6px; overflow: hidden; margin-bottom: 25px;
}
.side-title {
    display: block; background: #f1f8e9;
    padding: 18px; font-size: 16px; font-weight: bold;
    border-bottom: 1px solid #c5e1a5;
    color: #33691e; letter-spacing: 0.05em;
}
.side-menu-list li { border-bottom: 1px solid #eee; }
.side-menu-list li:last-child { border-bottom: none; }
.side-menu-list li a {
    display: block; padding: 18px; font-size: 15px; color: #555; background: #fff;
}
.side-menu-list li a:hover {
    background: #e8f5e9; color: #2e7d32; padding-left: 23px;
}

/* =========================================
   6. 詳細ページ内装飾 (Content)
   ========================================= */
.main-column section, .main-column-full section { 
    padding: 40px 0; 
    border-bottom: 1px solid #eee; 
}
.main-column section:last-child, .main-column-full section:last-child { border-bottom: none; padding-bottom: 0; }

.header-line {
    font-size: 28px;
    border-bottom: 2px solid #81c784;
    padding-bottom: 12px; margin-bottom: 35px; font-weight: bold;
    color: #2e7d32;
    line-height: 1.4;
}
.header-left-border {
    font-size: 22px;
    border-left: 6px solid #0277bd;
    padding-left: 18px; margin-bottom: 25px; font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* ラベル類 */
.header-label {
    font-size: 16px; color: #fff; padding: 10px 15px;
    border-radius: 4px 4px 0 0; margin: 0; display: inline-block; font-weight: bold;
}
.bg-dark { background: #2e7d32; }
.bg-blue { background: #0277bd; }

.header-sub {
    display: block; font-size: 0.7em; font-weight: normal;
    margin-top: 5px; color: #666; line-height: 1.4;
}

/* ボックス類 */
.box-highlight {
    background: #fff; padding: 30px; border-radius: 8px;
    border: 2px solid #0277bd;
    margin-bottom: 35px;
}
.box-gray, .box-gray-simple {
    background: #f1f8e9; padding: 25px; border-radius: 6px;
    border: 1px solid #c5e1a5; margin-bottom: 25px;
}
.box-info {
    background: #e1f5fe; padding: 25px; border-radius: 8px;
    border: 1px solid #b3e5fc; margin-bottom: 35px;
}
.box-border {
    border: 1px solid #ddd; padding: 25px; border-radius: 0 0 4px 4px; margin-bottom: 35px;
}
.box-border.rounded { border-radius: 4px; }
.box-warning {
    background: #fff3cd; padding: 25px; border-radius: 6px;
    border: 1px solid #ffeeba; color: #856404; margin-bottom: 35px;
}
.box-msg-blue {
    background: #e1f5fe; padding: 25px; border-radius: 6px;
    color: #0277bd; font-weight: bold; text-align: center;
    font-size: 20px;
    margin-bottom: 35px; border: 1px solid #b3e5fc;
}

.box-card {
    background: #fff; border: 1px solid #eee; padding: 30px;
    border-radius: 8px; margin-bottom: 35px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.box-card-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px;
    flex-wrap: wrap; gap: 10px;
}

.box-quote {
    background: #f9f9f9; padding: 25px; border-radius: 6px;
    font-size: 15px; border-left: 5px solid #ccc;
}

.badge-blue {
    background: #0277bd; color: #fff; font-size: 13px;
    padding: 3px 10px; border-radius: 4px; white-space: nowrap;
}

/* リスト・テーブル */
.check-list { list-style: none; padding: 0; }
.check-list li {
    padding-left: 25px; position: relative; margin-bottom: 12px;
    font-size: 16px;
}
.check-list li::before {
    content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: #43a047; position: absolute; left: 0; top: 6px; font-size: 18px;
}
.arrow-list { list-style: none; padding: 0; }
.arrow-list li {
    padding-left: 20px; position: relative; margin-bottom: 10px; font-size: 16px;
}
.arrow-list li::before {
    content: '\f105'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: #0277bd; position: absolute; left: 0; top: 4px; font-size: 16px;
}
.decimal-list { list-style: decimal; padding-left: 25px; margin-bottom: 25px; font-size: 16px; }

.company-table {
    width: 100%; border-collapse: collapse; margin-bottom: 25px;
    font-size: 16px;
}
.company-table th, .company-table td {
    border: 1px solid #ddd; padding: 18px; text-align: left;
    word-break: break-all;
}
.company-table th {
    background: #f1f8e9; color: #33691e;
    font-weight: bold; white-space: nowrap;
}
.table-responsive-center {
    overflow-x: auto; text-align: center; margin-bottom: 25px;
    -webkit-overflow-scrolling: touch;
}
.table-responsive-center table { margin: 0 auto; min-width: 500px; }

/* ユーティリティ */
.list-none { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 8px; }

.w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; }
.w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; }
.w-full { width: 100%; }
.min-w-200 { min-width: 200px; } .min-w-300 { min-width: 300px; }
.min-w-600 { min-width: 600px; } .min-w-700 { min-width: 700px; }
.max-w-500 { width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
.max-w-600 { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-bold { font-weight: bold; }
.text-blue { color: #0277bd; }
.text-red { color: #d32f2f; }
.text-normal { font-weight: normal; }
.text-note { font-size: 14px; color: #666; }
.text-sm { font-size: 15px; }
.text-lg { font-size: 20px; }
.text-2xl { font-size: 26px; }
.text-underline { text-decoration: underline; }
.d-block { display: block; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.flex-1 { flex: 1; }
.flex-3 { flex: 3; }
.gap-20 { gap: 20px; }

.mb-5 { margin-bottom: 5px; } .mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; } .mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; } .mb-40 { margin-bottom: 40px; }
.mt-5 { margin-top: 5px; } .mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; } .mt-40 { margin-top: 40px; }
.pt-0 { padding-top: 0 !important; }
.p-30 { padding: 30px; }

.btn-md { padding: 14px 35px; font-size: 16px; }

/* スマホ用 */
@media (max-width: 768px) {
    .mb-20-sp { margin-bottom: 20px; }
    .company-table th, .company-table td { padding: 12px 10px; }
}

/* 画像＋テキストの横並び */
.media-box {
    display: flex; gap: 30px; margin-bottom: 40px; align-items: flex-start;
}
.media-img {
    width: 320px; flex-shrink: 0;
    background: #eee; height: auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; overflow: hidden;
}
.media-img img { width: 100%; height: auto; object-fit: cover; }
.media-body { flex: 1; font-size: 16px; }

@media (max-width: 768px) {
    .media-box { flex-direction: column; gap: 15px; }
    .media-img { width: 100%; max-width: 100%; }
}

/* Googleマップ */
.map-wrapper, .map-container {
    position: relative; padding-bottom: 56.25%; height: 0;
    overflow: hidden; margin-bottom: 30px;
}
.map-wrapper iframe, .map-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ステップフロー */
.step-flow { margin-bottom: 45px; }
.step-item {
    border: 1px solid #ddd; border-radius: 6px; overflow: hidden;
    margin-bottom: 0; background: #fff;
}
.step-head {
    background: #0277bd; color: #fff;
    padding: 12px 25px; font-weight: bold; font-size: 18px;
}
.step-body { padding: 25px; font-size: 16px; }
.step-arrow {
    text-align: center; color: #ccc; font-size: 24px; padding: 12px 0;
}

/* =========================================
   7. フッター (Footer)
   ========================================= */
footer {
    background: #1b5e20;
    color: #c8e6c9;
    padding: 70px 0;
    text-align: center; font-size: 14px;
    margin-top: 140px;
}
footer .logo { color: #fff; font-size: 20px; }
footer a { color: #fff; opacity: 0.8; }

/* =========================================
   8. バナースライダー用CSS
   ========================================= */
.hero-slider-wrapper {
    width: 100%; padding: 40px 0;
    background: #f4f4f4; border-bottom: 1px solid #ddd;
    overflow: hidden;
}
.hero-slider {
    width: 100%; max-width: 100%; height: 160px;
    overflow: hidden; position: relative;
}
.slide-track { display: flex; gap: 20px; width: max-content; }
.slide-item {
    width: 220px; height: 130px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden; background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.slide-item:hover { transform: scale(1.05); }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }

/* 矢印（青） */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 45px; height: 45px;
    background: #0277bd; color: #fff; font-size: 18px;
    border: none; border-radius: 50%; cursor: pointer;
    z-index: 10; opacity: 0.5; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { opacity: 1; background: #01579b; }
.slider-arrow.prev { left: -60px; }
.slider-arrow.next { right: -60px; }

/* ドット */
.slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 25px; }
.dot {
    width: 14px; height: 14px; background: #ccc;
    border-radius: 50%; cursor: pointer; transition: 0.3s;
}
.dot.active { background: #2e7d32; transform: scale(1.2); }

@media (max-width: 1300px) {
    .slider-arrow.prev { left: 15px; }
    .slider-arrow.next { right: 15px; }
}
@media (max-width: 768px) {
    .slide-item { width: 180px; height: 106px; }
    .slide-track { gap: 15px; }
    .hero-slider-wrapper { padding: 25px 0; }
    .slider-arrow { width: 35px; height: 35px; font-size: 14px; }
}

/* =========================================
   9. その他ページ固有CSS
   ========================================= */

/* 電子証明書ページ用 */
.box-light-blue {
    background: #f1f8e9;
    padding: 20px; border-radius: 4px; margin-bottom: 0;
}
.box-card-header h4 { font-size: 20px; margin: 0; }
.btn-coupon {
    display: inline-block; padding: 10px 20px;
    background: #f8f9fa; border: 1px solid #ddd;
    color: #333; font-size: 14px; border-radius: 4px;
    text-decoration: none; transition: all 0.3s;
}
.btn-coupon:hover {
    background: #e9ecef; border-color: #ccc; color: #2e7d32;
}
.btn-coupon i { margin-right: 5px; color: #d35400; }


/* =========================================
   【下層ページヘッダー修正】パターンA：スマートグリーン
   ========================================= */

/* トップページ以外のHeroエリアをスリム化 */
.hero:not(.hero-lg) {
    height: auto !important;        /* 高さを自動調整 */
    min-height: auto !important;    /* 最小高さを解除 */
    padding: 30px 0;                /* 上下の余白をコンパクトに */
    /* 横方向のグラデーションですっきり見せる */
    background: linear-gradient(90deg, #2e7d32 0%, #00695c 100%);
    text-align: left;               /* 左寄せ */
}

/* コンテンツの配置（PCでは横並び） */
.hero:not(.hero-lg) .hero-content {
    display: flex;
    align-items: baseline;      /* 文字のベースラインを揃える */
    gap: 20px;                  /* タイトルと英語の間隔 */
    justify-content: flex-start;
}

/* タイトル文字（サイズ調整） */
.hero:not(.hero-lg) .hero-title {
    font-size: 28px;
    margin: 0;
    font-weight: bold;
    text-shadow: none;          /* 影を消してフラットに */
}

/* 英語サブタイトル（サイズ調整・薄く） */
.hero:not(.hero-lg) .hero-text {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8); /* 少し薄く */
    font-weight: normal;
}

/* スマホでは縦並びに戻す */
@media (max-width: 768px) {
    .hero:not(.hero-lg) .hero-content {
        flex-direction: column;
        align-items: flex-start; /* 左寄せのまま */
        gap: 5px;
    }
    .hero:not(.hero-lg) .hero-title {
        font-size: 24px;
    }
    .hero:not(.hero-lg) .hero-text {
        font-size: 14px;
        margin-bottom: 0;
    }
}

/* =========================================
   【検定スケジュール表のデザイン改善・レスポンシブ完全対応】
   ========================================= */

/* テーブル全体の枠 */
.schedule-table-wrap {
    width: 100%;
    margin-bottom: 30px;
    /* 横スクロールを廃止して画面内に収める */
    overflow-x: visible; 
}

/* テーブル本体 */
.schedule-table {
    width: 100%;
    /* 固定幅を削除 */
    border-collapse: collapse;
    font-size: 15px;
}

/* --- PC表示時の設定 --- */
.schedule-table thead th {
    background-color: #2e7d32; /* 緑 */
    color: #fff;
    padding: 15px 10px;
    font-weight: bold;
    border-right: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    white-space: nowrap;
}

.schedule-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    vertical-align: middle;
    text-align: center;
    color: #333;
    line-height: 1.6;
}

/* 偶数行・ホバー装飾 */
.schedule-table tbody tr:nth-child(even) { background-color: #f9fbf9; }
.schedule-table tbody tr:hover { background-color: #e8f5e9; }
.schedule-table td strong { color: #2e7d32; font-size: 1.1em; }
.text-note { font-size: 13px; color: #666; display: block; margin-top: 4px; }


/* --- ★スマホ表示時の設定（カード型に変形） --- */
@media (max-width: 768px) {
    /* ヘッダー行を非表示にする */
    .schedule-table thead {
        display: none;
    }
    
    /* 行（tr）をカードのようにブロック化 */
    .schedule-table tbody tr {
        display: block;
        margin-bottom: 25px;
        border: 2px solid #2e7d32; /* 緑の枠線で囲む */
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
    }
    
    /* セル（td）を横並び（Flex）にして項目名を表示 */
    .schedule-table tbody td {
        display: flex;
        justify-content: space-between; /* 項目名と内容を両端に */
        align-items: center;
        text-align: right; /* 内容は右寄せ */
        border-bottom: 1px solid #eee;
        border-right: none;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .schedule-table tbody td:last-child {
        border-bottom: none;
    }

    /* 擬似要素で項目名（ラベル）を表示 */
    .schedule-table tbody td::before {
        content: attr(data-label); /* 予備策 */
        font-weight: bold;
        color: #2e7d32;
        text-align: left;
        margin-right: 15px;
        flex-shrink: 0; /* ラベル幅を確保 */
    }

    /* 各列の項目名をCSSで指定（列順序が変わらない前提） */
    .schedule-table tbody td:nth-of-type(1)::before { content: "回数"; }
    .schedule-table tbody td:nth-of-type(2)::before { content: "試験日"; }
    .schedule-table tbody td:nth-of-type(3)::before { content: "申込期間"; }
    .schedule-table tbody td:nth-of-type(4)::before { content: "合格発表"; }
    .schedule-table tbody td:nth-of-type(5)::before { content: "試験会場"; }

    /* 回数を目立たせる */
    .schedule-table tbody td:nth-of-type(1) {
        background: #f1f8e9;
        font-weight: bold;
    }
}

/* =========================================
   【イベントページ改修】1カラム・グリッドデザイン
   ========================================= */

/* ページ内ナビゲーション（目次ボタン） */
.page-anchor-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 20px;
    background-color: #f9fbf9; /* 薄い緑 */
    border-radius: 8px;
}

.page-anchor-nav a {
    display: inline-block;
    padding: 12px 25px;
    background: #fff;
    border: 1px solid #2e7d32;
    color: #2e7d32;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 160px;
    text-align: center;
}

.page-anchor-nav a:hover {
    background: #2e7d32;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

/* グリッドレイアウト（カードを並べる枠） */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 幅に合わせて自動折り返し */
    gap: 30px;
    margin-bottom: 40px;
}

/* イベントカードのデザイン */
.event-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%; /* 高さを揃える */
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #ccc;
}

.event-card-img {
    height: 180px;
    background-color: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-body {
    padding: 20px;
    flex-grow: 1; /* 中身が少なくても下まで伸ばす */
}

.event-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    border-left: 4px solid #2e7d32;
    padding-left: 10px;
    line-height: 1.4;
}

.event-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 所属団体・その他セクション用の調整 */
.group-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.other-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* 見出しの調整 */
.section-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 10px;
}

.section-header-row h2 {
    font-size: 24px;
    color: #2e7d32;
    margin: 0;
}

.section-header-row span {
    margin-left: 15px;
    font-size: 14px;
    color: #666;
}

/* カード内のリンクボタンエリア */
.event-card-action {
    margin-top: 15px;
    text-align: right; /* 右寄せにする */
}

/* ボタンのスタイル */
.btn-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background-color: #2e7d32; /* 緑色 */
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-card-link:hover {
    background-color: #1b5e20; /* 濃い緑 */
    color: #fff;
}

/* 外部リンク用（青色など色を変えたい場合） */
.btn-card-link.external {
    background-color: #0056b3;
}
.btn-card-link.external:hover {
    background-color: #003d82;
}