/* 働物図鑑 — サイト本体
 * 世界観はヒーローが担う。以降のセクションは素直に、余白で読ませる。 */

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

body,
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

rt {
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-weak);
}

.wrap {
  width: min(100% - var(--space-5) * 2, 980px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - var(--space-5) * 2, 720px);
  margin-inline: auto;
}

/* ============ ヘッダー ============ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: rgba(247, 242, 230, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--accent);
}

.site-head .mark {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-head .mark .hito {
  color: var(--wood);
}

.site-nav {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background var(--calm);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--bg-alt);
}

.site-nav a.is-join {
  background: var(--accent);
  color: #4c3303;
}

/* ============ ヒーロー ============ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  background: var(--sky);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 52% 62%;
  will-change: transform;
}

/* 配置は実測固定(リファレンス合成から算出) */
.hero-title {
  position: absolute;
  left: 14.3%;
  top: 20.3%;
  width: 70.6%;
  transform-origin: 50% 60%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.hero-title img {
  width: 100%;
  filter: drop-shadow(0 10px 14px rgba(60, 40, 10, 0.22));
}

.hero-cast {
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  pointer-events: none;
}

.hero-ch {
  position: absolute;
  transform-origin: 50% 96%;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.hero-ch img {
  width: 100%;
  filter: drop-shadow(0 8px 10px rgba(40, 50, 30, 0.3));
}

/* 3体は画面の中央に置く(合計幅53.5% + すき間6%×2 = 65.5% を 17.25% から並べる)。
   お知らせの立て看板が復活しても、この配置は動かさない。 */
.hero-ch--1 {
  left: 17.25%;
  width: 18%;
  bottom: 5%;
}

.hero-ch--2 {
  left: 41.25%;
  width: 20%;
  bottom: 2%;
}

.hero-ch--3 {
  left: 67.25%;
  width: 15.5%;
  bottom: 5%;
}

/* 右端: お知らせ導線(世界の中の立て看板) */
.hero-notice {
  position: absolute;
  right: 4%;
  bottom: 13%;
  width: 17%;
  min-width: 96px;
  padding: var(--space-3) var(--space-2);
  text-align: center;
  text-decoration: none;
  background: #fffdf4;
  border: 3px solid var(--wood);
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(90, 60, 20, 0.35);
  transition: transform var(--calm);
}

.hero-notice::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12%;
  height: 42%;
  background: var(--wood);
  transform: translateX(-50%);
  border-radius: 0 0 3px 3px;
  z-index: -1;
}

.hero-notice:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.hero-notice .label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: 0.18em;
}

.hero-notice .body {
  display: block;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  line-height: 1.5;
  margin-top: 2px;
}

/* 幕開け */
.hero.is-playing .hero-bg {
  animation: bgIn 3.4s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}

@keyframes bgIn {
  from {
    transform: scale(1.075);
  }
  to {
    transform: scale(1);
  }
}

.hero.is-playing .hero-title {
  animation: titleIn 0.82s cubic-bezier(0.3, 1.5, 0.45, 1) 0.35s both;
}

@keyframes titleIn {
  0% {
    transform: translateY(-26px) scale(0.72) rotate(-1.5deg);
    opacity: 0;
  }
  55% {
    transform: translateY(0) scale(1.07) rotate(0.4deg);
    opacity: 1;
  }
  78% {
    transform: scale(0.985) rotate(-0.2deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.hero.is-playing .hero-ch {
  animation: charIn 0.78s cubic-bezier(0.28, 1.6, 0.45, 1) both;
}

.hero.is-playing .hero-ch--1 {
  animation-delay: 0.95s;
}

.hero.is-playing .hero-ch--2 {
  animation-delay: 1.12s;
}

.hero.is-playing .hero-ch--3 {
  animation-delay: 1.29s;
}

@keyframes charIn {
  0% {
    transform: translateY(78%) scale(0.94, 1.12);
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  62% {
    transform: translateY(-9%) scale(1.05, 0.94);
  }
  82% {
    transform: translateY(2%) scale(0.98, 1.02);
  }
  100% {
    transform: translateY(0) scale(1, 1);
    opacity: 1;
  }
}

/* アイドル */
.hero.is-idle .hero-title {
  animation: titleFloat 5.2s ease-in-out infinite;
}

@keyframes titleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-5px) rotate(0.25deg);
  }
}

.hero.is-idle .hero-ch {
  animation: floatY 3.4s ease-in-out infinite;
}

.hero.is-idle .hero-ch--2 {
  animation-delay: 0.55s;
}

.hero.is-idle .hero-ch--3 {
  animation-delay: 1.1s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-7px) rotate(0.6deg);
  }
}

