/* =========================================================================
   nagata-special.css — 貼り付けコンテンツ用スタイル（WordPress テーマ rts_general）

   単一源: RTSWebSupport リポジトリの src/styles/nagata-special.css。
   構造系（全体/見出し/リンク/表/リスト/update/FAQ/汎用）＋コンポーネント由来の
   コンテンツ装飾（動画/FAQ の Q/A 番号など）はリポジトリ側で編集し、ここへ反映すること
   （このファイルの上半分＝下記の Tier 2 マーカーより上は直接編集しない）。

   ページ固有の見た目は「投稿ID（.page-<ID>）」ではなく、貼付けHTMLが運ぶクラスで表現する:
     - 要素ユーティリティ（例 .w-half）を要素に付ける、または
     - frontmatter の contentClass 経由で .content-wrapper に付く修飾クラス（例 .imgs-half）。
   いずれも .content-wrapper スコープの単一源側で定義するので、ここには別途書かない。

   下部の「ボタン .button」は環境依存のためリポジトリ未移行（Tier 2）。従来の WP 定義をそのまま温存している。
   ========================================================================= */

/* 全体 */
:root {
  /* 貼付けコンテンツ内で繰り返し使われる色（brand red / 濃色ボーダー / 焦茶ボーダー / 見出し罫線 / 薄灰背景）を集約。
     値は既存の見た目を変えないよう、各箇所で使われていたものをそのまま採用。 */
  --nagata-accent-red: #9f2226;
  --nagata-border-dark: #393332;
  --nagata-border-brown: #4f240a;
  --nagata-rule-dark: #222;
  --nagata-bg-light: #ddd;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.content-wrapper {
  margin: auto;
  padding: 50px;
  font-size: calc(16px + 0.1vw);
  /* 本文の行間。WP では外側の `.news_detail_mes_mozi`（main.css）から継承していて、
     単一源には無かったためプレビューだけ Tailwind preflight の 1.5 になっていた。
     ここで直接持たせて両環境を揃える（WP 側は同値なので見た目は変わらない）。 */
  line-height: 1.75;
  white-space: normal;
  @media (max-width: 640px) {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* 汎用ユーティリティ */
  & .flex {
    display: flex;
  }
  & .justify-center {
    justify-content: center;
  }
  & .space-between {
    justify-content: space-between;
  }
  & .space-around {
    justify-content: space-around;
  }
  /* 旧ページ別カスタムCSSで .wrap / .gap として重複定義されていたもの（値は本番WPを正に採取。
     .gap の 30px 20px は公式グッズ等 9 ページで同値）。
     一部の旧ページには `.wrap { text-decoration: none }` という別用途の同名クラスがあるが、
     flex-wrap は flex コンテナ以外に効かないため、そのページのリンク装飾には影響しない。 */
  & .wrap {
    flex-wrap: wrap;
  }
  & .gap {
    gap: 30px 20px;
  }
  & .text-center,
  & .text-align-center {
    text-align: center;
  }
  & .bold {
    font-weight: bold;
  }
  /* 素の b / strong。WP は main.css の `b, strong { font-weight: 600 }`、プレビューは
     Tailwind preflight の `bolder`（＝700）で食い違っていた。600 に揃える
     （WP 側は同値で、詳細度もこちらが上なので見た目は変わらない）。 */
  & b,
  & strong {
    font-weight: 600;
  }
  & .red {
    color: var(--nagata-accent-red);
  }

  /* 画像・要素の幅ユーティリティ / ページ修飾（投稿ID非依存・貼付けHTMLが運ぶ）
     いずれも SP=全幅 / PC(761px以上)=半幅。
     - .w-half        … 個別要素に付ける（<img class="w-half">）
     - .map           … 地図・図版画像用の別名（多数ページが className="map" で使用）
     - .imgs-half     … frontmatter の contentClass 経由で .content-wrapper に付与し、
                        そのページの画像を一律 半幅にする */
  & .w-half,
  & .map,
  &.imgs-half img {
    width: 100%;
  }
  @media (min-width: 761px) {
    & .w-half,
    & .map,
    &.imgs-half img {
      width: 50%;
    }
  }

  /* 更新枠 */
  & .update {
    border: 2px solid var(--nagata-border-dark);
    padding: 1rem;
    margin: 0.5rem;
  }
  & .update h3 {
    font-size: 1.17em;
    font-weight: 400;
  }

  /* 見出しの行間。WP では `.post_content .style3a, …`（main.css）が当てていて単一源に無く、
     プレビューだけベース層の `h1〜h6 { line-height: 2 }` のままだった。
     WP 側は同値・同詳細度でこちらが後勝ちになるので見た目は変わらない。 */
  & .style3a,
  & .style4a,
  & .style5a {
    line-height: 1.6;
  }

  /* 見出し（大） */
  & .style3a {
    margin: 1em 0;
    padding: 1.1em 0.2em 1em;
    font-size: 25px;
    font-weight: 400;
    border-top: 1px solid var(--nagata-rule-dark);
    border-bottom: 1px solid var(--nagata-rule-dark);
  }
  /* 見出し（中） */
  & .style4a {
    margin: 1em 0 0;
    padding: 0.3em 0 0.3em 0.8em;
    font-size: 23px;
    font-weight: 400;
    border-left: 2px solid var(--nagata-rule-dark);
  }
  /* 見出し（小） */
  & .style5a {
    margin: 1em 0 0 0.8em;
    padding: 0.5em 0.8em 0.3em 1em;
    font-weight: 700;
    font-size: 18px;
    background: #f5f5f5;
    box-shadow: 0 2px 0 0 #f2f2f2;
  }

  /* 本文リンク */
  & a {
    color: #0366d6;
    text-decoration: none;
  }
  & a:hover {
    transition: 0.5s;
    opacity: 0.8;
  }

  /* 表 */
  & table {
    border-collapse: collapse;
    margin: 1rem 0;
  }
  @media (max-width: 960px) {
    & table {
      display: block;
      overflow-x: scroll;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
    }
  }
  & th,
  & td {
    /* !important は本番 WP の main.css の td 規則に勝つための既存挙動を踏襲 */
    border: 1px solid var(--nagata-border-brown) !important;
    padding: 0.5em 1em !important;
  }

  /* リスト */
  & ol,
  & ul {
    margin-left: 2rem;
  }
  & ul {
    display: block;
    list-style-type: disc;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 1.5rem;
  }
  & .decimal {
    list-style-type: decimal;
  }
  & .disc {
    list-style: disc;
  }
  & .circle {
    list-style-type: circle;
  }
  & .indent {
    text-indent: 1rem;
  }

  /* 折りたたみ（details / summary） */
  & summary {
    list-style: none;
    position: relative;
    cursor: pointer;
  }
  & summary::-webkit-details-marker {
    display: none;
  }
  & summary::after {
    position: absolute;
    top: 50%;
    right: 30px;
    transition: transform 0.5s;
    transform: translateY(-50%);
  }
  & details[open].answer {
    animation: fadein 0.5s ease;
  }

  /* よくある質問（大） */
  & .bigsummary {
    margin-bottom: 10px;
    padding: 20px 70px 20px 30px;
    background-color: var(--nagata-bg-light);
  }
  & .bigsummary:hover {
    opacity: 0.9;
  }
  & .bigsummary::after {
    content: "+";
    font-size: 30px;
  }
  & .bigsummary .sumhead {
    color: #0d0d0d;
    font-size: 1.3rem;
    font-weight: bold;
  }
  & .bigdetails[open] .bigsummary::after {
    transform: translateY(-50%) rotate(45deg);
  }

  /* よくある質問（小） */
  & .answer {
    padding: 10px 1rem;
    border: 1px solid #000;
    margin-bottom: 1rem;
  }
  & .smalldetails {
    margin: 0.5rem 0;
  }
  & .smalldetails[open] .smallsummary::after {
    transform: translateY(-50%) rotate(90deg);
  }
  & .smallsummary {
    padding: 0 40px 0 0;
    background-color: var(--nagata-bg-light);
  }
  & .smallsummary::after {
    content: ">";
  }
  @media (max-width: 640px) {
    & .smallsummary::after {
      right: 10px;
    }
  }
  & .smallsummary:hover {
    background-color: #fafbf5;
  }
  & .faq__dt {
    padding: 4px 0 4px 0.5rem;
    font-size: 1.2rem;
  }
  /* Q/A 番号・小回答枠（ABigFaq / ASmallFaq） */
  & .qnum {
    color: #c80021;
    font-weight: bold;
  }
  & .anum {
    color: #0085c8;
    font-weight: bold;
  }
  & .smallanswer {
    border: 1px solid var(--nagata-border-dark);
  }

  /* 動画（YouTube 埋め込み・AMovie） */
  & .song-movie {
    margin: 2vh 0;
  }
  & .song-movie_content {
    width: 40vw;
    height: 22.5vw;
  }
  @media (max-width: 960px) {
    & .song-movie_content {
      width: 60vw;
      height: 33.75vw;
    }
  }
  @media (max-width: 640px) {
    & .song-movie_content {
      margin: 0 auto;
      width: 80vw;
      min-height: 45vw;
    }
  }

  /* サークル配布資料カード（ACircleDoc / MBeforeCircleDocs）
     旧カスタムCSSから移設。現行コンポーネントの出力クラス（.doc-description 等）に合わせている。 */
  & .direction-column {
    flex-direction: column;
  }
  & .align-center {
    align-items: center;
  }
  & .display-block {
    display: block;
  }
  & .doc-wrapper {
    flex-wrap: wrap;
  }
  @media (max-width: 640px) {
    & .doc-wrapper {
      flex-direction: column;
    }
  }
  & .doc-card {
    padding: 1.5rem;
    border: 1px solid #000;
    margin: 1rem auto;
    border-radius: 10px;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
  }
  & .doc-card:hover {
    transform: scale(1.05);
  }
  @media (min-width: 961px) {
    & .doc-card {
      width: 40%;
    }
  }
  @media (max-width: 960px) {
    & .doc-card {
      width: 85%;
      padding: 1rem;
    }
  }
  & .doc {
    margin-right: 0.5rem;
    color: #2f2725;
  }
  & .doc-title {
    text-align: center;
    font-size: 1.5rem;
  }
  & .doc-img {
    width: 100%;
  }
  & .doc-description {
    margin-left: 1rem;
  }

  /* サークル配置表の列幅（MPlaceAssignTable の .cut） */
  & .cut {
    width: 30%;
  }
  @media (max-width: 960px) {
    & .cut {
      width: 50%;
    }
  }
  @media (max-width: 640px) {
    & .cut {
      width: 100%;
    }
  }

  /* ロゴ利用例の画像（MLogoUsageExample の .logo-usage） */
  & .logo-usage {
    width: 100%;
    display: block;
    margin: 1rem auto;
  }
  @media screen and (min-width: 981px) {
    & .logo-usage {
      width: 50%;
    }
  }

  /* 見出し中央寄せ（AArticleHead の .midashi） */
  & .midashi {
    text-align: center;
  }

  /* メールアドレスの文字反転（AMailAdress の .reverse） */
  & .reverse {
    unicode-bidi: bidi-override;
    direction: rtl;
  }

  /* グッズカードのレイアウト（MGoods）。
     装飾背景（.tops/.center の circle SVG）は WP uploads の絶対URLで環境依存のため単一源化しない。

     幅は box-sizing:border-box の 440px（＝旧 width:400px + padding 20px×2 と同じ外寸）。
     テーマには border-box のグローバルリセットが無いため、旧 content-box のままだと
     外寸 440px が狭い端末の枠（375px 端末で 300px）を超え、はみ出していた。
     max-width:100% で枠に収め、広い画面の見た目は従来どおり 440px を保つ。 */
  & .box2 {
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    width: 440px;
    max-width: 100%;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  }
  & .top {
    font-weight: bold;
    font-size: 1.3em;
    top: 5%;
    left: 15%;
  }
  & .subtop {
    font-weight: bold;
    font-size: 1em;
    top: 15%;
    left: 15%;
  }
  /* 画像枠は 270x270 固定。縦長画像が突出して伸びるのを防ぎ、あわせて横並びの
     カード間で画像領域の高さ（＝その下の説明文の開始位置）を揃える。
     .paint は幅固定をやめ、縦横比を保ったままこの枠に内接させる
     （place-content:center のグリッド行はコンテンツ基準の auto サイズになり
     max-height の % が解決できないため、枠と同じ 270px を直接指定する）。
     ただし枠より狭いカードでは 270px が min-width:auto の下限になり、カードが枠まで
     縮めなくなる。幅だけは 100% を上限に併記して枠へ追従させる（高さ 270px は据え置き）。 */
  & .picture {
    display: grid;
    place-content: center;
    height: 270px;
    max-width: 100%;
  }
  & .paint {
    max-width: min(270px, 100%);
    max-height: 270px;
    width: auto;
    height: auto;
  }
  & .box-inner {
    font-size: 0.8em;
    left: 5%;
    right: 5%;
    top: 70%;
    margin-top: 1.3em;
    white-space: pre-wrap;
  }
  & .box-bottom {
    font-size: 0.8em;
    bottom: 3%;
    right: 8%;
    text-align: end;
    z-index: 1;
  }

  /* 出展企業一覧（企業ブース）のカード。旧 srts2「出展企業一覧」（post 11254）のページ別カスタムCSSから移行。
     .wrapper/.info/.space/.name は汎用名で他ページと衝突しうるため、本文が運ぶ #corp に閉じ込める。 */
  & #corp .wrapper {
    border: 1px solid #3d3a39;
    border-radius: 10px;
    margin: 30px 0;
  }
  & #corp .info {
    flex-direction: column;
    width: 100%;
  }
  & #corp .info h3 {
    padding: 10px;
  }
  & #corp .info p {
    padding: 10px 10px 0 10px;
  }
  & #corp .corpimg {
    width: 15vw;
    height: auto;
    margin: 10px;
    max-width: none;
  }
  & #corp .corpimg-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  & #corp .space-and-name {
    display: flex;
    border-bottom: 1px solid #3d3a39;
  }
  /* SP（440px 以下）は幅指定が無く、企業名が長いとブース番号側が押し縮められて桁の途中で折り返すため、
     番号は縮めず1行に保ち、折り返しは企業名側に寄せる。 */
  & #corp .space {
    border-right: 1px solid #3d3a39;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
  }
  & #corp .name {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  @media (min-width: 741px) {
    & #corp .wrapper {
      display: flex;
    }
    & #corp .corpimg-wrapper {
      border-right: 1px solid #3d3a39;
    }
  }
  @media (max-width: 740px) {
    & #corp .corpimg {
      width: 65%;
    }
    & #corp .space-and-name {
      border-top: 1px solid #3d3a39;
    }
  }
  @media (min-width: 441px) {
    & #corp .space {
      width: 20%;
    }
    & #corp .name {
      width: 80%;
    }
  }
  @media (max-width: 440px) {
    & #corp .info p {
      padding: 10px;
    }
  }

  /* =========================================================================
     旧テンプレート由来の共通装飾（複数ページのカスタムCSSで重複していたものを集約）

     目的は「共通CSSで一度書けば済むものを各ページで重複記述している」問題の解消（DRY）。
     現行コンポーネントは描画しないためプレビュー検証は不可。値は本番WPを正に採取。
     要素セレクタのページ固有ハック（input / table img / #my-table1 等）は
     他ページを壊すため意図的に取り込まない。当該ページを現行コンポーネントで
     作り直せば、ここも不要になる。
     （.text / .end は汎用名だが .content-wrapper スコープで貼付け内容にのみ作用）

     ※ タイムラインは複数ページで使うため専用ラッパークラス .timeline に集約する。
        旧HTMLは max-width 用ラッパーに汎用名 .container を使っていたが、.container はページ型で
        意味が異なり（検索ページ等）オーバーロードのため使わない（＝集約しない）。
        → タイムラインを持つ WP ページの HTML は、ラッパーのクラスを .container から .timeline へ変更すること。
        なお .content-wrapper は既に white-space:normal を持ち white-space は継承されるので、
        旧 .container{white-space:normal} は元々冗長だった。
     ========================================================================= */

  /* 囲みボックス（.text / .end: 約11ページで重複） */
  & .text {
    text-align: center;
    padding: 1rem;
    margin: 0.5rem;
    border: 3px solid var(--nagata-border-brown);
  }
  & .end {
    border-color: var(--nagata-accent-red);
  }

  /* よくある間違い枠（.frequent-mistake: 約57ページで重複） */
  & .frequent-mistake {
    border: 3px solid #aa243b;
    padding: 0.5rem;
  }
  & .frequent-mistake .heading {
    font-size: 1.4rem;
  }

  /* 図版（.visual: 約15ページ / .flowchart: 約13ページ） */
  & .visual {
    width: 40%;
    margin: 0.5rem;
  }
  @media (max-width: 46.25em) {
    & .visual {
      width: 100%;
    }
  }
  & .flowchart {
    width: 90%;
  }
  @media (max-width: 640px) {
    & .flowchart {
      width: 100%;
    }
  }

  /* タイムライン（複数ページで使用。ラッパーは専用クラス .timeline。旧HTMLの .container から置換する）
     .timeline    … センタリング用ラッパー（旧 .container の max-width をここへ寄せた）
     .timeline-item … 縦線＋日付＋丸マーカーの各項目 */
  & .timeline {
    max-width: 1024px;
    width: 90%;
    margin: 0 auto;
  }
  @media (max-width: 46.25em) {
    & .timeline {
      margin-left: 0.5rem;
    }
  }
  & .timeline-item {
    padding: 0.5rem 0 1rem 1rem;
    position: relative;
    border-left: 2px solid var(--nagata-border-dark);
    font-size: 1.2rem;
  }
  & .timeline-item .date {
    font-size: 1rem;
    margin-bottom: -0.3rem;
  }
  & .timeline-item::after {
    width: 10px;
    height: 10px;
    display: block;
    top: 1em;
    position: absolute;
    left: -8px;
    border-radius: 10px;
    content: "";
    border: 2px solid var(--nagata-border-dark);
    background: white;
  }
  & .timeline-item:last-child {
    border-image: linear-gradient(to bottom, #393332 60%, rgba(57, 51, 50, 0)) 1 100%;
  }
  /* 過去分（終了した項目）はグレーアウト */
  & .timeline-item.disable {
    opacity: 0.3;
  }

  /* =========================================================================
     サークル配置検索ページの UI（旧JS検索UI・複数会期で重複していたものを集約）

     現行の MAcceptedCirclesList は簡素な静的テーブルでこの検索UIを持たない（repo が古い）。
     現行WPの構造（tools/paste.html: root .container.content-wrapper）に合わせ、
     素の要素セレクタはクラスへ限定して安全に集約：
       旧 `table img` → `.sortable-table img`（検索テーブル内アイコン）
       旧 `input`     → `.light-table-filter`（検索フィルタ入力）
     bespoke な widget のため本来はコンポーネント化が望ましい（暫定の共通化）。プレビュー検証不可＝WP実機確認。
     ※ 旧 `details summary` 中央寄せ／`details` 余白ハックは content 共通の summary 定義と衝突するため
        取り込まず、当該ページのカスタムCSSに残す。
     ========================================================================= */
  & .sortable-table {
    overflow: scroll;
  }
  @media (min-width: 961px) {
    & .sortable-table {
      overflow: visible;
    }
  }
  & .is-hidden {
    display: none;
  }
  & .twitter,
  & .pixiv {
    width: 5rem;
  }
  & .sortable-table img {
    display: block;
    margin: auto auto;
    height: 1.2rem !important;
  }
  @media (min-width: 961px) {
    & .sortable-table img {
      height: 1.5rem !important;
    }
  }
  & #my-table1 td,
  & #my-table1 th {
    padding: 0.3rem;
  }
  /* ソート可能な列見出し：クリックできることを示す矢印アイコン（js/table-search.js が data-sort-dir を付与）。
     フォント依存のグリフだと環境によって見えづらいため、CSSの三角形（border trick）で描く。 */
  & th[sortable] {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 1.6em;
  }
  & th[sortable]::before,
  & th[sortable]::after {
    content: '';
    position: absolute;
    right: 0.3em;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.35;
  }
  & th[sortable]::before {
    top: 0.35em;
    border-bottom: 6px solid currentColor;
  }
  & th[sortable]::after {
    bottom: 0.35em;
    border-top: 6px solid currentColor;
  }
  /* ソート確定後：選択中の方向だけを大きく色付きで残し、逆方向は消す（2つの薄い三角形より視認性が高い） */
  & th[sortable][data-sort-dir='asc']::before {
    top: 0em;
    border-left-width: 9px;
    border-right-width: 9px;
    border-bottom-width: 10px;
    border-bottom-color: #eea34a;
    opacity: 1;
  }
  & th[sortable][data-sort-dir='asc']::after {
    opacity: 0;
  }
  & th[sortable][data-sort-dir='desc']::after {
    bottom: 0em;
    border-left-width: 9px;
    border-right-width: 9px;
    border-top-width: 10px;
    border-top-color: #eea34a;
    opacity: 1;
  }
  & th[sortable][data-sort-dir='desc']::before {
    opacity: 0;
  }
  & .light-table-filter {
    height: 2.5rem;
    margin-bottom: 1rem !important;
    width: 20vw;
    box-shadow: 0px 1px rgba(255, 255, 255, 0.5);
    border-radius: 3px;
  }
  & .light-table-filter:focus-visible {
    border: solid 1px #eea34a;
  }
  @media (max-width: 960px) {
    & .light-table-filter {
      width: 30vw;
    }
  }
  @media (max-width: 640px) {
    & .light-table-filter {
      width: 50vw;
    }
  }
  & .gifimg {
    height: auto;
  }
  & .questionmark {
    width: 1.5rem;
  }
  & .how-to-use {
    padding: 0.5rem;
    background-color: #f7eed4;
    width: fit-content;
    border-radius: 10px;
    margin: auto;
    margin-bottom: 1.3rem;
    transition: 0.8s;
  }
  & .how-to-use:hover {
    transition: 0.8s;
    background-color: #fbf7ea;
  }
  & .how-to-use h3 {
    font-size: 1.5rem;
  }
  & .how-to-search h3,
  & .how-to-sort h3 {
    font-size: 1.4rem;
    font-weight: bold;
  }
  @media (min-width: 961px) {
    & .use-wrapper {
      display: flex;
    }
    & .how-to-search {
      padding-right: 0.8rem;
      border-right: 1px solid #000;
      width: 140%;
    }
    & .how-to-sort {
      padding-left: 0.8rem;
    }
  }
  @media (max-width: 960px) {
    & .how-to-search {
      padding-bottom: 0.5rem;
      border-bottom: 1px solid #000;
    }
  }
  & .use-wrapper {
    background-color: #f7eed4;
    border-radius: 10px;
    padding: 0.8rem;
  }
  & details[open] .use-wrapper {
    animation: fadeIn 0.5s ease;
  }
  & #inputbox1 {
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 3px;
    box-sizing: border-box;
    border: 2px solid #ff9900;
    z-index: 10;
    outline: 0;
  }
  & #inputbox1:focus {
    box-shadow: 0 0 5px 0 rgba(255, 153, 0, 1);
    border: 2px solid #fff !important;
    outline: 0;
  }
  & .password_box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 5px;
    border: 1px solid lightgray;
    margin-bottom: 1.5rem;
  }
  & .password_inner {
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: relative;
  }
  & #text4 {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 16px;
    background-color: transparent;
    box-sizing: border-box;
  }
  & .password_string {
    position: absolute;
    height: 100%;
    width: 15rem;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding-left: 10px;
    font-size: 1.2rem;
    line-height: 50px;
    background-color: transparent;
    color: #80868b;
    box-sizing: border-box;
    transition: all 0.2s;
  }
  & #text4:focus + .password_string {
    color: #000;
    font-size: 0.9rem;
    line-height: 10px;
    width: 12rem;
    height: 1rem;
    padding: 0 2px;
    transform: translate3d(5px, -6px, 0);
  }

  /* 締切ゲート（.ed-deadline-gate。WP テーマ js/ed-deadline-gate.js と対）
     訪問者のアクセス時刻で data-deadline を過ぎると .ed-deadline-gate--closed が付き、
     案内ボタン（.ed-deadline-gate__action）をグレーアウトし、.ed-deadline-gate__closed の文言を出す。
     JS 自体は WP 側にのみ存在する（プレビューでは判定が走らないため、常時 __action が見える状態）。 */
  & .ed-deadline-gate__closed {
    display: none;
  }
  & .ed-deadline-gate--closed .ed-deadline-gate__closed {
    display: block;
  }
  & .ed-deadline-gate--closed .ed-deadline-gate__action {
    background-color: #999999;
    cursor: default;
    pointer-events: none;
  }

  /* ページカード（.card_01 系）。純レイアウトで環境依存の値を持たないため単一源化。
     現行コンポーネントは描画しないためプレビュー検証は不可（貼付けHTMLでのみ使用）。 */
  & .l-wrapper_01 {
    margin: 1rem auto;
    width: 20vw;
    height: 100%;
    transition: all 0.5s;
  }
  @media (max-width: 46.25em) {
    & .l-wrapper_01 {
      width: 45%;
    }
  }
  @media (max-width: 27.5em) {
    & .l-wrapper_01 {
      width: 100%;
    }
  }
  & .l-wrapper_01:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.5s;
  }
  & .card_01 {
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.16);
    color: #212121;
    text-decoration: none;
  }
  & .card__header_01 {
    display: flex;
    flex-wrap: wrap;
  }
  & .card__title_01 {
    padding: 1rem 1.5rem 0;
    font-size: 1.6rem;
    order: 1;
    margin-bottom: 0.6rem;
    font-weight: bold;
    text-decoration: none;
  }
  & .card__thumbnail_01 {
    margin: 0;
    order: 0;
  }
  & .card__image_01 {
    width: 100%;
  }
  & .card__body_01 {
    padding: 0 1.5rem;
  }
  & .card__text_01 {
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    padding-bottom: 0;
  }
  & .card__text2_01 {
    font-size: 0.8rem;
    margin-top: 0;
    margin-bottom: 2rem;
  }
  & .card__text_01 + .card__text_01 {
    margin-top: 0.5rem;
  }
  & .card__footer_01 {
    padding: 1rem;
    border-top: 1px solid #ddd;
  }
  & .button_01 {
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
    text-align: center;
  }
  & .button_01 a {
    text-decoration: none;
  }
  & .button_01.-compact {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background-color: #4f96f6;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
  }
  & .button_01.-compact:hover,
  & .button_01.-compact:focus {
    background-color: #6bb6ff;
  }

  /* チェックボックス（.label）。チェック画像は元々 WP uploads の絶対URL
     （過去イベントのサブサイトに固定されており環境依存かつ将来リンク切れの懸念があった）で
     プレビューに解決しなかったため、インラインSVGへ置き換えて単一源化。 */
  & .label {
    padding: 12px 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  & .label:hover > .mark {
    background: #dddddd !important;
    border: solid 2px #008eff;
  }
  & .label .input {
    margin: 0;
    width: 0;
    opacity: 0;
  }
  & .label .input:focus + .mark {
    background: #dddddd !important;
    border: solid 2px #008eff;
  }
  & .label .input:checked + .mark {
    border: solid 2px #008eff;
    background: #ffffff;
  }
  & .label .input:checked + .mark::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 80%;
    height: 80%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23008eff' d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E")
      no-repeat center;
    background-size: contain;
  }
  & .label .mark {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width: 32px;
    height: 32px;
    border: solid 2px #93cfff;
    background: #ffffff;
    border-radius: 4px;
  }
  & .label .text {
    margin-left: 12px;
    display: block;
    width: calc(100% - 44px);
  }
}

/* ===== 以下は Tier 2（リポジトリ未移行）。WP 従来定義を温存 ===== */
/* ボタン */
.nagata-special .button[data-v-c8190d06] {
  padding: 1em;
  display: block;
  width: 20vw;
  text-align: center;
  margin: 1rem auto;
  background-color: #0b1f2f;
}
@media (max-width: 46.25em) {
  .nagata-special .button[data-v-c8190d06] {
    width: 50%;
    justify-content: center;
  }
}
@media (max-width: 27.5em) {
  .nagata-special .button[data-v-c8190d06] {
    width: 80%;
  }
}
.nagata-special .button p {
  color: #fff;
}
