/* ==========================================================================
   SWELLテーマ (英語版) 向け COOL_CSS_2024 適用後の差分調整用追加CSS

   変更履歴
   v1.12.0 2026-10-30 章 B の B-4（メニュー）を EN 用に調整（ユーザー指定。JA の値は変えず、EN だけ）: カードのオーバーレイ文字 14px → 13px（実ページで Live Wait Times が 103.8px で 100px を超えたため）、その行間を +2px（calc(1.1em + 2px)＝16.3px。一度 17.4px にしてユーザー指示で戻した）、パネル見出し 18px → 16px（Wait Times が折り返すため）
   v1.11.0 2026-10-29 COOL 専用のルール（章 A の h2.deco・h5.coolc・h3.deco・h4.coolhead・ul.cool・memobox、スマホ・PC の h2.deco・h5.coolc、章 C の COOL のクラスのフォント指定とアイコンの content、章 D の memobox の行間）を css/ 外の WPCode スニペット COOL_CSS_2024_SWELL（spec_sub_files/wpcode/cool_css_2024_swell.html）へ移した。COOL_CSS_2024 を使うページにだけ出すため（ユーザー決定 D-5）。全ページ共通のもの（FontAwesome 互換・デフォルトの h2/h3・h4.menu_underh2・h5.deco2・alert-box・i.fa）はここに残す
   v1.10.0 2026-10-28 章 D に、本文の上の余白（SWELL の既定の 2/3）を追加（ユーザー指定「全ページで今の半分くらいのマージン」→ 半分は詰めすぎで 2/3 に。台帳 E-74）
   v1.9.0 2026-10-24 章 D にメニューのキャプションを画像にぴったり乗せる指定を追加（ユーザー指定。台帳 E-33）
   v1.8.0 2026-10-24 章 B に B-4（メニュー: .icon_menu_title・.blocklink3 系。JA の icon_menu.css から移植。台帳 E-27）
   v1.7.0 2026-10-24 章 C に fa-arrow-down / left / right / up の太さ（-webkit-text-stroke）を追加（ユーザー指定。FA6 が FA4.7 より細いため）
   v1.6.0 2026-10-24 章 D に縦長画像（img.is-portrait）の最大幅 640px を追加（ユーザー指定）
   v1.5.0 2026-10-24 章 D に memobox の行間 1.4 を追加（ユーザー指定）
   v1.4.0 2026-10-24 章 D（EN 独自の調整）を追加: コピー用の入力欄の上の余白 8px
   v1.3.0 2026-10-24 章 C に FontAwesome 4.7 のアイコン（i.fa）の指定を追加（font-weight 400。-o 系のアイコンは FA6 の regular で再現）
   v1.2.0 2026-10-24 章 A を JA の指定に合わせて修正（h5.coolc・ul.cool li は em と単位なしの行間、960px 以上の切り替え B2 を追加、h2.deco の z-index・疑似要素、ul.cool の角丸、memobox の .box-title の余白）。
                     div.alert-box の先頭・末尾の余白（SWELL の !important に勝つため、この 2 行だけ !important を使う）
   v1.1.0 2026-10-23 章 B を追加（nlink の CSS。以前は nlink.php が wp_footer で出力）。全適用のベース css/en-base.css（生成物）を、このファイルの直前に読み込む前提になった。
                     記事本文のベース（文字・リンク・リスト・box-sizing）は css/en-theme-base.css（en-base.css の先頭）に分けた
   v1.0.0 (初版)     章 A: COOL_CSS_2024 の差分
   構成: 章 A = COOL_CSS_2024 の SWELL 差分 / 章 B = JA のテーマ（STINGER8）由来の差分（.post_content の中だけ）
   仕様: spec/12_CSS整合手順.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   FontAwesome 4.7 互換: COOL_CSS_2024 の "FontAwesome" 指定を FA6 で解決
   FA6 付属の v4compatibility フォントを使うことで COOL_CSS_2024 の修正不要
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "FontAwesome";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../../swell/assets/font-awesome/v6/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
  font-family: "FontAwesome";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../../swell/assets/font-awesome/v6/webfonts/fa-solid-900.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   A. 全画面共通 (デフォルト: PCサイズ基準) の上書きスタイル
   (詳細度を高めるため #body_wrap .post_content セレクタを使用し !important を排除)
   -------------------------------------------------------------------------- */






/* 7. デフォルト H2 (クリア解除、マージン・フォントサイズ・行高・文字色の同期、SWELL装飾無効化) */
#body_wrap .post_content h2:not([class]) {
  position: static;
  clear: none;
  margin: 20px 0 20px;
  padding: 5.5px 11px;
  font-size: 22px;
  line-height: 35px;
  color: #494949;
  background-color: transparent;
  border-left: 10px solid #2503e4;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  box-shadow: none;
}
#body_wrap .post_content h2:not([class])::before,
#body_wrap .post_content h2:not([class])::after {
  content: none;
  display: none;
}

