@charset "utf-8";
/* ▼ 全体の設定 ▼ */
#ous-event-flyer-2026 {
    font-family: &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Kaku Gothic ProN&quot;, &quot;Hiragino Sans&quot;, Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    /* スマホで見やすいよう左右に余白を確保 */
    padding: 20px 15px; 
}

/* リセットCSS（崩れ防止） */
#ous-event-flyer-2026 * { box-sizing: border-box; }
#ous-event-flyer-2026 ul { list-style: none; padding: 0; margin: 0; }
#ous-event-flyer-2026 a { text-decoration: none; }

/* ヘッダーエリア */
#ous-event-flyer-2026 .flyer-hero {
    background: #005bac; /* 大学カラー */
    background: linear-gradient(135deg, #005bac 0%, #0088cc 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}
#ous-event-flyer-2026 .flyer-hero h1 {
    font-size: 28px;
    margin: 10px 0 20px;
    color: #fff;
    line-height: 1.3;
}
#ous-event-flyer-2026 .flyer-info-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-weight: bold;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 5px;
}

/* コンテンツ見出し */
#ous-event-flyer-2026 h2 {
    font-size: 22px;
    color: #005bac;
    border-bottom: 2px solid #e6005c;
    padding-bottom: 10px;
    margin-top: 50px;
    margin-bottom: 20px;
}
#ous-event-flyer-2026 h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}
#ous-event-flyer-2026 p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
}

/* タイムスケジュール */
#ous-event-flyer-2026 .timeline-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}
#ous-event-flyer-2026 .timeline-row {
    display: flex;
    border-bottom: 1px dotted #ccc;
    padding: 10px 0;
}
#ous-event-flyer-2026 .timeline-time {
    font-weight: bold;
    color: #005bac;
    width: 80px;
    flex-shrink: 0;
}

/* カードグリッド（2列レイアウト） */
#ous-event-flyer-2026 .card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
#ous-event-flyer-2026 .card-item {
    width: calc(50% - 10px); /* PCは2列 */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* スマホ対応（1列レイアウト） */
@media (max-width: 600px) {
    #ous-event-flyer-2026 .card-item { width: 100%; }
    #ous-event-flyer-2026 .flyer-hero h1 { font-size: 22px; }
    #ous-event-flyer-2026 .flyer-info-bar { flex-direction: column; gap: 5px; }
}

/* カード内パーツ */
#ous-event-flyer-2026 .card-img-area {
    background-color: #eee;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 12px;
}
/* 画像挿入時の調整 */
#ous-event-flyer-2026 .card-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#ous-event-flyer-2026 .card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 学科ラベル */
#ous-event-flyer-2026 .tag-label {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    color: #fff;
    border-radius: 3px;
    margin-bottom: 8px;
    align-self: flex-start;
    background: #666; /* デフォルト */
}
/* ▼ 学科別カラー設定（3色分類版） ▼ */

/* 1. 理学系グループ（緑 #41a54b） */
.color-math, /* 数学 */
.color-phys, /* 物理 */
.color-chem, /* 化学 */
.color-base, /* 宇宙・基礎理 */
.color-bio   /* 動物 */
{ 
    background-color: #41a54b !important; 
}

/* 2. 工学系グループ（ピンク #e6336d） */
.color-mech, /* 機械 */
.color-elec, /* 電気 */
.color-info, /* 情報 */
.color-arch  /* 建築 */
{ 
    background-color: #e6336d !important; 
}

/* 3. 生命系グループ（水色 #00afdd） */
.color-life  /* 生命 */
{ 
    background-color: #00afdd !important; 
}

/* 申し込みボタン */
#ous-event-flyer-2026 .btn-link {
    display: block;
    background: #e6005c;
    color: #fff !important;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: auto;
}
#ous-event-flyer-2026 .btn-link:hover { opacity: 0.8; }

/* アクセスエリア */
#ous-event-flyer-2026 .access-box {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

/* ▼ リスト（箇条書き）の表示崩れ修正パッチ ▼ */

/* リスト全体の余白や装飾を強制リセット */
#ous-event-flyer-2026 ul,
#ous-event-flyer-2026 li {
    list-style: none !important;       /* ●などの点を消す */
    margin: 0 !important;              /* 外側の余白をゼロに */
    padding: 0 !important;             /* 内側の余白をゼロに */
    background: none !important;       /* 背景画像（アイコン）があれば消す */
    text-indent: 0 !important;         /* 1文字目の字下げをなしに */
    border: none !important;           /* 枠線があれば消す */
}

