/* ======== Liquid Glass Design & Apple-style UI (Updated) ======== */

/* ----------------------------------------------
 * 基本変数定義
 * ---------------------------------------------- */
 :root {
    --primary-blue-start: #007aff;
    --primary-blue-end: #5ac8fa;
    --primary-gradient: linear-gradient(135deg, var(--primary-blue-start) 0%, var(--primary-blue-end) 100%);
    --text-gradient-up: linear-gradient(to top, #5ac8fa, #007aff);

    --text-dark: #1d1d1f;
    --text-light: #6e6e73;

    --glass-bg: rgba(242, 242, 247, 0.75);
    --glass-border-color: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(20px);
    --glass-saturate: saturate(180%);

    --border-radius: 20px;
    --soft-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --soft-shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.15);

    /* モバイルナビゲーション用の変数を追加 */
    --header-height: 72px;
    --mobile-nav-padding-top: 100px;
}

/* ----------------------------------------------
 * 基本スタイル
 * ---------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ----------------------------------------------
 * ヘッダー
 * ---------------------------------------------- */
.header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-saturate) var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-saturate) var(--glass-blur);
    border-bottom: 1px solid var(--glass-border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    min-height: var(--header-height);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-section .site-name, .seiun-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-section .subtitle {
    font-size: 0.875rem;
    color: var(--primary-blue-start);
    font-weight: 500;
}
.seiun-title {
   font-size: 2rem;
}

/* ----------------------------------------------
 * ハンバーガーメニュー
 * ---------------------------------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}
.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-blue-start);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
    transform-origin: center;
}
.hamburger.active span:first-child {
    transform: translateY(10.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.hamburger.active span:last-child {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ----------------------------------------------
 * ナビゲーション
 * ---------------------------------------------- */
.nav-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-saturate) var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-saturate) var(--glass-blur);
    border-bottom: 1px solid var(--glass-border-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}
.main-nav { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.nav-list { display: flex; list-style: none; margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-link { display: block; padding: 1rem 1.5rem; color: var(--text-dark); text-decoration: none; transition: all 0.3s ease; position: relative; white-space: nowrap; font-size: 0.9rem; font-weight: 500; }
.nav-link:hover { color: var(--primary-blue-start); background: rgba(255, 255, 255, 0.3); }
.nav-link.active { color: var(--primary-blue-start); font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 1.5rem; right: 1.5rem; height: 3px; background: var(--primary-gradient); border-radius: 3px; }
.additional-nav { background: rgba(242, 242, 247, 0.3); padding: 0.5rem 0; }
.additional-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
}
.additional-nav a {
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.additional-nav a:hover { color: var(--primary-blue-start); }


.additional-nav a[aria-current="page"] {
    color: var(--primary-blue-start);
    font-weight: 600;
}
/* ----------------------------------------------
 * ヒーローセクション
 * ---------------------------------------------- */
.hero { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 2rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45, 110, 175, 0.60), rgba(55, 150, 255, 0.50)); z-index: 1; pointer-events: none; }
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 5.5s ease, filter 0.7s ease;
}
.hero-bg.show {
    opacity: 1;
    transform: scale(1);
}
.hero-bg.hero-bg--loading {
    filter: blur(14px);
}
.hero-bg-1, .hero-bg-2 {
    z-index: 0;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero h2 { font-size: 2.5rem; margin-bottom: 1rem; animation: fadeInUp 0.8s ease; }
.hero p { font-size: 1.125rem; opacity: 0.95; animation: fadeInUp 0.8s ease 0.2s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------
 * メインコンテンツ & カードスタイル
 * ---------------------------------------------- */
.main-content { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.content-section, .sidebar, .facility-card, .contact-card { background: var(--glass-bg); backdrop-filter: var(--glass-saturate) var(--glass-blur); -webkit-backdrop-filter: var(--glass-saturate) var(--glass-blur); border-radius: var(--border-radius); border: 1px solid var(--glass-border-color); box-shadow: var(--soft-shadow); padding: 2rem; transition: all 0.4s ease; }
.content-section:hover, .sidebar:hover, .facility-card:hover { box-shadow: var(--soft-shadow-hover); transform: translateY(-5px); }

/* ----------------------------------------------
 * サイドバー
 * ---------------------------------------------- */
.sidebar { padding: 1.5rem; height: fit-content; }
.sidebar h3 { color: var(--primary-blue-start); font-size: 1.125rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.1); }
.sidebar-links { list-style: none; margin-bottom: 2rem; }
.sidebar-links li { margin-bottom: 0.5rem; }
.sidebar-links a { display: block; padding: 0.75rem; color: var(--text-dark); text-decoration: none; border-radius: 10px; transition: all 0.3s ease; }
.sidebar-links a:hover { background: rgba(0, 122, 255, 0.1); color: var(--primary-blue-start); transform: translateX(4px); }
.cta-button { display: block; background: var(--primary-gradient); color: white; text-align: center; padding: 1rem; border-radius: 15px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; margin-bottom: 2rem; border: none; box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3); }
.cta-button:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4); }
.contact-card { background: rgba(0, 122, 255, 0.05); padding: 1.5rem; font-size: 0.875rem; line-height: 1.8; }
.contact-card a { color: var(--primary-blue-start); text-decoration: none; transition: color 0.3s ease; }
.contact-card a:hover { color: var(--primary-blue-end); }

