/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette (淡いグリーン基調) */
    --color-bg: #F4F9F4;
    /* 全体の背景: ごく薄いグリーン */
    --color-bg-alt: #E8F0E8;
    /* サブ背景: 少し色づいた薄いグリーン */
    --color-text-main: #2C3E2D;
    /* メイン文字色: 緑みがかった濃いチャコール */
    --color-text-muted: #5C705D;
    /* サブ文字色 */
    --color-primary: #4CAF50;
    /* アクセントカラー: 爽やかなプレーン・グリーン */
    --color-border: #D0E0D0;
    /* 境界線もほんのりグリーン系に統一 */

    /* Typography */
    --font-base: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

html {
    scroll-behavior: smooth;
    /* スムーススクロール */
}

body {
    font-family: var(--font-base);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

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

a:hover {
    color: var(--color-primary);
}

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

/* =========================================
   Layout & Components
   ========================================= */
.container {
    width: 90%;
    max-width: 800px;
    /* 読みやすさを重視した幅 */
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.bg-light-gray {
    background-color: var(--color-bg-alt);
}

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

/* =========================================
   Header (ナビゲーション)
   ========================================= */
#global-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    padding: 15px 0;
}

.header-inner {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* スマホで折り返す用 */
}

.logo a {
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================
   1. Hero Section
   ========================================= */
.hero-section {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-catchphrase {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    /* 画面サイズに合わせて可変（少し小さめに調整） */
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    /* タイトルに影をつけて目立たせる */
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    font-weight: bold;
}

.hero-message {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.btn-scroll {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-text-main);
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-scroll:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg);
}

/* =========================================
   2. About Me
   ========================================= */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-image {
    flex: 1 1 200px;
    max-width: 250px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-text {
    flex: 2 1 300px;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* =========================================
   3. Learning Logs
   ========================================= */
.timeline {
    border-left: 2px solid var(--color-border);
    padding-left: 20px;
    margin-left: 10px;
}

.log-item {
    position: relative;
    margin-bottom: 30px;
}

.log-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.log-item time {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.log-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

/* =========================================
   4. Mini Projects
   ========================================= */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    /* 折り返しを許可 */
    gap: 20px;
}

.project-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    /* スマホでは1列（100%幅） */
}

/* PC等、画面が広い場合はカードを横に並べる (レスポンシブ対応) */
@media (min-width: 600px) {
    .project-card {
        width: calc(50% - 10px);
        /* 半分（2列）にする */
    }
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background-color: var(--color-bg-alt);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* =========================================
   5. Contact (Footer)
   ========================================= */
.site-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-text-main);
    color: var(--color-bg);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    margin: 20px 0;
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.copyright {
    color: var(--color-text-muted);
    margin-top: 40px;
}

/* =========================================
   Media Queries (スマホ向けの微調整)
   ========================================= */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .section {
        padding: 40px 0;
    }
}