/* wobias.com — 親しみやすい明るいテーマ
   配色: 温かいクリーム地 + ソフトティール + コーラル。丸みと余白で柔らかく。 */

:root {
  --bg: #fbf8f2;
  --bg-warm: #f6efe4;
  --surface: #ffffff;
  --ink: #263039;
  --ink-soft: #4a5761;
  --muted: #8593a0;
  --line: #ece4d6;
  --teal: #14b3aa;
  --teal-ink: #0e8f88;
  --teal-soft: #e3f6f4;
  --coral: #ff7a52;
  --coral-soft: #ffece4;
  --sun: #ffc247;
  --shadow: 0 18px 40px -24px rgba(38, 48, 57, 0.35);
  --shadow-sm: 0 8px 24px -18px rgba(38, 48, 57, 0.4);
  --radius: 20px;
  --radius-lg: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- nav ---------- */
/* サイトヘッダ限定。素の `nav` に当てると、ページ内の <nav>（例: サービス詳細の
   .jump）まで固定配置になってヘッダを覆うため、id で絞る。 */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
#nav.scrolled {
  border-bottom-color: var(--line);
}
.logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo span {
  color: var(--teal);
}
.nav-links {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--teal-ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(20, 179, 170, 0.9);
}
.btn-primary:hover {
  background: var(--teal-ink);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-ink);
  transform: translateY(-2px);
}
.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(255, 122, 82, 0.9);
}
.btn-coral:hover {
  background: #f5623a;
  transform: translateY(-2px);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 9.5rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--teal-soft) 0%, transparent 68%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -12%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--coral-soft) 0%, transparent 70%);
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.hero-title {
  font-family: "Plus Jakarta Sans", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}
.hero-title .hl {
  color: var(--teal);
}
.hero-title .u {
  background: linear-gradient(transparent 62%, var(--sun) 62%);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 30rem;
  margin-bottom: 2rem;
}
.hero-btns {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.hero-card img {
  border-radius: var(--radius);
  width: 100%;
  height: 260px;
  /* 写真ではなくイラストなので、狭い幅で端が切れないよう contain で全体を見せる。 */
  object-fit: contain;
  background: var(--teal-soft);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.3rem;
}
.stat {
  background: var(--bg-warm);
  border-radius: 16px;
  padding: 0.9rem 0.7rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal-ink);
  line-height: 1;
}
.stat span {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- ticker ---------- */
.ticker-wrap {
  background: var(--teal);
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 3rem;
}
.ticker {
  display: inline-flex;
  animation: ticker 26s linear infinite;
}
.ticker-item {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  padding: 0 2rem;
  opacity: 0.95;
}
.ticker-item::after {
  content: "✺";
  margin-left: 2rem;
  opacity: 0.6;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- section base ---------- */
section {
  padding: 5.5rem 0;
}
.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.tag {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.section-title {
  font-family: "Plus Jakarta Sans", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- products ---------- */
/* 色付きパネル（products / works / contact）は内側に余白を持たせる。
   .wrap は左右パディングを持たないため、パネル背景だと内容が縁に貼り付く。 */
.products,
.works {
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 3.8rem) clamp(1.4rem, 4vw, 3.2rem);
}
.products {
  background: var(--bg-warm);
}
.subhead {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2.2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.subhead:first-of-type {
  margin-top: 0;
}
.subhead .sh-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
/* 横長のフィーチャーカード（ブラウザで遊べる oshiriai 用） */
.pcard.feature {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
/* feature カードは横並び + align-items:center なので、下マージンが残ると
   マージンボックスの中央揃えでアイコンが上にずれる。 */
.pcard.feature .pcard-emoji,
.pcard.feature .pcard-icon {
  margin-bottom: 0;
}
.pcard.feature .feature-body {
  flex: 1 1 320px;
}
.pcard.feature .feature-body p {
  margin-bottom: 0.9rem;
}
.pcard.feature .feature-cta {
  flex-shrink: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pcard-emoji {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 1.1rem;
  background: var(--teal-soft);
}
/* 製品の実アイコン。絵文字バッジ（.pcard-emoji）と同じ寸法で差し替える。
   実アイコンが存在する製品にだけ使う（無い製品に別画像を当てない）。 */
.pcard-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: block;
  margin-bottom: 1.1rem;
  object-fit: cover;
  background: var(--bg-warm);
}
.pcard-emoji.coral {
  background: var(--coral-soft);
}
.pcard-emoji.sun {
  background: #fff3d6;
}
.pcard h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.pcard .role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.pcard p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal-ink);
  background: var(--teal-soft);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.chip.status {
  color: var(--coral);
  background: var(--coral-soft);
}

/* ---------- services / how ---------- */
.svc-grid,
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.how-grid {
  grid-template-columns: repeat(4, 1fr);
}
.svc,
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.svc-ic {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}
.svc h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.svc p,
.step p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.step-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.step h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

/* ---------- works (anonymized) ---------- */
.works {
  background: var(--teal-soft);
}
.work-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.work-row:last-child {
  margin-bottom: 0;
}
.work-badge {
  flex-shrink: 0;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-warm);
}
.work-row h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}
.work-row p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.work-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.why-item h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.why-item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.why-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.why-figure img {
  border-radius: var(--radius);
  height: 340px;
  width: 100%;
  object-fit: contain;
  background: var(--bg-warm);
}

/* ---------- contact ---------- */
.contact {
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.8rem) clamp(1.4rem, 4vw, 3.2rem);
}
.contact .section-title,
.contact .logo {
  color: #fff;
}
.contact .section-sub {
  color: #c4ccd3;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem;
  color: var(--ink);
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.hp-trap {
  position: absolute;
  left: -9999px;
}
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.form-status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
}
.form-status.ok {
  display: block;
  color: var(--teal-ink);
}
.form-status.err {
  display: block;
  color: var(--coral);
}

/* ---------- footer ---------- */
footer {
  padding: 3.5rem 0 2.5rem;
}
/* 列数がページごとに違う（サービス面は 3 列、ゲーム列を足すと 4 列）ため、
   固定の grid ではなく wrap する flex にして列数に依存させない。 */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid > div:first-child {
  flex: 2 1 250px;
}
.footer-col {
  flex: 1 1 150px;
}
.footer-grid p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 20rem;
  margin-top: 0.6rem;
}
.footer-col h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--teal-ink);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- サービス詳細ページ（/services/ 配下） ---------- */
/* 固定 nav の下にアンカー先が潜り込まないよう、見出しに逃げ幅を持たせる。
   営業メールで /services/flucra/#insurance のようにアンカー付きで貼るため必須。 */
