/* イベントページ（白×オレンジ） */
.nes-ev {
  --nes-accent: #E8650C;
  --nes-accent-dark: #B84E08;
  --nes-accent-deep: #8F3D06;
  --nes-text: #1F1D1A;
  --nes-muted: #615D57;
  --nes-line: #E6E3DE;
  --nes-soft: #F6F5F3;
  --nes-soft2: #ECEAE6;
  color: var(--nes-text);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.7;
}
.nes-ev p { margin: 0; }
.nes-ev figure { margin: 0; }
.nes-ev a { text-decoration: none; }

/* ヒーロー */
.nes-ev .nes-ev-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; margin-bottom: 40px; }
.nes-ev .nes-ev-visual { min-width: 0; margin: 0 auto; }
.nes-ev .nes-ev-visual img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(31, 29, 26, .12); }
.nes-ev .nes-ev-hero--portrait .nes-ev-visual { flex: 0 1 420px; max-width: 420px; }
.nes-ev .nes-ev-hero--portrait .nes-ev-hero-info { flex: 1 1 400px; }
.nes-ev .nes-ev-hero--landscape .nes-ev-visual { flex: 3 1 560px; }
.nes-ev .nes-ev-hero--landscape .nes-ev-hero-info { flex: 2 1 340px; }
.nes-ev .nes-ev-hero-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.nes-ev .nes-ev-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nes-ev .nes-ev-genre { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--nes-accent-deep); color: #fff; }
.nes-ev .nes-ev-genre:hover { background: var(--nes-text); color: #fff; }
.nes-ev .nes-ev-title { margin: 0; font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.25; letter-spacing: .02em; color: var(--nes-text); }
.nes-ev .nes-ev-intro { color: #4A4640; font-size: 14px; }

/* ボタン */
.nes-ev .nes-ev-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.nes-ev .nes-ev-btn { margin: 0; }
.nes-ev .nes-ev-btn .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.4; border: 1px solid var(--nes-text); background: #fff; color: var(--nes-text); }
.nes-ev .nes-ev-btn--x .wp-block-button__link { background: #000; border-color: #000; color: #fff; }
.nes-ev .nes-ev-btn--x .wp-block-button__link::before { content: "X"; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.nes-ev .nes-ev-btn--site .wp-block-button__link::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--nes-icon-globe) center / contain no-repeat; mask: var(--nes-icon-globe) center / contain no-repeat; }
.nes-ev .nes-ev-btn .wp-block-button__link:hover { opacity: .85; }

/* 体験レポカード */
.nes-ev-report { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; background: #F6F5F3; border: 1px solid #E6E3DE; color: #1F1D1A; border-radius: 16px; padding: 14px; text-decoration: none; }
.nes-ev-report:hover { color: #1F1D1A; border-color: #CFCAC3; }
.nes-ev-report-thumb { flex: 0 1 200px; aspect-ratio: 768 / 403; border-radius: 10px; overflow: hidden; background: #ECEAE6; }
.nes-ev-report-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nes-ev-report-body { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nes-ev-report-label { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .12em; color: #B84E08; }
.nes-ev-report-catch { font-weight: 700; font-size: 18px; line-height: 1.4; }
.nes-ev-report-title { font-size: 13px; color: #4A4640; }
.nes-ev-report-more { margin-top: 4px; font-weight: 700; font-size: 13px; color: #B84E08; }

/* カード共通 */
.nes-ev .nes-ev-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 72px; }
.nes-ev .nes-ev-card { display: flex; flex-direction: column; gap: 4px; border-radius: 16px; padding: 20px; margin: 0; }
.nes-ev .nes-ev-info .nes-ev-card { background: var(--nes-soft); }
.nes-ev .nes-ev-info .nes-ev-card::before { content: ""; width: 26px; height: 26px; margin-bottom: 4px; background: var(--nes-accent-dark); -webkit-mask: var(--nes-icon) center / contain no-repeat; mask: var(--nes-icon) center / contain no-repeat; }
.nes-ev .nes-ev-card-label { font-size: 12px; font-weight: 700; color: var(--nes-muted); }
.nes-ev .nes-ev-card-value { font-size: 18px; font-weight: 700; line-height: 1.5; }
.nes-ev .nes-ev-info .nes-ev-card-value { font-size: 20px; }

/* セクション見出し */
.nes-ev .nes-ev-section { margin-bottom: 72px; }
.nes-ev .nes-ev-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 24px; }
.nes-ev .nes-ev-h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 40px; line-height: 1.2; letter-spacing: .04em; color: var(--nes-accent); }
.nes-ev .nes-ev-sub { color: var(--nes-muted); font-size: 14px; }

/* システム */
.nes-ev .nes-ev-system-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.nes-ev .nes-ev-system-cards .nes-ev-card { flex: 1 1 260px; border: 1px solid var(--nes-line); padding: 20px 24px; }
.nes-ev .nes-ev-notes { margin-top: 16px; background: var(--nes-soft); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.nes-ev .nes-ev-notes-label { font-size: 13px; font-weight: 700; color: var(--nes-accent-deep); }
.nes-ev .nes-ev-notes-text { font-size: 14px; }

/* キャスト */
.nes-ev .nes-ev-cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.nes-ev .nes-ev-cast-item { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.nes-ev .nes-ev-cast-img img { width: 100%; aspect-ratio: 495 / 700; object-fit: cover; border-radius: 12px; border: 1px solid var(--nes-line); display: block; }
.nes-ev .nes-ev-cast-name { font-size: 13px; font-weight: 700; text-align: center; }
.nes-ev .nes-ev-cast-grid.is-collapsed > .nes-ev-cast-item:nth-child(n+7) { display: none; }
.nes-ev-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.nes-ev-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: #fff; color: #1F1D1A; border: 1px solid #1F1D1A; border-radius: 999px; padding: 0 32px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.nes-ev-more::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nes-ev-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.nes-ev-more:focus-visible { outline: 2px solid #E8650C; outline-offset: 2px; }

/* ギャラリー */
.nes-ev .wp-block-gallery.nes-ev-gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px !important; margin: 0; }
.nes-ev .wp-block-gallery.nes-ev-gallery figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 16 / 9; }
.nes-ev .wp-block-gallery.nes-ev-gallery figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* 最終更新 */
.nes-ev-updated { border-top: 1px solid #E6E3DE; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: #615D57; }
.nes-ev-updated a { color: #B84E08; font-weight: 700; text-decoration: none; }

/* アイコン（線画SVG） */
.nes-ev .nes-ev-card--date { --nes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.nes-ev .nes-ev-card--time { --nes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.nes-ev .nes-ev-card--join { --nes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h10l6 6v10H4z'/%3E%3Cpath d='M14 4v6h6'/%3E%3C/svg%3E"); }
.nes-ev .nes-ev-card--group { --nes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 20c0-2.5 1.5-4.5 4-4.5'/%3E%3C/svg%3E"); }
.nes-ev { --nes-icon-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E"); }

@media (max-width: 600px) {
  .nes-ev .nes-ev-h2 { font-size: 32px; }
  .nes-ev .nes-ev-hero--portrait .nes-ev-visual { flex-basis: 100%; max-width: 360px; }
  .nes-ev .nes-ev-cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 無料プラン */
.nes-ev--free { max-width: 1000px; margin-left: auto; margin-right: auto; }
.nes-ev--free .nes-ev-hero { align-items: flex-start; }
.nes-ev--free .nes-ev-visual-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0 auto; }
.nes-ev--free .nes-ev-hero--portrait .nes-ev-visual-col { flex: 0 1 300px; max-width: 300px; }
.nes-ev--free .nes-ev-hero--landscape .nes-ev-visual-col { flex: 1 1 420px; max-width: 480px; }
.nes-ev--free .nes-ev-visual-col .nes-ev-visual { flex: none; max-width: none; margin: 0; }
.nes-ev--free .nes-ev-visual img { border-radius: 14px; box-shadow: none; }
.nes-ev--free .nes-ev-hero-info { flex: 1 1 380px; justify-content: flex-start; gap: 16px; }
.nes-ev--free .nes-ev-title { font-size: clamp(28px, 4vw, 40px); }
.nes-ev .nes-ev-links--full, .nes-ev .nes-ev-links--full .nes-ev-btn { width: 100%; }
.nes-ev .nes-ev-links--full .wp-block-button__link { width: 100%; justify-content: center; }
.nes-ev .nes-ev-table { margin: 8px 0 0; }
.nes-ev .nes-ev-table table { width: 100%; border-collapse: collapse; border: 0; border-top: 1px solid var(--nes-line); }
.nes-ev .nes-ev-table th, .nes-ev .nes-ev-table td { border: 0; border-bottom: 1px solid var(--nes-line); padding: 12px 0; text-align: left; vertical-align: top; background: none; }
.nes-ev .nes-ev-table th { width: 120px; font-size: 13px; font-weight: 700; color: var(--nes-muted); padding-right: 16px; }
.nes-ev .nes-ev-table td { font-weight: 700; }
.nes-ev--free .nes-ev-section { margin-top: 56px; margin-bottom: 0; }
.nes-ev--free .nes-ev-h2 { font-size: 32px; }
.nes-ev--free .wp-block-gallery.nes-ev-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.nes-ev--free .nes-ev-report { margin-top: 48px; gap: 24px; padding: 16px; border-radius: 18px; }
.nes-ev--free .nes-ev-report-thumb { flex: 1 1 280px; }
.nes-ev--free .nes-ev-report-body { flex: 1 1 300px; gap: 6px; padding: 4px 8px; }
.nes-ev--free .nes-ev-report-catch { font-size: 22px; }
.nes-ev--free .nes-ev-report-title { font-size: 14px; }
.nes-ev--free .nes-ev-report-more { align-self: flex-start; margin-top: 6px; background: #fff; border: 1px solid #1F1D1A; color: #1F1D1A; font-size: 14px; padding: 9px 21px; border-radius: 999px; }

/* アップグレード案内 */
.nes-ev-upgrade { margin-top: 48px; background: #FFF4EB; border-radius: 16px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nes-ev-upgrade-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nes-ev-upgrade-title { font-size: 14px; font-weight: 700; color: #1F1D1A; }
.nes-ev-upgrade-text { font-size: 13px; color: #4A4640; }
.nes-ev-upgrade-btn { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; background: #E8650C; color: #1F1D1A !important; font-weight: 700; font-size: 14px; padding: 0 22px; border-radius: 999px; text-decoration: none; }
.nes-ev-upgrade-btn:hover { opacity: .9; }
.nes-ev--free .nes-ev-updated { margin-top: 40px; }
@media (max-width: 600px) {
  .nes-ev .nes-ev-table th { width: 96px; }
}

/* Astra 対策：グループの内側に自動で入る inner-container を透過させ、幅・余白の指定より優先させる */
.nes-ev .wp-block-group__inner-container { display: contents; }
.nes-ev [class*="__inner-container"] > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.nes-ev.wp-block-group, .nes-ev .wp-block-group { padding: 0 !important; }
.nes-ev .nes-ev-card { padding: 20px !important; }
.nes-ev .nes-ev-system-cards .nes-ev-card, .nes-ev .nes-ev-notes { padding: 20px 24px !important; }
.nes-ev .nes-ev-head [class*="__inner-container"] > *, .nes-ev .nes-ev-head > * { width: auto !important; flex: 0 1 auto; }
.nes-ev .nes-ev-hero--portrait .nes-ev-visual { max-width: 420px !important; }
.nes-ev--free .nes-ev-hero--portrait .nes-ev-visual-col { max-width: 300px !important; }
.nes-ev--free .nes-ev-hero--landscape .nes-ev-visual-col { max-width: 480px !important; }
.nes-ev--free .nes-ev-visual-col .nes-ev-visual { max-width: none !important; }
.entry-content .nes-ev--free, .nes-ev--free { max-width: 1000px !important; margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 759px) {
  .nes-ev .nes-ev-hero .nes-ev-visual, .nes-ev--free .nes-ev-hero .nes-ev-visual-col { margin-left: auto !important; margin-right: auto !important; }
}

/* 画像リンク */
.nes-ev .nes-ev-visual a, .nes-ev .wp-block-gallery.nes-ev-gallery figure.wp-block-image a { display: block; width: 100%; height: 100%; }
.nes-ev .nes-ev-visual a:hover img, .nes-ev .nes-ev-gallery a:hover img { opacity: .9; }

/* 文字サイズ・太さの調整 */
.nes-ev .nes-ev-title { font-size: clamp(28px, 4vw, 40px); }
.nes-ev--free .nes-ev-title { font-size: clamp(24px, 3vw, 32px); }
.nes-ev .nes-ev-table td { font-weight: 400; }
.nes-ev .nes-ev-card-value { font-weight: 400; }
.nes-ev .nes-ev-table th, .nes-ev .nes-ev-table td { font-size: 15px; line-height: 1.7; }
.nes-ev .nes-ev-cast-item[hidden] { display: none !important; }

/* スマホ：基本情報カードとギャラリーを2列に */
@media (max-width: 600px) {
  .nes-ev .nes-ev-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nes-ev .nes-ev-info .nes-ev-card { padding: 14px !important; }
  .nes-ev .nes-ev-info .nes-ev-card-value { font-size: 16px; }
  .nes-ev .wp-block-gallery.nes-ev-gallery, .nes-ev--free .wp-block-gallery.nes-ev-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
}

/* プレミアム：体験レポカードの記事タイトルは出さない */
.nes-ev:not(.nes-ev--free) .nes-ev-report-title { display: none; }
/* フリー：「詳しく見る」ボタンは白文字（読みやすさのため少し濃いオレンジに） */
.nes-ev-upgrade-btn { background: #B84E08; color: #FFFFFF !important; }
.nes-ev-upgrade-btn:hover { background: #8F3D06; opacity: 1; }
.nes-ev .nes-ev-cast-img a { display: block; }
.nes-ev .nes-ev-cast-img a:hover img { opacity: .9; }

/* 横長メインビジュアル（プレミアム）：体験レポカードを横並びのコンパクト表示に */
.nes-ev .nes-ev-hero--landscape .nes-ev-report { flex-wrap: nowrap; gap: 14px; padding: 12px; }
.nes-ev .nes-ev-hero--landscape .nes-ev-report-thumb { flex: 0 0 132px; }
.nes-ev .nes-ev-hero--landscape .nes-ev-report-body { flex: 1 1 auto; min-width: 0; }
.nes-ev .nes-ev-hero--landscape .nes-ev-report-catch { font-size: 15px; }
/* 体験レポカードの見出し：通常は長い文言、横長メインビジュアルのときだけ短い文言 */
.nes-ev-report-catch-short { display: none; }
.nes-ev .nes-ev-hero--landscape .nes-ev-report-catch-long { display: none; }
.nes-ev .nes-ev-hero--landscape .nes-ev-report-catch-short { display: inline; }
