/* 基本設定 */
body {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    color: #333;
    background-color: #fdfaf6;
    line-height: 1.8;
}

/* ヘッダー */
.header {
    background: linear-gradient(90deg, #1c94e2, #ff0000);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-logo {
    font-size: 1.8rem;
    font-weight: 500;
}

.header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.header nav li {
    margin-left: 2rem;
}

.header nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.header nav a:hover {
    opacity: 0.8;
}

/* メインコンテンツ */
main {
    margin-top: 80px; /* 固定ヘッダーの高さ分 */
}

/* ヒーローセクション */
#hero {
    background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), url('https://www.e-mirai.com/event/img/hero_bg.jpg');
    height: 85vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333333;
}

.hero-content h1 {
    font-size: 4.8rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0px 0px 5px rgba(255,255,255,0.8);
}

.hero-content p {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.hero-date {
	color:white;
    background-color: rgba(219, 47, 35, 0.8);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    border: 2px solid white;
}

/* 各コンテンツセクションの共通スタイル */
.content-section {
    padding: 80px 10%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ff0000);
    margin: 10px auto 0;
}

/* イベント紹介 (メイン・サブ) */
.event-item {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.event-item:nth-child(even) { /* evenに変更 */
    flex-direction: row-reverse;
}

.event-item img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-item h3 {
    font-size: 1.8rem;
    color: #333;
}

/* グリッドコンテナ (クラス出し物・キッチンカー) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 20px;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card h4 { /* 学科名用 */
    margin: 15px 0 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: #777;
}

.card h3 {
    font-size: 1.4rem;
    margin: 5px 20px 10px;
}

.card p {
    padding: 0 20px;
    margin: 0;
    font-size: 0.9rem;
}

/* バス時刻表 */
.schedule-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.schedule-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 400px;
}
.schedule-box h3 {
    font-size: 1.5rem;
    color: #ff8c00;
    margin-top: 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
th {
    background-color: #fff8e1;
}


/* フッター */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
    }
    .header nav {
        margin-top: 10px;
    }
    main {
        margin-top: 120px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .event-item, .event-item:nth-child(even) {
        flex-direction: column;
    }
    .event-item img {
        width: 100%;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}