/* 「疑似要素」と呼ばれる、CSSで自動付与されるアイコン等を消す */
#ous-event-flyer-2026 li::before,
#ous-event-flyer-2026 li::after {
    content: none !important;
    display: none !important;
}






/* ▼ タイトル画像の調整用CSS ▼ */
#ous-event-flyer-2026 .flyer-hero h1 {
    /* 元の文字用スタイルを一部リセット */
    background: none; 
    padding: 0;
    border: none;
}

#ous-event-flyer-2026 .hero-img {
    width: 100%;             /* 横幅いっぱいに表示 */
    max-width: 600px;        /* ただしPCで大きくなりすぎないように制限 */
    height: auto;            /* 高さは自動調整 */
    display: block;
    margin: 0 auto;          /* 中央寄せ */
}


/* ▼ お問い合わせエリアの設定 ▼ */
#ous-event-flyer-2026 .contact-box {
    background: #f8f9fa;       /* 薄いグレーの背景 */
    border-top: 4px solid #005bac; /* 上に青い線 */
    padding: 40px 20px;
    margin-top: 50px;
    text-align: center;
    border-radius: 8px;
}

/* ▼ お問い合わせ（表示のみ版） ▼ */
#ous-event-flyer-2026 .contact-email-box {
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
    background: #fff;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    border: 2px solid #005bac;
    color: #005bac;
    
    /* 選択しやすくする設定 */
    user-select: all; /* クリックで一発選択できる（ブラウザによる） */
    cursor: text;     /* カーソルをテキスト選択の形にする */
}




/* ▼ カード内の「対象・定員」表示エリア（横並び版） ▼ */
#ous-event-flyer-2026 .card-specs {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-top: auto;
    margin-bottom: 15px;
    border: 1px solid #eee;
    
    /* 横並びにする設定 */
    display: flex;
    flex-wrap: wrap; /* スマホで幅が足りないときは自動で折り返す */
    align-items: center;
}

#ous-event-flyer-2026 .card-specs li {
    font-size: 12px; /* 横並びのため少し文字を小さく */
    color: #555;
    
    display: flex;
    align-items: center;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 1つ目の項目（対象）だけに右側に区切り線をつける */
#ous-event-flyer-2026 .card-specs li:first-child {
    margin-right: 10px !important;
    padding-right: 10px !important;
    border-right: 1px solid #ccc; /* 縦のグレー線 */
}

/* スマホなどで折り返された時に線が邪魔にならないよう調整 */
@media (max-width: 400px) {
    #ous-event-flyer-2026 .card-specs li:first-child {
        border-right: none;
        margin-bottom: 5px !important;
    }
}

#ous-event-flyer-2026 .spec-label {
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* 「【対象】」などが改行されないようにする */
}


/* ▼ 注意事項エリアのデザイン調整 ▼ */
#ous-event-flyer-2026 .note-section {
    background: #fff;       /* 白背景で読みやすく */
    border: 1px solid #ddd; /* 薄い枠線 */
    border-radius: 5px;
    padding: 20px;
    margin-top: 15px;
    text-align: left;       /* 左寄せ */
}

/* 項目（持ち物・服装）の行 */
#ous-event-flyer-2026 .note-row {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee; /* 下に区切り線 */
    padding-bottom: 15px;
}
#ous-event-flyer-2026 .note-row:last-of-type {
    border-bottom: none;    /* 最後の線は消す */
    padding-bottom: 0;
}

/* 【持ち物】【服装】の見出し部分 */
#ous-event-flyer-2026 .note-head {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

/* 箇条書きリストの微調整 */
#ous-event-flyer-2026 .note-list li {
    margin-bottom: 4px !important;
    line-height: 1.5;
}





#ous-event-flyer-2026 .note-section {
    background: #fff;
    padding: 0 10px; /* 左右の余白を少し調整 */
}

/* 2. 小見出し「持ち物」「服装」のデザイン */
#ous-event-flyer-2026 .note-row {
    margin-bottom: 25px;
}

