:root {
  --bg: #f6efe3;
  --surface: rgba(255, 250, 242, 0.74);
  --surface-strong: #fff8ef;
  --text: #1b1b18;
  --muted: #645b4e;
  --line: rgba(27, 27, 24, 0.1);
  --accent: #dd6b2d;
  --accent-deep: #8c3d13;
  --green: #2f6b52;
  --blue: #2c5f8b;
  --blue-soft: #dce8f3;
  --shadow: 0 22px 60px rgba(58, 42, 18, 0.14);
  --shell-max-width: 1180px;
  --shell-side-gap: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), transparent 28%),
    linear-gradient(180deg, #f0e3cf 0%, #f8f2ea 48%, #eee2d0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 27, 24, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 27, 24, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(var(--shell-max-width), calc(100% - var(--shell-side-gap)));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-header {
  padding-top: 8px;
}

.compact-header {
  margin-bottom: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(60, 43, 20, 0.06);
}

.brand,
.hero h1,
.page-hero h1,
.section-heading h2,
.panel h3,
.panel h2,
.hero-card h2,
.about-hero-main h1 {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-links a {
  position: relative;
  padding-bottom: 2px;
}

.topbar-links a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.hero,
.page-hero {
  padding-top: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-grid-wide {
  padding: 24px 0 12px;
}

body[data-page="home"] .page-shell {
  padding-bottom: 24px;
}

body[data-page="home"] .compact-header {
  margin-bottom: 12px;
}

body[data-page="home"] .hero {
  padding-top: 0;
}

body[data-page="home"] .hero-grid-wide {
  padding: 8px 0 0;
}

.hero-copy,
.hero-card,
.panel,
.page-hero,
.about-hero-main,
.about-hero-side {
  border: 1px solid rgba(140, 61, 19, 0.12);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-hero,
.about-hero-main {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 36px;
  background:
    linear-gradient(140deg, rgba(255, 248, 239, 0.98), rgba(241, 226, 201, 0.86)),
    var(--surface-strong);
}

.hero-copy::after,
.page-hero::after,
.about-hero-main::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(221, 107, 45, 0.26), transparent 70%);
}

.eyebrow,
.card-label,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.about-hero-main h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
}

body[data-page="home"] .hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.hero h1 span,
.about-hero-main h1 span {
  display: inline-block;
  color: var(--accent);
}

.lead {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

body[data-page="home"] .lead {
  margin-top: 16px;
  line-height: 1.75;
}

.page-lead {
  max-width: 70ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  animation: slideUp 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms backwards;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.3), transparent 80%);
  opacity: 0;
  pointer-events: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44, 95, 139, 0.2);
}

.button-primary {
  background: linear-gradient(135deg, var(--text), rgba(27, 27, 24, 0.9));
  color: #fff8ef;
  box-shadow: 0 8px 24px rgba(27, 27, 24, 0.2);
}

.button-primary:hover {
  background: linear-gradient(135deg, rgba(27, 27, 24, 0.95), var(--text));
}

.button-secondary {
  background: rgba(44, 95, 139, 0.12);
  color: var(--blue);
  border: 1px solid rgba(44, 95, 139, 0.25);
}

.button-secondary:hover {
  background: rgba(44, 95, 139, 0.2);
  border-color: rgba(44, 95, 139, 0.4);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
}

.hero-card,
.panel,
.about-hero-side {
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(16px);
}

.hero-card h2,
.panel h3 {
  margin-top: 0;
}

.panel p,
.task-item-note,
.task-meta,
.bullet-list {
  color: var(--muted);
  line-height: 1.8;
}

.section {
  padding-top: 56px;
}

body[data-page="portfolio"] .section {
  padding-top: 22px;
}