/* さわった反応 */
.hero-title.is-puni {
  animation: puni 0.58s cubic-bezier(0.3, 1.6, 0.4, 1) !important;
}

@keyframes puni {
  0% {
    transform: scale(1) rotate(0);
  }
  28% {
    transform: scale(1.055, 0.95) rotate(-0.7deg);
  }
  55% {
    transform: scale(0.975, 1.04) rotate(0.5deg);
  }
  78% {
    transform: scale(1.015, 0.99) rotate(-0.2deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.hero-ch.is-hop {
  animation: hop 0.62s cubic-bezier(0.3, 1.6, 0.4, 1) !important;
}

@keyframes hop {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  22% {
    transform: translateY(0) scale(1.08, 0.9);
  }
  52% {
    transform: translateY(-22px) scale(0.95, 1.07);
  }
  78% {
    transform: translateY(0) scale(1.05, 0.95);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

.fx {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.fx-spark {
  color: #ffd873;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 220, 120, 0.9);
  animation: sparkle 0.8s ease-out forwards;
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(0);
  }
  40% {
    opacity: 1;
    transform: scale(1.2) rotate(20deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(40deg);
  }
}

.fx-dust {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(214, 198, 150, 0.75);
  animation: puff 0.75s ease-out forwards;
}

@keyframes puff {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.9);
  }
}

/* ============ セクション ============ */
.section {
  padding: var(--space-7) 0;
}

.section + .section {
  border-top: 2px dashed var(--line);
}

.section--alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--wood);
  text-align: center;
}

.display {
  font-size: var(--display-size);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin-top: var(--space-2);
  text-wrap: balance;
  /* 日本語を文節単位で改行(対応ブラウザ)。未対応は既定にフォールバック */
  word-break: auto-phrase;
  line-break: strict;
}

.lead {
  margin-top: var(--space-4);
  text-align: center;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

/* スマホ・タブレットでは、PC向けに置いた固定改行(<br>)を無効化して、
   balance/pretty に自動整形させる(改行位置が不自然になるのを防ぐ) */
@media (max-width: 700px) {
  .display br,
  .lead br {
    display: none;
  }
}

/* 途中で割りたくない語句(auto-phrase 未対応ブラウザ向けの保険) */
.nw {
  white-space: nowrap;
}

/* 動 + 人 = 働 */
.kanji-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-weight: 700;
}

.kanji-play .box {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
}

.kanji-play .box.is-hito {
  color: var(--wood);
  border-color: var(--wood);
}

.kanji-play .box.is-answer {
  background: var(--ink);
  color: var(--bg);
}

.kanji-play .op {
  font-size: 20px;
  color: var(--ink-weak);
}

/* 図鑑グリッド */
.zukan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 700px) {
  .zukan-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-5) var(--space-4);
  }
  /* トップのZUKAN帯は5個を1段で見せる */
  .zukan-grid--band {
    grid-template-columns: repeat(5, 1fr);
  }
}

.zukan-card {
  text-decoration: none;
  text-align: center;
  display: block;
}

.zukan-card .window {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #fff;
  outline: 2px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform var(--calm), outline-color var(--calm);
}

.zukan-card:hover .window {
  transform: translateY(-4px);
  outline-color: var(--accent);
}

.zukan-card .window img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.zukan-card .no {
  display: block;
  margin-top: var(--space-2);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-weak);
  letter-spacing: 0.1em;
}

.zukan-card .name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.zukan-card .company {
  display: block;
  font-size: 10.5px;
  color: var(--ink-weak);
}