#ous-event-flyer-2026 .note-head {
    display: inline-block;        /* ブロック状にして背景をつける */
    font-size: 16px;
    font-weight: bold;
    color: #005bac;               /* 文字色は濃い青 */
    background: #eef6ff;          /* 背景は薄い青 */
    padding: 6px 15px;            /* ラベルの内側の余白 */
    border-radius: 4px;           /* 角を少し丸く */
    border-left: 4px solid #005bac; /* 左にアクセントの線 */
    margin-bottom: 10px;          /* 下の文字との間隔 */
}

/* 本文の文字サイズ調整 */
#ous-event-flyer-2026 .note-body {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 5px;            /* 少し右にずらす */
}

/* 箇条書きリストの調整 */
#ous-event-flyer-2026 .note-list {
    margin: 0;
    padding: 0;
}
#ous-event-flyer-2026 .note-list li {
    list-style: none !important;
    margin-bottom: 5px !important;
    padding-left: 0 !important;
}

/* ▼ 注意事項エリアのデザイン調整（デザイン強化版） ▼ */
#ous-event-flyer-2026 .access-box {
    margin-top: 40px;
}

/* 1. 大見出し「参加にあたっての注意事項」「アクセス」のデザイン */
#ous-event-flyer-2026 .access-box h3 {
    font-size: 22px;
    color: #333;
    background: transparent;
    padding: 10px 15px;
    border-left: 8px solid #005bac; /* 左側の青い線 */
    
    /* ▼ ここを修正：下線を「白」に変更しました ▼ */
    border-bottom: 2px solid #fff;  
    
    margin-bottom: 25px;
    font-weight: bold;
}
#ous-event-flyer-2026 .note-section {
    background: #fff;
    
    /* 修正1：内側の余白（padding）を増やす */
    /* これで「持ち物」が天井にくっつかず、赤い枠の下にも余白が生まれます */
    padding: 30px 20px; 
    
    border: 1px solid #ddd;
    border-radius: 5px;

    /* 修正2：外側・下の余白（margin）を増やす */
    /* これで「アクセス」の見出しとの間隔がしっかり空きます */
    margin-bottom: 50px; 
}

/* 2. 小見出し「持ち物」「服装」のデザイン */
#ous-event-flyer-2026 .note-row {
    margin-bottom: 25px;
}

#ous-event-flyer-2026 .note-head {
    display: inline-block;        /* ブロック状にして背景をつける */
    font-size: 16px;
    font-weight: bold;
    color: #005bac;               /* 文字色は濃い青 */
    background: #eef6ff;          /* 背景は薄い青 */
    padding: 6px 15px;            /* ラベルの内側の余白 */
    border-radius: 4px;           /* 角を少し丸く */
    border-left: 4px solid #005bac; /* 左にアクセントの線 */
    margin-bottom: 10px;          /* 下の文字との間隔 */
}

/* 本文の文字サイズ調整 */
#ous-event-flyer-2026 .note-body {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 5px;            /* 少し右にずらす */
}

/* 箇条書きリストの調整 */
#ous-event-flyer-2026 .note-list {
    margin: 0;
    padding: 0;
}
#ous-event-flyer-2026 .note-list li {
    list-style: none !important;
    margin-bottom: 5px !important;
    padding-left: 0 !important;
}

/* ※注意書き（赤文字） */
#ous-event-flyer-2026 .note-caution {
    margin-top: 30px;
    padding: 15px;
    background: #fff5f5;          /* 薄い赤の背景 */
    border: 1px solid #ffcccc;    /* 赤い枠線 */
    border-radius: 5px;
    color: #c00;
    font-size: 14px;
    font-weight: bold;
}

#ous-event-flyer-2026 .note-caution p {
    margin-bottom: 5px;
    margin-top: 0;
}

/* ▼ アクセス情報のデザイン調整 ▼ */
#ous-event-flyer-2026 .route-row {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #ddd; /* 左にグレーのライン */
}

#ous-event-flyer-2026 .route-dest {
    font-size: 16px;
    color: #005bac;  /* 青文字 */
    margin: 0 0 5px 0;
    font-weight: bold;
}

#ous-event-flyer-2026 .route-detail {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

#ous-event-flyer-2026 .access-footer-notes {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 13px;
    color: #444;
}