body[data-page="learning"] .section {
  padding-top: 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.about-grid,
.cards-grid,
.task-board-grid,
.about-hero-grid {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.about-hero-grid {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: stretch;
  gap: 18px;
}

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

.two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.metric-panel {
  min-height: 220px;
}

.accent-card {
  background:
    linear-gradient(155deg, rgba(221, 107, 45, 0.18), rgba(255, 248, 239, 0.82)),
    var(--surface);
}

.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(44, 95, 139, 0.12);
  border-radius: 22px;
  background: rgba(255, 248, 239, 0.68);
  box-shadow: 0 12px 34px rgba(58, 42, 18, 0.08);
  backdrop-filter: blur(14px);
}

.portfolio-toolbar h1 {
  margin: 0;
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.portfolio-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 100%);
  padding: 8px 12px;
  border: 1px solid rgba(44, 95, 139, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.portfolio-searchbar span {
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-searchbar strong {
  color: var(--text);
  font-size: 0.95rem;
}

.portfolio-searchbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.portfolio-searchbar input::placeholder {
  color: rgba(100, 91, 78, 0.72);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-grid-admin {
  grid-template-columns: 1fr;
}

.work-card {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.work-preview {
  position: relative;
  min-height: 148px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(44, 95, 139, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(220, 232, 243, 0.5)),
    rgba(255, 255, 255, 0.6);
}

.work-photo {
  margin: 0;
  background: rgba(44, 95, 139, 0.08);
}

.work-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-window-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  background: rgba(27, 27, 24, 0.08);
}

.work-window-bar::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 18px 0 rgba(47, 107, 82, 0.65), 36px 0 rgba(44, 95, 139, 0.58);
}

.work-preview-title,
.work-preview-line,
.work-preview-card,
.work-preview-row,
.work-preview-phone,
.work-preview-mobile-row {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(44, 95, 139, 0.18);
}

.work-preview-title {
  left: 22px;
  top: 58px;
  width: 46%;
  height: 22px;
  border-radius: 12px;
  background: rgba(27, 27, 24, 0.7);
}

.work-preview-line {
  left: 22px;
  top: 96px;
  width: 72%;
  height: 12px;
}

.work-preview-line.short {
  top: 118px;
  width: 52%;
}

.work-preview-card {
  top: 56px;
  width: 34%;
  height: 58px;
  border-radius: 16px;
  background: rgba(44, 95, 139, 0.16);
}

.work-preview-card:nth-child(2) {
  left: 22px;
}

.work-preview-card:nth-child(3) {
  right: 22px;
}

.work-preview-card.wide {
  left: 22px;
  right: 22px;
  top: 126px;
  width: auto;
  height: 30px;
}

.work-preview-phone {
  left: 50%;
  top: 44px;
  width: 86px;
  height: 126px;
  transform: translateX(-50%);
  border: 4px solid rgba(27, 27, 24, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.work-preview-mobile-row {
  left: 13px;
  right: 13px;
  height: 10px;
  border-radius: 999px;
}

.work-preview-mobile-row.header {
  top: 16px;
  height: 20px;
  border-radius: 10px;
  background: rgba(27, 27, 24, 0.7);
}

.work-preview-mobile-row:nth-child(2) {
  top: 52px;
}

.work-preview-mobile-row:nth-child(3) {
  top: 73px;
}

.work-preview-mobile-row.short {
  top: 95px;
  right: 32px;
}

.work-preview-row {
  left: 22px;
  right: 22px;
  height: 18px;
  border-radius: 8px;
}

.work-preview-row:nth-child(2) {
  top: 58px;
}

.work-preview-row:nth-child(3) {
  top: 90px;
}

.work-preview-row.short {
  top: 122px;
  right: 42%;
}

.work-preview-site {
  background:
    radial-gradient(circle at 78% 28%, rgba(221, 107, 45, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(255, 248, 239, 0.92), rgba(220, 232, 243, 0.74));
}

.work-preview-ui {
  background:
    linear-gradient(135deg, rgba(238, 244, 249, 0.96), rgba(255, 248, 239, 0.72));
}

.work-preview-notes {
  background:
    linear-gradient(135deg, rgba(244, 249, 246, 0.96), rgba(255, 248, 239, 0.76));
}

.work-card-body {
  display: grid;
  gap: 10px;
}

.work-card-body h3 {
  margin-bottom: 0;
}

.work-badges,
.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-badges span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(192, 143, 53, 0.14);
  color: #7a5518;
  font-size: 0.78rem;
  font-weight: 800;
}

.work-links {
  margin-top: 4px;
}

.work-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(44, 95, 139, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.work-links a:hover,
.work-links a:focus-visible {
  border-color: rgba(44, 95, 139, 0.34);
  background: rgba(220, 232, 243, 0.48);
}

.work-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.work-details div {
  padding-top: 8px;
  border-top: 1px solid rgba(44, 95, 139, 0.12);
}

.work-details dt {
  margin-bottom: 4px;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-details dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.portfolio-empty {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(44, 95, 139, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.about-tone-card {
  background:
    linear-gradient(155deg, rgba(44, 95, 139, 0.14), rgba(255, 248, 239, 0.82)),
    var(--surface);
}

.learning-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(47, 107, 82, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(244, 249, 246, 0.82), rgba(255, 248, 239, 0.72));
  box-shadow: 0 12px 34px rgba(58, 42, 18, 0.08);
  backdrop-filter: blur(14px);
}

.learning-toolbar h1 {
  margin: 0;
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.learning-status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.learning-status-strip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(47, 107, 82, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.learning-status-strip .button {
  min-height: 36px;
}

body[data-page="learning"] .metric-panel {
  min-height: 0;
  padding: 20px;
}

body[data-page="learning"] .metric-panel h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

body[data-page="learning"] .metric-panel p:last-child {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.profile-items,
.task-list {
  display: grid;
  gap: 14px;
}

.task-item {
  display: block;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.task-item-title {
  display: block;
  margin-bottom: 6px;
}

.home-statement {
  display: grid;

  grid-template-columns:
    auto
    minmax(28px, 0.8fr)
    auto
    minmax(40px, 1.2fr)
    auto;

  align-items: center;

  width: 100%;
  max-width: 920px;

  margin-top: 34px;

  gap: clamp(8px, 1vw, 16px);
}

body[data-page="home"] .home-statement {
  margin-top: 24px;
}

/* node */
.statement-node {
  position: relative;

  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 16px 22px;

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.94),
      rgba(248,250,252,0.98)
    );

  border:
    1px solid rgba(44,95,139,0.08);

  box-shadow:
    0 6px 18px rgba(44,95,139,0.05);

  backdrop-filter: blur(12px);

  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

body[data-page="home"] .statement-node {
  padding: 12px 18px;
}

.statement-node:hover {
  transform: translateY(-2px);

  border-color:
    rgba(44,95,139,0.14);

  box-shadow:
    0 10px 24px rgba(44,95,139,0.08);
}

/* label */
.node-label {
  margin-bottom: 8px;

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.12em;

  color:
    rgba(44,95,139,0.44);
}

body[data-page="home"] .node-label {
  margin-bottom: 6px;
}

/* text */
.statement-node strong {
  font-size:
    clamp(0.84rem, 0.3vw + 0.82rem, 1rem);

  font-weight: 760;

  line-height: 1.4;

  white-space: nowrap;

  color:
    rgba(44,95,139,0.92);
}

/* flow */
.statement-flow {
  position: relative;

  height: 2px;

  overflow: hidden;
}

/* line */
.statement-flow::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 999px;

  background:
    rgba(44,95,139,0.12);
}

/* moving energy */
.flow-dot {
  position: absolute;

  top: 50%;
  left: -12px;

  width: 10px;
  height: 10px;

  border-radius: 999px;

  background:
    rgba(44,95,139,0.48);

  transform:
    translateY(-50%);

  animation:
    flowMove 2.8s linear infinite;
}

/* emphasized flow */
.statement-flow-focus::before {
  background:
    rgba(44,95,139,0.22);
}

.statement-flow-focus .flow-dot {
  background:
    rgba(44,95,139,0.72);

  animation-duration: 1.9s;
}

/* goal */
.statement-goal {
  position: relative;

  justify-self: end;

  background:
    linear-gradient(
      145deg,
      rgba(36,82,124,0.98),
      rgba(44,95,139,0.96)
    );

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 12px 28px rgba(44,95,139,0.14);

  overflow: hidden;
}

/* subtle shine */
.statement-goal::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      120deg,
      transparent 0%,
      transparent 44%,
      rgba(255,255,255,0.08) 50%,
      transparent 56%,
      transparent 100%
    );

  transform:
    translateX(-120%);

  animation:
    goalShine 6s ease-in-out infinite;
}

/* goal text */
.statement-goal .node-label {
  color:
    rgba(255,255,255,0.52);
}

.statement-goal strong {
  color:
    rgba(255,255,255,0.96);

  font-weight: 820;

  letter-spacing: 0.02em;
}

/* animations */
@keyframes flowMove {

  from {
    left: -12px;
  }

  to {
    left: calc(100% + 12px);
  }
}

@keyframes goalShine {

  0%,
  82% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

/* mobile */
@media (max-width: 720px) {

  .home-statement {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: stretch;
  }

  .statement-flow {
    width: 2px;
    height: 32px;
    justify-self: center;
  }

  .statement-flow::before {
    width: 100%;
    height: 100%;
  }

  .statement-node,
  .statement-goal {
    width: 100%;
    justify-self: stretch;
  }

  .statement-node strong {
    white-space: normal;
  }

  .flow-dot {
    top: -12px;
    left: 50%;

    transform:
      translate(-50%, 0);

    animation:
      flowVertical 2.4s linear infinite;
  }

  @keyframes flowVertical {

    from {
      top: -12px;
    }

    to {
      top: calc(100% + 12px);
    }
  }
}

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(44, 95, 139, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(44, 95, 139, 0);
  }
}

.home-statement span:last-child .statement-icon {
  display: none;
}

.home-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 40px 0 0;
}

body[data-page="home"] .home-metrics {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.home-metrics div {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(220, 232, 243, 0.3));
  border: 1px solid rgba(44, 95, 139, 0.12);
  backdrop-filter: blur(8px);
  animation: slideUp 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms backwards;
}

body[data-page="home"] .home-metrics div {
  padding: 18px;
}

body[data-page="home"] .home-metrics h5 {
  margin-bottom: 10px;
}

body[data-page="home"] .home-metrics dd {
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-metrics h5 {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-metrics dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

.about-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-focus span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(44, 95, 139, 0.1);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  animation: slideUp 600ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.about-focus span:nth-child(1) { animation-delay: 310ms; }
.about-focus span:nth-child(2) { animation-delay: 320ms; }
.about-focus span:nth-child(3) { animation-delay: 330ms; }
.about-focus span:nth-child(4) { animation-delay: 340ms; }

.about-hero-side {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(36, 95, 139, 0.08), rgba(255, 248, 239, 0.88)),
    var(--surface);
}

.about-hero-main {
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.98), rgba(220, 232, 243, 0.72)),
    var(--surface-strong);
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1px;
}

.about-focus span {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(44, 95, 139, 0.1);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.86rem;
}

.about-chips span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(44, 95, 139, 0.1);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.86rem;
}

.about-intro-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.soft-panel {
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.about-profile-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 248, 239, 0.92)),
    var(--surface);
}

.profile-items div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-items div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-items span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.profile-items strong {
  line-height: 1.8;
}

.about-inline-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(44, 95, 139, 0.12);
  color: var(--muted);
}

.about-inline-links p {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.94rem;
  font-weight: 700;
}

.about-inline-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(44, 95, 139, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.about-inline-link strong {
  color: var(--blue);
  font-size: 0.98rem;
}

.about-inline-link span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.about-inline-link:hover,
.about-inline-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(44, 95, 139, 0.28);
  background: rgba(255, 255, 255, 0.74);
}

.about-visual-card {
  position: relative;
  min-height: clamp(260px, 30vw, 320px);
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(27, 142, 243, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.72), rgba(220, 232, 243, 0.9) 58%, rgba(229, 238, 246, 0.96) 100%);
  isolation: isolate;
}

.geo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 107, 189, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 94, 139, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 84%);
}

