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

body {
    font-family: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #4a5568;
    background: #ffffff;
    font-size: 15px;
    text-align: left;
    position: relative;
    overflow-x: hidden;
}


/* Common container styles */
.container, .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.logo h1 {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: #3498db;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: #0a0f1e;
    padding: 140px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    /* 青いグラデーションを一時的に無効化 */
    /* background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%); */
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
    /* 完全に無効化 */
    display: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    /* パターンを一時的に無効化 */
    /* background-image: 
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.12) 3px, transparent 3px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 70px 70px, 50px 50px, 90px 90px;
    background-position: 0 0, 35px 25px, 45px 45px;
    animation: patternFloatRight 25s ease-in-out infinite; */
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
    /* 完全に無効化 */
    display: none;
}

@keyframes patternFloatRight {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-8px) rotate(0.5deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-12px) rotate(-0.5deg);
        opacity: 0.9;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/NWS_Science_6590.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 1;
    z-index: 9999;
    filter: brightness(1.3) contrast(1.1) saturate(1.2);
    mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.9) 30%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    -webkit-mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.9) 30%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

@keyframes heroZoom {
    0% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1.05) translateY(-10px);
    }
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 30, 0.8) 0%,
        rgba(10, 15, 30, 0.6) 30%,
        rgba(10, 15, 30, 0.4) 60%,
        rgba(10, 15, 30, 0.2) 100%
    );
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(74, 222, 128, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(34, 197, 94, 0.03) 0%, transparent 40%);
    z-index: 2;
    animation: floatGradient 20s ease-in-out infinite;
}

@keyframes floatGradient {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

@keyframes patternFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-8px) rotate(0.5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-4px) rotate(-0.5deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-12px) rotate(0.3deg);
        opacity: 1;
    }
}

/* .hero-overlay は削除 */

/* オーバーレイアニメーションは一時的に無効化 */

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 60px 0;
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    grid-template-areas:
        "main info"
        "cta info";
}

.hero-main {
    order: unset;
    grid-area: main;
}

.hero-info {
    order: unset;
    grid-area: info;
}

.hero-cta {
    order: unset;
    width: auto;
    grid-area: cta;
    margin-top: -6rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
    position: relative;
    z-index: 20;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(22, 163, 74, 0.4);
    }
}

.hero-main {
    max-width: none;
}

.hero h1 {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeInUp 1.2s ease-out;
}

.hero-en-accent {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.4em;
    font-weight: 600;
    letter-spacing: 0.2em;
    opacity: 1;
    margin-top: 1.2rem;
    text-transform: uppercase;
    color: #4ade80;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(74, 222, 128, 0.5);
}

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


.hero h2 {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 3rem;
    max-width: 600px;
    opacity: 0.95;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1.4s ease-out 0.2s both;
    position: relative;
    padding-left: 20px;
}

.hero h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #4ade80 0%, transparent 100%);
    border-radius: 2px;
}

.hero-subtitle {
    display: none;
}