#ous-event-flyer-2026 .access-footer-notes p {
    margin-bottom: 5px;
    margin-top: 0;
}
#ous-event-flyer-2026 .access-footer-notes p:last-child {
    margin-bottom: 0;
}


/* ▼ バス時刻表ボタンのデザイン ▼ */
#ous-event-flyer-2026 .bus-btn-area {
    text-align: center;
    margin: 20px 0; /* 上下に余白 */
}
#ous-event-flyer-2026 .bus-timetable-btn {
    display: inline-block;
    background: #005bac;      /* 大学カラーの青 */
    color: #fff !important;   /* 文字色を白に */
    padding: 12px 30px;       /* ボタンの大きさ */
    border-radius: 50px;      /* 丸みをつける */
    font-weight: bold;
    text-decoration: none;    /* 下線を消す */
    box-shadow: 0 3px 6px rgba(0,0,0,0.15); /* 影をつけて立体的に */
}
#ous-event-flyer-2026 .bus-timetable-btn:hover {
    opacity: 0.9;             /* マウスを乗せた時の変化 */
    transform: translateY(-2px); /* 少し浮き上がる */
}


/* --- 既存のデザイン調整 --- */

/* 外枠の微調整 */
#ous-event-flyer-2026 .contact-box {
    background: #f8f9fa;
    border-top: 4px solid #005bac;
    padding: 40px 20px;
    margin-top: 50px;
    text-align: center;
    border-radius: 8px;
}

/* --- ここから下が新しい追加CSS --- */

/* 電話とメールを包むエリア */
#ous-event-flyer-2026 .contact-links-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* スマホで折り返す */
    gap: 20px;       /* ボタン同士の間隔 */
    margin-top: 25px;
}

/* 個別のアイテムグループ */
#ous-event-flyer-2026 .contact-item-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 「お電話」「メール」という小さい見出し */
#ous-event-flyer-2026 .contact-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* 共通のボタンデザイン（元のcontact-email-boxを継承） */
#ous-event-flyer-2026 .contact-btn {
    display: inline-block;
    background: #fff;
    color: #005bac;
    border: 2px solid #005bac;
    border-radius: 50px; /* 丸くする */
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none; /* 下線を消す */
    transition: all 0.3s ease; /* ホバー時の動き */
    min-width: 200px; /* 幅をある程度揃える */
}

/* TEL/MAILの文字アイコン */
#ous-event-flyer-2026 .contact-btn .icon {
    font-size: 14px;
    margin-right: 8px;
    color: #005bac;
    opacity: 0.8;
}

/* マウスを乗せた時の動き */
#ous-event-flyer-2026 .contact-btn:hover {
    background: #005bac;
    color: #fff;
}
#ous-event-flyer-2026 .contact-btn:hover .icon {
    color: #fff;
}

/* 注釈（平日9:00〜など） */
#ous-event-flyer-2026 .contact-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* --- スマホ用調整（画面が狭い時） --- */
@media screen and (max-width: 600px) {
    #ous-event-flyer-2026 .contact-links-wrapper {
        flex-direction: column; /* 縦並びにする */
        gap: 30px;
    }
    
    #ous-event-flyer-2026 .contact-btn {
        width: 100%; /* 横幅いっぱいに */
        box-sizing: border-box;
        font-size: 16px; /* 文字を少し小さく */
    }
}

/* --- メールアドレス選択用の追加CSS --- */

/* 1. メールボタンのカーソルを「テキスト選択」の形にする */
#ous-event-flyer-2026 .contact-btn.mail {
    cursor: text; /* 指マークではなく、Iマークにする */
}

/* 2. アドレス部分をクリックしたら「全選択」にする魔法のCSS */
#ous-event-flyer-2026 .address-text {
    user-select: all;          /* ユーザーがクリックすると全選択 */
    -webkit-user-select: all;  /* Safari/Chrome用 */
    -moz-user-select: all;     /* Firefox用 */
    
    /* 以下は見た目の調整 */
    display: inline-block;
}

/* （念のため）マウスを乗せた時に青く反転する動きは維持 */
#ous-event-flyer-2026 .contact-btn.mail:hover {
    background: #005bac;
    color: #fff;
}
#ous-event-flyer-2026 .contact-btn.mail:hover .icon {
    color: #fff;
}


/* --- ▼▼ 新しい共通申し込みボタンのCSS ▼▼ --- */

