/* ========================================
   Global Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0047AB;
    --secondary-blue: #1E5DA8;
    --light-blue: #E8F1F8;
    --dark-blue: #003380;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F5F8FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --accent-green: #4CAF50;
    --accent-orange: #FF9800;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 1.5rem;
    text-shadow: 2px 2px 0 rgba(76, 175, 80, 0.2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(to right, var(--accent-green), var(--primary-blue), var(--accent-orange));
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Header
   ======================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-text i {
    font-size: 2rem;
}

.nav-desktop {
    display: none; /* Always hidden - use hamburger menu for all screen sizes */
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.menu-btn {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    font-size: 0.95rem;
}

.menu-btn:hover {
    background-color: var(--dark-blue);
}

.hamburger {
    display: flex; /* Always visible for all screen sizes */
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.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(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-link {
    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-align: right;
}

.mobile-menu-link:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

/* ========================================
   Hero Banner Carousel (with side previews)
   ======================================== */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: visible;
    background-color: var(--bg-light);
    padding: 2rem 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.hero-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.8s ease-in-out;
    overflow: hidden;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

.hero-slide:hover img {
    transform: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 71, 171, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.2);
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.about-overlay-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 6px 24px rgba(0, 71, 171, 0.25);
    border: 2px solid rgba(76, 175, 80, 0.4);
    max-width: 900px;
    margin: 0 auto;
}

.about-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--primary-blue));
    border-radius: 2px;
}

.about-overlay-box .about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.about-overlay-box .about-text p {
    margin-bottom: 1.5rem;
}

.about-overlay-box .about-text strong {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.15rem;
}

.about-overlay-box .about-notice {
    margin-top: 1.5rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.85) 0%, rgba(255, 251, 225, 0.85) 100%);
    border-left: 4px solid #ff9800;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.15);
}

.about-overlay-box .about-notice p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.about-overlay-box .about-notice i {
    color: #ff9800;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Old About Section styles - keeping for compatibility */
.about-content {
    background-color: var(--light-blue);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.about-icon img {
    width: 80px;
    height: auto;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.about-illustration {
    text-align: center;
    margin-top: 2rem;
}

.about-illustration img {
    max-width: 300px;
    height: auto;
}

.about-notice {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 5px solid #ff9800;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.about-notice p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.about-notice i {
    color: #ff9800;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Contents Section
   ======================================== */
.contents-section {
    padding: 2rem 0 5rem 0;
    background-color: var(--bg-light);
}

.contents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.content-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.content-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-play {
    display: none;
}

.content-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
}

.coming-soon-badge {
    background-color: var(--accent-orange);
}

/* Coming Soon Card Styles */
.content-card.coming-soon {
    cursor: default;
    opacity: 0.85;
}

.content-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.coming-soon-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: var(--accent-orange);
    opacity: 0.3;
}

.content-link.disabled {
    color: var(--text-light);
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

.content-info {
    padding: 1.5rem;
}

.content-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.content-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.content-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.content-link:hover {
    gap: 1rem;
}

.content-card.coming-soon {
    opacity: 0.8;
}

.content-card.coming-soon:hover {
    transform: none;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.feature-card {
    background-color: var(--light-blue);
    padding: 1.75rem 1.4rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 71, 171, 0.15);
    border: 3px solid rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.feature-card:hover {
    /* Hover action removed */
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--text-white);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ========================================
   Courses Section
   ======================================== */
.courses-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.courses-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.course-detail {
    background-color: var(--bg-white);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
    border: 4px solid transparent;
}

.course-detail:hover {
    /* Hover action removed */
}

.course-detail.entry {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.course-detail.beginner {
    border-color: var(--secondary-blue);
    background: linear-gradient(135deg, #ffffff 0%, #e8f1f8 100%);
}

.course-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-white);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.course-detail.entry .course-badge {
    background: linear-gradient(135deg, var(--accent-green), #66bb6a);
}

.parent-child-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #FFB6C1, #FFC0CB, #FFD1DC);
    color: #E91E63;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-left: 0.75rem;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
    border: 2px solid #FFE4E1;
    animation: gentlePulse 2s ease-in-out infinite;
}

.parent-child-badge i {
    color: #E91E63;
    font-size: 0.85rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

.course-detail h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.course-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 71, 171, 0.1);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features i {
    color: var(--accent-green);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.resources-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.resource-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 152, 0, 0.3);
    position: relative;
}

.resource-card::after {
    content: '📚';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.15;
}

.resource-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 12px 28px rgba(255, 152, 0, 0.3);
    border-color: var(--accent-orange);
}

.resource-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--accent-orange), #ffb74d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.resource-card h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.resource-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.resource-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
}

.resource-btn i {
    font-size: 1.1rem;
}

/* ========================================
   Resources Banner Section (Button Style)
   ======================================== */
.resources-banner-section {
    padding: 2rem 0 1rem 0;
    background-color: var(--bg-light);
}

/* ========================================
   Quick Access Buttons (after Hero Banner)
   ======================================== */
.quick-access-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border-bottom: 1px solid rgba(0, 71, 171, 0.1);
}

