/* General Styles */
* {
    box-sizing: border-box;
}
:root {
    --primary-color: #FFD700; /* Gold */
    --gold-on-white: #B8860B; /* Dark Goldenrod - better contrast on white */
    --accent-color: #008B8B; /* Dark Cyan */
    --emphasis-color: #FFD700; /* Gold */
    --light-bg: #121212; /* Almost black */
    --dark-bg: #000000; /* Black */
    --text-color: #FFFFFF; /* White */
    --light-text: #FFFFFF; /* White */
    --border-color: #FFD700; /* Gold */
    --dark-section-text: #FFFFFF; /* White */
    --dark-section-accent: #FFC107; /* Amber */
    --dark-section-emphasis-accent: #FFD700; /* Gold */
    --calm-blue: #6495ED; /* Cornflower Blue */
    --global-background-image: url('img/Image_fx4.jpg');
}

html,
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--dark-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロールを抑制 */
    width: 100%; /* 明示的に幅を100%に設定 */
    min-width: 0; /* 最小幅を0に設定 */
    max-width: 100%; /* 最大幅を100%に設定 */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900; /* Black */
}

.bg-black-section h1, .bg-black-section h2, .bg-black-section h3, .bg-black-section h4, .bg-black-section h5, .bg-black-section h6 {
    background: linear-gradient(180deg, #FFFDE4 0%, #FFD700 50%, #F0C400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 2px rgba(0,0,0,0.3), 0 0 8px rgba(255,215,0,0.5);
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.text-primary {
    background: linear-gradient(180deg, #FFFDE4 0%, #FFD700 50%, #F0C400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 0px 2px 2px rgba(0,0,0,0.3), 0 0 8px rgba(255,215,0,0.5);
}

.bg-primary {
    background-color: var(--emphasis-color) !important;
}

/* Section Backgrounds */
.bg-white-section {
    background-color: #FFFFFF !important;
    color: #333333 !important;
    border-top: 2px solid #EEEEEE;
    border-bottom: 2px solid #EEEEEE;
}

.bg-calm-blue {
    background-color: var(--calm-blue) !important;
    color: #FFFFFF !important;
}

.bg-black-section {
    /* background-color: var(--light-bg) !important; */ /* コメントアウト */
    position: relative;
    overflow: hidden;
    color: var(--dark-section-text) !important;
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    left: 0;
    top: -20%; /* Adjust this to create the "extra" space for movement */
    width: 100%;
    height: 140%; /* Taller than the section to allow for movement */
    background-image: url('img/Image_fx4.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2; /* Ensure the overlay is on top of the bg image */
}

.parallax-section > .container {
    position: relative;
    z-index: 3; /* Ensure content is on top of the overlay */
}

.bg-black-section h1, .bg-black-section h2, .bg-black-section h3, .bg-black-section h4, .bg-black-section h5, .bg-black-section h6 {
    background: linear-gradient(180deg, #FFFDE4 0%, #FFD700 50%, #F0C400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 2px rgba(0,0,0,0.3), 0 0 8px rgba(255,215,0,0.5);
}

.bg-black-section .text-primary {
    color: var(--dark-section-emphasis-accent) !important;
}

.bg-black-section p, .bg-black-section ul li, .bg-black-section table, .bg-black-section table th, .bg-black-section table td {
    color: var(--dark-section-text) !important;
}

/* Buttons */
.btn-primary, .btn-light {
    background: linear-gradient(45deg, #28a745, #6495ED);
    border: none;
    padding: 1.2rem 4.5rem 1.2rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    animation: float-animation 3s ease-in-out infinite;
    /* box-shadow: 0 0 0 2px #28a745, 0 0 0 4px #6495ED; */
}

.btn-primary:hover, .btn-light:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #28a745;
    color: #fff;
}

.btn-text {
    display: inline-block;
    padding-right: 2rem; /* Add space between text and arrow */
}

.btn-arrow {
    position: absolute;
    right: 2rem;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1;
}

.btn-outline-primary {
    color: var(--accent-color);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    color: var(--dark-bg);
    background-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 139, 139, 0.5);
}

.btn-light {
    /* Styles are now merged with .btn-primary */
}

.btn-light:hover {
    /* Styles are now merged with .btn-primary:hover */
}

/* Animations */
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float-animation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes tremble-animation {
    0% { transform: translateX(0px) rotate(0deg); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    50% { transform: translateX(0px) rotate(0deg); }
    75% { transform: translateX(5px) rotate(2deg); }
    100% { transform: translateX(0px) rotate(0deg); }
}

section {
    padding: 100px 0;
}

#hero {
    padding: 6rem 0;
}

#hero .container {
    padding-top: 0;
}

/* Header */
header {
    background-color: var(--dark-bg);
    border-bottom: 2px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand img {
    margin-right: 0.5rem;
}

.navbar-brand span {
    font-size: 1.05rem; /* 1.5rem * 0.7 = 1.05rem (30% smaller) */
    font-weight: 900;
    background: -webkit-linear-gradient(45deg, #FFF7E0, #FFD700, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-item {
    margin-left: 20px;
}

.navbar-nav .nav-link {
    color: var(--light-text) !important;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    overflow: hidden; /* はみ出したテキストを隠す */
    text-overflow: ellipsis; /* はみ出したテキストを三点リーダーで表示 */
}

@media (max-width: 991.98px) { /* Bootstrap's lg breakpoint */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem; /* スマホでのパディングを調整 */
        text-align: left; /* 左寄せにする */
    }
}

.navbar-nav .nav-link:hover {
    background: -webkit-linear-gradient(45deg, #FFF7E0, #FFD700, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px var(--emphasis-color);
}




/* Recommend Section */
#overview .list-group-item {
    background-color: var(--light-bg) !important;
    color: var(--dark-section-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Add a subtle border */
    margin-bottom: 10px; /* Add some space between items */
    border-radius: 5px; /* Slightly rounded corners */
}

#overview .list-group-item i {
    color: var(--primary-color) !important;
    text-shadow: 0 0 5px var(--primary-color) !important;
}

#merit .list-group-item {
    background-color: var(--light-bg) !important;
    color: var(--dark-section-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Add a subtle border */
    margin-bottom: 10px; /* Add some space between items */
    border-radius: 5px; /* Slightly rounded corners */
}

#merit .list-group-item i {
    color: var(--primary-color) !important;
    text-shadow: 0 0 5px var(--primary-color) !important;
}

/* Success Story Section */
#success-story {
    background-color: #FFFFFF; /* Clean white background */
    text-align: center;
}

#success-story h2 {
    color: #333333; /* Dark text for headings in white section */
}

.success-card {
    background-color: #f8f9fa; /* Light background for cards */
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.success-card .text-primary {
    /* This rule is now handled by the global .text-primary */
    /* Removed specific color override */
}

.success-card h3 {
    font-size: 1.08rem; /* 1.8rem * 0.6 = 1.08rem */
    font-weight: 700;
    color: #333333; /* Dark text for card titles */
    margin-bottom: 15px;
}

.success-card .lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555; /* Slightly darker text for card descriptions */
}

/* Removed .success-card .text-light-blue as it's now .text-primary */
/* Removed .text-dark-blue as it's now .text-primary */

/* Course Content Section */
#course-content {
    background-color: var(--dark-bg);
}