.zukan-card.is-secret .window {
  background: var(--ink);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.zukan-card.is-todo .window {
  background: var(--bg-alt);
  color: var(--line);
  font-size: 26px;
  font-weight: 700;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #f5c53f, #e0a416);
  color: #4c3303;
  border: 2px solid #8a5f08;
  box-shadow: 0 4px 0 #8a5f08;
  transition: transform var(--calm), box-shadow var(--calm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #8a5f08;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #8a5f08;
}

.btn--quiet {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 4px 0 var(--line);
}

.center {
  text-align: center;
  margin-top: var(--space-6);
}

/* 舞台裏(企業向け) */
.backstage {
  background: repeating-linear-gradient(0deg, #2a3245 0 16px, #232a3b 16px 32px);
  color: #fff;
  padding: var(--space-7) 0;
  border-top: 4px solid var(--accent);
  text-align: center;
}

.backstage .eyebrow {
  color: var(--accent);
}

.backstage .lead {
  color: #d9dfe8;
}

/* フッター */
.site-foot {
  background: #2a3245;
  color: #97a3b6;
  text-align: center;
  padding: var(--space-5) var(--space-4);
  font-size: var(--caption-size);
  letter-spacing: 0.08em;
}

.site-foot a {
  color: #c9d3e2;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============ キャラ×会社ページ ============ */
.crumb {
  padding: var(--space-3) 0;
  font-size: var(--caption-size);
  color: var(--ink-weak);
}

.ch-hero {
  padding: var(--space-5) 0 var(--space-6);
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 3px dashed var(--line);
}

.ch-no {
  display: inline-block;
  padding: 1px 10px;
  font-size: var(--caption-size);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #c0392b;
  border: 2px solid #c0392b;
  border-radius: 6px;
  background: #fff;
  transform: rotate(-3deg);
}

.ch-window {
  width: min(78%, 300px);
  aspect-ratio: 1;
  margin: var(--space-4) auto 0;
  display: grid;
  place-items: center;
  background: #fff;
  border: 7px solid #fff;
  outline: 3px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
}

.ch-window img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.ch-chips {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.ch-chips li {
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
}

.draft-note {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-size: var(--caption-size);
  color: #8a6a2e;
  background: #fff8e2;
  border: 1.5px dashed #cdb87f;
  border-radius: var(--radius);
  text-align: center;
}

.job-list {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
}

.job-list li {
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.chain {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
}

.chain li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.chain li + li::before {
  content: "";
  position: absolute;
  left: 34px;
  top: calc(var(--space-3) * -1 - 2px);
  height: var(--space-3);
  border-left: 3px dotted var(--line);
}

.chain-no {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #4c3303;
  background: var(--accent);
  border-radius: 50%;
}

.genba {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.genba-slot {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  gap: var(--space-1);
  background: #fff;
  border: 3px solid #fff;
  outline: 2px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--ink-weak);
  text-align: center;
}

.genba-slot small {
  display: block;
  font-weight: 400;
  font-size: 11px;
}

.data-table {
  width: 100%;
  margin-top: var(--space-5);
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: var(--space-3);
  text-align: left;
}

.data-table th {
  width: 38%;
  background: var(--bg-alt);
  font-weight: 700;
  white-space: nowrap;
}

/* ============ グッズ棚 ============ */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.shelf-item {
  text-align: center;
  padding-bottom: var(--space-4);
  border-bottom: 6px solid var(--wood);
  border-radius: 0 0 4px 4px;
}

.shelf-window {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  border: 4px solid #fff;
  outline: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shelf-window img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.shelf-window.is-empty {
  background: var(--bg-alt);
  color: var(--ink-weak);
  font-size: 12px;
  font-weight: 700;
}

.shelf-name {
  margin-top: var(--space-3);
  font-size: 15px;
  font-weight: 700;
}

.shelf-note {
  font-size: 12px;
  color: var(--ink-weak);
  line-height: 1.7;
}

.tag {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 2px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--ink-weak);
  border: 1.5px solid var(--line);
}

.tag--now {
  background: var(--accent);
  color: #4c3303;
  border-color: #8a5f08;
}

/* ============ 設置場所 ============ */
.spot-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.spot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.spot-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grass);
}

.spot.is-ended {
  opacity: 0.6;
}

.spot.is-ended .spot-dot {
  background: var(--line);
}

.spot b {
  display: block;
  font-size: 15px;
}

.spot span {
  display: block;
  font-size: 12px;
  color: var(--ink-weak);
}

/* ============ スマホ(narrow) ============
 * スマホが主戦場。ヒーローは横長のままだと世界が米粒になるので、
 * 縦構図に組み替える(背景は cover で中央を残し、タイトルとキャラを配置し直す)。 */
@media (max-width: 640px) {
  .site-head {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }

  .site-head .mark {
    font-size: 13px;
  }

  .site-nav a {
    font-size: 11px;
    padding: 2px var(--space-2);
  }

  .hero {
    aspect-ratio: 4 / 5;
  }

  .hero-bg {
    object-position: 54% 62%;
  }

  .hero-title {
    left: 7%;
    top: 13%;
    width: 86%;
  }

  .hero-cast {
    height: 44%;
  }

  .hero-ch--1 {
    left: 1%;
    width: 32%;
    bottom: 4%;
  }

  .hero-ch--2 {
    left: 32%;
    width: 36%;
    bottom: 1%;
  }

  .hero-ch--3 {
    left: 69%;
    width: 28%;
    bottom: 4%;
  }

  .hero-notice {
    right: 3%;
    bottom: auto;
    top: 3%;
    width: 26%;
    min-width: 84px;
    padding: var(--space-2) var(--space-1);
  }

  .hero-notice::after {
    display: none;
  }

  .kanji-play .box {
    width: 54px;
    height: 54px;
    font-size: 28px;
  }

  .data-table th {
    width: 42%;
  }
}

/* ============ フォーム ============ */
.form {
  margin-top: var(--space-6);
}

.field {
  margin-bottom: var(--space-5);
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--space-2);
}

.field .req {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--wood);
  border-radius: var(--radius-pill);
  vertical-align: 2px;
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--space-3);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--calm), box-shadow var(--calm);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b9ab8e;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 195, 28, 0.28);
}

