/* =================================================================
目次
1. 基本設定 (リセット、bodyなど)
2. ヘッダーとナビゲーション (ハンバーガーメニュー)
3. ヒーローセクション (メインビジュアル、左上のバナー)
4. コンテンツセクション (各レポートカード)
5. レスポンシブ対応 (画面幅が狭い時のスタイル)
6. アニメーション定義 (@keyframes)
================================================================= */

/* --- 1. 基本設定 --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    background-color: #f9f9f9;
}


/* --- 2. ヘッダーとナビゲーション --- */
header {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* ハンバーガーメニュー本体 */
.hamburger-menu {
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.hamburger-menu:hover {
    background-color: rgba(168, 168, 168, 0.8);
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 28px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s;
}

/* ハンバーガーメニュー (アクティブ時) */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ナビゲーションメニュー本体 */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(180, 180, 180, 0.95);
    transition: right 0.5s;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 80px 40px;
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    display: block;
    padding: 15px 0;
}


/* --- 3. ヒーローセクション --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 背景画像 */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    animation: hero-animation 10s infinite;
}

.hero-image1 {
    background-image: url('hero.png');
}

.hero-image2 {
    background-image: url('hero2.png');
    animation-delay: 5s;
}

/* 左上のバナー (スクロールに追従) */
.hero-banner {
    position: fixed; /* スクロールしても追従するように変更 */
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 120px;
    transition: transform 0.3s ease;
    animation: cute-animation 5s ease-in-out infinite;
}

.hero-banner:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* スクロールダウンの矢印 */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 2.5s infinite;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}


/* --- 4. コンテンツセクション --- */
.content-section {
    padding: 60px 20px;
    text-align: center;
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.category-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* レポートカードのコンテナ */
.report-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* レポートカード本体 */
.report-box {
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.report-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.report-box:hover img {
    transform: scale(1); /* 強調するために拡大率をアップ */
}

.report-box-title {
    font-weight: bold;
    padding: 15px;
    font-size: 1.1rem;
}

/* テキストのみのレポートカード */
.report-text-content {
    height: 200px;
    padding: 20px;
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    color: #333;
}

.report-text-content .text-inner {
    max-width: 100%;
}

.report-text-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #005a9e;
}

.report-text-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* --- 5. レスポンシブ対応 --- */
@media (max-width: 768px) {
    .hero {
        height: 100dvh;
    }

    .content-section {
        padding: 40px 15px;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .report-container {
        flex-direction: column;
        align-items: center;
    }

    .report-box {
        width: 95%;
        max-width: 350px;
    }
}


/* --- 6. アニメーション定義 --- */

/* ヒーロー背景画像のアニメーション */
@keyframes hero-animation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* スクロールダウン矢印のアニメーション */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-20px) rotate(45deg);
    }
    60% {
        transform: translateY(-10px) rotate(45deg);
    }
}

/* 左上バナーのアニメーション */
@keyframes cute-animation {
    0% { transform: translateY(0) rotate(0); }
    20% { transform: translateY(-8px) rotate(-3deg); }
    40% { transform: translateY(0) rotate(3deg); }
    60% { transform: translateY(-4px) rotate(0); }
    80% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(0) rotate(0); }
}