/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* シンプルなカラーパレット */
:root {
    /* メインカラー */
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;

    /* 背景カラー */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;

    /* テキストカラー */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* ボーダーとシャドウ */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* フォント */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-hero: 'Roboto Condensed', 'Arial Narrow', sans-serif;

    /* その他 */
    --border-radius: 8px;
    --transition: all 0.2s ease-in-out;
    --max-width: 1200px;
}

/* ベースタイポグラフィ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* スクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--primary-color);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* コンテナ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ヒーローセクション */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.code-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.code-snippet {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.3;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.code-snippet pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    color: rgba(100, 116, 139, 0.375);
    white-space: pre;
    overflow: hidden;
}

/* 遠近感のためのサイズ変更 */
.code-snippet:nth-child(1) {
    font-size: 0.9rem;
    opacity: 0;
    z-index: 4;
    animation: fadeInDownCode1 1s ease-out 0.5s both;
}

.code-snippet:nth-child(1) pre {
    max-width: 480px;
    min-width: 380px;
}

.code-snippet:nth-child(2) {
    font-size: 0.75rem;
    opacity: 0;
    z-index: 3;
    animation: fadeInDownCode2 1s ease-out 0.5s both;
}

.code-snippet:nth-child(2) pre {
    max-width: 420px;
    min-width: 340px;
}

.code-snippet:nth-child(3) {
    font-size: 0.6rem;
    opacity: 0;
    z-index: 2;
    animation: fadeInDownCode3 1s ease-out 0.5s both;
}

.code-snippet:nth-child(3) pre {
    max-width: 380px;
    min-width: 300px;
}

.code-snippet:nth-child(4) {
    font-size: 0.55rem;
    opacity: 0;
    z-index: 1;
    animation: fadeInDownCode4 1s ease-out 0.5s both;
}

.code-snippet:nth-child(4) pre {
    max-width: 320px;
    min-width: 250px;
}

/* シンタックスハイライト */
.code-snippet .keyword {
    color: rgba(167, 29, 93, 0.45);
    font-weight: 600;
}

.code-snippet .string {
    color: rgba(34, 197, 94, 0.45);
}

.code-snippet .template {
    color: rgba(34, 197, 94, 0.45);
}

.code-snippet .number {
    color: rgba(239, 68, 68, 0.45);
}

.code-snippet .boolean {
    color: rgba(239, 68, 68, 0.45);
}

.code-snippet .comment {
    color: rgba(100, 116, 139, 0.3);
    font-style: italic;
}

.code-snippet .function {
    color: rgba(59, 130, 246, 0.45);
    font-weight: 500;
}

.code-snippet .type {
    color: rgba(168, 85, 247, 0.45);
    font-weight: 500;
}

.code-snippet .variable {
    color: rgba(100, 116, 139, 0.5);
}

.code-snippet .property {
    color: rgba(14, 165, 233, 0.45);
}

.code-snippet .parameter {
    color: rgba(245, 158, 11, 0.45);
}

.code-snippet .import {
    color: rgba(244, 63, 94, 0.45);
}

.code-snippet .tag {
    color: rgba(239, 68, 68, 0.45);
}

.code-snippet .attribute {
    color: rgba(245, 158, 11, 0.45);
}

.code-snippet .text {
    color: rgba(100, 116, 139, 0.375);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: var(--text-muted);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 60%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-family: var(--font-hero);
    text-transform: uppercase;
}

.hero-title .line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: #1d4ed8;
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: calc(50% -26px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 1rem;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}

.scroll-line {
    display: none;
}

.scroll-chevrons {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -2px;
    transition: var(--transition);
}

.chevron {
    width: 28px;
    height: 28px;
    border-bottom: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -8px auto;
    transition: var(--transition);
    animation: chevronPulse 2s infinite;
}

.chevron:nth-child(1) {
    animation-delay: 0s;
}

.chevron:nth-child(2) {
    animation-delay: 0.2s;
}

.chevron:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chevronPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: rotate(45deg) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator:hover .chevron {
    border-color: #1d4ed8;
    border-width: 5px;
}

.scroll-indicator:active {
    transform: translateX(-50%) translateY(-2px) scale(0.95);
}

.scroll-indicator:active .chevron {
    border-color: #1e40af;
    border-width: 5px;
}

/* セクション共通スタイル */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Aboutセクション */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.skills {
    margin-bottom: 2rem;
}

.skills:last-child {
    margin-bottom: 0;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* プロジェクトセクション */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    max-width: 33%;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    color: #1d4ed8;
}

/* ブログセクション */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-image {
    height: 150px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.blog-link:hover {
    color: #1d4ed8;
}

.blog-actions {
    text-align: center;
    margin-top: 3rem;
}

.view-all-posts {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.view-all-posts:hover {
    background: var(--primary-color);
    color: white;
}

/* コンタクトセクション */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 400px;
    margin: 0 auto;
}

.contact-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}