.field textarea {
  resize: vertical;
}

.form-notice {
  margin-top: var(--space-5);
  padding: var(--space-4);
  font-size: var(--caption-size);
  color: #8a6a2e;
  background: #fff8e2;
  border: 1.5px dashed #cdb87f;
  border-radius: var(--radius);
  text-align: center;
}

.form-privacy {
  font-size: var(--caption-size);
  color: var(--ink-weak);
  text-align: center;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: 0 4px 0 #8a5f08;
  transform: none;
}

.form[data-disabled="true"] .field input,
.form[data-disabled="true"] .field textarea {
  background: var(--bg-alt);
}

/* ============ 働物記(取材原稿の読み物) ============
 * 中身はMarkdown。見出しは他セクションと同じ声量に、本文は読み物として左揃えで組む。 */
.story h2 {
  font-size: var(--display-size);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin-top: var(--space-2);
  text-wrap: balance;
}

.story p {
  margin-top: var(--space-4);
  text-wrap: pretty;
}

.story p:first-of-type {
  margin-top: var(--space-5);
}

/* キャラページの但し書き(全キャラ共通) */
.disclaimer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1.5px solid var(--line);
  font-size: var(--caption-size);
  line-height: 1.8;
  color: var(--ink-weak);
}

/* ============ 世界の面(セクションの地面) ============
 * トップ後半とキャラページの遊び心はここで出す。
 * 面の切り替え = 紙芝居の場面転換。境界はギザギザ(ケガキ線)か柵。 */
