/* Global Styles */
:root {
    --primary-color: #345c94;
    --secondary-color: #fc6444;
    --dark-blue: #1f3a63;
    --light-blue: #4a76b8;
    --light-orange: #fd8369;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 5px 25px rgba(252, 100, 68, 0.2);
    --gradient-blue: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    --gradient-orange: linear-gradient(135deg, var(--secondary-color), var(--light-orange));
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

/* Base font styles */
body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23345c94' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Japanese specific font styles */
html[lang="ja"] body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', sans-serif;
    font-feature-settings: "palt"; /* Proportional spacing for Japanese text */
    letter-spacing: -0.02em;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="ja"] h1, 
html[lang="ja"] h2, 
html[lang="ja"] h3, 
html[lang="ja"] h4 {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

html[lang="ja"] .section-title {
    font-weight: 700;
}

html[lang="ja"] .hero h1 {
    font-weight: 800;
    letter-spacing: 0.01em;
}

html[lang="ja"] .hero .tagline p {
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Enhanced Japanese styling for buttons, navigation and interactive elements */
html[lang="ja"] .learn-more,
html[lang="ja"] .submit-btn,
html[lang="ja"] .contact-link {
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

html[lang="ja"] .submit-btn {
    border-radius: 100px;
    font-weight: 600;
    padding: 14px 32px;
}

html[lang="ja"] .main-menu a {
    font-weight: 600;
    letter-spacing: 0.02em;
}

html[lang="ja"] .card,
html[lang="ja"] .service-item {
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

html[lang="ja"] .card h4,
html[lang="ja"] .service-item h4 {
    font-weight: 700;
    margin-bottom: 18px;
}

html[lang="ja"] .contact-card {
    border-radius: 16px;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

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

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

/* Button Styles */
.btn-primary {
    display: inline-block;
    background: var(--gradient-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transition: transform 0.6s;
    z-index: -1;
}

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

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo img {
    height: 50px;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
}

.main-menu li {
    margin-left: 30px;
}

.main-menu a {
    color: var(--dark-gray);
    font-weight: 500;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-menu a:hover {
    color: var(--secondary-color);
}

.main-menu a:hover::after {
    width: 100%;
}

.language-selector {
    margin-left: 30px;
    display: flex;
}

.language-selector a {
    padding: 5px 10px;
    color: var(--medium-gray);
    font-size: 0.9rem;
    border-radius: 4px;
}

.language-selector a.active,
.language-selector a:hover {
    color: var(--primary-color);
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--primary-color);
    overflow: hidden;
    padding: 150px 0 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    margin-top: 80px;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 53, 94, 0.95), rgba(27, 53, 94, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease;
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero .tagline p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    line-height: 1.5;
}

.hero-buttons {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.button-container {
    display: none;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    display: block;
    object-fit: contain;
}

.hero-service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.hero-service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-service-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-service-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(252, 100, 68, 0.2) 0%, rgba(252, 100, 68, 0) 70%);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 118, 184, 0.2) 0%, rgba(74, 118, 184, 0) 70%);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    top: 50%;
    right: 20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float 10s ease-in-out infinite;
}

.animate-title {
    animation: fadeInDown 1s ease-out;
}

.animate-subtitle {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
        order: 1;
    }
    
    .hero-image {
        order: 0;
        margin-top: 20px;
    }
    
    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .hero-service-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons a.btn-primary,
    .hero-buttons a.btn-secondary {
        display: block !important;
        margin: 0 auto 10px !important;
        width: 80% !important;
        max-width: 250px !important;
    }
    
    .hero {
        padding: 100px 0 80px;
        margin-top: 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline p {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .tagline p {
        font-size: 1.4rem;
    }
    
    .hero-service-cards {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Mission Section */
.mission {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--gradient-blue);
    opacity: 0.05;
    z-index: 0;
}

.mission::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-orange);
    opacity: 0.05;
    z-index: 0;
}

.mission-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem;
    z-index: 1;
}

.mission-content p {
    margin-bottom: 20px;
}

/* Enhanced Japanese styling for content sections */
html[lang="ja"] .mission-content {
    font-size: 1.1rem;
    line-height: 1.9;
    font-weight: 500;
}

html[lang="ja"] .mission-content p {
    margin-bottom: 25px;
}

html[lang="ja"] .service-item p,
html[lang="ja"] .card p {
    line-height: 1.8;
    font-size: 0.95rem;
}

html[lang="ja"] .section-subtitle {
    font-weight: 500;
    letter-spacing: 0.03em;
}

html[lang="ja"] .stat-label {
    font-weight: 600;
}

html[lang="ja"] .form-group label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

html[lang="ja"] .contact-card h3 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

html[lang="ja"] .footer-column h4 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Experiences Section */
.experiences {
    padding: 120px 0;
    background-color: #f9fafc;
    position: relative;
    overflow: hidden;
}

.experiences::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23345c94' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.experience-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.card {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-blue);
    transition: height 0.3s ease;
}

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

.card:hover::before {
    height: 10px;
}

.card-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

/* Services Section */
.services {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.service-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-blue);
    opacity: 0.02;
    transition: height 0.3s ease;
    z-index: -1;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-item:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(52, 92, 148, 0.1), rgba(52, 92, 148, 0.2));
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 25px;
}

