@charset "utf-8";

/* Base */
body {
    font-family:  "Noto Sans JP", "Zen Kaku Gothic New",sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background-color: #fff8f0;
}

h1, h2, h3 {
    color: #006400;
}

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

a:hover {
    color: #b85c1c;
}

/* Header */
.header {
    background-color: #e8f3e5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.navbar-brand img {
    max-height: 70px;
    border-radius: 10px;
}

.nav-link {
    color: #006400;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    background-color: #ffffff80;
    margin: 0 0.5rem;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #d2691f;
}

/* Hero */
.hero .carousel-item {
    height: 60vh;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
}

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

/* .carousel-caption h1 { 
    background-color: rgba(255, 204, 0, 0.8);
    color: #3ec381;
    border-radius: 20px;
} 

/* Sections */
.section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f2efea, #e8e0d3);
    border-radius: 20px;
    margin: 2rem 0;
}

.section-secondary {
    background: linear-gradient(to bottom, #ede4d8, #e0d4c3);
}

.section-headline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.syouh2 {
    font-size: 1.5rem;
    text-decoration: underline wavy #d2691f;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    background-color: #fffaf4;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* About */
.about .card {
    background-color: #fffaf4;
}

/* Footer */
.footer {
    background: linear-gradient(to top, #006400, #006400);
    color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.footer a {
    color: #ffcc00;
}

.footer hr {
    border-color: #0ca458;
}

/* Buttons */
.btn-success, .btn-primary {
    background-color: #e57c23;
    border-color: #cc6d1f;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn-success:hover, .btn-primary:hover {
    background-color: #cc6d1f;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.bg-warm-accent {
    background-color: #d2691e;
    color: #ffff;
}

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

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

/* Media Queries for Improved Responsiveness */
@media (max-width: 992px) {
    .navbar-brand img {
        width: 200px;
        height: auto;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        margin: 0.25rem 0;
    }

    .hero .carousel-item {
        height: 50vh;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        padding: 0.75rem;
    }

    .section {
        padding: 3rem 1rem;
        margin: 1rem 0;
    }

    .section-headline {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .form {
        flex-direction: column;
        gap: 1rem !important;
    }

    .form a {
        width: 100%;
        text-align: center;
    }

    .footer .row {
        flex-direction: column-reverse;
    }

    .footer iframe {
        height: 250px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .hero .carousel-item {
        height: 40vh;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .section-headline {
        font-size: 1.8rem;
    }

    .syouh2 {
        font-size: 1.3rem;
    }

    .about .col-md-4, .row.g-4 .col-md-4 {
        margin-bottom: 1rem;
    }

    .kyoumu .col-md-6 {
        text-align: center;
    }

    .kyoumu img {
        margin-bottom: 1rem;
    }

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

@media (max-width: 576px) {
    .navbar-brand img {
        width: 150px;
        height: auto;
    }

    .section {
        padding: 2rem 0.5rem;
    }

    .card {
        padding: 1rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .footer img {
        width: 200px;
        height: auto;
    }

    .footer iframe {
        height: 200px;
    }
}