section[id],
article[id],
header[id] {
  scroll-margin-top: 6rem;
}

.sub-hero {
  padding: 8.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.sub-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--teal-soft) 0%, transparent 68%);
  z-index: 0;
}
.sub-hero .wrap {
  position: relative;
  z-index: 1;
}
.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.crumb a {
  color: var(--ink-soft);
}
.crumb a:hover {
  color: var(--teal-ink);
}
.crumb span {
  margin: 0 0.4rem;
}
.sub-hero h1 {
  font-family: "Plus Jakarta Sans", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
/* 「一言でいうと何か」。詳細ページの冒頭で必ず出す。 */
.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 44rem;
  margin-bottom: 1.8rem;
}
.sub-hero .chips {
  margin-bottom: 1.8rem;
}

/* ページ内アンカー（業種別セクションへのジャンプ） */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.jump b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  align-self: center;
  margin-right: 0.3rem;
}
.jump a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-ink);
  background: var(--teal-soft);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s;
}
.jump a:hover {
  background: #cdeeeb;
}

/* 節タイトル（詳細ページ内の見出し） */
.block {
  padding: 3.5rem 0;
}
.block.tint {
  background: var(--bg-warm);
}
.block-title {
  font-family: "Plus Jakarta Sans", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}
.block-sub {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

/* 課題カード（「こういう場面で困っていませんか」） */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.pain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.pain .quote {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.pain p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Before / After */
.ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.4rem;
  align-items: stretch;
}
.ba-col {
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
}
.ba-col.before {
  background: var(--surface);
}
.ba-col.after {
  background: var(--teal-soft);
  border-color: transparent;
}
.ba-col h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.ba-col.after h3 {
  color: var(--teal-ink);
}
.ba-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ba-col li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding-left: 1.5rem;
  position: relative;
}
.ba-col.before li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 800;
}
.ba-col.after li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-ink);
  font-weight: 800;
}
.ba-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--coral);
  font-weight: 800;
}

