:root {
  color-scheme: light;
  --ink: #17191c;
  --muted: #656a70;
  --paper: #fff;
  --warm: #fff;
  --cool: #f6f6f6;
  --line: #e1e1e1;
  --accent: #555;
  --container: 1160px;
  --shadow: 0 24px 70px rgba(20, 23, 27, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.75;
}

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

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

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; font: inherit; }

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

h1, h2, h3 { letter-spacing: -0.025em; }

.portfolio-container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.showroom-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 74px;
  padding: 12px max(24px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(248, 248, 248, 0.18);
  background: #111111;
  color: #f8f8f8;
  backdrop-filter: blur(18px);
}

.showroom-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 160px;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.showroom-brand-wordmark { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.showroom-brand-copy { display: inline; line-height: 1; }
.showroom-brand-copy small { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }

.tk-breadcrumb {
  border-bottom: 1px solid #d5d5d1;
  color: #6b6b68;
  background: #efefed;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.tk-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 12px 0;
  list-style: none;
}
.tk-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.tk-breadcrumb li + li::before { margin-right: 6px; color: #6b6b68; content: "＞"; }
.tk-breadcrumb a { color: #6b6b68; }
.tk-breadcrumb a:hover, .tk-breadcrumb a:focus-visible { color: #4f4c48; }
.tk-breadcrumb [aria-current="page"] { color: #71857a; font-weight: 600; }

.portfolio-page-header { padding: clamp(28px, 4vw, 42px) 0 clamp(28px, 4vw, 38px); border-bottom: 1px solid var(--line); background: var(--paper); }
.portfolio-page-header__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portfolio-page-header__top .eyebrow { margin-bottom: 0; }
.portfolio-count { margin: 0; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-size: 0.71rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.portfolio-page-header .eyebrow { text-transform: none; }
.portfolio-page-header h1 { max-width: 820px; margin: 14px 0 8px; font-size: clamp(34px, 4vw, 52px); line-height: 1.16; }
.keep-together { white-space: nowrap; }
.portfolio-page-header__lead { max-width: 620px; margin: 0; color: #545a60; font-size: 0.92rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 3px; font-size: 0.88rem; font-weight: 800; transition: transform 220ms ease, color 220ms ease, background 220ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover, .button-dark:focus-visible { color: var(--ink); background: transparent; }
.button-light { color: var(--ink); background: #fff; border-color: #fff; }
.button-light:hover, .button-light:focus-visible { color: #fff; background: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid currentColor; font-size: 0.88rem; font-weight: 800; }
.text-link span, .work-card__link span { transition: transform 220ms ease; }
.text-link:hover span, .text-link:focus-visible span, .work-card__link:hover span, .work-card__link:focus-visible span { transform: translate(4px, -2px); }

.works-section { padding: clamp(44px, 6vw, 70px) 0 0; background: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card { min-width: 0; }
.work-card__visual { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--cool); }
.work-card__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.work-card__visual--course img { object-position: left top; transform: scale(1.38); transform-origin: left top; }
.work-card__visual:hover, .work-card__visual:focus-visible { border-color: #b8bdc2; }
.work-card__open { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); background: rgba(255, 255, 255, 0.92); font-size: 1rem; }
.work-card__body { min-height: 0; padding: 14px 0 0; }
.work-card h3 { margin-bottom: 6px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.work-card__support { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; width: min(100%, 520px); }
.work-card__description { flex: 0 1 auto; max-width: 100%; margin: 0; color: var(--muted); font-size: 0.84rem; }
.work-card__link { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-height: 48px; margin: 0 0 20px; padding: 0 22px; border: 1px solid #222; border-radius: 3px; color: #fff; background: #222; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap; transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease; }
.work-card__link:hover, .work-card__link:focus-visible { border-color: #333; color: #fff; background: #333; }

.portfolio-cta { padding: clamp(76px, 9vw, 116px) 0; border-top: 1px solid #d3e1e6; color: #102a43; background: #e3edf0; text-align: center; }
.portfolio-cta__inner { width: min(calc(100% - 40px), 1080px); margin: 0 auto; }
.portfolio-cta__eyebrow { margin: 0 0 16px; color: #245966; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; }
.portfolio-cta h2 { margin: 0; color: #102a43; font-size: clamp(1.8rem, 3.5vw, 2.65rem); font-weight: 400; letter-spacing: 0.035em; line-height: 1.35; }
.portfolio-cta__lead { margin: 22px auto 0; color: #526d7c; line-height: 1.9; }
.portfolio-cta .button { min-height: 48px; margin-top: 30px; padding: 0 30px; border-color: #222222; border-radius: 3px; background: #222222; color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; }
.portfolio-cta .button:hover, .portfolio-cta .button:focus-visible { border-color: #333333; background: #333333; color: #fff; transform: none; }
.portfolio-cta__email { margin: 18px auto 0; color: #526d7c; line-height: 1.9; }
.portfolio-cta__email a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.portfolio-cta__email a:hover, .portfolio-cta__email a:focus-visible { color: #245966; }

.works-note { margin: 40px 0 10px; color: var(--muted); font-size: 0.75rem; }
.works-note-mobile-break { display: none; }

.tk-footer {
  padding: 34px 20px 37px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #111111;
  color: #f8f8f8;
  text-align: center;
  letter-spacing: 0.12em;
}

.tk-footer__year { display: inline-block; font-size: 0.88em; letter-spacing: 0.08em; }

.js-enabled [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-enabled [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid #3f76c5; outline-offset: 3px; }

@media (max-width: 959px) {
  .portfolio-page-header h1 { font-size: clamp(34px, 5vw, 50px); }
  .portfolio-page-header__lead { font-size: 0.92rem; }
  .work-card__body { padding: 16px 0 0; }
}

@media (max-width: 820px) {
  .showroom-header { min-height: 68px; padding: 10px 18px; }
  .showroom-brand { min-width: 0; }
  .tk-breadcrumb ol { width: min(calc(100% - 40px), var(--container)); padding: 12px 0; }
  .portfolio-container { width: min(calc(100% - 40px), var(--container)); }
  .portfolio-page-header { padding: 34px 0 36px; }
  .portfolio-page-header h1 { margin-top: 16px; font-size: clamp(32px, 5.6vw, 44px); }
  .works-section { padding: 48px 0 0; }
  .portfolio-cta__inner { margin: 0 auto; }
}

@media (max-width: 639px) {
  .showroom-brand { font-size: 1.05rem; letter-spacing: 0.08em; }
  .tk-breadcrumb ol { width: min(calc(100% - 36px), var(--container)); padding: 10px 0; }
  .portfolio-container { width: min(calc(100% - 36px), var(--container)); }
  .portfolio-page-header { padding: 28px 0 30px; }
  .portfolio-page-header h1 { margin: 14px 0 10px; font-size: clamp(30px, 7.4vw, 38px); line-height: 1.22; }
  .portfolio-page-header__lead { font-size: 0.88rem; }
  .works-section { padding: 40px 0 0; }
  .works-note-mobile-break { display: block; }
  .work-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-card__visual { aspect-ratio: 4 / 3; }
  .work-card__body { min-height: 0; padding: 16px 0 0; }
  .work-card h3 { margin-bottom: 8px; }
  .work-card__support { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .work-card__description { width: 100%; }
  .work-card h3 { font-size: 25px; }
  .portfolio-cta { padding: 72px 0; }
  .portfolio-cta__inner { width: min(calc(100% - 36px), var(--container)); margin: 0 auto; }
  .portfolio-cta h2 { font-size: clamp(1.55rem, 7vw, 1.85rem); }
  .portfolio-cta__lead br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js-enabled [data-reveal] { opacity: 1; transform: none; }
}