#course-content .list-group-item {
    border: none;
    background-color: transparent;
    padding: 20px 0;
    display: flex;
    align-items: flex-start;
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: bold;
    color: var(--light-text);
}

#course-content .list-group-item i {
    font-size: 2.5rem;
    margin-right: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    text-shadow: 0 0 5px var(--primary-color);
}

#course-content .list-group-item small {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
}

#course-content .card {
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--light-text);
}

#course-content .card-body {
    padding: 2rem;
}

#course-content .card-text {
    color: var(--light-text);
}

#course-content .card h4 {
    color: var(--primary-color);
}

#course-content .course-item {
    background-color: var(--light-bg); /* Slightly lighter background for items */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px; /* Add space between items */
}

#course-content .course-header {
    margin-bottom: 10px;
}

#course-content .course-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    flex-shrink: 0;
}

#course-content .course-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

#course-content .course-text h4 {
    color: var(--primary-color);
    margin-bottom: 0;
}

#course-content .course-description {
    color: var(--light-text);
    margin-bottom: 0;
}

/* Curriculum Section */
#curriculum .curriculum-item {
    background: #FFFFFF; /* Clean white background */
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px; /* Increased margin for timeline effect */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For timeline pseudo-elements */
    display: flex; /* Use flexbox for layout */
    align-items: flex-start;
    padding-left: 150px; /* Increased padding to make more space for time and dot/line */
}

