/* ==========================================================================
   Yoshi Travel Films — main.css
   共有スタイルシート。デザインソース: top-editorial-mockup.html (v2 承認版)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-base: 'Overpass', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --bg: #ffffff;
  --text: #1a1a1a;
  --meta: #8a8a8a;
  --meta-light: #a6a6a6;
  --rule: #e9e9e9;
  --hero-bg: #0a0605;

  /* Hybrid palette — v3 "Window Seat" */
  --cabin: #10161a;
  --cabin-2: #141a1d;
  --cabin-line: #27313a;
  --cream: #f2ece2;
  --cream-mute: #8c9aa0;
  --coral-on-light: #c96f56;
  --coral-on-dark: #e0917a;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.meta,
nav,
.filter-bar button {
  font-family: var(--font-base);
}

em {
  font-style: italic;
  font-weight: 400;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 52px;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 30px 52px 26px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header .logo {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  font-size: 14px;
  letter-spacing: .06em;
  color: #7a7a7a;
  display: flex;
  gap: 22px;
}

.site-header nav a {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8a8a;
  text-decoration: none;
  margin-left: 26px;
  transition: color .15s;
}

.site-header nav a:hover {
  color: var(--text);
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
}

/* ── Header: dark variant (Home hero bookend, Contact page) ── */
.site-header--dark {
  background: var(--cabin);
  /* ダーク帯は全幅に(コンテンツは1200pxグリッドに揃えたまま) */
  max-width: none;
  padding-left: max(52px, calc((100% - 1200px) / 2 + 52px));
  padding-right: max(52px, calc((100% - 1200px) / 2 + 52px));
}


.site-header--dark .logo {
  color: var(--cream);
}

.site-header--dark nav a {
  color: var(--cream-mute);
}

.site-header--dark nav a:hover {
  color: var(--cream);
}

.site-header--dark nav a[aria-current="page"] {
  color: var(--cream);
}

/* ── Footer ── */
.site-footer {
  font-family: var(--font-base);
  padding: 28px 52px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--meta-light);
  letter-spacing: .04em;
  border-top: 0.5px solid var(--rule);
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer .social {
  display: flex;
  gap: 20px;
}

.site-footer .social a {
  color: var(--meta-light);
  transition: color .15s;
}

.site-footer .social a:hover {
  color: var(--text);
}

/* ── Footer: dark variant (dusk bookend) ── */
.site-footer--dark {
  background: var(--cabin-2);
  color: var(--cream-mute);
  border-top: 0.5px solid var(--cabin-line);
  max-width: none;
  margin-top: 0;
}

.site-footer--dark .wrap-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.site-footer--dark .social a {
  color: var(--cream-mute);
}

.site-footer--dark .social a:hover {
  color: var(--cream);
}

/* ── Hero (Top only) — 窓のアートワークを白の上に置く(Okuyamaのギャラリー的余白) ── */
.hero {
  position: relative;
  background: var(--bg);
  padding: 56px 52px 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero .window-frame {
  max-height: 68vh;
  width: auto;
  max-width: 100%;
}

.hero .tagline {
  margin-top: 44px;
  font-size: 42px;
  line-height: 1.25;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -.005em;
  max-width: 640px;
}

.hero .tagline em {
  color: var(--text);
}

.hero .sub-label {
  font-family: var(--font-base);
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: .22em;
  color: #a6a6a6;
}

/* ── Statement excerpt (Top) ── */
.statement-excerpt {
  padding: 86px 52px 68px;
  max-width: 1200px;
  margin: 0 auto;
}

.statement-excerpt p.lead {
  max-width: 720px;
  font-size: 34px;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: -.005em;
}

.statement-excerpt p.lead em,
.about-statement p em {
  color: var(--text);
}

.statement-excerpt p.jp {
  font-family: var(--font-base);
  margin-top: 26px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--meta);
}

/* ── Selected works / grid section ── */
.works-section {
  padding: 0 52px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.works-section-head {
  font-family: var(--font-base);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
  padding: 0 4px;
}

.works-section-head .label {
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--meta);
}

.works-section-head .view-all {
  font-size: 13px;
  color: var(--text);
  border-bottom: 0.5px solid var(--text);
  padding-bottom: 3px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 52px 34px;
}

.works-grid.works-grid--3col {
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.work-card {
  cursor: pointer;
  outline: none;
}

.work-card:focus-visible .thumb-wrap {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eeeeee;
}

.thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}

.work-card:hover .thumb-wrap img,
.work-card:focus-visible .thumb-wrap img {
  opacity: .82;
}

.work-card .t {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 400;
  font-family: var(--font-base);
}

.work-card .y {
  margin-top: 4px;
  font-size: 13px;
  color: var(--meta-light);
  font-family: var(--font-base);
  letter-spacing: .04em;
}

/* ── Contact CTA (Top) — dusk bookend, machine dark ── */
.contact-cta {
  background: #fafafa;
  border-top: 0.5px solid #efefef;
  padding: 76px 52px;
  text-align: center;
}

.contact-cta .wrap-cta {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-cta .headline {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--text);
}

.contact-cta .headline em {
  color: var(--text);
}

.contact-cta .email {
  font-family: var(--font-base);
  margin-top: 22px;
  font-size: 16px;
  color: #8a8a8a;
}

.contact-cta .email a {
  color: var(--text);
}

.contact-cta .cta-link {
  font-family: var(--font-base);
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 0.5px solid var(--text);
  padding-bottom: 2px;
}

/* ── Page header (Works / About / Contact) ── */
.page-head {
  padding: 64px 52px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-head h1 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.page-head .sub {
  font-family: var(--font-base);
  margin-top: 16px;
  font-size: 16px;
  color: var(--meta);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Filter bar (Works) ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 0 52px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.filter-bar button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--meta);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.filter-bar button:hover,
.filter-bar button[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ── Works page grid section ── */
.works-page-grid {
  padding: 0 52px 96px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lightbox.is-open {
  display: flex;
}

#lightbox-inner {
  position: relative;
  width: 90vw;
  max-width: 1200px;
}

#lightbox-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

#lightbox-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  font-family: var(--font-base);
  transition: opacity .15s;
}

#lightbox-close:hover {
  opacity: .7;
}

body.lb-open {
  overflow: hidden;
}

/* ── About page ── */
.about-body {
  padding: 0 52px 96px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
}

.about-body .portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-statement p {
  font-size: 22px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: -.005em;
  margin-bottom: 26px;
}

.about-statement .jp-block {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 0.5px solid var(--rule);
}

.about-statement .jp-block p {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  color: #5c5c5c;
  margin-bottom: 22px;
  letter-spacing: 0;
}

.collaborators {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 0.5px solid var(--rule);
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--meta);
  letter-spacing: .02em;
}