.face-grid {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(74, 58, 40, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 58, 40, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.face-kraft {
  background-color: #ecdcb4;
  background-image: radial-gradient(rgba(122, 90, 38, 0.1) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

.face-wood {
  background-color: var(--wood);
  background-image: repeating-linear-gradient(0deg, rgba(70, 42, 12, 0.14) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 60px);
}

.face-steel {
  background-color: #31445a;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 7px, transparent 7px 20px);
}

.face-grass {
  background-color: var(--grass);
  background-image: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.1) 0 10px, transparent 10px 30px);
}

/* ギザギザ境界(前の面の色を data 属性ではなく modifier で持つ) */
.zz {
  height: 14px;
}

.zz--cream {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Cpath d='M0 14 L13 0 L26 14 Z' fill='%23f7f2e6'/%3E%3C/svg%3E") repeat-x bottom;
}

.zz--kraft {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Cpath d='M0 14 L13 0 L26 14 Z' fill='%23ecdcb4'/%3E%3C/svg%3E") repeat-x bottom;
}

.zz--navy {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Cpath d='M0 14 L13 0 L26 14 Z' fill='%2331445a'/%3E%3C/svg%3E") repeat-x bottom;
}

.zz--wood {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Cpath d='M0 14 L13 0 L26 14 Z' fill='%239a622a'/%3E%3C/svg%3E") repeat-x bottom;
}

/* 柵(芝生の縁) */
.fence {
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='18'%3E%3Crect x='2' y='0' width='6' height='18' rx='3' fill='%237fa35a'/%3E%3Crect x='19' y='0' width='6' height='18' rx='3' fill='%237fa35a'/%3E%3Crect x='0' y='5' width='34' height='4' rx='2' fill='%2394b96e'/%3E%3C/svg%3E") repeat-x bottom;
}

/* 面の上に載るセクションは境界線を持たない(面が語る) */
.section--face {
  border-top: none !important;
}

/* ============ STORY ============ */
.story-copy {
  margin-top: var(--space-5);
  font-size: 16px;
  line-height: 2.2;
  text-align: center;
  text-wrap: pretty;
  font-weight: 700;
}

.story-copy .town {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: 0.06em;
}

/* ============ Webガチャ ============ */
.gacha {
  text-align: center;
}

.gacha-stage {
  position: relative;
  width: min(78vw, 300px);
  margin: var(--space-6) auto 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* マシン */
.gacha-machine {
  position: relative;
  transition: transform var(--calm);
}

.gacha-stage:hover .gacha-machine {
  transform: scale(1.02);
}

.gacha-dome {
  position: relative;
  height: 210px;
  background: linear-gradient(200deg, #ffffff 0%, #f2ede0 55%, #e6dfcc 100%);
  border: 6px solid #fff;
  outline: 2.5px solid var(--line);
  border-radius: 30px 30px 10px 10px;
  overflow: hidden;
  box-shadow: inset 0 -14px 22px rgba(74, 58, 40, 0.1);
}

.gacha-dome .cap {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid rgba(74, 58, 40, 0.25);
  background: linear-gradient(180deg, #fffdf6 0 48%, var(--c, var(--accent)) 48%);
  box-shadow: inset -3px -5px 6px rgba(74, 58, 40, 0.14), inset 3px 4px 6px rgba(255, 255, 255, 0.75);
}

/* ガラスのツヤ */
.gacha-dome .sheen {
  position: absolute;
  top: 8%;
  left: 10%;
  width: 34%;
  height: 58%;
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

/* 天板とベース */
.gacha-crown {
  height: 16px;
  margin: 0 26px -4px;
  background: linear-gradient(180deg, #f5c53f, #e0a416);
  border: 3px solid #8a5f08;
  border-radius: 10px 10px 0 0;
}

.gacha-base {
  height: 18px;
  margin: -4px 12px 0;
  background: var(--wood);
  border: 3px solid #6e4014;
  border-radius: 4px 4px 12px 12px;
  box-shadow: 0 10px 18px rgba(74, 58, 40, 0.28);
}

/* コイン口 */
.gacha-coin {
  position: absolute;
  left: 26px;
  top: 30px;
  width: 34px;
  height: 44px;
  background: #fffdf6;
  border: 3px solid #8a5f08;
  border-radius: 8px;
}

.gacha-coin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 24px;
  transform: translate(-50%, -50%);
  background: #6b4a08;
  border-radius: 3px;
}

.gacha-body {
  position: relative;
  height: 120px;
  background: linear-gradient(180deg, #f5c53f, #e0a416);
  border: 3px solid #8a5f08;
  border-radius: 8px 8px 16px 16px;
  margin-top: -3px;
}

.gacha-handle {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 62px;
  height: 62px;
  margin-left: -31px;
  background: radial-gradient(circle at 34% 30%, #ffffff, #ded7c4 72%);
  border: 4px solid #8a5f08;
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(110, 64, 20, 0.45);
  transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.4, 1);
}

.gacha-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 10px;
  margin-left: -5px;
  background: #8a5f08;
  border-radius: 5px;
}

.is-cranking .gacha-handle {
  transform: rotate(180deg);
}

.gacha-slot {
  position: absolute;
  right: 22px;
  bottom: 16px;
  width: 64px;
  height: 34px;
  background: #6b4a08;
  border-radius: 8px;
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.4);
}

.is-shaking .gacha-machine {
  animation: machineShake 0.5s ease-in-out 2;
}

/* カプセルが出ている間: マシンは一歩さがる */
.gacha-machine {
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.is-served .gacha-machine {
  opacity: 0.32;
  filter: saturate(0.5);
}

@keyframes machineShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-1.6deg); }
  75% { transform: rotate(1.4deg); }
}

.gacha-hint {
  margin-top: var(--space-4);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-weak);
}

/* カプセル: マシンの前に落ちてくる(セクションの高さは変えない) */
.gacha-capsule {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 112px;
  height: 112px;
  margin-left: -56px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 6;
  filter: drop-shadow(0 8px 8px rgba(74, 58, 40, 0.3));
}

.gacha-capsule.is-dropping {
  animation: capDrop 0.7s cubic-bezier(0.3, 1.5, 0.4, 1) both;
}

@keyframes capDrop {
  0% { transform: translateY(-150px) scale(0.6); opacity: 0; }
  55% { transform: translateY(8px) scale(1.05, 0.9); opacity: 1; }
  80% { transform: translateY(-4px) scale(0.97, 1.04); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.gacha-capsule:not(.is-open) {
  animation: capWiggle 2.4s ease-in-out infinite;
}

@keyframes capWiggle {
  0%, 84%, 100% { transform: rotate(0); }
  88% { transform: rotate(-4deg); }
  93% { transform: rotate(3.2deg); }
}

.gacha-capsule .half {
  position: absolute;
  left: 0;
  width: 112px;
  height: 56px;
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.4, 1);
}

.gacha-capsule .half--top {
  top: 0;
  border-radius: 56px 56px 0 0;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid #c9c2b2;
  border-bottom: none;
}

.gacha-capsule .half--bottom {
  bottom: 0;
  border-radius: 0 0 56px 56px;
  background: #e14b3b;
  border: 3px solid #9c2d1f;
  border-top: none;
}

.gacha-capsule.is-open .half--top {
  transform: translateY(-30px) rotate(-10deg);
}

.gacha-capsule.is-open .half--bottom {
  transform: translateY(12px) rotate(3deg);
}

/* 出てきた子: カプセルとマシンに重なって、上に飛び出す */
.gacha-pop {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 7;
  transform: translate(-50%, 80px) scale(0.3);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.25, 1.5, 0.45, 1) 0.1s, opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.gacha-pop.is-revealed {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.gacha-pop img {
  height: 236px;
  width: auto;
  filter: drop-shadow(0 12px 14px rgba(40, 40, 20, 0.35));
  transition: transform var(--calm);
}

.gacha-pop:hover img {
  transform: translateY(-4px) rotate(-1deg);
}

/* キャプション帯: 高さを固定して、状態が変わってもレイアウトを揺らさない */
.gacha-caption {
  min-height: 104px;
  margin-top: var(--space-4);
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-2);
}

.gacha-caption .gacha-hint {
  margin-top: 0;
}

.gacha-meta {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}

/* ============ キャラ紹介(トップ) ============ */
.meet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.meet-card {
  display: block;
  text-decoration: none;
  text-align: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: var(--space-4) var(--space-3);
  transition: transform var(--calm), border-color var(--calm);
}

.meet-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  border-color: var(--accent);
}

.meet-card img {
  height: 170px;
  width: auto;
  margin-inline: auto;
}

.meet-card .name {
  display: block;
  margin-top: var(--space-3);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.meet-card .line {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-weak);
  line-height: 1.7;
}

/* ============ グッズ実物(トップのチラ見せ) ============ */
.kh-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-5);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.kh-row img {
  height: 260px;
  width: auto;
  filter: drop-shadow(0 12px 14px rgba(40, 40, 20, 0.3));
  transition: transform var(--calm);
}

@media (min-width: 700px) {
  .kh-row {
    gap: var(--space-6);
    margin-top: var(--space-4);
  }
  .kh-row img {
    height: 420px;
  }
}

.kh-row img:hover {
  transform: translateY(-6px) rotate(2deg);
}

/* ============ キャラページ v2(前カンプのデザインへ寄せる) ============ */
.ch-hero.face-wood {
  background-color: var(--wood);
  border-bottom: none;
}

.ch-hero .ch-name {
  margin-top: var(--space-4);
  font-size: var(--display-size);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 3px 0 rgba(70, 40, 10, 0.45);
  letter-spacing: 0.04em;
}

.ch-hero.face-wood .ch-window {
  outline-color: rgba(255, 255, 255, 0.55);
}

.ch-hero.face-wood .ch-chips li {
  border-color: transparent;
  box-shadow: 0 2px 0 rgba(70, 40, 10, 0.35);
}

/* この子の仕事: アイコンカード(横並び) */
.job-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.job-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.job-card .ic {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.job-card p {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.8;
}

/* 働物記: 引用の箱 */
.storybox {
  position: relative;
  margin-top: var(--space-5);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: var(--space-5) var(--space-5) var(--space-5);
}

.storybox::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 16px;
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}

.storybox h2 {
  font-size: var(--heading-size);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  text-wrap: balance;
}

.storybox p {
  margin-top: var(--space-4);
  text-wrap: pretty;
}

/* 現場の窓: 暗い鋼板の面 */
.genba-band {
  color: #fff;
}

.genba-band .eyebrow {
  color: var(--accent);
}

.genba-band .display {
  color: #fff;
}

.genba-band .display rt {
  color: rgba(255, 255, 255, 0.75);
}

.genba-band .genba-slot {
  background: #e6e9ee;
  border-color: #f4f0e4;
  outline-color: rgba(255, 255, 255, 0.35);
  border-radius: 18px;
}

/* 現場の窓: 動画 */
.genba-video {
  margin: var(--space-5) 0 0;
}

.gv-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 3px solid #f4f0e4;
  outline: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  overflow: hidden;
  background: #1c2735;
  cursor: pointer;
}

