/* agency.css — 事務所ページ固有のスタイル。creator.css の後に読み込む。
   トークン・ナビ・フッター・見出し・.wrap・.band・section・.sec-head・.eyebrow・.lede・.cta は creator.css を流用する。
   hero・章・本文幅は campaign.css と同じ定義を持つ（campaign.css に依存させないため）。 */

/* ---------- hero（campaign と同じ） ---------- */
.agency-hero {
  padding: calc(clamp(24px, 3.5vw, 44px) + clamp(66px, 7.8vw, 78px)) 0 clamp(36px, 5vw, 56px);
  border-top: 0;
}
.agency-hero .eyebrow {
  display: block;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.agency-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.agency-hero .lede {
  margin-top: 12px;
  max-width: 36em;
  line-break: strict;
  word-break: auto-phrase;
}

/* ---------- ロゴの帯（柄はページ側で --agency-pattern / --agency-pattern-sp に渡す。白の半透明を重ねて薄く見せる） ---------- */
.agency-hero--banner {
  padding-top: 0;
}
.agency-banner {
  --agency-veil: rgba(var(--white-rgb), 0.5);
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
  background:
    linear-gradient(var(--agency-veil), var(--agency-veil)),
    var(--agency-pattern) center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 750px) {
  .agency-banner {
    background-image:
      linear-gradient(var(--agency-veil), var(--agency-veil)),
      var(--agency-pattern-sp);
  }
}
.agency-hero .agency-logo {
  margin: 0;
  line-height: 0;
}
.agency-logo img {
  display: block;
  width: min(360px, 76vw);
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(var(--text-quiet-rgb), 0.14));
}

.agency-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 章 ---------- */
.agency-sec {
  padding: clamp(48px, 6vw, 80px) 0;
}
.agency-sec .sec-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

/* ---------- 開催中のイベントの案内（data-start〜data-end の間だけ JS で表示する） ---------- */
.agency-event {
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  background: var(--accent-quiet);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  font-size: 0.93rem;
}
.agency-event[hidden] {
  display: none;
}
.agency-event b {
  font-weight: 900;
}
.agency-event a {
  color: var(--accent-text);
  font-weight: 700;
}

/* ---------- メンバーカード（全員を同じ大きさで並べる。最大 7 列で、カードが 144px を下回る幅では列が減る） ---------- */
.member-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(144px, (100% - 6 * 16px) / 7), 1fr));
  gap: 16px;
}
.member-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(var(--text-quiet-rgb), 0.1);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.member-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface-quiet);
}
.member-card h3 {
  font-size: 0.95rem;
  font-weight: 900;
}
.member-reading {
  margin-top: -6px;
  font-size: 0.75rem;
  color: var(--text-quiet);
}
.member-card .member-bio {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
}
.member-links {
  margin-top: auto;
  display: grid;
  gap: 6px;
  justify-items: center;
  font-size: 0.8rem;
}
.member-links a:not(.cta) {
  color: var(--accent-text);
  font-weight: 700;
}
.member-links .cta {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  padding-inline: 8px;
  white-space: normal;
  text-align: center;
}
.member-x {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 0.72rem;
}
.member-x svg {
  flex-shrink: 0;
}
.member-x span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