/* フッター */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-color: #10b981;
    background: #f0fdf4;
    color: #065f46;
}

/* スクロールトップボタン */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1d4ed8;
}

/* コード背景のレスポンシブ対応 */
@media (max-width: 768px) {

    .code-snippet:nth-child(3),
    .code-snippet:nth-child(4) {
        opacity: 0.3;
    }

    .code-snippet:nth-child(1) {
        font-size: 0.7rem;
    }

    .code-snippet:nth-child(1) pre {
        max-width: 400px;
        min-width: 320px;
    }

    .code-snippet:nth-child(2) {
        font-size: 0.6rem;
    }

    .code-snippet:nth-child(2) pre {
        max-width: 350px;
        min-width: 280px;
    }

    .scroll-indicator {
        bottom: 1.5rem;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10;
    }

    .scroll-indicator:hover {
        transform: translateX(-50%) translateY(-5px) !important;
    }

    .scroll-indicator:active {
        transform: translateX(-50%) translateY(-2px) scale(0.95) !important;
    }
}

@media (max-width: 480px) {
    .code-snippet:nth-child(3) {
        display: none;
    }

    .code-snippet:nth-child(1) {
        font-size: 0.6rem;
        top: 5% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        opacity: 0.7;
    }

    .code-snippet:nth-child(1) pre {
        max-width: 320px;
        min-width: 250px;
    }

    .code-snippet:nth-child(2) {
        font-size: 0.5rem;
        top: 50% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        opacity: 0.6;
    }

    .code-snippet:nth-child(2) pre {
        max-width: 280px;
        min-width: 220px;
    }

    .code-snippet:nth-child(4) {
        font-size: 0.5rem;
        top: auto !important;
        bottom: 40px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        opacity: 0.5;
    }

    .code-snippet:nth-child(4) pre {
        max-width: 280px;
        min-width: 220px;
    }

    .scroll-indicator {
        bottom: 1rem;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10;
    }

    .scroll-indicator:hover {
        transform: translateX(-50%) translateY(-5px) !important;
    }

    .scroll-indicator:active {
        transform: translateX(-50%) translateY(-2px) scale(0.95) !important;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-section {
        padding: 0 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        height: 50px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        top: 50px;
    }

    .hero-section {
        height: calc(100dvh - 50px);
        min-height: calc(100vh - 50px);
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: calc(100dvh);
        min-height: calc(90vh - 50px);
    }

    .hero-title {
        font-size: 3.8rem;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .cta-button {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-description,
    .contact-info p {
        font-size: 1rem;
    }
}

/* 印刷用スタイル */
@media print {

    .navbar,
    .scroll-to-top,
    .notification {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .section-title,
    .hero-title {
        color: black !important;
    }
}

/* fadeInDown アニメーション */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* コードスニペット用のfadeInDownアニメーション */
@keyframes fadeInDownCode1 {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

@keyframes fadeInDownCode2 {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0.6;
        transform: translateY(0);
    }
}

@keyframes fadeInDownCode3 {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0.45;
        transform: translateY(0);
    }
}

@keyframes fadeInDownCode4 {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0.3;
        transform: translateY(0);
    }
}


.fade-in {
    animation: fadeInDown 0.6s ease-out;
}

/* ヒーロータイトルのシャッフル効果のための初期設定 */
.hero-title .line {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-delay-1 {
    animation: fadeInDown 0.6s ease-out 0.1s both;
}

.fade-in-delay-2 {
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

.fade-in-delay-3 {
    animation: fadeInDown 0.6s ease-out 0.3s both;
}

.fade-in-delay-4 {
    animation: fadeInDown 0.6s ease-out 0.4s both;
}

.hero-description.fade-in-delay-2 {
    animation: fadeInDown 0.6s ease-out 0.2s both;
    border: none;
    border-bottom: none;
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in,
    .fade-in-delay-1,
    .fade-in-delay-2,
    .fade-in-delay-3,
    .fade-in-delay-4 {
        animation: none;
        opacity: 1;
    }

    .hero-title .line {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }

    .chevron {
        animation: none;
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }

    .code-snippet:nth-child(1) {
        animation: none;
        opacity: 0.7;
    }

    .code-snippet:nth-child(2) {
        animation: none;
        opacity: 0.6;
    }

    .code-snippet:nth-child(3) {
        animation: none;
        opacity: 0.45;
    }

    .code-snippet:nth-child(4) {
        animation: none;
        opacity: 0.3;
    }
}

/* フォーカス状態の改善 */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ヘッダーナビゲーションのフォーカス枠線を削除 */
.nav-link:focus,
.nav-logo:focus {
    outline: none;
}