.quick-access-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.quick-btn i {
    font-size: 1.3rem;
}

.video-btn {
    background: linear-gradient(135deg, #ff9800 0%, #ff6b00 100%);
    color: white;
}

.video-btn:hover {
    background: linear-gradient(135deg, #ffa726 0%, #ff8a3d 100%);
    box-shadow: 0 6px 24px rgba(255, 152, 0, 0.4);
}

.material-btn {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
}

.material-btn:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #388e3c 100%);
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
}

/* Additional Resources Section (before News) */
.additional-resources-section {
    padding: 2rem 0 1rem 0;
    background-color: var(--bg-white);
}

.resources-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Resource Cards - Left Image, Right Text Layout */
.resource-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.25);
}

.resource-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

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

.resource-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.resource-content i {
    font-size: 1.5rem;
}

/* Old resource-button styles (for backwards compatibility) */
.resource-button {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    background: transparent;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.2);
    transition: all 0.3s ease;
    height: 150px;
}

.resource-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.resource-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    padding: 1.5rem 1rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 2;
}

.resource-title-overlay i {
    font-size: 1.5rem;
}

.resource-button:hover .resource-banner-img {
    transform: scale(1.05);
}

.resource-button:hover .resource-title-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding-bottom: 1.2rem;
}

.resource-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.3);
}

.digest-button {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.digest-button:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.leaflet-button {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.leaflet-button:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.leaflet-button:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.what-is-button {
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.2);
}

.what-is-button:hover {
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.3);
}

.guide-button {
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.guide-button:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* Old resource styles (kept for compatibility) */
.resource-thumbnail {
    width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-height: 300px;
}

.resource-card:hover .resource-thumbnail img {
    transform: scale(1.05);
}

.resource-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* ========================================
   How To Section
   ======================================== */
.howto-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
}

.howto-flow {
    max-width: 900px;
    margin: 3rem auto;
}

.howto-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.howto-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.step-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

.step-content p small {
    font-size: 0.85rem;
    opacity: 0.9;
}

.step-image {
    margin-top: 1rem;
    text-align: center;
}

.step-image i {
    font-size: 3rem;
    color: var(--accent-green);
    opacity: 0.7;
}

.step-image-box {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 800px;  /* 300px → 800px に拡大 */
    margin-left: auto;
    margin-right: auto;
}

/* ステップ⑤（会員登録）の画像のみ小さく */
.howto-step:nth-child(9) .step-image-box {
    max-width: 500px;  /* 800px → 500px（約62.5%に縮小） */
}

