/* style.css */
:root {
    /* ライトモード（デフォルト）の色定義 */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --container-bg: #ffffff;
    --text-main: #333333;
    --text-sub: #666666;
    --text-accent: #667eea;
    --heading-color: #667eea;
    --sub-heading-color: #764ba2;
    --border-color: #eee;
    --item-bg: #f8f9fa;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ダークモード時の色定義 */
body.dark-mode {
    --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --container-bg: #1a1a1a;
    --text-main: #e0e0e0;
    --text-sub: #a0a0a0;
    --text-accent: #89a7ff;
    --heading-color: #89a7ff;
    --sub-heading-color: #b08bf8;
    --border-color: #444;
    --item-bg: #2d2d2d;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* {
    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-main);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s;
}

.container {
    background: var(--container-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    transition: background 0.3s, color 0.3s;
}

/* ナビゲーションメニュー */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

nav a {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--text-accent);
    border-bottom: 2px solid var(--text-accent);
}

/* テーマ切り替えボタン */
#theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-main);
}
#theme-toggle:hover {
    background: var(--item-bg);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    color: var(--text-sub);
    font-size: 1.1em;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: var(--sub-heading-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid var(--item-bg);
    padding-bottom: 10px;
}

h3 {
    color: var(--text-main);
    margin-bottom: 10px;
    margin-top: 20px;
    font-size: 1.2em;
}

p {
    margin-bottom: 15px;
    color: var(--text-main);
}

/* タイムライン風リスト */
.timeline-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--border-color);
}

.timeline-date {
    font-size: 0.85em;
    color: var(--text-sub);
    margin-bottom: 5px;
    display: block;
}

/* スキルタグ */
ul.skills {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

ul.skills li {
    background: var(--item-bg);
    color: var(--text-main);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-sub);
    font-size: 0.8em;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* リンクボタン */
.action-btn {
    display: inline-block;
    background: var(--heading-color);
    color: white; /* ボタン文字は白で固定 */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s;
}
.action-btn:hover {
    opacity: 0.9;
}
