@charset "UTF-8";

/* ==========================================================================
   共通変数（シック＆モダンなカラーパレット）
   ========================================================================== */
:root {
    --primary-color: #1a2a6c;    /* 深い紺 */
    --secondary-color: #702459;  /* 赤紫（ワイン） */
    --accent-color: #8c3b32;     /* 赤茶 */
    --text-color: #2d3748;
    --light-bg: #f8f9fa;
    --white: #ffffff;            /* 白 */
    --gray-light: #e2e8f0;
    --gray-dark: #4a5568;
    --border-radius: 6px;
    --transition: all 0.3s ease;
}

/* 全体設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* アイコン付きリンクのホバー演出 */
.side-menu-links a:hover {
    color: #ffcc00 !important; /* ゴールド系で視認性をアップ */
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   ヘッダー・ナビゲーション
   ========================================================================== */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo-area h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.btn-main-school {
    display: inline-block;
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: var(--border-radius);
    margin-top: 10px;
}

nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
}

nav li {
    flex: 1;
}

nav a {
    display: block;
    padding: 15px 10px;
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    border-right: 1px solid rgba(255,255,255,0.1);
}

nav a:hover, nav a.current {
    background-color: #004488;
    color: #ffcc00; /* 文字色を変えて選択中を分かりやすく */
}

/* ==========================================================================
   ヒーローエリア：時間差アニメーション
   ========================================================================== */
.hero-view {
    background-color: #002244;
    padding: 0;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    height: 400px;
    overflow: hidden;
}

.hero-left {
    flex: 0.8;
    min-width: 320px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
    z-index: 5;
    /* 右下から黄色が広がる背景演出 */
    background: radial-gradient(circle at bottom right, rgba(255, 223, 0, 0.2), transparent 70%),
                linear-gradient(135deg, #002244 0%, #1a2a6c 100%);
}

.catchphrase-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

.catchphrase {
    margin: 0;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--white);
    line-height: 1.4;
    letter-spacing: 3px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    border: none;
    padding-left: 20px;
    position: relative;
    
    /* 右からスライドイン */
    opacity: 0;
    transform: translateX(100px);
    animation: slideInEffect 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

/* キャッチフレーズの装飾ライン */
.catchphrase::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    width: 6px;
    height: 80%;
    background-color: var(--white);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
    opacity: 0;
    animation: fadeInLine 0.4s ease forwards;
    animation-delay: 1.1s;
}

.english-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    margin-bottom: 10px;
    
    /* 上から落ちてくる */
    opacity: 0;
    transform: translateY(-50px);
    animation: dropInEffect 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
}

.highlight { 
    color: #ffdd00; /* 明るい黄色に変更 */
    text-shadow: 0 0 15px rgba(255, 221, 0, 0.4); /* わずかに発光しているような演出 */
}