/* ----------------------------------------------
 * コンテンツセクション
 * ---------------------------------------------- */
.content-section { margin-bottom: 2rem; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--text-gradient-up);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid;
    border-image: var(--primary-gradient) 1;
    display: inline-block;
}
.content-text { color: var(--text-dark); margin-bottom: 1.5rem; line-height: 1.8; }
.content-with-image { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.image-container { position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--soft-shadow); }
.image-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder-image { background: rgba(230,230,230,0.5); border: 1px dashed rgba(0,0,0,0.2); padding: 40px; text-align: center; color: var(--text-light); min-height: 200px; display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: var(--border-radius); }
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.facility-card h4 { color: var(--primary-blue-start); margin-bottom: 0.5rem; }
.facility-card ul { padding-left: 20px; margin-top: 1rem; }

/* SEO対策用の追加スタイル */
.highlight-keyword {
    font-weight: bold;
    color: #0066cc;
}

.seo-content {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.seo-intro {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* 入寮時特待生制度アコーディオンのスタイル */
.scholarship-accordion {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.scholarship-accordion summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.05em;
    color: #1565c0;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.scholarship-accordion summary::-webkit-details-marker {
    display: none;
}

.scholarship-accordion summary::before {
    content: '▼';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.scholarship-accordion[open] summary::before {
    transform: rotate(-180deg);
}

.scholarship-accordion summary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.scholarship-content {
    padding: 1rem 1.5rem 1.5rem;
    background: white;
    animation: slideDown 0.3s ease;
}

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

.scholarship-content p {
    margin-bottom: 0.5rem;
}

.scholarship-content p:last-child {
    margin-bottom: 0;
}

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

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-item h3 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.faq-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.faq-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 2em;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: white;
    color: #0066cc;
    font-weight: bold;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.breadcrumb {
    padding: 1rem;
    background-color: #f8f9fa;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0066cc;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

.footer-keywords {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
}

mark {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 説明リスト */
.definition-list {
    margin-top: 1rem;
}
.definition-list-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5em;
}
.definition-list-item dt {
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
}
.definition-list-item dd {
    margin-left: 0.5em;
}

/* ----------------------------------------------
 * タイムライン (沿革)
 * ---------------------------------------------- */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid;
    border-image: var(--primary-gradient) 1;
    margin-top: 2rem;
}
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-item:last-of-type { margin-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 11px);
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary-gradient);
    border-radius: 50%;
    border: 4px solid white;
    z-index: 1;
}
.timeline-date { color: var(--primary-blue-start); font-weight: 600; margin-bottom: 0.5rem; }

/* ----------------------------------------------
 * ニュース記事
 * ---------------------------------------------- */
.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.news-date {
    flex-shrink: 0;
    color: var(--primary-blue-start);
    font-weight: 600;
    min-width: 100px;
}

.news-content {
    flex: 1;
}

/* ----------------------------------------------
 * フッター
 * ---------------------------------------------- */
.footer {
    background: linear-gradient(180deg, #0a0e27 0%, #1a1d35 50%, #0a0e27 100%);
    color: #d1d1d6;
    padding: 4rem 1rem 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue-start), var(--primary-blue-end), transparent);
}
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 122, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.footer-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    background: var(--text-gradient-up);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section a {
    color: #a8adc0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    padding-left: 0;
    position: relative;
}
.footer-section a::before {
    content: '→';
    position: absolute;
    left: -1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-blue-end);
}
.footer-section a:hover {
    color: var(--primary-blue-end);
    padding-left: 1.2rem;
}
.footer-section a:hover::before {
    opacity: 1;
    left: 0;
}
.footer-brand {
    max-width: 1200px;
    margin: 4rem auto 3rem;
    padding: 1rem;
    overflow: visible;
    position: relative;
    z-index: 1;
}
.footer-brand-text {
    font-size: clamp(3.5rem, 15vw, 13rem);
    font-weight: 900;
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.2) 0%,
        rgba(90, 200, 250, 0.4) 25%,
        rgba(0, 122, 255, 0.25) 50%,
        rgba(90, 200, 250, 0.4) 75%,
        rgba(0, 122, 255, 0.2) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin: 0;
    padding: 0.5rem 0;
    letter-spacing: -0.05em;
    user-select: none;
    pointer-events: none;
    animation: shimmer 8s ease-in-out infinite;
    text-align: center;
    font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    font-style: italic;
    transform: skewY(-2deg);
    filter: drop-shadow(0 0 30px rgba(0, 122, 255, 0.3));
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #6e7280;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------
 * その他コンポーネント
 * ---------------------------------------------- */
