@charset "utf-8";
/*
	Theme Name: RE:DIVER-CHILD
	Template: rediver
	Version: 0.6.21
	Description:  re:Diverの子テーマです。PGCL（pgcl.info）用に手を加えています（成績のショートコード、旧 Diver の互換、見た目の調整）。元は配布元の rediver-child.zip。
	Theme URI: http://tan-taka.com/diver/
	Author: Takato Takagi
 */

/* =================================================
 * PGCL（pgcl.info）用の CSS
 * 元はリポジトリ wp_re-diver_pgcl の src/child-theme/style.css（docs/child-theme.md）。
 * まず RE:DIVER の設定で直せるかを確かめ、直せないものだけをここに書く（docs/decisions.md #44）。
 * ================================================= */

/* -------------------------------------------------
 * 1. 旧 Diver のクラスの互換（決定 #44、案B）
 *    Diver 4.7.7 の style.css と、移行前のカスタマイザーの追加 CSS（ID 176）のうち、
 *    本文・ウィジェット・成績のショートコードに残る Diver のクラスに当たる規則を、PGCL の配色で書き直したもの。
 *    ショートコードは functions/compat_diver.php。
 * ------------------------------------------------- */
.clearfix::after{display:block;visibility:hidden;clear:both;height:0;content:" ";font-size:0}
.clearfloat{clear:both}

/* [fontsize size="1〜7"]（Diver の .fontsize.\31 〜） */
.fontsize.fontsize-1{font-size:.8em}
.fontsize.fontsize-2{font-size:.9em}
.fontsize.fontsize-3{font-size:1.1em}
.fontsize.fontsize-4{font-size:1.3em}
.fontsize.fontsize-5{font-size:1.4em}
.fontsize.fontsize-6{font-size:1.6em}
.fontsize.fontsize-7{font-size:2em}

/* 2列（Diver の <div class="row sp"> と <div class="sc_col2 sp">。R ページの「PGCL REPORT」「Course Blog」など 35 件） */
.row{margin-right:-10px;margin-left:-10px}
.row::after{display:block;clear:both;content:""}
.sc_col2{float:left;width:50%;padding:10px;box-sizing:border-box}
@media screen and (max-width:767px){.sc_col2.sp{width:100%;float:none}}
/* 2列（本体のカラムのブロックに印 pgcl-col2 を付けたもの。新しい年度の R ページのひな形の「PGCL REPORT」「Course Blog」。決定 #78）。
   上の Diver の row sp・sc_col2 sp と同じ見た目にする：本文の左右の余白はそのまま（Diver の .row の負の余白は効いていない）、
   列の間はあけず、列ごとに上下左右 10px の余白を取る（縦に並んだときの列の間も 20px になる）。列の中は本体のブロックの間隔を入れず
   見出し（h4）の上下だけ 1.4em、767px 以下で縦に並べる（本体のカラムは 781px 以下で縦に並ぶので、768〜781px は横に並べ直す） */
#content .wp-block-columns.pgcl-col2{gap:0}
#content .pgcl-col2>.wp-block-column{padding:10px}
#content .pgcl-col2>.wp-block-column>*{margin-block-start:0}
#content .pgcl-col2>.wp-block-column>h4.wp-block-heading{margin-block:1.4em}
@media screen and (min-width:768px) and (max-width:781px){
	#content .wp-block-columns.pgcl-col2{flex-wrap:nowrap!important}
	#content .wp-block-columns.pgcl-col2>.wp-block-column{flex-basis:0!important;flex-grow:1}
}

