:root {
  --bg: #ffffff;
  --bg-2: #f2f2f5;
  --ink: #16161a;
  --ink-2: #45454b;
  --ink-3: #66666d;
  --line: #d2d2d7;
  --line-2: #e4e4ea;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
          "Yu Gothic UI", "Yu Gothic Medium", "Yu Gothic", Meiryo,
          "Noto Sans JP", sans-serif;
  --max: 1000px;
  --wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }

/* nav */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-2);
}
.site-head .wrap-wide {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; gap: 20px;
}
.brand { font-size: 15px; font-weight: 600; text-decoration: none; }
.nav { display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { text-align: center; transition: background-color .7s ease; }
.hero .inner { padding: 76px 22px 0; }
.logo-en {
  font-size: clamp(46px, 8.4vw, 92px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0;
}
.logo-ja {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600; color: var(--ink);
  letter-spacing: .16em; margin: 18px 0 0;
}
.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2); margin: 20px auto 0; max-width: 30em;
}

.stage-wrap { max-width: 760px; margin: 44px auto 0; padding: 0 22px; }
.stage {
  aspect-ratio: 16/10;
  border-radius: 22px;
  background: #e4e4ea center 22% / cover no-repeat;
  transition: background-color .7s ease;
}
.greet { font-size: 17px; color: var(--ink-2); margin: 22px auto 0; max-width: 32em; }

/* segmented control */
.segment {
  display: inline-flex; gap: 3px; margin: 28px auto 0;
  background: var(--bg-2); border-radius: 999px; padding: 4px;
}
.segment button {
  border: 0; background: transparent; cursor: pointer;
  border-radius: 999px; padding: 8px 20px;
  font-size: 15px; color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.segment button:hover { color: var(--ink); }
.segment button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; }
.seg-cap { display: block; font-size: 14px; color: var(--ink-3); margin-top: 14px; }

/* hero cast */
.cast { margin: 50px auto 0; }
.cast-label { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.cast-label b { font-weight: 600; color: var(--ink-2); }
.cast-label i { font-style: normal; }
.cast-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cast-row a, .cast-row .ghost {
  width: 72px; border: 0; background: transparent; padding: 0;
  text-align: center; text-decoration: none; display: block;
}
.cast-row .ghost { cursor: default; }
.cast-row .f {
  display: block; width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-2) center 22% / cover no-repeat;
  margin-bottom: 9px; transition: transform .2s ease;
}
.cast-row a:hover .f { transform: scale(1.06); }
.cast-row a:focus-visible .f { outline: 2px solid var(--ink); outline-offset: 3px; }
.cast-row .n { display: block; font-size: 14px; color: var(--ink-2); }

/* sections */
section { padding: 96px 0 0; }
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.3; }
.sec-head span { display: block; font-size: 16px; color: var(--ink-3); margin-top: 10px; }

/* roster */
.group + .group { margin-top: 54px; }
.group-label { text-align: center; margin-bottom: 24px; }
.group-label b { display: block; font-size: 20px; font-weight: 600; }
.group-label i { font-style: normal; font-size: 15px; color: var(--ink-3); }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 16px; }
.chip {
  display: block; border: 0; background: var(--bg-2); border-radius: 18px;
  padding: 0 0 18px; color: inherit; width: 100%; text-decoration: none;
  overflow: hidden; text-align: center; line-height: 1.6;
  transition: transform .22s ease;
}
.chip:hover { transform: translateY(-4px); }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.chip .face {
  display: block; width: 100%; aspect-ratio: 4/5; margin-bottom: 14px;
  background: #e4e4ea center top / cover no-repeat;
}
.chip .cname { display: block; font-size: 17px; font-weight: 600; }
.chip .ctitle { display: block; font-size: 14px; color: var(--ink-3); margin-top: 1px; }
.chip.ghost { color: var(--ink-3); }
.chip.ghost:hover { transform: none; }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

/* detail */
.detail { margin-top: 46px; background: var(--bg-2); border-radius: 24px; padding: 40px; }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center; }
.detail .portrait {
  width: 100%; aspect-ratio: 4/5; border-radius: 18px;
  background: #e4e4ea center top / cover no-repeat;
}
.detail .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.detail h3 { font-size: 40px; font-weight: 600; letter-spacing: -.025em; margin: 0; line-height: 1.25; }