#curriculum .curriculum-item:hover {
    transform: translateY(-5px); /* Subtle lift effect on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Timeline line */
#curriculum .curriculum-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 35px; /* Position of the line relative to curriculum-item */
    top: 45px; /* Start from the center of the dot */
    bottom: -30px; /* Connects items */
    width: 2px;
    background-color: #e0e0e0; /* Light gray line */
    z-index: 0;
}

/* Timeline dot */
#curriculum .curriculum-item::before {
    content: '';
    position: absolute;
    left: 28px; /* Position the dot relative to curriculum-item */
    top: 35px; /* Adjust top to align with time */
    width: 16px; /* Larger dot */
    height: 16px; /* Larger dot */
    background-color: var(--calm-blue); /* A subtle dot */
    border-radius: 50%;
    border: 3px solid #FFFFFF; /* White border to stand out */
    z-index: 1;
}

#curriculum .curriculum-time-box {
    background-color: transparent; /* No background */
    padding: 0;
    border-radius: 0;
    font-weight: normal;
    color: #666666; /* Neutral gray for time */
    text-align: left; /* Align time to the left */
    flex-shrink: 0;
    min-width: 100px; /* Consistent width */
    position: absolute; /* Make it absolute again */
    left: 60px; /* Position to the right of the dot */
    top: 30px; /* Align with dot */
    z-index: 1;
}

#curriculum .curriculum-time {
    font-size: 1rem;
    font-weight: 600;
    color: #666666;
    line-height: 1.2; /* Adjust line height for better appearance */
}

#curriculum .curriculum-content {
    flex-grow: 1;
    margin-left: 0; /* Reset margin as padding-left on item handles spacing */
}

/* Responsive adjustments for curriculum section */
@media (max-width: 768px) {
    #curriculum .curriculum-item {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start;
        padding: 20px;
        padding-left: 20px; /* Reset padding for mobile */
    }

    #curriculum .curriculum-time-box {
        position: static; /* Reset to static for mobile flow */
        text-align: left; /* Align time to left on mobile */
        margin-bottom: 10px; /* Space below time */
        margin-right: 0;
        width: 100%; /* Full width for time box */
        left: auto; /* Reset absolute positioning */
        top: auto; /* Reset absolute positioning */
    }

    #curriculum .curriculum-item::before {
        left: 8px; /* Adjust dot position for mobile */
        top: 20px; /* Adjust top for mobile */
    }

    #curriculum .curriculum-time {
        margin-left: 25px; /* Space for the dot */
    }

    #curriculum .curriculum-item:not(:last-child)::after {
        left: 15px; /* Adjust line position for mobile */
        bottom: -20px;
        height: 40px;
    }

    #curriculum .curriculum-content {
        margin-left: 0; /* Reset margin for mobile */
    }
}

#speakers {
    background-color: #FFFFFF;
    color: #333333;
}

.text-navy {
    color: navy !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

#speakers .text-primary,
#testimonials .text-primary,
#schedule .text-primary {
    color: navy !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

#speakers i,
#testimonials i,
#schedule i {
    color: navy !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}


#speakers h4 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #333333; /* Black text for h4 in light sections */
}

.text-calm-blue {
    color: var(--calm-blue) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

.text-navy-emphasis {
    color: navy !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

.text-light-blue {
    color: #87CEFA !important; /* Light Sky Blue */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

.text-gold-on-white {
    color: var(--gold-on-white) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}



#speakers p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666666; /* Gray text for p in light sections */
}

#speakers .text-muted {
    color: #888888 !important;
}

/* Testimonials Section */
#testimonials {
    background-color: #FFFFFF;
    color: #333333;
}