/* [article]（ul.sc_article）と、成績のショートコード [getresult1 mode=lastupdate] の一覧 */
ul.sc_article{list-style:none;overflow:auto;padding:0 5px;margin:0}
ul.sc_article li{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 5px;position:relative}
@media screen and (max-width:768px){ul.sc_article{padding:0}ul.sc_article li{white-space:unset}}
ul.sc_article a{text-decoration:none}
.sc_article_title{font-size:.9em;display:unset}
.sc_article_title a{color:#efefef}
.sc_article_title a:hover{color:#f26800}
.sc_article_date{font-size:.9em;display:inline-block;min-width:90px;margin-right:5px}
ul.sc_article.simple{font-size:1.2em;line-height:.8em;font-weight:bold}
ul.sc_article.simple li{line-height:inherit}   /* RE:DIVER の「li{line-height:1.5}」を消し、Diver と同じく ul の .8em にする */

/* ウィジェットの中の一覧（Diver の「.widget.widget_text li a」）。トップの Information・Championship 更新履歴など。
   RE:DIVER はサイドバー以外のエリアでウィジェットの外枠（.widget.widget_text）を出さないので、中の .custom-html-widget に当てる */
.custom-html-widget ul li{margin:0;padding:0}
.custom-html-widget li a{display:block;padding:.8em 1em;margin:0;position:relative;font-size:.9em;line-height:inherit}

/* 枠と見出し（Diver の [frame] と [heading] の HTML：.sc_frame_wrap、.sc_heading。トップの custom_html-33・35・38・45 など） */
.sc_frame_wrap{margin-bottom:1.2em;position:relative}
.sc_frame{overflow:auto;border:3px solid #ccc;padding:1em 1.5em;position:relative;border-radius:5px;background:#fff;color:#000;font-size:.9em}
.sc_frame p:last-child,.sc_frame_text p:last-child{padding-bottom:0}
@media screen and (max-width:768px){.sc_frame{padding:.6em 1em}}
.sc_heading{position:relative;color:#fff;padding:.5em 1em;margin:1.5em 0 1em;line-height:1.5;box-shadow:none;border-radius:0;border:none;background:none;font-weight:bold}
.sc_heading::before,.sc_heading::after{content:none}
.sc_heading.headtag{vertical-align:middle;border-radius:40px 0 0 40px}
.sc_heading.headtag .before{color:#ccc;margin-right:30px;height:1px;position:absolute;left:1em;top:50%;line-height:0}
.sc_heading.headtag .sc_title{padding-left:1.5em}
/* 移行前のカスタマイザーの追加 CSS（T8）：「ウィジェット h3丸見出しの変更」 */
h3.sc_heading.headtag.custom{border-bottom:initial;font-size:1.5em}
/* 移行前に当たっていた余白（実測：margin 1em 0 .8em、padding .3em 1em） */
h3.sc_heading.headtag{margin:1em 0 .8em;padding:.3em 1em}
.sc_article_cat{background:rgba(0,0,0,.5);color:#fff!important;padding:3px 5px;font-size:.7em;border-radius:1px;margin-right:8px}
.sc_article.list>a,.sc_article.grid>a{display:block;box-shadow:0 0 3px rgba(0,0,0,.2);margin:8px;transition:.4s;color:inherit}
.sc_article.grid{display:flex;flex-wrap:wrap}
.sc_article.grid>a{width:calc(50% - 12px);margin:6px}
/* Diver は、左の画像（float）の横に並べるために li と .meta に overflow:auto を使っていた。中身が少しはみ出す幅（770px あたり）で
   横のスクロールバーが出たので、スクロールにならない display:flow-root に替えた（位置と大きさは同じ。2026-11-23、ユーザーの指示） */
.sc_article.list li,.sc_article.grid li{white-space:normal;display:flow-root;padding:.1em;margin:0}
.sc_article.list li{background:linear-gradient(to right,rgb(0,0,0),transparent)}
.sc_article.grid li{background:linear-gradient(to bottom,rgb(0,0,0),transparent)}
.sc_article.list li .meta,.sc_article.grid li .meta{padding:8px;display:flow-root}
.sc_article.list .post_list_thumb,.sc_article.grid .post_list_thumb{position:relative;background-color:#eee;margin:0}
.sc_article.list .post_list_thumb{float:left;width:140px;margin-right:8px;aspect-ratio:1/.618;overflow:hidden}   /* 縦横比は Diver の実測（140×86.5px） */
.sc_article.list .post_list_thumb img,.sc_article.grid .post_list_thumb img{width:100%;height:100%;object-fit:cover;border:none;box-shadow:none;margin:0;display:block}
.sc_article.list .post_list_thumb .sc_article_cat,.sc_article.grid .post_list_thumb .sc_article_cat{position:absolute;bottom:0;right:0;margin:0;font-weight:bold;font-size:.7em;padding:2px 4px}
.sc_article.list .sc_article_title,.sc_article.grid .sc_article_title{font-size:14px;display:-webkit-box;font-weight:bold;margin-bottom:8px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#efefef}
.sc_article.list .sc_article_date,.sc_article.grid .sc_article_date{font-size:.8em}

/* ボタン（Diver の <div class="button radius shadow block custom"><a class="small">。R ページなど公開中の 52 件。すべてこの形）
   RE:DIVER は .button a をボタンの見た目（幅いっぱい・角 2px）にする（強さ 0 の :where）。Diver 4.7.7 の style.css の .button の規則を移した。
   背景の色は本文の a の style（例 #1f3540）で付く（2026-11-22、フェーズ10） */
.content .button{text-align:center;margin:0 5px 1.2em}
.content .button a{padding:.6em 2em;display:inline-block;position:relative;border-style:solid;border-width:0;color:#fff;font-weight:bold;font-size:inherit;text-decoration:none;letter-spacing:2px;border-radius:3px;width:auto}
.content .button a.small{padding:.5em 1.3em;font-size:13px}
.content .button a:hover{filter:brightness(.95)}
.content .button.radius a{border-radius:50px}
.content .button.shadow a{box-shadow:0 2px 10px 1px rgba(0,0,0,.2)}
.content .button.shadow a:hover{box-shadow:none}
@media screen and (max-width:768px){.content .button a{padding:.8em 1em;font-size:.9em}}

/* -------------------------------------------------
 * 2. 投稿ごとの追加 CSS をまとめたもの（決定 #45）
 *    Diver の投稿メタ custom_css（279 件・9 種類）を1つにした。DB の custom_css は RE:DIVER では読まれない。
 *    共通（種類 1・2：R ページなど 249 件）は全ページに当て、違いはカテゴリー・投稿の ID で絞る
 *    （RE:DIVER は投稿の枠 article.article-container に category-<スラッグ> と post-<ID> のクラスを付ける）。
 * ------------------------------------------------- */

/* 2-1. 共通：タブ（Shortcodes Ultimate の su_tabs）
   Shortcodes Ultimate の CSS はページの最後に読まれ、同じ強さの指定では負けるので、本文の枠の #content を付けて強くした */
/* 余白と行の高さは、文字の大きさ（1.5vmin）に対する比の em で書いた（元は 1vmin 1.3vmin、2vmin。見た目は同じ）。
   収まらないときに script.js が文字を小さくすると、余白も一緒に縮む（2026-11-22） */
#content .su-tabs-nav span{display:inline-block;margin-right:.2vmin;padding:.667em .867em;font-size:1.5vmin;min-height:1.333em;line-height:1.333em;color:#333;background:#cacaca;font-weight:bold}
#content .su-tabs{margin:0 0 1.5vmin 0;padding:3vmin;border-radius:3vmin;background:#24140e}
#content .su-tabs-nav span:hover{color:#f9f9f9;background:#f26800}
#content .su-tabs-nav span.su-tabs-current{background:#fff;color:#f26800;font-weight:bold;cursor:default}
/* 元の CSS の「.su-tabs { font-siz: 1.9vmin }」は書き間違いで効いていなかったので、移していない */

/* 2-2. 共通：記事一覧の行（R ページの「PGCL REPORT」など）
   元は投稿ごとの CSS なので、投稿の枠（.article-container）の中だけに当てる（トップのウィジェットには当たっていなかった） */
.article-container li.clearfix{font-size:.9em}
.article-container .sc_article_date{width:100px}

/* 2-3. 共通：歴代最優秀選手の枠（R ページ） */
.champion_boxnote{position:relative;margin-top:1em;padding:4%;width:100%;border:3px solid #ecb507;outline:1px solid #eece69;outline-offset:-10px;background:linear-gradient(180deg,#ffffff 0%,#f0bc681f 50%,#ffc80029 10%,#f9c3004d 100%);display:flex;justify-content:center;align-items:center}
.champion_boxnote .champion{position:absolute;top:0;left:0;color:#c90;font-size:1.5vmin;font-weight:bold;padding:0 1em;margin:0;background-color:#fff;transform:translateY(-50%) translateX(1em)}
.td_c1,.champion_boxnote .td{height:100%;font-size:1.5vmin;line-height:2vmin;width:15%;font-weight:bold}

/* 2-4. 主催大会（カテゴリー highgrade）と歴代シーズンチャンピオン（固定ページ 4214）：種類 4・5 */
.article-container.category-highgrade .champion_boxnote .td,
.article-container.post-4214 .champion_boxnote .td{text-align:center}
.article-container.category-highgrade .content img,
.article-container.post-4214 .content img{max-width:100%;height:auto;margin:0}
/* 種類 4（9 件）は「aa padding」の書き間違いでタブの余白が効いていなかった。直して、ほかと同じ余白にした */

/* 2-5. シーズンランキング（カテゴリー season-ranking、11 件）と全体日程表（243）：種類 3・9。タブを小さく */
.article-container.category-season-ranking #content .su-tabs,
.article-container.post-243 #content .su-tabs,
.article-container.post-4262 #content .su-tabs,
.article-container.post-4424 #content .su-tabs,
.article-container.post-4780 #content .su-tabs{margin:0 0 1.5em 0;padding:3px;border-radius:3px}
.article-container.category-season-ranking #content .su-tabs-nav span{padding:1.154em .769em;font-size:1.3vmin}   /* 元は 1.5vmin 1vmin */
.article-container.post-243 #content .su-tabs-nav span{padding:1em 1.333em}   /* 元は 1.5vmin 2vmin */

/* 2-6. 古い版の CSS の投稿（4262、4424 プロフィール、4780 非公開）：種類 6 */
.article-container.post-4262 .calendar_mode,
.article-container.post-4424 .calendar_mode,
.article-container.post-4780 .calendar_mode{background:#24140e;border:medium solid #666}

/* 種類 7（958 ホームページ）と 8（13 非公開）は、Diver の HTML（.single-post-main、#single-main.full）に頼る指定なので移していない。
   トップの余白は、撮り比べで違いが残れば別に直す。 */

/* -------------------------------------------------
 * 3. 本文の見出し（決定 #44：設定で直せない部分だけ）
 *    形と色は RE:DIVER の設定「カスタマイズ > コンテンツ > 見出し」（theme_mod diver_content_heading。src/settings/rediver-settings.php）。
 *    ここには、その設定の選択肢に無いものだけを書く。移行前（Diver）の値：
 *    h3＝白の背景・黒の文字・緑（#004c1c）の下線、h4＝明るい文字・下線・行頭の◆。
 *    クラシックの本文の印の無い見出しと、ブロックエディターの見出し（wp-block-heading）に当てる。Diver の印の付いた見出し（sc_heading など）は外す
 *    （ブロックの見出しは、はじめ外れていて◆が出なかった。2026-11-23、フェーズ10b の R ページのひな形で見つけた）。
 * ------------------------------------------------- */
#content :where(h3:not([class]),h3.wp-block-heading){border-bottom:2px solid #004c1c;border-radius:0}
/* h4 の大きさ・行の高さ・余白は移行前の実測（19.2px＝1.2em、行の高さ 2、余白 .2em 1em .2em 30px）。◆は1行目の真ん中に置く */
#content :where(h4:not([class]),h4.wp-block-heading){position:relative;font-size:1.2em;line-height:2;padding:.2em 1em .2em 30px}
#content :where(h4:not([class]),h4.wp-block-heading)::after{position:absolute;top:calc(1.2em - 5px);left:.4em;z-index:2;content:'';width:10px;height:10px;background-color:#efefef;transform:rotate(45deg)}

/* -------------------------------------------------
 * 0. 全体（決定 #44：設定で直せない部分だけ）
 *    RE:DIVER は body に字の間隔（letter-spacing:.075em）を付ける。設定は無い。移行前（Diver）は付けていない。
 *    （この節は「3.」の後ろにあるが、全体に当たる指定なので 0 とした）
 * ------------------------------------------------- */
body{letter-spacing:normal}
/* リンクの下線：Diver は全体で消していた（style.css の a { text-decoration: none; }）。RE:DIVER は消さない（ブラウザーの既定で下線が付く） */
a{text-decoration:none}

/* -------------------------------------------------
 * 4. レイアウト（決定 #44：設定で直せない部分だけ）
 *    幅は RE:DIVER の設定「カスタマイズ > レイアウト」（theme_mod diver_global_style の width。src/settings/rediver-settings.php）。
 *    RE:DIVER 0.7.0 は、メインの上限を「画面の幅 − サイドバー − 間隔 − 4%」で決めるが、左右の余白は 5% ずつ取る。
 *    メインが上限で止まる幅（1025px〜）では合計が 1% はみ出し、サイドバー（flex:1）が縮む（310px → 約 245px）。
 *    サイドバーのポスター（幅 290px）と地図（270px）が入るように、上限を「余白を除いた幅 − サイドバー − 間隔」に直す。
 * ------------------------------------------------- */
@media screen and (min-width:1025px){
	body:not(.l-sidebar-none) #main{max-width:calc(var(--rd--content--max) - var(--rd--l--sidebar) - var(--rd--container--gap))}
}

/* -------------------------------------------------
 * 5. サイドバーのウィジェット（決定 #44：設定で直せない部分だけ）
 *    設定（theme_mod diver_sidebar）：スタイル「Padding」（ウィジェットを箱で囲む）、題名「box」、題名の色 #1f3540・#efefef、間隔 1。
 *    RE:DIVER の箱は背景がメインカラー（#24140e、記事の箱と同じ）で余白 1.6rem。移行前（Diver）の箱に合わせる：
 *    背景 rgba(0,0,0,.4)、余白 10px、角丸 4px、題名は余白 8px 15px・太字なし・16px。
 *    余白 10px は、サイドバー 310px にポスター（幅 290px）がちょうど入る値。
 * ------------------------------------------------- */
#sidebar.is-style-padding .widget:not(.widget_search,.widget-block-container,.widget_media_image){background-color:rgba(0,0,0,.4);padding:10px;border-radius:4px;box-shadow:0 0 5px rgba(150,150,150,.2);font-size:16px}
#sidebar.is-style-padding .widget:not(.widget_search,.widget-block-container,.widget_media_image)>.widget{margin:-10px}
/* 題名は RE:DIVER がページの中（<style>）に同じ強さの指定を出すので、body を付けて強くした */
body #sidebar.is-style-padding :where(.widgettitle,.wp-block-heading):not(.screen-reader-text,.dbp-heading[class*="is-design-"]),
body #sidebar.is-style-padding .widget_block .wp-block-group :where(h2,h3,.wp-block-heading):not(.screen-reader-text,.dbp-heading[class*="is-design-"]):first-child{margin:-10px -10px 10px;padding:8px 15px;font-weight:400;font-size:16px;border-radius:0}

/* サイドバーの記事一覧（Diver Blocks の投稿一覧。競技・開催コース一覧）。
   設定（src/settings/rediver-widgets.php）：デザイン「tertiary」＋区切り線。移行前（Diver の新着記事ウィジェット）の行に合わせる：
   行の高さ 約 44px、文字 11.66px 太字、行は箱の端から端まで。マウスを載せると橙（移行前の追加 CSS「サイドバーウィジェットコンテンツ」） */
#sidebar .widget-block-article .wrap-pb.is-tertiary{--rd--pb--s--gap:0px;gap:0;margin-inline:-10px}
#sidebar .widget-block-article .is-tertiary .pb-contents{padding:8px 6px;color:#efefef;transition:.4s}
#sidebar .widget-block-article .is-tertiary .pb-contents:hover{color:#f9f9f9;background:#f26800}
#sidebar .widget-block-article .is-tertiary .pb-title{font-size:11.664px;line-height:1.5;font-weight:bold;letter-spacing:normal}
/* 移行前の追加 CSS「サイドウィジェットの施設テキストサイズ変更」（#sidebar .sidebar_content .widget_text p）。R ページの「基本情報」など */
#sidebar .widget_text p,#sidebar .single_widget p{font-size:.8em}
/* R ページの「基本情報」のリンク（公式サイト）：移行前は文字の色 #efefef・下線なし。RE:DIVER はリンクの色（#999）・下線あり */
#sidebar .single_widget a{color:#efefef;text-decoration:none}

/* -------------------------------------------------
 * 5b. トップのピックアップ（Diver Blocks のスライダー。設定は src/settings/rediver-widgets.php：レイアウト「cover」、画像とカテゴリー）
 *    移行前（Diver のピックアップ）に合わせる：題名は画像の下の端の黒い帯（rgba(0,0,0,.9)・高さ 50px・12.8px）、
 *    マウスを載せると帯が橙（移行前の追加 CSS「TOPピックアップスクロール」）、カテゴリーは右上の灰色のラベル、
 *    画像の枠 1px #333・背景 #000（「アイキャッチ背景」の #pickup_posts_container img）。
 * ------------------------------------------------- */
.dbp-slide-article .pb-contents{border:1px solid #333;background:#000;border-radius:0}
.dbp-slide-article .pb__body{position:absolute;inset:0;z-index:1;justify-content:flex-end;padding:0;gap:0}
.dbp-slide-article .pb-title{width:100%;min-height:50px;padding:5px;background:rgba(0,0,0,.9);color:#fff;font-size:12.8px;line-height:1.5;letter-spacing:normal;text-align:left;transition:.4s}
.dbp-slide-article .pb-contents:hover .pb-title{background:rgba(242,104,0,.6)}
.dbp-slide-article .p-cats{position:absolute;top:5px;right:5px;z-index:2}
.dbp-slide-article .p-cat-item{background:rgba(0,0,0,.5);color:#fff;border-radius:2px;font-weight:bold;font-size:10px;padding:2px 6px}
/* スライダー（Splide）の複製のスライドの画像が「読み込み中」の見た目のまま残る崩れを直す（2026-11-23、ユーザーの指摘）。
   Splide はループのためにスライドを複製する。画像の遅延読み込み（lazysizes）の途中で複製すると、複製の画像に「読み込み中」の印
   （lazyloading）が写り、lazysizes は複製を知らないので、画像が読み込まれても印が外れない。RE:DIVER の CSS は、その印の画像を
   高さ自動・不透明度 0.1・動くスケルトンにするので、小さく薄くずれて見えた（画像が先に読み終わってから Splide が動くと崩れないので、
   崩れたり崩れなかったりした）。複製の画像は元から src も写っていてブラウザーが読み込むので、見た目だけを読み込み済みと同じにする */
.splide .splide__slide--clone img.lazyloading,.splide .splide__slide--clone .pb__thumb img.wp-post-image.lazyloading{opacity:1;width:100%;height:100%;animation:none;background:none;text-indent:0}

/* -------------------------------------------------
 * 6. ヘッダーのメニュー（決定 #44：設定で直せない部分だけ）
 *    設定（theme_mod diver_header_items）：メニューの並びを「下段」にする（移行前と同じく、ロゴの下に別の帯で出す）。
 *    RE:DIVER の下段は、左寄せ・副題（英語の説明）なし・帯の色なし。移行前（Diver）に合わせる：
 *    帯 #cacaca（移行前の追加 CSS「独立メニュー背景」#onlynav）、中央寄せ、題名 14.4px 太字 #333、副題 10px。
 * ------------------------------------------------- */
/* RE:DIVER は同じ強さの指定をページの中（<style>）にも出すので、body を付けて強くした */
body #header-nav.is-position-bottom{background:#cacaca;color:#333;justify-content:center}
body #header-nav.is-position-bottom .header-nav{padding:0;font-size:1em}
body #header-nav.is-position-bottom .header-nav-item .menu-item-handle{padding:14.4px 18.72px;color:#333}
body #header-nav.is-position-bottom .header-nav-item .menu-title{font-size:14.4px;font-weight:bold}
/* 折り返さない（ユーザーの指示、2026-11-23。決定 #65）。7つの項目は余白を除くと約 845px（Windows の Chrome で測った）。
   帯（#header-nav）の幅に合わせて項目の左右の余白を縮め（最大は移行前と同じ 18.72px、最小 4px）、960px の画面（スクロールバーを除いて 943px）でも1段に収める。
   それでも収まらないとき（字の幅が大きいフォントなど）は、折り返さずに横に送る（RE:DIVER の元の動き）。
   中央寄せは帯（#header-nav の justify-content）で行い、並び（.header-nav）の中は左から詰める。並びの中を中央寄せにすると、
   あふれたときに先頭側が左にはみ出し、スクロールで出せない（safe center は古い Safari が読まない。Codex の指摘） */
body #header-nav.is-position-bottom{container-type:inline-size}
body #header-nav.is-position-bottom .header-nav{flex-wrap:nowrap;justify-content:flex-start;min-width:0;overflow-x:auto}
body #header-nav.is-position-bottom .header-nav-item .menu-item-handle{padding-inline:clamp(4px,(100cqi - 860px) / 14,18.72px)}
body #header-nav.is-position-bottom .header-nav-item .menu-title{white-space:nowrap}
body #header-nav.is-position-bottom .menu-desc{display:block;font-size:10px;font-weight:bold;text-align:center}
/* 帯を画面の左右の端まで伸ばす。RE:DIVER の帯は、ヘッダーの左右の余白（5%）より少し短い負のマージン（4.5%）で、両端が 6px ほど足りない。
   影で背景だけを伸ばす（幅は変えないので、横のスクロールは出ない） */
body #header-nav.is-position-bottom{box-shadow:0 0 0 100vmax #cacaca;clip-path:inset(0 -100vmax)}
/* 959px 以下では帯を出さない（移行前の Diver も 959px 以下で #onlynav を消し、ヘッダーのドロワーで開く）。
   RE:DIVER はスマホの User-Agent では帯を出力しないが、User-Agent で見分けられない幅の狭い画面（タブレット、狭いウィンドウ）では、
   折り返した帯が画面の半分ほどを覆っていた */
@media screen and (max-width:959px){
	body #header-nav.is-position-bottom{display:none}
}

/* -------------------------------------------------
 * 7. 投稿・固定ページの題名の帯（決定 #44：設定で直せない部分だけ）
 *    移行前の追加 CSS「タイトル背景」（header div.post-meta.clearfix, h1.page_title）：背景 #420d14・文字 #efefef。
 *    RE:DIVER 0.7.0 の題名のレイアウトは「ノーマル」「ビッグ」だけで、色の設定が無い。
 *    記事の箱（.l-box:primary）の上の余白を、題名の帯の中の余白にする（帯が箱の上の端から始まるように）。
 * ------------------------------------------------- */
.article-container.l-box\:primary:has(>.article-header){padding-top:0}
.article-container.l-box\:primary>.article-header{background:#420d14;color:#efefef;padding-block:16px;border-radius:var(--rd--s--radius) var(--rd--s--radius) 0 0}

/* -------------------------------------------------
 * 8. 移行前のカスタマイザーの追加 CSS（T8。custom_css ID 176）のうち、そのまま、またはセレクターを直して移したもの
 *    対応は docs/css-mapping.md。設定で直したもの・移さなかったものも、そこに書く。
 * ------------------------------------------------- */
/* 「アイキャッチ背景」のうち Shortcodes Ultimate の画像の並び（サイドバーのポスター、トップの Relationship など）。
   Shortcodes Ultimate の CSS は後から読まれるので body を付けて強くした */
body div.su-custom-gallery-slide img{border:1px solid #333;background:#000}
/* 「HOME記事のライトシャドウ」：サイドバーのポスター（custom_html-41）。sc_frame は RE:DIVER では本文の箱と重なるので移していない（下の css-mapping.md） */
#custom_html-41 .textwidget.custom-html-widget{box-shadow:rgba(239,239,239,.07) 0 0 6px 3px}
/* 「HOMEのポスターボトム」「ギャラリーの文字」 */
.su-custom-gallery{margin-bottom:0!important}
.su-custom-gallery-title-always span{font-weight:bold}
/* 「投稿記事テーブル文字」（Diver の div.content.content td）：表の文字は黒（表の背景は白や色付き） */
.content td{color:#000}
/* 本文の表の罫線：Diver 4.7.7 の style.css と同じく 1px の #ccc（2026-11-22、ユーザーの指示）。
   RE:DIVER は罫線を文字の色（#efefef）の 20% にするので、白い背景の表（全体日程表のカレンダー、成績表など）では線が見えなかった。
   本文の table の border="1" で付く表の外枠（1px outset #333）も、Diver と同じ線にした */
.content table,.content td,.content th{border:1px solid #ccc}
/* 本文の表の見出しのセル（th）：RE:DIVER は左寄せ・太字なしにする。Diver と同じく、表の指定（成績表は style の text-align:center）に従い、太字にする（全体日程表の見出しの行など） */
.content th{text-align:inherit;font-weight:bold}
/* 「投稿記事テーブル均等割付」 */
table{table-layout:fixed;width:100%}
/* 「投稿記事テーブル項目名」：Shortcodes Ultimate の表 */
div.su-table.general .su-even td{background:#aaa!important;font-weight:bold}
div.su-table.general td{background:#efefef!important}
/* 「上に戻るボタン」（Diver の #page-top a:hover）→ RE:DIVER の上に戻るボタン */
.js-scroll-to-top:hover{background:#f26800;color:#fff}

/* -------------------------------------------------
 * 9. 本文の表・記事一覧のページ・スマホ（決定 #44：設定で直せない部分だけ）
 * ------------------------------------------------- */
/* 本文の表（成績表など）：RE:DIVER は body に overflow-wrap:break-word を付け、表の行の高さも本文と同じ 1.8 になる。
   スマホでは成績表の狭い列（日付・スコア）が1文字ずつ折り返し、表が縦に 1.7 倍に伸びていた。
   Diver と同じく、表の中は折り返さない・行の高さ 1.5 にする（Diver の style.css の table{line-height:1.5}） */
.content table{line-height:1.5}
.content td,.content th{overflow-wrap:normal}
/* 表のセルの余白：スマホでは Diver と同じ .5em（RE:DIVER は .8em 1.4em で、全体日程表の「反映済み」などが折り返していた） */
@media screen and (max-width:768px){
	.content td,.content th{padding:.5em}
}
/* 本文の先頭が [fontsize]（span）のとき：RE:DIVER は本文の直下の「要素」にだけ左右の余白を付けるので、
   全体日程表（243）の先頭の文が画面の左の端に付いていた。ブロックにして余白を付ける */
.-inner-content>.fontsize{display:block;margin-inline:auto;max-width:var(--rd--content--max)}
/* タブ（su_tabs）の見出し：いつも1段に並べる（縦に並べない・折り返さない。2026-11-22、ユーザーの指示）。
   並び全体の左右の端は、開いているタブの表の左右の端にそろえる（script.js）。収まらないときは script.js が文字を小さくする（余白は文字の大きさに合わせて縮むように em で書いた。上の「2-1」）。
   文字が 5px でも収まらないときだけ、横にスクロールさせる。
   以前（移行前と同じ）は、Shortcodes Ultimate が 768px 以下で縦に並べ（su-tabs-mobile-stack）、それより広い画面でも収まらないと折り返していた */
#content .su-tabs .su-tabs-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
#content .su-tabs .su-tabs-nav span{flex:1 0 auto;white-space:nowrap;text-align:center;transition:color .2s,background-color .2s}
#content .su-tabs .su-tabs-nav span:last-child{margin-right:0}   /* 並びの右の端を白い枠の右の端にぴったりそろえる */
/* タブの中の成績表：表が入る枠（タブの中身）の幅に合わせて、大きさに上限をかける（2026-11-22。functions/grade_table_scale.php）。
   成績のショートコードは文字や余白を画面の大きさの単位（vmin）で書くので、PC の幅でも枠が狭いとき（1025px の画面で右にサイドバーが出る R ページなど）、
   文字が大きいままで表が崩れた。タブの中身を「枠」（container）にし、style の vmin に枠の幅（cqi）での上限を足す */
#content .su-tabs-pane{container-type:inline-size}
/* タブの中の表のセルの余白：画面の幅に関係なく、文字の大きさに比例する .5em（Diver のスマホと同じ）。
   以前は 769px 以上で RE:DIVER の余白（.8em 1.4em。左右 約 15px）になり、770px あたりの画面で、細い欄（スコアなど）の右の余白が無くなった。
   セルの style で余白を決めているもの（大会名・名前など）は、その指定のまま */
#content .su-tabs-pane td,#content .su-tabs-pane th{padding:.5em}
/* 表の幅いっぱいに広げる（左右の端は script.js が表にそろえる）。Shortcodes Ultimate の transition:all .2s を色だけにした
   （文字の大きさと余白が 0.2 秒かけて変わると、script.js が途中の大きさを測ってしまい、縮めすぎた） */
/* 記事一覧のページ（カテゴリー・タグ）の説明：DB の説明は管理用のメモ（「ホームページのコースブログに掲載されます。」など 13 件）。
   Diver は出さなかったが、RE:DIVER は題名の下に出す（frontend/Partials/Archive.php。出さない設定は無い）。2026-11-21、ユーザーの指示で出さない */
.archive-title-container-description{display:none}
/* スマホ（サイドバーが本文の下に回る幅）の並び順：RE:DIVER はサイドバーに order:1 を付けるので、
   後ろに出す「コンテナー下部（PGCL）」（Relationship・協力企業）がサイドバーより上に来ていた。移行前と同じく、サイドバーの後ろにする */
#main-wrap>#sidebar~*{order:2}

/* 記事一覧のリスト（記事一覧のページなど）：RE:DIVER は 599px 以下で、サムネイルの横に題名だけを残し、ほかを隠す
   （:where(.wrap-pb).l-pb-list:not(.is-layout-reverse) .pb__thumb + .pb__body > :not(.pb-title){display:none}）。
   移行前のスマホは「題名＋日付」だったので、日付の行（.pb__footer）だけを出す（2026-11-21、ユーザーの指示）。抜粋は移行前と同じく出さない */
@media screen and (max-width:599px){
	.wrap-pb.l-pb-list .pb__thumb+.pb__body>.pb__footer.l-flex{display:flex}
}
/* 「アイキャッチ背景」（移行前の追加 CSS の figure.single_thumbnail）と、Diver の .single_thumbnail img の規則：
   投稿の上の大きな画像は、幅いっぱい・高さは最大 500px で、縦横の比は変えずに縮め、余りは黒い背景にする（2026-11-22、フェーズ10）。
   サイドバーの無いページ（決定 #53）では、そのままだと画像が本文の幅いっぱい（1280px の画面で高さ 800px ほど）になっていた */
figure.single_thumb{background:#000;color:#1f1a1a;text-align:center}
figure.single_thumb img{width:100%;height:auto;max-height:500px;object-fit:contain;vertical-align:middle}