.geo-ring {
  position: absolute;
  pointer-events: none;
}

.geo-ring {
  left: 50%;
  top: 46%;
  border: 1px solid rgba(44, 95, 139, 0.28);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.geo-ring-outer {
  width: clamp(170px, 20vw, 225px);
  height: clamp(170px, 20vw, 225px);
}

.geo-ring-middle {
  width: clamp(124px, 14vw, 160px);
  height: clamp(124px, 14vw, 160px);
}

.geo-ring-inner {
  width: clamp(86px, 9vw, 105px);
  height: clamp(86px, 9vw, 105px);
  border-color: rgba(44, 95, 139, 0.42);
}

.geo-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 32px rgba(44, 95, 139, 0.12);
}

.geo-node span,
.geo-node strong,
.geo-caption p {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
}

.geo-node-core {
  left: 50%;
  top: 46%;
  z-index: 3;
  width: clamp(88px, 10vw, 110px);
  height: clamp(88px, 10vw, 110px);
  transform: translate(-50%, -50%);
  background: linear-gradient(155deg, rgba(29, 45, 66, 0.94), rgba(55, 104, 145, 0.9));
  color: #f4f8fc;
  text-align: center;
  align-content: center;
  box-shadow:
    0 24px 42px rgba(44, 95, 139, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.geo-node-core strong {
  display: block;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.05;
}

.geo-node-signal,
.geo-node-model,
.geo-node-product,
.geo-node-decision {
  min-width: clamp(62px, 7vw, 78px);
  min-height: clamp(62px, 7vw, 78px);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--blue);
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  font-weight: 700;
}

.geo-node-signal {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) translateY(calc(-1 * clamp(86px, 9vw, 94px)));
}

