:root {
  color-scheme: light;
  --ink: #111114;
  --muted: #68686f;
  --soft: #f5f5f7;
  --line: #dedee3;
  --blue: #141480;
  --blue-soft: #ececff;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
}

body.viewer-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.brand {
  font-size: 15px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.en-note {
  display: block;
  margin: 7px 0 0;
  color: #8a8a92;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.en-note.block {
  margin-top: 10px;
}

section {
  padding: 86px clamp(24px, 6vw, 92px);
  scroll-margin-top: 84px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

.first-section,
.case-section {
  background: var(--soft);
}

.first-section {
  min-height: calc(100vh - 64px);
  padding-top: 70px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.profile-tabs {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-button {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.tab-button:hover,
.tab-button.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.tab-panel {
  display: none;
  min-height: 360px;
  padding: clamp(24px, 4.2vw, 46px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.tab-panel.is-active {
  display: grid;
  gap: 24px;
}

.panel-main h3 {
  max-width: 900px;
  color: var(--blue);
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.12;
}

.panel-main p,
.panel-side,
.timeline p,
.work-item p,
.case-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.panel-side {
  display: grid;
  gap: 8px;
  align-self: end;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.panel-side strong {
  color: var(--ink);
  font-size: 22px;
}

.contact-panel {
  display: grid;
  align-content: center;
  gap: 28px;
  min-height: 260px;
}

.contact-panel h3 {
  max-width: 720px;
  color: var(--blue);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.15;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.timeline,
.skill-grid {
  display: grid;
  gap: 18px;
}

.timeline article,
.skill-grid article,
.work-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.timeline article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.school-mark {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #141480, #b8bfd8) border-box;
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 18px 36px rgba(20, 20, 128, 0.1);
}

.school-mark.szu {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #1c6b4f, #c8ded5) border-box;
  color: #1c6b4f;
}

.tool-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

.tool-icons img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

time {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.work-stack {
  display: grid;
  gap: 18px;
}

.work-stack.compact {
  gap: 14px;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}

.work-meta h3,
.work-item h3 {
  margin-bottom: 8px;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
  width: min(300px, 34vw);
  align-content: start;
}

.brand-logo-list img {
  display: block;
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.case-jump {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  margin-top: 30px;
  padding-top: 34px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.case-jump-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.case-jump-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.case-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.case-link-card {
  display: grid;
  grid-template-rows: 132px auto auto auto auto;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 20, 128, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.case-link-card img {
  width: 100%;
  height: 132px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  background: var(--soft);
}

.case-link-card span {
  padding: 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.case-link-card strong {
  padding: 0 8px;
  font-size: 23px;
  line-height: 1.08;
}

.case-link-card p {
  margin: 0;
  padding: 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.case-link-card .en-note {
  font-size: 12px;
  line-height: 1.4;
}

.case-detail-list {
  display: grid;
  gap: 28px;
}

.case-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 20px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}

.case-visual {
  margin: 0;
  min-height: 430px;
  border-radius: 20px;
  background: #e8e8ee;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.aumuca-visual {
  background-color: #f3efe3;
}

.pawsono-visual {
  background-color: #eaf4dd;
}

.fnl-visual {
  background-color: #ffe3df;
}

.illustration-visual {
  background-color: #e8f1ff;
}

.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: top;
}

.case-copy {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 46px);
}

.case-type {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-copy h3 {
  max-width: 520px;
  font-size: clamp(27px, 3.2vw, 44px);
  line-height: 1.12;
}

.case-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 10px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.case-points li::before {
  content: "— ";
  color: var(--blue);
}

.case-action {
  display: inline-grid;
  width: fit-content;
  gap: 2px;
  margin-top: 16px;
  padding: 11px 16px;
  border: 1px solid rgba(20, 20, 128, 0.16);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  text-align: left;
}

.case-action span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
}

.case-action:hover {
  transform: translateY(-1px);
}

.case-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(245, 245, 247, 0.96);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.case-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(24px);
}

.case-viewer-bar strong,
.case-viewer-bar span {
  display: block;
}

.case-viewer-bar strong {
  font-size: 15px;
}

.case-viewer-bar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.viewer-close {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.case-viewer-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 4vw, 44px);
}

.case-viewer-scroll img {
  display: block;
  width: min(100%, 1280px);
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.16);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(24px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 18px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .profile-hero,
  .case-jump,
  .profile-tabs,
  .case-detail {
    grid-template-columns: 1fr;
  }

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

  .tab-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tab-button {
    flex: 0 0 auto;
    text-align: center;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .brand-logo-list {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 620px) {
  .nav {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lead {
    font-size: 16px;
  }

  .case-link-grid {
    grid-template-columns: 1fr;
  }

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

  .school-mark {
    width: 74px;
  }

  .tool-icons img {
    width: 44px;
    height: 44px;
  }

  .case-visual {
    min-height: 300px;
  }

  .footer {
    flex-direction: column;
  }
}