.collaborators .label {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--meta-light);
  margin-bottom: 12px;
}

/* ── Contact page — 白ベース(Okuyama回帰) ── */

.contact-body {
  padding: 0 52px 96px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-body h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--text);
}

.contact-body h1 em {
  color: var(--text);
}

.contact-body .lead {
  font-family: var(--font-base);
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.9;
  color: #8a8a8a;
}

.contact-body .lead .jp {
  display: block;
  margin-top: 10px;
}

.contact-body .reply-note {
  margin-top: 8px;
}

.contact-body .direct-email {
  margin-top: 28px;
  font-family: var(--font-base);
  font-size: 16px;
}

.contact-body .direct-email a {
  color: var(--text);
  border-bottom: 0.5px solid var(--text);
  padding-bottom: 2px;
}

.contact-form {
  margin-top: 56px;
}

.form-row {
  margin-bottom: 32px;
}

.form-row label {
  display: block;
  font-family: var(--font-base);
  font-size: 13px;
  letter-spacing: .06em;
  color: #8a8a8a;
  margin-bottom: 10px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #dcdcdc;
  padding: 10px 2px;
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--text);
  transition: border-color .15s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #a6a6a6;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--text);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c847a' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
}

.form-row select option {
  color: #1a1a1a;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-base);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--text);
  transition: opacity .15s;
}

