/* ===== 基本設定 ===== */
body {
    margin: 0;
    font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
    background-color: #f4efe6;
    color: #4a4a4a;
    line-height: 1.8;
}

/* ===== ヘッダー ===== */
header {
    background: #ffffff;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header img {
    max-width: 380px;
    width: 90%;
    height: auto;
}

/* ===== ヒーローエリア ===== */
.hero {
    background: url("../images/pamphlet-main.jpg") center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.hero h1 {
    position: relative;
    font-size: 2.4rem;
    z-index: 1;
    font-weight: 500;
}

/* ===== セクション ===== */
.section {
    padding: 70px 20px;
    max-width: 1000px;
    margin: auto;
}

.section h2 {
    color: #9c4f3a;
    margin-bottom: 20px;
    font-size: 1.9rem;
}

/* ===== イベント ===== */
.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.event-item {
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
}

.event-item:hover {
    transform: translateY(-5px);
}

.event-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-item div {
    padding: 18px;
}

/* ===== お問い合わせ ===== */
.contact {
    background: #9c4f3a;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.contact h2 {
    color: white;
}

/* ===== フッター ===== */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    background: #eee;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
}

/* ===== ヘッダー構造 ===== */
.header-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo img {
    max-width: 220px;
    height: auto;
}

/* ===== ナビメニュー ===== */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav-menu li a:hover {
    color: #9c4f3a;
}

/* 下線アニメーション */
.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #9c4f3a;
    transition: 0.3s;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* ===== スマホ対応 ===== */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }
}

/* ===== ページヒーロー ===== */
.page-hero {
    background: #9c4f3a;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.page-hero h1 {
    margin: 0;
    font-size: 2rem;
}

/* ===== Aboutページ装飾 ===== */
.about-list {
    padding-left: 20px;
    line-height: 2;
}

.about-gallery {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.about-gallery img {
    width: 100%;
    border-radius: 12px;
}
/* ===== 施設紹介レイアウト ===== */
.facility-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
}

.facility-section:nth-child(even) {
    background: #f8f4ec;
}

.facility-section.reverse {
    flex-direction: row-reverse;
}

.facility-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.facility-text {
    flex: 1;
}

.facility-text h2 {
    color: #9c4f3a;
    margin-bottom: 15px;
}

/* ===== スマホ対応 ===== */
@media (max-width: 900px) {
    .facility-section {
        flex-direction: column;
        text-align: center;
    }

    .facility-section.reverse {
        flex-direction: column;
    }
}
/* ===== アクセス ===== */
.access-info {
    margin-bottom: 20px;
    font-size: 1rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
/* ===== イベントページ ===== */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
    position: relative;
}

.event-card:hover {
    transform: translateY(-6px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-date {
    font-size: 0.9rem;
    color: #9c4f3a;
    font-weight: bold;
}

/* NEWバッジ */
.event-card.new::before {
    content: "NEW";
    position: absolute;
    top: 15px;
    left: 15px;
    background: #9c4f3a;
    color: white;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* ===== セクションタイトル ===== */
.event-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #9c4f3a;
}

.event-title.past {
    margin-top: 80px;
    color: #888;
}

/* ===== 過去イベントの見た目 ===== */
.past-card {
    opacity: 0.7;
    filter: grayscale(20%);
}

.past-card:hover {
    opacity: 1;
    filter: none;
}
/* ===== お問い合わせページ ===== */
.contact-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    text-align: center;
}

.contact-card h2 {
    color: #9c4f3a;
    margin-bottom: 20px;
}

.contact-large {
    font-size: 1.5rem;
    font-weight: bold;
}

.contact-large a {
    text-decoration: none;
    color: #4a4a4a;
}

.contact-large a:hover {
    color: #9c4f3a;
}
/* ===== フッター共通デザイン ===== */
.site-footer {
    background: #9c4f3a;
    color: white;
    padding-top: 50px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    margin-top: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-copy {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
/* ===== ギャラリー画像 ===== */
.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* ===== モーダル ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
/* ===== ギャラリー ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-text {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: #fff;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.hero-text h1 {
    font-size: 2.5rem;
}

@media (max-width:768px){
    .hero-slider{
        height:50vh;
    }
}
/* ===== バナー ===== */
.banner-section {
    padding: 60px 10%;
    background: #f9f6f0;
}

.banner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.banner {
    display: block;
    padding: 40px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.youtube-banner {
    background: linear-gradient(135deg, #cc0000, #ff4444);
}

.download-banner {
    background: linear-gradient(135deg, #006400, #2e8b57);
}

.banner-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 0.95rem;
}
/* ===== ほんわかリンクバナー ===== */
.banner-section {
    padding: 60px 8%;
    background: #f5f1e8; /* やわらかベージュ */
}

.banner-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.banner {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 18px;
    text-decoration: none;
    color: #444;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.banner h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #006400; /* アクセントカラー */
}

.banner p {
    font-size: 0.9rem;
    color: #666;
}

.banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* タブレット */
@media (max-width: 1024px) {
    .banner-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ */
@media (max-width: 600px) {
    .banner-container {
        grid-template-columns: 1fr;
    }
}
