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

:root {
    /* Atlassian Design System inspired color tokens */
    --ds-background-default: #FFFFFF;
    --ds-background-subtle: #F7F8F9;
    --ds-background-neutral: #091E42;
    --ds-text: #172B4D;
    --ds-text-subtle: #6B778C;
    --ds-text-inverse: #FFFFFF;
    --ds-border: #DFE1E6;
    --ds-border-focused: #579DFF;
    --ds-brand-primary: #0052CC;
    --ds-brand-secondary: #579DFF;
    --ds-elevation-shadow-raised: 0 1px 1px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
    --ds-elevation-shadow-overlay: 0 4px 8px -2px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
    --ds-space-025: 2px;
    --ds-space-050: 4px;
    --ds-space-075: 6px;
    --ds-space-100: 8px;
    --ds-space-150: 12px;
    --ds-space-200: 16px;
    --ds-space-300: 24px;
    --ds-space-400: 32px;
    --ds-space-500: 40px;
    --ds-border-radius: 3px;
    --ds-border-radius-200: 6px;
    --ds-font-size-100: 14px;
    --ds-font-size-200: 16px;
    --ds-font-size-300: 20px;
    --ds-font-size-400: 24px;
    --ds-font-size-500: 29px;
    --ds-font-size-600: 35px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    color: var(--ds-text);
    background-color: var(--ds-background-default);
}

/* Header Navigation */
.main-header {
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--ds-elevation-shadow-raised);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--ds-space-300);
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: var(--ds-font-size-300);
    font-weight: 600;
    color: var(--ds-brand-primary);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--ds-brand-primary), var(--ds-brand-secondary));
    border-radius: var(--ds-border-radius);
    margin-right: var(--ds-space-150);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-text-inverse);
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--ds-space-200);
    margin-left: auto;
}

.nav-link {
    color: var(--ds-text);
    font-size: var(--ds-font-size-100);
    font-weight: 500;
    text-decoration: none;
    padding: var(--ds-space-100) var(--ds-space-200);
    border-radius: var(--ds-border-radius);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background-color: var(--ds-background-subtle);
    color: var(--ds-brand-primary);
}

.nav-link.active {
    background-color: var(--ds-brand-secondary);
    color: var(--ds-text-inverse);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--ds-space-150);
}

.btn-primary {
    background: var(--ds-brand-primary);
    color: var(--ds-text-inverse);
    border: none;
    padding: var(--ds-space-100) var(--ds-space-200);
    border-radius: var(--ds-border-radius);
    font-size: var(--ds-font-size-100);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: var(--ds-brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--ds-elevation-shadow-raised);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ds-text);
}

/* Hero Slideshow */
.hero-slideshow {
    margin-top: 64px;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: var(--ds-background-neutral);
}

.splide__track,
.splide__list {
    height: 100%;
}

.splide__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    height: 100%;
}

.splide__slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px);
    z-index: 1;
    opacity: 0.75;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--ds-text-inverse);
    max-width: 800px;
    padding: 0 var(--ds-space-300);
}

.slide-title {
    font-size: var(--ds-font-size-600);
    font-weight: 700;
    margin-bottom: var(--ds-space-300);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: var(--ds-font-size-300);
    font-weight: 300;
    margin-bottom: var(--ds-space-400);
    opacity: 0.9;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-150);
    background: rgba(255, 255, 255, 0.2);
    color: var(--ds-text-inverse);
    padding: var(--ds-space-200) var(--ds-space-400);
    border-radius: var(--ds-border-radius-200);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.slide-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.slideshow-controls {
    position: absolute;
    bottom: var(--ds-space-300);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--ds-space-100);
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: var(--ds-text-inverse);
    transform: scale(1.2);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--ds-text-inverse);
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slide-nav.prev {
    left: var(--ds-space-300);
}

.slide-nav.next {
    right: var(--ds-space-300);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ds-space-300);
}

.section {
    padding: var(--ds-space-500) 0;
}

.section-white {
    background: var(--ds-background-default);
}

.section-subtle {
    background: var(--ds-background-subtle);
}

.section-title {
    text-align: center;
    margin-bottom: var(--ds-space-500);
}

.section-title h2 {
    font-size: var(--ds-font-size-500);
    font-weight: 600;
    color: var(--ds-text);
    margin-bottom: var(--ds-space-200);
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ds-brand-secondary);
    border-radius: 2px;
}

.section-title p {
    font-size: var(--ds-font-size-200);
    color: var(--ds-text-subtle);
    max-width: 600px;
    margin: 0 auto;
}

/* Introduction */
.intro-section {
    text-align: center;
    margin-bottom: var(--ds-space-500);
}

.intro-text {
    font-size: var(--ds-font-size-300);
    color: var(--ds-brand-primary);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto var(--ds-space-400);
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    background: var(--ds-surface-raised);
    border-radius: var(--ds-border-radius-200);
    padding: var(--ds-space-500) var(--ds-space-400);
    margin: var(--ds-space-500) 0;
    text-align: center;
    box-shadow: var(--ds-elevation-shadow-overlay);
    border: 1px solid var(--ds-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ds-space-400);
    margin-top: var(--ds-space-400);
}

