/* ============================================================
   SWELL レイアウト上書き（固定ページ #body_wrap.page）
   ============================================================ */

/* コンテンツ幅をフル幅に解放 */
#body_wrap.page #content.l-content {
  max-width: 100% !important;
  padding:   0 !important;
  margin:    0 !important;
  width:     100% !important;
  display:   block !important;
}

/* サイドバー・パンくず・SWELL タイトルエリア非表示 */
#body_wrap.page .l-sidebar,
#body_wrap.page .c-sidebar,
#body_wrap.page #breadcrumb,
#body_wrap.page #top_title_area,
#body_wrap.page .p-mainVisual,
#body_wrap.page #post_slider,
#body_wrap.page #pickup_banner,
#body_wrap.page .p-pageTitle {
  display: none !important;
}

/* ============================================================
   ページ基盤 .tz-page
   ============================================================ */

.tz-page {
  background: #070c0c;
  color: var(--tz-white);
  overflow: hidden;
  min-height: 60vh;
}

/* ============================================================
   ヒーロー .tz-page-hero
   ============================================================ */

.tz-page-hero {
  position: relative;
  padding: clamp(88px, 16vw, 128px) clamp(20px, 5vw, 56px) clamp(40px, 7vw, 64px);
  background:
    radial-gradient(circle at 80% 0%,   rgba(180, 0, 20, 0.22), transparent 42%),
    radial-gradient(circle at 8%  90%,  rgba(100, 0, 10, 0.14), transparent 36%),
    linear-gradient(180deg, #0a0f0f 0%, #070c0c 100%);
  overflow: hidden;
}

/* 微細スキャンライン */
.tz-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.013) 3px,
    rgba(255, 255, 255, 0.013) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.tz-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.tz-page-hero__label {
  font-family: var(--tz-font-mono);
  color: var(--tz-red);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.tz-page-hero__title {
  font-family: var(--tz-font-title);
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  line-height: 1.2;
  color: var(--tz-white);
  letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
  margin: 0;
}

/* タイトル下の赤アクセントライン */
.tz-page-hero__title::after {
  content: '';
  display: block;
  margin-top: 0.55em;
  width: clamp(36px, 6%, 56px);
  height: 2px;
  background: linear-gradient(90deg, var(--tz-red), transparent);
}

/* ============================================================
   コンテンツエリア .tz-page-content
   ============================================================ */

.tz-page-content {
  background: #070c0c;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px) clamp(72px, 14vw, 120px);
}

.tz-page-content__inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ============================================================
   ブロックエディタ要素 — .tz-page-content 配下に限定
   ============================================================ */

/* ---- セクションラベル（英字アイブロウ） ----
   ticket/sponsor/overview/history 等で共通利用。
   margin など差分のみ各ページCSS側で上書きする想定。 */
.tz-page-content .tz-section-label {
  font-family: var(--tz-font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--tz-red);
  opacity: 0.9;
  line-height: 1;
  margin: 0 0 0.7em;
  padding: 0;
}

/* ---- 見出し h2 ---- */
.tz-page-content h2 {
  font-family: var(--tz-font-title);
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  line-height: 1.3;
  color: var(--tz-white);
  letter-spacing: 0.08em;
  margin-top: clamp(52px, 9vw, 88px);
  margin-bottom: 1em;
  padding-bottom: 0.65em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tz-page-content h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 0.65em;
  background: var(--tz-red);
}

/* ---- 見出し h3 ---- */
.tz-page-content h3 {
  font-family: var(--tz-font-title);
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  line-height: 1.4;
  color: var(--tz-white);
  letter-spacing: 0.07em;
  margin-top: clamp(32px, 6vw, 52px);
  margin-bottom: 0.8em;
  padding: 0.7em 1em;
  border-left: 4px solid var(--tz-red);
  background: rgba(255, 255, 255, 0.04);
}

/* ---- 見出し h4 ---- */
.tz-page-content h4 {
  font-size: clamp(0.98rem, 2.5vw, 1.1rem);
  line-height: 1.5;
  color: var(--tz-white);
  letter-spacing: 0.06em;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  padding-left: 0.85em;
  border-left: 2px solid rgba(192, 24, 24, 0.5);
}

/* ---- 段落 ---- */
.tz-page-content p {
  color: rgba(232, 228, 222, 0.86);
  line-height: 2;
  font-size: clamp(0.92rem, 2vw, 1rem);
  margin-bottom: 1.2em;
}

/* ---- リンク ---- */
.tz-page-content a {
  color: rgba(232, 228, 222, 0.92) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(192, 24, 24, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.tz-page-content a:hover {
  color: var(--tz-white) !important;
  text-decoration-color: var(--tz-red);
}

/* ---- リスト ---- */
.tz-page-content ul,
.tz-page-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.2em;
}

.tz-page-content li {
  color: rgba(232, 228, 222, 0.86);
  line-height: 2;
  font-size: clamp(0.92rem, 2vw, 1rem);
  margin-bottom: 0.3em;
}

.tz-page-content ul > li::marker {
  color: var(--tz-red);
}

.tz-page-content ol > li::marker {
  color: var(--tz-gray-light);
}

/* ---- 区切り線 ---- */
.tz-page-content hr,
.tz-page-content .wp-block-separator {
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: 2.5em 0 !important;
  background: none !important;
}

/* ---- テーブル ---- */
.tz-page-content .wp-block-table {
  overflow-x: auto;
  margin: 2em 0;
  -webkit-overflow-scrolling: touch;
}

.tz-page-content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.025);
  font-size: clamp(0.82rem, 1.8vw, 0.92rem);
}

