:root {
  color-scheme: dark;
  --bg: #0d1117;
  --surface: #161b22;
  --surface-strong: #1f252e;
  --ink: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.14);
  --want: #ec4899;
  --can: #22c55e;
  --should: #38bdf8;
  --foundation: #fbbf24;
  --shadow: rgba(0, 0, 0, 0.4);
  --border: rgba(88, 166, 255, 0.4);
  --glow: 0 0 0.6rem rgba(88, 166, 255, 0.25),
    0 0 1.2rem rgba(88, 166, 255, 0.18);
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-display: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
}

code {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  font-size: 0.95em;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15em 0.4em;
  color: var(--ink);
}

.background {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(88, 166, 255, 0.15), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.08), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.08), transparent 50%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 60%);
  z-index: -1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8vw 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px var(--shadow), var(--glow);
}

.brand-mark {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  padding: 10px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  border-radius: 999px;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 0 0.8rem rgba(88, 166, 255, 0.35),
    0 0 1.6rem rgba(88, 166, 255, 0.2);
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.container {
  padding: 20px 8vw 80px;
}

.hero {
  max-width: 100%;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease both;
}

.profile-hero {
  display: grid;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease both;
}

.profile-hero-text h1 {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 0 0 12px;
}

.profile-hero-text h2 {
  margin-top: 24px;
  font-size: 1.2rem;
}

.profile-actions {
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--glow);
}

.button:hover {
  border-color: rgba(88, 166, 255, 0.7);
}

.ikigai {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.92));
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px var(--shadow), var(--glow);
  margin-bottom: 40px;
}

.ikigai-header {
  margin-bottom: 24px;
}

.ikigai-header h1 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 8px 0 12px;
}

.ikigai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ikigai-left {
  display: grid;
  gap: 18px;
}

.ikigai-diagram {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  isolation: isolate;
}


.ikigai-zone {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.9);
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.6);
  pointer-events: none;
}

.ikigai-zone-value {
  font-size: 0.85rem;
}

.ikigai-zone-want-can {
  left: 34%;
  top: 34%;
  transform: translate(-50%, -50%);
}

.ikigai-zone-want-should {
  right: 34%;
  top: 34%;
  transform: translate(50%, -50%);
}

.ikigai-zone-can-foundation {
  left: 34%;
  bottom: 34%;
  transform: translate(-50%, 50%);
}

.ikigai-zone-should-foundation {
  right: 34%;
  bottom: 34%;
  transform: translate(50%, 50%);
}

.ikigai-zone-all {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ikigai-triple {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.55);
  pointer-events: none;
}

.ikigai-triple-a {
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
}

.ikigai-triple-b {
  right: 40%;
  top: 50%;
  transform: translate(50%, -50%);
}

.ikigai-triple-c {
  left: 50%;
  bottom: 40%;
  transform: translate(-50%, 50%);
}

.ikigai-triple-d {
  left: 40%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ikigai-circle {
  position: absolute;
  width: 56%;
  height: 56%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #f8fafc;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  background: transparent;
  mix-blend-mode: screen;
}

.ikigai-circle span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.6);
}

.ikigai-want span {
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ikigai-can span {
  left: 22%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ikigai-should span {
  right: 18%;
  top: 50%;
  transform: translate(50%, -50%);
  max-width: 4.5em;
  text-align: center;
}

.ikigai-foundation span {
  bottom: 18%;
  left: 50%;
  transform: translate(-50%, 50%);
  white-space: nowrap;
  max-width: 18em;
  text-shadow: none;
}

.ikigai-circle span {
  max-width: 70%;
  line-height: 1.4;
}

.ikigai-want {
  left: 22%;
  top: 0;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(236, 72, 153, 0.32);
}

.ikigai-can {
  left: 0;
  top: 22%;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(34, 197, 94, 0.32);
}

.ikigai-should {
  right: 0;
  top: 22%;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(56, 189, 248, 0.32);
}

.ikigai-foundation {
  left: 22%;
  bottom: 0;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(251, 191, 36, 0.32);
}

.ikigai-diagram.is-category-want .ikigai-want,
.ikigai-diagram.is-category-can .ikigai-can,
.ikigai-diagram.is-category-should .ikigai-should,
.ikigai-diagram.is-category-foundation .ikigai-foundation {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}


.ikigai-panel {
  display: grid;
  gap: 18px;
}

.ikigai-notes {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.4;
}

.ikigai-note {
  display: flex;
  gap: 6px;
}

.ikigai-note-key {
  font-weight: 700;
  color: rgba(148, 163, 184, 0.95);
}

.ikigai-tabs {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 4px;
}

.ikigai-tab {
  padding: 10px 16px 8px;
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

@media (max-width: 1320px) {
  .ikigai-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 44px;
    gap: 8px;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .ikigai-tab {
    width: 100%;
    height: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
  }
}

.ikigai-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
  opacity: 0.8;
}

.ikigai-tab:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.ikigai-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.ikigai-tab[data-ikigai-tab='want']::after {
  background: var(--want);
}

.ikigai-tab[data-ikigai-tab='can']::after {
  background: var(--can);
}

.ikigai-tab[data-ikigai-tab='should']::after {
  background: var(--should);
}

.ikigai-tab[data-ikigai-tab='foundation']::after {
  background: var(--foundation);
}

.ikigai-tab-panels {
  position: relative;
  min-height: 320px;
}

.ikigai-group {
  display: none;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
}

.ikigai-group.is-active {
  display: block;
}

.ikigai-group[data-group='want'] {
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.06);
}

.ikigai-group[data-group='can'] {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.ikigai-group[data-group='should'] {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}

.ikigai-group[data-group='foundation'] {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.ikigai-items {
  display: grid;
  gap: 8px;
}

.ikigai-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.ikigai-item-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 8px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-align: left;
  transition: background 0.2s ease;
  user-select: none;
}

.ikigai-item-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ikigai-item-title:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ikigai-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 6px 2px;
}

.ikigai-range {
  width: 100%;
  accent-color: var(--accent);
}

.ikigai-value {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 32px;
  text-align: right;
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 12px 0;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-year {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
}

.timeline-year-label {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 24px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(88, 166, 255, 0.6), rgba(88, 166, 255, 0.05));
  box-shadow: var(--glow);
}

.timeline-month {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.75rem;
}

.timeline-month-label {
  font-weight: 600;
}

.timeline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: #ffffff;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px var(--shadow), var(--glow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-decoration: none;
  color: #111111;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: rgba(88, 166, 255, 0.7);
  box-shadow: 0 16px 36px var(--shadow), var(--glow);
  transform: translateY(-2px);
}