#testimonials .card {
    border: none;
    background-color: #F8F9FA;
    border-radius: 10px;
    height: 100%;
}

#testimonials .card-body {
    padding: 2rem;
}

#testimonials .card-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
}

#testimonials .card-title {
    font-size: 1.2rem;
    color: #333333;
}

/* Schedule Section */
#schedule {
    background-color: #FFFFFF;
    color: #333333;
}

#schedule .table {
    border: 2px solid #DEE2E6;
    border-radius: 10px;
    overflow: hidden;
}

#schedule .table th,
#schedule .table td {
    padding: 1.5rem;
    vertical-align: middle;
    font-size: 1.2rem;
}

#schedule .table th {
    background-color: #F8F9FA;
    font-weight: 700;
    color: #333333;
}

#schedule .table td {
    color: #555555;
}

#schedule .text-danger {
    color: #DC3545 !important;
}



/* CTA Bottom Section */
#cta-bottom {
    background-color: var(--calm-blue);
    color: #FFFFFF;
}

#cta-bottom h2 {
    font-size: 3.5rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

#cta-bottom .btn-light {
    background: #FFFFFF;
    color: var(--calm-blue);
}

#cta-bottom .btn-light:hover {
    background: var(--calm-blue);
    color: #FFFFFF;
}

/* Footer */
footer {
    background-color: #000000;
    color: #AAAAAA;
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Hero Image Styling */
.hero-image-container {
    max-width: 1140px;
    margin: 0 auto;
}
.hero-image-container img {
    width: 100%;
}

/* Problem Card Styling */
.problem-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    background-color: #f9f9f9;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.problem-icon {
    font-size: 3rem;
    color: navy; /* Navy color for the '?' icon */
    margin-bottom: 1rem;
}

.hero-images {
    position: relative;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto 2rem;
    height: 400px; /* Adjust as needed */
}

.hero-img-left, .hero-img-right {
    position: absolute;
    width: 50%; /* Adjust as needed */
    transition: transform 0.3s ease-in-out;
}

.hero-img-left {
    top: 0;
    left: 0;
    transform: rotate(-15deg);
}

.hero-img-right {
    bottom: 0;
    right: 0;
    transform: rotate(15deg);
}

.hero-images:hover .hero-img-left {
    transform: rotate(-20deg) scale(1.05);
}

.hero-images:hover .hero-img-right {
    transform: rotate(20deg) scale(1.05);
}

.rounded-corners {
    border-radius: 15px; /* 角を丸くする */
}

.text-white {
    color: #FFFFFF !important;
}

.text-center {
    text-align: center !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .btn-primary, .btn-light {
        padding: 1rem 3rem 1rem 2rem;
        font-size: 1.2rem;
    }

    .btn-arrow {
        right: 1.5rem;
    }

    .hero-images {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-images {
        display: none; /* Hide on small screens to avoid layout issues */
    }
}

/* Ensure h2 in white sections are not gradient text */
.bg-white-section h2 {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #333333 !important;
    text-shadow: none !important;
}

/* Style the table in the now-black schedule section */
#schedule.bg-black-section .table {
    border-color: var(--border-color);
}

#schedule.bg-black-section .table th,
#schedule.bg-black-section .table td {
    color: var(--dark-section-text);
    background-color: transparent;
    border-color: var(--border-color);
}

#schedule.bg-black-section .table th {
    background-color: #1a1a1a;
}

/* Ensure cancel policy text is white in the black section */
#schedule.bg-black-section p {
    color: var(--dark-section-text);
}

/* Make the price visible on dark background */
.bg-black-section .text-danger {
    color: #ff6b81 !important; /* A brighter, lighter red */
}

/* Make text-light-blue visible on white background */
.bg-white-section .text-light-blue {
    color: #007bff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

.text-gold-on-white {
    color: var(--gold-on-white) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

/* Curriculum Section */
#schedule .curriculum-item {
    background: #FFFFFF; /* Clean white background */
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px; /* Increased margin for timeline effect */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For timeline pseudo-elements */
    display: flex; /* Use flexbox for layout */
    align-items: flex-start;
    padding-left: 100px; /* Increased padding to make more space for time and dot/line */
}

#schedule .curriculum-item:hover {
    transform: translateY(-5px); /* Subtle lift effect on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Timeline line */
#schedule .curriculum-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px; /* Position of the line relative to curriculum-item */
    top: 45px; /* Start from the center of the dot */
    bottom: -30px; /* Connects items */
    width: 2px;
    background-color: #e0e0e0; /* Light gray line */
    z-index: 0;
}