.tz-page-content th,
.tz-page-content td {
  padding: clamp(10px, 2vw, 15px) clamp(12px, 2.5vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 228, 222, 0.88) !important;
  vertical-align: top;
  line-height: 1.7;
}

.tz-page-content th {
  background: rgba(192, 24, 24, 0.78) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tz-page-content tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.022);
}

/* ---- ボタンブロック ---- */
.tz-page-content .wp-block-buttons {
  margin: 1.8em 0;
  gap: 12px;
}

.tz-page-content .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px !important;
  border-radius: 0 !important;
  background: var(--tz-red) !important;
  color: #fff !important;
  font-family: var(--tz-font-base);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none !important;
  box-shadow: 6px 6px 0 rgba(80, 0, 8, 0.5);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.tz-page-content .wp-block-button__link:hover {
  background: #ee2222 !important;
  box-shadow: 3px 3px 0 rgba(80, 0, 8, 0.5);
  color: #fff !important;
}

/* アウトラインスタイルボタン */
.tz-page-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid rgba(192, 24, 24, 0.5) !important;
  color: var(--tz-white) !important;
  box-shadow: none;
}

.tz-page-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(192, 24, 24, 0.1) !important;
  border-color: var(--tz-red) !important;
}

/* ---- カラムブロック ---- */
.tz-page-content .wp-block-columns {
  margin: 1.6em 0;
  gap: clamp(16px, 3vw, 28px);
}

/* ---- グループブロック ---- */
.tz-page-content .wp-block-group {
  margin: 1.6em 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.tz-page-content .wp-block-group .wp-block-group__inner-container {
  /* 内側はそのまま */
}

/* ---- 画像 ---- */
.tz-page-content figure img,
.tz-page-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tz-page-content figcaption,
.tz-page-content .wp-block-image figcaption {
  color: var(--tz-gray-mid);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.5em;
}

/* ---- iframe / Googleフォーム ---- */
.tz-page-content iframe {
  width: 100% !important;
  max-width: 100%;
  border: 0;
  display: block;
}

/* iframe を包む HTML ブロックにカード風余白 */
.tz-page-content .wp-block-html {
  margin: 2em 0;
  padding: clamp(20px, 4vw, 28px);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 2px;
}

/* ---- SWELL 固有の上書き ---- */

/* SWELL ボックス系のボーダー色 */
.tz-page-content .c-box {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(232, 228, 222, 0.86) !important;
}

/* SWELL テーブルラッパー */
.tz-page-content .swell-block-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- ページネーション（ページ分割時） ---- */
.tz-page-pagination {
  margin-top: 2.5em;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tz-page-pagination a,
.tz-page-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--tz-gray-light) !important;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.tz-page-pagination a:hover {
  background: rgba(192, 24, 24, 0.2) !important;
  border-color: var(--tz-red);
}

/* ============================================================
   レスポンシブ — スマホ (max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {

  .tz-page-hero {
    padding-top: clamp(72px, 22vw, 96px);
    padding-bottom: clamp(28px, 8vw, 44px);
  }

  .tz-page-content {
    padding-top: clamp(28px, 8vw, 48px);
    padding-bottom: clamp(52px, 14vw, 80px);
  }

  /* h2 の上マージンを縮小 */
  .tz-page-content h2 {
    margin-top: clamp(36px, 10vw, 56px);
  }

  /* ボタン全幅 */
  .tz-page-content .wp-block-buttons {
    flex-direction: column;
  }

  .tz-page-content .wp-block-button,
  .tz-page-content .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
  }

  /* カラムブロック縦積み */
  .tz-page-content .wp-block-columns {
    flex-direction: column !important;
  }

  .tz-page-content .wp-block-column {
    flex-basis: 100% !important;
  }

  /* グループ余白縮小 */
  .tz-page-content .wp-block-group {
    padding: 18px;
  }

  /* テーブルラッパーが狭い画面でスクロール可能に */
  .tz-page-content .wp-block-table {
    margin-left:  calc(-1 * clamp(20px, 5vw, 56px));
    margin-right: calc(-1 * clamp(20px, 5vw, 56px));
    padding-left:  clamp(20px, 5vw, 56px);
    padding-right: clamp(20px, 5vw, 56px);
  }
}