.submit-btn:hover {
  opacity: .7;
}

/* ── Lab page ── */
.lab-lead {
  padding: 0 52px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.lab-lead p {
  max-width: 720px;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: -.005em;
  margin-bottom: 18px;
}

.lab-lead p.jp {
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.9;
  color: var(--meta);
}

.lab-grid {
  padding: 0 52px 96px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.lab-card {
  position: relative;
}

.lab-card .lab-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #10161a;
}

.lab-card .lab-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-card .lab-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lab-card .lab-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16, 22, 26, .28);
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 0;
}

.lab-card .lab-play .play-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(242, 236, 226, .7);
  color: #f2ece2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .15s, color .15s;
}

.lab-card .lab-play:hover .play-icon {
  background: rgba(242, 236, 226, .92);
  color: #10161a;
}

.lab-card .lab-play .play-label {
  font-family: var(--font-base);
  font-size: 12px;
  letter-spacing: .12em;
  color: #f2ece2;
}

.lab-card .lab-title {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 400;
  font-family: var(--font-base);
}

/* ── Photographs page (skeleton) ── */
.photo-grid {
  padding: 0 52px 96px;
  max-width: 1200px;
  margin: 0 auto;
  columns: 3;
  column-gap: 34px;
}

.photo-grid figure {
  break-inside: avoid;
  margin-bottom: 34px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .site-header,
  .site-footer,
  .statement-excerpt,
  .works-section,
  .contact-cta,
  .page-head,
  .filter-bar,
  .works-page-grid,
  .about-body,
  .contact-body,
  .lab-lead,
  .lab-grid,
  .photo-grid,
  .map-lead,
  .map-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero .tagline {
    font-size: 36px;
  }

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

  .about-body {
    grid-template-columns: 280px 1fr;
    gap: 44px;
  }

  .photo-grid {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-header nav {
    font-size: 13px;
    gap: 16px;
  }

  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer--dark .wrap-footer {
    padding-left: 24px;
    padding-right: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 40px 24px 56px;
  }

  .hero .window-frame {
    max-height: 52vh;
  }

  .hero .tagline {
    margin-top: 32px;
    font-size: 28px;
  }

  .statement-excerpt {
    padding: 56px 24px 48px;
  }

  .statement-excerpt p.lead {
    font-size: 26px;
  }

  .works-section,
  .works-page-grid,
  .about-body,
  .contact-body,
  .page-head,
  .filter-bar,
  .contact-cta,
  .lab-lead,
  .lab-grid,
  .photo-grid,
  .map-lead,
  .map-section {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .photo-grid {
    columns: 1;
  }

  .works-grid,
  .works-grid.works-grid--3col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-cta {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .contact-cta .headline {
    font-size: 30px;
  }

  .page-head {
    padding: 48px 24px 36px;
  }

  .page-head h1 {
    font-size: 38px;
  }

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

  .about-body .portrait img {
    aspect-ratio: 16 / 10;
  }

  .about-statement p {
    font-size: 19px;
  }

  .contact-body h1 {
    font-size: 34px;
  }

  #lightbox-inner {
    width: 94vw;
  }

  #lightbox-close {
    top: -36px;
    font-size: 26px;
  }
}

/* ── CV page(Okuyama的: 年号+内容の静かな行組み) ── */
.cv-body {
  padding: 0 52px 96px;
  max-width: 760px;
  margin: 0 auto;
}

.cv-intro { margin-bottom: 56px; }

.cv-name {
  font-size: 24px;
  font-weight: 400;
}

.cv-name .jp {
  font-size: 16px;
  color: #8a8a8a;
  margin-left: 12px;
}

.cv-role {
  font-family: var(--font-base);
  margin-top: 10px;
  font-size: 14px;
  color: #8a8a8a;
}

.cv-line {
  font-family: var(--font-base);
  margin-top: 6px;
  font-size: 14px;
  color: #8a8a8a;
}

.cv-section { margin-bottom: 48px; }

.cv-section h2 {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a6a6a6;
  border-bottom: 0.5px solid #e9e9e9;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.cv-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 7px 0;
}

.cv-row dt {
  font-family: var(--font-base);
  font-size: 13px;
  color: #a6a6a6;
}

.cv-row dd {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

.cv-clients {
  font-size: 16px;
  line-height: 1.9;
  font-weight: 300;
}

.cv-clients a {
  color: var(--text);
  border-bottom: 0.5px solid var(--text);
  padding-bottom: 2px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .cv-body { padding: 0 24px 72px; }
  .cv-row { grid-template-columns: 64px 1fr; }
}


/* ── Top: 全面写真(Okuyama) ── */
.top-photo img {
  display: block;
  width: 100%;
  height: calc(100vh - 64px);
  height: calc(100svh - 64px);
  object-fit: cover;
}

/* ── Map page ── */
.map-lead {
  padding: 0 52px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.map-lead p {
  max-width: 720px;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: -.005em;
  margin-bottom: 18px;
}

.map-lead p.jp {
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.9;
  color: var(--meta);
}

.map-section {
  padding: 0 52px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.map-section h2 {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a6a6a6;
  margin-bottom: 22px;
}

.map-frame {
  position: relative;
  width: 100%;
  background: var(--bg);
}

.map-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.map-frame--japan {
  max-width: 560px;
}

.map-world-wrap {
  margin-bottom: 72px;
}

.map-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
}

.map-dot-label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-base);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--text);
  background: var(--bg);
  border: 0.5px solid var(--rule);
  padding: 3px 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}