/* 業種別ユースケース */
.uc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.uc:last-of-type {
  margin-bottom: 0;
}
.uc-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.uc-badge {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--bg-warm);
}
.uc-head h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
}
.uc-head p {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.uc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.uc-body h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--coral);
  margin-bottom: 0.6rem;
}
.uc-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.uc-body li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
}
.uc-body li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.uc-body .col-after h4 {
  color: var(--teal-ink);
}

/* 仕組み（番号付きの縦リスト） */
.mech {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mech-row {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.mech-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
}
.mech-row h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.mech-row p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 48rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}
.faq summary {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "＋";
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: "－";
}
.faq details p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

/* ページ末尾の CTA 帯 */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(2.2rem, 4vw, 3.2rem);
  text-align: center;
}
.cta-band h2 {
  font-family: "Plus Jakarta Sans", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.cta-band p {
  color: #c4ccd3;
  font-size: 0.98rem;
  max-width: 34rem;
  margin: 0 auto 1.8rem;
}
.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-band .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}
.cta-btns {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* サービス一覧ハブのカード */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.hub-card h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.hub-card .role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.hub-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.hub-card .more {
  margin-top: auto;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--teal-ink);
}

/* トップのカードから詳細ページへ送る導線 */
.pcard .more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--teal-ink);
}
.pcard .more:hover {
  color: var(--teal);
}

@media (max-width: 920px) {
  .pain-grid,
  .hub-grid,
  .uc-body {
    grid-template-columns: 1fr;
  }
  .ba {
    grid-template-columns: 1fr;
  }
  .ba-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ---------- ゲーム詳細ページ（/games/ 配下） ---------- */
/* タイトルの横に実アイコンを大きく置く。実アイコンが無い製品には使わない
   （`docs/rules/rule-content.md`）。 */
.game-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.game-icon {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  object-fit: cover;
  background: var(--bg-warm);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.game-head h1 {
  font-family: "Plus Jakarta Sans", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.game-head .tagline {
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* 基本情報テーブル */
.factsheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.factsheet th,
.factsheet td {
  text-align: left;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.factsheet tr:last-child th,
.factsheet tr:last-child td {
  border-bottom: 0;
}
.factsheet th {
  width: 30%;
  color: var(--muted);
  font-weight: 700;
  background: var(--bg-warm);
}
.factsheet td {
  color: var(--ink-soft);
}

/* 開発状況の注記 */
.status-note {
  background: var(--coral-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.status-note b {
  color: var(--coral);
}

/* キービジュアル（サブヒーロー直下の 1 枚） */
.keyvisual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-warm);
}
.keyvisual img {
  width: 100%;
  height: auto;
  display: block;
}

/* スクリーンショット / 図解のギャラリー。
   実際のゲーム画面かどうかは figcaption で必ず区別できるようにする
   （`docs/rules/rule-content.md` の事実性）。 */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.shots.two {
  grid-template-columns: repeat(2, 1fr);
}
.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-warm);
}
.shot figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.shot figcaption b {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
/* 「開発中の画面」「図解」など、実機の完成画面と誤読させない注記 */
.shots-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .shots,
  .shots.two {
    grid-template-columns: 1fr;
  }
}

/* ゲーム一覧カード */
.game-card {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.game-card:last-of-type {
  margin-bottom: 0;
}
.game-card img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--bg-warm);
  flex-shrink: 0;
}
.game-card .game-card-body {
  flex: 1 1 300px;
}
.game-card h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}
.game-card .role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.game-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.game-card .more {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--teal-ink);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .game-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }
  .factsheet th {
    width: 38%;
  }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .card-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  /* ナビを丸ごと隠すと「お問い合わせ」CTA まで消えて導線が切れるため、
     テキストリンクだけ畳んで CTA ボタンは残す。 */
  .nav-links {
    gap: 0.6rem;
  }
  .nav-links li:not(.nav-cta) {
    display: none;
  }
  .nav-links .btn {
    padding: 0.55rem 1.05rem;
    font-size: 0.85rem;
  }
  .how-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .work-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
