:root {
  --bg: #F2F2F2;
  --paper: #FFFDF7;
  --ink: #2A2A2A;
  --muted: #6C6C6C;
  --border: #E8E0CF;
  --accent: #d43a28; /* アテンションカラー */
  --accent-ink: #d43a28;
  --focus: #A77B55;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: myriad-pro, "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 15px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: var(--paper);
  color: var(--accent-ink);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* Header */
.site-header {
  background: #F2F2F2;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand-mark { font-size: 18px; }
.brand-name { 
  font-weight: 700; 
  letter-spacing: 0.3px; 
  font-size: 18px;
}

.site-nav .nav-list {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list.small { gap: 12px; }
.nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-link[aria-current="page"],
.nav-link.active,
.nav-link:hover {
  color: var(--accent-ink);
  background: #FFF9F0;
}

/* Content Sections */
.content-section {
  display: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.content-section.active {
  display: block;
}
.contents-block{
  max-width: 1040px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  /* opacity: 0.2; */
  position: relative;
  z-index: 1000;
}

/* Hero */
.hero { padding: 48px 0 20px; }
.hero-title { font-size: 1.25rem; margin: 0 0 6px; letter-spacing: 0.2px; }
.hero-lead { margin: 0; color: var(--muted); }

/* Works */
.works { padding: 20px 0 56px; }
.work-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }

/* Simple vertical items */
.work-item { padding: 10px 0 14px; border-bottom: 1px solid var(--border); }
.work-title { margin: 0 0 4px; font-size: 17px; line-height: 1.5; }
.work-fields { margin: 0; color: var(--muted); font-size: 14px; }
.work-fields span { display: inline-block; margin-right: 12px; white-space: nowrap; }
.work-desc { font-size: 0.85rem; margin: 6px 0 0; color: var(--muted); }

/* About */
.about { 
  padding: 48px 0 72px; 
  background: rgba(255, 255, 255, 0.7); 
  backdrop-filter: blur(10px);
}
.about-main-title { 
  font-size: 1.25rem; 
  margin: 0 0 24px; 
  letter-spacing: 0.2px; 
  text-align: left;
}
.about-content { display: flex; flex-direction: column; gap: 24px; }
.profile-section { margin-bottom: 0; }
.section-title { font-size: 18px; margin: 0 0 10px; }
.bullet-list { padding-left: 18px; margin: 0; }

/* Work Groups */
.work-groups { display: flex; flex-direction: column; gap: 32px; }
.work-group { margin-bottom: 0; }
.work-year { 
  font-size: 1.125rem; 
  margin: 0 0 16px; 
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 12px 0; background: #F2F2F2; }
.footer-inner { display: flex; align-items: center; justify-content: center; }
.copy { margin: 0; color: var(--muted); font-size: 14px; }

/* Links & focus */
.text-link { color: var(--accent-ink); text-underline-offset: 3px; }
.text-link:hover { text-decoration: none; }

/* Split layout */
.site-main { position: relative; min-height: 100vh; }
.site-main > * { position: relative; z-index: 1; }
.split-grid { display: block; }
.life-pane { position: fixed; }
.life-container { 
  position: fixed; 
  top: 0;  
  right: 0; 
  bottom: 0; 
  width: 50%;  
  background: transparent; 
  overflow: hidden; 
  z-index: 0; 
  pointer-events: none; 
}
.vis-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Responsive */
@media (min-width: 680px) {
  .hero { padding: 64px 0 24px; }
  .hero-title { font-size: 1.25rem; }
  .about { padding: 64px 0 72px; }
  .about-main-title { font-size: 1.25rem; }
  .about-content { gap: 32px; }
  .life-container{width: 30%;}
}
@media (min-width: 980px) {
}

/* 404 Error Page */
.error-page {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  min-height: calc(100vh - 128px);
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.error-title {
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 16px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.error-subtitle {
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 600;
}

.error-description {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.error-actions {
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-ink);
  color: white;
}

.btn-primary:hover {
  background: #b83222;
  transform: translateY(-1px);
}

.error-navigation {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.error-nav-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.error-nav-link {
  display: block;
  padding: 8px 0;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.error-nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--accent-ink);
}

/* Responsive adjustments for 404 page */
@media (max-width: 680px) {
  .error-page {
    padding: 60px 0;
  }
  
  .error-title {
    font-size: 4rem;
  }
  
  .error-subtitle {
    font-size: 1.25rem;
  }
  
  .error-description {
    font-size: 0.9rem;
  }
}
