@charset "utf-8";

/* 全体設定 */
body {
    margin: 0;
    padding: 0;
    color: #666;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    background: #fff;
}

#container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3%;
}

/* ヘッダーエリア */
header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

/*
#mainimg img {
    width: 100%;
    border-radius: 10px;
    display: block;
}
*/

/* --- メイン画像エリアのベース設定 --- */
#mainimg {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* スライドアイテムの共通設定 */
.slide-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slider-fade-loop 20s linear infinite;
}

/* ★画像パスの一括指定：ここを変えるだけで全ページ変わります★ */
.slide-item:nth-child(1) { background-image: url("/~saita/IPL/images/header1.jpg"); animation-delay: 0s; }
.slide-item:nth-child(2) { background-image: url("/~saita/IPL/images/header2.png"); animation-delay: 4s; }
.slide-item:nth-child(3) { background-image: url("/~saita/IPL/images/header3.jpg"); animation-delay: 8s; }
.slide-item:nth-child(4) { background-image: url("/~saita/IPL/images/header4.jpg"); animation-delay: 12s; }
.slide-item:nth-child(5) { background-image: url("/~saita/IPL/images/header5.jpg"); animation-delay: 16s; }

/* 5枚ループ用のアニメーション（20秒サイクル）
   1枚あたり4秒（20%）。その中で1秒（5%）かけてフェードイン、
   2秒維持、1秒（5%）かけてフェードアウト 
*/
@keyframes slider-fade-loop {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}
.header-logo-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.header-logo-area h1 {
    color: #fff;
    font-size: 3.0em;
    font-weight: bold;
    text-shadow: 2px 2px 0 #666, -2px 2px 0 #666, 2px -2px 0 #666, -2px -2px 0 #666;
    margin: 0;
}

.header-logo-area p {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 0 #666;
    margin-top: 10px;
}

/* レイアウト：サイドバーとメイン */
#contents {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#sidebar {
    width: 240px;
    margin-right: 30px;
    flex-shrink: 0;
}

main {
    flex: 1;
    min-width: 300px;
}

/* メニュー（menubar） */
#menubar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #ddd;
}

#menubar li {
    border-bottom: 1px solid #ddd;
}

#menubar li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #444;
    font-weight: bold;
    transition: 0.3s;
}

#menubar li a:hover {
    background-color: #f0f7ff;
    color: #224acf;
}

/* 見出し：青いバー（h2） */
h2 {
    background: #224acf;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.3em;
    clear: both;
}

.section-title {
    font-weight: bold;
}

/* 学会発表情報（サイドバー内） */
#conference {
    margin-top: 30px;
}

#conference h3 {
    border: 2px solid #224acf;
    color: #224acf;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.conf-scroll {
    font-size: 0.85em;
    line-height: 1.5;
    padding: 0 5px;
}

/* 更新情報（dl） */
#new dl {
    padding: 0 10px;
}

#new dt {
    font-weight: bold;
    float: left;
    width: 8em;
    color: #224acf;
}

#new dd {
    margin-left: 8em;
    margin-bottom: 10px;
}

/* フッター */
footer {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

footer a {
    color: #224acf;
    text-decoration: none;
}

/* レスポンシブ設定（スマホ表示） */
@media screen and (max-width: 800px) {
    #contents {
        flex-direction: column;
    }
    #sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
    }
    .header-logo-area h1 {
        font-size: 1.8em;
    }
}

/* --- Newsページ固有の設定 --- */

/* 記事：PCでは写真を右、テキストを左に並べ、下に線を引く */
.news-article { 
    display: flex; 
    flex-direction: row-reverse; /* 写真を右にする設定 */
    gap: 25px; 
    margin-bottom: 40px; 
    padding-bottom: 30px; 
    border-bottom: 1px solid #eee; /* 記事ごとの区切りライン */
    align-items: flex-start;
}

/* 写真の枠とサイズ設定 */
.news-photo { 
    width: 220px; 
    flex-shrink: 0; 
    border: 1px solid #eee; 
    padding: 4px; 
    background: #fff; 
}