.geo-node-model {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) translateX(clamp(86px, 9vw, 94px));
}

.geo-node-product {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) translateY(clamp(86px, 9vw, 94px));
  background: rgba(240, 248, 255, 0.8);
  color: #245a83;
}

.geo-node-decision {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) translateX(calc(-1 * clamp(86px, 9vw, 94px)));
}

.geo-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 10px;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.geo-caption p {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(44, 95, 139, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: var(--blue);
  font-size: 0.74rem;
  text-align: center;
}

body[data-page="about"] .page-shell {
  padding-bottom: 28px;
}

body[data-page="about"] .compact-header {
  margin-bottom: 14px;
}

body[data-page="about"] .about-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 16px;
}

body[data-page="about"] .about-hero-main,
body[data-page="about"] .about-hero-side,
body[data-page="about"] .about-profile-card,
body[data-page="about"] .about-visual-card,
body[data-page="about"] .soft-panel,
body[data-page="about"] .about-inline-link {
  border-radius: 18px;
}

body[data-page="about"] .about-hero-main {
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(245, 250, 252, 0.96), rgba(226, 238, 240, 0.84)),
    var(--surface-strong);
}

body[data-page="about"] .about-hero-main::after {
  display: none;
}

body[data-page="about"] .about-hero-main h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.7rem);
  line-height: 1.04;
}