.step-image-link {
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.step-image-link:hover {
    transform: scale(1.02);  /* 1.05 → 1.02 に縮小（大きい画像なので控えめに） */
}

.step-image-box img {
    width: 100%;
    height: auto;
    border-radius: 12px;  /* 10px → 12px に拡大 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);  /* 影を強化してバナーと同等に */
    transition: transform 0.3s ease;
}

.step-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-icon-fallback i {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.5;
}

.howto-arrow {
    width: 100%;
    text-align: center;
    color: var(--primary-blue);
    font-size: 2rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.howto-content {
    max-width: 900px;
    margin: 3rem auto;
}

.howto-courses {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.course-box {
    background-color: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-blue);
}

.course-box.beginner {
    border-left-color: var(--secondary-blue);
}

.course-box h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.course-box p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.course-box ul {
    list-style: none;
    padding: 0;
}

.course-box ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.course-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

/* E-learning Notice */
.elearning-notice {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-blue);
}

.notice-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.notice-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.notice-text {
    text-align: center;
}

.notice-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
    line-height: 1.8;
}

.notice-text i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* E-learning Notice Simple (Text Only) */
.elearning-notice-simple {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0b3 100%);
    border-radius: 12px;
    border-left: 5px solid #ff9800;
    text-align: center;
}

.elearning-notice-simple p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
    line-height: 1.8;
}

.elearning-notice-simple i {
    color: #ff9800;
    margin-right: 0.75rem;
    font-size: 1.3rem;
    vertical-align: middle;
}

/* External Link Notice (in howto steps) */
.external-link-notice {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0b3 100%);
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    text-align: center;
}

.external-link-notice p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.external-link-notice i {
    color: #ff9800;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    vertical-align: middle;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    padding: 2.5rem 0;
    background-color: var(--bg-light);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    background-color: var(--bg-white);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.news-date {
    font-weight: 600;
    color: var(--primary-blue);
    white-space: nowrap;
    font-size: 1rem;
}

.news-content {
    flex: 1;
}

.news-content p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.7;
}

/* News Placeholder Styles */
.news-item.news-placeholder {
    display: none; /* 文章入力があるまで非表示 */
}

.news-item.news-placeholder:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.news-item.news-placeholder .news-date {
    color: var(--text-light);
}

.news-placeholder-text {
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem 0 2rem;
    border-top: 3px solid var(--light-blue);
}

.footer-content {
    text-align: center;
}

/* Footer Navigation */
.footer-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-blue);
}

.footer-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.2);
}

.footer-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.3);
}

.footer-nav-btn i {
    font-size: 1.1rem;
}

