/*
 * 07 制作会社詳細 / 08 事務所詳細 / 13-16 声優・キャラ・制作会社・事務所一覧
 * 正本: renewal_design「07 制作会社詳細」「08 事務所詳細」「13-16 声優・キャラ・制作会社・事務所一覧」（PC 1280 / SP 375）
 * 接頭辞: org-（共通）/ prod-（07）/ off-（08）
 */

/* ------------------------------------------------------------ 07 / 08 ヒーロー（頭文字のモノグラム＋数値） */
.org-hero { position: relative; background: var(--c-dark); color: #fff; overflow: hidden; }
.org-hero__glow { position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 80%, rgba(222,0,122,.45), transparent 70%), radial-gradient(500px 260px at 90% 10%, rgba(245,59,80,.25), transparent 70%); }
.org-hero__glow--office { background: radial-gradient(600px 300px at 15% 90%, rgba(222,0,122,.45), transparent 70%), radial-gradient(500px 260px at 90% 0%, rgba(245,59,80,.25), transparent 70%); }
.org-hero__in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 22px 24px 30px; }
.org-hero__grid { display: grid; grid-template-columns: 140px minmax(0, 1fr); grid-template-areas: "mono head" "mono stats"; column-gap: 32px; align-items: center; }
.org-hero__mono { grid-area: mono; width: 140px; height: 140px; border-radius: 28px; background: var(--grad-tile); display: grid; place-items: center; font-size: 72px; font-weight: 900; line-height: 1; box-shadow: 0 12px 40px rgba(222,0,122,.4); }
.org-hero__mono--kanji { font-size: 64px; }
.org-hero__head { grid-area: head; min-width: 0; align-self: end; }
.org-hero__kind { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.org-hero h1 { font-size: 40px; line-height: 1.2; font-weight: 900; margin: 0 0 16px; overflow-wrap: anywhere; }
.org-hero__stats { grid-area: stats; align-self: start; display: flex; gap: 10px; flex-wrap: wrap; min-width: 0; }
.org-stat { padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); min-width: 130px; }
.org-stat__k { font-size: 11px; color: rgba(255,255,255,.7); }
.org-stat__k--gap { margin-bottom: 6px; }
.org-stat__v { font-size: 20px; font-weight: 900; line-height: 1.3; }
.org-stat--wide { min-width: 0; }
.org-stat--note { display: flex; align-items: center; font-size: 12px; color: rgba(255,255,255,.75); line-height: 1.5; min-width: 0; }
.org-stat__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.org-stat__chips a { font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 999px; text-decoration: none; line-height: 1.5; }
.org-stat__chips a:hover { background: rgba(255,255,255,.24); color: #fff; }
.org-stat__chips span { font-weight: 400; color: rgba(255,255,255,.7); }

/* ------------------------------------------------------------ 07 / 08 共通 */
.org-main--office { gap: 32px; }
.org-empty { font-size: 14px; color: var(--c-sub); padding: 24px 0; }
.org-result { font-size: 13px; color: var(--c-sub); margin: 0 0 12px; }
.org-result a { font-weight: 700; text-decoration: none; margin-left: 6px; }

/* 並び替え（PC は切り替え、スマホは横スクロールのチップ） */
.org-sort { display: inline-flex; background: var(--c-soft); border-radius: 999px; padding: 3px; flex: none; }
.org-sort a { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c-sub); text-decoration: none; line-height: 1.5; white-space: nowrap; }
.org-sort a:hover { color: var(--c-ink); }
.org-sort a[aria-current] { background: #fff; color: var(--c-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* 50 音（PC 36px の角丸） */
.org-kana { display: flex; gap: 4px; flex-wrap: wrap; }
.org-kana a { min-width: 36px; height: 36px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--c-text); text-decoration: none; background: var(--c-soft); }
.org-kana a:hover { background: var(--c-accent-soft); color: var(--c-accent); }
.org-kana a[aria-current] { background: var(--c-accent); color: #fff; }

/* 下の帯（まとめの注記・一覧への導線と共有） */
.org-foot { background: var(--c-soft); border-radius: 20px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.org-foot__text { font-size: 13px; color: var(--c-sub); line-height: 1.7; display: flex; flex-direction: column; }
.org-foot__text a { font-weight: 700; text-decoration: none; }
.org-share { display: flex; gap: 8px; }
.org-share__btn { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.org-share__btn--x { background: var(--c-ink); }
.org-share__btn--line { background: #06c755; font-size: 11px; }
.org-share__btn--fb { background: #1877f2; }

/* ------------------------------------------------------------ 07 代表作 */
.prod-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prod-top__card { display: block; position: relative; text-decoration: none; color: #fff; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: #a6a6a6; }
.prod-top__card:hover { color: #fff; }
.prod-top__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-top__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.prod-top__body { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.prod-top__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 900; line-height: 1.35; }
.prod-top__meta { display: block; font-size: 12px; color: rgba(255,255,255,.8); margin-top: 3px; }

/* ------------------------------------------------------------ 07 制作したアニメ作品 */
.prod-works__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.prod-works__head .sec-title { margin: 0; }
.prod-works__tools { display: flex; align-items: center; gap: 12px; }
.prod-works__search { font-size: 13px; font-weight: 700; text-decoration: none; }
.prod-years { display: flex; flex-direction: column; gap: 28px; }
.prod-year { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
.prod-year__label { font-size: 24px; font-weight: 900; color: var(--c-accent); line-height: 1; padding-top: 4px; }
.prod-year__unknown { font-size: 15px; line-height: 1.3; display: block; }
.prod-year__n { display: block; font-size: 12px; color: var(--c-sub); font-weight: 500; margin-top: 6px; }
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prod-grid--flat { row-gap: 20px; }
.prod-card { display: block; text-decoration: none; color: var(--c-ink); min-width: 0; }
.prod-card:hover { color: var(--c-ink); }
.prod-card:hover .prod-card__title { color: var(--c-accent); }
.prod-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; display: block; background: #a6a6a6; }
.prod-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.4; margin-top: 8px; }
.prod-card__meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--c-sub); white-space: nowrap; }
.prod-card__meta b { color: var(--c-ink); }
.prod-card__vod { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--c-text); background: var(--c-soft); border-radius: 4px; padding: 1px 5px; line-height: 1.5; }
.prod-more { margin: 28px auto 0; display: table; height: 48px; line-height: 45px; padding: 0 32px; border-radius: 999px; border: 1.5px solid var(--c-accent); background: #fff; color: var(--c-accent); font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; }
.prod-more:hover { background: var(--c-accent-soft); }

/* ------------------------------------------------------------ 08 所属声優 */
.org-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title form sort" "kana kana kana"; align-items: center; column-gap: 10px; row-gap: 16px; margin-bottom: 16px; }
.org-filter__title { grid-area: title; margin: 0; }
.org-filter__form { grid-area: form; display: flex; align-items: center; width: 240px; height: 40px; border: 1.5px solid #d9d9de; border-radius: 999px; padding: 0 14px; gap: 8px; color: var(--c-sub); }
.org-filter__form:focus-within { border-color: var(--c-accent); }
.org-filter__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; color: var(--c-ink); height: 100%; padding: 0; }
.org-filter__row { display: contents; }
.org-filter .org-sort { grid-area: sort; }
.org-filter .org-kana { grid-area: kana; }

.off-list { border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; }
.off-row { display: grid; grid-template-columns: 64px 200px 110px minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid #f0f0f2; text-decoration: none; color: var(--c-ink); }
.off-row:last-child { border-bottom: 0; }
.off-row:hover { background: #fafafa; color: var(--c-ink); }
.off-row img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #a6a6a6; display: block; }
.off-row__name { min-width: 0; }
.off-row__name b { display: block; font-size: 16px; font-weight: 700; line-height: 1.5; }
.off-row__kana { display: block; font-size: 12px; color: var(--c-sub); }
.off-row__count { font-size: 13px; color: var(--c-text); white-space: nowrap; }
.off-row__count b { font-size: 18px; color: var(--c-ink); }
.off-row__works { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.off-row__works span { font-size: 12px; color: var(--c-text); background: var(--c-soft); border-radius: 6px; padding: 4px 10px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.off-row__arrow { color: var(--c-line-strong); font-size: 18px; }

/* ------------------------------------------------------------ 13-16 一覧の見出し（暗い帯＋名前検索） */
.org-lhead { background: var(--c-dark); color: #fff; }
.org-lhead__in { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px 26px; }
.org-lhead__crumb { color: rgba(255,255,255,.7); margin-bottom: 8px; gap: 4px; }
.org-lhead__crumb a, .org-lhead__crumb [aria-current] { color: rgba(255,255,255,.7); }
.org-lhead__crumb a:hover { color: #fff; }
.org-lhead h1 { margin: 0 0 16px; font-size: 28px; font-weight: 900; line-height: 1.4; }
.org-lhead h1 small { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); margin-left: 8px; }
.org-lhead__search { max-width: 560px; display: flex; align-items: center; height: 52px; border-radius: 999px; background: #fff; padding: 0 6px 0 18px; color: var(--c-sub); }
.org-lhead__search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 100%; padding: 0 12px; font-size: 15px; color: var(--c-ink); background: none; }

/* 50 音と並び替えの帯（上に貼りつく） */
.org-bar { position: sticky; top: 0; z-index: 5; background: #fff; }
.org-bar__in { max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.org-bar__form { display: flex; align-items: center; gap: 8px; }
.org-bar__form .pill-select select { max-width: 220px; text-overflow: ellipsis; field-sizing: content; }
.org-bar__go { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.org-bar__form:not(:has(.pill-select:not(.sp-only))) { display: none; }
.org-sort--bar a { padding: 7px 14px; font-size: 12px; }
.org-kana--bar { flex-wrap: nowrap; margin-right: auto; }

.org-lmain { max-width: var(--wrap); margin: 0 auto; padding: 10px 24px 56px; }
.org-lmain .pager { margin-top: 32px; }

/* 行（声優・制作会社・事務所） */
.org-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.org-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 14px; text-decoration: none; color: var(--c-ink); min-width: 0; }
.org-row:hover { border-color: var(--c-accent); color: var(--c-ink); }
.org-row__img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #a6a6a6; display: block; }
.org-row__mono { width: 56px; height: 56px; border-radius: 14px; background: var(--grad-tile); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 900; line-height: 1; }
.org-row__mono--soft { background: var(--c-accent-soft); color: var(--c-accent); }
.org-row__body { min-width: 0; }
.org-row__name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.org-row__name b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-row__cnt { font-size: 11px; color: var(--c-sub); flex: none; }
.org-row__sub { display: block; font-size: 12px; color: var(--c-sub); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-row__n { font-size: 12px; color: var(--c-text); text-align: right; line-height: 1.3; white-space: nowrap; }
.org-row__n b { font-size: 18px; color: var(--c-ink); }
.org-row--production .org-row__n b, .org-row--office .org-row__n b { font-size: 16px; }
.org-row__arrow { color: var(--c-line-strong); }

/* キャラクター（丸写真の格子） */
.org-charas { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px 12px; }
.org-chara { display: block; text-decoration: none; color: var(--c-ink); text-align: center; min-width: 0; }
.org-chara:hover { color: var(--c-accent); }
.org-chara img { width: 96px; height: 96px; max-width: 100%; border-radius: 50%; object-fit: cover; background: #a6a6a6; display: block; margin: 0 auto 8px; aspect-ratio: 1; }
.org-chara__name { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-chara__work { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; color: var(--c-sub); line-height: 1.4; }

/* ------------------------------------------------------------ スマホ（767px 以下） */
@media (max-width: 767px) {
  /* ヒーロー */
  .org-hero__glow, .org-hero__glow--office { background: radial-gradient(300px 200px at 10% 100%, rgba(222,0,122,.5), transparent 70%), radial-gradient(260px 160px at 100% 0%, rgba(245,59,80,.3), transparent 70%); }
  .org-hero__in { padding: 14px 16px 20px; }
  .org-hero__grid { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "mono head" "stats stats"; column-gap: 14px; }
  .org-hero__mono { width: 72px; height: 72px; border-radius: 18px; font-size: 38px; box-shadow: none; }
  .org-hero__mono--kanji { font-size: 34px; }
  .org-hero__head { align-self: center; }
  .org-hero__kind { font-size: 11px; margin-bottom: 2px; }
  .org-hero h1 { font-size: 26px; line-height: 1.25; margin: 0; }
  .org-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .org-stat { padding: 8px 12px; border-radius: 10px; min-width: 0; }
  .org-stat__k { font-size: 10px; }
  .org-stat__v { font-size: 16px; }
  .org-stat--wide { grid-column: 1 / -1; padding: 8px 12px 10px; }
  .org-stat__chips a { font-size: 11px; padding: 4px 9px; }
  .org-stat--note { grid-column: 1 / -1; padding: 0; margin-top: -2px; border: 0; background: none; border-radius: 0; font-size: 11px; color: rgba(255,255,255,.7); }

  .org-sort { display: flex; background: none; padding: 0; gap: 6px; }
  .org-sort a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--c-soft); font-size: 12px; color: var(--c-text); }
  .org-sort a[aria-current] { background: var(--c-ink); color: #fff; box-shadow: none; }

  .org-foot { border-radius: 0; margin: 0 -16px; padding: 18px 16px; display: block; }
  .org-foot__text { font-size: 12px; }
  .org-foot .org-share { margin-top: 10px; }
  .org-main:has(> .org-foot:last-child) { padding-bottom: 0; }

  /* 07 */
  .prod-top { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .prod-top::-webkit-scrollbar { display: none; }
  .prod-top__card { flex: none; width: 240px; border-radius: 12px; }
  .prod-top__body { left: 12px; right: 12px; bottom: 10px; }
  .prod-top__title { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prod-top__meta { font-size: 11px; margin-top: 0; }
  .prod-works__head { display: block; margin-bottom: 14px; }
  .prod-works__head .sec-title { margin-bottom: 10px; }
  .prod-works__tools { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .prod-works__tools::-webkit-scrollbar { display: none; }
  .prod-years { gap: 18px; }
  .prod-year { display: block; }
  .prod-year__label { display: flex; align-items: baseline; gap: 8px; font-size: 20px; line-height: 1.3; padding: 0; margin-bottom: 10px; }
  .prod-year__unknown { font-size: 15px; display: inline; }
  .prod-year__n { display: inline; margin: 0; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .prod-card img { border-radius: 8px; }
  .prod-card__title { font-size: 13px; margin-top: 6px; }
  .prod-card__meta--sp { display: block; font-size: 11px; margin-top: 2px; }
  .prod-more { display: block; width: 100%; margin-top: 20px; }

  /* 08 */
  .org-main--office { gap: 26px; }
  .org-filter { display: block; margin-bottom: 0; }
  .org-filter__title { margin-bottom: 10px; }
  .org-filter__form { width: auto; height: 44px; margin-bottom: 10px; }
  .org-filter__row { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
  .org-filter__row::-webkit-scrollbar { display: none; }
  .org-filter .org-sort { display: contents; }
  .org-filter .org-kana { display: contents; }
  .org-filter .org-kana a { flex: none; width: 36px; min-width: 0; height: 36px; padding: 0; border-radius: 999px; font-size: 12px; }
  .org-filter .org-kana a[aria-current] { background: var(--c-accent); }

  .off-list { border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 8px; }
  .off-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img name arrow" "img works arrow"; gap: 0 12px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 12px; }
  .off-row:last-child { border-bottom: 1px solid var(--c-line); }
  .off-row img { grid-area: img; width: 48px; height: 48px; }
  .off-row__name { grid-area: name; display: flex; align-items: baseline; gap: 8px; }
  .off-row__name b { font-size: 15px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .off-row__cnt { flex: none; font-size: 11px; color: var(--c-sub); }
  .off-row__wtext { grid-area: works; display: block; font-size: 11px; color: var(--c-sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .off-row__arrow { grid-area: arrow; font-size: 14px; }

  /* 13-16 */
  .org-lhead__in { padding: 14px 16px 18px; }
  .org-lhead__crumb { font-size: 11px; margin-bottom: 6px; }
  .org-lhead h1 { font-size: 22px; margin-bottom: 12px; }
  .org-lhead h1 small { font-size: 12px; margin-left: 2px; }
  .org-lhead__search { height: 46px; padding: 0 16px; }
  .org-lhead__search svg { width: 16px; height: 16px; }
  .org-lhead__search input { font-size: 14px; padding: 0 0 0 8px; }

  .org-bar { border-bottom: 1px solid var(--c-line); }
  .org-bar__in { padding: 10px 16px; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .org-bar__in::-webkit-scrollbar { display: none; }
  .org-bar__form { order: -1; margin-left: 0; gap: 6px; flex: none; }
  .org-bar__form:not(:has(.pill-select:not(.sp-only))) { display: flex; }
  .org-bar .pill-select { height: 38px; font-size: 12px; }
  .org-bar .pill-select select { max-width: 180px; padding: 0 26px 0 12px; field-sizing: content; }
  .pill-select--dark { background: var(--c-ink); border-color: var(--c-ink); }
  .pill-select--dark select { color: #fff; }
  .pill-select--dark::after { color: #fff; right: 10px; }
  .org-bar__go { height: 38px; flex: none; }
  .org-kana--bar { display: contents; }
  .org-kana--bar a { flex: none; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; }

  .org-lmain { padding: 12px 16px 28px; }
  .org-lmain .pager { margin-top: 24px; }
  .count-note { margin-top: 8px; }
  .org-rows { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .org-row { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; }
  .org-row__img { width: 48px; height: 48px; flex: none; }
  .org-row__mono { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; flex: none; }
  .org-row__body { flex: 1; }
  .org-row__name b { font-size: 15px; }
  .org-row__sub { font-size: 11px; margin-top: 3px; }
  .org-row--production .org-row__sub, .org-row--office .org-row__sub { margin-top: 2px; }
  .org-row__n { flex: none; font-size: 12px; }
  .org-row__arrow { flex: none; }
  .org-charas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
  .org-chara img { width: 76px; height: 76px; margin-bottom: 6px; }
  .org-chara__name { font-size: 12px; }
  .org-chara__work { font-size: 10px; }
}
