/*
Theme Name: NOMU
Theme URI: https://no-mu.net
Author: NOMU Development Team
Description: NOMU Entertainment official website theme
Version: 0.1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: nomu
*/

/* ===== Variables ===== */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #646464;
  --line: #ececec;
  --soft: #f7f7f7;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
  --radius: 18px;
  /* ヘッダー高の共通参照（スクロール余白・sticky 重なり軽減） */
  --header-bar-h: 72px;
  /* 宣材写真のスタジオ背景に近いクールブルー系（アクセント） */
  --accent: #4a5f72;
  --accent-line: #8fa3b4;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
}

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

html {
  scroll-padding-top: calc(
    env(safe-area-inset-top, 0px) + var(--header-bar-h) + 12px
  );
}

/* トップのアンカーリンク: 固定ヘッダー下で見出しが隠れないよう余白 */
#news,
#talent,
#company,
#contact,
#audition {
  scroll-margin-top: calc(
    env(safe-area-inset-top, 0px) + var(--header-bar-h) + 12px
  );
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

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

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

/* ===== Intro splash（トップのみ・白背景・ロゴ） ===== */
html.nomu-intro-active,
body.nomu-intro-active {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

body.nomu-intro-active {
  touch-action: none;
}

.nomu-intro {
  position: fixed;
  inset: 0;
  z-index: 99990;
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.nomu-intro--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nomu-intro__inner {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(clamp(16px, 4vw, 32px), env(safe-area-inset-top))
    max(clamp(16px, 4vw, 32px), env(safe-area-inset-right))
    max(clamp(16px, 4vw, 32px), env(safe-area-inset-bottom))
    max(clamp(16px, 4vw, 32px), env(safe-area-inset-left));
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

.nomu-intro .nomu-intro__logo {
  display: block;
  width: min(300px, 69vw);
  max-width: 100%;
  height: auto;
  max-height: min(54vh, 360px);
  margin: 0 auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0;
  transform: translate3d(0, 36px, 0);
}

.nomu-intro--logo-in .nomu-intro__logo {
  animation: nomu-intro-logo-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes nomu-intro-logo-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nomu-intro .nomu-intro__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .nomu-intro .nomu-intro__logo {
    width: min(200px, 58vw);
    max-height: min(30vh, 180px);
  }
}

@media (max-width: 380px) {
  .nomu-intro .nomu-intro__logo {
    width: min(168px, 54vw);
    max-height: min(28vh, 160px);
  }
}

/* ===== Layout ===== */
.container {
  width: min(1000px, 92%);
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  --header-bar-h: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  /* backdrop-filter があると fixed 子の包含ブロックになり、SP ナビがヘッダー高に潰れる */
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  overflow: visible;
}

.logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.logo__mark {
  display: block;
  height: clamp(36px, 5.2vw, 44px);
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.24s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

.nav-backdrop {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin: 0 0 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 10050;
  }

  .nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
  }

  .nav-toggle__bar + .nav-toggle__bar {
    margin-top: 6px;
  }

  .site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-backdrop:not([hidden]) {
    display: block;
  }

  .nav-backdrop {
    position: fixed;
    z-index: 10040;
    left: 0;
    right: 0;
    top: var(--header-bar-h);
    height: calc(100dvh - var(--header-bar-h));
    min-height: calc(100vh - var(--header-bar-h));
    background: rgba(0, 0, 0, 0.22);
  }

  .admin-bar .nav-backdrop {
    top: calc(46px + var(--header-bar-h));
    height: calc(100dvh - 46px - var(--header-bar-h));
    min-height: calc(100vh - 46px - var(--header-bar-h));
  }

  .nav {
    position: fixed;
    z-index: 10041;
    left: 0;
    right: 0;
    top: var(--header-bar-h);
    height: calc(100dvh - var(--header-bar-h));
    min-height: calc(100vh - var(--header-bar-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 28px;
    margin: 0;
    max-height: none;
    background: rgba(255, 255, 255, 0.98);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.28s ease,
      visibility 0.28s ease;
  }

  .site-header.is-nav-open .nav {
    transform: translateX(0);
    visibility: visible;
  }

  .admin-bar .nav {
    top: calc(46px + var(--header-bar-h));
    height: calc(100dvh - 46px - var(--header-bar-h));
    min-height: calc(100vh - 46px - var(--header-bar-h));
  }

  .nav a {
    padding: 14px 24px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a::after {
    display: none;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .nav-toggle__bar,
  .nav {
    transition: none;
  }
}

/* ===== Hero ===== */
.hero {
  padding: clamp(40px, 8vw, 50px) 0 clamp(34px, 5vw, 40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 2.7vw, 32px);
  align-items: stretch;
}

.hero-main {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: clamp(430px, 60vw, 610px);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(8deg, rgba(0, 0, 0, 0.65), transparent 52%);
  z-index: 1;
}

.hero-main img {
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 2;
  color: #fff;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-copy h1 {
  margin: 10px 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  font-weight: 800;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  opacity: 0.9;
  max-width: 42ch;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(16px, 2vw, 22px);
}

.mini-spot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  min-height: 290px;
}

.mini-spot img {
  width: 100%;
  height: 100%;
}

.hero-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 24px);
  background: linear-gradient(130deg, #ffffff 0%, #fafafa 100%);
}

.hero-note .kicker {
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-note p {
  margin: 0;
  line-height: 1.9;
  font-size: 0.94rem;
  color: #2a2a2a;
}

/* ===== Front promo slider (TOP) ===== */
.front-promo {
  padding: clamp(20px, 3.5vw, 36px) 0 clamp(28px, 4vw, 44px);
}

.front-promo-slider {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.front-promo-slider .splide__track,
.front-promo-slider .splide__list {
  width: 100%;
}

.front-promo-slider .splide__slide {
  box-sizing: border-box;
  /* 21:9 だと縦が足りず画像内テキストが切れやすい → 16:9 で縦に余裕を確保 */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* iOS Safari で aspect-ratio 高さと子の height:100% チェーンが破綻して
     縦が画像の自然幅基準で計算されてしまう不具合を回避するため、
     子要素を絶対配置でスライド枠に固定する。 */
  position: relative;
}

.front-promo-slider .front-promo-slider__link,
.front-promo-slider .front-promo-slider__frame {
  position: absolute;
  inset: 0;
  display: block;
}

.front-promo-slider .front-promo-slider__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.front-promo-slider .splide__arrow {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.front-promo-slider:hover .splide__arrow {
  opacity: 1;
}

.front-promo-slider .splide__arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--text);
}

.front-promo-slider .splide__pagination__page {
  background: #ccc;
  width: 7px;
  height: 7px;
  margin: 0 3px;
}

.front-promo-slider .splide__pagination__page.is-active {
  background: var(--accent);
  transform: scale(1);
}

@media (max-width: 720px) {
  .front-promo-slider .splide__arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
  }
}

/* ===== Sections ===== */
.section {
  padding: clamp(44px, 7vw, 88px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(20px, 3.2vw, 34px);
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Talent Grid ===== */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
}

.talent-card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease;
}

.talent-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.talent-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.talent-photo {
  /* 宣材の基準比率 2:3（頭切れ防止のため画像は cover ではなく contain） */
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.talent-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.45s ease;
  /* 写真はスムーズな補間（ギザつき対策で crisp-edges は使わない） */
  image-rendering: auto;
}

.talent-card:hover .talent-photo img {
  transform: scale(1.015);
}

.talent-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 8px;
}

.talent-name {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.talent-name-en {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.67rem;
  padding: 4px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #393939;
  background: #fff;
}

.social {
  margin: 0;
  margin-top: 2px;
  color: #2f2f2f;
  font-size: 0.86rem;
}

/* ===== News / Campaign Grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.news-card {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.news-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.news-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-media img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.news-card:hover .news-media img {
  transform: scale(1.04);
}

.news-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 6px;
}

.news-meta {
  margin: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--muted);
}

.news-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.news-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, var(--soft) 0%, #ececec 100%);
}

.news-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== News detail / archive ===== */
.news-detail {
  padding: clamp(24px, 4vw, 48px) 0;
}

.news-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.news-detail-back a:hover {
  color: var(--text);
}

.news-detail-header {
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.news-detail-header .news-meta {
  margin: 0 0 8px;
}

.news-detail-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.news-detail-thumb {
  margin-bottom: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.news-detail-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.news-detail-content.entry-content {
  max-width: 72ch;
  line-height: 1.9;
  font-size: 0.96rem;
  color: #2d2d2d;
}

.news-detail-content.entry-content > *:first-child {
  margin-top: 0;
}

.news-detail-content.entry-content p {
  margin: 0 0 1em;
}

.news-detail-content.entry-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-archive .news-pagination {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  justify-content: center;
}

.news-archive .news-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.news-archive .news-pagination a,
.news-archive .news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}

.news-archive .news-pagination span.current {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ===== About / Company ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(16px, 2.4vw, 24px);
}

.about-main,
.about-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(18px, 2.4vw, 28px);
}

.about-main p,
.about-side p {
  margin: 0;
  color: #2d2d2d;
  line-height: 1.9;
  font-size: 0.95rem;
}

.about-main p + p {
  margin-top: 1em;
}

.about-points {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.about-point {
  border-left: 2px solid #111;
  padding-left: 12px;
  font-size: 0.9rem;
  color: #2f2f2f;
}

.about-points-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-points-list li {
  border-left: 2px solid #111;
  padding-left: 12px;
  font-size: 0.9rem;
  color: #2f2f2f;
  line-height: 1.7;
}

.stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--soft);
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Company Info Table ===== */
.company-table {
  margin-top: 16px;
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.7;
  vertical-align: top;
}

.company-table th {
  font-weight: 500;
  white-space: nowrap;
  padding-right: 24px;
  color: var(--muted);
  width: 120px;
}

.company-business-list {
  margin: 0;
  list-style: none;
}

.company-business-list li {
  margin: 0.35em 0;
  line-height: 1.65;
}

/* ===== Split Layout ===== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}

.split > * {
  min-width: 0;
}

/* ===== Contact Section ===== */
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  background: var(--card);
  text-align: center;
}

.contact-card p {
  margin: 0;
  color: #2d2d2d;
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ===== Journal ===== */
.journal-card,
.audition-card:not(.audition-card--rich) {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--card);
  width: 100%;
  min-width: 0;
}

.audition-card--rich {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.audition-card--rich:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.09);
}

.audition-card__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--soft);
  border-bottom: 3px solid var(--accent-line);
}