.image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 2rem 0; }
.gallery-item { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--soft-shadow); transition: all 0.3s ease; position: relative; }
.gallery-item:hover { transform: scale(1.05) translateY(-5px); box-shadow: var(--soft-shadow-hover); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); color: white; padding: 0.75rem; font-size: 0.875rem; text-align: center; }

.founder-section { display: flex; align-items: start; gap: 2rem; flex-wrap: wrap; }
.founder-image { width: 150px; height: 200px; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--soft-shadow); }
.founder-image img { width: 100%; height: 100%; object-fit: cover; }
.founder-content { flex: 1; min-width: 300px; }

/* ----------------------------------------------
 * Event page rebuild
 * ---------------------------------------------- */
.event-page {
    display: grid;
    gap: clamp(3rem, 7vw, 5rem);
}

.event-page [id] {
    scroll-margin-top: 150px;
}

.event-page .content-section {
    margin-bottom: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.event-page .content-section:hover {
    transform: none;
    box-shadow: none;
}

.event-eyebrow {
    margin: 0 0 0.9rem;
    color: var(--primary-blue-start);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.event-section-head {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.75rem;
}

.event-section-head__lead {
    max-width: 44rem;
    margin-bottom: 0;
}

.event-overview {
    display: grid;
    gap: 1.75rem;
}

.event-overview__layout {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

.event-overview__lead {
    font-size: 1.08rem;
    max-width: 42rem;
}

.event-overview__visual {
    margin: 0;
    width: 100%;
    max-width: 30rem;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1);
}

.event-overview__visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.event-overview__visual figcaption {
    padding: 1rem 1.1rem 1.15rem;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.7;
}

.event-lens {
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.event-lens__item {
    display: grid;
    gap: 0.55rem;
    padding-right: 1rem;
}

.event-lens__eyebrow {
    margin: 0;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-lens__item h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--text-dark);
}

.event-lens__item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.8;
}

.event-track {
    margin-top: 0;
}

.event-track-item {
    margin-bottom: 2.2rem;
}

.event-track-item__body {
    display: grid;
    gap: 0.95rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.event-track-item:last-of-type .event-track-item__body {
    padding-bottom: 0;
    border-bottom: 0;
}

.event-track-item__body h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.event-track-item__body p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.85;
}

.event-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-chip-list li {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.08);
    color: #0b5db8;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
}