.news-photo img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

/* テキスト領域の調整 */
.news-text { 
    flex: 1; 
}

.news-date { 
    font-weight: bold; 
    color: #224acf; 
    font-size: 0.9em; 
    margin: 0 0 5px 0; 
}

.news-title { 
    font-weight: bold; 
    font-size: 1.15em; 
    margin: 0 0 12px 0; 
    color: #333; 
    line-height: 1.4;
}

/* Archives：月を横並びにする */
.archive-section { 
    margin-top: 60px; 
}

.archive-year-title { 
    font-weight: bold; 
    margin-bottom: 10px;
    display: block;
    color: #333;
}

.archive-list { 
    list-style: none; 
    padding-left: 20px; 
    margin: 0 0 30px 0;
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; /* 月同士の横の間隔 */
}

.archive-list li::before { 
    content: "? "; 
    color: #224acf; 
}

.archive-list a { 
    text-decoration: none; 
    color: #333; 
}

.archive-list a:hover { 
    text-decoration: underline; 
    color: #224acf; 
}

/* --- レスポンシブ設定：スマホ表示の切り替え --- */
@media screen and (max-width: 650px) {
    /* スマホでは「写真が上、テキストが下」の順に戻す */
    .news-article { 
        flex-direction: column; 
    }
    
    .news-photo { 
        width: 100%; /* 写真を横幅いっぱいに */
        margin-bottom: 15px;
    }

    .archive-list {
        gap: 15px; /* スマホでは月同士の間隔を少し詰める */
    }
}

/* --- Memberページ固有の設定 --- */

/* 役職?学年などのラベル */
.member-label {
    font-weight: bold;
    margin: 20px 0 5px 0;
    display: block;
    color: #333;
}