.gv-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) saturate(0.95);
  transition: transform var(--calm), filter var(--calm);
}

.gv-facade:hover .gv-poster {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.gv-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform var(--calm);
}

.gv-play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent #4c3303;
  transform: translateX(3px);
}

.gv-facade:hover .gv-play,
.gv-facade:focus-visible .gv-play {
  transform: scale(1.08);
}

.gv-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid #f4f0e4;
  outline: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  display: block;
}

.genba-cap {
  margin-top: var(--space-3);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.genba-cap small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: var(--caption-size);
  color: rgba(255, 255, 255, 0.62);
}

/* 現場の窓: 写真ギャラリー */
.genba-gallery {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.genba-photo {
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
  border: 3px solid #f4f0e4;
  outline: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: #1c2735;
  cursor: pointer;
}

.genba-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--calm);
}

.genba-photo:hover img,
.genba-photo:focus-visible img {
  transform: scale(1.05);
}

.genba-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(28, 39, 53, 0.72);
  opacity: 0;
  transition: opacity var(--calm);
}

.genba-zoom::before,
.genba-zoom::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
}

.genba-zoom::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.genba-zoom::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.genba-photo:hover .genba-zoom,
.genba-photo:focus-visible .genba-zoom {
  opacity: 1;
}

.genba-credit {
  margin-top: var(--space-3);
  text-align: right;
  font-size: var(--caption-size);
  color: rgba(255, 255, 255, 0.62);
}