.hero-right {
    flex: 1.2;
    position: relative;
    background-color: #002244;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain; /* 全体を表示（切らない） */
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active { opacity: 1; }

/* ==========================================================================
   アニメーション定義
   ========================================================================== */

@keyframes slideInEffect {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dropInEffect {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLine {
    to {
        opacity: 1;
    }
}

.page-header {
    background: linear-gradient(135deg, rgba(26, 42, 108, 0.9), rgba(112, 36, 89, 0.9)), 
                linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.2);
}

.page-header h2 {
    color: var(--white);
    border-left: none; /* ヘッダー内のh2は境界線を消す */
    padding-left: 0;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 2rem;
}

.page-header p {
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    opacity: 0.9;
}

/* ==========================================================================
   レイアウト・メインコンテンツ
   ========================================================================== */
.main-layout {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.content-area { flex: 3; }
.sidebar-area { flex: 1; }

section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 特色ボックスとパンフレットボタンの強調 */
.highlight-box {
    background-color: #f8fafc;
    border: 1px solid var(--gray-light);
    border-left: 5px solid var(--accent-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    text-align: center;
}

.highlight-box p {
    text-align: left;
    margin-bottom: 15px;
}

.btn-pdf {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white) !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(112, 36, 89, 0.4);
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-pdf:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(112, 36, 89, 0.5);
    opacity: 1;
}

/* ボタン下の補足テキスト */
.btn-sub-text {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-top: 15px;
}

h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

/* ==========================================================================
   アドミッションポリシー（policy.html）専用
   ========================================================================== */
.policy-card {
    border-top: 5px solid var(--secondary-color);
}

.policy-badge {
    color: var(--secondary-color);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.policy-official-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.policy-official-list li {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-left: 8px solid var(--secondary-color); /* 左の線を少し太くして強調 */
    padding: 25px;
    margin-bottom: 15px;
    border-radius: var(--border-radius); /* 角丸を統一 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.policy-official-list li:hover {
    transform: translateX(5px);
    background-color: #fdfafc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.list-num {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.4rem;
    margin-right: 20px;
    font-family: serif;
    min-width: 30px;
}

/* ==========================================================================
   入学者選抜・合格発表（nyushi.html用）
   ========================================================================== */
.pass-announcement-container {
    background-color: #fffaf0;
    padding: 30px 20px;
    border-bottom: 4px solid var(--accent-color);
}

.pass-announcement-box {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    padding: 30px 20px;
}

.pass-btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.btn-pass {
    flex: 1;
    max-width: 320px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white) !important;
    padding: 18px 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.btn-disabled {
    background: var(--gray-light) !important;
    color: var(--gray-dark) !important;
    pointer-events: none;
    opacity: 0.6;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.download-card {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
}

.file-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 15px;
    color: #fff;
    font-weight: bold;
}

.file-icon.pdf { background-color: var(--accent-color); }
.file-icon.word { background-color: var(--primary-color); }

/* ==========================================================================
   コース紹介・表（learning / job 用）
   ========================================================================== */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.learning-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.company-table, .job-single-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.company-table th, .job-single-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid var(--secondary-color);
}

.company-table td, .job-single-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

/* ゼブラ模様とホバー効果 */
.company-table tbody tr:nth-child(even),
.job-single-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.company-table tbody tr:hover,
.job-single-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* 番号列の固定幅と中央揃え */
.col-no, .col-num { width: 55px; text-align: center !important; }
.col-name, .col-company { width: auto; }

/* ==========================================================================
   サイドバーウィジェット
   ========================================================================== */
.widget {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-top: 4px solid var(--primary-color);
}

.side-menu-links { list-style: none; }
.side-menu-links li { margin-bottom: 10px; }
.side-menu-links a { font-size: 0.9rem; color: var(--text-color); }
.side-menu-links a:hover { color: var(--secondary-color); }

/* ==========================================================================
   新着情報リスト (Information)
   ========================================================================== */
.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    transition: var(--transition);
}

.news-list li:hover {
    background-color: #f8fafc;
}

/* NEWがついた項目の背景をほんのり強調 */
.news-list li.new-item {
    background-color: #fffdf0; /* ごく薄い黄色 */
    border-left: 4px solid #e53e3e; /* 左側にアクセントライン */
}

.news-list .date {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-right: 15px;
    min-width: 90px;
    font-family: monospace;
}

.label-new {
    display: inline-block;
    background-color: #e53e3e; /* 鮮やかな赤 */
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1;
}

.btn-note {
    display: block;
    background-color: #000;
    color: #fff !important;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-top: 10px;
}

/* ==========================================================================
   フッター
   ========================================================================== */
footer {
    background-color: var(--gray-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* ==========================================================================
   レスポンシブ対応 (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-info-area {
        text-align: center;
        margin-top: 15px;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-container {
        flex-direction: column;
    }

    .catchphrase { font-size: 1.8rem; }

    .main-layout {
        flex-direction: column;
    }

    .pass-btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-pass {
        width: 100%;
    }

    /* 表の崩れを防止するための横スクロール許可 */
    .modern-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .learning-grid {
        grid-template-columns: 1fr;
    }

    .mc-grid, .el-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .learning-card, .mc-card, .el-card, .industry-feature-box {
        padding: 20px;
    }

    /* スケジュール表のスマホ最適化 */
    .timeline-row {
        flex-direction: column;
    }

    .time-col {
        width: 100%;
        padding: 10px;
        border-bottom: 1px solid var(--gray-light);
    }

    .icon-col, .illustration-col {
        display: none;
    }
}

/* 会社一覧テーブルの幅調整（PCで広がりすぎないように中央に寄せる） */
.modern-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   タイムスケジュール（表形式レイアウト）
   ========================================================================== */
.schedule-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

/* テーブル全体のコンテナ */
.timeline-table {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 表の1行（横並びのフレックスボックス） */
.timeline-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    min-height: 100px;
}
.timeline-row:last-child {
    border-bottom: none;
}

/* 各列の基本定義 */
.time-col {
    width: 12%;
    min-width: 90px;
    text-align: center;
    font-weight: bold;
    color: #2d3748;
    font-size: 1rem;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.time-col .wave {
    margin: 2px 0;
    color: #718096;
}

.icon-col {
    width: 8%;
    min-width: 60px;
    text-align: center;
    padding: 15px;
    border-left: 1px solid #e2e8f0;
}
.schedule-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
}

.desc-col {
    flex: 1;
    padding: 20px;
    border-left: 1px solid #e2e8f0;
}
.desc-col h4 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: #1a202c;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.desc-col p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4a5568;
}

/* 授業時間のバッジ */
.badge-lecture {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: normal;
}

/* 右側のイラスト列 */
.illustration-col {
    width: 15%;
    min-width: 110px;
    text-align: center;
    padding: 10px;
    border-left: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.right-illustration {
    max-width: 90px;
    max-height: 80px;
    object-fit: contain;
}

/* ==========================================================================
   行ごとの背景色使い分け（左端のアクセント線付き）
   ========================================================================== */
/* 登校・朝のSHR（薄いグレー） */
.row-neutral {
    background-color: #f8fafc;
    border-left: 5px solid #64748b;
}
/* 授業（薄いブルー） */
.row-class {
    background-color: #f0f7ff;
    border-left: 5px solid #3b82f6;
}
/* 昼休み（薄いグリーン） */
.row-lunch {
    background-color: #f0fdf4;
    border-left: 5px solid #22c55e;
}
/* 放課後（薄いオレンジ） */
.row-after {
    background-color: #fffaf5;
    border-left: 5px solid #f97316;
}

/* レスポンシブ対応：画面が狭いときは縦並びに近くする */
@media (max-width: 768px) {
    .timeline-row {
        flex-wrap: wrap;
    }
    .time-col {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: row;
        gap: 10px;
        padding: 10px;
        justify-content: flex-start;
        background-color: rgba(0,0,0,0.02);
    }
    .time-col .wave { margin: 0 5px; }
    .icon-col {
        width: 50px;
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 10px;
    }
    .desc-col {
        width: calc(100% - 50px);
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 15px;
    }
    .illustration-col {
        width: 100%;
        border-left: none;
        padding: 10px;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   3つの学びのスタイル（縦並び・垂直リストレイアウト）
   ========================================================================== */
.mc-learning-tabs h3,
.el-learning-tabs h3 {
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 20px;
    font-weight: bold;
}

/* 縦並び用のコンテナ（カード同士の上下すき間を24pxに設定） */
.mc-vertical-list,
.el-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* カード単体のスタイル（横幅をいっぱいに広げ、左端にアクセント線を配置） */
.mc-card,
.el-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* ホバー時の挙動 */
.mc-card:hover,
.el-card:hover {
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08);
}

/* カードの上部（アイコンとタイトルを横並びにするヘッダー領域） */
.mc-card-header,
.el-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #edf2f7; /* タイトル下をすっきり区切る点線 */
    padding-bottom: 12px;
}

/* アイコン */
.mc-card-icon,
.el-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.mc-card-icon img,
.el-card-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* タイトルと見出しのセット */
.mc-card-titles,
.el-card-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 大見出し */
.mc-card h4,
.el-card h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a202c;
    font-weight: bold;
}

/* 小見出し（キャッチコピー） */
.mc-card h5,
.el-card h5 {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: normal;
}

/* 説明本文 */
.mc-card p,
.el-card p {
    margin: 0 0 16px 0;
    font-size: 0.95rem; /* 縦並びになって視認性が上がったため、少しだけ文字を読みやすく大きくしました */
    line-height: 1.7;
    color: #4a5568;
}

/* 関連科目タグのコンテナ */
.subject-tag-wrapper {
    margin-top: 4px;
}

/* 関連科目テキスト（背景グレーのボックス） */
.subject-tag {
    display: block;
    background-color: #f7fafc;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #4a5568; /* 文字を少し濃くして読みやすく改善しました */
    line-height: 1.5;
    border-left: 3px solid #cbd5e0; /* 左側に薄いグレーのアクセント */
}

/* ==========================================================================
   テーマ別アクセントカラー（縦並びにあわせて左端のボーダーに変更）
   ========================================================================== */
/* 設計・開発系（青） */
.theme-blue {
    border-left: 6px solid #3182ce;
}

/* 保全・制御系（オレンジ） */
.theme-orange {
    border-left: 6px solid #dd6b20;
}

/* 機械加工系（緑） */
.theme-green {
    border-left: 6px solid #38a169;
}

/* 電験・保全（黄） */
.theme-yellow {
    border-left: 6px solid #d69e2e;
}
/* 制御（紫） */
.theme-purple {
    border-left: 6px solid #805ad5;
}
/* 3D CAD（赤） */
.theme-red {
    border-left: 6px solid #e53e3e;
}
/* 機械加工（グレー） */
.theme-gray {
    border-left: 6px solid #718096;
}

/* ==========================================================================
   修了生の進路（job.html）最終修正版
   ========================================================================== */

/* 1. パソコン表示（1200pxなど）を基準：横並びに固定する */
.job-flex-container {
    display: flex !important;    /* 強制的にFlexboxを適用 */
    flex-direction: row !important; /* パソコンでは横並び */
    justify-content: space-between;
    gap: 4%;                     /* 左右のボックスの間のすき間 */
    margin-top: 30px;
    width: 100%;
}

.job-column-box {
    width: 48% !important;       /* 2列が綺麗に収まる横幅（半分ずつ） */
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    box-sizing: border-box;
}

.mech-box { border-top: 5px solid var(--primary-color); }
.elec-box { border-top: 5px solid var(--secondary-color); }

.job-column-box h3 {
    border-left: none;
    padding-left: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 10px;
}

/* 2. スマホ表示（画面幅768px以下）のときだけ「縦並び」に強制上書き */
@media screen and (max-width: 768px) {
    .job-flex-container {
        flex-direction: column !important; /* スマホでは縦並び */
        gap: 20px !important;              /* ボックス同士の上下のすき間 */
    }

    .job-column-box {
        width: 100% !important;            /* スマホでは横幅いっぱい */
    }
}
/* ==========================================================================
   専攻科レター（newsletter.html）専用
   ========================================================================== */
.letter-new-section {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.section-title-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.letter-date {
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-weight: bold;
}
.latest-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 5px 0 15px 0;
    border: none;
    padding: 0;
}
.btn-letter-dl {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 5px;
    transition: var(--transition);
}
.archive-year-block {
    background: #f8f9fa;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.archive-year-block h3 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}
.archive-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.archive-item {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--text-color);
    transition: var(--transition);
}
.archive-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   修了研究（syuken.html）専用
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* スマホで横スクロールを可能にする */
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 10px;
}

.table-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    margin-bottom: 30px;
}
.table-card .table-title {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    font-weight: bold;
}
.research-table {
    width: 100%;
    border-collapse: collapse;
}
.research-table th {
    background: #f8fafc;
    padding: 12px 15px;
    border-bottom: 2px solid var(--gray-light);
    text-align: left;
}
.research-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
}
.research-table .header-course {
    width: 90px;
    min-width: 90px; /* 縮まないように最小幅を固定 */
    text-align: center;
}
.research-table .cell-course {
    text-align: center;
    min-width: 90px;
}
.course-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap; /* バッジ内の文字を絶対に折り返さない */
}
.course-mech { background: #e0f2fe; color: #0369a1; }
.course-elec { background: #fdf2f8; color: #9d174d; }

.panel-link {
    display: inline-block;
    margin-left: 12px;
}
.panel-link a {
    display: inline-block;
    padding: 4px 15px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.panel-link a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ==========================================================================
   地域産業連携・メリットカード
   ========================================================================== */
.benefit-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* ==========================================================================
   中高生向けQ&A（アコーディオン）
   ========================================================================== */
.qa-container {
    max-width: 900px;
    margin: 10px auto 30px auto;
}

.qa-item {
    background: var(--white);
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    list-style: none;
}

.qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.qa-question {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color);
    position: relative;
    user-select: none;
}

.qa-question:hover { background-color: #f8fafc; }

.q-badge {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    width: 32px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.qa-answer {
    padding: 25px;
    background-color: #f8fafc;
    border-top: 1px solid #cbd5e0;
    display: flex;
    align-items: flex-start;
    line-height: 1.8;
}

.a-badge {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    width: 32px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-widget .school-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-widget .contact-text {
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: normal; /* スマホで住所がはみ出さないように自動改行を許可 */
}