/* =================================================
   CEA公式サイト 統合CSS (トップ & 研究会 共通)
   ================================================= */

:root {
    --cea-blue: #004098;
    --cea-orange: #e67e22;
    --cea-orange-dark: #d35400;
    --cea-bg: #f4f7f9;
    --text-dark: #333;
}

/* --- 基本設定 --- */
.cea-modern-style {
    margin: 0;
    padding: 0;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background-color: var(--cea-bg);
    color: var(--text-dark);
    line-height: 1.8;
}
/* --- ヘッダー・ヒーロー (写真の魅力を活かす設定に更新) --- */
.cea-modern-style .hero {
    /* 写真のファイル名が header.jpg でない場合は適宜変更してください */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url("../image/header.jpg");
    background-size: cover;
    background-position: center 30%; 
    padding: 100px 20px; 
    text-align: center;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px; 
}

.cea-modern-style .hero h1 { 
    font-size: 2.6rem; 
    margin: 0 0 10px; 
    color: #fff !important; 
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7); 
    letter-spacing: 0.05em;
}

.cea-modern-style .hero p { 
    font-size: 1.2rem; 
    color: #fff !important; 
    margin: 0; 
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.5;
}
/* --- ナビゲーション --- */
.cea-modern-style .main-nav {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.cea-modern-style .main-nav ul {
    display: flex; flex-wrap: wrap; justify-content: center;
    list-style: none; max-width: 1200px; margin: auto; padding: 0;
}
.cea-modern-style .main-nav a {
    display: block; color: var(--cea-blue) !important;
    padding: 15px 12px; text-decoration: none; font-size: 0.9rem; font-weight: bold;
}
.cea-modern-style .main-nav a:hover { color: var(--cea-orange) !important; background: #f8f9fa; }

/* --- 共通セクション設定 --- */
.cea-modern-style section, 
.cea-modern-style .container {
    max-width: 1100px; margin: 60px auto; padding: 0 20px;
}
.cea-modern-style h2 {
    text-align: center; font-size: 1.8rem; color: var(--cea-blue);
    margin-bottom: 40px; position: relative; padding-bottom: 15px;
}
.cea-modern-style h2::after {
    content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background: var(--cea-orange);
}

/* --- ボタン --- */
.cea-modern-style .btn-main, 
.cea-modern-style .link-btn {
    display: inline-block; background: var(--cea-orange); color: #fff !important;
    padding: 12px 35px; border-radius: 5px; text-decoration: none;
    font-weight: bold; transition: 0.3s; border: none; cursor: pointer;
}
.cea-modern-style .btn-main:hover, 
.cea-modern-style .link-btn:hover { background: var(--cea-orange-dark); transform: translateY(-2px); }

/* --- 【トップページ用】研究会グリッド（タイル形式） --- */
.cea-modern-style .kenkyu-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.cea-modern-style .kenkyu-card {
    background: #fff; padding: 25px; border-radius: 8px; text-decoration: none;
    color: inherit; transition: 0.3s; border: 1px solid #eee;
}
.cea-modern-style .kenkyu-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.cea-modern-style .kenkyu-card h3 { color: var(--cea-blue); margin-top: 0; font-size: 1.2rem; }

/* --- 【研究会詳細ページ用】カードスタイル（縦並び・詳細版） --- */
.cea-modern-style .grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 30px;
}
.cea-modern-style .card {
    background: #fff; padding: 30px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-top: 6px solid var(--cea-blue);
}
.cea-modern-style .card h2 { text-align: left; font-size: 1.4rem; padding: 0; margin-bottom: 15px; }
.cea-modern-style .card h2::after { display: none; }
.cea-modern-style .sewanin-box {
    background: #f8f9fa; padding: 12px; border-radius: 6px; font-size: 0.9rem;
    border-left: 4px solid #ccc; margin: 20px 0;
}

/* --- テーブル・画像 --- */
.cea-modern-style .table-wrap { overflow-x: auto; margin: 15px 0; }
.cea-modern-style table { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: #fff; }
.cea-modern-style th, .cea-modern-style td { border: 1px solid #ddd; padding: 10px; text-align: left; }
.cea-modern-style th { background: #f0f4f8; color: var(--cea-blue); }
.cea-modern-style img { max-width: 100%; height: auto; border-radius: 8px; }

/* --- フッター --- */
.cea-modern-style footer {
    background: #333; color: #fff; text-align: center; padding: 40px 20px; margin-top: 60px;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .cea-modern-style .main-nav ul { flex-direction: column; }
    .cea-modern-style .grid { grid-template-columns: 1fr; }
}
/* --- 基本リセット & 共通設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f4f6f9;
}

a {
    text-decoration: none;
    color: #004098;
    transition: 0.3s;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* --- ヘッダー（ヒーローエリア） --- */
header.hero {
    background-image: url("image/header.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
     Pel: flex;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    height: 25vh;
    min-height: 150px;
}

header.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.hero-inner h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.hero-inner p {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* --- ナビゲーション --- */
nav.main-nav {
    background: #004098;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav.main-nav li {
    margin: 0;
}

nav.main-nav a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

nav.main-nav a:hover {
    background: #003070;
}

/* --- ページタイトル --- */
.page-title {
    padding: 30px 20px;
    text-align: center;
    background: #e9e9e9;
    border-bottom: 1px solid #ddd;
}

.page-title h2 {
    font-size: 1.8rem;
    color: #004098;
    margin-bottom: 10px;
}

.page-title p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* --- メインコンテンツレイアウト --- */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr; /* スマホは1列 */
    gap: 30px;
}

@media(min-width: 992px) {
    .grid {
        grid-template-columns: 1fr 1fr; /* PCは2列 */
    }
}

/* --- カードデザイン --- */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #004098;
}

.card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #004098;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
    color: #444;
    display: flex;
    align-items: center;
}

.card h3::before {
    content: "■";
    color: #004098;
    margin-right: 8px;
    font-size: 0.8rem;
}

.card hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px dashed #ddd;
}

/* --- ボタン風リンク --- */
.link-btn {
    display: inline-block;
    background: #004098;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.link-btn:hover {
    background: #e67e22; /* オレンジ色に変化 */
}

/* --- テーブルデザイン --- */
.table-wrap {
    overflow-x: auto;
    margin: 15px 0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.schedule-table th, .schedule-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.schedule-table th {
    background: #f0f0f0;
    color: #004098;
    white-space: nowrap;
}

/* --- フッター --- */
footer {
    background: #004098;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

/* --- レスポンシブ (スマホ用) --- */
@media(max-width: 768px) {
    header.hero { height: 20vh; }
    .hero-inner h1 { font-size: 1.4rem; }
    
    .schedule-table thead { display: none; }
    .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td {
        display: block;
        width: 100%;
    }
    .schedule-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
    }
    .schedule-table td {
        border: none;
        padding: 5px 0;
    }
    .schedule-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #004098;
        font-size: 0.8rem;
    }
}

/* ===============================
基本設定
=============================== */

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

body{
font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
background:#f4f6f9;
color:#333;
line-height:1.7;
}

img{
max-width:100%;
height:auto;
display:block;
border-radius:6px;
}

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

.hero{
background-image:url("image/header.jpg");
background-size:cover;
background-position:center;
height:180px;
display:flex;
align-items:center;
justify-content:center;
color:#fff;
text-align:center;
position:relative;
}

.hero::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.4);
}

