/* style.css - digital garden / deep obsidian edition */
:root {
    --primary-color: #0f172a;
    --accent-color: #1e40af;
    --text-color: #1e293b;
    --bg-color: #e8eef7;
    --white: #f8fafc;
    --border: #dde4f0;
    --surface: #eef3fa;
    --max-width: 800px;
    --font-main: "Inter", system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #e8eef7;
    line-height: 1.8;
    letter-spacing: 0.01em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Header */
header {
    background-color: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #dde4f0;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    pointer-events: auto;
}

.site-tagline {
    font-size: 0.8rem;
    color: #64748b;
    margin-left: 1rem;
    display: none;
}

@media (min-width: 600px) {
    .site-tagline {
        display: inline-block;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    pointer-events: auto;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Main Content */
main {
    padding: 2rem 0 5rem 0;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.content-section {
    background: #f8fafc;
    padding: 2.0rem;
    border-radius: 12px;
    border: 1px solid #dde4f0;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.04);
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--accent-color);
    padding-left: 1rem;
}

h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.5rem;
    color: #334155;
}

/* Bilingual text decoration */
.ja-text {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.9em;
    border-top: 1px dotted #dde4f0;
    padding-top: 0.4rem;
}

/* Contact Box */
.contact-box {
    background-color: #eef3fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.contact-email {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: underline;
    pointer-events: auto;
}

/* Narratives List */
.narrative-item {
    padding: 2rem 0;
    border-bottom: 1px solid #dde4f0;
    transition: transform 0.2s ease;
}

.narrative-item:hover {
    transform: translateX(4px);
}

.narrative-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    pointer-events: auto;
}

.narrative-item h3 a:hover {
    color: var(--accent-color);
}

.narrative-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

/* Footer */
footer {
    background-color: #e8eef7;
    color: #94a3b8;
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #dde4f0;
}

footer p {
    font-size: 0.8rem;
}

.note-list {
    list-style: none;
    padding: 0;
}

.note-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #dde4f0;
    padding-bottom: 10px;
}

.note-list .date {
    font-size: 0.8rem;
    color: #64748b;
}

.note-list a {
    text-decoration: none;
    color: #1e40af;
    font-weight: bold;
}

.note-list a:hover {
    text-decoration: underline;
}