/* Next button (to beginner course) */
.footer-nav-btn-next {
    background: linear-gradient(135deg, #1E88E5, #1976D2);
}

.footer-nav-btn-next:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

/* Back button (to intro course) */
.footer-nav-btn-back {
    background: linear-gradient(135deg, var(--accent-green), #66bb6a);
}

.footer-nav-btn-back:hover {
    background: linear-gradient(135deg, #66bb6a, var(--accent-green));
}

/* Series button (to view other series) */
.footer-nav-btn-series {
    background: linear-gradient(135deg, var(--accent-orange), #FFB74D);
}

.footer-nav-btn-series:hover {
    background: linear-gradient(135deg, #FFB74D, var(--accent-orange));
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.footer-grant {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--light-blue);
    border-radius: 8px;
    text-align: center;
}

.footer-grant p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-dark);
}

.footer-grant .grant-jp {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-grant .grant-en {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-logo-link:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-logo-link img {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* フィルターを削除してオリジナルの色で表示 */
}

/* KCOPロゴのサイズ調整（単一ロゴ） */
.footer-logo-link img {
    max-width: 300px;
}

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 71, 171, 0.2);
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .howto-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contents-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .quick-access-buttons {
        gap: 1rem;
    }

    .quick-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .courses-explanation {
        grid-template-columns: 1fr;
    }
    
    .hero-slide img {
        max-height: 550px;
    }
    
    .notice-image img {
        max-width: 450px;
    }
    
    .hero-indicators {
        bottom: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-links {
        grid-template-columns: 1fr;
    }
    
    .resources-banner-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resource-card {
        flex-direction: column;
        text-align: center;
    }

    .resource-image {
        width: 100%;
        height: 200px;
    }
    
    .resource-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .contents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    /* 動画コンテンツを視聴するには - 画像サイズ調整 */
    .step-image-box {
        max-width: 600px;  /* タブレットサイズに調整 */
    }

    /* ステップ⑤（会員登録）の画像のみ小さく - タブレット */
    .howto-step:nth-child(9) .step-image-box {
        max-width: 400px;  /* タブレットでも小さめに */
    }

    .hero-slide img {
        max-height: 500px;
    }
    
    .notice-image img {
        max-width: 400px;
    }
    
    .hero-indicators {
        bottom: 10px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
    
    .about-overlay-box {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-overlay-box .about-text {
        font-size: 0.95rem;
    }
    
    .resource-thumbnail {
        min-height: 150px;
    }
    
    .resource-thumbnail img {
        max-height: 250px;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
        padding: 0.6rem 1rem;
    }

    .about-overlay-box {
        padding: 1.5rem;
    }
    
    .about-title {
        font-size: 1.3rem;
    }
    
    .about-overlay-box .about-text {
        font-size: 0.9rem;
    }
    
    .about-overlay-box .about-notice {
        padding: 1rem 1.5rem;
    }
    
    .course-detail {
        padding: 2rem;
    }

    .contents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quick-access-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .quick-btn {
        width: 100%;
        max-width: 350px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .howto-step {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .step-number {
        min-width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-logos {
        gap: 2rem;
    }

    .footer-logo-link img {
        max-height: 50px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* 動画コンテンツを視聴するには - スマホサイズに調整 */
    .step-image-box {
        max-width: 100%;  /* スマホでは全幅表示 */
        margin-top: 1rem;
    }

    /* ステップ⑤（会員登録）の画像のみ小さく - スマホ */
    .howto-step:nth-child(9) .step-image-box {
        max-width: 80%;  /* スマホでも少し小さめに */
    }

    .step-image-box img {
        border-radius: 8px;  /* スマホでは角丸を少し小さく */
    }

    .logo img {
        height: 45px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-text i {
        font-size: 1.5rem;
    }
    
    .resource-banner {
        flex-direction: column;
        height: auto;
        padding: 1.25rem;
    }
    
    .resource-banner-image {
        width: 100%;
        height: 150px;
    }
    
    .resource-banner-content h3 {
        font-size: 1rem;
    }
    
    .resource-banner-content p {
        font-size: 0.8rem;
    }
    
    .resource-banner-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }

    .footer-grant {
        padding: 1rem 1.5rem;
    }

    .footer-grant .grant-jp {
        font-size: 0.85rem;
    }

    .footer-grant .grant-en {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-carousel {
        height: 250px;
    }

    .carousel-caption h2 {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }

    .about-section,
    .contents-section,
    .howto-section,
    .news-section {
        padding: 3rem 0;
    }

    .content-title {
        font-size: 1.2rem;
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    .course-box h3 {
        font-size: 1.3rem;
    }
    
    .parent-child-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        gap: 0.4rem;
        margin-left: 0.5rem;
    }
    
    .parent-child-badge i {
        font-size: 0.75rem;
    }

    .footer-logos {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo-link img {
        max-height: 40px;
    }

    /* モバイル: 健都ロゴ */
    .footer-logo-link:nth-child(1) img {
        max-width: 120px;
    }

    /* モバイル: KCOPロゴ */
    .footer-logo-link:nth-child(2) img {
        max-width: 200px;
    }

    /* モバイル: FDH&Hロゴ */
    .footer-logo-link:nth-child(3) img {
        max-width: 200px;
    }

    .elearning-notice {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .notice-text p {
        font-size: 1rem;
    }
    
    .notice-image img {
        max-width: 300px;
    }
}

/* ========================================
   Extra Small Devices (< 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-slide img {
        max-height: 400px;
    }
    
    .notice-image img {
        max-width: 280px;
    }
    
    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .logo img {
        height: 50px;
    }
    
    .hero-indicators {
        bottom: 8px;
        gap: 8px;
    }
    
    .hero-indicator {
        width: 8px;
        height: 8px;
    }
}