.hero-inner{position:relative;z-index:2;}

.hero h1{font-size:30px;}
.hero p{font-size:14px;}

/* ===============================
ナビ
=============================== */

.main-nav{background:#004098;}

.main-nav ul{
display:flex;
flex-wrap:wrap;
justify-content:center;
}

.main-nav a{
color:#fff;
padding:10px 14px;
display:block;
font-size:14px;
}

.main-nav a:hover{background:#003070;}

/* ===============================
ページタイトル
=============================== */

.page-title{
text-align:center;
padding:30px 20px;
}

.page-title h2{
font-size:28px;
color:#004098;
margin-bottom:10px;
}

/* ===============================
コンテンツ
=============================== */

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

/* ===============================
研究会グリッド
=============================== */

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:30px;
align-items:start;
}

/* ===============================
カード
=============================== */

.card{
background:#fff;
padding:22px;
border-radius:10px;
box-shadow:0 3px 12px rgba(0,0,0,0.08);
transition:0.3s;
}

.card:hover{
transform:translateY(-4px);
box-shadow:0 6px 18px rgba(0,0,0,0.12);
}

.card h2{
color:#004098;
font-size:20px;
margin-bottom:10px;
}

.card h3{
margin-top:15px;
margin-bottom:8px;
font-size:16px;
border-left:4px solid #004098;
padding-left:6px;
}

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

.link-btn{
display:inline-block;
margin-top:10px;
background:#004098;
color:#fff;
padding:6px 14px;
border-radius:4px;
font-size:14px;
}

.link-btn:hover{background:#003070;}

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

footer{
margin-top:50px;
background:#004098;
color:#fff;
text-align:center;
padding:20px;
}

/* ===============================
スマホ最適化
=============================== */

@media(max-width:768px){

.hero{height:140px;}

.hero h1{font-size:22px;}

.grid{
grid-template-columns:1fr;
gap:20px;
}

}
/* --- 事務局便り：年別ボタン --- */
.year-links {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.year-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.year-btns a {
    background: #f0f4f8;
    color: #004098;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #d0dbe9;
}
.year-btns a:hover {
    background: #004098;
    color: #fff !important;
    text-decoration: none;
}

/* --- 事務局便り：記事リスト (dl/dt/dd) --- */
.news-section dl {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.news-section dt {
    font-size: 1.15rem;
    font-weight: bold;
    color: #004098;
    margin-bottom: 12px;
    border-left: 5px solid #e67e22; /* アクセントにオレンジ */
    padding-left: 15px;
}
.news-section dd {
    margin-left: 0;
    line-height: 1.8;
}

/* --- 写真グリッド --- */
.report-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.report-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 画像の比率を保ったまま枠に収める */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}
.report-photos img:hover {
    transform: scale(1.03);
}

/* --- ライトボックス (拡大表示) --- */
.cea-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center; align-items: center;
}
.cea-lightbox img {
    max-width: 90%; max-height: 90%;
    border: 3px solid #fff;
}