/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f8d;
    --secondary-color: #4a90c9;
    --accent-color: #e67e22;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(0, 20, 40, 0.95);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 400;
    transition: color 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 20px;
    background: rgba(74, 144, 201, 0.2);
    border-radius: 4px;
}

.header-contact i {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--text-white);
    padding: 180px 20px 140px;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 20, 40, 0.4) 0%, rgba(0, 20, 40, 0.25) 50%, rgba(0, 20, 40, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.3;
}

.text-highlight {
    color: var(--secondary-color);
}

.hero-text {
    font-size: 1rem;
    margin-bottom: 50px;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.8;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: #d67218;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-large {
    width: 100%;
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* News Section */
.news-section {
    background: var(--bg-light);
    padding: 40px 0;
}

.news-header {
    margin-bottom: 20px;
}

.news-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-list {
    list-style: none;
    background: var(--bg-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    min-width: 100px;
}

.news-category {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.category-info {
    background: #e3f2fd;
    color: #1976d2;
}

.category-service {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-event {
    background: #e8f5e9;
    color: #388e3c;
}

.news-title {
    color: var(--text-dark);
    text-decoration: none;
    flex: 1;
    transition: color 0.3s;
}

.news-title:hover {
    color: var(--primary-color);
}

/* Section Common Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* About Section */
.about-section {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-image-main {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-image-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image-main:hover img {
    transform: scale(1.05);
}

.about-image-secondary {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image-secondary img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image-secondary:hover img {
    transform: scale(1.05);
}

.about-badge {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-year,
.badge-established {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-year {
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.badge-established {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(44, 95, 141, 0.3);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    padding: 10px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Services Section */
.services-section {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Flow Section */
.flow-section {
    background: var(--bg-white);
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
}

.flow-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.flow-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.flow-icon {
    width: 100px;
    height: 100px;
    margin: 30px auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    border: 3px solid var(--primary-color);
}

.flow-step h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.flow-step p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 60px 10px 0;
}

/* Features Section */
.features-section {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    box-shadow: var(--shadow);
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.contact-detail-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-tel {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin: 5px 0;
}

.contact-email {
    color: var(--primary-color);
    font-weight: 500;
    margin: 5px 0;
}

.contact-email a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.contact-email a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
}

.contact-form-wrapper iframe {
    border-radius: 10px;
    min-height: 824px;
}

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

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    margin-bottom: 15px;
    color: var(--text-white);
}

.footer h4 {
    margin-bottom: 20px;
    color: var(--text-white);
    font-size: 1.1rem;
}

.footer p {
    color: #cccccc;
    line-height: 1.8;
}

.footer-address {
    margin-top: 20px;
}

.visitor-counter {
    margin-top: 20px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.visitor-counter table {
    margin: 0;
}

.visitor-counter img {
    display: inline-block;
    vertical-align: middle;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-services li {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-images {
        order: 2;
    }

    .about-text {
        order: 1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .flow-steps {
        flex-wrap: wrap;
    }

    .flow-arrow {
        display: none;
    }

    .flow-step {
        flex-basis: calc(50% - 15px);
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 20, 40, 0.98);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav.active {
        max-height: 400px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-white);
    }

    .hero {
        padding: 100px 20px 80px;
        text-align: left;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .header-contact {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .flow-step {
        flex-basis: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .news-item {
        flex-wrap: wrap;
    }

    .news-date {
        min-width: auto;
        width: 100%;
    }
}