/* グローバル基本スタイル */
:root {
    --color-primary: #004080;
    --color-primary-dark: #003060;
    --color-primary-light: #eaf2fb;
    --color-border: #b8d1ec;
    --color-text: #1f2933;
    --color-text-muted: #555f6b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

a {
    color: var(--color-primary);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #80b4ff;
    outline-offset: 2px;
}

/* スクリーンリーダー専用 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* スキップリンク（キーボード操作時のみ表示） */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--color-primary);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 0 0 6px 6px;
    z-index: 2000;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* 動きを抑制する設定の尊重 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