/* 会社をフォロー: SNS */
.sns-follow {
  margin-top: var(--space-5);
  text-align: center;
}

.sns-lead {
  font-size: var(--caption-size);
  color: var(--ink-weak);
  margin-bottom: var(--space-2);
}

.sns-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.sns-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 0 var(--line);
  transition: transform var(--calm), box-shadow var(--calm), color var(--calm);
}

.sns-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--line);
}

.sns-link:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line);
}

.sns-ic {
  flex: none;
}

.sns-link--youtube:hover {
  color: #ff0000;
}

.sns-link--instagram:hover {
  color: #d6249f;
}

.sns-link--line:hover {
  color: #06c755;
}

.sns-link--facebook:hover {
  color: #1877f2;
}

@media (prefers-reduced-motion: reduce) {
  .gv-poster,
  .gv-facade:hover .gv-poster,
  .gv-play,
  .sns-link {
    transition: none;
  }
  .gv-facade:hover .gv-poster {
    transform: none;
  }
  .genba-photo img,
  .genba-photo:hover img {
    transition: none;
    transform: none;
  }
}

/* 図鑑データ: 図鑑カード(ポートレート + データ表) */
.zukan-datacard {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-5);
}

.zukan-portrait {
  margin: 0;
}

.zukan-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.zukan-table {
  margin-top: 0;
}

@media (max-width: 640px) {
  .zukan-datacard {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .zukan-portrait {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* 現場写真の拡大表示(ライトボックス) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--space-5) var(--space-4);
  background: rgba(20, 15, 8, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  margin: 0;
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 3px solid #fff;
}

.lightbox-cap {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--caption-size);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--calm);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* のぞいてみよう: トップの匂わせ(ティーザー) */
.peek-teaser-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}

.peek-teaser-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid #fff;
  outline: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.peek-teaser-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.peek-teaser-copy {
  text-align: center;
}

.peek-teaser-copy .lead {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 640px) {
  .peek-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: center;
  }
}

/* のぞいてみよう(AR体験・詳細) */
.peek-steps {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.peek-frame {
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: #fff;
  border: 3px solid #fff;
  outline: 2px solid var(--line);
  overflow: hidden;
}

.peek-qr {
  width: 176px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}

.peek-phone {
  width: 200px;
  aspect-ratio: 9 / 19;
  border-radius: 26px;
  background: #1c2735;
}

.peek-guide {
  max-width: 560px;
  margin: var(--space-6) auto 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-weak);
}

.peek-guide b {
  color: var(--wood);
}

/* ためしてみよう: 大きなスキャン対象 + QR */
.peek-try {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-5);
}

.peek-try-target {
  margin: 0;
  max-width: 340px;
  background: #fff;
  border: 3px solid #fff;
  outline: 2px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-4) var(--space-3);
  box-shadow: 0 10px 26px rgba(74, 58, 40, 0.14);
  text-align: center;
}