.map-dot:hover .map-dot-label,
.map-dot:focus-visible .map-dot-label {
  opacity: 1;
}

@media (hover: none) {
  .map-dot-label {
    display: none;
  }
}

/* ── Motion(Okuyama参照: ゆっくり滑らかな .6s ease) ── */

/* ページロードのフェード(JS有効時のみ。無効環境では常に表示) */
html.js body {
  opacity: 0;
  transition: opacity .6s ease;
}
html.js.is-ready body {
  opacity: 1;
}

/* カードの入場: CSSのみ(確実・軽量)。ロード時に順に浮かび上がる */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.work-card, .lab-card {
  animation: riseIn .7s cubic-bezier(.22,1,.36,1) both;
}
.work-card:nth-child(2), .lab-card:nth-child(2) { animation-delay: .06s; }
.work-card:nth-child(3), .lab-card:nth-child(3) { animation-delay: .12s; }
.work-card:nth-child(4), .lab-card:nth-child(4) { animation-delay: .18s; }
.work-card:nth-child(5), .lab-card:nth-child(5) { animation-delay: .24s; }
.work-card:nth-child(6), .lab-card:nth-child(6) { animation-delay: .30s; }
.work-card:nth-child(n+7) { animation-delay: .36s; }

/* 静的セクション用スクロールリビール(.revealを明示的に付けた要素のみ) */
html.js:not(.no-reveal) .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
html.js:not(.no-reveal) .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* サムネイルホバー: ゆっくりズーム */
.work-card .thumb-wrap,
.lab-media {
  overflow: hidden;
}
.work-card .thumb-wrap img,
.lab-media img {
  transition: transform .6s ease, opacity .6s ease;
}
.work-card:hover .thumb-wrap img,
.lab-media:hover img {
  transform: scale(1.03);
}

/* ナビ・リンクの色遷移をそろえる */
.site-header nav a,
.site-footer a {
  transition: color .3s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.js body { opacity: 1; transition: none; }
  .work-card .thumb-wrap img, .lab-media img { transition: none; }
  .work-card, .lab-card { animation: none; }
}
