.seminar-section {
    padding: 40px 20px;
    background-color: #fff;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem; /* 全体の基準文字サイズ */
    line-height: 1.8; /* 行間も統一 */
    color: #333; /* 必要に応じて文字色も統一 */
}

/* 見出し */
.seminar-section h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
}

.seminar-section h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-top: 30px;
    border-bottom: 1px solid #007bff;
    padding-bottom: 5px;
}

/* 本文の開始位置を「１．日時」に合わせる */
.seminar-section p {
    margin-left: 2em; /* 「１．日時」のインデントと統一 */
    text-align: left; /* 左寄せ */
}

/* seminar-section内のリンクは親のサイズに合わせる */
.seminar-section a {
    font-size: inherit;
    color: #007bff;
}

/* リスト */
.seminar-section ul,
.seminar-section ul li {
    font-size: 1rem; /* 明示的に指定 */
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 20px;
}

.seminar-section ul li {
    margin-bottom: 8px;
}

/* メールリンク */
.seminar-section .email-link {
    color: #007bff;
    font-weight: bold;
    text-decoration: underline;
}

.seminar-section .email-link:hover {
    color: #c9302c;
}

/* 箇条書きの文字を大きく */

.seminar-section .seminar-info,
.seminar-section .seminar-info li {
    font-size: 1.6rem;
    line-height: 1.9;
}

.seminar-section strong {
    font-size: inherit; /* 親要素のサイズを引き継ぐ */
    font-weight: bold; /* 太字は維持 */
}

/* 2025年4月7日 追加 */
.centered-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1em;
}

.center-wrapper {
    text-align: center;
}

.centered-subtext {
    display: inline-block;
    font-size: 1.8rem;
    margin-top: -0.5em;
    margin-bottom: 1.5em;
    color: #333;
}

/* タイトルを中央寄せするスタイル */
.centered-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 1.5em 0;
}

/* 既存のセンターラッパーに適宜マージン調整 */
.center-wrapper {
    padding: 1em;
}

/* = 2025年6月25日　産学連携DAY記事追加にともなう スタイル追加= */

/* 基本スタイル */
.body-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body-wrapper {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header-title {
    text-align: center;
    padding: 2rem 0;
    background: rgb(255, 255, 255);
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-title h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* メインコンテンツ */
.content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

/* 見学会情報 */
.tour-info {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #1a5490;
    font-size: 1.8rem;
    line-height: 1.7;
}

.tour-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.tour-info p {
    color: #555;
    font-size: 1.5rem;
    line-height: 1.7;
    margin-left: 0.5rem;
}

/* ギャラリー */
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px;
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    display: block;
    text-decoration: none;
    color: inherit;
    animation: fadeInUp 0.6s ease-out;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item.large {
    grid-row: span 1;
    height: 300px;
}

.gallery-item.medium {
    grid-row: span 1;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

.caption h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #FFEB3B;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.caption p {
    font-size: 1.6rem;
    color: #FFFFFF;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);

}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .content {
        padding: 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        min-height: auto;
    }

    .gallery-item.large {
        grid-row: span 1;
        min-height: 300px;
    }

    .gallery-item.medium {
        grid-row: span 1;
        min-height: 300px;
    }

    .caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.8);
        padding: 1rem;
        transition: none;
    }

    .gallery-item:hover .caption {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem;
    }

    .article-text,
    .tour-info {
        padding: 1rem;
    }

    .tour-info p {
        font-size: 1rem;
    }

    /* スマートフォン用：ギャラリー画像を縦配置でさらに大きく */
    .body-wrapper .gallery-item {
        min-height: 350px;
    }

    .body-wrapper .gallery-item img {
        min-height: 350px;
    }
}