body[data-page="about"] .lead {
  margin-top: 16px;
  line-height: 1.75;
}

body[data-page="about"] .about-chips {
  margin-top: 18px;
}

body[data-page="about"] .about-chips span {
  border-radius: 12px;
  background: rgba(47, 107, 82, 0.1);
  color: var(--green);
}

body[data-page="about"] .about-intro-blocks {
  gap: 12px;
  margin-top: 18px;
}

body[data-page="about"] .soft-panel {
  padding: 20px;
  background: rgba(255, 255, 255, 0.64);
}

body[data-page="about"] .about-inline-links {
  margin-top: 14px;
  padding-top: 14px;
}

body[data-page="about"] .about-hero-side {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="about"] .about-profile-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(244, 249, 246, 0.92), rgba(255, 248, 239, 0.72)),
    var(--surface);
}

body[data-page="about"] .profile-items {
  gap: 10px;
}

body[data-page="about"] .profile-items div {
  padding-bottom: 10px;
}

body[data-page="about"] .profile-items span {
  margin-bottom: 4px;
}

body[data-page="about"] .profile-items strong {
  line-height: 1.55;
}

body[data-page="about"] .about-visual-card {
  min-height: 220px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.8), rgba(224, 238, 234, 0.94) 64%, rgba(211, 228, 229, 0.98) 100%);
}

