/* Custom properties for theme */
:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --card-bg: #fff;
    --border-color: #eee;
    --link-color: #333;
    --link-hover-color: #007bff;
    --button-bg: #333;
    --button-text: #fff;
    --secondary-text: #555;
    --footer-text: #888;
}

/* Dark mode styles */
body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --card-bg: #2d2d2d;
    --border-color: #444;
    --link-color: #f0f0f0;
    --link-hover-color: #4da6ff;
    --button-bg: #555;
    --button-text: #f0f0f0;
    --secondary-text: #bbb;
    --footer-text: #aaa;
}

/* Base Styles */
body {
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s, transform 0.2s;
}

a:hover {
    color: var(--link-hover-color);
    transform: translateY(-1px);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.5;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Container for main content to limit width */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Card Style (for profile, about, links, works) */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px; /* Wider header */
    margin: 0 auto;
}

.logo a {
    font-weight: 700;
    font-size: 1.6rem;
    font-family: 'Roboto', sans-serif;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    font-weight: 400;
    font-size: 1rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background-color: var(--link-hover-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
    transition: color 0.3s;
}

.theme-toggle-button:hover {
    color: var(--link-hover-color);
}

/* Profile Card */
.profile-card {
    display: flex;
    flex-direction: column; /* Stacks items vertically on small screens */
    align-items: center;
    text-align: center;
}

.profile-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
}

.profile-info .name-jp {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 5px;
}

.profile-info .name-en {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.profile-info .title {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 25px;
}

.social-links a {
    font-size: 1.4rem;
    margin: 0 12px;
    color: var(--link-color);
}

.social-links a:hover {
    color: var(--link-hover-color);
    transform: translateY(-2px);
}

.nav-links {
    margin-top: 30px;
    display: flex;
    gap: 15px; /* Space between buttons */
    flex-wrap: wrap; /* Allows wrapping on small screens */
    justify-content: center;
}

.btn-link {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: transparent;
    color: var(--link-color);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

.btn-link:hover {
    background-color: var(--link-hover-color);
    color: var(--button-text);
    border-color: var(--link-hover-color);
    transform: translateY(-2px);
}

/* About Site Section */
.about-site h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.about-site p {
    color: var(--secondary-text);
}

/* Inter Links Section */
.inter-links h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.link-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.link-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.link-img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid var(--border-color);
}

.link-text h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
}

.link-text p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin: 5px 0 0;
}


/* Works Page Specific */
.page-title {
    text-align: center;
    padding: 40px 0 20px;
}

