/* Reset & Base Styles */
:root {
    --primary-color: #0f172a;
    /* Deep Navy */
    --secondary-color: #d97706;
    /* Gold/Amber */
    --accent-color: #3b82f6;
    /* Bright Blue */
    --text-color: #334155;
    /* Slate 700 */
    --light-bg: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.3);
}

.btn-secondary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.4);
}

.btn-full {
    display: block;
    width: 100%;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.logo {
    margin-right: 3rem;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--secondary-color);
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Features */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-card {
    text-align: center;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Course Cards */
.course-card-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.course-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
    z-index: 10;
}

.course-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.course-header {
    padding: 2rem;
    background-color: #f1f5f9;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.course-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tax {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.course-body {
    padding: 2rem;
}

.course-features {
    margin-bottom: 2rem;
}

.course-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.course-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 45%;
    text-align: right;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary-color);
    padding: 1rem;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--white);
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: auto;
    right: -10px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--secondary-color);
    z-index: 1;
}

/* FAQ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-color);
}

/* Company Info */
.company-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.company-info dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
}

.company-info dt {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.company-info dd {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .course-card.featured {
        transform: none;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        width: 100%;
        text-align: left;
        padding: 0 0 0.5rem 0;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        top: -10px;
        left: 20px;
        transform: rotate(45deg);
        display: none;
    }

    .timeline-item::after {
        left: 20px;
    }

    .company-info {
        padding: 1.5rem;
    }

    .company-info dl {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .company-info dt {
        border-bottom: none;
        padding-bottom: 0;
    }

    .company-info dd {
        margin-bottom: 1rem;
    }
}

/* Sub-page Styles */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

.course-term-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 4rem 0 3rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Breadcrumb Navigation Bar */
.breadcrumb-nav {
    background-color: var(--light-bg);
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-top: 80px;
}

.breadcrumb-nav .container {
    display: flex;
    align-items: center;
}

.breadcrumb-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-color);
}

/* Company Info */
.company-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.company-info dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
}

.company-info dt {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.company-info dd {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .course-card.featured {
        transform: none;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        width: 100%;
        text-align: left;
        padding: 0 0 0.5rem 0;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        top: -10px;
        left: 20px;
        transform: rotate(45deg);
        display: none;
    }

    .timeline-item::after {
        left: 20px;
    }

    .company-info {
        padding: 1.5rem;
    }

    .company-info dl {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .company-info dt {
        border-bottom: none;
        padding-bottom: 0;
    }

    .company-info dd {
        margin-bottom: 1rem;
    }
}

/* Sub-page Styles */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

.course-term-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 4rem 0 3rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Breadcrumb Navigation Bar */
.breadcrumb-nav {
    background-color: var(--light-bg);
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-top: 80px;
}

.breadcrumb-nav .container {
    display: flex;
    align-items: center;
}

.breadcrumb-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.breadcrumb-text a {
    color: var(--text-color);
    transition: var(--transition);
}

.breadcrumb-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.required {
    color: #ef4444;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    background-color: #fee2e2;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-submit {
    margin-top: 2rem;
}