.audition-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(255, 255, 255, 0.65) 100%
  );
  pointer-events: none;
}

.audition-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s ease;
}

.audition-card--rich:hover .audition-card__visual img {
  transform: scale(1.03);
}

.audition-card__body {
  padding: clamp(18px, 2.4vw, 28px);
  display: grid;
  gap: 12px;
}

/* grid 子が stretch せず、Contact の .cta と同じく内容幅になる */
.audition-card__body .cta {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.audition-card__head.section-head {
  margin-bottom: 4px;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px 12px;
}

.audition-card__head .section-title {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
}

.audition-card__badge {
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.journal-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e4e4e4;
}

.journal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.journal-date {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: #414141;
  letter-spacing: 0.04em;
}

.journal-item p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.audition-card:not(.audition-card--rich) h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.08rem;
}

.audition-card:not(.audition-card--rich) p {
  margin: 0;
  line-height: 1.9;
  color: #2f2f2f;
}

.audition-card__title {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  line-height: 1.35;
}

.audition-card__lead {
  margin: 0;
  line-height: 1.9;
  color: #2f2f2f;
  font-size: 0.93rem;
}

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

  .audition-card--rich:hover .audition-card__visual img {
    transform: none;
  }
}

/* ===== CTA Button ===== */
.cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #fff;
}