.page-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-title p {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.work-item {
    text-align: center;
    padding: 25px; /* Card padding already applied */
}

.work-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.work-item p {
    color: var(--secondary-text);
    margin-bottom: 20px;
}


/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--footer-text);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    transition: border-color 0.3s;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    margin: 0 15px;
    color: var(--footer-text);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--link-hover-color);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 15px 5%;
    }

    .main-nav {
        margin-top: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav li {
        margin: 0 10px 10px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-info .name-en {
        font-size: 1.8rem;
    }

    .profile-info .title {
        font-size: 0.9rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .btn-link {
        width: 80%; /* Make buttons wider */
        max-width: 250px;
        margin: 0 auto;
    }

    .about-site h2, .inter-links h2 {
        font-size: 1.4rem;
    }

    .link-item {
        flex-direction: column;
        text-align: center;
    }

    .link-img {
        margin: 0 0 10px 0;
    }

    .works-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}
/* SNS Links Section */
.sns-links h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sns-grid {
    display: grid;
    /* 画面幅に応じて列数を自動調整 */
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    justify-content: center;
}

.sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.sns-item:hover {
    background-color: var(--border-color);
    transform: translateY(-4px);
}

.sns-item i {
    font-size: 2.5rem; /* アイコンのサイズ */
    margin-bottom: 10px;
}

.sns-item span {
    font-size: 0.9rem;
    color: var(--secondary-text);
    transition: color 0.3s;
}

.sns-item:hover span {
    color: var(--text-color);
}
/* Create Page Specific Styles */
.create-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1列に設定 */
    gap: 30px;
    padding-bottom: 40px;
}

.create-item {
    display: flex;
    flex-direction: column; /* スマホでは縦並び */
    padding: 0; /* カードの内側の余白をなくす */
    overflow: hidden; /* カードの角丸を画像に適用するため */
}

.create-img {
    width: 100%;
    height: 200px; /* 画像の高さを固定 */
    object-fit: cover; /* アスペクト比を保ちつつコンテナを埋める */
}

.create-info {
    padding: 25px; /* テキスト部分の余白 */
}

.create-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.create-desc {
    color: var(--secondary-text);
    margin-bottom: 20px;
    min-height: 50px; /* 説明文の高さをある程度揃える */
}

.create-tags {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.create-tags span {
    background-color: var(--border-color);
    color: var(--secondary-text);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* PC向けのスタイル (画面幅が768px以上の場合) */
@media (min-width: 768px) {
    .create-item {
        flex-direction: row; /* 横並びにする */
    }

    .create-img {
        width: 40%; /* 画像の幅 */
        height: auto; /* 高さは自動調整 */
    }

    .create-info {
        width: 60%; /* テキスト部分の幅 */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
/* プロフィールアイコンのアニメーション設定 */
.profile-icon {
    /* クリックしやすいようにカーソルをポインターに */
    cursor: pointer; 
}

/* アイコンに回転アニメーションを適用するためのクラス */
.profile-icon.is-flipping {
    animation: spin-flip 0.6s ease-in-out;
}

/* 360度回転するアニメーションの定義 */
@keyframes spin-flip {
    0% {
        /* 開始時：回転0度 */
        transform: rotateY(0deg);
    }
    50% {
        /* 中間：180度回転（ここで画像が切り替わる） */
        transform: rotateY(180deg);
    }
    100% {
        /* 終了時：360度回転して元の向きに戻る */
        transform: rotateY(360deg);
    }
}
/*
/* Works Page Filter & Tags (Subtle Style)
/* ---------------------------------------------------------- */

/* フィルターセクション全体のコンテナ */
.filter-section {
    display: flex;
    justify-content: flex-end; /* 右寄せにする */
    margin-bottom: 20px;
    padding: 0;
}

.filter-toggle-wrapper {
    position: relative;
    display: inline-block;
}

/* 絞り込みボタン */
.filter-toggle {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.filter-toggle:hover {
    background-color: var(--border-color);
}
.filter-toggle i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* フィルターオプションが開いている時の矢印の向き */
.filter-toggle.open i {
    transform: rotate(180deg);
}

/* フィルター選択肢のドロップダウン */
.filter-options {
    display: none; /* 初期状態では非表示 */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    min-width: 150px;
    padding: 8px 0;
    margin-top: 5px;
}

.filter-options.show {
    display: block; /* 表示する */
}

.filter-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: none;
    text-align: left;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-btn:hover {
    background-color: var(--border-color);
}

/* ▼▼▼ ここから下が変更箇所です ▼▼▼ */

/* 実績アイテム内のタグ */
.work-tags {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    padding: 3px 12px; /* 上下paddingを少し調整 */
    border-radius: 15px;
    font-weight: 500; /* 少し細くして主張を抑える */
    background-color: transparent; /* 背景を透過に */
    border: 1px solid; /* 枠線を追加 */
}

/* 広報タグ（緑色） */
.tag-kouhou {
    color: #208b3a;
    border-color: #a3d9b1; /* 枠線の色を薄く */
}

/* 理事タグ（青色） */
.tag-riji {
    color: #177a8c;
    border-color: #a0dbe5; /* 枠線の色を薄く */
}

/* ダークモード時のタグの色 */
body.dark-mode .tag-kouhou {
    color: #75d48a;
    border-color: #4b8f5a;
}

body.dark-mode .tag-riji {
    color: #6bcde0;
    border-color: #4a8a96;
}

/* フィルターで非表示にするためのクラス */
.work-item.hidden {
    display: none;
}
/* Run Page Specific Styles */
/* ---------------------------------------------------------- */

.run-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.run-chart-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.run-chart-nav button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.run-chart-nav button:hover {
    background-color: var(--border-color);
}

#current-month-display {
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 300px;
}

.run-item {
    padding: 0; /* Remove card padding to allow full-width elements */
    margin-bottom: 25px;
}

.run-item-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.run-item-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
}

.run-item-user {
    display: flex;
    flex-direction: column;
}

.run-item-user strong {
    font-weight: 600;
    line-height: 1.2;
}

.run-item-user span {
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.run-item-body {
    padding: 20px;
}

.run-item-body h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.run-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 15px;
    margin-bottom: 20px;
}

.run-stats small {
    font-size: 0.8rem;
    color: var(--secondary-text);
    display: block;
    margin-bottom: 5px;
}

.run-stats strong {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.run-achievement {
    background-color: var(--border-color);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-text);
}

.run-achievement .fa-trophy {
    color: #f7b731;
}

.run-item-footer {
    background-color: var(--border-color);
}

.run-map-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.pagination button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.pagination button:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

.pagination button.active {
    background-color: var(--link-hover-color);
    color: var(--button-text);
    border-color: var(--link-hover-color);
    font-weight: bold;
}
/* Run Page - Strava Button */
.run-actions {
    margin-top: 25px;
    text-align: center;
}

/* Pagination - a tag version */
.pagination a {
    display: block;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: var(--border-color);
    color: var(--text-color);
    transform: none; /* Remove hover effect */
}

.pagination a.active {
    background-color: var(--link-hover-color);
    color: var(--button-text);
    border-color: var(--link-hover-color);
    font-weight: bold;
}

/*
/* Work Detail Page - Deep Green Accent Version (Complete Code - Static)
/* ---------------------------------------------------------- */

/* 新しい変数定義（既存の:rootがあればそこに追加） */
:root {
    /* メインカラーを落ち着いたディープグリーンに変更 */
    --main-accent-color: #2C7A7B; 
    /* ホバー時の濃い色（少し暗めのグリーン） */
    --main-accent-hover: #1E5C5D;
    
    /* カードのシャドウをより深めに */
    --deep-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* ナイトモード用のシャドウ（もしあれば） */
    --deep-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.work-detail-container { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 0 30px; 
}

/* ヒーローセクションをドラマチックに */
.work-detail-hero { 
    height: 500px; 
    background-color: var(--border-color); 
    background-attachment: fixed; 
    background-size: cover; 
    background-position: center 30%; 
    border-radius: 12px; 
    margin-bottom: 50px; 
    position: relative; 
    color: #fff; 
    display: flex; 
    align-items: flex-end; 
    overflow: hidden; 
    box-shadow: var(--deep-shadow);
    transition: all 0.3s ease;
}
/* ナイトモード時 */
.dark-mode .work-detail-hero {
    box-shadow: var(--deep-shadow-dark);
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%); 
    border-radius: 12px; 
}

.hero-content { 
    padding: 50px; 
    position: relative; 
    z-index: 2; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-content h1 { 
    font-family: 'Roboto', sans-serif;
    font-size: 3.5rem; 
    font-weight: 700;
    margin-bottom: 10px; 
    letter-spacing: 1px;
}

.hero-content p { 
    font-size: 1.4rem; 
    font-weight: 300;
    opacity: 1; 
    border-left: 4px solid var(--main-accent-color); 
    padding-left: 15px;
}

/* 全セクションの共通設定 */
.work-detail-section { 
    padding: 40px; 
    margin-bottom: 40px; 
}

/* カードデザイン（ホバー時の浮き上がりを削除） */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 影を付けて浮遊感を出す（静的な影） */
    transition: box-shadow 0.3s ease-in-out; /* トランスフォームのトランジションは削除 */
}
/* ホバー時のスタイルを削除（transform: translateY(-5px); を削除） */
.card:hover {
    /* 浮き上がりなし */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* ホバーしても影は変えない */
}
.dark-mode .card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.dark-mode .card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* ホバーしても影は変えない */
}


/* 見出しのスタイル */
.work-detail-section h2 { 
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.2rem; 
    font-weight: 700;
    margin-bottom: 25px; 
    color: var(--main-accent-color); 
    border-bottom: none; 
    position: relative;
    display: inline-block;
}
.work-detail-section h2::after { 
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background-color: var(--main-accent-color);
    border-radius: 5px;
}
.work-detail-section h3 { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
}

/* 概要グリッドのデザイン強化 */
.overview-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
    padding-top: 10px;
}
@media (min-width: 768px) { .overview-grid { grid-template-columns: 1fr 1fr; } }

.overview-item h3 { 
    font-size: 1.3rem; 
    font-weight: 700;
    margin-bottom: 15px; 
    color: var(--primary-text);
}

.overview-item h3 i { 
    margin-right: 10px; 
    color: var(--main-accent-color); 
    font-size: 1.5rem;
}

/* 担当業務タグをモダンに（浮き上がりを削除） */
.tech-stack { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    padding-top: 10px;
}

.tech-tag { 
    background-color: var(--main-accent-color); 
    color: #fff; 
    padding: 8px 18px; 
    border-radius: 25px; 
    font-size: 0.95rem; 
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(44, 122, 123, 0.3); 
    transition: background-color 0.2s; /* transformのトランジションを削除 */
}
.tech-tag:hover {
    background-color: var(--main-accent-hover); 
    /* transform: translateY(-2px); を削除 */
}

/* 中間画像のセクション (もし画像を追加した場合に備えて残しています) */
.work-detail-section img {
    box-shadow: var(--deep-shadow); 
}

/* CTAボタンを大きく、目立たせる（HTMLから削除されましたが、CSSは残します） */
.cta-links { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    padding: 0; 
    background: none; 
    border: none; 
    box-shadow: none;
    margin-top: 50px;
    margin-bottom: 50px;
}
.btn-link.large-btn { 
    font-size: 1.2rem; 
    padding: 15px 35px; 
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* メインボタンのスタイル */
.cta-links > a:first-child {
    background-color: var(--main-accent-color); 
    color: #fff;
    border-color: var(--main-accent-color); 
    box-shadow: 0 5px 15px rgba(44, 122, 123, 0.4); 
}
.cta-links > a:first-child:hover {
    background-color: var(--main-accent-hover); 
    border-color: var(--main-accent-hover); 
}

/* セカンダリ（GitHub）ボタンのスタイルを調整 */
.btn-link.secondary { 
    background-color: transparent;
    border: 2px solid var(--secondary-text); 
    color: var(--secondary-text); 
}
.btn-link.secondary:hover { 
    background-color: var(--secondary-text); 
    color: var(--card-bg); 
}

.project-nav { 
    text-align: center; 
    margin-top: 70px; 
    padding-bottom: 40px;
}

/* ローディングアニメーション用のスタイル */
.page-load-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.page-load-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ローディングコンテナ */
.loading-container {
    text-align: center;
}

/* アニメーテッドロゴ */
.loading-logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* 3つのドットアニメーション */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--link-hover-color);
    animation: bounce 1.4s infinite;
}

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

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

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

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* テキスト */
.loading-text {
    font-size: 1rem;
    color: var(--secondary-text);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* リング型スピナー */
.ring-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 20px auto;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--link-hover-color);
    border-right-color: var(--link-hover-color);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-top-color: #00d4ff;
    border-right-color: #00d4ff;
    animation: spin 1.8s linear infinite reverse;
}

.ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-top-color: var(--link-hover-color);
    animation: spin 2.4s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* グロウエフェクト */
.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(44, 122, 123, 0.2) 0%, transparent 70%);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}