/**
 * サイトテーマ（指定カラー）+ キービジュアル・コンポーネント
 * メイン #9f91ca / サブ #d3c2db / ホワイト系 #f8f7fd / 文字 #323339 / アクセント1 #c3a267 / アクセント2 #a62932
 *
 * 日本語：A-OTF リュウミン Pro H-KL。Web 公開時はモリサワのライセンスに従い、
 * 自前ホストする場合は下の @font-face のコメントを外し fonts/ に woff2 を置くか、
 * TypeSquare / MORISAWA Fonts 等の公式埋め込みを利用してください。
 */
@font-face {
  font-family: "A-OTF Ryumin Pro H-KL";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("A-OTF リュウミン Pro H-KL"),
    local("A-OTF Ryumin Pro H-KL"),
    local("RyuminPro-Regular");
}

body.prism-site.pro-site {
  --theme-main: #9f91ca;
  --theme-sub: #d3c2db;
  --theme-white: #f8f7fd;
  --theme-ink: #323339;
  --theme-accent1: #c3a267;
  --theme-accent2: #a62932;
  --font-jp: "A-OTF Ryumin Pro H-KL", "A-OTF リュウミン Pro H-KL", "Ryumin Pro", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  --pro-bg: var(--theme-white);
  --pro-surface: rgba(255, 255, 255, 0.96);
  --pro-ink: var(--theme-ink);
  --pro-muted: #5c5f6a;
  --pro-accent: var(--theme-main);
  --pro-accent-soft: rgba(159, 145, 202, 0.2);
  --pro-line: rgba(50, 51, 57, 0.1);
  font-family: var(--font-jp);
  background-color: var(--pro-bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 10% -5%, rgba(159, 145, 202, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 90% 70% at 95% 105%, rgba(211, 194, 219, 0.35) 0%, transparent 48%),
    radial-gradient(circle at 50% 45%, rgba(195, 162, 103, 0.06) 0%, transparent 55%);
}

body.prism-site .marquee {
  background: linear-gradient(105deg, #2e2a38 0%, #3d3550 40%, #322a3a 100%);
  border-bottom: 1px solid rgba(159, 145, 202, 0.25);
  box-shadow: 0 2px 20px rgba(50, 51, 57, 0.06);
}
body.prism-site .marquee-track span {
  background: linear-gradient(90deg, var(--theme-sub) 0%, var(--theme-white) 45%, var(--theme-main) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.prism-site .marquee--news {
  text-transform: none;
  letter-spacing: 0.1em;
  font-family: var(--font-jp, "Yu Mincho", serif);
  font-weight: 600;
  font-size: 0.72rem;
}

body.prism-site .header {
  border-bottom-color: rgba(159, 145, 202, 0.22);
  background: rgba(248, 247, 253, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
body.prism-site .header.is-scrolled {
  background: rgba(248, 247, 253, 0.94);
}
body.prism-site .header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--theme-main),
    var(--theme-accent1),
    var(--theme-accent2),
    var(--theme-main)
  );
  background-size: 200% 100%;
  animation: prismBarShift 10s linear infinite;
  opacity: 0.95;
  pointer-events: none;
}
@keyframes prismBarShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

body.prism-site .logo.logo--mark-only {
  gap: 0;
}
body.prism-site .logo.logo--mark-only img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

body.prism-site .nav a:hover {
  color: var(--theme-main);
}
body.prism-site.pro-site .header-social__link {
  color: #3a3a3a;
}
body.prism-site.pro-site .header-social__link:hover {
  color: var(--theme-main);
  background: rgba(159, 145, 202, 0.14);
}
body.prism-site.pro-site .mobile-menu-social__link:hover {
  color: var(--theme-main);
}

/* 英字見出し・ナビ（Cinzel） */
body.prism-site.pro-site .section-head__en,
body.prism-site.pro-site .section-head .view-all,
body.prism-site.pro-site .nav a,
body.prism-site.pro-site .mobile-menu a,
body.prism-site.pro-site .footer-menu a {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 600;
}
body.prism-site.pro-site .section-head__en {
  font-weight: 700;
  letter-spacing: 0.06em;
}
body.prism-site .kv-hero__title {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}
body.prism-site .stream-panel__head {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 600;
}
body.prism-site.pro-site .section-title {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* カレンダー枠（iframe 内の UI は Google 側の制限あり） */
body.prism-site.pro-site .calendar-container {
  background: var(--theme-white);
  border-color: var(--pro-line);
  box-shadow: 0 18px 52px rgba(159, 145, 202, 0.14);
}

body.prism-site .page-hero {
  background: linear-gradient(160deg, var(--theme-white) 0%, #ede8f5 45%, var(--theme-sub) 100%);
  border-bottom: 1px solid var(--pro-line);
  padding: clamp(48px, 7.5vw, 72px) clamp(16px, 4vw, 28px) clamp(18px, 3.2vw, 30px);
}
body.prism-site .page-hero h1 {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: clamp(1.7rem, 4.6vw, 2.45rem);
  background: linear-gradient(120deg, var(--theme-main) 0%, var(--theme-accent1) 50%, var(--theme-accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: min(100%, 26rem);
  margin-left: auto;
  margin-right: auto;
}
body.prism-site .page-hero .page-hero__lead {
  max-width: min(100%, 22rem);
  margin: 12px auto 0;
  color: var(--pro-muted);
  font-size: 0.94rem;
  line-height: 1.75;
  font-weight: 500;
}

/* キービジュアル：ヘッダー直下で隙間なし（画像は画面上端から） */
.kv-hero {
  position: relative;
  z-index: 2;
  margin-top: 0;
  min-height: min(58vh, 620px);
  max-height: min(68vh, 720px);
  overflow: hidden;
  background: var(--theme-ink);
  isolation: isolate;
}
.kv-hero__media {
  position: absolute;
  inset: 0;
  top: 0;
}
.kv-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.kv-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(50, 51, 57, 0.42) 0%,
    rgba(50, 51, 57, 0.08) 38%,
    rgba(50, 51, 57, 0.45) 72%,
    rgba(50, 51, 57, 0.82) 100%
  );
  pointer-events: none;
}
.kv-hero__inner {
  position: relative;
  z-index: 2;
  min-height: min(58vh, 620px);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 88px) clamp(24px, 5vw, 48px) clamp(16px, 3.5vh, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  box-sizing: border-box;
}
.kv-hero__spacer {
  flex: 1 1 auto;
  min-height: clamp(96px, 26vh, 300px);
  width: 100%;
  pointer-events: none;
}
.kv-hero__bottom {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.kv-hero__titles {
  width: 100%;
}
.kv-hero__eyebrow {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(248, 247, 253, 0.78);
  margin-bottom: 14px;
}
.kv-hero__title {
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.04em;
  color: var(--theme-white);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  margin: 0 0 10px;
}
.kv-hero__jp {
  font-family: var(--font-jp, "Yu Mincho", serif);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(248, 247, 253, 0.92);
  margin: 0 0 clamp(16px, 2.8vh, 22px);
}
.kv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.kv-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--theme-ink);
  background: linear-gradient(120deg, var(--theme-main), var(--theme-sub) 50%, var(--theme-accent1));
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(159, 145, 202, 0.35);
  transition: transform 0.35s var(--pro-ease-out), box-shadow 0.35s ease;
}
.kv-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(166, 41, 50, 0.18);
}
.kv-hero__cta--ghost {
  background: rgba(248, 247, 253, 0.12);
  color: var(--theme-white);
  border: 1px solid rgba(248, 247, 253, 0.35);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.kv-hero__cta--ghost:hover {
  background: rgba(248, 247, 253, 0.2);
  box-shadow: none;
}

body.prism-site .video-section {
  margin-top: clamp(36px, 6vw, 56px);
}

@media (max-width: 768px) {
  .kv-hero {
    min-height: min(52vh, 480px);
    max-height: none;
  }
  .kv-hero__inner {
    min-height: min(52vh, 480px);
    padding: clamp(56px, 14vw, 80px) clamp(20px, 5vw, 32px) clamp(16px, 5vh, 32px);
  }
  .kv-hero__spacer {
    min-height: clamp(72px, 22vh, 220px);
  }
  .kv-hero__media img {
    object-position: center 18%;
  }
}

.stream-grid {
  display: grid;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 48px;
}
@media (min-width: 900px) {
  .stream-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}
.stream-panel {
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(50, 51, 57, 0.06);
}
.stream-panel__head {
  padding: 14px 18px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--pro-line);
  background: linear-gradient(90deg, rgba(159, 145, 202, 0.12), rgba(211, 194, 219, 0.2));
}
.stream-panel__body {
  padding: 16px;
}
.stream-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--theme-ink);
  border-radius: 12px;
  overflow: hidden;
}
.stream-ratio iframe,
.stream-ratio .stream-yt-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-yt-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: var(--theme-sub);
  font-weight: 600;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(159, 145, 202, 0.2) 0%, transparent 55%), var(--theme-ink);
}
.stream-yt-fallback small {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.8;
  max-width: 28em;
  line-height: 1.5;
}
.stream-yt-fallback .play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--theme-main), var(--theme-accent1));
  color: var(--theme-white);
}