body[data-page="about"] .geo-ring-outer {
  width: clamp(142px, 16vw, 180px);
  height: clamp(142px, 16vw, 180px);
}

body[data-page="about"] .geo-ring-middle {
  width: clamp(104px, 12vw, 132px);
  height: clamp(104px, 12vw, 132px);
}

body[data-page="about"] .geo-ring-inner,
body[data-page="about"] .geo-node-core {
  width: clamp(74px, 8vw, 92px);
  height: clamp(74px, 8vw, 92px);
}

body[data-page="about"] .geo-node-signal,
body[data-page="about"] .geo-node-model,
body[data-page="about"] .geo-node-product,
body[data-page="about"] .geo-node-decision {
  min-width: 56px;
  min-height: 56px;
  font-size: 0.72rem;
}

body[data-page="about"] .geo-node-signal {
  transform: translate(-50%, -50%) translateY(-70px);
}

body[data-page="about"] .geo-node-model {
  transform: translate(-50%, -50%) translateX(70px);
}

body[data-page="about"] .geo-node-product {
  transform: translate(-50%, -50%) translateY(70px);
}

body[data-page="about"] .geo-node-decision {
  transform: translate(-50%, -50%) translateX(-70px);
}

body[data-page="about"] .geo-caption {
  bottom: 8px;
}

.task-form label {
  display: block;
  margin: 0 0 12px;
}

.task-board-grid {
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
}

.learning-split-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: start;
}

.learning-public-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.admin-panel,
.user-preview-column {
  display: grid;
  gap: 18px;
}

.panel-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading-row h2,
.task-insight-panel h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.admin-task-area {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(47, 107, 82, 0.12);
}

.preview-task-list .task-item {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 249, 246, 0.72));
}

.admin-export-panel {
  display: grid;
  gap: 12px;
}

.admin-export-panel p {
  margin: 0;
}

.admin-save-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.88rem;
}