/* 氏名エリアのインデント */
.member-info {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* メールの小文字設定 */
.member-email {
    font-size: 0.9em;
    color: #666;
    display: block;
}

/* 補足テキスト（野村先生の注釈など） */
.member-note {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

/* 学生リスト（横並びにする場合はNewsのarchive-listを流用可能ですが、縦に並べる設定にします） */
.member-list {
    list-style: none;
    padding-left: 20px;
    margin: 0 0 20px 0;
}

.member-list li {
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 青い縦棒の見出し（h3）を共通化 */
.sub-category {
    border-left: 5px solid #224acf;
    padding-left: 10px;
    margin: 30px 0 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* ページ下部のリンクエリア */
.page-footer-link {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

/* --- Researchページ固有の設定 --- */

/* 各研究項目の外枠 */
.research-item { 
    margin-bottom: 60px; 
    padding-bottom: 40px; 
    border-bottom: 1px solid #eee;
}
.research-item:last-child { border-bottom: none; }

/* 研究タイトルの横棒デザイン */
.research-title { 
    font-weight: bold; 
    font-size: 1.25em; 
    color: #224acf; 
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.research-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 24px;
    background: #224acf;
    margin-right: 15px;
}

/* コンテンツエリア：PCで写真を右にする設定 */
.research-content { 
    display: flex;
    flex-direction: row-reverse; /* 写真を右に配置 */
    gap: 30px;
    margin-left: 20px;
    align-items: flex-start;
}

/* 図（写真）のエリア */
.research-figure { 
    width: 300px; /* Newsより少し大きめに設定 */
    flex-shrink: 0;
    text-align: center; 
}
.research-figure img { 
    width: 100%;
    height: auto; 
    border: 1px solid #ddd; 
    padding: 5px; 
    background: #fff;
}
.figure-caption { 
    font-size: 0.85em; 
    color: #666; 
    margin-top: 8px;
    line-height: 1.4;
}

/* 説明文 */
.research-desc { 
    flex: 1;
    line-height: 1.9; 
    color: #333; 
    text-align: justify;
}

/* Researchページのレスポンシブ（スマホ対応） */
@media screen and (max-width: 800px) {
    .research-content { 
        flex-direction: column; /* スマホでは図を上、文を下に */
        margin-left: 0;
    }
    .research-figure { 
        width: 100%;
        margin-bottom: 20px;
    }
}

/* --- Achievementページ固有の設定 --- */

/* メイン見出し内の補足文 */
.section-title small {
    font-size: 0.6em;
    font-weight: normal;
    color: #fff;
    margin-left: 15px;
    display: inline-block;
}

/* カテゴリ見出し */
.achievement-category { 
    border-left: 5px solid #224acf; 
    padding-left: 10px; 
    margin: 35px 0 15px; 
    font-size: 1.15em; 
    font-weight: bold; 
    color: #333;
}

/* リストの設定 */
.achievement-list { 
    list-style: decimal; 
    padding-left: 45px; 
    line-height: 1.7; 
    margin-bottom: 30px; 
}

.achievement-list li { 
    margin-bottom: 12px; 
    color: #444; 
    font-size: 0.95em; 
}

/* 学術誌?書籍タイトルのイタリック */
.journal-title, .book-title { font-style: italic; }

/* 発表者の下線（自動で少し隙間を開けて読みやすく） */
.achievement-list u {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* アーカイブ（全一覧）セクション */
.archive-link-section { 
    margin-top: 60px; 
    border-top: 2px solid #eee; 
    padding: 30px 20px;
    background: #fafafa;
}

.archive-link-section h3 {
    margin-top: 0; 
    font-size: 1.1em; 
    color: #333;
}

.archive-list-full { 
    list-style: none; 
    padding-left: 10px; 
    line-height: 2.8; 
    margin-top: 15px; 
}

.archive-list-full li::before { 
    content: "? "; 
    color: #224acf; 
    font-weight: bold; 
}

.archive-list-full a { 
    text-decoration: none; 
    color: #224acf; 
    font-weight: bold; 
}

/* --- Aboutページ（沿革?メッセージ?リンク） --- */

/* --- 1. 研究室の沿革（タイムライン） --- */
.history-container {
    margin: 20px 0 40px;
    padding: 0 10px;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 0.95em;
    line-height: 1.6;
    align-items: flex-start;
}

.history-list li:last-child {
    border-bottom: none;
}

.history-date {
    width: 90px;
    flex-shrink: 0;
    font-weight: bold;
    color: #224acf;
    font-family: Arial, sans-serif;
}

.history-content {
    flex: 1;
    color: #333;
}

.history-content strong {
    color: #000;
}

/* --- 2. メッセージセクション?装飾 --- */
.about-section {
    margin-bottom: 60px;
}

.about-section p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* 強調ボックス（野村先生のメッセージ?IPL Principles） */
.info-box {
    background: #f8faff;
    border: 1px solid #d0d9ff;
    border-left: 6px solid #224acf;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.info-box h3 {
    margin-top: 0 !important;
    color: #224acf !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    font-size: 1.2em !important;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* --- 3. カード形式リンク集（末尾） --- */
.link-grid-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

/* カテゴリ見出し（小） */
.link-grid-container h4 {
    margin: 30px 0 15px;
    font-size: 0.95em;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* グリッドレイアウト */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

/* カード本体のデザイン */
.link-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
    border-radius: 4px;
    position: relative;
}

/* ホバー時の挙動 */
.link-card:hover {
    border-color: #224acf;
    background: #f8faff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(34, 74, 207, 0.1);
}

.link-card strong {
    color: #224acf;
    font-size: 0.95em;
    line-height: 1.4;
    display: block;
}

.link-card span {
    font-size: 0.8em;
    color: #777;
    margin-top: 6px;
    display: block;
}

/* 留学実績などのバッジ */
.link-badge {
    display: inline-block;
    font-size: 0.9em; /* spanの中なので相対的に小さくなる */
    color: #999;
    font-style: normal;
    margin-top: 4px;
    font-weight: normal;
}

/* モバイル対応（スマホ等で日付と内容を縦並びにしたい場合） */
@media (max-width: 600px) {
    .history-list li {
        flex-direction: column;
    }
    .history-date {
        margin-bottom: 3px;
    }
    .link-grid {
        grid-template-columns: 1fr; /* 1列に固定 */
    }
}