.peek-try-target img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.peek-try-target figcaption {
  margin-top: var(--space-3);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.peek-try-qr {
  text-align: center;
}

.peek-result {
  margin-top: var(--space-6);
  text-align: center;
}

.peek-result .peek-frame {
  margin: 0 auto;
}

.peek-frame img,
.peek-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.peek-wait {
  padding: var(--space-3);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-weak);
}

.peek-phone .peek-wait {
  color: rgba(255, 255, 255, 0.72);
}

.peek-wait small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 11px;
}

.peek-cap {
  margin-top: var(--space-2);
  font-size: var(--caption-size);
  color: var(--ink-weak);
}

.peek-note {
  margin-top: var(--space-6);
  font-size: 14px;
}


/* 企業向け: 参加プランの2枚カード */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: var(--space-5);
  transition: transform var(--calm), border-color var(--calm), box-shadow var(--calm);
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(74, 58, 40, 0.16);
}

.plan-tag {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #4c3303;
  font-size: 18px;
  font-weight: 700;
}

.plan-card h3 {
  margin-top: var(--space-3);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.plan-cond {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 2px var(--space-3);
  font-size: 12px;
  font-weight: 700;
  color: var(--wood);
  border: 1.5px solid var(--wood);
  border-radius: var(--radius-pill);
}

.plan-sub {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--ink-weak);
  line-height: 1.8;
}

/* ハニーポット(スパムボット対策): 画面からも支援技術からも隠す */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.plan-card .job-list {
  margin-top: var(--space-4);
}

.plan-note {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1.5px solid var(--line);
  font-size: var(--caption-size);
  color: var(--ink-weak);
  line-height: 1.8;
}

.plan-card .job-list {
  margin-bottom: var(--space-4);
}

@media (max-width: 700px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card {
    transition: none;
  }
  .plan-card:hover {
    transform: none;
  }
}

/* つくり手からのメッセージ */
.message-body {
  max-width: 34em;
  margin: var(--space-6) auto 0;
  text-align: left;
}

.message-body p {
  margin-top: var(--space-4);
  line-height: 2;
  text-wrap: pretty;
}

.message-body p:first-child {
  margin-top: 0;
}

.message-sign {
  margin-top: var(--space-6);
  font-size: var(--caption-size);
  color: var(--ink-weak);
}

/* 前後の働物ナビ */
.nextnav {
  padding-top: var(--space-5);
}

.nextnav-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-5);
}

.nextnav-item {
  text-decoration: none;
  text-align: center;
  width: 110px;
}

.nextnav-item .window {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-inline: auto;
  background: #fff;
  border: 4px solid #fff;
  outline: 2px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  font-size: 26px;
  transition: transform var(--calm), outline-color var(--calm);
}

.nextnav-item:hover .window {
  transform: translateY(-4px);
  outline-color: var(--accent);
}

.nextnav-item .window img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.nextnav-item .label {
  display: block;
  margin-top: var(--space-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}

.nextnav-item--all .window {
  background: var(--bg-alt);
}


/* ============ STORYの下の全幅ムービー ============ */
.story-film {
  line-height: 0;
  background: #1e2b40;
}

.story-film video {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ カプセルトイの「回す」誘導 ============ */
.gacha-tap {
  position: absolute;
  left: 50%;
  top: 244px;
  transform: translateX(-50%);
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ハンドルを囲むパルスリング */
.gacha-tap-ring {
  position: absolute;
  top: -8px;
  width: 78px;
  height: 78px;
  border: 4px solid var(--wood);
  border-radius: 50%;
  animation: tapRing 1.6s ease-out infinite;
}

@keyframes tapRing {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.gacha-tap-finger {
  position: relative;
  font-size: 34px;
  filter: drop-shadow(0 2px 2px rgba(74, 58, 40, 0.35));
  animation: tapFinger 1.1s ease-in-out infinite;
}

@keyframes tapFinger {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.gacha-tap-label {
  margin-top: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  background: var(--wood);
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 0 rgba(70, 40, 10, 0.4);
}

.gacha-tap-label::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--wood);
  border-top: 0;
}

/* 回している/出したあとは誘導を消す */
.is-cranking .gacha-tap,
.is-served .gacha-tap {
  opacity: 0;
}

/* 待機中はマシンがかすかに息をする(押せる合図) */
.gacha-stage:not(.is-cranking):not(.is-served) .gacha-machine {
  animation: gachaBreathe 2.6s ease-in-out infinite;
}

@keyframes gachaBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .gacha-stage:not(.is-cranking):not(.is-served) .gacha-machine {
    animation: none;
  }
}
