@charset "UTF-8";

/* メインコンテンツ */
.main-content {
    min-height: 100vh;
    padding-top: 80px;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* カテゴリセクション */
.categories-section {
    padding: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* カテゴリグリッド（3列×2行） */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* カテゴリカード */
.category-card {
    position: relative;
    height: 400px;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.4);
}

/* カード画像 */
.card-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 画像オーバーレイ（暗くして文字を読みやすく） */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: all 0.4s ease;
}

.category-card:hover .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(14, 165, 233, 0.3) 0%,
        rgba(14, 165, 233, 0.5) 50%,
        rgba(6, 182, 212, 0.7) 100%
    );
}

/* カードテキスト */
.card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.category-card:hover .card-text {
    transform: translateY(-10px);
}

/* カードラベル（英語の小文字） */
.card-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* カードタイトル（日本語） */
.card-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* カードサブタイトル（説明文） */
.card-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.category-card:hover .card-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* タブレット表示（2列） */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .category-card {
        height: 350px;
    }

    .card-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

/* モバイル表示（1列） */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        height: 300px;
    }

    .card-text {
        padding: 2rem;
    }

    .card-title {
        font-size: 1.8rem;
    }

    .card-subtitle {
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .categories-section {
        padding: 1rem;
    }
}

/* 小型モバイル表示 */
@media (max-width: 480px) {
    .category-card {
        height: 250px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-text {
        padding: 1.5rem;
    }

    .page-header {
        padding: 3rem 1rem 1.5rem;
        margin-bottom: 2rem;
    }
}
