﻿:root {
  --bg: #07090d;
  --panel: #111722;
  --panel2: #0c111a;
  --text: #f2f5f8;
  --muted: #8d99a8;
  --line: #263244;
  --accent: #00d1ff;
  --danger: #ff304f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 209, 255, 0.14), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 48, 79, 0.10), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans JP", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 92vh;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.logo {
  color: var(--accent);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.hero-content {
  max-width: 1100px;
  margin: 150px auto 0;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 13px;
}

h1 {
  font-size: clamp(56px, 10vw, 130px);
  line-height: 0.9;
  margin: 18px 0;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  margin-top: 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.stats div,
.role-card,
.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.stats div {
  padding: 24px;
}

.stats strong {
  display: block;
  font-size: 40px;
  color: var(--text);
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 28px;
}

.intro {
  font-size: 28px;
  line-height: 1.7;
  color: var(--text);
}

.section-title {
  margin-bottom: 32px;
}

.section-title p {
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 12px;
  margin: 0 0 10px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}

.role-card {
  padding: 24px 10px;
  text-align: center;
  font-weight: 800;
  color: var(--text);
}

.portfolio-note {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.03);
  border-radius: 0 12px 12px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  padding: 24px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--accent);
  opacity: 0.8;
}

.project-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.project-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
}

.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(0, 209, 255, 0.35);
  padding: 5px 9px;
  border-radius: 999px;
}

.about p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  max-width: 820px;
}

@media (max-width: 900px) {
  .stats,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .role-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .stats,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-top: 90px;
  }
}


.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px;
}

.project-role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.project-highlight {
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.project-section-label {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin: 24px 0 4px;
  text-transform: uppercase;
}

.project-section-label.all {
  margin-top: 56px;
}

.featured-card {
  border-color: rgba(0, 209, 255, 0.55);
  box-shadow: 0 0 36px rgba(0, 209, 255, 0.08);
}

/* readability update */
.section {
  max-width: 1240px;
}

.project-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  min-height: auto;
  padding: 26px;
  background: rgba(255,255,255,0.045);
}

.project-card h3 {
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0;
}

.project-card p {
  font-size: 15px;
  line-height: 1.9;
  color: #c8d0dc;
}

.project-top {
  font-size: 13px;
  color: #aab4c3;
}

.project-role {
  font-size: 14px;
  margin-bottom: 14px;
}

.tag {
  font-size: 12px;
  color: #d8f7ff;
  background: rgba(0, 209, 255, 0.08);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filters button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: #d7dee8;
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
}

.filters button.active,
.filters button:hover {
  background: var(--accent);
  color: #061018;
  border-color: var(--accent);
}

.empty {
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* hero fix */
.hero {
  min-height: auto;
  padding: 28px 28px 80px;
}

.hero-content {
  max-width: 1080px;
  margin: 110px auto 0;
}

.hero-kicker {
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: end;
}

.name-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.22em;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(54px, 7vw, 96px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
}

.hero h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.35;
  max-width: 900px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: rgba(255,255,255,0.035);
}

.hero-panel p {
  color: var(--accent);
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-panel li {
  color: #d7dee8;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

.stats {
  margin-top: 52px;
}

.stats div {
  min-height: auto;
}

.stats strong {
  font-size: 34px;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }
}

/* Japanese focus panel */
.hero-panel p {
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.hero-panel li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.panel-icon {
  width: 28px;
  display: inline-flex;
  justify-content: center;
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(0, 209, 255, 0.35));
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 40px;
}

.nav-links a {
  cursor: pointer;
}

/* role cards japanese */
.role-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 78px;
  justify-content: center;
  align-items: center;
}

.role-card strong {
  font-size: 15px;
  line-height: 1.4;
}

.role-card span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section-title p {
  font-weight: 800;
}

.portfolio-note {
  line-height: 1.8;
}

/* filter update */
.filter-block {
  margin: 26px 0 38px;
}

.filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 18px 0 10px;
}

.filters {
  margin-bottom: 12px;
}

.filters button {
  min-width: 58px;
}

/* role card balance */
.role-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.role-card {
  padding: 20px 10px;
}

.role-card strong {
  font-size: 14px;
  text-align: center;
  white-space: normal;
}

.role-card span {
  font-size: 10px;
}

/* project card tag balance */
.tag {
  font-size: 11px;
  min-width: 42px;
  text-align: center;
}

.project-role {
  color: var(--accent);
  font-weight: 800;
}

.project-card h3 {
  min-height: auto;
}

/* edit mode */
.edit-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.edit-toolbar button,
.import-label {
  border: 1px solid var(--line);
  background: rgba(10, 16, 24, 0.92);
  color: #eaf6ff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.edit-toolbar button:hover,
.import-label:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.import-label input {
  display: none;
}

.edit-only {
  display: none;
}

.is-editing .edit-only {
  display: inline-flex;
  align-items: center;
}

.is-editing .project-card {
  outline: 1px dashed rgba(0, 209, 255, 0.35);
}

.card-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(0, 209, 255, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.project-meta-row span {
  color: #d8f7ff;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.edit-modal.hidden {
  display: none;
}

.edit-modal-inner {
  width: min(620px, 100%);
  background: #101722;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.edit-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.edit-modal-head h3 {
  margin: 0;
}

.edit-modal-head button {
  background: transparent;
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.edit-modal input,
.edit-modal textarea {
  width: 100%;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: white;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
}

.edit-modal textarea {
  min-height: 130px;
  resize: vertical;
}

.edit-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.edit-modal-actions button {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  background: var(--accent);
  color: #061018;
  font-weight: 800;
}

.edit-modal-actions .danger {
  background: #ff304f;
  color: white;
}

/* edit modal labels */
.edit-modal-inner {
  max-height: 90vh;
  overflow-y: auto;
}

.edit-modal label {
  display: block;
  color: #d8e6f3;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.edit-modal label input,
.edit-modal label textarea {
  margin-top: 6px;
}

.edit-modal small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin-top: -4px;
  margin-bottom: 6px;
}

.project-meta-row span {
  margin-bottom: 2px;
}

.type-filters,
.format-filters {
  margin-bottom: 18px;
}

.filter-block {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px;
}

/* collapsible filters */
.toggle-filters {
  margin: 24px 0 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  color: #eaf6ff;
  padding: 13px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.toggle-filters span {
  color: var(--accent);
  font-size: 18px;
}

.filter-summary {
  display: inline-flex;
  margin-left: 10px;
  color: var(--accent);
  font-size: 13px;
  border: 1px solid rgba(0,209,255,0.3);
  border-radius: 999px;
  padding: 8px 12px;
  vertical-align: middle;
}

.filter-block.collapsed {
  display: none;
}

.filter-block {
  animation: filterOpen 0.18s ease-out;
}

@keyframes filterOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