/* 8. 全H3共通マージン (SWELLの margin:3em 0 2em を STINGER8相当の 20px 0 に統一) */
#body_wrap .post_content h3 {
  margin: 20px 0;
}

/* 8-b. デフォルト H3 (クリア解除、位置、フォントサイズ、行高、ボーダーの同期) */
#body_wrap .post_content h3:not([class]) {
  position: static;
  clear: none;
  margin: 20px 0;
  padding: 10px 12px;
  font-size: 20px;
  line-height: 27px;
  color: #1a1a1a;
  background-color: transparent;
  border-bottom: 2.66667px solid #2503e4;
  border-top: none;
  border-right: none;
  border-left: none;
  border-radius: 0;
  box-shadow: none;
}
#body_wrap .post_content h3:not([class])::before {
  content: none;
  display: none;
}

/* 9. h4.menu_underh2 (SWELLデフォルト左線の無効化、クリア解除、背景色・パディング・文字色・サイズの同期) */
#body_wrap .post_content h4.menu_underh2 {
  position: static;
  clear: none;
  margin: 20px 0;
  padding: 10px 15px;
  font-size: 18px;
  line-height: 31px;
  color: #000;
  background-color: #d2f6fb;
  border-left: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  box-shadow: none;
}

/* 10. h5.deco2 (クリア解除、文字色、行高、余白、消された左線・下線の復元) */
#body_wrap .post_content h5.deco2 {
  clear: none;
  margin: 30px 0 16px;
  padding: 4px 0 4px 8px;
  font-size: 17.6px;
  line-height: 30px;
  color: #000;
  border-left: 6px solid #ccc;
  border-bottom: 2px solid #ccc;
  border-top: none;
  border-right: none;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
}

/* 10b. div.alert-box の先頭・末尾の余白。SWELL は .post_content div > :first-child / :last-child に margin: 0 !important を付けるため、JA（.alert-box { margin: 12px 2px }）と同じにするには !important が必要 */
#body_wrap .post_content div > .alert-box:first-child {
  margin-top: 12px !important;
}
#body_wrap .post_content div > .alert-box:last-child {
  margin-bottom: 12px !important;
}


/* --------------------------------------------------------------------------
   B. スマホサイズ (max-width: 599px) 用のレスポンシブ上書きスタイル
   -------------------------------------------------------------------------- */
@media screen and (max-width: 599px) {
  /* デフォルト H2 (行高を35pxから27pxに縮小。h2.deco は COOL_CSS_2024_SWELL へ移した) */
  #body_wrap .post_content h2:not([class]) {
    line-height: 27px;
  }

  /* h4.menu_underh2 (行高を31pxから26pxに縮小) */
  #body_wrap .post_content h4.menu_underh2 {
    line-height: 26px;
  }

  /* h5.deco2 (行高を30pxから26pxに縮小。文字サイズは JA も 17.6px のまま) */
  #body_wrap .post_content h5.deco2 {
    line-height: 26px;
  }
}

/* --------------------------------------------------------------------------
   B2. PC サイズ (960px 以上。JA のテーマの切り替え幅と同じ) の上書き
   -------------------------------------------------------------------------- */
@media print, screen and (min-width: 960px) {
  #body_wrap .post_content h5.deco2 {
    line-height: 26px;
  }
}

/* --------------------------------------------------------------------------
   C. FontAwesome 6 互換性およびバックスラッシュ二重化問題の解消
   (※ FontAwesomeのファミリー名・ウェイト調整のみに限定して !important を使用)
   -------------------------------------------------------------------------- */

/* 記事の中の FontAwesome 4.7 のアイコン（<i class="fa fa-xxx">）。JA の computed は font-weight 400。
   SWELL（FA6）は .fa を font-weight 900・"Font Awesome 6 Free" にする。上の @font-face の "FontAwesome" は、400 も 900 も solid の同じフォントなので、
   "FontAwesome"・400 にすると、JA（FA4.7 の solid 相当）と同じ値になり、見た目も同じ */
.post_content i.fa {
  font-family: "FontAwesome";
  font-weight: 400;
}
/* FA6 の矢印（arrow-down / left / right）は FA4.7 より細いので、縁取りで太くする（0.09em = 16px で約 1.4px。PoC scripts/poc_fa_arrow_weight.js で JA と見比べた値。台帳 E-26） */
.post_content i.fa-arrow-down::before,
.post_content i.fa-arrow-left::before,
.post_content i.fa-arrow-right::before,
.post_content i.fa-arrow-up::before {
  -webkit-text-stroke: 0.09em currentColor;
}
/* FA4.7 の -o（outline）のアイコンは、FA6 に同じ名前がなく、EN では何も出ない。FA6 の regular（400）で、同じ形のアイコンの content を指定する。
   新しい -o のアイコンを記事で使うときは、ここに足す（spec/12 7.14。content の文字は JA と違うので、accepted_diffs.json に理由つきで記録する） */
