:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --secondary: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    --accent: #38bdf8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 1.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.12);
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    transition: color 0.3s, background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background: #fff;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.blob-bg {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, rgba(37,99,235,0.05) 50%, rgba(255,255,255,0) 70%);
    transform: translateY(-50%);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-53%) scale(1.05); }
    100% { transform: translateY(-50%) scale(1); }
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-main);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 2rem;
    flex: 1;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.skills-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-tag {
    padding: 0.8rem 1.8rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.diary-card {
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.diary-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.diary-card .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.diary-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.diary-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--accent);
}

.ad-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.ad-placeholder {
    background-color: var(--bg-alt);
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.ad-placeholder.banner {
    min-height: 250px;
}

.footer {
    padding: 3rem 0;
    background-color: var(--bg-main);
    border-top: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary);
}

.static-page {
    padding-top: 152px;
    padding-bottom: 5rem;
    min-height: 80vh;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.55), rgba(255, 255, 255, 0));
}

.static-page-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.7);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.static-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.static-page h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.9rem;
    font-size: 1.35rem;
    color: var(--text-main);
}

.static-page p,
.static-page li {
    color: var(--text-main);
    line-height: 1.9;
}

.static-page p + p {
    margin-top: 0.9rem;
}

.static-page ul {
    padding-left: 1.25rem;
}

.static-page li + li {
    margin-top: 0.45rem;
}

.page-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.notice-box {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: var(--text-main);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 0.9rem 0 1rem;
        gap: 0.85rem;
        align-items: stretch;
    }
    .logo {
        font-size: 1.15rem;
        text-align: center;
        letter-spacing: -0.3px;
    }
    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.35rem;
        padding: 0.4rem;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.88));
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links li {
        flex: 1 0 0;
    }
    .nav-links a {
        width: 100%;
        min-height: 46px;
        padding: 0.7rem 0.9rem;
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        color: #0f172a;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.88));
        border: 1px solid rgba(148, 163, 184, 0.18);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
    .nav-links a:hover,
    .nav-links a:focus-visible {
        color: var(--primary);
        background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(240, 249, 255, 0.98));
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
    }
    .hero {
        padding-top: 138px;
        text-align: center;
    }
    .cta-buttons {
        justify-content: center;
    }
    .static-page {
        padding-top: 164px;
    }
    .static-page-card {
        padding: 2rem 1.35rem;
        border-radius: 18px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Diary View Page Styles --- */
.diary-view-page {
    padding-top: 100px;
    padding-bottom: 5rem;
    min-height: 80vh;
}

.diary-container {
    max-width: 800px;
}

.back-link-wrapper {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-link:hover {
    background: #e2e8f0;
    transform: translateX(-5px);
}

.diary-content-wrapper {
    padding: 3rem;
    border-radius: 16px;
    background: var(--bg-main);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.diary-article-header {
    margin-bottom: 2rem;
}

.diary-article-date {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.8);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.diary-article-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0;
}

@media (max-width: 768px) {
    .diary-content-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* --- Markdown Body Styles --- */
.markdown-body {
    color: var(--text-main);
    line-height: 1.8;
}

.markdown-body h1 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--text-main); }
.markdown-body h2 { font-size: 1.8rem; margin-top: 2rem; margin-bottom: 1rem; border-bottom: 2px solid var(--bg-alt); padding-bottom: 0.5rem; }
.markdown-body h3 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.8rem; }
.markdown-body p { margin-bottom: 1.2rem; }
.markdown-body ul, .markdown-body ol { margin-bottom: 1.2rem; padding-left: 2rem; }
.markdown-body li { margin-bottom: 0.5rem; }
.markdown-body pre { background-color: var(--bg-alt); padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.2rem; }
.markdown-body code { font-family: monospace; background-color: var(--bg-alt); padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.markdown-body pre code { background-color: transparent; padding: 0; }
.markdown-body blockquote { border-left: 4px solid var(--primary); padding-left: 1rem; color: var(--text-muted); font-style: italic; margin-bottom: 1.2rem; }
.markdown-body img { max-width: 100%; border-radius: 8px; margin-bottom: 1.2rem; }