.stat-item {
    padding: var(--ds-space-300);
    border-radius: var(--ds-border-radius);
    background: var(--ds-background-subtle);
}

.stat-number {
    font-size: var(--ds-font-size-600);
    font-weight: 700;
    color: var(--ds-brand-primary);
    display: block;
    margin-bottom: var(--ds-space-100);
}

.stat-label {
    font-size: var(--ds-font-size-100);
    color: var(--ds-text-subtle);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--ds-space-300);
    margin: var(--ds-space-500) 0;
}

.feature-card {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-border-radius-200);
    padding: var(--ds-space-400);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ds-elevation-shadow-overlay);
    border-color: var(--ds-border-focused);
}

.feature-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--ds-space-200);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--ds-brand-secondary);
    border-radius: var(--ds-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--ds-space-200);
    font-size: 20px;
    color: var(--ds-text-inverse);
    flex-shrink: 0;
}

.feature-title {
    font-size: var(--ds-font-size-200);
    font-weight: 600;
    color: var(--ds-text);
    margin: 0;
}

.feature-description {
    color: var(--ds-text-subtle);
    line-height: 1.6;
    font-size: var(--ds-font-size-100);
}

/* Key Points */
.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--ds-space-300);
    margin: var(--ds-space-500) 0;
}

.key-point {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-border-radius-200);
    padding: var(--ds-space-400);
    text-align: center;
    transition: all 0.2s ease;
}

.key-point:hover {
    transform: translateY(-2px);
    box-shadow: var(--ds-elevation-shadow-overlay);
    border-color: var(--ds-border-focused);
}

.key-point-icon {
    width: 64px;
    height: 64px;
    background: var(--ds-background-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--ds-space-300);
    font-size: 28px;
    color: var(--ds-brand-primary);
}

.key-point h3 {
    font-size: var(--ds-font-size-200);
    color: var(--ds-text);
    margin-bottom: var(--ds-space-150);
    font-weight: 600;
}

.key-point p {
    color: var(--ds-text-subtle);
    font-size: var(--ds-font-size-100);
    line-height: 1.6;
}

/* Timeline */
.timeline {
    margin: var(--ds-space-500) 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ds-border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: var(--ds-space-400) 0;
    position: relative;
}

.timeline-content {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-border-radius-200);
    padding: var(--ds-space-300);
    width: 45%;
    position: relative;
    box-shadow: var(--ds-elevation-shadow-raised);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-year {
    font-size: var(--ds-font-size-200);
    font-weight: 600;
    color: var(--ds-brand-primary);
    margin-bottom: var(--ds-space-100);
}

.timeline-description {
    color: var(--ds-text-subtle);
    font-size: var(--ds-font-size-100);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--ds-brand-primary);
    border-radius: 50%;
    border: 3px solid var(--ds-surface);
    box-shadow: 0 0 0 2px var(--ds-brand-primary);
    z-index: 3;
}

/* Access Section */
.access-section {
    background: var(--ds-background-subtle);
    padding: var(--ds-space-500) 0;
    text-align: center;
}

.access-content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-border-radius-200);
    padding: var(--ds-space-500);
    box-shadow: var(--ds-elevation-shadow-overlay);
}

.access-icon {
    font-size: 48px;
    color: var(--ds-brand-primary);
    margin-bottom: var(--ds-space-300);
}

.access-title {
    font-size: var(--ds-font-size-400);
    font-weight: 600;
    color: var(--ds-text);
    margin-bottom: var(--ds-space-200);
}

.access-description {
    font-size: var(--ds-font-size-200);
    color: var(--ds-text-subtle);
    line-height: 1.6;
    margin-bottom: var(--ds-space-400);
}

.btn-secondary {
    background: var(--ds-background-subtle);
    color: var(--ds-text);
    border: 1px solid var(--ds-border);
    padding: var(--ds-space-100) var(--ds-space-200);
    border-radius: var(--ds-border-radius);
    text-decoration: none;
    font-size: var(--ds-font-size-100);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    margin: var(--ds-space-100);
}