.post_content i.fa-check-circle-o::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}
.post_content i.fa-building-o::before {
  content: "\f1ad";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}



/* --------------------------------------------------------------------------
   B. JA のテーマ（STINGER8）由来の差分のうち、部品の CSS（nlink のカード）
   仕様: spec/12_CSS整合手順.md 7.7
   読み込み順: SWELL 本体 → TOC+ → en-base.css（en-theme-base.css・Simple Custom CSS・COOL_CSS_2024・ボタン_CSS）→ 本ファイル
   -------------------------------------------------------------------------- */

/* B-1〜B-2. 記事本文のベース（文字・リンク・リスト・box-sizing・目次タイトル）は css/en-theme-base.css に分けた。
   部品の CSS（en-base.css の中）より前に読み込む必要があり、このファイル（部品の後）に置くと、同じ詳細度の部品のルールを上書きしてしまうため */

/* B-3. nlink（内部リンクのブログカード）。以前は nlink.php が wp_footer で出力していた。同一ページに大量に挿入されるため、ここへ移した */
.linkcard { margin-bottom: 4px; }
.linkcard a { text-decoration: none; }
.linkcard img { margin: 0 !important; padding: 0; border: none; }
.lkc-internal-wrap { margin: 0; border: 2px solid #ddd; padding: 0; border-radius: 8px; max-width: 620px; background-color: #fff; }
/* JA の .lkc-content2 は margin-top: 6px だが、SWELL の .post_content div > :first-child { margin-top: 0 !important } に勝てない（!important は使わない）。
   同じ見た目になるよう、.lkc-card の padding-top: 6px で再現する（css/accepted_diffs 相当の「許容した差」。spec_sub_files/css/accepted_diffs.json に理由を記録） */
.lkc-card { margin: 7px; padding-top: 6px; }
.lkc-content2 { position: relative; height: 112px; word-break: break-all; white-space: normal; overflow: hidden; }
.lkc-title { color: #46f; font-size: 18px; line-height: 24px; font-weight: bold; overflow: hidden; word-break: break-all; }
.lkc-title:hover { text-decoration: underline; }
.lkc-url { display: none; }
.lkc-excerpt { color: #333; font-size: 12px; line-height: 17px; padding: 0; margin: 6px 0 0; overflow: hidden; }
.lkc-thumbnail { width: 100px; height: 100px; padding: 0; margin: 0 6px 4px 4px; float: left; }
.lkc-thumbnail-img { display: block; width: 100px; height: 100px; max-width: none; object-fit: cover; border: 1px solid #222; border-radius: 6px; box-shadow: 3px 3px 6px rgba(0, 0, 0, .5); box-sizing: border-box; }
.lkc-readmore { position: absolute; font-size: 1em; width: 7em; text-align: center; margin-top: 5px; right: 3px; bottom: 0; color: rgb(68, 102, 255); padding: .01em; background-color: rgba(255, 255, 255, .95); z-index: 2; }
.linkcard .clear { clear: both; }
@media screen and (max-width: 1024px) {
  .lkc-title { font-size: 100%; line-height: 100%; }
  .lkc-excerpt { font-size: 80%; }
  .lkc-thumbnail, .lkc-thumbnail-img { width: 80px; height: 80px; }
}

/* B-4. メニュー（AUTO_MENU などの出力）。JA のテーマ stinger8/css/icon_menu.css の .icon_menu_title・.blocklink3 系を、値はそのままで移した（台帳 E-27）。
   JA は画面幅で値を切り替えていない（icon_menu.css の PC/スマホの @media に blocklink3 の指定はない） */
.icon_menu_title {
  color: #f1f8ff;
  background: #2d8fdd;
  margin-left: 5px;
  margin-bottom: 5px;
  line-height: 1.3;
  padding: 0.5em;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
}
ul.blocklink3 {
  padding: 0;
  margin: 0 -5px 0 4px;
}
.blocklink3 li {
  display: inline-block;
  padding: 0;
  margin: 0 1px 5px 0;
  vertical-align: top;
  position: relative;
  list-style: none;
  border: 0;
  width: 110px;
  height: 100%;
}
.blocklink3 li:last-child {
  margin-right: 0;
  clear: both;
  padding-bottom: 5px !important;
}
a.blocklink3 { color: white; }
.blocklink3 > a > span {
  font-weight: 500;
  background: rgba(10, 10, 10, 0.65);
  color: #fff;
  padding: 5px;
  position: absolute;
  left: 0;
  bottom: 0;
  margin-bottom: 5px;
  font-size: 13px; /* EN: JA は 14px。英語の文字では Live Wait Times が 100px に収まらないため（v1.12.0） */
  line-height: calc(1.1em + 2px); /* EN: JA は 1.1。行間を +2px（13px の文字で 16.3px。ユーザー指示で 17.4px から戻した。v1.12.0） */
  width: 100px;
  border-radius: 0 0 5px 5px;
}
.blocklink3 span span {
  width: 100px;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  padding: 0;
}
.blocklink3 > li > div.title_panel {
  background-color: #3fa9d275;
  height: 90px;
  box-shadow: 4px 4px 10px #DADADA;
  display: flex;
  border-radius: 5px;
  font-size: 16px; /* EN: JA は 18px。英語の見出し（Wait Times）が折り返さないため（v1.12.0） */
  line-height: 1.3em;
  font-weight: 600;
  color: #fff;
  align-items: flex-end;
  padding: 10px;
}
.blocklink3 img {
  box-shadow: 2px 2px 10px #DADADA;
  height: 100%;
  border-radius: 5px;
  transition: .3s linear all;
}
.blocklink3 .blocklink4_span1 {
  display: block;
  position: absolute;
  text-align: right;
  right: 5px;
  top: 20px;
  font-size: 22px;
  font-weight: 300;
  background-color: rgba(0, 0, 0, 0);
}
.blocklink3 .blocklink4_span2 {
  display: block;
  color: white;
  position: absolute;
  right: 5px;
  top: 75px;
  font-style: italic;
  text-transform: capitalize;
  opacity: 0.6;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0);
}
.blocklink3 .blocklink4_awesome {
  color: white;
  position: absolute;
  font-size: 5em;
  opacity: 0.2;
  right: 10px;
  top: 10px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   D. EN 独自の調整（JA と値が違う。意図した差。spec_sub_files/css/accepted_diffs.json に理由を記録）
   -------------------------------------------------------------------------- */
/* コピー用の入力欄（input.copy_code）と、1 行上のタイトル行の間に余白を入れる（ユーザー指定 2026-10-24。
   タイトルの <i class="fa fa-ticket"> に margin-bottom: 8px を付けたときと同じ見た目。記事ごとの style ではなく CSS で指定する） */
#body_wrap .post_content input.copy_code {
  margin-top: 8px;
}

/* 縦長の画像の最大幅（ユーザー指定 2026-10-24）。JA は本文が 640px で画像は 640px 以下。EN は本文が広く、縦長の画像が大きく見えすぎる。
   is-portrait クラスは、記事の生成（scripts/poc_apply_translation.js の addPortraitClass）が、width・height の属性から縦長の画像に付ける。横長は本文の幅いっぱいのまま */
#body_wrap .post_content img.is-portrait {
  max-width: min(100%, 640px);
}

/* メニュー（AUTO_MENU など）のキャプション（黒の半透明）を、画像にぴったり乗せる（ユーザー指定 2026-10-24。台帳 E-33）。
   JA の CSS のままだと、EN では次の 2 つでずれる。(1) SWELL の box-sizing: border-box で、キャプションの幅が 100px（JA は padding を足して 110px）になり、右が 10px 空く。
   (2) 画像が inline のため、画像の下に行の隙間ができ、キャプションの下端が画像の下端より下になる。
   対応: span は content-box（JA と同じ幅）、キャプションの基準を a（画像と同じ大きさ）にして、画像を block にし、下端の余白をなくす。
   JA とは、a・img・span の display / position / margin-bottom が違う（accepted_diffs.json に理由を記録）。確認は scripts/poc_menu_caption.js */
.blocklink3 > a {
  position: relative;
  display: block;
}
.blocklink3 > a > img {
  display: block;
}
.blocklink3 > a > span {
  box-sizing: content-box;
  margin-bottom: 0;
  bottom: 0;
}

/* --------------------------------------------------------------------------
   本文の上の余白（SWELL の既定の 2/3。全 EN ページ。ユーザー指定 2026-10-28。最初は半分にしたが詰めすぎだった）
   SWELL 既定（build/css/main.css）: .l-content { padding-top: 2em; 600px 以上は 4em } と
   .l-mainContent__inner > .post_content { margin: 4em 0 }。JA（STINGER8）は余白がほぼなく、EN は画像が
   約 84px 下がって見えた。同じ詳細度で、この CSS が後に読み込まれるので上書きできる。
   -------------------------------------------------------------------------- */
.l-content {
  padding-top: 1.33em;
}
@media (min-width: 600px) {
  .l-content {
    padding-top: 2.67em;
  }
}
.l-mainContent__inner > .post_content {
  margin: 2.67em 0;
}
