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

body {
    overflow-x: hidden;
    font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #222;
    background: #faf8f4;
}

img {
    max-width: 100%;
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    width: min(95%, 1200px);
    height: 300px;
    margin: 20px auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.35));
}

.hero-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-text p {
    font-size: clamp(15px, 2.5vw, 20px);
    margin-bottom: 20px;
}

.hero-btn {
    background: rgba(190, 23, 23, 0.95);
    color: #fff;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: #8b0000;
    transform: translateY(-2px);
}

/* Navigation */
.nav-wrapper {
    width: min(95%, 1200px);
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
}

#menu-toggle {
    display: none;
}

.menu-btn {
    display: none;
    cursor: pointer;
    background: rgba(137, 8, 8, 0.922);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.navbar {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.navbar li a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.navbar li a:hover {
    background: rgba(137, 8, 8, 0.922);
    color: #fff;
}

/* Cards */
.program-section {
    width: min(95%, 1200px);
    margin: 0 auto;
}

.container1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.box {
    background: #fff;
    padding: 26px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    border: 1px solid rgba(137, 8, 8, 0.08);
}

.box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.box h2 {
    font-family: 'Poppins', sans-serif;
    color: #8b0000;
    font-size: 21px;
    margin-bottom: 15px;
}

.box h3 {
    color: #333;
    font-size: 16px;
    margin: 15px 0;
    font-weight: 500;
}

.restimg {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 15px;
}

.card-btn {
    display: inline-block;
    background: rgba(190, 23, 23, 0.9);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s ease;
}

.card-btn:hover {
    background: #8b0000;
    transform: translateY(-2px);
}

/* Success Slider */
.success-section {
    width: min(95%, 1200px);
    margin: 55px auto;
    text-align: center;
}

.successstory {
    color: #8b0000;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 4vw, 34px);
    margin-bottom: 25px;
}

.slider {
    position: relative;
    width: min(100%, 650px);
    margin: auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.slide {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: none;
}

.slide.active {
    display: block;
}

/* Contact */
.container2 {
    width: min(95%, 1200px);
    margin: 50px auto 30px;
    background: rgba(223, 223, 196, 0.45);
    padding: 35px 20px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(137, 8, 8, 0.1);
}

.container2 h2 {
    color: #8b0000;
    font-size: 30px;
    margin-bottom: 22px;
}

.contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.contact-link,
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.contact-link:hover {
    color: #8b0000;
    transform: translateY(-3px);
}

.icon {
    width: 24px;
    height: 24px;
}

/* Footer */
footer {
    width: min(95%, 1200px);
    margin: 30px auto 20px;
    background: rgba(190, 23, 23, 0.95);
    color: #fff;
    text-align: center;
    border-radius: 14px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footerimg {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Tablet */
@media (max-width: 900px) {
    .container1 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        height: 280px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero {
        width: 94%;
        height: 260px;
        margin-top: 12px;
        border-radius: 14px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .nav-wrapper {
        padding: 12px;
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    #menu-toggle:checked~.navbar {
        display: flex;
    }

    .navbar li {
        width: 100%;
    }

    .navbar li a {
        display: block;
        width: 100%;
        text-align: center;
        background: #f7f2ed;
    }

    .container1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .restimg {
        height: 220px;
    }

    .slide {
        height: 250px;
    }

    .contact-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link,
    .contact-item {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    footer {
        flex-direction: column;
        gap: 6px;
    }
}