.event-story {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.event-feature {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

.event-feature__copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.event-feature__media {
    width: 100%;
    max-width: 28rem;
}

.event-feature__copy h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

.event-feature__facts {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.event-feature__fact {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.event-feature__fact span {
    color: var(--primary-blue-start);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.event-feature__fact p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.8;
}

.event-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.event-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-figure:hover img {
    transform: scale(1.04);
}

.event-figure figcaption {
    padding: 0.95rem 1rem 1.05rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
}

.event-figure--single img {
    height: clamp(18rem, 26vw, 23rem);
    aspect-ratio: auto;
}

.event-guidance {
    display: grid;
    gap: 2rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(90, 200, 250, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}

.event-guidance__routes {
    display: grid;
    gap: 0;
}

.event-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem;
    column-gap: 1rem;
    padding: 1rem 0;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, color 0.24s ease;
}

.event-route > * {
    grid-column: 1;
}

.event-route::after {
    content: "→";
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    color: var(--primary-blue-start);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.24s ease, color 0.24s ease;
}

.event-route:first-child {
    border-top: 0;
}

.event-route:hover {
    transform: translateX(4px);
    color: var(--primary-blue-start);
}

.event-route:hover::after {
    transform: translateX(4px);
}

.event-route__label {
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-route strong {
    font-size: 1.05rem;
    line-height: 1.45;
}

.event-route span:last-child {
    color: var(--text-light);
    line-height: 1.7;
}

.event-next__inner {
    padding: clamp(1.8rem, 4vw, 3rem);
    border-radius: 36px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(7, 20, 40, 0.96), rgba(17, 59, 112, 0.9)),
        radial-gradient(circle at top right, rgba(90, 200, 250, 0.35), transparent 35%);
    box-shadow: 0 28px 60px rgba(7, 16, 32, 0.24);
}

.event-next__copy .section-title {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
    border-image: none;
    border-bottom-color: rgba(255, 255, 255, 0.24);
}

.event-next__copy .content-text,
.event-next__note {
    color: rgba(255, 255, 255, 0.82);
}

.event-next__note {
    margin-bottom: 0;
}

.event-next__actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.event-next__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.event-next__button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.event-next__button--primary {
    background: rgba(255, 255, 255, 0.94);
    color: #0b1728;
    border-color: rgba(255, 255, 255, 0.94);
}

.event-next__button--primary:hover {
    background: #ffffff;
}

@media (min-width: 880px) {
    .event-lens {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-lens__item:not(:last-child) {
        border-right: 1px solid rgba(15, 23, 42, 0.08);
    }
}

@media (min-width: 960px) {
    .event-overview__layout,
    .event-feature,
    .event-section-head {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    }

    .event-overview__visual,
    .event-feature__media {
        justify-self: end;
    }

    .event-overview__copy,
    .event-overview__visual,
    .event-feature__copy,
    .event-feature__media {
        align-self: start;
    }

    .event-overview__visual img {
        height: clamp(20rem, 28vw, 25rem);
        aspect-ratio: auto;
    }

    .event-feature__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .event-feature__fact {
        padding-top: 1.1rem;
    }

    .event-feature--reverse .event-feature__copy {
        order: 2;
    }

    .event-feature--reverse .event-feature__media {
        order: 1;
        justify-self: start;
    }

    .event-guidance {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
        align-items: start;
    }

    .event-next__inner {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
        gap: 2rem;
        align-items: end;
    }

    .event-next__actions {
        margin-top: 0;
        justify-self: end;
        width: min(100%, 28rem);
    }
}

/* ----------------------------------------------
 * モバイル対応 & レスポンシブ
 * ---------------------------------------------- */
@media (min-width: 768px) {
    .main-content { grid-template-columns: 280px 1fr; }
    .content-with-image { grid-template-columns: 1fr 300px; }
    .content-with-image.reverse { grid-template-columns: 300px 1fr; }
    .content-with-image.reverse .image-container { order: -1; }
}

@media (min-width: 992px) {
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .seiun-title { display: none; }
    .event-overview__visual {
        max-width: 100%;
    }

    .event-overview__visual img {
        height: clamp(13.5rem, 58vw, 16rem);
        aspect-ratio: auto;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-saturate) var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-saturate) var(--glass-blur);
        border-left: 1px solid var(--glass-border-color);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: none;
        overflow-y: auto;
    }
    .nav-container.active { right: 0; }
    .nav-list {
        flex-direction: column;
        padding-top: var(--mobile-nav-padding-top);
        padding-bottom: 2rem;
    }
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-size: 1rem;
    }
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.2);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .overlay.active {
        display: block;
        opacity: 1;
    }
    .hero { margin-top: 0; }
    .hero h2 { font-size: 1.75rem; }
    .hero-content h2 {
        font-size: 1.5em;
    }
    .content-section { padding: 1.5rem; }
    .sidebar { order: 2; }
    .main-content { margin-top: 1rem; }
    .founder-section { flex-direction: column; align-items: center; }
    .founder-image { margin-bottom: 1rem; }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .cta-section h2 {
        font-size: 1.5em;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    .event-guidance,
    .event-next__inner {
        border-radius: 28px;
    }
}

@media (max-width: 767px) {
    .hero { margin-top: 0; }
    .hero h2 { font-size: 1.75rem; }
    .content-section { padding: 1.5rem; }
    .sidebar { order: 2; }
    .main-content { margin-top: 1rem; }
    .founder-section { flex-direction: column; align-items: center; }
    .founder-image { margin-bottom: 1rem; }
    .content-with-image .image-container { max-width: 400px; margin: 0 auto; }
    .event-page {
        gap: 3.5rem;
    }
    .event-lens {
        gap: 1.5rem;
    }
    .event-track-item {
        margin-bottom: 1.8rem;
    }
    .event-track-item__body {
        padding-bottom: 1.45rem;
    }
    .event-next__button {
        width: 100%;
    }
    .event-feature__facts {
        gap: 0.75rem;
    }
}

/* ----------------------------------------------
 * ダークモード対応
 * ---------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e0e0e0;
        --text-light: #a0a0a0;
        --glass-bg: rgba(30, 30, 30, 0.75);
        --glass-border-color: rgba(255, 255, 255, 0.1);
    }

    body {
        background-color: #121212;
        color: var(--text-dark);
    }

    .content-section, .sidebar, .facility-card, .contact-card {
        background: rgba(30, 30, 30, 0.75);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .hero {
        color: #ffffff;
    }

    .footer {
        background: #0a0a0a;
        color: #d1d1d6;
    }

    .nav-link, .sidebar-links a, .additional-nav a {
        color: var(--text-dark);
    }

    .nav-link:hover, .sidebar-links a:hover {
        background: rgba(0, 122, 255, 0.2);
    }

    .contact-card {
        background: rgba(0, 122, 255, 0.1);
    }

    .timeline {
        border-left-color: var(--primary-gradient);
    }

    .timeline-item::before {
        border-color: #121212;
    }

    .gallery-caption {
        background: rgba(0,0,0,0.85);
    }

    .content-subsection h3 {
        color: var(--primary-blue-end);
    }

    .event-overview__visual,
    .event-figure,
    .event-guidance {
        background: linear-gradient(180deg, rgba(30, 30, 30, 0.9), rgba(24, 28, 38, 0.76));
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }

    .event-overview__visual figcaption,
    .event-figure figcaption,
    .event-track-item__body p,
    .event-route span:last-child,
    .event-lens__item p {
        color: #b6c2d1;
    }

    .event-track-item__body,
    .event-route,
    .event-lens,
    .event-lens__item:not(:last-child),
    .event-feature__fact {
        border-color: rgba(148, 163, 184, 0.14);
    }

    .event-chip-list li {
        background: rgba(90, 200, 250, 0.12);
        color: #8fd9ff;
    }

    .event-feature__copy h3,
    .event-track-item__body h3,
    .event-lens__item h3,
    .event-route strong {
        color: var(--text-dark);
    }

    .event-feature__fact p {
        color: #d8e2ef;
    }
}

/* ----------------------------------------------
 * アクセシビリティ & 印刷用スタイル
 * ---------------------------------------------- */
:focus { outline: 2px solid var(--primary-blue-start); outline-offset: 2px; }
.nav-link:hover,
.nav-link:focus {
    background-color: #f0f0f0;
    text-decoration: underline;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 印刷用スタイル */
@media print {
    .header, .nav-container, .additional-nav, .sidebar, .footer {
        display: none;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .content-area {
        width: 100%;
    }
}

/* ── Hero modern layout ── */
.hero { min-height: clamp(300px, 38vw, 420px); padding: 0; background: #0c1524; isolation: isolate; position: relative; z-index: 0; overflow: hidden; }
.hero-layout {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: min(100%, 1200px); margin: 0 auto;
  min-height: inherit;
  padding: clamp(1.2rem, 3vw, 2rem) 1rem;
}
.hero-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.35rem; width: min(100%, 1040px); text-align: center; max-width: none;
}
.hero-title {
  margin: 0; color: #fff;
  font-family: "SF Pro Display", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.04; letter-spacing: -0.06em; font-weight: 700;
  text-shadow: 0 18px 40px rgba(7,16,32,0.42); text-wrap: balance;
  word-break: keep-all; overflow-wrap: normal;
}
@media (min-width: 768px) {
  .hero-title { white-space: nowrap; }
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.85rem; width: min(100%, 760px);
}
.hero-btn {
  flex: 0 1 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: clamp(11.5rem, 22vw, 13.5rem); min-height: 3.35rem;
  padding: 0.9rem 1.4rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2); text-decoration: none;
  font-size: 0.95rem; font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 18px 42px rgba(7,16,32,0.18);
}
.hero-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.32); }
.hero-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.88); outline-offset: 3px; }
.hero-btn--primary { background: rgba(255,255,255,0.94); color: #0b1728; }
.hero-btn--secondary { background: rgba(255,255,255,0.14); color: #fff; }
.hero-subtitle { margin: 0; color: rgba(255,255,255,0.82); font-size: clamp(0.95rem, 2vw, 1.1rem); font-weight: 400; letter-spacing: 0.01em; line-height: 1.7; text-shadow: 0 2px 8px rgba(7,16,32,0.3); }
@media (max-width: 960px) {
  .hero { min-height: clamp(280px, 46vw, 360px); }
}
@media (max-width: 768px) {
  .hero { min-height: clamp(280px, 82vw, 340px); }
  .hero-title { font-size: clamp(2rem, 11vw, 3.1rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-btn { width: 100%; max-width: 22rem; flex: none; }
}


/* ----------------------------------------------
 * サブナビ (nav-subnav / additional-nav) 制御
 * ---------------------------------------------- */
/* デスクトップ: nav-subnavを非表示 */
@media (min-width: 769px) {
    .nav-subnav { display: none; }
}

/* モバイル: additional-navを非表示、nav-subnavをハンバーガー内に表示 */
@media (max-width: 768px) {
    .additional-nav { display: none; }
    .nav-subnav {
        border-top: 2px solid rgba(0,0,0,0.06);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    .nav-subnav-label {
        display: block;
        padding: 0.5rem 2rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-light);
    }
    .nav-subnav a {
        display: block;
        padding: 0.75rem 2rem;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        transition: color 0.2s;
    }
    .nav-subnav a:hover { color: var(--primary-blue-start); }
}


.hero-divider {
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 100%;
}
.hero-divider::before,
.hero-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.22);
}
@media (max-width: 768px) {
  .hero-divider { display: flex; }
}

/* codex-mobile-pill-nav:20260410 */
@media (max-width: 768px) {
    body:not(.home-page) {
        --mobile-diyar-top: 12px;
        --mobile-diyar-side: 12px;
        --mobile-diyar-height: 64px;
        --mobile-nav-surface: rgba(255, 255, 255, 0.82);
        --mobile-nav-border: rgba(255, 255, 255, 0.82);
        --mobile-nav-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        --mobile-nav-shadow-open: 0 28px 70px rgba(15, 23, 42, 0.18);
        --mobile-nav-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
        --mobile-nav-subtitle: rgba(30, 41, 59, 0.62);
        --mobile-nav-link: rgba(15, 23, 42, 0.68);
        --mobile-nav-link-strong: #0f172a;
        --mobile-nav-link-active: #2563eb;
        --mobile-nav-subnav-link: #334155;
        --mobile-nav-divider: rgba(148, 163, 184, 0.18);
        --mobile-nav-icon-bg: rgba(255, 255, 255, 0.62);
        --mobile-nav-icon-line: #111827;
        --mobile-nav-overlay: rgba(232, 240, 255, 0.28);
        --mobile-nav-offset: calc(var(--mobile-diyar-top) + var(--mobile-diyar-height) + 12px);
        padding-top: var(--mobile-nav-offset);
    }

    body:not(.home-page) .header {
        position: fixed;
        top: var(--mobile-diyar-top);
        left: var(--mobile-diyar-side);
        right: var(--mobile-diyar-side);
        margin: 0;
        width: auto;
        z-index: 1001;
        min-height: 0;
        height: var(--mobile-diyar-height);
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body:not(.home-page) .header-content {
        max-width: none;
        height: var(--mobile-diyar-height);
        justify-content: flex-start;
        padding: 0 0.35rem 0 0.94rem;
        gap: 0.7rem;
        align-items: center;
        transform: translateY(1px);
    }

    body:not(.home-page) .logo-section {
        display: flex;
        align-items: center;
        min-width: 0;
        height: 100%;
        flex: 1 1 auto;
    }

    body:not(.home-page) .logo-section a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0.08rem;
        min-width: 0;
        height: 100%;
        line-height: 1;
        padding: 0;
    }

    body:not(.home-page) .logo-section .subtitle {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--mobile-nav-subtitle);
        line-height: 1.02;
    }

    body:not(.home-page) .logo-section .site-name {
        font-size: clamp(1.18rem, 5.2vw, 1.34rem);
        line-height: 1.02;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

    body:not(.home-page) .seiun-title {
        display: none;
    }

    body:not(.home-page) .hamburger {
        display: flex;
        position: relative;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        border-radius: 999px;
        background: var(--mobile-nav-icon-bg);
        box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
    }

    body:not(.home-page) .hamburger:focus {
        outline: none;
    }

    body:not(.home-page) .hamburger:focus-visible {
        outline: 2px solid rgba(96, 165, 250, 0.9);
        outline-offset: 2px;
    }

    body:not(.home-page) .hamburger span {
        position: absolute;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--mobile-nav-icon-line);
        transition: transform 0.28s ease, opacity 0.2s ease, background-color 0.2s ease;
    }

    body:not(.home-page) .hamburger span:first-child {
        transform: translateY(-6px);
    }

    body:not(.home-page) .hamburger span:nth-child(2) {
        transform: translateY(0);
    }

    body:not(.home-page) .hamburger span:last-child {
        transform: translateY(6px);
    }

    body:not(.home-page) .hamburger.active span:first-child {
        transform: translateY(0) rotate(45deg);
    }

    body:not(.home-page) .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.4);
    }

    body:not(.home-page) .hamburger.active span:last-child {
        transform: translateY(0) rotate(-45deg);
    }

    body:not(.home-page) .additional-nav {
        display: none;
    }

    body:not(.home-page) .nav-container {
        position: fixed;
        top: var(--mobile-diyar-top);
        left: var(--mobile-diyar-side);
        right: var(--mobile-diyar-side);
        z-index: 1000;
        box-sizing: border-box;
        width: auto;
        height: var(--mobile-diyar-height);
        padding: 0 1.05rem;
        border: 1px solid var(--mobile-nav-border);
        border-radius: calc(var(--mobile-diyar-height) / 2);
        background: var(--mobile-nav-surface);
        box-shadow: var(--mobile-nav-shadow);
        overflow-y: hidden;
        overflow-x: hidden;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transform-origin: 50% 0%;
        transition:
            height 0.5s cubic-bezier(0.2, 0.9, 0.22, 1),
            padding 0.32s ease,
            box-shadow 0.32s ease,
            background-color 0.32s ease,
            border-color 0.32s ease,
            border-radius 0.32s ease;
    }

    body:not(.home-page) .nav-container::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: var(--mobile-nav-sheen);
        opacity: 0.72;
        transition: opacity 0.24s ease;
        pointer-events: none;
    }

    body:not(.home-page) .nav-container.active {
        height: 82vh;
        max-height: 680px;
        padding: 4.55rem 1.05rem 1.15rem;
        border-radius: 28px;
        overflow-y: auto;
        box-shadow: var(--mobile-nav-shadow-open);
    }

    body:not(.home-page) .nav-container.active::before {
        opacity: 1;
    }

    body:not(.home-page) .main-nav,
    body:not(.home-page) .nav-subnav {
        position: relative;
        z-index: 1;
        max-width: none;
        padding: 0;
    }

    body:not(.home-page) .nav-list {
        flex-direction: column;
        padding-top: 0;
        padding-bottom: 0;
        gap: 0.08rem;
        overflow: visible;
    }

    body:not(.home-page) .nav-item,
    body:not(.home-page) .nav-subnav a {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.24s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body:not(.home-page) .nav-container.active .nav-item,
    body:not(.home-page) .nav-container.active .nav-subnav a {
        opacity: 1;
        transform: translateY(0);
    }

    body:not(.home-page) .nav-container.is-closing .nav-item,
    body:not(.home-page) .nav-container.is-closing .nav-subnav a {
        opacity: 0;
        transform: translateY(16px);
        transition-delay: 0s !important;
        transition-duration: 0.16s, 0.22s;
    }

    body:not(.home-page) .nav-container.active .nav-item:nth-child(1) { transition-delay: 0.16s; }
    body:not(.home-page) .nav-container.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    body:not(.home-page) .nav-container.active .nav-item:nth-child(3) { transition-delay: 0.24s; }
    body:not(.home-page) .nav-container.active .nav-item:nth-child(4) { transition-delay: 0.28s; }
    body:not(.home-page) .nav-container.active .nav-item:nth-child(5) { transition-delay: 0.32s; }
    body:not(.home-page) .nav-container.active .nav-item:nth-child(6) { transition-delay: 0.36s; }
    body:not(.home-page) .nav-container.active .nav-item:nth-child(7) { transition-delay: 0.4s; }
    body:not(.home-page) .nav-container.active .nav-item:nth-child(8) { transition-delay: 0.44s; }
    body:not(.home-page) .nav-container.active .nav-subnav a:nth-of-type(1) { transition-delay: 0.38s; }
    body:not(.home-page) .nav-container.active .nav-subnav a:nth-of-type(2) { transition-delay: 0.42s; }
    body:not(.home-page) .nav-container.active .nav-subnav a:nth-of-type(3) { transition-delay: 0.46s; }
    body:not(.home-page) .nav-container.active .nav-subnav a:nth-of-type(4) { transition-delay: 0.5s; }
    body:not(.home-page) .nav-container.active .nav-subnav a:nth-of-type(5) { transition-delay: 0.54s; }

    body:not(.home-page) .nav-link {
        padding: 0.42rem 0.3rem;
        border: 0;
        background: transparent;
        color: var(--mobile-nav-link);
        font-size: clamp(2rem, 8vw, 3.35rem);
        line-height: 1.02;
        letter-spacing: -0.06em;
        font-weight: 400;
    }

    body:not(.home-page) .nav-link:hover,
    body:not(.home-page) .nav-link:focus {
        background: transparent;
        color: var(--mobile-nav-link-strong);
        text-decoration: none;
    }

    body:not(.home-page) .nav-link.active,
    body:not(.home-page) .nav-link[aria-current="page"] {
        color: var(--mobile-nav-link-active);
    }

    body:not(.home-page) .nav-link.active::after {
        display: none;
    }

    body:not(.home-page) .nav-item--home {
        display: block;
    }

    body:not(.home-page) .nav-subnav {
        margin-top: 1.1rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--mobile-nav-divider);
    }

    body:not(.home-page) .nav-subnav-label {
        display: none;
    }

    body:not(.home-page) .nav-subnav a {
        padding: 0.35rem 0.3rem;
        border-bottom: 0;
        color: var(--mobile-nav-subnav-link);
        font-size: 1rem;
        line-height: 1.35;
    }

    body:not(.home-page) .nav-subnav a[aria-current="page"] {
        color: var(--mobile-nav-link-active);
        font-weight: 600;
    }

    body:not(.home-page) .hero {
        margin-top: calc(-1 * var(--mobile-nav-offset));
        padding-top: calc(var(--mobile-nav-offset) + 0.9rem);
    }

    body:not(.home-page) .overlay {
        background: var(--mobile-nav-overlay);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
    body:not(.home-page) {
        --mobile-nav-surface: rgba(15, 23, 42, 0.86);
        --mobile-nav-border: rgba(148, 163, 184, 0.22);
        --mobile-nav-shadow: 0 18px 40px rgba(2, 6, 23, 0.38);
        --mobile-nav-shadow-open: 0 28px 70px rgba(2, 6, 23, 0.54);
        --mobile-nav-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
        --mobile-nav-subtitle: rgba(226, 232, 240, 0.72);
        --mobile-nav-link: rgba(226, 232, 240, 0.78);
        --mobile-nav-link-strong: #f8fafc;
        --mobile-nav-link-active: #60a5fa;
        --mobile-nav-subnav-link: rgba(226, 232, 240, 0.84);
        --mobile-nav-divider: rgba(148, 163, 184, 0.24);
        --mobile-nav-icon-bg: rgba(30, 41, 59, 0.82);
        --mobile-nav-icon-line: #f8fafc;
        --mobile-nav-overlay: rgba(2, 6, 23, 0.42);
    }
}

@media (min-width: 769px) {
    .nav-item--home {
        display: none;
    }
}