.task-export-output {
  width: 100%;
  min-height: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(27, 27, 24, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  resize: vertical;
}

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

.task-insight-panel h3 {
  margin-bottom: 0;
}

.task-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.task-counts div {
  padding: 12px;
  border: 1px solid rgba(47, 107, 82, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.task-counts span,
.task-counts small {
  display: block;
}

.task-counts span {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.task-counts small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-progress-list {
  display: grid;
  gap: 14px;
}

.task-progress-row {
  display: grid;
  gap: 8px;
}

.task-progress-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.task-progress-track {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(44, 95, 139, 0.1);
}

.task-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 220ms ease;
}

.task-progress-todo {
  background: #c08f35;
}

.task-progress-active {
  background: var(--accent);
}

.task-progress-done {
  background: var(--green);
}

.task-insight-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.task-form {
  display: grid;
  gap: 16px;
}

.task-form input,
.task-form textarea,
.task-form select {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(27, 27, 24, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.task-form textarea {
  resize: vertical;
}

.form-actions,
.task-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.task-list-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.task-item {
  position: relative;
  overflow: hidden;
}

.task-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent);
}

.task-item[data-status="完了"]::before {
  background: var(--green);
}

.task-item[data-status="これから"]::before {
  background: #c08f35;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.task-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 107, 82, 0.1);
  color: var(--text);
  font-weight: 700;
}

.task-item-note {
  margin: 0;
}

.task-edit-button,
.task-delete-button {
  justify-self: start;
  margin-top: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(44, 95, 139, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.task-edit-button:hover,
.task-edit-button:focus-visible,
.task-delete-button:hover,
.task-delete-button:focus-visible {
  color: var(--accent-deep);
  border-color: rgba(140, 61, 19, 0.22);
}

.empty-state {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

/* Home Selector Card */
.home-selector-card {
  position: relative;
  overflow: hidden;
  animation: slideInRight 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-page="home"] .hero-copy,
body[data-page="home"] .home-selector-card {
  padding: clamp(24px, 3vw, 34px);
}

body[data-page="home"] .home-selector-card h2 {
  margin-bottom: 18px;
}

.home-selector-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(44, 95, 139, 0.15), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.selector-tabs {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

body[data-page="home"] .selector-tabs {
  gap: 10px;
}

.selector-tab {
  display: block;
  padding: 20px;
  border: 1px solid rgba(44, 95, 139, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 239, 0.85));
  backdrop-filter: blur(10px);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(44, 95, 139, 0.06);
}

body[data-page="home"] .selector-tab {
  padding: 14px 16px;
}

.selector-tab:hover {
  transform: translateX(8px);
  border-color: rgba(44, 95, 139, 0.25);
  box-shadow: 0 12px 32px rgba(44, 95, 139, 0.12);
}

.selector-tab.is-active {
  background: linear-gradient(135deg, rgba(44, 95, 139, 0.18), rgba(220, 232, 243, 0.88));
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(44, 95, 139, 0.18);
}

.tab-number {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

body[data-page="home"] .tab-number {
  margin-bottom: 4px;
}

.selector-tab strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text);
}

body[data-page="home"] .selector-tab strong {
  margin-bottom: 4px;
}

.selector-tab p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.selector-arrow {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}


@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .three-grid,
  .portfolio-grid,
  .two-grid,
  .task-board-grid,
  .learning-split-grid,
  .learning-public-grid,
  .about-hero-grid,
  .about-intro-blocks {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .page-hero,
  .hero-card,
  .panel,
  .about-hero-main,
  .about-hero-side {
    border-radius: 24px;
  }

  .home-metrics {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-metrics {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .portfolio-searchbar {
    min-width: 0;
  }

  .learning-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .learning-status-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    --shell-side-gap: 20px;
    width: min(100%, calc(100% - var(--shell-side-gap)));
    padding-top: 14px;
  }

  .topbar,
  .task-list-header,
  .panel-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    border-radius: 26px;
  }

  .hero-copy,
  .page-hero,
  .hero-card,
  .panel,
  .about-hero-main,
  .about-hero-side {
    padding: 22px;
  }

  .hero h1,
  .page-hero h1,
  .about-hero-main h1 {
    font-size: clamp(2.4rem, 13vw, 3.9rem);
  }

  .section {
    padding-top: 42px;
  }

  .button {
    width: 100%;
  }

  .about-chips span {
    width: 100%;
    justify-content: center;
  }

  .about-inline-links {
    grid-template-columns: 1fr;
  }

  .about-visual-card {
    min-height: 300px;
  }
}

@media (min-width: 1440px) {
  :root {
    --shell-max-width: 1360px;
    --shell-side-gap: 56px;
  }

  .hero-grid {
    gap: 32px;
  }

  body[data-page="home"] .hero-grid {
    grid-template-columns: 1.28fr 0.92fr;
  }

  body[data-page="home"] .hero-copy,
  body[data-page="home"] .home-selector-card {
    padding: clamp(32px, 2.5vw, 44px);
  }

  body[data-page="home"] .hero h1 {
    font-size: clamp(3.2rem, 4vw, 5rem);
  }

  body[data-page="home"] .lead {
    max-width: 70ch;
    font-size: 1.04rem;
  }

  body[data-page="home"] .home-statement {
    max-width: 100%;
  }

  body[data-page="home"] .selector-tabs {
    gap: 14px;
  }
}

@media (min-width: 1800px) {
  :root {
    --shell-max-width: 1520px;
    --shell-side-gap: 72px;
  }

  body[data-page="home"] .hero h1 {
    font-size: clamp(3.4rem, 3.6vw, 5.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