/* ボタンを囲むエリア */
#ous-event-flyer-2026 .entry-btn-area {
    text-align: center;
    margin: 30px 0 50px 0; /* 上下の余白 */
    padding: 0 10px;
}

/* ボタンの上の誘導テキスト */
#ous-event-flyer-2026 .entry-guide {
    font-size: 14px;
    font-weight: bold;
    color: #e6005c;
    margin-bottom: 10px;
}

/* 大きなボタン本体 */
#ous-event-flyer-2026 .big-entry-btn {
    display: inline-block;
    background: #e6005c;      /* 目立つピンク色 */
    color: #fff !important;   /* 文字は白 */
    font-size: 22px;          /* 文字大きく */
    font-weight: bold;
    text-decoration: none;
    padding: 15px 40px;       /* ボタンの大きさ */
    border-radius: 50px;      /* 丸く */
    box-shadow: 0 4px 10px rgba(230, 0, 92, 0.4); /* ふんわり影 */
    transition: all 0.3s ease;
    line-height: 1.2;
    width: 100%;              /* スマホでは幅いっぱい */
    max-width: 400px;         /* PCでは広がりすぎないように */
}

/* ボタン内のサブテキスト */
#ous-event-flyer-2026 .btn-sub {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.9;
}

/* ホバー時の動き */
#ous-event-flyer-2026 .big-entry-btn:hover {
    background: #cc0052;      /* 少し濃く */
    transform: translateY(-2px); /* 浮き上がる */
    box-shadow: 0 6px 12px rgba(230, 0, 92, 0.5);
}

/* --- カード内ボタンを消した後の微調整 --- */
#ous-event-flyer-2026 .card-content {
    padding-bottom: 20px; /* ボタンがなくなった分、下の余白を少し確保 */
}

/* --- 申込期間のデザイン --- */
#ous-event-flyer-2026 .period-box {
    margin-bottom: 10px;
    font-family: sans-serif; /* 数字を見やすく */
}

/* 「申込期間」という黒いラベル */
#ous-event-flyer-2026 .period-label {
    display: inline-block;
    background: #333;      /* 黒背景 */
    color: #fff;           /* 白文字 */
    font-size: 13px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 8px;     /* 日付との間隔 */
    vertical-align: middle;
}

/* 日付の文字 */
#ous-event-flyer-2026 .period-date {
    font-size: 18px;       /* 少し大きく強調 */
    font-weight: bold;
    color: #333;
    vertical-align: middle;
}

/* スマホで日付が長くなって改行された時の調整 */
@media (max-width: 480px) {
    #ous-event-flyer-2026 .period-date {
        display: block;    /* 改行して表示 */
        margin-top: 5px;
        font-size: 16px;
    }
}



/* ▼ 後援（教育委員会）表示エリアのデザイン ▼ */
#ous-event-flyer-2026 .support-info-box {
    text-align: center;         /* 文字を中央寄せ */
    font-weight: bold;          /* 太字 */
    font-size: 16px;            /* 少し大きめの文字 */
    color: #005bac;             /* テーマカラーの濃い青 */
    background: #eef6ff;        /* 背景は薄い青（他の見出しと統一） */
    border: 2px solid #005bac;  /* 枠線で囲んで強調 */
    padding: 12px 10px;         /* 内側の余白 */
    margin-bottom: 30px;        /* 下の文章との間隔 */
    border-radius: 6px;         /* 角を少し丸く */
    line-height: 1.4;           /* スマホで改行した時に読みやすく */
}

/* スマホで見た時の微調整 */
@media (max-width: 600px) {
    #ous-event-flyer-2026 .support-info-box {
        font-size: 14px;        /* スマホでは少し文字を小さくして収まりよく */
        margin-bottom: 25px;
    }
}

/* --- 受付終了時のボタンデザイン --- */
#ous-event-flyer-2026 .closed-btn {
    display: inline-block;
    background: #ccc;          /* グレーに変更 */
    color: #fff !important;    /* 文字は白 */
    font-size: 20px;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    line-height: 1.2;
    width: 100%;
    max-width: 400px;
    cursor: not-allowed;       /* カーソルを禁止マークに */
    box-shadow: none;          /* 影を消して平坦に */
}

#ous-event-flyer-2026 .closed-btn .btn-sub {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.8;
}