/* 所属バッジ — 文字は常に濃色。色は左の丸だけで示す */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; line-height: 1;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px 7px;
  white-space: nowrap; vertical-align: middle;
}
.tag .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.detail .role { font-size: 16px; color: var(--ink-3); margin: 0 0 22px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 16px; margin: 0 0 22px; }
.facts dt { color: var(--ink-3); margin: 0; }
.facts dd { color: var(--ink); margin: 0; }
.quote { font-size: 20px; color: var(--ink); margin: 0 0 16px; letter-spacing: -.01em; }
.note { color: var(--ink-2); font-size: 16px; margin: 0; }
.count { display: block; color: var(--ink-3); font-size: 15px; margin: 22px 0 14px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 999px; padding: 13px 28px;
  color: #fff; background: var(--ink);
  font-size: 16px; text-decoration: none; display: inline-block; line-height: 1.4;
  transition: opacity .18s ease;
}
.btn:hover { opacity: .82; }
.btn-ghost {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 28px; font-size: 16px; text-decoration: none;
  color: var(--ink); display: inline-block; background: #fff; line-height: 1.4;
  transition: background .18s ease;
}
.btn-ghost:hover { background: var(--bg-2); }

/* panels / works */
.panel { background: var(--bg-2); border-radius: 24px; padding: 14px 34px; }
.works { list-style: none; margin: 0; padding: 0; }
.works li {
  border-bottom: 1px solid var(--line-2); padding: 22px 0;
  display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap;
}
.works li:last-child { border-bottom: 0; }
.works .date { color: var(--ink-3); font-size: 15px; min-width: 76px; }
.works .wt { font-size: 17px; }
.works .pf { font-size: 14px; color: var(--ink-3); margin-left: auto; }

/* about */
.about-lead { font-size: 18px; color: var(--ink-2); text-align: center; margin: 0 auto 34px; max-width: 32em; }
.notice { font-size: 15px; color: var(--ink-2); text-align: center; margin: 0 auto 26px; max-width: 34em; }
.channels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; padding: 0; margin: 0 0 14px; list-style: none;
}
.channels a {
  display: block; text-align: center; text-decoration: none;
  background: var(--bg-2); border-radius: 18px; padding: 26px 14px;
  transition: transform .22s ease;
}
.channels a:hover { transform: translateY(-4px); }
.channels .cn { font-size: 18px; font-weight: 600; }
.channels .cd { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* 画像が入るまでのプレースホルダー */
.ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-weight: 600; color: var(--ink-3);
  letter-spacing: .04em; user-select: none;
}
.face .ph { font-size: 40px; }
.portrait .ph, .cp-visual .ph { font-size: 68px; }
.cast-row .f .ph, .mini .f .ph { font-size: 24px; }

/* character page */
.crumb { font-size: 15px; color: var(--ink-3); padding: 26px 0 0; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

.cp { padding: 40px 0 0; }
.cp-visual {
  width: 100%; max-width: 520px; margin: 0 auto 46px;
  aspect-ratio: 4/5; border-radius: 24px;
  background-position: center top; background-size: cover; background-repeat: no-repeat;
  background-color: #e4e4ea;
}
.cp-body { text-align: center; max-width: 34em; margin: 0 auto; }
.cp-head { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cp-head h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 600; letter-spacing: -.03em; margin: 0; line-height: 1.2; }
.cp-title { font-size: 17px; color: var(--ink-3); margin: 10px 0 32px; }
.cp .facts { text-align: left; max-width: 22em; margin: 0 auto 28px; }
.cp .quote { font-size: 23px; }

.shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.shop {
  display: block; text-align: center; text-decoration: none;
  background: var(--bg-2); border-radius: 18px; padding: 26px 16px;
  transition: transform .22s ease;
}
.shop:hover { transform: translateY(-4px); }
.shop b { display: block; font-size: 19px; font-weight: 600; }
.shop i { display: block; font-style: normal; font-size: 14px; color: var(--ink-3); margin-top: 4px; }

.minis { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.mini { width: 96px; text-decoration: none; text-align: center; }
.mini .f {
  display: block; width: 96px; height: 96px; border-radius: 50%;
  background: var(--bg-2) center 22% / cover no-repeat; margin-bottom: 10px;
  transition: transform .2s ease;
}
.mini:hover .f { transform: scale(1.06); }
.mini .n { font-size: 15px; color: var(--ink-2); }

footer {
  margin-top: 110px; border-top: 1px solid var(--line-2);
  padding: 28px 0 48px; color: var(--ink-3); font-size: 14px; text-align: center;
}

@media (max-width: 820px) {
  .hero .inner { padding-top: 54px; }
  .detail { padding: 26px; }
  .detail-grid { grid-template-columns: 1fr; gap: 26px; }
  .detail .portrait { max-width: 300px; margin: 0 auto; }
  .detail h3 { font-size: 32px; }
  section { padding-top: 68px; }
  .panel { padding: 8px 22px; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .roster { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
  .cast-row .f, .cast-row button, .cast-row .ghost { width: 62px; }
  .cast-row .f { height: 62px; }
  .segment button { padding: 8px 15px; font-size: 14px; }
}
