/* 基本設定 */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #212121;
    line-height: 1.6;
}

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

/* ヘッダー・ナビゲーション */
header {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

nav ul li a {
    text-decoration: none;
    color: #212121;
    font-weight: bold;
}

/* ヒーローエリア */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('hero-img.png') no-repeat center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF9F2;
    text-align: center;
    font-size: 140%;
}
.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 文字に影をつけてくっきりさせる */
}

.hero-content p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 文字に影をつけてくっきりさせる */
}

/* ボタン */
.btn {
    display: inline-block;
    background: #ff8c00; /* 温かみのあるオレンジ */
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
}

.btn:hover {
    background: #e67e00;
}

/* スマホ用ハンバーガーメニューの簡易設定 */
/* --- PCではハンバーガーを隠す --- */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1000; /* 最前面に */
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #E65100; /* 高齢者にも見えやすい濃いオレンジ */
    border-radius: 3px;
    transition: all 0.4s; /* アニメーション速度 */
}

/* 三本線の位置固定 */
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* --- スマホ時の設定 --- */
@media (max-width: 768px) {

    .hero {
        width: 100vw;           /* 画面の横幅いっぱいに指定 */
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;       /* もし角を丸めていれば、端まで届くように0にする */
    }

    .hamburger {
        display: block; /* スマホで表示 */
    }

    nav ul {
        display: none; /* 通常時はメニューを隠す */
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

    /* JSで 'active' クラスがついた時のメニュー表示 */
    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 20px 0;
        font-size: 1.5rem;
    }

    /* --- 三本線を「×」にするアニメーション --- */
    .hamburger.active span:nth-child(1) {
        top: 10px;
        transform: rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0; /* 真ん中の線を消す */
    }
    .hamburger.active span:nth-child(3) {
        top: 10px;
        transform: rotate(-45deg);
    }
}

/* --- レイアウトの調整 --- */
.content-section {
    padding: 80px 0; /* 前後の余白を大きく取ると読みやすくなります */
}

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

.section-title {
    font-size: 2rem;
    color: #E65100; /* 暖かみのあるオレンジ */
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* 下線に少し遊び心（波線など）を入れるとアニメ風に合います */
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #FFB74D;
    border-radius: 2px;
}

/* --- 活動について（Flexbox） --- */
.about-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* スマホで縦並びにするため */
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.1rem;
}

.rounded-img {
    width: 100%;
    border-radius: 20px; /* 角を丸くして優しさを演出 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- 里親募集（Grid） --- */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 自動で列数を調整 */
    gap: 30px;
}

.animal-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.animal-card:hover {
    transform: translateY(-5px); /* マウスを載せた時に少し浮く */
}

.animal-img {
    position: relative;
    height: 200px;
}

.animal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF5252;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.animal-info {
    padding: 20px;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
}


/* 日付エリアの微調整（複数日程用） */
.event-date .day-small {
    font-size: 1.5rem;
    font-weight: 800;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 5px;
    padding-top: 5px;
}

/* 注意書きのスタイル */
.event-notice {
    background: #FFF9F2;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #721c24; /* 少し注意を促す色 */
    margin-bottom: 15px;
}

/* リンクボタンの横並び */
.event-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-insta {
    display: block;
    text-align: center;
    background: #E1306C; /* Instagramカラー */
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-event {
    display: block;
    text-align: center;
    background: #2CB696; /* 既存のグリーン */
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;

}
