/* ===================================
   Variables & Reset
   =================================== */
:root {
    --color-white: #FFFFFF;
    --color-sky-light: #E0F4FF;
    --color-sky: #87CEEB;
    --color-sky-dark: #4A90E2;
    --color-blue: #2E7BC7;
    --color-blue-dark: #1A5490;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E0E0E0;
    --color-success: #4CAF50;
    --color-warning: #FF9800;
    --color-danger: #F44336;
    
    --font-primary: 'Noto Sans JP', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.8;
    background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-sky-light) 50%, var(--color-sky) 100%);
    background-attachment: fixed;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   Container & Utilities
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-blue-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-sky), var(--color-blue));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: var(--color-sky-light);
    color: var(--color-blue);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-blue);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E3F2FD 0%, #90CAF9 100%);
    overflow: hidden;
    padding: 2rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 123, 199, 0.8) 0%, rgba(135, 206, 235, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 2rem;
}

.hero-image {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.9);
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-sky-dark) 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

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

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ===================================
   Announcement Banner
   =================================== */
.announcement {
    background: linear-gradient(135deg, #FF9800 0%, #FF6F00 100%);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: -1px;
}

.announcement-content {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.announcement-content i {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.announcement-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.announcement-text p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   Introduction Section
   =================================== */
.introduction {
    padding: 4rem 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 2;
    text-align: justify;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.intro-note {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--color-blue);
}

.intro-note p {
    font-size: 1rem;
    line-height: 1.8;
}

.intro-note i {
    color: var(--color-blue);
    margin-right: 0.5rem;
}

/* ===================================
   Overview Section
   =================================== */
.overview {
    padding: 4rem 0;
}

.overview-table-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
}

.overview-table th,
.overview-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.overview-table th {
    background: linear-gradient(135deg, var(--color-sky-dark) 0%, var(--color-blue) 100%);
    color: var(--color-white);
    font-weight: 700;
    width: 180px;
    white-space: nowrap;
}

.overview-table td {
    background: var(--color-white);
    line-height: 1.8;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
    border-bottom: none;
}

.overview-table small {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.highlight {
    color: var(--color-blue);
    font-weight: 700;
}

.highlight-red {
    color: var(--color-danger);
    font-weight: 900;
    font-size: 1.1rem;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 4rem 0;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--color-white);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    gap: 0.8rem;
    align-items: start;
    line-height: 1.7;
}

.feature-list i {
    color: var(--color-success);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.feature-item-content {
    flex: 1;
}

.feature-item-content strong {
    display: block;
    font-size: 1.05rem;
    color: var(--color-blue-dark);
    margin-bottom: 0.4rem;
}

.feature-item-content p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.7;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    padding: 4rem 0;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--color-white);
    aspect-ratio: 3/4;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

/* ===================================
   Pricing Section
   =================================== */
.pricing {
    padding: 4rem 0;
}

.pricing-note {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: 2rem;
}

.pricing-table-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    margin-bottom: 2rem;
}

.pricing-loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--color-blue);
}

.pricing-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.pricing-table thead {
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
}

.pricing-table th {
    color: var(--color-white);
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.pricing-table tbody tr:hover {
    background-color: #F5F5F5;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table td {
    padding: 0.8rem 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
}

.pricing-table td:first-child {
    background: var(--color-sky-light);
    font-weight: 700;
}

.pricing-table td:nth-child(2) {
    background: #E3F2FD;
    font-weight: 700;
    color: var(--color-blue-dark);
}

.pricing-table tbody tr:first-child td {
    font-weight: 700;
}

.pricing-error {
    text-align: center;
    padding: 3rem;
    color: var(--color-danger);
}

.pricing-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pricing-error p {
    font-size: 1.1rem;
    margin-top: 1rem;
}



.pricing-notes {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--color-blue);
}

.pricing-notes h3 {
    color: var(--color-blue-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-notes h3 i {
    margin-right: 0.5rem;
}

.pricing-notes ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pricing-notes li {
    display: flex;
    align-items: start;
    gap: 0.8rem;
    font-size: 1rem;
    line-height: 1.7;
}

.pricing-notes li i {
    color: var(--color-success);
    margin-top: 0.3rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===================================
   Flow Section
   =================================== */
.flow {
    padding: 4rem 0;
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 2rem;
    align-items: start;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.flow-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-blue) 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    flex-shrink: 0;
}

.flow-content h3 {
    font-size: 1.4rem;
    color: var(--color-blue-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.flow-content p {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.flow-detail {
    color: var(--color-blue);
    font-weight: 700;
    margin-top: 1rem;
}

.flow-detail i {
    margin-right: 0.5rem;
}

.flow-arrow {
    text-align: center;
    margin: 0.5rem 0;
}

.flow-arrow i {
    font-size: 2rem;
    color: var(--color-sky-dark);
}

.flow-note {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--color-warning);
    margin-top: 2rem;
}

.flow-note p {
    font-size: 1rem;
    line-height: 1.8;
}

.flow-note i {
    color: var(--color-warning);
    margin-right: 0.5rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 4rem 0;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.application-button {
    margin-bottom: 2rem;
}

.btn-application {
    display: inline-block;
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: var(--color-white);
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: none;
}

.btn-application:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 107, 107, 0.5);
}

.btn-application i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.contact-divider {
    margin: 2.5rem 0;
    position: relative;
    text-align: center;
}

.contact-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}

.contact-divider span {
    position: relative;
    background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-sky-light) 100%);
    padding: 0 1.5rem;
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 500;
}

.contact-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-org {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-email {
    font-size: 1.3rem;
}

.contact-email a {
    color: var(--color-blue);
    font-weight: 700;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-email i {
    margin-right: 0.5rem;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-cta .btn i {
    margin-right: 0.5rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

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

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-blue) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    display: flex;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: 600px;
    }

    .hero-image img {
        max-width: 450px;
        border: 3px solid rgba(255, 255, 255, 0.9);
    }

    .hero-title {
        font-size: 1.6rem;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .announcement-content {
        flex-direction: column;
        text-align: center;
    }

    .overview-table-wrapper {
        padding: 1rem;
    }

    .overview-table th,
    .overview-table td {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .overview-table th {
        border-bottom: none;
        margin-top: 1rem;
    }

    .overview-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid var(--color-border);
        padding-bottom: 1rem;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .pricing-table-wrapper {
        padding: 1rem;
    }

    .pricing-table {
        font-size: 0.85rem;
        min-width: 550px;
    }

    .pricing-table th {
        padding: 0.8rem 0.4rem;
        font-size: 0.9rem;
    }

    .pricing-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }

    .pricing-notes {
        padding: 1.5rem;
    }

    .flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-cta {
        flex-direction: column;
    }

    .contact-cta .btn {
        width: 100%;
    }

    .btn-application {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

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

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-image {
        margin-bottom: 1.5rem;
    }

    .hero-image img {
        max-width: 100%;
        border: 2px solid rgba(255, 255, 255, 0.9);
        border-radius: 10px;
    }

    .hero-title {
        font-size: 1.3rem;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-application {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
    }

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

    .pricing-table-wrapper {
        padding: 0.5rem;
    }

    .pricing-table {
        font-size: 0.75rem;
        min-width: 500px;
    }

    .pricing-table th {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }

    .pricing-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .pricing-loading {
        padding: 2rem;
        font-size: 1rem;
    }

    .pricing-notes {
        padding: 1rem;
    }

    .pricing-notes h3 {
        font-size: 1.1rem;
    }

    .pricing-notes li {
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .logo img {
        height: 35px;
    }
}