/* Timeline dot */
#schedule .curriculum-item::before {
    content: '';
    position: absolute;
    left: 18px; /* Position the dot relative to curriculum-item */
    top: 35px; /* Adjust top to align with time */
    width: 16px; /* Larger dot */
    height: 16px; /* Larger dot */
    background-color: var(--calm-blue); /* A subtle dot */
    border-radius: 50%;
    border: 3px solid #FFFFFF; /* White border to stand out */
    z-index: 1;
}

#schedule .curriculum-time-box {
    background-color: transparent; /* No background */
    padding: 0;
    border-radius: 0;
    font-weight: normal;
    color: #666666; /* Neutral gray for time */
    text-align: left; /* Align time to the left */
    flex-shrink: 0;
    width: 60px; /* Fixed width for time box */
    margin-right: 10px; /* Space between time and content */
}

#schedule .curriculum-time {
    font-size: 1rem;
    font-weight: 600;
    color: #666666;
    line-height: 1.2; /* Adjust line height for better appearance */
}

#schedule .curriculum-content {
    flex-grow: 1;
    margin-left: 0; /* Reset margin as padding-left on item handles spacing */
}

#schedule .curriculum-speaker-image {
    flex-shrink: 0;
    margin-right: 10px;
}

#schedule .curriculum-speaker-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: none; /* Remove border */
}

/* Responsive adjustments for curriculum section */
@media (max-width: 768px) {
    #schedule .curriculum-item {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start;
        padding: 20px;
        padding-left: 20px; /* Reset padding for mobile */
    }

    #schedule .curriculum-time-box {
        position: static; /* Reset to static for mobile flow */
        text-align: left; /* Align time to left on mobile */
        margin-bottom: 10px; /* Space below time */
        margin-right: 0;
        width: auto; /* Auto width for time box */
        left: auto; /* Reset absolute positioning */
        top: auto; /* Reset absolute positioning */
    }

    #schedule .curriculum-item::before {
        left: 8px; /* Adjust dot position for mobile */
        top: 20px; /* Adjust top for mobile */
    }

    #schedule .curriculum-time {
        margin-left: 25px; /* Space for the dot */
    }

    #schedule .curriculum-item:not(:last-child)::after {
        left: 15px; /* Adjust line position for mobile */
        bottom: -20px;
        height: 40px;
    }

    #schedule .curriculum-content {
        margin-left: 0; /* Reset margin for mobile */
    }

    #schedule .curriculum-speaker-image {
        margin-left: 0; /* Align with time */
        margin-bottom: 10px;
    }
}

/* FAQ Section */
#faq {
    background-color: #FFFFFF;
    color: #333333;
}

#faq .accordion-button {
    background-color: #F8F9FA;
    color: #333333;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
}

#faq .accordion-button:not(.collapsed) {
    color: #333333; /* Keep text color consistent */
    background-color: #e9ecef;
}

#faq .accordion-body {
    background-color: #FFFFFF;
    color: #555555;
}

/* Company Section */
#company {
    background-color: #FFFFFF;
    color: #333333;
}

#company .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#company .text-center p {
    margin-bottom: 0.5rem;
    word-wrap: break-word; /* 長い単語でも改行する */
    overflow-wrap: break-word; /* 長い単語でも改行する */
    max-width: 100%; /* 親要素の幅を超えないようにする */
}

#company .text-center a {
    color: var(--calm-blue);
    text-decoration: none;
}

#company .text-center a:hover {
    text-decoration: underline;
}

/* Mobile specific adjustments for company section */
@media (max-width: 767.98px) {
    #company .text-center {
        align-items: center; /* 中央揃えに戻す */
        text-align: center; /* テキストも中央揃え */
    }

    #company .text-center img {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}