
/* ─────────────────────────────────────────────────────────
   MINA KUMAGAI — Work Detail Page
   Same token system as portfolio index
   ───────────────────────────────────────────────────────── */

:root {
  --paper:    #F7F4EF;
  --paper-2:  #F1ECE3;
  --ink:      #1C1C1A;
  --muted:    #8C8880;
  --line:     #E0DAD2;
  --ink-soft: #4A4845;

  --max:      1320px;
  --gutter:   clamp(24px, 6vw, 96px);

  --serif:    "Cormorant Garamond", "Times New Roman", serif;
  --serif-jp: "Noto Serif JP", serif;
  --sans-jp:  "Noto Sans JP", system-ui, sans-serif;

  --ease-out:  cubic-bezier(.22, .61, .36, 1);
  --ease-deep: cubic-bezier(.66, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-jp);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .5s var(--ease-out), border-color .5s, padding .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247,244,239,0.88);
  backdrop-filter: saturate(120%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding .5s var(--ease-out);
}
.site-header.scrolled .header-inner { padding-top: 18px; padding-bottom: 18px; }
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 6px;
}
.brand .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand .role {
  font-family: var(--sans-jp);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans-jp);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.nav-back:hover { color: var(--ink); }
.nav-back .arr { transition: transform .35s var(--ease-out); }
.nav-back:hover .arr { transform: translateX(-4px); }

/* ── Hero ── */
.detail-hero {
  padding: clamp(120px, 16vh, 180px) 0 0;
  background: var(--paper);
}
.detail-hero-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) .1s forwards;
}
.detail-eyebrow .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans-jp);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.detail-eyebrow .back-link:hover { color: var(--ink); }
.detail-eyebrow .sep { color: var(--line); }
.detail-eyebrow .cat {
  font-family: var(--sans-jp);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-title-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) .2s forwards;
}
.detail-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0;
}
.detail-title em { font-style: italic; }
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}
.detail-meta .item { display: flex; flex-direction: column; gap: 3px; }
.detail-meta .item .l {
  font-family: var(--sans-jp);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-meta .item .v {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.detail-meta .item .v a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  font-family: var(--sans-jp);
  font-size: 12px;
  transition: text-decoration-color .3s;
}
.detail-meta .item .v a:hover { text-decoration-color: var(--ink); }

@media (max-width: 760px) {
  .detail-title-block { grid-template-columns: 1fr; gap: 24px; }
  .detail-meta { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 20px; }
}

/* ── Hero Image ── */
.detail-hero-img {
  margin-top: clamp(40px, 5vw, 72px);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) .4s forwards;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans-jp);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* ── Body wrap ── */
.detail-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
}

/* ── Section blocks ── */
.detail-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(52px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.detail-section:first-child { border-top: 0; padding-top: 0; }

.section-label {
  padding-top: 4px;
}
.section-label .num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-label .title-en {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.section-label .title-jp {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
}

.section-content {}
.section-content p {
  font-family: var(--sans-jp);
  font-size: 14.5px;
  line-height: 2.4;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 1.6em;
}
.section-content p:last-child { margin-bottom: 0; }
.section-content strong {
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 0.4em;
}

/* highlight quote */
.section-content blockquote {
  margin: 2em 0;
  padding: 20px 28px;
  border-left: 2px solid var(--ink);
  background: var(--paper-2);
  border-radius: 0 4px 4px 0;
}
.section-content blockquote p {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.1em;
}

/* point list */
.point-list {
  list-style: none;
  margin: 1.2em 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.point-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-family: var(--sans-jp);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.point-list li::before {
  content: "—";
  font-family: var(--serif);
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .detail-section { grid-template-columns: 1fr; gap: 20px; }
  .section-label { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
  .section-label .num { margin-bottom: 0; }
}

/* ── Screenshots ── */
.screenshots-section {
  padding: clamp(52px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.screenshots-label {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.screenshots-label .title-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 36px);
  color: var(--ink);
}
.screenshots-label .title-jp {
  font-family: var(--serif-jp);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* PC screenshots: 2列・切り抜かず画像の高さに合わせる */
.shots-pc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(16px, 2vw, 28px);
}
.shot-wrap {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.shot-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s var(--ease-out);
}
.shot-wrap:hover img { transform: scale(1.02); }

/* 全体ショット: 横幅いっぱいで大きく */
.shots-full {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}
.shot-full {
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.shot-full img {
  width: 100%;
  height: auto;
  display: block;
}
.shot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans-jp);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .shots-pc { grid-template-columns: 1fr; }
}

/* ── Learning ── */
.learning-section {
  padding: clamp(52px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.learning-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 4vw, 72px);
}
@media (max-width: 860px) {
  .learning-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Next work ── */
.next-work {
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.next-label {
  font-family: var(--sans-jp);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 28px;
}
.next-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--ink);
  position: relative;
  padding-bottom: 12px;
  transition: gap .4s var(--ease-out);
}
.next-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--line);
  transform-origin: left;
  transition: background .4s;
}
.next-link:hover::after { background: var(--ink); }
.next-link:hover { gap: 30px; }
.next-link .arr { font-style: normal; font-size: 0.6em; }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(247,244,239,0.6);
  border-top: 1px solid rgba(247,244,239,0.12);
  padding: 44px var(--gutter);
}
.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner .fname {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.footer-inner .copy {
  font-family: var(--sans-jp);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.45);
}
.to-top {
  font-family: var(--sans-jp);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.7);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .3s;
}
.to-top:hover { color: var(--paper); }
.to-top .up { transition: transform .4s var(--ease-out); }
.to-top:hover .up { transform: translateY(-3px); }

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, [style*="animation"] { opacity:1!important; transform:none!important; animation:none!important; }
}

/* ── Markdownで書かれたセクション本文の箇条書きを point-list 風に ── */
.section-content ul {
  list-style: none;
  margin: 1.2em 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-content ul li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-family: var(--sans-jp);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.section-content ul li::before {
  content: "—";
  font-family: var(--serif);
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
}
