/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
}

li { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ① ヘッダー */
.header {
    background-color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.logo:hover {
    opacity: 0.7;
}

.nav ul {
    display: flex;
    gap: 20px;
}

.nav a {
    font-weight: bold;
    font-size: 14px;
}

.nav a:hover {
    color: #8a2be2;
}

/* ② メインビジュアル */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, #f5f0ff 0%, #e6d5ff 100%);
    text-align: center;
}

.welcome-badge {
    display: inline-block;
    background: #8a2be2;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.8rem;
    color: #4b0082;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* 共通セクション設定 */
.section { padding: 80px 0; }
.bg-light { background-color: #faf8ff; }
.bg-purple-main { background-color: #4b0082; color: #fff; }
.white { color: #fff; }

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    color: #4b0082;
}

.section-title.white { color: #fff; }

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #8a2be2;
    border-radius: 2px;
}

/* ③ コンセプト */
.concept-box {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.highlight-text {
    margin-top: 25px;
    font-weight: bold;
    color: #8a2be2;
    font-size: 1.2rem;
}

/* ④・⑦ カード型レイアウト */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.card, .work-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: calc(33.333% - 25px);
    box-shadow: 0 5px 20px rgba(75,0,130,0.05);
    transition: all 0.3s ease;
    display: flex; /* Flexboxで内容を縦に並べる */
    flex-direction: column;
}


.card h3, .work-card h4 {
    margin-bottom: 10px;
    color: #4b0082;
}

.card:hover, .work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(138,43,226,0.15);
}

.work-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 活動カード内の画像ラッパー */
.activity-img-wrapper {
    margin-top: 15px; /* テキストとの間に余白 */
    overflow: hidden; /* 角丸を保つ */
    border-radius: 10px;
}

.activity-img-wrapper img {
    width: 100%;
    height: 180px; /* 画像の高さを固定 */
    object-fit: cover; /* 画像がはみ出さないように */
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .activity-img-wrapper img {
    transform: scale(1.05); /* ホバーで少し拡大 */
}


/* 受賞実績の特別装飾 */
.date {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.prize-text {
    font-weight: bold;
    color: #b8860b; /* ダークゴールデンロッド */
    font-size: 1.1rem;
}

.highlight-award {
    background: #fffdf0 !important; /* ほんのり金色の背景 */
}

/* ⑤ 活動履歴（Schedule boxの流用） */
.schedule-box {
    background: #f3ebff;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.schedule-box li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid rgba(138,43,226,0.1);
    padding-bottom: 10px;
}

.schedule-box li:last-child { border-bottom: none; }

.schedule-box li::before {
    content: '🚀'; /* ロケットアイコンで活動感を出す */
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* 活動履歴内の画像スタイル */
.activity-log-img {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 400px; /* 適度なサイズに制限 */
    margin-left: auto; /* 右寄せにする場合 */
    margin-right: auto; /* 中央寄せにする場合 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.activity-log-img img {
    width: 100%;
    height: auto;
    display: block;
}


/* ⑧ 参加方法 */
.join-text {
    text-align: center;
    margin-bottom: 40px;
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sns-btn {
    background: #fff;
    color: #4b0082;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sns-btn:hover {
    background: #9370db;
    color: #fff;
    transform: scale(1.05);
}

/* ⑨ フッター */
.footer {
    padding: 60px 0;
    text-align: center;
    background: #f8f6fb;
}

.copyright {
    font-size: 0.85rem;
    margin-top: 15px;
    color: #999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .hero-title { font-size: 1.8rem; }
    .nav ul { 
        font-size: 12px; 
        gap: 10px; 
        flex-wrap: wrap; 
        justify-content: center;
    }
    .card, .work-card { width: 100%; }
    .schedule-box { padding: 20px; }
    .activity-log-img {
        max-width: 100%; /* スマホでは幅いっぱいに */
    }
}