@charset "UTF-8";

:root {
    --primary-color: #0047AB; /* Cobalt Blue */
    --secondary-color: #002E7A; /* Darker Cobalt */
    --tertiary-color: #ADD8E6; /* Light blue */
    --accent-color: #FFD700; /* Gold for subtle accents */
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --white: #fff;
    --font-main: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: 0.3s;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 71, 171, 0.1), transparent 70%);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    padding: 0 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.4;
}

.hero .lead {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero .description {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.4);
}

/* Sections */
.section {
    padding: 100px 5%;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.subtitle {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-top: 5px;
    font-weight: normal;
}

.text-white { color: var(--white) !important; }
.text-blue { color: var(--primary-color) !important; }
.text-lightblue { color: var(--tertiary-color) !important; }

/* News */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-list li {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    transition: 0.3s;
}

.news-list li:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
}

.news-list li:before {
    content: '▶';
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-right: 10px;
}

.news-list li a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

/* Cards */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

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

.icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: left;
}

/* Education */
.education-list {
    max-width: 800px;
    margin: 0 auto;
}

.education-list li {
    padding: 10px 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 10px;
    background: var(--bg-light);
}

/* Concept */
.concept-content {
    max-width: 800px;
    margin: 0 auto;
}

.concept-content h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.concept-content p {
    margin-bottom: 20px;
    line-height: 2;
}

.highlight {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 30px;
    letter-spacing: 2px;
}

/* Price */
.price-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .price-overview {
        grid-template-columns: 1fr;
    }
}

.price-desc h3 {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.price-desc .small {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 10px;
}

.price-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.price-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
    color: var(--text-light);
}

/* Contact */
.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.contact-info .phone {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.btn-block {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        margin-top: 6rem;
        font-size: 1.8rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}