.note-card {
  background: #ffffff;
  color: #111111;
}

.zenn-card {
  background: #ffffff;
}

.qiita-card {
  background: #ffffff;
}

.note-card .card-meta {
  color: #6b7280;
}

.note-card .card-title {
  color: #111111;
}

.note-card .card-sub {
  color: #6b7280;
  font-weight: 700;
}

.zenn-card .card-sub {
  color: #3ea8ff;
  font-weight: 700;
}

.qiita-card .card-sub {
  color: #67cb1b;
  font-weight: 700;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-meta {
  font-size: 0.85rem;
  color: #6b7280;
  order: 1;
}

.card-title {
  font-size: 1.2rem;
  margin: 0;
}

.card-sub {
  color: #6b7280;
  margin: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  order: 2;
}

.card-tags span {
  padding: 6px 10px;
  background: #0d1117;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #ffffff;
}

.card-tags .tag-button {
  padding: 6px 10px;
  background: #0d1117;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #ffffff;
  cursor: pointer;
}

.card-tags .tag-button.is-active {
  outline: 2px solid rgba(88, 166, 255, 0.6);
  outline-offset: 1px;
}

.card.is-filtered-out {
  display: none;
}

.card-tags .tag-note {
  background: #249f80;
  border-color: #249f80;
  color: #ffffff;
}

.card-tags .tag-zenn {
  background: #3ea8ff;
  border-color: #3ea8ff;
  color: #ffffff;
}

.card-tags .tag-qiita {
  background: #67cb1b;
  border-color: #67cb1b;
  color: #0d1117;
}

.card-tags .tag-work {
  background: #2f6feb;
  border-color: #2f6feb;
  color: #ffffff;
}

.entry-header {
  max-width: 80%;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}

.entry-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  margin-top: 6px;
}

.entry-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  margin: 10px 0;
}


.entry-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-body {
  background: var(--surface);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px var(--shadow), var(--glow);
  line-height: 1.7;
  font-size: 1rem;
}

.entry-body h2 {
  padding-bottom: 0.3em;
  font-size: 1.5em;
  border-bottom: 1px solid var(--border);
  margin-top: 24px;
}

.entry-body h1,
.entry-body h2 {
  margin-bottom: 1.1rem;
}

.entry-body h3 {
  font-size: 1.3em;
}

.entry-body h4 {
  font-size: 1.15em;
}

.entry-body h5 {
  font-size: 1.05em;
}

.entry-body h3,
.entry-body h4,
.entry-body h5,
.entry-body h6 {
  margin-top: 2.25em;
  margin-bottom: 0.5em;
}
.entry-body ul {
  padding-left: 18px;
}

.entry-links {
  margin-top: 32px;
}

.entry-links ul {
  list-style: none;
  padding: 0;
}

.entry-links li {
  margin-bottom: 8px;
}

.entry-links a {
  color: var(--accent);
  text-decoration: none;
}

.entry-back {
  margin-top: 32px;
}

.entry-back a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.not-found {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  padding: 40px 0;
}

.not-found-code {
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: 0.2em;
  color: var(--accent);
  text-shadow: var(--glow);
}

.not-found h1 {
  margin: 0;
  font-size: 36px;
}

.not-found p {
  color: var(--muted);
  margin: 0;
}

.not-found-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.not-found-link:hover {
  border-color: rgba(88, 166, 255, 0.7);
}

.site-footer {
  padding: 20px 8vw 40px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  box-shadow: var(--glow);
}

.footer-links-title {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  font-size: 0.85rem;
  min-width: 86px;
  text-align: center;
}

.footer-links a:hover {
  border-color: rgba(88, 166, 255, 0.7);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 16px;
  }

  .timeline-year {
    grid-template-columns: 1fr;
  }

  .timeline-year-label {
    letter-spacing: 0.15em;
  }

  .timeline-track {
    padding-left: 18px;
  }

  .timeline-month {
    grid-template-columns: 28px 1fr;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .card-tags {
    justify-content: flex-start;
  }

  .entry-body {
    padding: 22px;
  }

  .entry-header {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 24px;
  }

  .profile-hero-text h1 {
    font-size: 26px;
  }

  .ikigai {
    padding: 20px;
  }

  .ikigai-grid {
    grid-template-columns: 1fr;
  }

  .ikigai-diagram {
    width: min(360px, 100%);
  }

  .ikigai-tab-panels {
    min-height: 0;
  }

  .ikigai-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 44px;
    gap: 8px;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .ikigai-tab {
    width: 100%;
    height: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
  }

  .entry-header h1 {
    font-size: 24px;
  }

  .not-found h1 {
    font-size: 24px;
  }
}
