/* styles.css */

/* 基本スタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fbf7f0; /* 背景色の設定 */
    color: #333; /* 文字色の基本設定 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-color: #7c9630; /* ヘッダーの背景色を指定 */
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* ヘッダーに軽い影を追加 */
}

header .logo img {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e0ae2d; /* ヘッダー内リンクのホバー色をフッター色に */
}

.hero {
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    color: #7c9630;
    text-align: center;
    padding: 150px 0 100px 0; /* ヘッダーの高さを考慮 */
    margin-top: 80px; /* ヘッダーの固定位置を考慮 */
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.btn {
    background-color: #7c9630; /* ボタンの背景色を指定 */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #6a8230; /* ボタンのホバー色を少し暗く */
}

section {
    padding: 60px 0;
}

.about, .events, .news {
    background-color: #fbf7f0; /* セクションの背景色を指定 */
}

.about h2, .events h2, .news h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #7c9630; /* 見出しの色をヘッダー色に */
}

.event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.event {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    flex: 1 1 calc(33.333% - 40px);
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #e0ae2d; /* フッターの背景色を指定 */
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 0;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

footer nav ul li {
    display: inline;
    margin: 0 10px;
}

footer nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

footer nav ul li a:hover {
    color: #7c9630; /* フッター内リンクのホバー色をヘッダー色に */
}

/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ハンバーガーメニューがアクティブなときのスタイル */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ナビゲーションリンクが開いているときのスタイル */
.nav-links.open {
    display: block;
}

/* レスポンシブスタイル */
@media (max-width: 992px) {
    .event {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #7c9630; /* モバイルメニューの背景色をヘッダー色に */
        position: absolute;
        top: 70px; /* ヘッダーの高さに合わせて調整 */
        left: 0;
    }

    nav ul.nav-links.open {
        display: flex;
    }

    nav ul.nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .event-list {
        flex-direction: column;
        align-items: center;
    }

    .event {
        flex: 1 1 100%;
        max-width: 500px;
    }

    .hero {
        padding: 100px 0 50px 0;
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px 0;
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    header {
        padding: 15px 0;
    }

    .logo img {
        height: 40px;
    }
}

/* イベント画像のスタイル */
.event img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    object-fit: cover;
    /*max-height: 200px;  画像の高さを制限（必要に応じて調整） */
}

/* イベント記事のスタイル調整（オプション） */
.event {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.event h3 {
    color: #7c9630; /* 見出しの色をヘッダー色に統一 */
    margin: 10px 0;
}

.event p {
    margin: 5px 0;
}

.event .btn {
    margin-top: auto; /* ボタンを下部に配置 */
}



/* モダンなスタイル追加（ヘッダー・フッターの色は既存のものを踏襲） */
:root {
    --primary-color: #7c9630; /* 元々のヘッダー色を保持 */
    --primary-light: #9fbc41;
    --primary-dark: #5e7225;
    --secondary-color: #e0ae2d; /* 元々のフッター色を保持 */
    --secondary-light: #f2ca62;
    --background-color: #fbf7f0;
    --white: #ffffff;
    --black: #333333;
    --gray-light: #f5f5f5;
    --gray: #cccccc;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--black);
}

/* ヘッダー - 元の色合いを維持 */
header {
    background-color: var(--primary-color); /* 元の緑色を維持 */
    color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img {
    height: 50px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--white); /* 元の白文字を維持 */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--white); /* 下線も白色を維持 */
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active {
    font-weight: 700;
}

/* モダンなヒーローセクション */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 180px 0 120px;
    margin-top: 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* モダンなボタン */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(124, 150, 48, 0.25);
}

.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(124, 150, 48, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* 紹介セクション */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

/* イベントセクション */
.events {
    padding: 100px 0;
    background-color: var(--background-color);
}

.events .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.events .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.event {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.event:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.event-header {
    position: relative;
}

.event-header img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9em;
}

.event-content {
    padding: 30px;
}

.event h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.event h3 {
    color: var(--black);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 20px;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.event-info {
    background-color: var(--gray-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.event-info-title {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.event-info-title svg {
    margin-right: 10px;
}

.event-info ul, .event-info ol {
    margin: 0;
    padding-left: 20px;
}

.event-info li {
    margin-bottom: 8px;
}

/* スケジュールセクション用 */
.timeline {
    position: relative;
    margin: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 45px;
}

.timeline-time {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    left: 11px;
    top: 5px;
    border: 3px solid var(--white);
}

/* フッター - 元の色合いを維持 */
footer {
    background-color: var(--secondary-color); /* 元の黄色を維持 */
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-about {
    margin-top: 15px;
    max-width: 400px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.5);
}

/* ハンバーガーメニューのモダン化 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white); /* 元の色を維持 */
    border-radius: 3px;
    transition: var(--transition);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color); /* メニュー背景も元の色を維持 */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 0;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.2em;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .btn, .btn-secondary {
        display: block;
        width: 80%;
        margin: 10px auto;
        text-align: center;
    }
}