.service-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.learn-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
    position: relative;
}

.learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.learn-more:hover::after {
    width: 100%;
}

.learn-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* Network Map Section */
.network-map {
    padding: 120px 0;
    background-color: #f0f5ff;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(120deg, rgba(240, 245, 255, 0.95), rgba(240, 245, 255, 0.95)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.network-map .section-title {
    margin-bottom: 50px;
}

.map-container {
    position: relative;
    height: 400px;
    background-image: url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5ce?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.network-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.point {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
}

.point:hover {
    transform: scale(1.3);
}

.point .pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.point .tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: var(--white);
    color: var(--dark-gray);
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.point:hover .tooltip {
    opacity: 1;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 92, 148, 0.7), rgba(31, 58, 99, 0.8));
    border-radius: 20px;
}

.network-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    flex: 1 1 200px;
    padding: 20px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    margin: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-orange);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

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

.contact-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-blue);
    opacity: 0.05;
    transition: width 0.3s ease;
    z-index: 0;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.contact-card:hover::before {
    width: 100%;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.contact-card p {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-link i {
    margin-right: 10px;
}

.contact-link:hover {
    color: var(--light-orange);
}

.contact-form {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--gradient-orange);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
    z-index: 0;
}

.contact-form::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: var(--gradient-blue);
    opacity: 0.05;
    border-radius: 0 100% 0 0;
    z-index: 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 92, 148, 0.1);
}

.submit-btn {
    background: var(--gradient-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transition: transform 0.6s;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

/* Checkbox styles for contact form */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    width: 100%;
    position: relative;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-item label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    display: inline-block;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.checkbox-item label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 7px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item:hover label::before {
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 3px rgba(52, 92, 148, 0.2);
}

/* Make two columns on larger screens */
@media (min-width: 576px) {
    .checkbox-item {
        width: 50%;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 575px) {
    .checkbox-item {
        width: 100%;
    }
}

/* Japanese specific styling for checkbox labels */
html[lang="ja"] .checkbox-item label {
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Footer Styles */
footer {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transform: translate(150px, -150px);
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

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

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 1024px) {
    .card, 
    .service-item {
        padding: 30px 20px;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .main-menu.active {
        display: flex;
        opacity: 1;
    }
    
    .main-menu li {
        margin: 20px 0;
    }
    
    .main-menu a {
        font-size: 1.5rem;
    }
    
    .language-selector {
        margin-top: 30px;
        margin-left: 0;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .tagline p {
        font-size: 1.4rem;
    }
    
    .card, 
    .service-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .social-links {
        margin-top: 20px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

.success-message {
    text-align: center;
    padding: 40px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.success-message i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: float 2s ease-in-out infinite;
}

.success-message h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Oshirase Important Section Styles */
.oshirase-important {
    padding: 50px 0;
    background-color: var(--light-gray);
    position: relative;
}

.oshirase-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.tabs-container {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--medium-gray);
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.notice-list {
    list-style: none;
    padding: 0;
}

.notice-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-date {
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 0.85rem;
    color: var(--medium-gray);
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 15px;
    display: inline-block;
    font-weight: 500;
}

.notice-link {
    color: var(--dark-gray);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.notice-link:hover {
    color: var(--secondary-color);
}

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

/* Mobile responsive styles for oshirase section */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #eee;
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .tab-button::after {
        height: 100%;
        width: 3px;
        right: 0;
        left: auto;
        top: 0;
        transform: scaleY(0);
    }
    
    .tab-button.active::after {
        transform: scaleY(1);
    }
    
    .notice-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notice-date {
        margin-bottom: 8px;
    }
}

/* Page Title Section */
.page-title {
    position: relative;
    padding: 120px 0 80px;
    background-color: #f8f9fa;
    text-align: center;
    overflow: hidden;
}

.page-title h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #2d3748;
    position: relative;
    z-index: 2;
}

.page-title p {
    font-size: 1.2rem;
    color: #606060;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-title-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-title-shapes .shape {
    position: absolute;
    border-radius: 50%;
}

.page-title-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(98, 126, 234, 0.05);
    top: -100px;
    right: -100px;
}

.page-title-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(98, 126, 234, 0.08);
    bottom: -50px;
    left: -50px;
}

/* Responsive styles for Page Title */
@media (max-width: 768px) {
    .page-title {
        padding: 100px 0 60px;
    }
    
    .page-title h1 {
        font-size: 2.5rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        padding: 80px 0 40px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
} 