.btn-secondary:hover {
    background: var(--ds-background-default);
    border-color: var(--ds-border-focused);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        /* ヘッダーの高さ（64px）の真下にぴったり合わせる */
        left: 0;
        right: 0;

        /* 👇 ここが超重要：透過を防ぐためにアトラシアンの真っ白な背景を強制 */
        background-color: var(--ds-background-default, #FFFFFF) !important;

        /* 👇 最前面に表示させるためにz-indexを高く設定 */
        z-index: 9999 !important;

        flex-direction: column;
        padding: var(--ds-space-200);

        /* メニューの下側に綺麗な影をつけてスライドと分離させる */
        box-shadow: 0 4px 12px rgba(9, 30, 66, 0.15);
        border-bottom: 1px solid var(--ds-border);
    }

    /* メニューが開いた時（activeクラスがついた時）の表示設定 */
    .main-nav.active {
        display: flex !important;
    }

    /* スマホメニュー内の各リンクの文字色と配置を調整 */
    .main-nav .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--ds-space-150) 0;
        color: var(--ds-text) !important;
        /* 文字が透けたり白く消えたりするのを防ぐ */
        border-bottom: 1px solid var(--ds-background-subtle);
    }

    .main-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* アクティブなページの背景（青）がスマホでも綺麗に収まるように調整 */
    .main-nav .nav-link.active {
        background-color: var(--ds-brand-secondary) !important;
        color: var(--ds-text-inverse) !important;
        border-radius: var(--ds-border-radius);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-slideshow {
        height: 400px;
    }

    .slide-title {
        font-size: var(--ds-font-size-400);
    }

    .slide-subtitle {
        font-size: var(--ds-font-size-200);
    }

    .timeline::before {
        left: var(--ds-space-300);
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 50px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: var(--ds-space-300);
    }

    .slide-nav {
        display: none;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/*News*/
body>section.section.section-subtle.fade-in.visible>div>ul {
    --ds-text: #579DFF;
    --ds-text-subtle: #6B778C;
    --ds-text-inverse: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    text-align: left;
    padding: 0;
    box-sizing: border-box;
    font-size: var(--ds-font-size-200);
    color: var(--ds-text-subtle);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #091E42;
    color: #fff;
    padding: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-info h3 {
    margin-bottom: 15px;
}

#Copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans JP', 'Hiragino Sans', sans-serif;

}

/* --- Order Form Section --- */
.order-form-container {
    max-width: 800px;
    margin: var(--ds-space-500) auto;
    padding: var(--ds-space-400);
    background: var(--ds-background-default);
    border-radius: var(--ds-border-radius-200);
    box-shadow: var(--ds-elevation-shadow-overlay);
    border: 1px solid var(--ds-border);
}

.form-group {
    margin-bottom: var(--ds-space-300);
}

.form-group label {
    display: block;
    font-size: var(--ds-font-size-100);
    font-weight: 600;
    color: var(--ds-text);
    margin-bottom: var(--ds-space-100);
}

.form-group label .required {
    color: #DE350B;
    /* Atlassian Danger Red */
    margin-left: var(--ds-space-050);
}

/* Input Styles */
.form-control {
    width: 100%;
    padding: var(--ds-space-100) var(--ds-space-150);
    font-size: var(--ds-font-size-100);
    font-family: inherit;
    color: var(--ds-text);
    background-color: var(--ds-background-subtle);
    border: 2px solid var(--ds-border);
    border-radius: var(--ds-border-radius);
    transition: all 0.2s ease-in-out;
}

.form-control:hover {
    background-color: #EBECF0;
}

.form-control:focus {
    outline: none;
    background-color: var(--ds-background-default);
    border-color: var(--ds-border-focused);
    box-shadow: 0 0 0 2px rgba(87, 157, 255, 0.2);
}

/* Select, Textarea specifics */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2342526E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--ds-space-150) center;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--ds-space-100);
    margin-bottom: var(--ds-space-100);
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Order Summary Box */
.order-summary {
    background: var(--ds-background-subtle);
    padding: var(--ds-space-300);
    border-radius: var(--ds-border-radius);
    margin: var(--ds-space-400) 0;
    border: 1px dashed var(--ds-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--ds-space-100);
    font-size: var(--ds-font-size-100);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: var(--ds-space-150);
    padding-top: var(--ds-space-150);
    border-top: 2px solid var(--ds-border);
    font-weight: 700;
    font-size: var(--ds-font-size-200);
    color: var(--ds-brand-primary);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--ds-space-200);
    margin-top: var(--ds-space-400);
}

.btn-submit {
    background: var(--ds-brand-primary);
    color: var(--ds-text-inverse);
    border: none;
    padding: var(--ds-space-150) var(--ds-space-400);
    border-radius: var(--ds-border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #0065FF;
    box-shadow: var(--ds-elevation-shadow-raised);
}

@media (max-width: 600px) {
    .order-form-container {
        margin: var(--ds-space-200);
        padding: var(--ds-space-200);
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
    }
}

/* Relocation Page Styles */
.address-info {
    background-color: var(--ds-background-subtle);
    padding: var(--ds-space-300);
    margin-top: var(--ds-space-300);
    border-left: 5px solid var(--ds-brand-primary);
    border-radius: var(--ds-border-radius);
}

.old-address-info {
    background-color: var(--ds-background-subtle);
    padding: var(--ds-space-200);
    margin-top: var(--ds-space-400);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-border-radius);
}

.old-address-info h3 {
    color: var(--ds-text-subtle);
    font-size: 1.1em;
    margin-bottom: var(--ds-space-150);
    border-bottom: 1px solid var(--ds-border);
    padding-bottom: var(--ds-space-100);
}