/* 1920×1080 の舞台を画面サイズに合わせて拡大・縮小する */
:root {
  --ink: #1f2328;
  --sub: #4b525a;
  --paper: #ffffff;
  --line: #e3e6ea;
  --accent: #2f6fb0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  background: #111;
  overflow: hidden;
  font-family: "BIZ UDPGothic", "BIZ UDゴシック", "Meiryo", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
}

#viewport {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  flex: none;
  transform-origin: center center;
  background: var(--paper);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  background: var(--paper);
}
.slide.active { opacity: 1; visibility: visible; }

/* ---------- 職種のスライド ---------- */
.job .photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background-size: cover;
  background-position: center;
}
.job .text {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 60%;
  padding: 90px 80px 90px 110px;
  display: flex;
  flex-direction: column;
}
.job .bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 26px;
  background: var(--accent);
}
.meta {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 34px;
}
.pill {
  background: var(--accent);
  color: #fff;
  padding: 10px 30px;
  border-radius: 999px;
  font-weight: bold;
}
.count { color: var(--sub); font-weight: bold; letter-spacing: .05em; }
.back {
  margin-left: auto;
  font: inherit;
  font-size: 32px;
  font-weight: bold;
  color: var(--accent);
  background: #fff;
  border: 4px solid var(--accent);
  border-radius: 999px;
  padding: 8px 30px;
  cursor: pointer;
}
.back::before { content: "≡ "; }
.back:hover { background: var(--accent); color: #fff; }
body.portrait .back { font-size: 38px; padding: 12px 34px; }

.job h2 {
  margin-top: 44px;
  font-size: 96px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--ink);
}
.job .desc {
  margin-top: 40px;
  font-size: 50px;
  line-height: 1.5;
  font-weight: bold;
  color: var(--ink);
  padding-left: 30px;
  border-left: 10px solid var(--accent);
  text-wrap: pretty;
}
.job ol {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.job li {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 44px;
  line-height: 1.35;
  text-wrap: pretty;
}
.job li .no {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tasks-label {
  margin-top: 50px;
  margin-bottom: 22px;
  font-size: 36px;
  font-weight: bold;
  color: var(--sub);
}
.credit {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,.8);
}

/* ---------- 表紙 ---------- */
.cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 160px;
  background: #1f2a36;
  color: #fff;
}
.cover .bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  opacity: .28;
}
.cover .bg div { background-size: cover; background-position: center; }
.cover .inner { position: relative; }
.cover .kicker { font-size: 44px; font-weight: bold; color: #ffd27a; }
.cover h1 { margin-top: 30px; font-size: 130px; line-height: 1.2; }
.cover p { margin-top: 50px; font-size: 48px; line-height: 1.6; }

/* ---------- 一覧 ---------- */
.list { padding: 70px 100px; background: #f5f6f8; }
.list h2 { font-size: 80px; margin-bottom: 50px; }
.list .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 50px;
}
.list .group h3 {
  font-size: 40px;
  color: #fff;
  padding: 10px 24px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.list .group button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 38px;
  line-height: 1.35;
  padding: 6px 12px;
  text-wrap: pretty;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.list .group button:hover { background: #e4e8ee; }
.list .group button span { color: var(--sub); margin-right: 14px; font-weight: bold; }

/* ---------- 下の進み具合と案内 ---------- */
.progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 10px;
  background: var(--accent);
  transition: width .35s ease;
  z-index: 5;
}
#help {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 999px;
  transition: opacity .6s;
  pointer-events: none;
}
#help.hide { opacity: 0; }

/* ---------- スマホを縦に持ったとき（1080×1920 の縦長） ---------- */
body.portrait .job .photo { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 36%; }
body.portrait .job .bar { top: 36%; left: 0; right: 0; bottom: auto; width: auto; height: 16px; }
body.portrait .job .text {
  top: calc(36% + 16px); left: 0; right: 0; bottom: 0; width: auto;
  padding: 56px 70px 90px;
}
body.portrait .job h2 { margin-top: 36px; }
body.portrait .credit { font-size: 22px; }

body.portrait .cover { padding: 0 90px; }
body.portrait .cover .bg { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(5, 1fr); }
body.portrait .cover .kicker { font-size: 48px; }
body.portrait .cover h1 { font-size: 98px; }

body.portrait .list { padding: 90px 70px; }
body.portrait .list h2 { font-size: 88px; margin-bottom: 60px; }
body.portrait .list .grid { grid-template-columns: repeat(2, 1fr); gap: 60px 40px; }
body.portrait .list .group h3 { font-size: 42px; }
body.portrait .list .group button { font-size: 42px; padding: 10px 8px; }

body.portrait #help { font-size: 13px; white-space: nowrap; }