/* ===== FAQ ===== */
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.faq-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.faq-a {
  margin: 0;
  color: #2f2f2f;
  line-height: 1.8;
  font-size: 0.93rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(34px, 6vw, 64px);
  padding: 20px 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ===== Scroll Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 430px;
  }

  .talent-card {
    grid-column: span 6;
  }

  .news-card {
    grid-column: span 6;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 720px) {
  :root {
    --header-bar-h: 64px;
  }

  .site-header {
    --header-bar-h: 64px;
  }

  .site-header-inner {
    min-height: 64px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-main {
    min-height: 360px;
  }

  .hero-copy h1 {
    max-width: 16ch;
  }

  .talent-card {
    grid-column: span 12;
  }

  .news-card {
    grid-column: span 12;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .journal-item {
    grid-template-columns: 70px 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Talent Detail ===== */
.talent-detail {
  padding: clamp(24px, 4vw, 48px) 0;
}

.talent-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.talent-detail-back a:hover {
  color: var(--text);
}

/* Hero area: slider + profile side by side */
.talent-hero-area {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Grid + 画像の内在幅で列が膨らむのを防ぐ（Splide の幅計算が狂う原因になる） */
.talent-hero-area > * {
  min-width: 0;
}

/* Splide overrides */
.talent-slider {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.talent-slider .splide__track,
.talent-slider .splide__list {
  width: 100%;
}

.talent-slider .splide__slide {
  box-sizing: border-box;
  aspect-ratio: 2 / 3;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.talent-slider .splide__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
}

.talent-slider .splide__arrow {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.talent-slider:hover .splide__arrow {
  opacity: 1;
}

.talent-slider .splide__arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--text);
}

.talent-slider .splide__pagination__page {
  background: #ccc;
  width: 7px;
  height: 7px;
  margin: 0 3px;
}

.talent-slider .splide__pagination__page.is-active {
  background: var(--text);
  transform: scale(1);
}

/* Profile card */
.talent-profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--card);
}

.talent-profile-name {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.talent-profile-name-en {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.talent-profile-lead {
  margin: 12px 0 0;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.talent-profile-lead p {
  margin: 0 0 0.75em;
}

.talent-profile-lead p:last-child {
  margin-bottom: 0;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.profile-table th,
.profile-table td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.7;
  vertical-align: top;
}

.profile-table th {
  font-weight: 500;
  white-space: nowrap;
  padding-right: 20px;
  color: var(--muted);
  width: 90px;
}

/* SNS links */
.talent-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.talent-sns a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #393939;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.talent-sns a:hover {
  border-color: #999;
  background: var(--soft);
}

.talent-sns a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* History section */
.talent-history {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.talent-history h2 {
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.history-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
  background: var(--card);
  margin-bottom: clamp(10px, 1.4vw, 14px);
}

.history-category h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.history-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-category li {
  padding: 7px 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #2d2d2d;
  border-bottom: 1px dashed #efefef;
}

.history-category li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.history-category li strong {
  font-weight: 600;
  margin-right: 4px;
}

/* CTA at bottom */
.talent-detail-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  background: var(--card);
  text-align: center;
  margin-top: clamp(20px, 3vw, 36px);
}

.talent-detail-cta p {
  margin: 0;
  color: #2d2d2d;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Talent detail content — reset WP editor wrapper margins */
.talent-detail-content > *:first-child {
  margin-top: 0;
}

/* ===== Responsive: Talent Detail ===== */
@media (max-width: 1024px) {
  .talent-hero-area {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .talent-hero-area {
    grid-template-columns: 1fr;
  }

  .talent-slider .splide__arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
  }
}

/* ===== Form Pages (Contact / Audition) ===== */
.page-form {
  padding: clamp(32px, 5vw, 64px) 0;
}

.page-form-header {
  text-align: center;
  margin-bottom: clamp(16px, 2.4vw, 28px);
}

.page-form-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.page-form-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.page-form-lead {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-form-lead p {
  margin: 0;
  color: #2d2d2d;
  line-height: 1.9;
  font-size: 0.95rem;
}

.page-form-note {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 8px;
}

.page-form-note .required {
  color: #d64040;
  font-weight: 600;
}

.hide-sp {
  display: inline;
}

.page-form-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.6vw, 48px);
  background: var(--card);
  scroll-margin-top: calc(
    env(safe-area-inset-top, 0px) + var(--header-bar-h) + 12px
  );
}

/* CF7 form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.form-field label .required {
  color: #d64040;
  font-weight: 600;
  margin-left: 2px;
}

.form-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 4px 0;
  line-height: 1.7;
}

/* CF7 input overrides */
.page-form-body input[type="text"],
.page-form-body input[type="email"],
.page-form-body input[type="tel"],
.page-form-body input[type="url"],
.page-form-body input[type="date"],
.page-form-body input[type="number"],
.page-form-body select,
.page-form-body textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
}

.page-form-body input::placeholder,
.page-form-body textarea::placeholder {
  color: #d4d4d4;
  opacity: 1;
}

.page-form-body input:focus,
.page-form-body select:focus,
.page-form-body textarea:focus {
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.page-form-body textarea {
  resize: vertical;
  min-height: 120px;
}

.page-form-body select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* CF7 file input */
.page-form-body input[type="file"] {
  font-size: 0.85rem;
  color: var(--muted);
}

/* CF7 submit（CF7 は .form-submit 内に <p> で包むため text-align だけでは中央に来ない） */
.form-submit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 28px;
  width: 100%;
}

.form-submit > p {
  margin: 0;
  width: 100%;
  display: block;
}

.form-btn,
.page-form-body input[type="submit"],
.page-form-body .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.page-form-body .form-submit input[type="submit"],
.page-form-body .form-submit .wpcf7-submit {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.form-btn:hover,
.page-form-body input[type="submit"]:hover,
.page-form-body .wpcf7-submit:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.form-btn:disabled,
.page-form-body .wpcf7-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* CF7 validation */
.wpcf7-not-valid {
  border-color: #d64040 !important;
}

.wpcf7-not-valid-tip {
  color: #d64040;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

.wpcf7 form .wpcf7-response-output {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 20px 0 0;
  text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #3e9c52;
  color: #3e9c52;
  background: #f0faf2;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #d64040;
  color: #d64040;
  background: #fef2f2;
}

/* CF7 spinner */
.wpcf7-spinner {
  margin-left: 10px;
}

/* Audition overview */
.audition-overview {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.audition-overview-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  background: var(--card);
  margin-bottom: clamp(12px, 1.8vw, 18px);
}

.audition-overview-block h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.audition-overview-block p {
  margin: 0 0 10px;
  line-height: 1.9;
  font-size: 0.93rem;
  color: #2d2d2d;
}

.audition-overview-block p:last-child {
  margin-bottom: 0;
}

.audition-steps {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.audition-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 2px;
}

.audition-step h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.audition-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #2d2d2d;
}

/* ===== Responsive: Form Pages ===== */
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field--full {
    grid-column: auto;
  }

  .hide-sp {
    display: none;
  }

  .page-form-body {
    padding: 20px 16px;
  }

  /* SP: 入力フォーカス時の自動拡大を防ぐ（16px 未満だと iOS Safari がズームする） */
  .page-form-sub,
  .page-form-lead p,
  .page-form-note,
  .form-field label,
  .form-note,
  .page-form-body input[type="text"],
  .page-form-body input[type="email"],
  .page-form-body input[type="tel"],
  .page-form-body input[type="url"],
  .page-form-body input[type="date"],
  .page-form-body input[type="number"],
  .page-form-body select,
  .page-form-body textarea,
  .page-form-body input[type="file"],
  .form-btn,
  .page-form-body input[type="submit"],
  .page-form-body .wpcf7-submit,
  .wpcf7-not-valid-tip,
  .wpcf7 form .wpcf7-response-output {
    font-size: max(16px, 1rem);
  }

  .page-form-body input[type="text"],
  .page-form-body input[type="email"],
  .page-form-body input[type="tel"],
  .page-form-body input[type="url"],
  .page-form-body input[type="date"],
  .page-form-body input[type="number"],
  .page-form-body select,
  .page-form-body textarea {
    padding: 12px 14px;
  }

  .audition-overview-block p,
  .audition-step h3,
  .audition-step p {
    font-size: max(16px, 1rem);
  }

  .audition-step {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .step-num {
    font-size: 1.1rem;
  }
}

/* ===== reCAPTCHA（CF7 等）バッジ文言 ===== */
/* Contact / Audition 固定ページ以外は「reCAPTCHA で保護されています」を隠す */
body:not(.page-slug-contact):not(.page-slug-audition) .rc-anchor-invisible-text {
  display: none !important;
}

/* ===== WP Admin Bar Fix ===== */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar html {
  scroll-padding-top: calc(
    env(safe-area-inset-top, 0px) + 32px + var(--header-bar-h) + 12px
  );
}

.admin-bar #news,
.admin-bar #talent,
.admin-bar #company,
.admin-bar #contact,
.admin-bar #audition {
  scroll-margin-top: calc(
    env(safe-area-inset-top, 0px) + 32px + var(--header-bar-h) + 12px
  );
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar html {
    scroll-padding-top: calc(
      env(safe-area-inset-top, 0px) + 46px + var(--header-bar-h) + 12px
    );
  }

  .admin-bar #news,
  .admin-bar #talent,
  .admin-bar #company,
  .admin-bar #contact,
  .admin-bar #audition {
    scroll-margin-top: calc(
      env(safe-area-inset-top, 0px) + 46px + var(--header-bar-h) + 12px
    );
  }
}
