.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.5rem;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    color: #2c3e50;
}

/* 本文の開始位置を「１．日時」に合わせる */
.seminar-section p {
    margin-left: 2em;
    text-align: left;
}

/* seminar-section内のリンクは親のサイズに合わせる */
.seminar-section a {
    font-size: inherit;
    color: #007bff;
}

/* メールリンク */
.seminar-section .email-link {
    color: #007bff;
    font-weight: bold;
    text-decoration: underline;
}

.seminar-section .email-link:hover {
    color: #c9302c;
}

/* 箇条書きのフォントサイズを統一 */

.seminar-section .seminar-info strong {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c3e50;
}

.seminar-section strong {
    font-size: inherit;
    font-weight: bold;
}

/* 2025年4月7日 追加 */
.centered-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 1.5em 0;
}

.center-wrapper {
    text-align: center;
    padding: 1em;
}

.centered-subtext {
    display: inline-block;
    font-size: 1.8rem;
    margin-top: -0.5em;
    margin-bottom: 1.5em;
    color: #333;
}

/* = 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;
    font-weight: bold;
}

/* メインコンテンツ */
.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;
}

/* 見学会情報 */
.tour-info {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #1a5490;
    font-size: 1.8rem;
    line-height: 1.7;
}

.tour-info p {
    color: #555;
    font-size: 1.5rem;
    line-height: 1.7;
    margin-left: 0.5rem;
}

/* ギャラリー - バランス重視のマソナリー風レイアウト */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.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: #333;
    display: block;
    text-decoration: none;
    color: inherit;
    animation: fadeInUp 1.2s ease-out both;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* バランス重視のレイアウト */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.medium {
    grid-column: span 1;
    grid-row: span 1;
}

/* 特定配置でバランスを調整 */
.gallery-item:nth-child(1) { /* 1番目: large - 左上大きく */
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) { /* 2番目: medium - 右上 */
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(3) { /* 3番目: medium - 右中 */
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(4) { /* 4番目: medium - 左中 */
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(5) { /* 5番目: medium - 中央中 */
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(6) { /* 6番目: large - 右下大きく */
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item:nth-child(7) { /* 7番目: large - 下部横長 */
    grid-column: span 2;
    grid-row: span 1;
}

/* 画像を完全にセルいっぱいに */
.gallery-item img {
    position: absolute;
    inset: 0;             /* top:0; right:0; bottom:0; left:0; と同義 */
    width: 100%;
    height: 100%;
    object-fit: cover;    /* 枠いっぱいにトリミングしつつアスペクト比維持 */
    object-position: center;
    display: block;       /* 念のためインライン余白を消す */
}

/* 大きな画像では全体が見えるように調整 */
.gallery-item.large img {
    object-fit: cover;
    object-position: center;
    background: #333;
}

/* 特に1番目の画像用の調整 */
.gallery-item:nth-child(1) img {
    object-fit: cover;
    object-position: center;
    background: #333;
    transform: scale(1.1);
    min-height: 100%;
}

/* ホバー効果の強化 */
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

/* 1番目の画像のホバー効果を調整 */
.gallery-item:nth-child(1):hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 2rem 1.2rem 1.2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(8px);
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

.caption h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    line-height: 1.3;
}

.caption p {
    font-size: 1.1rem;
    color: #F8F9FA;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    margin: 0;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.2s;
}
.gallery-item:nth-child(2) {
    animation-delay: 0.4s;
}
.gallery-item:nth-child(3) {
    animation-delay: 0.6s;
}
.gallery-item:nth-child(4) {
    animation-delay: 0.8s;
}
.gallery-item:nth-child(5) {
    animation-delay: 1.0s;
}
.gallery-item:nth-child(6) {
    animation-delay: 1.2s;
}
.gallery-item:nth-child(7) {
    animation-delay: 1.4s;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブデザイン - 基本サイズのみに簡素化 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .content {
        padding: 1.2rem;
    }

    .header-title h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .tour-info {
        font-size: 1.2rem;
        line-height: 1.6;
        padding: 0.8rem;
    }

    .tour-info p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .seminar-info .indent-text {
        font-size: 1.2rem;
        color: #2c3e50;
    }

    /* ギャラリー全体のパディングをリセット */
    .gallery {
        padding: 0;      /* ← ここを 0 に */
        gap: 1rem;       /* お好みでセル間隔だけ残す */
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item.medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* モバイルでは特別配置をリセット */
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(7) {
        grid-column: revert;
        grid-row: revert;
    }

    .caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.8);
        padding: 0.8rem;
        transition: none;
    }

    .caption h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .caption p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .gallery-item:hover .caption {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem;
    }

    .header-title h1 {
        font-size: 1.4rem;
    }

    .tour-info {
        font-size: 1.0rem;
        padding: 0.6rem;
    }

    .tour-info p {
        font-size: 0.9rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item.large,
    .gallery-item.medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    .caption {
        padding: 0.6rem;
    }

    .caption h3 {
        font-size: 0.9rem;
    }

    .caption p {
        font-size: 0.75rem;
    }
}

/* フォーラム案内記事専用スタイル */
.forum-intro {
    font-size: 1.8rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1a5490;
    margin: 1.5rem 0;
}


.forum-header {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.forum-details {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.detail-header {
    font-size: 1.4rem;
    color: #495057;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 1.6rem;
    line-height: 1.6;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.event-title {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.event-title .subtitle {
    font-size: 1.6rem;
    color: #6a1b9a;
    text-align: center;
    font-style: italic;
    margin: 0;
}

.pdf-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.forum-pdf {
    width: 100%;
    max-width: 800px;
    height: 1200px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pdf-notice {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.pdf-notice a {
    color: #007bff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .forum-details {
        padding: 1.5rem;
    }
    
    .detail-list strong {
        min-width: auto;
        display: block;
        margin-bottom: 0.3rem;
    }
    
    .forum-pdf {
        height: 500px;
    }
    
    .pdf-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .forum-intro {
        padding: 1rem;
    }
    
    .forum-details {
        padding: 1rem;
    }
    
    .event-title {
        padding: 1rem;
    }
    
    .event-title h4 {
        font-size: 1.1rem;
    }
    
    .forum-pdf {
        height: 400px;
    }
    
    .pdf-container {
        padding: 1rem;
    }
}

/* indent-text クラスの定義 */
.seminar-section .indent-text {
    font-size: 1.6rem;
    display: inline-block;
    margin-left: 2em;
    line-height: 1.6;
}