/* --- 共通デザインシステム --- */
:root {
    /* 色設定 */
    --c-primary: #1a365d;
    --c-accent: #3182ce;
    --c-text-main: #2d3748;
    --c-text-muted: #718096;
    --c-bg: #f7fafc;
    --c-surface: #ffffff;
    --c-gold: #b7791f;
    --c-danger: #e53e3e;
    --c-link-special: #00A4C2;

    --border: 1px solid #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);

    /* フォント */
    --f-main: 'Zen Kaku Gothic New', sans-serif;
    --f-serif: 'Shippori Mincho', serif;
    --f-eng: 'Oswald', sans-serif;

    --sp-container: max(16px, 4vw);
}

/* リセット & ベース */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--f-main);
    color: var(--c-text-main);
    background: var(--c-bg);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

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

.link-special {
    color: var(--c-link-special);
    transition: opacity 0.2s;
}

.link-special:hover {
    opacity: 0.8;
}

/* コンテナ */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--sp-container);
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: var(--border);
}

.header-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand img {
    height: 50px;
}

/* ナビゲーション (共通) */
.nav-desk {
    display: flex;
    gap: 40px;
    align-items: center;

    @media (max-width: 768px) {
        display: none;
    }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text-main);

    &:hover {
        color: var(--c-primary);
    }
}

.btn-dash-nav {
    padding: 8px 20px;
    margin: 0 auto;
    border-radius: 4px;
    background: var(--c-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;

    &:hover {
        background: #102a4e;
        transform: translateY(-1px);
    }
}

.mob-dash-btn {
    display: none;
    padding: 6px 14px;
    background: var(--c-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 15px;
    margin-left: auto;

    @media (max-width: 768px) {
        display: inline-block;
    }
}

/* フッター */
.footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--f-serif);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.footer-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    color: #a0aec0;
}

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

/* ローダー */
/* ローディングオーバーレイ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--c-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.ink-spinner {
    width: 60px;
    height: 60px;
    background: var(--c-accent);
    border-radius: 50%;
    animation: ink-pulse 1.5s infinite ease-in-out;
    position: relative;
}

.ink-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--c-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    animation: ink-inner 1.5s infinite ease-in-out;
}

@keyframes ink-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

@keyframes ink-inner {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* フェードアップアニメーション */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;

    &.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ユーティリティクラス */
.u-flex {
    display: flex;
}

.u-flex-col {
    flex-direction: column;
}

.u-items-center {
    align-items: center;
}

.u-justify-between {
    justify-content: space-between;
}

.u-justify-end {
    justify-content: flex-end;
}

.u-gap-5 {
    gap: 5px;
}

.u-gap-10 {
    gap: 10px;
}

.u-gap-20 {
    gap: 20px;
}

.u-w-full {
    width: 100%;
}

.u-flex-1 {
    flex: 1;
}

.u-mb-5 {
    margin-bottom: 5px;
}

.u-mb-10 {
    margin-bottom: 10px;
}

.u-mb-20 {
    margin-bottom: 20px;
}

.u-mt-5 {
    margin-top: 5px;
}

.u-mt-10 {
    margin-top: 10px;
}

.u-mt-20 {
    margin-top: 20px;
}

.u-text-red {
    color: var(--c-danger);
}

.u-text-gray {
    color: var(--c-text-muted);
}

.u-text-sm {
    font-size: 0.9rem;
}

.u-text-xs {
    font-size: 0.8rem;
}

.u-font-bold {
    font-weight: bold;
}

.u-cursor-pointer {
    cursor: pointer;
}

.u-hidden {
    display: none;
}


/* ニュースコンポーネント */
.news-list-container {
    background: white;
    border-radius: 8px;
    border: var(--border);
    overflow: hidden;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
    align-items: flex-start;
    text-align: left;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;

    &:last-child {
        border-bottom: none;
    }

    &:hover {
        background: #f8fafc;
    }

    @media (max-width: 600px) {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
}

.news-meta {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    gap: 4px;

    @media (max-width: 600px) {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
}

.news-date {
    color: var(--c-text-muted);
    font-family: var(--f-eng);
    font-size: 0.85rem;
}

.news-cat {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #edf2f7;
    color: var(--c-text-muted);
    width: fit-content;

    &.badge-important {
        background: #e53e3e;
        color: white;
    }

    &.badge-recruit {
        background: #38a169;
        color: white;
    }

    &.badge-info {
        background: #2b6cb0;
        color: white;
    }

    &.status-upcoming {
        background: var(--c-gold);
        color: white;
    }
}

.news-item-title {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--c-text-main);
}