.prism-card {
  background: var(--theme-white);
  border: 1px solid rgba(195, 162, 103, 0.55);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(159, 145, 202, 0.35),
    0 10px 36px rgba(50, 51, 57, 0.06);
  position: relative;
  overflow: visible;
}
.prism-card::before {
  display: none;
}
.prism-card h2 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--pro-ink);
}
.prism-card p,
.prism-card li {
  color: var(--pro-muted);
  line-height: 1.85;
  font-size: 0.98rem;
}
.prism-card a {
  color: var(--theme-main);
  font-weight: 600;
  text-decoration: none;
}
.prism-card a:hover {
  text-decoration: underline;
  color: var(--theme-accent2);
}
.prism-muted {
  font-size: 0.88rem;
  color: var(--pro-muted);
  margin-top: 10px;
}

body.prism-site .thanks-list li,
body.prism-site .achievement-list li {
  border: 1px solid rgba(195, 162, 103, 0.45);
  background: var(--theme-white);
  border-radius: 12px;
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(159, 145, 202, 0.28);
}

/* Contact: 本文幅（PC は最大 ~40rem、スマホは画面幅に追従） */
body.prism-site .contact-page__main {
  width: 100%;
  max-width: min(40rem, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(48px, 10vw, 88px);
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}
body.prism-site .contact-main.contact-page__main {
  margin-top: clamp(32px, 5.5vw, 56px);
}
body.prism-site .contact-page__main .prism-card {
  padding: clamp(18px, 4.2vw, 32px);
  margin-bottom: clamp(16px, 3vw, 24px);
}
body.prism-site .contact-page__main .prism-card p,
body.prism-site .contact-page__main .prism-card a,
body.prism-site .contact-page__main .prism-card li {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width: 900px) {
  body.prism-site .contact-page__main {
    max-width: 42rem;
  }
}
@media (max-width: 480px) {
  body.prism-site .page-hero .page-hero__lead {
    font-size: 0.88rem;
    padding: 0 4px;
  }
}

.contact-card-list {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

body.prism-site .thanks-footnote {
  margin-top: 12px;
}

body.prism-site .social-icon--reddit:not(.social-icon--unavailable):hover {
  color: #ff4500;
}
body.prism-site .social-icon--rednote:not(.social-icon--unavailable):hover {
  filter: brightness(1.08);
}

body.prism-site .social-icon.social-icon--unavailable {
  pointer-events: none;
  cursor: default;
  opacity: 0.34;
  filter: grayscale(0.9);
}
body.prism-site .social-icon.social-icon--unavailable:hover {
  color: #ccc;
  opacity: 0.4;
  filter: grayscale(0.9);
}

/* TOP: プロフィール一覧 */
body.prism-site .profile-spec {
  max-width: min(36rem, 94vw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 36px) clamp(12px, 3vw, 24px);
  border-bottom: 1px solid var(--pro-line);
}
body.prism-site .profile-spec__title {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  margin: 0 0 0.4rem;
  color: var(--pro-ink);
}
body.prism-site .profile-spec__name {
  text-align: center;
  font-weight: 600;
  font-size: 1.06rem;
  margin: 0 0 1.4rem;
  color: var(--pro-ink);
  letter-spacing: 0.03em;
}
body.prism-site .profile-spec__list {
  display: grid;
  grid-template-columns: minmax(7.5em, 38%) 1fr;
  gap: 0.55rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
body.prism-site .profile-spec__list dt {
  margin: 0;
  color: var(--pro-muted);
  font-weight: 600;
}
body.prism-site .profile-spec__list dd {
  margin: 0;
  color: var(--pro-ink);
}
body.prism-site .profile-spec__foot {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.86rem;
}
body.prism-site .profile-spec__foot a {
  color: var(--theme-main);
  font-weight: 600;
  text-decoration: none;
}
body.prism-site .profile-spec__foot a:hover {
  text-decoration: underline;
  color: var(--theme-accent2);
}

body.prism-site .history-card {
  border: 1px solid rgba(195, 162, 103, 0.48);
  border-radius: 16px;
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(159, 145, 202, 0.28),
    0 16px 48px rgba(0, 0, 0, 0.06);
}
body.prism-site .history-item:nth-child(even) .history-card {
  border-color: rgba(195, 162, 103, 0.42);
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(211, 194, 219, 0.38),
    0 16px 48px rgba(0, 0, 0, 0.05);
}
body.prism-site .history-card:hover {
  border-color: rgba(195, 162, 103, 0.62);
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(159, 145, 202, 0.42),
    0 24px 60px rgba(0, 0, 0, 0.08);
}
body.prism-site .history-item:nth-child(even) .history-card:hover {
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(211, 194, 219, 0.48),
    0 24px 60px rgba(0, 0, 0, 0.07);
}
body.prism-site .history-item .history-card.history-card--award {
  border-color: rgba(195, 162, 103, 0.55);
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(166, 41, 50, 0.22),
    0 20px 50px rgba(196, 92, 106, 0.12);
}
body.prism-site .history-item .history-card.history-card--award:hover {
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(166, 41, 50, 0.32),
    0 26px 58px rgba(196, 92, 106, 0.16);
}

/* 日本語まわり（明示指定の上書き） */
body.prism-site.pro-site .section-head__jp,
body.prism-site.pro-site .history-card,
body.prism-site.pro-site .history-card h3,
body.prism-site.pro-site .history-card p,
body.prism-site.pro-site .history-date,
body.prism-site.pro-site .prism-card,
body.prism-site.pro-site .footer-bottom,
body.prism-site.pro-site .news-preview-card,
body.prism-site.pro-site .news-preview-excerpt {
  font-family: var(--font-jp);
}

/* History: テーマグラデの軸線・ドット（モバイルは線の中心にドットを一致） */
body.prism-site .history-track::before {
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--theme-main) 0%,
    var(--theme-sub) 38%,
    var(--theme-accent1) 68%,
    var(--theme-accent2) 100%
  );
  border-radius: 999px;
}
body.prism-site .history-dot {
  width: 14px;
  height: 14px;
  border-width: 3px;
  border-style: solid;
  border-color: var(--theme-main);
  background: var(--theme-white);
  box-shadow: 0 0 0 2px rgba(159, 145, 202, 0.22);
  top: 26px;
  transform: translate(-50%, -50%);
}
body.prism-site .history-item:nth-child(even) .history-dot {
  border-color: var(--theme-accent2);
  box-shadow: 0 0 0 2px rgba(166, 41, 50, 0.12);
}
@media (max-width: 768px) {
  body.prism-site .history-track::before {
    left: 16px;
    transform: translateX(-50%);
    width: 4px;
  }
  body.prism-site .history-item,
  body.prism-site .history-item:nth-child(even) {
    padding-left: 44px;
    padding-right: 0;
    justify-content: flex-start;
  }
  body.prism-site .history-dot {
    left: 16px !important;
    transform: translate(-50%, -50%);
  }
}

/* NEWS プレビュー（静的 HTML） */
body.prism-site .news-preview-note {
  max-width: min(40rem, 94vw);
  margin: 0 auto 28px;
  line-height: 1.75;
}
body.prism-site .news-preview-code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(159, 145, 202, 0.12);
  color: var(--pro-ink);
}
body.prism-site .news-preview-list {
  max-width: min(44rem, 94vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.prism-site .news-preview-card {
  background: var(--theme-white);
  border: 1px solid rgba(195, 162, 103, 0.55);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow:
    0 0 0 2px var(--theme-white),
    0 0 0 4px rgba(159, 145, 202, 0.35),
    0 10px 36px rgba(50, 51, 57, 0.06);
}
body.prism-site .news-preview-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--pro-muted);
  margin: 0 0 8px;
}
body.prism-site .news-preview-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.45;
}
body.prism-site .news-preview-title a {
  color: var(--pro-ink);
  text-decoration: none;
}
body.prism-site .news-preview-title a:hover {
  color: var(--theme-main);
}
body.prism-site .news-preview-excerpt {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--pro-muted);
}