.hero-info {
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid rgba(22, 163, 74, 0.6);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(22, 163, 74, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    text-align: left;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(22, 163, 74, 0.2);
    color: #1e293b;
    font-weight: 500;
}

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

.info-icon {
    font-size: 1.5rem;
    min-width: 24px;
    text-align: center;
    margin-top: 2px;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content strong {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.info-content span {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: -6rem;
    grid-column: 1 / -1;
}

.price-info {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.price-main {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #15803d;
    text-shadow: 
        0 2px 10px rgba(21, 128, 61, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 3px solid rgba(21, 128, 61, 0.5);
    box-shadow:
        0 8px 32px rgba(21, 128, 61, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.price-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.5rem;
    text-align: center;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid rgba(21, 128, 61, 0.4);
    margin-top: 0.5rem;
    align-items: center;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    text-align: center;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #15803d;
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-button:hover::after {
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    }
}

/* Section Styles */
.section {
    padding: 120px 0;
}

.section:nth-child(even) {
    background: #fafafa;
}

.section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a202c;
    position: relative;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3b82f6;
}

.section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2d3748;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Program Content */
.program-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    font-weight: 400;
}

.program-image {
    margin-bottom: 2.5rem;
}

.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
    opacity: 1;
    background: #f8f9fa;
}

.content-image:hover {
    transform: scale(1.01);
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.highlight-item {
    background: #fff;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.highlight-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(59,130,246,0.12);
    border-color: #3b82f6;
}

.highlight-image {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #f8f9fa;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.highlight-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px 16px 0 0;
    transition: transform 0.3s ease;
    display: block;
    opacity: 1;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    vertical-align: top;
}

.highlight-item:hover .highlight-img {
    transform: scale(1.03);
}

.highlight-item h3 {
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    padding: 0 1.5rem;
    padding-top: 1.5rem;
}

.highlight-item p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    padding: 0 1.5rem;
    padding-bottom: 1.5rem;
    margin: 0;
}

/* Class Categories */
.class-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.category {
    background: #fff;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #3b82f6;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.category:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(59,130,246,0.12);
    border-top-width: 6px;
}

.category-image {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.category-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transition: transform 0.3s ease;
    display: block;
    opacity: 1;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    vertical-align: top;
}

.category:hover .category-img {
    transform: scale(1.03);
}

.category h4 {
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    padding: 0 2rem;
    padding-top: 1.5rem;
}

.category p {
    line-height: 1.6;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0 2rem;
    padding-bottom: 2rem;
    margin: 0;
}

/* Schedule Content */
.schedule-content {
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-image {
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Schedule Table */
.schedule-table {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

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

.schedule-table th,
.schedule-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.schedule-table th {
    background: #000;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-table td {
    font-size: 0.9rem;
    color: #4a5568;
}

.schedule-table tr:hover {
    background-color: #f8f9fa;
}

/* Content Sections */
.campus-content,
.access-content,
.seattle-content,
.school-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1rem;
    color: #4a5568;
    text-align: left;
    font-weight: 400;
}

.campus-content p,
.access-content p,
.seattle-content p,
.school-content p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.campus-content p:first-of-type {
    margin-top: 2rem;
}

/* Campus Images */
.campus-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.campus-image {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Color placeholder styles */
.color-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.color-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.color-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.color-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin: 0;
}

.color-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 1;
}

/* Access, Seattle, School Images */
.access-image,
.seattle-image,
.school-image {
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Access Info */
.access-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
    min-height: 500px;
}

.access-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.access-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.access-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    flex: 1;
}

.access-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.access-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.address {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    font-weight: 500;
}

.access-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.detail-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.detail-value {
    color: #4a5568;
    font-weight: 500;
    text-align: right;
}

/* Contact Form */
.form-description {
    text-align: center;
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.required-note {
    font-size: 0.9rem;
    color: #e53e3e;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.contact-form {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #3b82f6;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* 姓と名を横並びに配置 */
.name-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.name-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* フリガナも横並びに配置 */
.furigana-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.furigana-row .form-group {
    flex: 1;
    margin-bottom: 0;
}


.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1a202c;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f7fafc;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    pointer-events: auto;
    user-select: text;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #10b981;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.submit-button {
    background: #3b82f6;
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1d4ed8;
    transition: width 0.3s ease;
    z-index: -1;
}

.submit-button:hover::after {
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #1e3a8a;
    color: white;
    padding: 3.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.footer-info a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name-row,
    .furigana-row {
        flex-direction: column;
        gap: 0;
    }

    .name-row .form-group,
    .furigana-row .form-group {
        margin-bottom: 1.5rem;
    }

    .nav-menu {
        display: none;
    }
    
    .logo h1 {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 60px 0 30px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 40px 20px 0;
        display: flex;
        flex-direction: column;
    }

    .hero-main {
        order: 1;
    }

    .hero-info {
        order: 2;
    }

    .hero-cta {
        order: 3;
        width: 100%;
        margin-top: 1.5rem;
    }

    .price-info {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        letter-spacing: 0.01em;
        white-space: normal;
        color: #ffffff;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            1px 1px 2px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(0, 0, 0, 0.4);
        margin-bottom: 1.5rem;
    }
    
    .hero-en-accent {
        font-size: 0.6em;
        margin-top: 0.6rem;
    }
    
    .hero h2 {
        font-size: 0.95rem;
        padding-left: 15px;
        max-width: 100%;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero h2::before {
        width: 2px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        animation: fadeInUp 1.4s ease-out 0.3s both;
    }
    
    .info-item {
        padding: 0.8rem;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(74, 222, 128, 0.02) 100%);
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        min-width: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1.2rem;
        grid-column: 1;
        margin-top: 1.5rem;
    }
    
    .price-main {
        font-size: 1.8rem;
        padding: 0.8rem 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .price-details {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .cta-button {
        font-size: 0.85rem;
        padding: 0.9rem 1.8rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .section h3 {
        font-size: 1.1rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .highlight-item {
        margin: 0 1rem;
    }
    
    .highlight-item h3 {
        padding: 1rem 1.25rem 0;
        font-size: 1.2rem;
    }
    
    .highlight-item p {
        padding: 0 1.25rem 1.25rem;
    }
    
    .class-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .category {
        margin: 0 1rem;
    }
    
    .category h4 {
        padding: 1rem 1.5rem 0;
        font-size: 1.2rem;
    }
    
    .category p {
        padding: 0 1.5rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-description {
        margin-bottom: 2rem;
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .required-note {
        font-size: 0.85rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-copyright {
        text-align: center;
        align-self: center;
    }
    
    .campus-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .color-placeholder {
        height: 250px;
    }
    
    .color-content h4 {
        font-size: 1.3rem;
    }
    
    .color-content p {
        font-size: 0.9rem;
    }
    
    .program-content,
    .campus-content,
    .access-content,
    .seattle-content,
    .school-content {
        font-size: 0.95rem;
    }
    
    .access-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .access-card {
        padding: 2rem;
        margin: 0 1rem;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .access-map {
        margin: 0 1rem;
        min-height: 400px;
    }
    
    .access-map iframe {
        height: 400px;
        min-height: 400px;
    }
    
    .access-icon {
        font-size: 2.5rem;
    }
    
    .access-card h3 {
        font-size: 1.3rem;
    }
    
    .address {
        font-size: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0 30px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        white-space: normal;
        margin-bottom: 1rem;
        color: #ffffff;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            1px 1px 2px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(0, 0, 0, 0.4);
    }
    
    .hero h2 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .hero-en-accent {
        font-size: 0.5em;
        margin-top: 0.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .section h3 {
        font-size: 1.4rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .highlight-img,
    .category-img {
        height: 180px;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: top !important;
        display: block !important;
    }
    
    .highlight-image {
        margin: 0 !important;
        padding: 0 !important;
        height: 180px !important;
    }
    
    .category-image {
        margin: 0 !important;
        padding: 0 !important;
        height: 180px !important;
    }
    
    .hero-info {
        padding: 1rem;
    }
    
    .info-grid {
        gap: 1rem;
    }
    
    .info-item {
        padding: 0.6rem;
    }
    
    .info-icon {
        font-size: 1.5rem;
        min-width: 18px;
    }
    
    .hero-cta {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .price-main {
        font-size: 1.9rem;
        padding: 0.8rem 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .price-details {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .cta-button {
        font-size: 0.85rem;
        padding: 0.9rem 1.8rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo {
        gap: 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* より小さなディスプレイ用の調整 */
@media (max-width: 320px) {
    .hero {
        padding: 40px 0 20px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        color: #ffffff;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            1px 1px 2px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(0, 0, 0, 0.4);
    }
    
    .hero h2 {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        padding-left: 10px;
    }
    
    .hero h2::before {
        width: 1px;
    }
    
    .hero-en-accent {
        font-size: 0.45em;
        margin-top: 0.4rem;
    }
    
    .hero-info {
        padding: 0.8rem;
    }
    
    .info-grid {
        gap: 0.8rem;
    }
    
    .info-item {
        padding: 0.5rem;
    }
    
    .info-icon {
        font-size: 1.3rem;
        min-width: 16px;
    }
    
    .hero-cta {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .price-main {
        font-size: 1.6rem;
        padding: 0.7rem 1rem;
        margin-bottom: 0.3rem;
    }
    
    .price-details {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}


/* Loading Animation for Form */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "送信しています…";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26,95,122,0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    z-index: 1000;
    font-size: 0.9rem;
}



/* Print Styles */
@media print {
    .nav-menu,
    .cta-button,
    .submit-button {
        display: none;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
}

/* Enhanced Typography */
.logo h1 {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.nav-menu a {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.footer-info p {
    font-weight: 400;
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.field-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

/* Form message styles */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    animation: slideInDown 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Loading state for form */
.contact-form.loading {
    position: relative;
    pointer-events: none;
}

.contact-form.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    z-index: 10;
}

.contact-form.loading .submit-button {
    position: relative;
    z-index: 11;
}
/* ローディング画面のスタイル */
#Loading {
  /* 画面全体を覆うように設定 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* 背景を半透明のグレーにする */
  background-color: rgba(0, 0, 0, 0.5);
  
  /* 最前面に表示されるようにする */
  z-index: 9999;
  
  /* テキストを中央に配置する */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* テキストのスタイル */
  color: #fff;
  font-size: 24px;
}
/* Ensure all images are visible */
img {
    display: block;
    max-width: 100%;
    height: auto;
    opacity: 1;
    visibility: visible;
}

/* Image loading states */
img[src*="unsplash"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[src*="unsplash"]:not([src*="data:image"]) {
    opacity: 1;
} 