@charset "UTF-8";
/* Noto Sans JP はここで @import しない。
   @import は「renewal.css 取得 → Google の CSS 取得 → フォント取得」の直列3段になり、
   フォント差し替え（テキスト全体の再レイアウト＝カクつき）が初回描画のかなり後に起きるため。
   フォントは head-elements モジュール（検索結果は search_results.mtml 内の head）の
   <link rel="preconnect"> + <link rel="stylesheet"> で並列に読み込む（2026-08-28変更） */

/* =========================================================================
   renewal.css — リニューアル版 共通パーツのスタイル
   出力先: assets/css/renewal.css （インデックステンプレート／公開設定は「手動」）

   - 対象は共通モジュール header / footer が出力する .g-header / .g-footer のみ。
     旧デザインの .l-header / .l-footer には一切影響しない
   - Figma「コンポーネントリスト」(node 4961:13738) の
     ヘッダー（PC）/ フッター（PC）を実装したもの
   - ロゴはPNGをdata URIで内包している（FTPS不要にするため）。data URI 本体は
     モジュール renewal-css-logo に切り出し、:root 内でインクルードしている（2026-09-17）。
     アセットを正式にサーバーへ置く段階で url(../images/logo-cybozushiki-v2.png)
     に差し替えること。元画像は リポジトリ src/assets/images/ にある
   - SP（スマホ）版のデザインはFigmaに未作成のため、
     以下のブレークポイントは「崩れないための暫定対応」。デザイン確定後に要修正
   ========================================================================= */

:root {
  /* Figmaのカラー変数 */
  --cs-blue-80: #003f4d;   /* brand_blue_80  見出し・ナビ文字 */
  --cs-blue-60: #00a2c7;   /* brand_blue_60  アイコン線 */
  --cs-blue-30: #00c0eb;   /* brand_blue_30  カテゴリナビ下線 */
  --cs-blue-20: #d4f3fa;   /* brand_blue_20  ヘッダー下線 */
  --cs-gray-30: #d3dadb;   /* bg_gray_30     検索窓の枠 */
  --cs-text-80: #637278;   /* text_black_80（regular。2026-10-01 に旧値 #677173 から Figma の正式な値へ） */
  --cs-text-100: #141c1f;  /* text_black_100（regular。2026-10-01 に旧値 #1d292c から Figma の正式な値へ） */
  --cs-font: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
  --cs-gutter: 120px;   /* Figma: 1440px幅に対して左右120px */
  /* サイトロゴ（data URI・約9.5KB）は長すぎて管理画面のエディタで扱いにくいため、
     テンプレートモジュール「renewal-css-logo」（src/templates/renewal_css_logo.mtml）に切り出して読み込む（2026-09-17）。
     ⚠️ このモジュールを先に作成してから renewal.css を保存すること（無いと再構築が「テンプレートモジュールが見つかりません」で落ちる） */
--cs-logo: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 150' fill='none' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg clip-path='url(%23clip0_5197_22517)'%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Crect x='585' y='118.508' width='15' height='31.5' fill='url(%23pattern0_5197_22517)'/%3E%3Crect y='118.508' width='15' height='31.5' fill='url(%23pattern1_5197_22517)'/%3E%3Cpath d='M585 144.76H15V150H585V144.76Z' fill='%238CD7F6'/%3E%3Cpath d='M554.92 23.58L549.47 27.54C548.15 28.49 547.6 30.19 548.1 31.73L550.18 38.14C550.69 39.68 552.13 40.73 553.75 40.73H560.49C562.12 40.73 563.56 39.68 564.06 38.14L566.14 31.73C566.65 30.19 566.1 28.49 564.78 27.54L559.33 23.58C558.01 22.63 556.23 22.63 554.92 23.58ZM544.46 91.52C539.8 83.2 539.26 73.74 539.26 64.28C539.26 62.52 540.13 61.56 541.85 61.56H553.66C555.38 61.56 556.3 60.64 556.3 58.93V51.82C556.3 50.11 555.38 49.19 553.66 49.19H541.78C540.08 49.19 539.15 48.26 539.15 46.55V35.45C539.15 33.74 538.23 32.82 536.52 32.82H529.48C527.77 32.82 526.85 33.74 526.85 35.45V61.56C526.85 75.34 528.13 85.92 532.07 94.45C536.79 104.67 544.67 111.58 556.15 114.89C557.92 115.4 559.07 114.64 559.28 112.84L560.16 105.71C560.36 104.11 559.66 103.09 558.1 102.6C552.43 100.8 547.38 96.75 544.45 91.52H544.46ZM524.11 97.14L513.92 98.56C512.14 98.82 511.12 97.93 511.12 96.13V87.66C511.12 85.95 512.04 85.03 513.75 85.03H519.39C521.1 85.03 522.02 84.11 522.02 82.39V75.35C522.02 73.64 521.1 72.72 519.39 72.72H490.37C488.66 72.72 487.74 73.64 487.74 75.35V82.39C487.74 84.11 488.66 85.03 490.37 85.03H496.19C497.89 85.03 498.82 85.95 498.82 87.66V98.23C498.82 99.86 497.99 100.8 496.38 101.03L487.03 102.34C485.33 102.57 484.55 103.61 484.79 105.31L485.77 112.31C486.01 114 487.05 114.78 488.75 114.54L525.88 109.26C527.57 109.01 528.35 107.97 528.11 106.28L527.09 99.37C526.84 97.68 525.79 96.9 524.11 97.14ZM484.22 51.83V58.94C484.22 60.65 485.14 61.58 486.86 61.58H518.65C520.36 61.58 521.28 60.65 521.28 58.94V51.83C521.28 50.12 520.36 49.2 518.65 49.2H486.86C485.14 49.2 484.22 50.12 484.22 51.83ZM436.72 44.92C438.88 45.14 440.87 44.36 442.28 42.98C443.36 41.93 445.01 41.93 446.08 42.98C447.49 44.35 449.48 45.13 451.65 44.92C454.84 44.59 457.43 42.02 457.79 38.83C458.26 34.65 455 31.12 450.92 31.12C449 31.12 447.28 31.89 446.02 33.15C445.01 34.16 443.36 34.16 442.34 33.15C441.09 31.9 439.37 31.12 437.45 31.12C433.37 31.12 430.12 34.65 430.57 38.83C430.93 42.02 433.53 44.59 436.72 44.92ZM395.18 61.57H450.46C452.18 61.57 453.1 60.65 453.1 58.94V51.83C453.1 50.12 452.18 49.19 450.46 49.19H393.7C391.89 49.19 391 50.23 391.27 52.01L392.36 59.15C392.61 60.75 393.55 61.56 395.18 61.56V61.57ZM446.16 67.15H437.34C435.94 67.15 435.01 67.61 434.14 68.73C430.78 73.05 426.56 77.37 422.18 81.47C413.81 89.3 402.48 96.51 391.01 102.46C389.58 103.21 389.09 104.33 389.56 105.87L391.67 112.87C392.19 114.61 393.46 115.17 395.08 114.33C406.15 108.66 416.62 102.13 425.23 94.65C426.46 93.58 427.69 93.56 428.93 94.61L451.96 113.99C453.34 115.16 454.68 114.94 455.63 113.4L459.42 107.26C460.27 105.87 460.07 104.64 458.83 103.6L438.04 86.13C436.69 85 436.63 83.7 437.83 82.42C441.35 78.67 444.82 74.66 447.86 70.36C449.12 68.57 448.32 67.16 446.15 67.16L446.16 67.15ZM340.24 40.49V35.59C340.24 34.78 339.81 34.04 339.11 33.64L334.87 31.18C334.17 30.78 333.31 30.78 332.62 31.18L328.37 33.64C327.68 34.04 327.25 34.78 327.25 35.59V40.49C327.25 41.3 327.68 42.04 328.37 42.44L332.62 44.9C333.31 45.3 334.17 45.3 334.87 44.9L339.11 42.44C339.81 42.04 340.24 41.3 340.24 40.49ZM315.52 51.83V58.94C315.52 60.65 316.44 61.58 318.15 61.58H352.19C353.92 61.58 354.88 62.51 354.79 64.24C354.46 70.6 353 77.54 350.39 82.26C347.42 87.65 343.24 92.04 337.85 95.42C332.97 98.49 327.38 101.19 321.07 102.64C319.51 103 318.72 103.91 318.73 105.52L318.78 112.8C318.8 114.61 319.86 115.54 321.65 115.19C330.35 113.47 337.98 110.09 344.56 105.98C351.71 101.5 357.28 95.69 361.26 88.53C365.24 81.38 367.22 70.99 367.22 61.57V51.83C367.22 50.12 366.3 49.2 364.59 49.2H318.14C316.43 49.2 315.51 50.12 315.51 51.83H315.52ZM297.57 51.83V74.25C297.57 76.06 298.61 76.94 300.39 76.67L307.52 75.58C309.13 75.34 309.94 74.4 309.94 72.77V51.84C309.94 50.13 309.01 49.21 307.31 49.21H300.19C298.49 49.21 297.56 50.13 297.56 51.84L297.57 51.83ZM265.81 35.46V40.99C265.81 42.7 266.73 43.62 268.44 43.62H273.97C275.68 43.62 276.6 42.7 276.6 40.99V35.46C276.6 33.75 275.68 32.83 273.97 32.83H268.44C266.73 32.83 265.81 33.75 265.81 35.46ZM263.14 75.37H257.37C255.41 75.37 254.57 76.56 255.27 78.4C258.8 87.68 262.75 97.05 267.14 106.51C267.91 108.17 269.24 108.52 270.74 107.49L276.7 103.38C278.05 102.46 278.36 101.26 277.63 99.78C273.8 92.09 271.14 86.9 266.27 77.31C265.58 75.96 264.62 75.38 263.15 75.38L263.14 75.37ZM250.51 35.46V40.99C250.51 42.7 251.44 43.62 253.15 43.62H258.68C260.38 43.62 261.31 42.7 261.31 40.99V35.46C261.31 33.75 260.38 32.83 258.68 32.83H253.15C251.44 32.83 250.51 33.75 250.51 35.46ZM233.27 69.78V112.81C233.27 114.62 234.31 115.51 236.09 115.24L243.22 114.15C244.83 113.9 245.64 112.97 245.64 111.34V69.78C245.64 68.07 244.72 67.15 243.01 67.15H235.9C234.19 67.15 233.26 68.07 233.26 69.78H233.27ZM202.71 52.02L203.8 59.15C204.04 60.76 204.98 61.57 206.61 61.57H273.78C275.59 61.57 276.48 60.53 276.2 58.75L275.12 51.62C274.87 50.01 273.93 49.2 272.3 49.2H248.27C246.56 49.2 245.64 48.28 245.64 46.57V36.22C245.64 34.59 244.83 33.65 243.22 33.41L236.09 32.32C234.31 32.05 233.27 32.93 233.27 34.74V46.57C233.27 48.28 232.35 49.2 230.64 49.2H205.13C203.32 49.2 202.43 50.23 202.71 52.02ZM202.16 103.37L208.12 107.48C209.62 108.51 210.95 108.17 211.72 106.51C216.11 97.05 220.06 87.68 223.59 78.4C224.28 76.56 223.44 75.37 221.48 75.37H215.71C214.24 75.37 213.27 75.95 212.59 77.3C207.72 86.89 205.05 92.08 201.23 99.77C200.5 101.25 200.81 102.44 202.16 103.37ZM151.52 82.86V112.81C151.52 114.62 152.56 115.51 154.34 115.24L161.47 114.15C163.08 113.9 163.89 112.97 163.89 111.34V76.17C163.89 73.97 162.48 73.26 160.7 74.54C158.27 76.28 155.62 78.11 153.23 79.69C152.04 80.49 151.52 81.44 151.52 82.86ZM151.31 59.06C142.22 65.7 132.28 71.86 121.5 77.53C119.95 78.35 119.42 79.51 119.92 81.05L122.16 87.94C122.72 89.67 124 90.2 125.61 89.36C137.44 83.22 148 76.81 157.27 70.16C166.64 63.42 176.14 55.42 185.64 46.09C186.82 44.93 186.91 43.7 185.96 42.38L181.71 36.54C180.65 35.08 179.29 34.97 178 36.25C169.29 44.86 160.37 52.44 151.31 59.07V59.06ZM83.94 69.31V71.47C83.94 80.14 81.89 86.94 77.8 91.88C74 96.47 68.07 100.04 60.01 102.6C58.45 103.09 57.75 104.11 57.95 105.71L58.82 112.84C59.04 114.64 60.2 115.42 61.96 114.89C73.33 111.47 81.81 106.44 87.39 99.78C93.34 92.69 96.31 83.24 96.31 71.46V69.77C96.31 68.06 95.39 67.13 93.68 67.13H86.57C84.86 67.13 83.94 67.89 83.94 69.3V69.31ZM108.83 49.2H98.94C97.23 49.2 96.31 48.28 96.31 46.57V36.23C96.31 34.6 95.5 33.66 93.89 33.41L86.76 32.33C84.97 32.05 83.94 32.94 83.94 34.75V46.58C83.94 48.28 83.02 49.21 81.31 49.21H63.6C61.89 49.21 60.97 48.28 60.97 46.58V36.23C60.97 34.6 60.16 33.67 58.55 33.42L51.42 32.33C49.63 32.06 48.6 32.95 48.6 34.76V46.58C48.6 48.29 47.68 49.22 45.97 49.22H34.6C32.79 49.22 31.9 50.25 32.17 52.03L33.26 59.17C33.51 60.77 34.45 61.58 36.08 61.58H45.97C47.68 61.58 48.6 62.51 48.6 64.22V80.31C48.6 81.94 49.41 82.88 51.02 83.12L58.15 84.21C59.93 84.48 60.97 83.59 60.97 81.79V64.21C60.97 62.5 61.89 61.58 63.6 61.58H110.31C112.12 61.58 113.01 60.54 112.73 58.76L111.64 51.62C111.4 50.02 110.46 49.21 108.83 49.21V49.2ZM600 127.88C600 131.32 600 135.47 598.28 138.88C597.44 140.52 596.23 141.88 594.77 142.83C591.75 144.76 588.06 144.76 585 144.76H15C11.94 144.76 8.25 144.76 5.23 142.83C3.77 141.88 2.56 140.52 1.72 138.88C0 135.47 0 131.32 0 127.88V16.88C0 13.43 0 9.29 1.72 5.88C2.56 4.24 3.77 2.88 5.23 1.93C8.25 0 11.94 0 15 0H585C588.06 0 591.75 0 594.77 1.94C596.23 2.88 597.44 4.25 598.28 5.89C600 9.29 600 13.44 600 16.88V127.89V127.88Z' fill='%2364B4D4'/%3E%3Cg%3E%3Cg%3E%3Cpath d='M513.92 96.8V98.56L523.98 97.15V95.37C523.94 95.37 523.89 95.38 523.84 95.39L513.91 96.79L513.92 96.8Z' fill='%238CD7F6'/%3E%3Cpath d='M519.38 70.95H490.37V72.72H519.38V70.95Z' fill='%238CD7F6'/%3E%3Cpath d='M553.66 47.41H541.78V49.19H553.66V47.41Z' fill='%238CD7F6'/%3E%3Cpath d='M559.32 23.58V21.81C558 20.86 556.22 20.86 554.91 21.81V23.58C556.22 22.63 558 22.63 559.32 23.58Z' fill='%238CD7F6'/%3E%3Cpath d='M536.51 31.05H529.47V32.81H536.51V31.05Z' fill='%238CD7F6'/%3E%3Cpath d='M518.64 47.43H486.85V49.19H518.64V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M434.88 31.61C435.67 31.29 436.54 31.12 437.45 31.12C438.26 31.12 439.05 31.26 439.76 31.52V29.78C439.01 29.5 438.18 29.35 437.32 29.35C436.46 29.35 435.63 29.51 434.88 29.78V31.61V31.61Z' fill='%238CD7F6'/%3E%3Cpath d='M446.05 33.15V31.43C445.02 32.46 443.33 32.46 442.3 31.43V33.15C443.35 34.16 445 34.16 446.05 33.15Z' fill='%238CD7F6'/%3E%3Cpath d='M453.48 31.61V29.79C452.71 29.5 451.89 29.36 451.03 29.36C450.17 29.36 449.35 29.51 448.59 29.79V31.52C449.31 31.27 450.09 31.12 450.9 31.12C451.81 31.12 452.68 31.3 453.48 31.62V31.61Z' fill='%238CD7F6'/%3E%3Cpath d='M446.16 65.38H437.34V67.14H446.16V65.38Z' fill='%238CD7F6'/%3E%3Cpath d='M450.45 47.43H393.69V49.19H450.45V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M334.86 31.19V29.42C334.17 29.02 333.31 29.02 332.61 29.42V31.19C333.31 30.78 334.17 30.78 334.86 31.19Z' fill='%238CD7F6'/%3E%3Cpath d='M364.59 47.43H318.14V49.19H364.59V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M307.31 47.43H300.2V49.19H307.31V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M263.14 73.61H257.37V75.38H263.14V73.61Z' fill='%238CD7F6'/%3E%3Cpath d='M243.01 65.38H235.9V67.14H243.01V65.38Z' fill='%238CD7F6'/%3E%3Cpath d='M221.48 73.61H215.7V75.38H221.48V73.61Z' fill='%238CD7F6'/%3E%3Cpath d='M273.96 31.07H268.44V32.84H273.96V31.07Z' fill='%238CD7F6'/%3E%3Cpath d='M258.67 31.07H253.15V32.84H258.67V31.07Z' fill='%238CD7F6'/%3E%3Cpath d='M243.22 33.41V31.64L236.09 30.56V32.32L243.22 33.41Z' fill='%238CD7F6'/%3E%3Cpath d='M272.02 47.43H248.27V49.19H272.02V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M230.64 47.43H205.13V49.19H230.64V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M163.14 74.15V72.39C162.56 71.97 161.69 72.07 160.71 72.78V74.55C161.69 73.85 162.56 73.74 163.14 74.16V74.15Z' fill='%238CD7F6'/%3E%3Cpath d='M93.68 65.38H86.57V67.14H93.68V65.38Z' fill='%238CD7F6'/%3E%3Cpath d='M108.56 47.43H98.94V49.19H108.56V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M81.31 47.43H63.6V49.19H81.31V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M93.89 33.41V31.64L86.76 30.56V32.32L93.89 33.41Z' fill='%238CD7F6'/%3E%3Cpath d='M51.42 30.56V32.32L58.55 33.41V31.64L51.42 30.56Z' fill='%238CD7F6'/%3E%3Cpath d='M45.96 47.43H34.59V49.19H45.96V47.43Z' fill='%238CD7F6'/%3E%3Cpath d='M496.38 101.03V99.26L486.89 100.58V102.36C486.94 102.35 486.98 102.34 487.03 102.34L496.39 101.03H496.38Z' fill='%238CD7F6'/%3E%3Cpath d='M179.86 35.35V34.45C179.13 34.06 178.33 34.17 177.54 34.78V36.68C177.69 36.53 177.84 36.39 177.99 36.24C178.62 35.62 179.25 35.33 179.86 35.35V35.35Z' fill='%238CD7F6'/%3E%3C/g%3E%3Cg%3E%3Cpath d='M523.98 95.38V97.16L524.1 97.14C525.79 96.9 526.83 97.68 527.08 99.37L526.83 97.62C526.59 95.98 525.6 95.2 523.99 95.38H523.98Z' fill='%23BCE6F6'/%3E%3Cpath d='M513.92 98.57V96.8C512.14 97.06 511.12 96.17 511.12 94.37V96.13C511.12 97.93 512.14 98.82 513.92 98.57Z' fill='%23BCE6F6'/%3E%3Cpath d='M558.32 100.86C552.65 99.06 547.38 94.98 544.45 89.75C539.79 81.43 539.25 73.74 539.25 64.28C539.25 73.74 539.79 83.2 544.45 91.52C547.38 96.75 552.43 100.8 558.1 102.6C559.66 103.09 560.36 104.11 560.16 105.71L560.38 103.97C560.58 102.37 559.88 101.36 558.32 100.86Z' fill='%23BCE6F6'/%3E%3Cpath d='M553.66 47.41V49.18C555.37 49.18 556.3 50.1 556.3 51.81V50.05C556.3 48.34 555.37 47.41 553.66 47.41Z' fill='%23BCE6F6'/%3E%3Cpath d='M559.32 23.58L564.77 27.54C564.85 27.6 564.93 27.67 565.02 27.74V25.89L559.32 21.82V23.59L559.32 23.58Z' fill='%23BCE6F6'/%3E%3Cpath d='M565.02 27.74C566.16 28.72 566.61 30.29 566.14 31.73L566.62 30.26C567.12 28.71 566.57 27.02 565.25 26.06L565.02 25.89V27.74Z' fill='%23BCE6F6'/%3E%3Cpath d='M536.52 31.05V32.81C538.23 32.81 539.15 33.73 539.15 35.45V33.68C539.15 31.97 538.23 31.05 536.52 31.05Z' fill='%23BCE6F6'/%3E%3Cpath d='M439.77 31.52C440.75 31.88 441.62 32.44 442.31 33.15V31.43C441.59 30.71 440.73 30.15 439.77 29.79V31.52Z' fill='%23BCE6F6'/%3E%3Cpath d='M453.48 29.79V31.61C456.25 32.72 458.14 35.58 457.78 38.83C457.75 39.11 457.69 39.39 457.63 39.66C457.83 39.02 457.96 37.93 458.04 37.2C458.39 33.83 456.39 30.87 453.48 29.78L453.48 29.79Z' fill='%23BCE6F6'/%3E%3Cpath d='M446.16 65.38V67.15C448.33 67.15 449.12 68.57 447.87 70.35C450.46 67.15 448.74 65.38 446.57 65.38H446.17H446.16Z' fill='%23BCE6F6'/%3E%3Cpath d='M450.46 47.43V49.19C452.18 49.19 453.1 50.12 453.1 51.83V50.06C453.1 48.35 452.18 47.43 450.46 47.43Z' fill='%23BCE6F6'/%3E%3Cpath d='M334.87 29.42V31.19L339.11 33.64C339.81 34.04 340.24 34.79 340.24 35.59V33.83C340.24 33.02 339.81 32.28 339.11 31.88L334.87 29.42Z' fill='%23BCE6F6'/%3E%3Cpath d='M307.31 47.43V49.19C309.02 49.19 309.94 50.12 309.94 51.83V50.06C309.94 48.35 309.02 47.43 307.31 47.43Z' fill='%23BCE6F6'/%3E%3Cpath d='M263.14 73.61V75.38C264.62 75.38 265.58 75.96 266.26 77.31C271.13 86.9 273.79 92.09 277.62 99.78C278.35 101.26 278.04 102.45 276.7 103.38L277.37 102.92C278.71 102 279.02 100.8 278.3 99.32C274.48 91.63 271.14 85.14 266.27 75.55C265.58 74.2 264.62 73.61 263.15 73.61L263.14 73.61Z' fill='%23BCE6F6'/%3E%3Cpath d='M243 65.38V67.14C244.71 67.14 245.64 68.06 245.64 69.77V68.01C245.64 66.3 244.71 65.38 243 65.38Z' fill='%23BCE6F6'/%3E%3Cpath d='M221.48 73.61V75.38C223.44 75.38 224.28 76.57 223.59 78.41C224.99 75.05 223.44 73.61 221.48 73.61V73.61Z' fill='%23BCE6F6'/%3E%3Cpath d='M273.96 31.07V32.83C275.67 32.83 276.59 33.75 276.59 35.46V33.7C276.59 31.99 275.67 31.07 273.96 31.07Z' fill='%23BCE6F6'/%3E%3Cpath d='M258.67 31.07V32.83C260.38 32.83 261.3 33.75 261.3 35.46V33.7C261.3 31.99 260.38 31.07 258.67 31.07Z' fill='%23BCE6F6'/%3E%3Cpath d='M243.22 31.64V33.41C244.83 33.66 245.64 34.6 245.64 36.23V34.46C245.64 32.84 244.83 31.9 243.22 31.65V31.64Z' fill='%23BCE6F6'/%3E%3Cpath d='M272.02 47.43V49.19H272.29C273.9 49.19 274.84 49.99 275.09 51.55L274.83 49.85C274.58 48.24 273.64 47.43 272.02 47.43H272.02Z' fill='%23BCE6F6'/%3E%3Cpath d='M163.14 72.38V74.15C163.61 74.49 163.89 75.17 163.89 76.16V74.4C163.89 73.42 163.61 72.73 163.14 72.38Z' fill='%23BCE6F6'/%3E%3Cpath d='M93.68 65.38V67.14C95.39 67.14 96.3 68.06 96.31 69.76V69.71V68.01C96.31 66.3 95.39 65.38 93.68 65.38Z' fill='%23BCE6F6'/%3E%3Cpath d='M108.56 47.43V49.19H108.83C110.46 49.19 111.4 50 111.64 51.61L111.38 49.85C111.13 48.24 110.19 47.43 108.56 47.43Z' fill='%23BCE6F6'/%3E%3Cpath d='M93.89 31.64V33.41C95.5 33.65 96.31 34.59 96.31 36.22V34.46C96.31 32.83 95.5 31.89 93.89 31.64Z' fill='%23BCE6F6'/%3E%3Cpath d='M58.55 31.64V33.41C60.16 33.65 60.97 34.59 60.97 36.22V34.46C60.97 32.83 60.16 31.89 58.55 31.64Z' fill='%23BCE6F6'/%3E%3Cpath d='M541.78 49.19V47.42C540.08 47.42 539.15 46.5 539.15 44.79V46.55C539.15 48.26 540.08 49.19 541.78 49.19Z' fill='%23BCE6F6'/%3E%3Cpath d='M519.39 70.95V72.72C521.1 72.72 522.02 73.64 522.02 75.35V73.58C522.02 71.87 521.1 70.95 519.39 70.95Z' fill='%23BCE6F6'/%3E%3Cpath d='M518.64 47.43V49.19C520.36 49.19 521.28 50.12 521.28 51.83V50.06C521.28 48.35 520.36 47.43 518.64 47.43Z' fill='%23BCE6F6'/%3E%3Cpath d='M364.6 47.43V49.19C366.31 49.19 367.23 50.12 367.23 51.83V50.06C367.23 48.35 366.31 47.43 364.6 47.43Z' fill='%23BCE6F6'/%3E%3Cpath d='M248.27 49.2V47.44C246.56 47.44 245.64 46.52 245.64 44.81V46.57C245.64 48.28 246.56 49.2 248.27 49.2Z' fill='%23BCE6F6'/%3E%3Cpath d='M98.94 49.2V47.44C97.23 47.44 96.3 46.52 96.3 44.81V46.57C96.3 48.28 97.23 49.2 98.94 49.2Z' fill='%23BCE6F6'/%3E%3Cpath d='M63.6 49.2V47.44C61.89 47.44 60.96 46.52 60.96 44.81V46.57C60.96 48.28 61.89 49.2 63.6 49.2Z' fill='%23BCE6F6'/%3E%3Cpath d='M459.55 102.41L438.97 85.12C437.81 84.14 437.08 83.52 437.53 82.76C436.66 83.93 436.82 85.1 438.04 86.12L458.83 103.59C460.07 104.64 460.27 105.87 459.42 107.25L460.15 106.07C461 104.69 460.81 103.45 459.55 102.41Z' fill='%23BCE6F6'/%3E%3Cpath d='M179.86 34.45V35.35C180.52 35.38 181.15 35.77 181.71 36.53L180.89 35.4C180.58 34.97 180.23 34.64 179.86 34.45V34.45Z' fill='%23BCE6F6'/%3E%3C/g%3E%3Cg%3E%3Cpath d='M490.37 72.72V70.95C488.66 70.95 487.74 71.87 487.74 73.58V75.35C487.74 73.64 488.66 72.72 490.37 72.72Z' fill='%234A9ABA'/%3E%3Cpath d='M486.85 49.2V47.44C485.14 47.44 484.22 48.36 484.22 50.07V51.83C484.22 50.12 485.14 49.2 486.85 49.2Z' fill='%234A9ABA'/%3E%3Cpath d='M434.88 29.79C431.97 30.87 429.97 33.83 430.32 37.21C430.4 37.94 430.54 39.02 430.73 39.67C430.66 39.39 430.61 39.12 430.58 38.84C430.22 35.59 432.11 32.73 434.88 31.62V29.8L434.88 29.79Z' fill='%234A9ABA'/%3E%3Cpath d='M318.15 49.2V47.44C316.44 47.44 315.52 48.36 315.52 50.07V51.83C315.52 50.12 316.44 49.2 318.15 49.2Z' fill='%234A9ABA'/%3E%3Cpath d='M230.64 47.43V49.19C232.35 49.19 233.27 48.27 233.27 46.56V44.8C233.27 46.51 232.35 47.43 230.64 47.43Z' fill='%234A9ABA'/%3E%3Cpath d='M81.3 47.43V49.19C83.01 49.19 83.94 48.27 83.94 46.56V44.8C83.94 46.51 83.01 47.43 81.3 47.43Z' fill='%234A9ABA'/%3E%3Cpath d='M45.96 47.43V49.19C47.67 49.19 48.6 48.27 48.6 46.56V44.8C48.6 46.51 47.67 47.43 45.96 47.43Z' fill='%234A9ABA'/%3E%3Cpath d='M235.9 67.15V65.39C234.19 65.39 233.27 66.31 233.27 68.02V69.78C233.27 68.07 234.19 67.15 235.9 67.15Z' fill='%234A9ABA'/%3E%3Cpath d='M215.71 75.37V73.6C214.24 73.6 213.27 74.18 212.59 75.53C207.72 85.13 204.38 91.61 200.56 99.31C199.83 100.78 200.14 101.98 201.49 102.91L202.15 103.36C200.81 102.44 200.5 101.24 201.23 99.77C205.06 92.08 207.72 86.89 212.59 77.3C213.28 75.95 214.24 75.36 215.71 75.36V75.37Z' fill='%234A9ABA'/%3E%3Cpath d='M160.71 72.77C158.28 74.51 155.62 76.34 153.24 77.93C152.04 78.72 151.53 79.67 151.53 81.09V82.86C151.53 81.43 152.04 80.49 153.24 79.7C155.62 78.11 158.28 76.28 160.71 74.54V72.77Z' fill='%234A9ABA'/%3E%3Cpath d='M257.37 75.37V73.6C255.41 73.6 253.86 75.03 255.26 78.39C254.57 76.55 255.41 75.36 257.37 75.36V75.37Z' fill='%234A9ABA'/%3E%3Cpath d='M437.34 67.15V65.38C435.93 65.38 435 65.84 434.13 66.96C430.77 71.28 426.55 75.6 422.17 79.7C413.81 87.53 402.03 95.03 390.57 100.97C389.13 101.72 388.65 102.84 389.11 104.39L389.56 105.87C389.1 104.33 389.58 103.21 391.02 102.46C402.48 96.5 413.82 89.3 422.18 81.47C426.56 77.37 430.78 73.05 434.14 68.73C435.01 67.61 435.94 67.15 437.34 67.15H437.34Z' fill='%234A9ABA'/%3E%3Cpath d='M300.2 49.2V47.44C298.49 47.44 297.57 48.36 297.57 50.07V51.83C297.57 50.12 298.49 49.2 300.2 49.2Z' fill='%234A9ABA'/%3E%3Cpath d='M321.08 102.64C327.38 101.19 332.97 98.49 337.85 95.42C343.24 92.03 347.42 87.65 350.4 82.26C353 77.54 354.47 70.6 354.79 64.24C354.64 67.24 353.2 75.41 350.4 80.5C347.43 85.88 343.24 90.28 337.85 93.66C332.98 96.73 327.38 99.43 321.08 100.88C319.51 101.23 318.73 102.15 318.73 103.75L318.75 105.31C318.81 103.84 319.58 102.98 321.08 102.64Z' fill='%234A9ABA'/%3E%3Cpath d='M268.44 32.84V31.07C266.73 31.07 265.81 32 265.81 33.7V35.47C265.81 33.76 266.73 32.84 268.44 32.84Z' fill='%234A9ABA'/%3E%3Cpath d='M253.14 32.84V31.07C251.43 31.07 250.51 32 250.51 33.7V35.47C250.51 33.76 251.43 32.84 253.14 32.84Z' fill='%234A9ABA'/%3E%3Cpath d='M549.21 25.89L548.98 26.06C547.67 27.02 547.11 28.71 547.62 30.26L548.1 31.73C547.63 30.29 548.08 28.71 549.21 27.74C549.29 27.67 549.37 27.6 549.46 27.54L554.91 23.58V21.82L549.22 25.89H549.21Z' fill='%234A9ABA'/%3E%3Cpath d='M448.59 31.52V29.79C447.63 30.15 446.77 30.7 446.06 31.43V33.16C446.74 32.44 447.62 31.88 448.59 31.53V31.52Z' fill='%234A9ABA'/%3E%3Cpath d='M332.62 31.19V29.42L328.37 31.88C327.67 32.28 327.25 33.02 327.25 33.83V35.59C327.25 34.79 327.67 34.04 328.37 33.64L332.62 31.19Z' fill='%234A9ABA'/%3E%3Cpath d='M393.69 49.2V47.44H393.43C391.62 47.44 390.74 48.47 391 50.26L391.27 51.98C391.02 50.22 391.9 49.2 393.7 49.2H393.69Z' fill='%234A9ABA'/%3E%3Cpath d='M51.42 32.32V30.55C49.63 30.29 48.6 31.17 48.6 32.98V34.74C48.6 32.93 49.63 32.05 51.42 32.32Z' fill='%234A9ABA'/%3E%3Cpath d='M34.6 49.2V47.44H34.33C32.52 47.44 31.63 48.47 31.9 50.26L32.17 52.01C31.91 50.23 32.8 49.2 34.6 49.2Z' fill='%234A9ABA'/%3E%3Cpath d='M529.48 32.82V31.06C527.77 31.06 526.84 31.98 526.84 33.69V35.45C526.84 33.74 527.77 32.82 529.48 32.82Z' fill='%234A9ABA'/%3E%3Cpath d='M86.76 32.32V30.55C84.97 30.29 83.94 31.17 83.94 32.98V34.74C83.94 32.93 84.97 32.05 86.76 32.32Z' fill='%234A9ABA'/%3E%3Cpath d='M236.09 32.32V30.55C234.31 30.29 233.27 31.17 233.27 32.98V34.74C233.27 32.93 234.31 32.05 236.09 32.32Z' fill='%234A9ABA'/%3E%3Cpath d='M205.13 49.2V47.44H204.86C203.05 47.44 202.17 48.47 202.44 50.26L202.71 52.02C202.44 50.24 203.32 49.2 205.13 49.2Z' fill='%234A9ABA'/%3E%3Cpath d='M86.57 67.15V65.39C84.86 65.39 83.94 66.14 83.94 67.55V69.32C83.94 67.91 84.86 67.16 86.57 67.16V67.15Z' fill='%234A9ABA'/%3E%3Cpath d='M77.8 90.12C74 94.7 67.86 98.28 59.79 100.84C58.23 101.33 57.53 102.34 57.73 103.95L57.94 105.66C57.76 104.09 58.46 103.09 60 102.61C68.07 100.04 74 96.47 77.79 91.89C81.03 87.97 82.98 82.9 83.65 76.67C82.85 81.33 80.71 86.6 77.79 90.13L77.8 90.12Z' fill='%234A9ABA'/%3E%3Cpath d='M177.55 36.68V34.79C177.43 34.88 177.31 35 177.19 35.12C168.48 43.73 160.38 50.67 151.31 57.3C142.23 63.94 131.81 70.38 121.02 76.05C119.47 76.87 118.94 78.03 119.44 79.58L119.92 81.06C119.41 79.52 119.95 78.36 121.5 77.54C132.28 71.87 142.22 65.71 151.3 59.07C160.21 52.56 168.97 45.1 177.55 36.69V36.68Z' fill='%234A9ABA'/%3E%3Cpath d='M496.38 99.26V101.03C497.99 100.8 498.82 99.86 498.82 98.23V96.47C498.82 98.09 497.99 99.04 496.38 99.26Z' fill='%234A9ABA'/%3E%3Cpath d='M486.88 102.36V100.58L486.78 100.6C485.08 100.83 484.29 101.87 484.53 103.57L484.78 105.31C484.55 103.66 485.28 102.63 486.89 102.36H486.88Z' fill='%234A9ABA'/%3E%3C/g%3E%3C/g%3E%3Cg style='mix-blend-mode:luminosity' opacity='0.3'%3E%3Cpath d='M243.75 150V127.5' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M356.25 150V127.5' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M468.75 150V127.5' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M581.25 150V127.5' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M536.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M558.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M491.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M513.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M423.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M446.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M378.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M401.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M311.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M333.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M266.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M288.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M198.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M221.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M153.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M176.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M18.75 150V127.5' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M131.25 150V127.5' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M86.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M108.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M41.25 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3Cpath d='M63.75 150V136.88' stroke='%23858585' stroke-width='2.5' stroke-miterlimit='10'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3Cpattern id='pattern0_5197_22517' patternContentUnits='objectBoundingBox' width='1' height='1'%3E%3Cuse xlink:href='%23image0_5197_22517' transform='scale(0.05 0.0238095)'/%3E%3C/pattern%3E%3Cpattern id='pattern1_5197_22517' patternContentUnits='objectBoundingBox' width='1' height='1'%3E%3Cuse xlink:href='%23image1_5197_22517' transform='scale(0.05 0.0238095)'/%3E%3C/pattern%3E%3CclipPath id='clip0_5197_22517'%3E%3Crect width='600' height='150' fill='white'/%3E%3C/clipPath%3E%3Cimage id='image0_5197_22517' width='20' height='42' preserveAspectRatio='none' xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAqCAYAAACz+XvQAAAACXBIWXMAAAsSAAALEgHS3X78AAAA50lEQVRIiWNgoCLwmrXrPxM1DWRgYGAYNXDUwFEDh4eBjNQyyGvWrv8MDEPBy4MzDGHhx8AwGF2I7DoGhsEWKX7z9v1HFyPbwKCFBzEMI9vA8KVHsRpGloHRK0/iNIyBgYGBhViDkjde+P/nzx+GP3/+4lVH0MDsHTcgBv39Q9DSbWlujCw9179BbYbY/ufPH4bff2F8wi5CB4MrHdLUwG1pboxUNRAGqGIgzHVUMxAZUGwgsuuoYiA6oMjATUlOGAU02Qaui7fHWtoTXTjAwNJwc7zVBtEGzvU3IKr+wWvgRBdVkisxAKXeTd0LDthvAAAAAElFTkSuQmCC'/%3E%3Cimage id='image1_5197_22517' width='20' height='42' preserveAspectRatio='none' xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAqCAYAAACz+XvQAAAACXBIWXMAAAsSAAALEgHS3X78AAAAuElEQVRIiWPY8+zbfwYqAiZqGjZq4KiBowYOMwOpWeIMES8zMFDP20PIywwM1PE27b1MqSuxunDnU/INxenlbU/IMxRvGG5+TLqhBCNlw6Nv/9c9JN5gomN59YNv/1c8IGwwIwMDZsz+/Y+K/8HYWOT+/mdg+IPEHiJZz0WKi5GqBlITwA2klitpGynUcCXtkw2lrsTqQndp8g0lqHHDo2//Scl6RLtk9YNv/6lqIDJYdO/bf1wGAgDF1Il4/KrTaQAAAABJRU5ErkJggg=='/%3E%3C/defs%3E%3C/svg%3E");

}

/* -------------------------------------------------------------------------
   共通リセット（旧 style.css の指定を打ち消して、この2ブロックだけを独立させる）
   ------------------------------------------------------------------------- */
.g-header,
.g-footer,
.g-header *,
.g-footer * {
  box-sizing: border-box;
}

.g-header,
.g-footer {
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
}

/* :where() で詳細度 0 にする（2026-10-22。`.g-header ul` の (0,1,1) が SNS メニューの padding（単一クラス）を
   打ち消していた。PC 1440px・SP 375px のメニューを開いた状態で、ほかの要素の位置・大きさが変わらないことを確認済み） */
:where(.g-header, .g-footer) ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-header p,
.g-header h1,
.g-footer p {
  margin: 0;
}

.g-header a,
.g-footer a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.g-header a:not(.u-hover-parent):hover,
.g-footer a:not(.u-hover-parent):hover {
  opacity: 0.65;
  text-decoration: none;
}

.g-header a:focus-visible,
.g-footer a:focus-visible,
.g-header button:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

/* --- スキップリンク（2026-10-01 アクセシビリティ対応・ガイドライン 2.4.1） ---
   header モジュール先頭の「本文へスキップ」。普段は画面外に置き、キーボードでフォーカスが
   当たったときだけ左上に出す（display:none / visibility:hidden にすると Tab で届かなくなるので使わない）。
   ヘッダー（PC は sticky・SP は fixed）より手前に出すため z-index を大きくしている */
.g-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid var(--cs-blue-60);
  border-radius: 8px;
  color: var(--cs-text-100);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
}

.g-skip:focus,
.g-skip:focus-visible {
  transform: none;
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

/* 移動先（header モジュール末尾の空要素）。フォーカスを受けても枠は出さない。
   scroll-margin-top を大きく取り、ヘッダーの直後にある移動先へ飛んでもページが下へずれないようにする */
.g-skip-target {
  scroll-margin-top: 200px;
}

.g-skip-target:focus {
  outline: none;
}

.g-header svg,
.g-footer svg {
  display: block;
}

/* 旧JS（app.js）互換のためのダミー要素【暫定措置】
   display:none にすると寸法を測るライブラリが誤動作しうるため、
   レイアウトに影響しない形で「存在はするが見えない」状態にする。
   詳細と撤去時期は header モジュール内のコメントを参照 */
.g-legacy-hooks {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* スクリーンリーダー専用テキスト（SNSアイコンのラベル等） */
.g-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ナビ項目の共通挙動:
   ラベルは折り返さず、極端に長い場合だけ「…」で省略する。
   項目が増えたときは行が折り返して縦に伸びる（横にはみ出さない） */
.g-header__gnav-item,
.g-header__cats-item,
.g-footer__catnav-item,
.g-footer__subnav-item {
  min-width: 0;
  max-width: 100%;
}

.g-header__gnav-item > a,
.g-footer__catnav-item > a,
.g-footer__subnav-item > a {
  display: block;
  min-width: 0;
}

/* 省略記号(…)は<a>ではなく中の.u-underline自身に持たせる。
   <a>側にoverflow:hiddenを置くと、下線用の背景（.u-underlineのpadding-bottom分）
   がテキストのすぐ下でアンダー側の要素ごと切り取られてしまい、ホバーしても
   下線が伸びてこなくなる（文字色の変化だけは<a>の外側なので影響を受けず動く） */
.g-header__gnav-item > a .u-underline,
.g-footer__catnav-item > a .u-underline,
.g-footer__subnav-item > a .u-underline {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

/* カテゴリナビだけはアイコンを内包するので横並びにする
   アイコンとラベルの間隔: PC 8px / SP 4px（メディアクエリで上書き） */
.g-header__cats-item > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.g-header__cats-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.g-header__cats-icon {
  display: block;
  flex: none;
}

.g-header__cats-icon svg {
  width: 26px;
  height: 26px;
}

/* =========================================================================
   ヘッダー
   PC: 白背景・下左右24pxの角丸・下端の影・境界線なし
   （2026-08-12更新版デザイン → 2026-09-17 に現行の Figma 部品 header_PC（7533:118036 の
     インスタンス）へ追従: 角丸 40→24px・下余白 8→6px・影 0 3px 0 rgba(177,217,233,.4) を追加。
     PC の影は SP の .g-header__cats と同じ値。SP 側では .g-header の影を打ち消す）
   ========================================================================= */
.g-header {
  /* PCはヘッダー全体（上段＋カテゴリナビ）を画面に追従させる。
     sticky は親要素（ページ全体のラッパー）が十分に高いので機能する。
     ※もし旧CSS側で祖先に overflow:hidden が指定されていると sticky は
       静かに無効化される（エラーは出ず、単に追従しなくなる）。
       その場合は fixed＋スペーサー方式への切り替えが必要 */
  position: sticky;
  top: 0;
  z-index: 900;   /* 本文より手前。SPの .g-header__top(1001) / .g-menu(1000) よりは下 */
  background: #fff;
  padding-bottom: 6px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);   /* Figma header_effect: 下端の影 */
}

.g-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--cs-gutter);
}

/* --- 上段（ロゴ／ナビ／検索／企業ロゴ） --- */
.g-header__top {
  border-bottom: 0;   /* 更新版デザインで下線は廃止 */
}

.g-header__top .g-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

/* --- ロゴ（タグラインは 2026-10-21 に削除） --- */
.g-header__logo {
  flex: none;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.g-header__logo > a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-header__logo-img {
  display: block;
  flex: none;
  width: 137px;
  height: 35px;
  background: var(--cs-logo) no-repeat center / contain;
}

/* ヘッダーのタグラインは 2026-10-21 に削除（企業ロゴを最小サイズ 100px にする場所を空けるため）。.g-header__tagline の指定も削除 */

/* --- ハンバーガーボタン（SPのみ表示） --- */
.g-header__menu-btn {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.g-header__menu-icon {
  width: 26px;
  height: auto;   /* 三本線と✕でviewBoxの縦横比がわずかに違うため、高さは自動 */
}

/* 開閉は aria-expanded で出し分ける（JS側はクラスを付け替えない）。
   共通リセットの `.g-header svg { display:block }`（詳細度 0,1,1）に
   打ち勝つ必要があるため、2クラスで指定する（SNS矢印と同じ対策） */
.g-header .g-header__menu-icon--close {
  display: none;
}

.g-header .g-header__menu-btn[aria-expanded="true"] .g-header__menu-icon--open {
  display: none;
}

.g-header .g-header__menu-btn[aria-expanded="true"] .g-header__menu-icon--close {
  display: block;
}

/* --- ナビ全体 --- */
.g-header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

/* --- グローバルナビ --- */
.g-header__gnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}

/* 文字サイズは 14px（2026-10-20 先方FB「12px は小さく読みにくい・2文字の項目はクリックしにくい」で 12px から変更。
   下段のカテゴリナビとの大小の差は残す） */
.g-header__gnav-item > a,
.g-header__sns-toggle {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-text-100);   /* Figma header_PC は text_black_100（2026-10-01。旧: --cs-text-80） */
}

/* クリックできる範囲を上下左右 4px ずつ広げる（見た目の位置は変えない: padding と同じ量の負の margin で相殺）。
   項目の間隔 16px・折り返し時の行間 8px より小さいので、隣の項目と範囲は重ならない（2026-10-20） */
.g-header__gnav-item > a {
  padding: 4px;
  margin: -4px;
}

/* 外部リンク（データの3列目 blank）: ラベルの右に 12px の外部リンクアイコン（Figma header_PC 2026-10-05 修正。間隔 4px）。フッターの下段ナビも同じ */
.g-header__gnav-item > .g-header__gnav-link--ext,
.g-footer__subnav-item > .g-footer__subnav-link--ext {
  display: flex;
  align-items: center;
  gap: 4px;
}

.g-header__gnav-item > .g-header__gnav-link--ext .u-underline,
.g-footer__subnav-item > .g-footer__subnav-link--ext .u-underline {
  min-width: 0;   /* 長いラベルでもアイコンを押し出さず、ラベル側を省略記号で縮める */
}

.g-header__gnav-ext,
.g-footer__subnav-ext {
  flex: none;
  width: 12px;
  height: 12px;
}

/* --- SNSドロップダウン --- */
.g-header__gnav-item--sns {
  position: relative;
}

.g-header__sns-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-feature-settings: 'palt' 1;
  white-space: nowrap;
  cursor: pointer;
}

.g-header__sns-arrow {
  flex: none;
  width: 14px;
  height: 14px;
}

/* 2026-10-22 Figma header_PC（7992:30551）のアイコン付きデザインに差し替え:
   SNS ボタンの左端にそろえて真下（Figma ではボタン下端から 3.5px）に出す・枠線 bland_blue_40・影なし・幅は中身なり。
   内側の余白 16px と行の間隔 12px は、リンク側の上下 padding 5px（クリック範囲を広げる分）と合わせて作る:
   Figma の 16px は枠線（内側の 1px）込みの値なので、枠線 1px＋上下 9px＋5px＋1px（22px の行の中で 20px のアイコンが中央に来る分）＝16px、
   左右は枠線 1px＋リンクの 15px */
.g-header__sns-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  display: none;
  padding: 9px 0;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 8px;
}

/* クリック（.is-open）でのみ開閉する。hoverでは開かない */
.g-header__gnav-item--sns.is-open .g-header__sns-menu {
  display: block;
}

/* パッと切り替える（アニメーションさせない） */
.g-header__gnav-item--sns.is-open .g-header__sns-arrow {
  transform: rotate(180deg);
}

/* 2026-10-21 先方FB「SNSリンクの文字が小さく薄い」: 12px・text_black_80 → 14px・text_black_100。
   2026-10-22 Figma（7992:30551）で 16px・行の高さ 20px（アイコンと同じ）・アイコンとの間隔 8px に変更。
   ラベル（.u-underline）は下線用に下 2px の余白を持ち 22px になるので、上下 padding を 5px にして行の間隔を 12px（5＋1＋1＋5）にする */
.g-header__sns-item > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--cs-text-100);
  white-space: nowrap;
}

.g-header__sns-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.g-header__sns-icon > svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* --- 検索 --- */
.g-header__search {
  flex: none;
}

.g-header__search-form {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 4px 12px 5px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #a1d3e6;   /* 更新版デザイン（旧: --cs-gray-30） */
  border-radius: 16px;
}

.g-header__search-input {
  width: 130px;   /* 2026-09-30 作業依頼者指示: プレースホルダー「気になるワードを検索」（12px×10字＋字間 ≒ 127px）が
                     「気になるワードを検」で切れていたため 113px → 130px（虫眼鏡との間隔 32px は据え置き） */
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--cs-text-100);
}

.g-header__search-input::placeholder {
  color: var(--cs-text-80);
  opacity: 1;
}

.g-header__search-input:focus {
  outline: none;
}

/* 入力欄の枠線は消しているので、代わりにフォームの外側にフォーカス枠を出す
   （2026-10-01 アクセシビリティ対応・ガイドライン 2.4.7。従来はフォーカスしても見た目が変わらなかった）。
   色・太さは他のリンク・ボタンのフォーカス枠と同じ */
.g-header__search-form:focus-within {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

.g-header__search-btn {
  flex: none;
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.g-header__search-btn svg {
  width: 20px;
  height: 20px;
}

/* --- サイボウズ企業ロゴ --- */
.g-header__cy-logo {
  flex: none;
}

/* 2026-10-21 先方FB: サイボウズのロゴガイドラインの最小サイズ（横幅100px）に合わせて 67×32 → 100×24
   （SVG の枠をロゴの実際の範囲に切り詰めたので、100px がそのままロゴの幅。Figma corporate_logo 7992:30605）。
   mix-blend-mode は WebP（白背景）だった頃の名残で、透過の SVG には効いても無害 */
.g-header__cy-logo img {
  display: block;
  width: 100px;
  height: 24px;
  mix-blend-mode: darken;
}

/* --- カテゴリナビ（下段） --- */
.g-header__cats {
  /* PCでは背景を持たせない。親 .g-header の白背景が塗る。
     子要素の背景は親の border-radius でクリップされないため、
     ここに背景を持たせると角丸（40px）の外側へ四角くはみ出す
     （SPは .g-header 自体が背景を持たないので、SP側のメディアクエリで
       個別に background を持たせている） */
  border-bottom: 0;   /* 更新版デザインで水色の下線は廃止 */
}

.g-header__cats .g-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;   /* PCは中央寄せ（更新版デザイン） */
  min-height: 44px;
}

.g-header__cats-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 40px;
  min-width: 0;
}

.g-header__cats-item > a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90, #00425c);   /* Figma のカテゴリナビ（PC・SP）は #00425C（2026-10-01。旧: --cs-blue-80 #003F4D） */
}

/* --- トップページのFV表示時だけ大きいヘッダー（PCのみ・2026-09-18 デザイナー指示） ---
   Figma 7301:21755「header」(1440×144): ロゴ 219×56・タグライン 14px・上段 pt24/pb12・
   カテゴリ行 16px/アイコン26px・下余白 8px・角丸 40px。スクロールすると通常の
   header_PC（106px・ロゴ 137×35）へ戻る（参考: https://voice.toyobo.co.jp/）。
   .g-header--fv は header モジュールの JS が body.r-top-page のときだけ付け外しする
   （最上部 <20px で付与・80px 超で外す。JS 無効時は通常サイズのまま）。
   高さの変化は sticky の占有分もアニメーションするので、下の本文もなめらかに動く */
.g-header,
.g-header__logo-img,
.g-header__top .g-header__inner,
.g-header__cats-item > a,
.g-header__cats-icon svg {
  transition: padding .3s ease, border-radius .3s ease, width .3s ease, height .3s ease, font-size .3s ease;
}

@media (min-width: 1025px) {
  /* --- 上段ナビの折り返し（PC共通・2026-09-18） ---
     ※2026-10-02 から PC のヘッダーは 1025px 以上だけ（1024px 以下は SP と同じヘッダー）
     幅が足りないとき、以前は各項目が「…」省略で1文字ずつ縦に潰れて読めなくなっていた
     （820px・FV ヘッダーで顕著）。方針: 文字は潰さず「項目単位で折り返す」。
     ①.g-header__nav はロゴの右の残り幅を全部使う（flex:1）
     ②グローバルナビ .g-header__gnav は basis 0 で「検索窓・企業ロゴが1行に収まった残り」を
       受け取り、足りなければ内側で2行に折り返す（flex-wrap は元から wrap）
     ③項目は flex:none（縮まない）にして、gnav の最小幅＝最長項目「サイボウズ式について」を保証
     十分な幅があるときは以前と同じ見た目（項目は右寄せで検索窓の左に並ぶ） */
  .g-header__nav {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }

  .g-header__gnav {
    flex: 1 1 0;
    justify-content: flex-end;
  }

  .g-header__gnav-item {
    flex: none;
  }

  .g-header__gnav-item > a .u-underline {
    overflow: visible;
    text-overflow: clip;
  }

  /* PC のロゴは 160×40（Figma header_PC 7301:21813・2026-10-05 ロゴ差し替え時。旧 137×35 は SP のまま） */
  .g-header__logo-img {
    width: 160px;
    height: 40px;
  }

  .g-header--fv {
    padding-bottom: 8px;
    border-radius: 0 0 40px 40px;
  }

  .g-header--fv .g-header__top .g-header__inner {
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .g-header--fv .g-header__logo > a {
    gap: 12px;
  }

  .g-header--fv .g-header__logo-img {
    width: 219px;
    height: 56px;
  }

  .g-header--fv .g-header__cats-item > a {
    font-size: 16px;
  }
}

/* =========================================================================
   フッター
   2026-08-31更新デザイン: Figma PC (6615:100694) / SP (6615:100699)
   - 白背景＋上角丸。白い部分は画面幅いっぱいに広がる（.g-footer 自体が全幅）
   - 上端の「目盛り」あしらいは ::before の repeat-x 背景で全幅に敷く
     （バー: 2px幅 #d8e9f0、高さ 20/6/6/6/6/12/6/6/6/6 の10本＝120px周期、
      間隔10px、全体 opacity .6。Figma speechbubble/blue_20）
   - コンテンツ幅はヘッダーと同じ（max-width 1200px = 1440px - 左右120px）
   ========================================================================= */
.g-footer {
  position: relative;
  overflow: hidden;   /* 角丸の外に目盛りがはみ出さないようにする */
  padding: 80px var(--cs-gutter) 56px;
  background: #fff;
  border-radius: 24px 24px 0 0;
}

.g-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='20'%3E%3Cg fill='%23D8E9F0'%3E%3Crect width='2' height='20' rx='1'/%3E%3Crect x='12' width='2' height='6' rx='1'/%3E%3Crect x='24' width='2' height='6' rx='1'/%3E%3Crect x='36' width='2' height='6' rx='1'/%3E%3Crect x='48' width='2' height='6' rx='1'/%3E%3Crect x='60' width='2' height='12' rx='1'/%3E%3Crect x='72' width='2' height='6' rx='1'/%3E%3Crect x='84' width='2' height='6' rx='1'/%3E%3Crect x='96' width='2' height='6' rx='1'/%3E%3Crect x='108' width='2' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top;
  opacity: 0.6;
  pointer-events: none;
}

.g-footer__container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.g-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

/* --- ロゴ（タグライン付き） ---
   2026-10-27 ロゴ画像＋文字のタグラインから、ケルン支給のタグライン付きロゴ画像
   （assets/images/logo-tagline.webp・2倍の 454×156）1枚に変更。ロゴ部分の幅は従来どおり 227px */
.g-footer__logo {
  flex: none;
}

.g-footer__logo > a {
  display: block;
}

.g-footer__logo-img {
  display: block;
  width: 227px;
  height: auto;
}

/* --- ナビ2段 --- */
.g-footer__navs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 27px;   /* Figma実測値 */
  min-width: 0;
}

.g-footer__catnav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.g-footer__catnav-item > a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90, #00425c);   /* bland_blue_90 #00425c */
}

.g-footer__subnav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.g-footer__subnav-item > a {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #141c1f;   /* Figma text_black_100（更新デザインの新値） */
}

/* --- 下段（コピーライト／SNS） ---
   2026-10-20 に「記載された商品名〜」の一文を削除してコピーライトが1行になったため、
   SNS のアイコン行と上下中央でそろえる（Figma footer 7998:32850 の items-center。SP は下の column-reverse で上書き） */
.g-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.g-footer__copyright {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90, #00425c);   /* bland_blue_90 #00425c */
}

.g-footer__copyright > span {
  display: block;
}

.g-footer__sns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.g-footer__sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
}

.g-footer__sns-btn svg {
  width: 26px;
  height: 26px;
}

/* =========================================================================
   ハンバーガーメニュー（SP専用・全画面オーバーレイ）
   Figma: node 5673:72028
   PCでは使わないので既定は非表示。1024px以下のブロックで表示制御する（2026-10-02 まで 767px 以下）
   ========================================================================= */
.g-menu {
  display: none;
}

/* メニューを開いている間、背面のページをスクロールさせない */
.is-g-menu-open,
.is-g-menu-open body {
  overflow: hidden;
}

/* SNSアイコンが未定義（＝管理画面で新しいSNSを追加した）ときのテキスト表示 */
.g-footer__sns-label {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--cs-text-100);
  white-space: nowrap;
}

/* =========================================================================
   レスポンシブ
   - 1024px以下のヘッダー・メニューは Figma のSP版（2026-10-02 から。それまでは 767px 以下）
   - 767px以下は Figma のSP版デザイン
     （ヘッダー node 5418:37411 / フッター node 5418:37368）
   ========================================================================= */
@media (max-width: 1280px) {
  :root {
    --cs-gutter: 40px;
  }
}

/* 768〜1024px（タブレット縦・狭いPC）は、以前は PC のヘッダーのまま検索欄を縮め、
   タグラインをロゴの下に落としていた（2026-09-18）。2026-10-02 に作業依頼者の指示で
   この幅も SP と同じヘッダー（ロゴ＋メニューボタン・横スクロールのカテゴリナビ）にしたので、
   その調整は削除した（下の「ヘッダー・メニュー（1024px以下）」） */

/* FV の大きいヘッダーで 1025〜1280px のときタグラインをロゴの下へ落とす調整は、
   2026-10-21 にヘッダーのタグラインを削除したので不要になり、削除した */

/* =========================================================================
   SP（767px以下）の余白
   ========================================================================= */
@media (max-width: 767px) {
  :root {
    --cs-gutter: 20px;
  }
}

/* =========================================================================
   ヘッダー・メニュー（1024px以下 ＝ SP と、タブレット縦・狭いPC）
   ヘッダーは「ロゴ＋ハンバーガー」の1行＋横スクロールするカテゴリナビ。
   PCで並んでいるグローバルナビ・SNS・検索・企業ロゴは
   ハンバーガーで開くパネル（.g-header__nav）へ格納する。
   ※マークアップは1つのまま。PCでは横並び、SPではパネルとして使う
   ※2026-10-02 まではこのブロックも 767px 以下だった。作業依頼者の指示で
     768〜1024px も同じヘッダーにした（オリエン資料 p.20「PCではハンバーガーメニューを廃止」は
     PC が対象。p.47 でブレイクポイントは提案に任されている）。左右の余白は
     --cs-gutter に従う（768〜1024px は 40px、767px 以下は 20px）
   ========================================================================= */
@media (max-width: 1024px) {
  /* --- ヘッダー全体 --- */
  /* .g-header 自体はもう背景を持たない（下段は .g-header__top と
     .g-header__cats がそれぞれ自前の背景を持つ。理由は次の注記） */
  .g-header {
    position: relative;
    padding-bottom: 0;   /* PC用の値（6px）を打ち消す */
    padding-top: 56px;   /* .g-header__top を position:fixed で浮かせる分の
                            スペースを確保する（下記コメント参照） */
    border-radius: 0;    /* PC用の角丸（24px）を打ち消す。角丸は下段の各行が個別に持つ */
    box-shadow: none;    /* PC用の下端の影を打ち消す。SPの影は .g-header__cats が持つ */
  }

  /* .g-header__top は常時表示にする。ページをスクロールしても
     ロゴとメニューボタンが画面上部に残り続け、ハンバーガーメニューを
     開くときの基準行にもなる（作業依頼者フィードバック・2026-08-12）。

     はじめ position:sticky で実装したが、sticky は「自分の親要素の
     範囲内」でしか効かない。.g-header は高さ約100px（上段56px＋
     カテゴリ行44px）しかなく、少しスクロールしただけで親ごと画面外へ
     流れてしまい、常時表示にならなかった。position:fixed に変更し、
     代わりに .g-header 側へ同じ高さ分の padding-top を持たせることで、
     カテゴリ行より下のレイアウトが詰まらないようにしている
     （.g-header の見た目の高さ自体は変わらない）。 */
  .g-header__top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;   /* .g-menu（1000）より上＝メニューを開いても隠れない */
    background: #fff;   /* Figmaは白80%＋blurだが、追従時に背面が透けるため
                           不透明の白に変更（作業依頼者フィードバック・2026-08-12） */
    box-shadow: none;   /* 2026-09-24: 上段の影がカテゴリ行に落ちて「1段目と2段目の背景色が違う」ように見えたため撤去（デザイナー指摘）。
                           影はヘッダー全体の下端（.g-header__cats）だけが持つ */
    border-bottom: 0;   /* SPは2本の境界線を使わず、影で浮かせる */
  }

  /* カテゴリナビ側にも同じ背景を持たせ、それまで .g-header 全体で
     ひとつながりに見えていた見た目（角丸カード）を保つ。
     ヘッダー全体の一番下＝この行が担当するため、下側の角丸と
     下端の影（Figma header_SP: 角丸12px両側・0 3px 0 rgba(177,217,233,.4)）
     をここに持たせる（2026-09-07 トップページ実機確認で左だけ角丸・影なしだった
     のを修正。Figma 6718:81095） */
  .g-header__cats {
    position: relative;   /* 右端のフェード（::after）の基準 */
    background: #fff;   /* 上段（.g-header__top）と色味を揃える（半透明だと段差が見える） */
    border-bottom: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
  }

  /* 右端で切れる項目を白へフェードさせ、横に続きがあることを示す
     （Figma: 幅63px・白35%→透明90%のグラデーション）。
     スクロール領域（.g-header__inner）の外側に置くので、スクロールしても
     右端に固定される。クリックを邪魔しないよう pointer-events は切る */
  .g-header__cats::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 63px;
    border-radius: 0 0 12px 0;
    background: linear-gradient(to left, #fff 35%, rgba(255, 255, 255, 0) 90%);
    pointer-events: none;
  }

  .g-header__top .g-header__inner {
    gap: 12px;
  }

  /* ロゴのみ表示（タグラインは 2026-10-21 に PC・SP とも削除） */
  /* 2026-10-05: ロゴを角丸込みの SVG（透過）に替えたため、角を切る border-radius: 6px は外した */

  /* --- ハンバーガーボタン --- */
  .g-header__menu-btn {
    display: flex;
  }

  /* PCの横並びナビはSPでは出さない。同じ内容は .g-menu 側で表示する */
  .g-header__nav {
    display: none;
  }

  /* --- カテゴリナビ：折り返さず横スクロール --- */

  /* アイコンとラベルの間隔はSPでは4px */
  .g-header__cats-item > a {
    gap: 4px;
  }

  .g-header__cats .g-header__inner {
    justify-content: flex-start;   /* SPは左寄せ＋スクロール（PCの中央寄せを上書き） */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .g-header__cats .g-header__inner::-webkit-scrollbar {
    display: none;
  }

  /* リスト自体も縮ませない。縮むと中身が親幅に収まってスクロールしなくなる。
     項目間はFigma実測16px（旧24px。2026-09-07修正）。末尾に右フェード幅ぶんの
     余白を足し、最後の項目がフェードの下に隠れたままにならないようにする */
  .g-header__cats-list {
    flex: none;
    flex-wrap: nowrap;
    gap: 16px;
  }

  /* 末尾の余白: 最後までスクロールしたとき、最後の項目が右端のフェード（63px）の手前で止まるようにする。
     2026-10-21 先方FB「790px を切るあたりから最後のカテゴリーにグラデーションが重なる」。
     以前は上の規則に padding-right: 40px と書いていたが、ヘッダー内のリストの余白を消す共通の指定に
     負けて 0px になっていた（実測）ため、2クラスにして確実に効かせる。
     スクロール領域の右の余白（--cs-gutter: 767px 以下 20px／768〜1024px 40px）も末尾に足されるので、
     「フェードの幅 − 端の余白 ＋ 8px」にして、どの幅でもフェードの手前に約 8〜14px 空ける */
  .g-header__cats .g-header__cats-list {
    padding-right: calc(63px - var(--cs-gutter) + 8px);
  }

  /* 各項目を縮ませず、文字幅どおりの箱にする。
     ここで min-width:0（共通指定）を打ち消さないと、項目が潰れて
     文字だけがはみ出し、ラベル同士が重なって表示される */
  .g-header__cats-item {
    flex: none;
    min-width: auto;
    max-width: none;
  }

  /* 横スクロールさせるので、ラベルは省略せず全文表示する */
  .g-header__cats-item > a {
    overflow: visible;
    text-overflow: clip;
  }

  /* =======================================================================
     ハンバーガーメニュー（全画面オーバーレイ）
     ======================================================================= */
  /* display:none/flex の切り替えではスライドできないため、
     常に描画しつつ画面外へ transform で追い出す方式にする。
     - 閉: 右へ100%ずらす＋visibility:hidden（トランジション完了後に隠す＝操作不能にする）
     - 開: 定位置へ＋visibility:visible（即時） */
  .g-menu {
    position: fixed;
    top: 56px;   /* .g-header__top の高さ。ヘッダーを覆わずその下からスライドインする */
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 背景はページ本体（body.r-bg）と同じ方眼罫線（Figma 6615:101103: regular/bg2 #f7fbfc の上に罫線）。
       2026-09-07 実機確認で「白パネルの下の背景に罫線が無い」との指摘を受けて単色から変更 */
    background-color: #f7fbfc;
    background-image:
      linear-gradient(to right, #f0f7fa 1px, transparent 1px),
      linear-gradient(to bottom, #f0f7fa 1px, transparent 1px);   /* 罫線は body.r-bg と同じ #f0f7fa（2026-09-24） */
    background-size: 24px 24px;
    font-family: var(--cs-font);
    font-feature-settings: 'palt' 1;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .g-menu.is-open {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }

  /* OSの「視差効果を減らす」設定を尊重し、アニメーションなしで瞬時に切り替える */
  @media (prefers-reduced-motion: reduce) {
    .g-menu {
      transition-duration: 0s;
    }
  }

  .g-menu *,
  .g-menu {
    box-sizing: border-box;
  }

  .g-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .g-menu p,
  .g-menu h2 {
    margin: 0;
  }

  .g-menu a {
    text-decoration: none;
  }

  .g-menu a:focus-visible,
  .g-menu button:focus-visible {
    outline: 2px solid var(--cs-blue-60);
    outline-offset: 2px;
  }

  .g-menu svg {
    display: block;
  }

  /* --- 白いパネル（Figma 6615:101104: 白・下角丸20px・下端の影 0 3px 0 rgba(177,217,233,.4)） --- */
  .g-menu__panel {
    position: relative;   /* 下端の目盛り飾り（.g-menu__rule）の基準 */
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
  }

  .g-menu__body {
    /* ロゴ＋閉じるボタンの行（.g-menu__top）はヘッダー側に統合したため廃止。
       Figma 実測: 上12px・左右26px・下48px（下48pxの中に目盛り飾りが入る） */
    padding: 12px max(26px, var(--cs-gutter)) 48px;   /* 768〜1024px はページの左右余白（40px）にそろえ、ヘッダーのロゴと縦の線を合わせる（2026-10-02） */
  }

  /* --- 3つのセクション（Figma: 見出し→項目 10px、項目間 10px、セクション下 24px） --- */
  .g-menu__section {
    padding-bottom: 24px;
  }

  /* 見出しの下余白。上の共通リセット（.g-menu h2 { margin:0 }）は詳細度が
     (0,1,1) でクラス単体 (0,1,0) より強く打ち消されるため、.g-menu を前置して勝たせる
     （2026-09-07 実機確認で判明） */
  .g-menu .g-menu__section-ttl {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: var(--cs-text-80);
  }

  .g-menu__item {
    margin-bottom: 10px;
  }

  .g-menu__item:last-child {
    margin-bottom: 0;
  }

  .g-menu__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 10px;
    border-bottom: 1px solid #a1d3e6;
  }

  /* 長いラベルは折り返さず「…」で省略（矢印を押し出さない） */
  .g-menu__item-label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: var(--cs-blue-90, #00425c);   /* Figma のメニューは #00425C（2026-10-01。旧: --cs-blue-80） */
  }

  .g-menu__item > a > svg {
    flex: none;
    width: 17px;
    height: 17px;
  }

  /* --- SNS＋検索 --- */
  .g-menu__utils {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .g-menu__sns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
  }

  .g-menu__sns-btn {
    display: block;
    color: var(--cs-blue-90, #00425c);   /* アイコンは currentColor で塗る。Figma のメニューに合わせ #00425C（2026-10-01） */
  }

  .g-menu__sns-btn svg {
    width: 32px;
    height: 32px;
  }

  .g-menu__sns-label {
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--cs-blue-90, #00425c);
    white-space: nowrap;
  }

  .g-menu__search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px 9px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #a1d3e6;
    border-radius: 20px;
  }

  .g-menu__search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--cs-text-100);
  }

  .g-menu__search-input::placeholder {
    color: var(--cs-text-80);
    opacity: 1;
  }

  .g-menu__search-input:focus {
    outline: none;
  }

  /* 同上（ハンバーガーメニュー内の検索欄。2026-10-01） */
  .g-menu__search:focus-within {
    outline: 2px solid var(--cs-blue-60);
    outline-offset: 2px;
  }

  .g-menu__search-btn {
    flex: none;
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .g-menu__search-btn svg {
    width: 20px;
    height: 20px;
  }

  /* パネル下端の装飾（ブランドの「ものさし」モチーフ）。
     Figma 6615:101169: パネルの下端（下余白48pxの中）に、左右24px内側・高さ20px・
     色 #d8e9f0・不透明度60%で置かれ、上下反転（目盛りは下端から上へ伸びる）。
     Figmaでは細いdivを29個並べているが、同じ見た目を背景グラデーションの
     繰り返しで作る（12px間隔・5本ごとに中12px／10本ごとに長20px）。
     以前は検索欄の直下（余白の上側）に置いていたが、実機確認で位置違いの指摘を受け
     パネル下端への絶対配置に変更（2026-09-07） */
  .g-menu__rule {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 20px;
    opacity: 0.6;
    background-image:
      repeating-linear-gradient(to right, #d8e9f0 0 2px, transparent 2px 12px),
      repeating-linear-gradient(to right, #d8e9f0 0 2px, transparent 2px 60px),
      repeating-linear-gradient(to right, #d8e9f0 0 2px, transparent 2px 120px);
    background-repeat: repeat-x;
    background-size: 100% 6px, 100% 12px, 100% 20px;
    background-position: 0 0;
    transform: scaleY(-1);   /* 目盛りを下端から上向きに */
    pointer-events: none;
  }

  /* --- 下部（企業ロゴ＋コピーライト） --- */
  .g-menu__foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 max(26px, var(--cs-gutter)) 20px;   /* Figma: 左右26px（768〜1024px はページの左右余白にそろえる） */
  }

  .g-menu__cy-logo img {
    display: block;
    width: 100px;   /* 2026-10-21 ロゴの最小サイズ 100px（PC と同じ） */
    height: 24px;
    mix-blend-mode: darken;
  }

  .g-menu__copyright {
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--cs-blue-90, #00425c);   /* Figma のメニューは #00425C（2026-10-01。旧: --cs-blue-80） */
  }

  .g-menu__copyright > span {
    display: block;
  }
}

/* =========================================================================
   SP（767px以下）のフッター
   ========================================================================= */
@media (max-width: 767px) {
  /* --- フッター --- */
  .g-footer {
    padding: 56px var(--cs-gutter);
    border-radius: 16px 16px 0 0;
  }

  .g-footer__container {
    gap: 20px;
  }

  .g-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .g-footer__logo-img {
    width: 188px;
    max-width: 100%;
  }

  .g-footer__navs {
    align-items: stretch;
    width: 100%;
    gap: 16px;
  }

  /* カテゴリナビは3列グリッド。※行間は 2026-09-30 に 12px へ戻した（下の gap のコメント）。以下はそれ以前の経緯:
     行間は 28px（2026-09-24 デザイナー指示「働き方とマネジメントの間を 28px ほど」。
     Figma の間隔はテキストボックス（行の高さ）同士の距離なので CSS の row-gap にそのまま置く。
     旧 12px → 一度 16px にしたが差が小さく「変わっていない」と見えたため 28px に） */
  .g-footer__catnav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;   /* 2026-09-30 Figma SP フッター（7105:120190 の footer-nav）どおり行間 12px に（旧 28px） */
  }

  /* 3列目の項目だけ左に 18px 寄せる（同 Figma。項目数は管理画面で変わるので nth-child(3n) で拾う） */
  .g-footer__catnav-item:nth-child(3n) {
    padding-left: 18px;
  }

  .g-footer__catnav-item > a {
    line-height: 1.8;
  }

  /* 独自ナビは2列グリッド */
  .g-footer__subnav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    justify-items: start;
  }

  /* 独自ナビのラベルは省略（…）せず折り返す（2026-10-21。「データ保護の取り組み」が 320px で
     「データ保護の取り…」になっていた。375px では1行に収まり、見た目は変わらない） */
  .g-footer__subnav-item > a .u-underline {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* SNS → コピーライトの順で左寄せ（DOM順は逆なので column-reverse） */
  .g-footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }

  .g-footer__sns {
    justify-content: flex-start;
    gap: 16px;
  }

  .g-footer__sns-btn {
    width: auto;
  }
}

/* --- 374px 以下（iPhone SE 等）のフッターの記事カテゴリー（2026-10-21 先方FB） ---
   3等分の列＋3列目の左 18px では、363px あたりから「人気の読みもの」「サイボウズ」が
   「…」で省略されていた。375px（Figma の幅）の見た目は変えず、狭いときだけ
   列の幅を中身に合わせて余りを列の間に配り、3列目の左の余白を外し、文字を 13px にする。
   320px でも省略されないことを確認済み（ラベルは「各種表示設定」のデータなので、
   今より長いラベルにすると狭い画面ではまた省略されうる） */
@media (max-width: 374px) {
  .g-footer__catnav-list {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    column-gap: 8px;
  }

  .g-footer__catnav-item:nth-child(3n) {
    padding-left: 0;
  }

  .g-footer__catnav-item > a {
    font-size: 13px;
  }

  /* 下の独自ナビ（2列）も同じく列の幅を中身に合わせ、字間を詰めて1行に収める
     （「サイボウズ式のメンバー」「データ保護の取り組み」が 320px で並んでも1行に入る）。
     それでも入らないときは上の指定で2行に折り返す（省略はしない） */
  .g-footer__subnav-list {
    grid-template-columns: repeat(2, auto);
    justify-content: space-between;
    column-gap: 8px;
  }

  .g-footer__subnav-item > a {
    letter-spacing: 0;
  }
}


/* =======================================================================
   印刷（2026-10-02・ブラウザチェック 全体 No.21①）
   画面幅ごとの切り替え（@media (max-width: …)）は 2026-10-02 に screen 限定を外し、
   印刷でも用紙幅（A4 縦で約 720px）に合わせて SP / タブレットのレイアウトになるようにした。
   ここでは印刷のときだけ、画面上部に追従するヘッダーを追従させない
   （position: fixed / sticky の要素は印刷すると全ページの上端に繰り返し出て、本文の頭にかぶる）。
   ======================================================================= */
@media print {
  .g-header,
  .g-header__top {
    position: static;
  }

  .g-header {
    padding-top: 0;   /* SP で .g-header__top を fixed にしていた分の余白を戻す */
  }
}

/* =========================================================================
   記事詳細（エレメントリスト）
   Figma「エレメントリスト」PC (6718:87638) / SP (6718:86764) の実装
   （2026-09-08 デザイン更新を反映。旧: 5294:5557 → 6259:81215 / 6259:79778）。
   - .r-article    … 記事本文エリア（840pxの白カード。エレメントリスト用の器）
   - .r-breadcrumb … パンくず
   - .r-series     … 記事下の関連ブロック（blockSeries）
   - .m-editor     … リッチテキスト本文。**実記事（entry.mtml）が出力する
                      旧デザインのHTML構造・クラス名（.ttl01 / .balloon /
                      .caption / .embed-article 等）をそのまま維持したまま、
                      旧 assets/css/style.css・addition.css の指定を後勝ちで
                      上書きして新デザインに置き換える**（2026-08-26変更。
                      それまでの .art-body 方式から実記事互換方式へ統合）。
                      旧CSSに勝つため、各セレクターは旧CSSと同じか高い
                      詳細度になるよう旧セレクターの形を意図的に踏襲している。
                      ※ .m-editor のマークアップは entry.mtml（記事）でのみ
                      使用されていることを確認済み。他ページへの影響はない
   【2026-09-08 デザイン更新の要点】
   - 本文の余白: ブロック間 40px（SP 24px）、段落の連続は 24px（SP 12px）
   - 枠付き要素（囲い線／引用／プロフィール／オフショット）は 1px #63b4d3・角丸8px
   - 強調系（強調囲い線／記事内ボタン／バナー／リンクカード）は濃紺 #00425c
   - 吹き出しは speechbubble パレット7色（brown / purple を追加。white は gray 扱い）
   - 記事下ブロック: 見出し28px＋2pxライン・説明文なし・カギ括弧飾り廃止・
     カードはメタ行（バッジ＋日付）がタイトルの上
   ========================================================================= */
:root {
  --cs-blue-10: #f5fdff;    /* bg_blue_10   淡い水色の背景（旧デザインの名残。現在は未使用箇所が多い） */
  --cs-blue-40: #a1d3e6;    /* bland_blue_40 目次「すべて表示」ボタンの枠・タグの枠・区切り線 */
  --cs-bblue-60: #63b4d3;   /* bland_blue_60 囲い線・引用・プロフィールの枠、見出しバー、箇条書きの点 */
  --cs-blue-90: #00425c;    /* bland_blue_90 目次の枠線・強調系の濃紺・連載名・パンくず */
  --cs-gray-10: #e3e7e8;    /* gray_10      目次の項目区切り線・サムネイルの枠・プレースホルダー */
  --cs-gray-blue-10: #f0f5f7; /* リード文・タグ箱の背景 */
  --cs-teal-70: #1479a0;    /* speechbubble/blue_90 番号付きリストの数字・リンクのホバー色 */
  --cs-red-60: #ad5365;     /* speechbubble/red_90 YouTubeラベル */
  --cs-gray-60: #637278;    /* text_black_80 日付・キャプション等の灰色文字（2026-09-08 #666 → #637278） */
  --cs-shadow-card: 0 2px 12px 4px rgba(100, 140, 149, 0.1); /* shadow_01 */
}

/* --- 共通リセット（ヘッダー/フッターと同じ方針でスコープ内に閉じる） --- */
.r-article,
.r-breadcrumb,
.r-series,
.r-article *,
.r-breadcrumb *,
.r-series * {
  box-sizing: border-box;
}

.r-article,
.r-breadcrumb,
.r-series {
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: var(--cs-text-100);
}

.r-article p,
.r-article h1,
.r-article h2,
.r-article h3,
.r-article figure,
.r-article blockquote,
.r-series p,
.r-series h2,
.r-series h3,
.r-breadcrumb p {
  margin: 0;
}

.r-article ul,
.r-article ol,
.r-series ul,
.r-breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-article a,
.r-series a,
.r-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.r-article img,
.r-series img {
  max-width: 100%;
  height: auto;
}

.r-article svg,
.r-series svg,
.r-breadcrumb svg {
  display: block;
  flex: none;
}

.r-article a:focus-visible,
.r-article button:focus-visible,
.r-series a:focus-visible,
.r-breadcrumb a:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

/* ダミー画像（エレメントリスト用のプレースホルダー。実ページでは img を置く）
   Figma のプレースホルダーは gray_10 の面に text_black_80 の小さな文字 */
.r-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--cs-gray-10);
  color: var(--cs-gray-60);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* 丸い矢印アイコン（濃紺の円＋白い矢印。Figma の arrow 部品）。
   リンクカード大・連載カード・他媒体カード・プロフィールリンク・
   担当スタッフの名前・オフショットの送りボタンで共用する。
   --sm: 15px（名前の横） / --lg: 38px（オフショット） / --ext: 別窓（↗）/ --prev: 前へ（←）

   矢印は要素の背景ではなく ::before に置く（2026-09-08）。
   ホバー時に「矢印だけを右へ抜けさせ、左から戻す」スライドスワップを効かせるため、
   動かす矢印（::before）と動かない円（要素本体の地色）を分離する必要がある。
   円側は overflow:hidden の窓になり、スワップ中に窓外へ出た矢印を隠す。
   矢印のサイズ指定は不要（inset:0 ＋ background-size:100% 100% で円の径に追従するため、
   .art-card-lg__title 内の20px・オフショットSPの28px のような上書きにも自動で合う） */
.r-arrow-circle {
  position: relative;
  overflow: hidden;
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cs-blue-90);
  vertical-align: middle;
  transition: background-color var(--hv-dur-color);
}

.r-arrow-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M13 16.3L17 12.3L13 8.3' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 12.3H7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* --ext / --prev は要素ごと回す（円なので見た目は矢印の向きだけが変わる）。
   スワップの移動方向も回転に追従するので、別窓（↗）は斜め上へ、
   前へ（←）は左へ抜ける。どちらも矢印の向きと動きが一致する */
.r-arrow-circle--ext {
  transform: rotate(-45deg);
}

.r-arrow-circle--prev {
  transform: rotate(180deg);
}

.r-arrow-circle--sm {
  width: 15px;
  height: 15px;
}

.r-arrow-circle--sm::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' fill='none'%3E%3Cpath d='M8 9.86L10 7.36L8 4.86' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.5 7.36H4.5' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.r-arrow-circle--lg {
  width: 38px;
  height: 38px;
}

.r-arrow-circle--lg::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38' fill='none'%3E%3Cpath d='M20 26L27 19L20 12' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M25 19H12' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   記事本文エリアの器
   ------------------------------------------------------------------------- */
/* 方眼罫線の背景（body.r-bg）の上に載る白い角丸カード。
   Figma: 幅1196px・角丸64px（SPは角丸24px）。ヘッダー下端から40px（SP 42px）で始まり、
   カードの下（パンくず・r-series）は罫線背景のまま */
.r-article {
  width: 100%;
  max-width: 1196px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: 64px;
}

/* 旧 style.css が .l-container に背景色を持っている場合、body.r-bg の方眼罫線が
   隠れてしまうため、リニューアル済みページでは器を透過させる（保険） */
body.r-bg #l-container,
body.r-bg .l-container {
  background: transparent;
}

.r-article__inner {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 40px 72px;   /* Figma: art-head が y=56、担当スタッフ下端から72px */
}

.art-offshot,
.art-tags,
.art-share,
.art-staff,
.r-article .m-editor {
  margin-top: 40px;
}

/* --- 記事ヘッダー（Figma PC 6718:87644 / SP 6718:86770） ---
   メタ行 = カテゴリバッジ ＋ 連載名（左）／公開日（右端）。
   SPでは連載名がタイトルの上の行に下りる（gridで並べ替え） */
.art-head__meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 記事ヘッダーのカテゴリバッジは一覧系ページと共通の .r-cat-badge を使う
   （カテゴリごとの配色つき。定義は「特集・連載一覧」セクション側にある）。
   記事ヘッダーだけ 14px（Figma: 14px / 0.84px / padding 1px 8px 2px） */
.art-head__meta > .r-cat-badge {
  padding: 1px 8px 2px;
  font-size: 14px;
}

.art-head__series {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
}

.art-head__series-sep {
  flex: none;
  width: 1px;
  height: 14px;
  background: var(--cs-blue-90);
}

.art-head__date {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-gray-60);
  white-space: nowrap;
}

.art-head__date svg {
  width: 16px;
  height: 16px;
}

.art-head__title-wrap {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--cs-blue-40);
}

.art-head__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.art-head__credits-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
}

.art-head__credits {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.art-head__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cs-gray-10);
  overflow: hidden;
}

.art-head__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-head__credit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.art-head__credit {
  line-height: 1.5;
  white-space: nowrap;
}

.art-head__credit-role {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cs-gray-60);
}

.art-head__credit-name {
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* 1役割に複数人（2026-09-30）: 名前は「A、B」と並べ、1人の名前の途中では折り返さず
   人と人の間で折り返す（.art-head__credit の nowrap を名前の欄だけ解除） */
.art-head__credit-list > .art-head__credit > .art-head__credit-name {
  white-space: normal;
}

.art-head__credit-person {
  white-space: nowrap;
}

.art-head__share {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 4px 14px;
  border: 1px solid var(--cs-blue-40);
  border-radius: 40px;
  background: #fff;
  font-family: inherit;
  font-feature-settings: 'palt' 1;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-text-100);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--hv-dur-color), border-color var(--hv-dur-color), color var(--hv-dur-color);
}

.art-head__share:hover {
  background: #f0f7fa;
  border-color: var(--hv-hover-text);
  color: var(--hv-hover-text);
}

.art-head__share svg {
  width: 26px;
  height: 26px;
}

.art-head__thumb {
  margin-top: 24px;
}

/* 記事詳細の冒頭画像（アイキャッチ）はトリミングしない（2026-09-04・作業依頼者指示）。
   以前は 16:9 の枠に object-fit: cover で敷いていたため、比率の違う画像は左右が
   切れていた（OGP規格 1200×630 では左右約7%）。枠の比率を固定せず、登録した
   画像の実寸比率で全体を表示する。プレースホルダー（.r-ph。エレメントリスト用）
   だけは高さが必要なので OGP 比率の枠を持たせる（Figma のラベルは「16:9」だが
   アイキャッチの登録規格に合わせている） */
.art-head__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.art-head__thumb .r-ph {
  aspect-ratio: 1200 / 630;
  border-radius: 8px;
}

/* --- リード文（旧 .lead） --- */
.m-editor .lead {
  padding: 24px;
  background-color: var(--cs-gray-blue-10);
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* 旧CSSの .lead 内余白（25px 0）を新デザインの12px間隔に置き換える */
.m-editor .lead > h2,
.m-editor .lead > h3,
.m-editor .lead > p,
.m-editor .lead > ol,
.m-editor .lead > ul,
.m-editor .lead > div {
  margin: 12px 0 0;
}

.m-editor .lead > *:first-child {
  margin-top: 0;
}

/* 実記事のリード文は <p> の入れ子ミスで先頭に空の <p> ができることがある */
.m-editor .lead p:empty {
  display: none;
}

/* --- 目次 ---
   実記事の目次は TableOfContents プラグイン（jquery.toc.js）が
   .toc > #toc の中へ <ul><li><a href="#chapterN"><span>見出し</span></a> を
   生成する（見出し前に <a name="chapterN"> アンカーも挿入される）。
   addition.css の .toc #toc 一式（白箱・黒枠・矢印アイコン）と、
   プラグイン同梱CSS（#toc。**renewal.cssより後に読み込まれる**）を
   両方上書きするため、セレクターは .toc #toc（1-1-0）以上で書くこと。
   項目番号はプラグイン出力に無いのでCSSカウンターで自動採番する。

   【折りたたみ（Figma PC 6718:87705 / SP 6718:86831）】
   項目が4件以上のとき、JS（element_list.mtml / entry.mtml 内）が #toc に
   .is-collapsed と「すべて表示 ＋」ボタン（.r-toc-toggle）を付与する。
   3件目まではくっきり表示、4件目は半透明フェード、5件目以降は非表示
   （件数基準。高さ固定ではない）。JSが無いページでは全件表示のまま（フォールバック） */
.toc #toc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: auto;
  margin: 0;
  padding: 20px 24px 8px;
  background: #fff;
  border: 1px solid var(--cs-blue-90);
  border-radius: 8px;
  font-size: 16px;
}

/* 本文に見出しが1つもない記事ではプラグインが空の #toc を出力する。
   空箱（「目次」ラベルだけの枠）を出さない */
.toc #toc:not(:has(li)) {
  display: none;
}

.toc #toc::before {
  content: '目次';
  display: block;
  padding: 0;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
}

.toc #toc ul,
.toc #toc ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.8;
  counter-reset: r-toc;
}

.toc #toc ul li,
.toc #toc ol li {
  margin: 0;
  padding: 0;
  background: none;
  line-height: 1.8;
  text-indent: 0;
}

.toc #toc ul li::before,
.toc #toc ol li::before {
  content: none;
}

.toc #toc a {
  display: flex;
  align-items: flex-start; /* 番号は上揃え（2行以上に折り返しても1行目に付く） */
  gap: 8px;
  padding: 0 0 10px 2px;
  border-bottom: 1px solid var(--cs-gray-10);
  color: var(--cs-text-100);
  font-weight: 700;
  text-decoration: none;
}

.toc #toc a::before {
  content: counter(r-toc);
  counter-increment: r-toc;
  flex: none;
  min-width: 12px;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: center;
}

/* 本文リンク共通の別窓アイコン等が目次内に紛れ込まないよう保険 */
.toc #toc a::after {
  content: none;
}

.toc #toc a span {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.toc #toc a:hover {
  text-decoration: none;
}

.toc #toc a:hover span {
  color: var(--cs-teal-70);
}

/* 折りたたみ状態（JSが .is-collapsed を付ける）:
   3件目まではくっきり表示、4件目は下へ向かって消える半透明フェード、
   5件目以降は非表示（「すべて表示」で展開しないと見えない）。
   ※2026-08-27修正: 当初はFigmaの高さ（270px）固定で切っていたが、
   目次テキストの行数によっては3件目までフェードに掛かってしまうため、
   ピクセル基準をやめて件数基準に変更した（作業依頼者指示） */
/* 折りたたみ時だけ下パディングを+10px（8px→18px）。
   「すべて表示」ボタンは下端基準の絶対配置のため、この分だけ
   3件目の下ボーダー・4件目から離れる（2026-08-27 作業依頼者指摘対応） */
.toc #toc.is-collapsed {
  padding-bottom: 18px;
}

/* 折りたたまない目次（3件以下＝ボタンなし）は、最後の項目の下線と枠の間が
   詰まって見えるため下パディングを 32px（SP は 20px）にする（2026-10-07 作業依頼者指示）。
   展開後（.is-open）はボタンがリスト下に入るので対象外 */
.toc #toc:not(.is-collapsed):not(.is-open) {
  padding-bottom: 32px;
}

.toc #toc.is-collapsed li:nth-child(n + 5) {
  display: none;
}

.toc #toc.is-collapsed li:nth-child(4) {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 90%);
  pointer-events: none; /* 半透明の4件目はクリック不可（展開してから飛ぶ） */
}

/* 「すべて表示 ＋」ボタン（JSが #toc の末尾に挿入する） */
.r-toc-toggle {
  position: absolute;
  left: 50%;
  bottom: 15px;
  z-index: 1;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 7px;
  background: #fff;
  border: 1px solid var(--cs-blue-40);
  border-radius: 40px;
  font-family: inherit;
  font-feature-settings: 'palt' 1;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-text-100);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--hv-dur-color), border-color var(--hv-dur-color), color var(--hv-dur-color);
}

/* 淡い色変化のためワイプではなくフェード */
.r-toc-toggle:hover {
  background: #f0f7fa;
  border-color: var(--hv-hover-text);
  color: var(--hv-hover-text);
}

/* ＋／− アイコンは白い角丸の <rect> を持たない（2026-09-18 デザイナー指摘:
   ホバー時に＋の部分だけ白い四角が残っていた。JS 側の markup から rect を削除し、
   線の色もボタンの文字色に追従させる） */
.r-toc-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

.r-toc-toggle svg line {
  stroke: currentColor;
  transition: stroke var(--hv-dur-color);
}

/* 展開状態: ボタンはリスト下の通常フローに置き、アイコンは＋→−にする
   （＋の縦線を消す。展開時のFigmaデザインは未作成のための暫定表現） */
.toc #toc.is-open .r-toc-toggle {
  position: static;
  transform: none;
  align-self: center;
  margin: 4px 0 8px;
}

.toc #toc.is-open .r-toc-toggle svg line:last-of-type {
  display: none;
}

/* -------------------------------------------------------------------------
   リッチテキスト本文（.m-editor）
   旧CSS（style.css / addition.css）の同名セレクターを後勝ちで上書きする。
   ------------------------------------------------------------------------- */
.m-editor {
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--cs-text-100);
}

/* 本文の地の文だけは文字詰め（palt）を外す（2026-10-01。オリエン資料 P47「1行あたりの文字数は可能な限り40文字以内」）。
   PC の本文は幅 760px・18px・字間 0.06em で、palt があると句読点やかぎ括弧が詰まって1行43字前後（最大45字）入っていた。
   外すと中央値39字・全角だけの行で最大40字になる（実測）。文字の大きさ・幅・字間は変えていない。
   見出し・リード・キャプション・ボタン等は palt のまま（短い文なので詰めた見た目を保つ）。
   吹き出しの文章も 2026-10-20 に外した（先方指摘「句読点やかぎ括弧の前後が詰まって窮屈」。
   地の文と同じ読み物の文章で、会話は「、」「。」「」」が多く詰まりが目立つため）。話し手の名前は palt のまま。
   .m-editor が記事下の部品（担当者・タグ等）まで包む記事があるため、対象は直下の段落と囲みの中の段落に限る */
.m-editor > p,
.m-editor > .frame-block p,
.m-editor > .txt-frame p,
.m-editor .balloon .desc,
.m-editor .popup .desc {
  font-feature-settings: normal;
}

/* ブロック間の余白は「上マージンのみ」に統一する（旧CSSは margin:35px 0）。
   セレクターは旧CSSの `.m-editor>p,...` と同じ形＝同じ詳細度・後勝ち。
   画像だけはエディタ出力のインラインstyle（margin:0 auto 20px）に勝てない
   ため !important を使う（下の「画像」の項を参照） */
.m-editor > p,
.m-editor > ol,
.m-editor > ul,
.m-editor > div,
.m-editor > blockquote,
.m-editor > section,
.m-editor > figure,
.m-editor > iframe,
.m-editor > .art-card-lg,
.m-editor > a.frame-block {
  margin: 40px 0 0;
}

/* 段落の連続は間隔を詰める（Figma 6718:87730「2段落目の上の余白は40pxから24pxに」）。
   他の要素の後に来る段落は 40px に戻る */
.m-editor > p + p {
  margin-top: 24px;
}

.m-editor > h2,
.m-editor .ttl01 {
  margin: 80px 0 0;
}

.m-editor > h3 {
  margin: 56px 0 0;
}

/* 吹き出しの連続は間隔を詰める（会話として続けて読ませる） */
.m-editor > .balloon + .balloon,
.m-editor > .balloon + .popup,
.m-editor > .popup + .balloon,
.m-editor > .popup + .popup {
  margin-top: 24px;
}

/* 先頭要素は上マージンなし。上の .ttl01（0-2-0）に勝てるよう、
   マージン指定の最後で宣言し直す */
.m-editor > *:first-child {
  margin-top: 0;
}

/* 目次プラグインが見出し前に挿入する <a name="chapterN"> アンカー。
   ジャンプ時に見出しが画面上端に張り付かないようにする */
.m-editor > a[name] {
  scroll-margin-top: 60px;
}

/* --- 見出し ---
   旧デザイン: h2は下線＋span内側に水色バー。
   新デザイン: 左に角丸の縦バー（4px・#63b4d3）＋間隔16px（Figma 6718:87727 / SP 6718:86853）
   2026-10-21 先方FB「行頭の｜と文字の間が窮屈」→ デザイナー指示で PC の間隔を 12px → 16px（Figma PC は文字の始まりが x=20）。
   SP の Figma は 12px のままなので、SP は下の 767px 以下で 16px（バー4px＋12px）に戻す */
.m-editor > h2,
.m-editor .ttl01 {
  display: block;
  position: relative;
  padding: 0 4px 2px 20px;   /* 左 = バー4px＋間隔16px */
  border-left: 0;
  border-bottom: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.m-editor > h2::before,
.m-editor .ttl01::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 16px;
  background: var(--cs-bblue-60);   /* bland_blue_60（.r-h2__bar と同色） */
}

.m-editor > h2 > span,
.m-editor .ttl01 > span {
  display: block;
  position: static;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

.m-editor > h2 > span::before,
.m-editor .ttl01 > span::before {
  content: none;
}

/* 旧CSSは見出しspan内の入れ子span/fontを16pxに縮めていた。打ち消す */
.m-editor > h2 > span font,
.m-editor > h2 > span span,
.m-editor .ttl01 > span font,
.m-editor .ttl01 > span span {
  font-size: inherit;
}

/* 旧デザイン: h3はグレーの角丸箱。新デザイン: 素のテキスト見出し（Figma 6718:87728） */
.m-editor > h3 {
  padding: 2px 4px 4px 0;
  background: none;
  border-radius: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* --- ハイライト（蛍光マーカー） ---
   旧記事のマーカー4色は色相を保ったまま speechbubble パレットの 60 番に置き換える
   （2026-09-08 Figma: blue_60 #9bd0e4。旧 #d4f3fa から変更）。
   <mark> は新規記事向けの推奨マークアップ（markBl と同じ見た目）。
   吹き出しの中では吹き出しの色に揃う（下の「吹き出し」の項） */
.m-editor mark,
.m-editor .markBl,
.m-editor .markYw,
.m-editor .markPk,
.m-editor .markGr {
  padding: 0 2px;
  font-weight: 700;
  color: inherit;
}

.m-editor mark,
.m-editor .markBl {
  background-color: #9bd0e4;   /* speechbubble/blue_60 */
}

.m-editor .markYw {
  background-color: #e6d593;   /* speechbubble/yellow_60 */
}

.m-editor .markPk {
  background-color: #ecb5c0;   /* speechbubble/red_60 */
}

.m-editor .markGr {
  background-color: #acd6a0;   /* speechbubble/green_60 */
}

/* 行をまたぐハイライトの右端を揃える（2026-09-18 デザイナー指摘: 行ごとに終わりがバラバラ）。
   インライン要素の背景は文字の終わりまでしか塗れないので、マーカーを含む段落だけ両端揃えにして
   折り返した行の末尾を右端に揃える（日本語は文字間で均等割り付け）。段落の最終行と <br> 直前の
   行は両端揃えの対象外なので、そこだけは文字の終わりで止まる（CSS の仕様上の限界） */
.m-editor :is(p, li, .desc):has(mark, .markBl, .markYw, .markPk, .markGr) {
  text-align: justify;
  text-justify: inter-character;
}

/* --- 注記 --- */
.m-editor .notes {
  font-size: 12px;
  line-height: 2;
  color: var(--cs-gray-60);
}

/* --- 区切り線（addition.css の .m-editor hr を上書き） --- */
.m-editor hr {
  display: block;
  width: 100%;
  height: 1px;
  margin: 40px 0 0;
  border: 0;
  background-color: var(--cs-gray-10);
}

/* --- テキストリンク ---
   旧デザイン: 青文字＋下線。新デザイン（Figma 6718:87740）: 太字＋下線、
   ホバーで #1479a0 になり下線が消える。
   別窓アイコンは旧CSSではapp.jsが付ける .txt-link だけが対象だったが、
   新CSSは target="_blank" 全般に付ける（.txt-link のセレクターは
   旧CSSのスプライト指定に後勝ちするために併記している） */
.m-editor a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

.m-editor a:hover,
.desktop .m-editor a:hover {
  color: var(--cs-teal-70);
  text-decoration: none;
}

.m-editor a[target="_blank"]::after,
.m-editor .txt-link[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 0 -3px 2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.33333 15C3.96667 15 3.65278 14.8694 3.39167 14.6083C3.13056 14.3472 3 14.0333 3 13.6667V4.33333C3 3.96667 3.13056 3.65278 3.39167 3.39167C3.65278 3.13056 3.96667 3 4.33333 3H9V4.33333H4.33333V13.6667H13.6667V9H15V13.6667C15 14.0333 14.8694 14.3472 14.6083 14.6083C14.3472 14.8694 14.0333 15 13.6667 15H4.33333ZM7.46667 11.4667L6.53333 10.5333L12.7333 4.33333H10.3333V3H15V7.66667H13.6667V5.26667L7.46667 11.4667Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.33333 15C3.96667 15 3.65278 14.8694 3.39167 14.6083C3.13056 14.3472 3 14.0333 3 13.6667V4.33333C3 3.96667 3.13056 3.65278 3.39167 3.39167C3.65278 3.13056 3.96667 3 4.33333 3H9V4.33333H4.33333V13.6667H13.6667V9H15V13.6667C15 14.0333 14.8694 14.3472 14.6083 14.6083C14.3472 14.8694 14.0333 15 13.6667 15H4.33333ZM7.46667 11.4667L6.53333 10.5333L12.7333 4.33333H10.3333V3H15V7.66667H13.6667V5.26667L7.46667 11.4667Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 画像を包むリンク・カード型／ボタン型リンクには下線も別窓アイコンも付けない */
.m-editor a:has(img),
.m-editor .btn,
.m-editor .text-banner,
.m-editor .text-img-banner,
.m-editor .frame-block .link-button,
.m-editor .embed-article a,
.m-editor .art-card-lg,
.m-editor .profile__link {
  text-decoration: none;
}

.m-editor a[target="_blank"]:has(img)::after,
.m-editor .art-card-lg[target="_blank"]::after,
.m-editor .text-banner[target="_blank"]::after,
.m-editor .text-img-banner[target="_blank"]::after,
.m-editor .embed-article a[target="_blank"]::after {
  content: none;
}

/* --- リスト --- */
.m-editor ul,
.m-editor ol {
  padding: 0;
  list-style: none;
}

.m-editor li {
  line-height: 1.8;
}

.m-editor li + li,
.m-editor li > ul,
.m-editor li > ol {
  margin-top: 8px;
}

/* 箇条書き（1階層目: 塗り丸 / 2階層目: 白抜き丸。色は bland_blue_60）
   点は1行目のテキスト中央に合わせる（行高1.8の半分 − 点の半径）
   2026-10-21 先方FB「・と文字の間が窮屈」→ デザイナー指示で PC の間隔を 8px → 12px（Figma PC 6718:87731: 点8px・文字 x=20、
   2階層目は点 x=16・文字 x=36）。SP の Figma（6718:86856）は 8px のままなので、767px 以下で戻す */
.m-editor ul li {
  position: relative;
  padding-left: 20px;   /* 点8px＋間隔12px */
}

/* 2階層目の点は 1階層目の文字より 4px 左（Figma: 点 x=16）。親の li の padding 20px から 4px 戻す */
.m-editor ul li > ul {
  margin-left: -4px;
}

.m-editor ul li::before {
  content: '';
  display: block;
  position: absolute;
  top: calc(0.9em - 4px);
  left: 0;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background-color: var(--cs-bblue-60);
}

.m-editor ul ul li::before {
  background: none;
  border: 1px solid var(--cs-bblue-60);
}

/* 番号付きリスト（1. / 2-1. 形式。数字は speechbubble/blue_90 #1479a0）。
   旧CSSのabsolute配置の番号を、inline-block＋ぶら下げインデントに置き換える。
   番号はベースラインを本文と揃え、2桁以上になったらmin-widthを超えて
   自然に広がる（テキストと重ならない） */
.m-editor ol {
  counter-reset: r-ol1;
}

.m-editor ol > li {
  position: static;
  padding-left: 24px;
  text-indent: -24px;
  counter-increment: r-ol1;
}

.m-editor ol li::before {
  counter-increment: none; /* 旧CSSの counter-increment:order を打ち消す */
  content: counter(r-ol1) '.';
  display: inline-block;
  position: static;
  top: auto;
  left: auto;
  min-width: 20px;
  margin-right: 4px;
  font-family: 'Inter', var(--cs-font);   /* Figma の数字は Inter（2026-09-18 デザイナー指示。head-elements で読み込む） */
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-indent: 0;
  color: var(--cs-teal-70);
}

.m-editor ol ol {
  padding-left: 4px;
  counter-reset: r-ol2;
}

.m-editor ol ol > li {
  padding-left: 42px;
  text-indent: -42px;
  counter-increment: r-ol2;
}

.m-editor ol ol li::before {
  content: counter(r-ol1) '-' counter(r-ol2) '.';
  min-width: 38px;
}

/* --- 画像 --- */
.m-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
  border-radius: 8px;
}

/* 本文直下の画像はエディタ出力のインラインstyle（margin:0 auto 20px）を
   打ち消すため !important。ブロック間余白（上40px）に統一する */
.m-editor > img {
  margin: 40px auto 0 !important;
}

/* 本文の写真は最大 640px・中央揃え（2026-10-20 先方FB「本文幅が 760px に広がり、装飾目的の写真で
   文章が分断される感が強い」→ 旧サイトと同じ 640px に。中央揃えは作業依頼者指示）。
   対象は本文の写真だけ（本文直下・段落の中・リンクの中・キャプション付き・囲い線／強調の囲い線の中）。
   吹き出し・プロフィール・リンクカード・バナー等の部品の画像は対象外（.m-editor img 全体にかけると崩れる）。
   640px より小さい画像は元の大きさのまま、SP は本文幅に収まる */
.m-editor > img,
.m-editor > p > img,
.m-editor > p > a > img,
.m-editor > a > img,
.m-editor .caption img,
.m-editor .wp-caption img,
.m-editor figure img,
.m-editor .txt-frame img,
.m-editor .frame-block img {
  max-width: min(100%, 640px);
}

/* --- 画像＋キャプション（旧 .caption / .wp-caption。新規記事は figure でも可） --- */
.m-editor figure,
.m-editor .caption,
.m-editor .wp-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(100%, 640px);   /* 2026-10-20: 箱ごと 640px・中央に寄せ、キャプションの左端を写真の左端に揃える（旧 100%） */
  margin-inline: auto;
  background: none;
  border-radius: 0;
}

.m-editor .caption img,
.m-editor .wp-caption img,
.m-editor figure img {
  margin: 0 auto !important; /* インラインstyleのmarginを打ち消す */
  border-radius: 8px;
}

/* エレメントリスト用プレースホルダー */
.m-editor figure .r-ph,
.m-editor .caption .r-ph {
  aspect-ratio: 712 / 405;
  border-radius: 8px;
}

.m-editor figcaption,
.m-editor .caption .caption-text,
.m-editor .caption .wp-caption-text,
.m-editor .wp-caption .caption-text,
.m-editor .wp-caption .wp-caption-text {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--cs-gray-60);
}

/* --- 囲い線（旧 .txt-frame。Figma 6718:87773 / 87774 / 87790） --- */
.m-editor .txt-frame {
  padding: 28px 32px;
  border: 1px solid var(--cs-bblue-60);
  border-radius: 8px;
}

/* 枠内のブロック要素は12px間隔（旧CSSは25px 0。Figma 6718:87791 の gap 12） */
.m-editor .txt-frame > h2,
.m-editor .txt-frame > h3,
.m-editor .txt-frame > p,
.m-editor .txt-frame > ol,
.m-editor .txt-frame > ul,
.m-editor .txt-frame > div,
.m-editor .txt-frame > blockquote {
  margin: 12px 0 0;
}

.m-editor .txt-frame > *:first-child {
  margin-top: 0;
}

.m-editor .txt-frame img,
.m-editor .txt-frame .r-ph {
  border-radius: 4px;
}

/* --- 引用（blockquote。Figma 6718:87777 / 87778） ---
   旧デザインのスプライト画像の引用符を、新デザインの薄灰色（gray_10）の引用符に差し替える */
.m-editor blockquote {
  position: relative;
  padding: 56px 32px 48px;
  border: 1px solid var(--cs-bblue-60);
  border-radius: 8px;
}

.m-editor blockquote::before,
.m-editor blockquote::after {
  content: '';
  display: block;
  position: absolute;
  width: 18px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 17'%3E%3Cpath fill='%23E3E7E8' d='M6.97091 3.06718C5.46545 3.34997 4.40727 4.43762 3.79636 6.33013C3.49091 7.26551 3.33818 8.19002 3.33818 9.10365C3.33818 9.21241 3.33818 9.3103 3.33818 9.39731C3.36 9.46257 3.38182 9.62572 3.40364 9.88676H6.97091V17H0V10.4415C0 7.22201 0.643636 4.74216 1.93091 3.00192C3.21818 1.26168 4.89818 0.261036 6.97091 0V3.06718ZM18 3.06718C16.8 3.26296 15.8836 3.9373 15.2509 5.09021C14.64 6.24312 14.3345 7.57006 14.3345 9.07102C14.3345 9.20154 14.3345 9.33205 14.3345 9.46257C14.3564 9.59309 14.3891 9.73448 14.4327 9.88676H18V17H10.9964V10.4415C10.9964 7.85285 11.5418 5.54702 12.6327 3.52399C13.7236 1.47921 15.5127 0.304543 18 0V3.06718Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.m-editor blockquote::before {
  top: 31px;
  left: 31px;
  right: auto;
  bottom: auto;
}

.m-editor blockquote::after {
  top: auto;
  left: auto;
  right: 31px;
  bottom: 31px;
  transform: rotate(180deg);
}

/* 枠内の余白（旧CSSの25px 0を上書き） */
.m-editor blockquote > h2,
.m-editor blockquote > h3,
.m-editor blockquote > p,
.m-editor blockquote > ol,
.m-editor blockquote > ul,
.m-editor blockquote > div {
  margin: 16px 0 0;
}

.m-editor blockquote > *:first-child {
  margin-top: 0;
}

.m-editor blockquote > *:last-child {
  margin-bottom: 0;
}

/* 引用元付き（末尾に <cite> を置くと下の引用符を消して出典を右寄せする） */
.m-editor blockquote:has(cite) {
  padding-bottom: 24px;
}

.m-editor blockquote:has(cite)::after {
  content: none;
}

.m-editor blockquote cite {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.m-editor blockquote cite a[target="_blank"]::after {
  margin-bottom: -4px;
}

/* --- 強調デザインの囲い線（旧 .frame-block。Figma 6718:87798） ---
   Figmaの「濃紺2pxの箱＋下部の濃紺ボタン」を、旧HTML（1つの箱の末尾に .link-button）
   のまま再現する。ボタンはネガティブマージンで箱の端まで広げる */
.m-editor .frame-block {
  position: relative;   /* 箱全体をリンクにする .link-button::before の基準（2026-09-18） */
  overflow: hidden;
  padding: 28px 32px 0;
  border: 2px solid var(--cs-blue-90);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

/* 箱全体を <a class="frame-block"> にする（2026-09-18 作業依頼者指示。中のボタンは <span class="link-button">
   ＝ a の入れ子を避ける。マークアップ規約は element_list.mtml）。
   旧記事の <div class="frame-block"> ＋ <a class="link-button"> も、下の .link-button::before の
   透明レイヤーで箱全体が押せる。
   ホバー（箱のどこでも）: 枠線と帯がホバー色になり、白丸の矢印がスワップする（従来のボタンのホバーと同じ）。
   ※ @media (hover: hover) で囲まない。RDP 環境の Chrome ではこの条件が偽になり、規則ごと無効に
     なった（2026-09-18 に検証環境で「反映されていない」と報告された原因。サイト内の他のホバーも
     media query を使っていないので、ここだけ囲む理由もない） */
.m-editor a.frame-block {
  display: block;
  color: inherit;
  font-weight: inherit;   /* .m-editor a { font-weight:700 } を打ち消す（本文は通常ウェイト） */
  text-decoration: none;
}

.m-editor a.frame-block:hover,
.desktop .m-editor a.frame-block:hover {
  color: inherit;   /* .m-editor a:hover の文字色変化は箱には適用しない */
}

.m-editor a.frame-block[target="_blank"]::after {
  content: none;   /* 別窓アイコンは箱の末尾に付けない（矢印は .link-button 側） */
}

.m-editor a.frame-block:hover,
.m-editor .frame-block:has(.link-button:hover) {
  border-color: var(--hv-hover-text);
}

.m-editor a.frame-block:hover .link-button {
  background-color: var(--hv-hover-text);
}

.m-editor .frame-block > h2,
.m-editor .frame-block > h3,
.m-editor .frame-block > p,
.m-editor .frame-block > ol,
.m-editor .frame-block > ul,
.m-editor .frame-block > blockquote {
  margin: 16px 0 0;
}

.m-editor .frame-block > *:first-child {
  margin-top: 0;
}

/* 囲い内のタイトル（.ttl01が付いていても素のタイトル扱いにする） */
.m-editor .frame-block h2,
.m-editor .frame-block .ttl01 {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cs-blue-90);
}

/* 囲い内の見出しにはバー（::before）も出さない */
.m-editor .frame-block h2::before,
.m-editor .frame-block .ttl01::before {
  content: none;
}

.m-editor .frame-block > h2:first-child,
.m-editor .frame-block > .ttl01:first-child {
  margin-top: 0;
}

.m-editor .frame-block .link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin: 28px -32px 0;
  padding: 8px 16px;
  background-color: var(--cs-blue-90);
  border-top: 0;
  border-radius: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.desktop .m-editor .frame-block .link-button:hover,
.m-editor .frame-block .link-button:hover {
  background-color: var(--hv-hover-text);
  color: #fff;
}

/* 旧CSSのスプライト矢印（::before）を消し、新デザインの白丸矢印（::after）に。
   別窓（target="_blank"）でも矢印は同じ */
/* ::before は旧CSSではスプライト矢印だった。2026-09-18 から「箱全体をクリック可能にする透明レイヤー」
   として使う（旧CSSの寸法・背景は明示的に打ち消す）。
   ※当初この直前のブロックに同じ定義を書いていたが、ここにあった `content: none` に後勝ちで
   打ち消されて透明レイヤーが生成されず、箱全体クリックが効いていなかった（2026-09-18 実機で判明） */
.m-editor .frame-block .link-button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  transform: none;
}

/* 白丸と矢印を分けて持つ（2026-09-09）。丸＝要素の background-color ＋ border-radius、
   矢印＝background-image。1枚のSVGに焼き込むとホバーのスライドスワップで丸ごと動いて
   しまうため（CTAボタンで同じ不具合を2026-09-04に修正済み）。
   丸の外に出た矢印は border-radius が背景を切るので自動的に隠れる。
   --hv-swap-dist は矢印を送る距離＝丸の直径。画像が枠と同寸のため
   background-position の % は動かず、px で送る必要がある（SPのサイズ上書き側でも再指定） */
.m-editor .frame-block .link-button::after,
.m-editor .frame-block .link-button[target="_blank"]::after,
.m-editor .text-banner span::after,
.m-editor .text-img-banner span::after {
  --hv-swap-dist: 24px;
  content: '';
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M13 16.3L17 12.3L13 8.3' stroke='%2300425C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 12.3H7' stroke='%2300425C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  -webkit-mask: none;
  mask: none;
  vertical-align: middle;
}

/* --- 記事内ボタン（旧 .btn。Figma 6718:87808）: 濃紺のピル＋右端の白丸矢印 --- */
/* 記事内ボタンはCTAボタン（.r-btn-pill）と同じ部品なので、寸法もホバーも同一にする
   （2026-09-09 作業依頼者指示「この連載をすべて見るのリンクと同じようにして」）。
   面＝3倍幅グラデを右から左へスライドさせるワイプ／矢印＝スライドスワップ／
   縁を光の弧が一周。旧HTMLに .acr-rim の span を挟めないので弧は ::before で描く */
.m-editor .btn {
  position: relative;   /* ::before（光の弧）の基準 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: fit-content;
  min-width: 0;
  margin: 40px auto 0;
  padding: 6px 6px 6px 24px;
  border: 0;
  border-radius: 80px;
  box-shadow: none;
  color: #fff;
  line-height: 1.8;
  text-align: left;
  text-decoration: none;
  background: linear-gradient(90deg,
    var(--hv-hover-text) 0%, var(--hv-hover-text) 33.33%,
    #00425c 66.66%, #00425c 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: background-position var(--hv-dur-wipe-button) var(--hv-ease-wipe);
}

.m-editor .btn span {
  display: inline-block;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.desktop .m-editor .btn:hover,
.m-editor .btn:hover {
  background-position: 0 0;
  color: #fff;
}

/* 光の弧（縁を一周する演出）。共通の .acr-rim--arc と同じ仕組みを ::before で再現する。
   padding分(2px)を残して中央をmaskでくり抜いた輪郭リング。border-radius は親から継承。
   旧CSSがここにスプライト矢印を描いていたので、寸法・背景・maskは明示的に打ち消す */
.m-editor .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transform: none;
  z-index: 2;
  background: conic-gradient(from var(--hv-arc) at 50% 50%,
    rgba(255, 255, 255, 0) 0deg 300deg,
    rgba(255, 255, 255, .85) 330deg,
    rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* 白丸と矢印を分けて持つ（2026-09-09）。丸＝要素の background-color ＋ border-radius、
   矢印＝background-image。1枚のSVGに焼き込むとホバーのスライドスワップで丸ごと動いて
   しまうため（CTAボタンで同じ不具合を2026-09-04に修正済み）。
   丸の外に出た矢印は border-radius が背景を切るので自動的に隠れる。
   --hv-swap-dist は矢印を送る距離＝丸の直径。画像が枠と同寸のため
   background-position の % は動かず、px で送る必要がある（SPのサイズ上書き側でも再指定） */
.m-editor .btn::after,
.m-editor .btn[target="_blank"]::after {
  --hv-swap-dist: 44px;
  content: '';
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none'%3E%3Cpath d='M23 28L29 22L23 16' stroke='%2300425C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 22H16' stroke='%2300425C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  -webkit-mask: none;
  mask: none;
}

/* --- テキストバナー（旧 .text-banner。Figma 6718:87815）: 濃紺の帯＋白文字＋白丸矢印 --- */
.m-editor .text-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 40px 0 0;
  padding: 8px 16px;
  background-color: var(--cs-blue-90);
  border: 2px solid var(--cs-blue-90);
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.desktop .m-editor .text-banner:hover,
.m-editor .text-banner:hover {
  background-color: var(--hv-hover-text);
  border-color: var(--hv-hover-text);
  color: #fff;
}

.m-editor .text-banner span,
.m-editor .text-img-banner span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

/* 画像バナー（旧 .text-img-banner。Figma 6718:87821）: 背景画像の上に濃紺70%の幕を敷き、
   白文字＋白丸矢印。背景画像はエディタがインラインstyleで指定する構造を維持する */
.m-editor .text-img-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 120px;
  margin: 40px 0 0;
  padding: 8px 16px;
  border: 2px solid var(--cs-blue-90);
  border-radius: 8px;
  background-color: var(--cs-blue-90);
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
}

.m-editor .text-img-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 63, 77, 0.7);
  transition: background-color 0.2s ease;
}

.desktop .m-editor .text-img-banner:hover,
.m-editor .text-img-banner:hover {
  color: #fff;
}

.m-editor .text-img-banner:hover::before {
  background: rgba(0, 63, 77, 0.55);
}

.m-editor .text-img-banner span {
  position: relative;
  z-index: 1;
}

/* --- YouTube埋め込み（旧 .youtube） ---
   旧CSSのpadding-topハックを aspect-ratio に置き換える */
.m-editor .youtube {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  aspect-ratio: 16 / 9;
  background: var(--cs-text-100);
  border-radius: 8px;
}

.m-editor .youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- リンクカード小（旧 .embed-article。Figma 6718:87832 / SP 6718:86968） ---
   濃紺2pxの白カード。旧HTMLは日付→タイトルの順なので、flex の column-reverse で
   タイトル→日付の順に見せる。タイトル末尾に丸矢印、日付の前に時計アイコン */
.m-editor .embed-article {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 40px 0 0;
  padding: 28px 32px;
  background-color: #fff;
  border: 2px solid var(--cs-blue-90);
  border-radius: 8px;
}

.m-editor .embed-article .pic {
  flex: none;
  width: 180px;
}

.m-editor .embed-article .pic a img {
  display: block;   /* インライン由来の下側の隙間を消す（サムネのワイプを画像の高さに一致させるため） */
  margin: 0;
  border: 1px solid var(--cs-gray-10);
  border-radius: 4px;
  aspect-ratio: 180 / 101;
  object-fit: cover;
  width: 100%;
}

.m-editor .embed-article .desc {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-left: 0;
  padding-left: 0;
}

/* タイトルの下線（1px スライドイン）を行順に流すには .entry-title が
   display:inline でなければならない。flex の子は inline がblock化されるため、
   flex での並べ替え（DOM順が「日付→タイトル」なのを column-reverse で逆にしていた）
   をやめ、日付を絶対配置にしてタイトルを通常のインライン内容に戻した（2026-09-09）。
   下パディングは日付1行分の場所（12px×1.8≒22px ＋ 旧gap 4px）を確保するもの。
   日付は固定の短い文字列で折り返さないため、この方式で崩れない */
.m-editor .embed-article .desc a {
  position: relative;
  display: block;
  padding-bottom: 26px;
  color: inherit;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none;
}

/* ホバーの起点はカード全体（.embed-article）。サムネイルと本文が別リンクなので、
   リンク単位で拾うと「画像を触ったら画像だけ動く」ことになる（2026-09-09 修正）。
   カード全体をクリック可能にするには旧HTMLの構造を変える必要があるため、
   ここではホバーの見え方だけをカード全体で揃えている */
.desktop .m-editor .embed-article:hover .desc a,
.m-editor .embed-article:hover .desc a {
  color: var(--hv-hover-text);
}

.m-editor .embed-article .entry-date {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
}

.m-editor .embed-article .entry-date::before {
  content: '';
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Ccircle cx='7' cy='7' r='5.625' stroke='%2300425C'/%3E%3Cpath d='M7 2.9375V7.04861L9.625 8.75' stroke='%2300425C' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* タイトル: 共通の .u-underline と同じ1px下線スライドイン。旧HTMLに
   <span class="u-underline"> を挟めないので、同じ宣言をこのクラスに直接持たせる */
.m-editor .embed-article .entry-title {
  display: inline;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  background-image: linear-gradient(var(--hv-hover-underline), var(--hv-hover-underline));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size var(--hv-dur-underline-title) var(--hv-ease-wipe), color var(--hv-dur-color);
}

.m-editor .embed-article:hover .entry-title {
  background-size: 100% 1px;
}

/* タイトル文末の丸矢印（新デザイン。旧HTMLにsvgが無いのでCSSで付ける）。
   丸＝background-color / 矢印＝background-image と最初から分かれているので、
   ホバーでは矢印レイヤーの位置だけを動かせばよい（--hv-swap-dist＝丸の直径） */
.m-editor .embed-article .entry-title::after {
  --hv-swap-dist: 24px;
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 0 -6px 8px;
  border-radius: 50%;
  transition: background-color var(--hv-dur-color);
  background: var(--cs-blue-90) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M13 16.3L17 12.3L13 8.3' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 12.3H7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* --- リンクカード大（.art-card-lg。新デザインで追加された要素で旧記事に対応物は無い。
   新規記事でこのクラスをそのまま使う。Figma 6718:87846 / SP 6718:87000） --- */
.art-card-lg {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: #fff;
  border: 2px solid var(--cs-blue-90);
  border-radius: 8px;
  text-decoration: none;
}

.art-card-lg__thumb .r-ph,
.art-card-lg__thumb img {
  aspect-ratio: 1200 / 630;   /* 2026-09-28: アイキャッチ（＝OGP 1200×630 で登録）の比率にそろえる（SPEC 第12章 #23 をベイジ判断で決定） */
  border: 1px solid var(--cs-gray-10);
  border-radius: 4px;
  object-fit: cover;
}

/* 見出しリンク（テキスト＋丸矢印）。テキストは <span class="u-underline"> で包み、
   ホバーで1px下線が流れる（確定仕様 2026-09-04）。
   丸矢印はタイトルの文末に添える（2026-09-18 デザイナー指示 No.17。以前は flex で右端に縦中央固定）。
   「矢印だけが次の行に落ちる」のを防ぐため、element_list.mtml のマークアップ規約では
   タイトルの最後の1文字と矢印を .art-card-lg__tail（nowrap）で束ねる（連載カードと同じ手法）。
   束ねていない記事でも矢印は文末に付く（幅によっては矢印だけが次行に落ちることがある） */
.art-card-lg__title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.art-card-lg__tail {
  white-space: nowrap;
}

.art-card-lg__title .r-arrow-circle {
  margin-left: 8px;
  vertical-align: -3px;
}

.art-card-lg__desc {
  margin-top: -4px;
  font-size: 14px;
  font-weight: 400; /* 本文リンク共通の太字（.m-editor a）を打ち消す */
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--cs-gray-60);
}

/* カード全体がリンクのため、本文リンク共通のホバー色変化は効かせない */
.m-editor .art-card-lg:hover {
  color: inherit;
}

/* --- 吹き出し（旧 .balloon / .popup。Figma 6718:87858 / SP 6718:87012） ---
   旧記事は話者ごとに色×左右で会話を区別している。色分けは維持し、
   各色を speechbubble パレット（20: 本体 / 60: 中のマーカー / 90: 名前）に置き換える。
   5色: blue / yellow / gray / green / red（旧 pink も同じ）。
   旧 white は新デザインに無いため gray と同じ見た目にする。
   （2026-09-16 デザイン更新で brown / purple の吹き出しが無くなったため削除。
     管理画面の色プルダウンにも無い色なので、万一クラスが残っていても
     色クラスなし＝gray の見た目にフォールバックする）
   色は --blq-bg / --blq-mark 変数に集約し、本体・しっぽ・マーカーで共用する。
   名前の文字色は全色共通で text_black_100（2026-09-29 デザイナー指示。旧: 色ごとの speechbubble 90） */
.m-editor .balloon,
.m-editor .popup {
  --blq-bg: #e7e8e9;     /* 色クラスなし／gray／white: speechbubble/gray_20 */
  --blq-mark: #c2c8ce;   /* gray_60 */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.m-editor .balloon.blue,
.m-editor .popup.blue {
  --blq-bg: #d8e9f0;
  --blq-mark: #9bd0e4;
}

.m-editor .balloon.yellow,
.m-editor .popup.yellow {
  --blq-bg: #f5efd7;
  --blq-mark: #e6d593;
}

.m-editor .balloon.green,
.m-editor .popup.green {
  --blq-bg: #d8e8d8;
  --blq-mark: #acd6a0;
}

.m-editor .balloon.pink,
.m-editor .balloon.red,
.m-editor .popup.pink,
.m-editor .popup.red {
  --blq-bg: #f2dee1;
  --blq-mark: #ecb5c0;
}

/* 左右の向き。反対側は顔写真列＋間隔の分（80px＋16px）空ける
   （Figma: 760px 中 顔67＋間隔16＋本体594＋余白83） */
.m-editor .balloon.left,
.m-editor .popup.left {
  padding-right: 0;
  flex-direction: row;
}

.m-editor .balloon.right,
.m-editor .popup.right {
  padding-left: 0;
  flex-direction: row-reverse;
}

/* 顔写真＋名前
   order: -1 で、HTML の書き順にかかわらず顔写真を並びの先頭にする（左＝左端、右＝row-reverse で右端、SP＝上）。
   WordPress 時代の記事は右向きの吹き出しを「.desc → .pic」の順で書いており、row-reverse だけだと
   顔写真が左・本体が右に入れ替わって崩れていた（2026-10-20 先方FB。例: articles/p8964.html） */
.m-editor .balloon .pic,
.m-editor .popup .pic {
  order: -1;
  flex: none;
  flex-basis: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 80px;
  margin-bottom: 0;
}

.m-editor .balloon .pic img,
.m-editor .popup .pic img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.m-editor .balloon .name,
.m-editor .popup .name {
  width: 100%;
  margin-top: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #141c1f;   /* Figma: regular/text_black_100（全色共通） */
  text-align: center;
}

/* 旧CSSのSP用 name余白を打ち消す（詳細度0-5-0に合わせる） */
.m-editor .balloon.left .pic .name,
.m-editor .balloon.right .pic .name,
.m-editor .popup.left .pic .name,
.m-editor .popup.right .pic .name {
  margin: 0;
}

/* 本体 */
.m-editor .balloon .desc,
.m-editor .popup .desc {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 20px 32px;
  border-radius: 8px;
  background-color: var(--blq-bg);
}

/* 旧CSSの色別指定（.balloon.blue .desc ＝ 詳細度0-4-0）は上の基本ルール
   （0-3-0）より強いので、同じ詳細度で --blq-bg を当て直す */
.m-editor .balloon.blue .desc,
.m-editor .balloon.yellow .desc,
.m-editor .balloon.pink .desc,
.m-editor .balloon.red .desc,
.m-editor .balloon.green .desc,
.m-editor .balloon.gray .desc,
.m-editor .balloon.white .desc,
.m-editor .popup.blue .desc,
.m-editor .popup.yellow .desc,
.m-editor .popup.pink .desc,
.m-editor .popup.red .desc,
.m-editor .popup.green .desc,
.m-editor .popup.gray .desc,
.m-editor .popup.white .desc {
  background-color: var(--blq-bg);
  border: 0;
}

.m-editor .balloon.left .desc,
.m-editor .popup.left .desc {
  margin-left: 0;
  margin-right: 96px;
}

.m-editor .balloon.right .desc,
.m-editor .popup.right .desc {
  margin-right: 0;
  margin-left: 96px;
}

.m-editor .balloon .desc p,
.m-editor .popup .desc p {
  margin: 0;
}

.m-editor .balloon .desc p + p,
.m-editor .popup .desc p + p {
  margin-top: 12px;
}

/* 吹き出し内のマーカー（mark / .markBl）は吹き出しの色に揃える（Figma 6718:87868 等）。
   markYw 等で色を明示した場合はそのまま */
.m-editor .balloon .desc mark,
.m-editor .balloon .desc .markBl,
.m-editor .popup .desc mark,
.m-editor .popup .desc .markBl {
  background-color: var(--blq-mark);
}

/* しっぽ: 旧CSSのborder細工の二重三角（::before/::after）をやめて、
   ::before 1個をclip-pathの三角に作り替える。::afterは出さない */
.m-editor .balloon.left .desc::after,
.m-editor .balloon.right .desc::after,
.m-editor .popup.left .desc::after,
.m-editor .popup.right .desc::after {
  content: none;
}

.m-editor .balloon.left .desc::before,
.m-editor .balloon.right .desc::before,
.m-editor .popup.left .desc::before,
.m-editor .popup.right .desc::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: auto;
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  background-color: var(--blq-bg);
}

.m-editor .balloon.left .desc::before,
.m-editor .popup.left .desc::before {
  left: -8px;
  right: auto;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.m-editor .balloon.right .desc::before,
.m-editor .popup.right .desc::before {
  left: auto;
  right: -8px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* --- 執筆者プロフィール（旧 .profile。中身は .pic > img と .desc > dt/dd。Figma 6718:88022）
   dd.profile__role（肩書）と a.profile__link（プロフィールを見る）は新設・任意 --- */
.m-editor .profile {
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--cs-bblue-60);
  border-radius: 8px;
}

.m-editor .profile .pic {
  float: left;
}

.m-editor .profile .pic img {
  width: 80px;
  height: 80px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.m-editor .profile .desc {
  margin: 0;
}

.m-editor .profile .desc dt {
  margin: 10px 0 0 96px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.m-editor .profile .desc dd {
  clear: both;
  margin: 0;
  padding-top: 16px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* 肩書は名前の直下（顔写真の横）に置く */
.m-editor .profile .desc dd.profile__role {
  clear: none;
  margin-left: 96px;
  padding-top: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--cs-gray-60);
}

.m-editor .profile .desc dd + dd {
  padding-top: 8px;
}

.m-editor .profile .desc dd.profile__role + dd {
  padding-top: 16px;
}

/* 見出しリンク（テキスト＋丸矢印）。テキストは <span class="u-underline"> で包み、
   ホバーで1px下線が流れる（確定仕様 2026-09-04）。下線が行順に流れる条件が
   display:inline のため、flexの直接の子にはせず .u-underline-wrap を挟む */
.m-editor .profile__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-decoration: none;
}

/* プロフィール一覧（複数人。2026-09-08 新設。Figma 6718:87675 / SP 6718:86799）:
   1つの枠の中に .profile を縦に並べる。中の .profile は枠なし・小さめ */
.m-editor .profile-list {
  padding: 28px 32px;
  border: 1px solid var(--cs-bblue-60);
  border-radius: 8px;
}

.m-editor .profile-list__title {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
}

.m-editor .profile-list .profile {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.m-editor .profile-list .profile + .profile {
  margin-top: 32px;
}

.m-editor .profile-list .profile .pic img {
  width: 64px;
  height: 64px;
}

.m-editor .profile-list .profile .desc dt {
  margin: 4px 0 0 80px;
  font-size: 18px;
}

.m-editor .profile-list .profile .desc dd,
.m-editor .profile-list .profile .desc dd.profile__role,
.m-editor .profile-list .profile .desc dd.profile__role + dd {
  clear: none;
  margin-left: 80px;
  padding-top: 4px;
  font-size: 14px;
  line-height: 2;
}

.m-editor .profile-list .profile .desc dd.profile__role {
  padding-top: 0;
  line-height: 1.8;
}

/* --- 手書き風の区切り線（波線。新デザインで追加された要素。Figma 6718:88036） --- */
.art-deco svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- オフショット（Figma PC 6718:88039 / SP 6718:87201） ---
   「オフショット」見出し付きの枠（1px #63b4d3・角丸8px）。
   送りボタンは大きい画像（ステージ）の左右端に半分掛かる濃紺の丸（38px）。
   SPではサムネイル列が横スクロールになり、送りボタンはその列の左右端に載る */
.art-offshot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 32px;
  border: 1px solid var(--cs-bblue-60);
  border-radius: 8px;
}

.art-offshot__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
}

.art-offshot__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-offshot__stage {
  position: relative;
}

/* 大きい画像は枠（696:401）を固定したまま、写真の全体を収める（contain）。
   以前は cover で、比率の違う写真の上下／左右が切れていた（2026-10-20 先方指摘）。
   余白は背景の gray-10 で埋まる。枠の高さは変わらないので、切り替えても送りボタン・
   キャプションの位置は動かない。サムネイルは小さいので cover のまま */
.art-offshot__stage .r-ph,
.art-offshot__stage img {
  display: block;
  width: 100%;
  aspect-ratio: 696 / 401;
  border-radius: 4px;
  object-fit: contain;
  background: var(--cs-gray-10);
  color: var(--cs-gray-60);
  font-size: 10px;
}

/* キャプションが空でも1行分（line-height 2 ＝ 2em）の高さを確保する。画像を切り替えたときに
   キャプションの有無でサムネイル列が上下にガクッと動かないように（2026-09-25 作業依頼者指摘）。
   2行以上のキャプションはその分だけ高くなる */
.art-offshot__caption {
  font-size: 12px;
  line-height: 2;
  min-height: 2em;
  letter-spacing: 0.06em;
  color: var(--cs-gray-60);
}

/* 6枚以上はサムネイル列を横スクロールにする（2026-09-30 枚数上限なしに変更。
   5枚までははみ出さないのでスクロールバーは出ない）。選択中のサムネイルは
   送りボタンで切り替えたときに JS が見える位置へスクロールする */
.art-offshot__strip {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

/* マウスで列を掴んで横に動かせる（entry.mtml 末尾の JS。はみ出しているときだけ
   is-scrollable が付く。2026-09-30） */
.art-offshot__strip.is-scrollable {
  cursor: grab;
}

.art-offshot__strip.is-dragging,
.art-offshot__strip.is-dragging .art-offshot__thumb {
  cursor: grabbing;
  user-select: none;
}

.art-offshot__thumbs {
  display: flex;
  gap: 4px;
}

/* 1枚分の幅は「5枚で列が埋まる幅」に固定（2〜4枚のときに1枚ずつが横に伸びないよう
   flex:1 をやめた。2026-09-25 記事ページのオフショット実装時）。6枚目以降は列の外に続き、
   上の横スクロールで見せる */
.art-offshot__thumb {
  flex: 0 0 calc((100% - 16px) / 5);
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.art-offshot__thumb .r-ph,
.art-offshot__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 140 / 79;
  border: 2px solid transparent;
  border-radius: 4px;
  object-fit: cover;
  background: var(--cs-gray-10);
  color: var(--cs-gray-60);
  font-size: 10px;
}

.art-offshot__thumb.is-active .r-ph,
.art-offshot__thumb.is-active img {
  border-color: var(--cs-blue-90);
}

/* 送りボタン（.art-offshot__stage の子）: PCはステージ（大きい画像）の縦中央・左右端に
   半分掛ける（38pxの丸がステージの縁を17pxはみ出す＝Figma x=15）。
   SPも同じ位置（丸を28pxにして縁に中心を置く。下の SP ブロック・2026-09-25 に PC と統一） */
.art-offshot__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity var(--hv-dur-color);
}

/* ホバーは他の丸矢印（見出しリンク）と同じ「円の地色がホバー色に変わり、矢印がスライドスワップ」
   （2026-09-18 デザイナー指示。以前は opacity のフェードだけだった。<button> なので
   a:hover の共通規則が当たらず、ここで同じ挙動を与える） */
.art-offshot__nav:hover .r-arrow-circle {
  background-color: var(--hv-hover-text);
}

/* 矢印は ::before が translateX で「進む向きに抜けて反対側から戻る」。--prev は要素ごと
   180° 回転しているので、同じ keyframes で自動的に「左へ抜けて右から戻る」になる。
   ※ @media (hover: hover) で囲まない（上の強調囲い線と同じ理由。RDP の Chrome で無効になった） */
.art-offshot__nav:hover .r-arrow-circle::before {
  animation: hv-arrow-swap .4s ease forwards;
}

.art-offshot__nav--prev {
  left: -17px;
}

.art-offshot__nav--next {
  right: -17px;
}

/* --- この記事のタグ（Figma 6718:88062 / SP 6718:87228）: ラベル＋淡色の箱に白いピル ---
   clear: 本文に Embedly のカードがあると、Embedly が本文の末尾に float の共有アイコン（.embd-*）を足し、
   本文の下へはみ出す。その横に押し込まれてタグ欄の幅が 0 近くになり、SP で横にはみ出していた（2026-11-04） */
.art-tags {
  clear: both;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-tags__label,
.art-share__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.art-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  background: var(--cs-gray-blue-10);
  border-radius: 8px;
}

.art-tags a {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  background: #fff;
  border: 1px solid var(--cs-blue-40);
  border-radius: 40px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background var(--hv-dur-color), border-color var(--hv-dur-color), color var(--hv-dur-color);
}

.art-tags a:hover {
  background: #f0f7fa;
  border-color: var(--hv-hover-text);
  color: var(--hv-hover-text);
}

/* --- この記事を共有（Figma 6718:88079 / SP 6718:87245） --- */
.art-share {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.art-share__list {
  display: flex;
  gap: 8px;
}

/* コピーしたことを知らせる表示（2026-10-01 追加。記事ページの JS が body 直下に作る。
   「リンクをコピー」と、OS の共有シートが無いブラウザでの「記事を共有」で出る）。
   画面下中央に2秒。白文字 × #00425c（コントラスト 10.86:1） */
.art-share__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  margin: 0;
  padding: 10px 20px;
  background: var(--cs-blue-90);
  border-radius: 8px;
  color: #fff;
  font-family: var(--cs-font);   /* body 直下に置くので旧 CSS の書体にならないよう指定 */
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.art-share__toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .art-share__toast,
  .art-share__toast.is-show {
    transition: none;
  }
}

.art-share__btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--cs-blue-40);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: background var(--hv-dur-color), border-color var(--hv-dur-color);
}

.art-share__btn:hover {
  background: #f0f7fa;
  border-color: var(--hv-hover-text);
}

.art-share__btn svg,
.art-share__btn img {
  width: 22px;
  height: 24px;
  object-fit: contain;
}

/* --- 担当スタッフ（Figma 6718:88116 / SP 6718:87282） --- */
.art-staff {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--cs-blue-40);
}

.art-staff__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

.art-staff__sec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.art-staff__role {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
}

.art-staff__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* 1役割に複数人（2026-09-30）: 同じ役割のカードは縦に積み、間を 16px（SP 12px）あける */
.art-staff__item + .art-staff__item {
  margin-top: 16px;
}

.art-staff__item .r-ph,
.art-staff__item img {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cs-gray-10);
  object-fit: cover;
}

.art-staff__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 見出しリンク（テキスト＋丸矢印）。テキストは <span class="u-underline"> で包み、
   ホバーで1px下線が流れる（確定仕様 2026-09-04）。下線が行順に流れる条件が
   display:inline のため、flexの直接の子にはせず .u-underline-wrap を挟む */
.art-staff__name,
.art-staff__name a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-decoration: none;
}

/* ホバーの起点は担当者1人分の枠（.art-staff__item に u-hover-parent を付与）。
   名前だけがリンクなので、リンク単位で拾うと写真や紹介文の上では何も起きない
   （2026-09-09 修正）。下線・矢印スワップ・丸の地色は共通の .u-hover-parent の
   規則がまとめて拾うため、ここは名前リンクを直接ホバーしたときの色だけを持つ */
.art-staff__name a:hover {
  color: var(--hv-hover-text);
}

.art-staff__title {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--cs-gray-60);
}

.art-staff__bio {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--cs-gray-60);
}

/* -------------------------------------------------------------------------
   パンくず（Figma PC 6718:88155 / SP 6718:87321）: 文字・矢印とも bland_blue_90
   ------------------------------------------------------------------------- */
.r-breadcrumb {
  padding: 24px var(--cs-gutter);
}

.r-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* 記事詳細のパンくずは、下の記事下ブロックのコンテナ幅（1008px）に左端を揃える。
   一覧系ページの白パネル内パンくは（--pagehead）はパネル側で位置を決めているので除外する */
.r-breadcrumb:not(.r-breadcrumb--pagehead) ol {
  width: 100%;
  max-width: 1008px;
  margin: 0 auto;
}

/* 長い記事タイトルが折り返したとき、区切りの矢印が複数行の中央に来ないよう1行目にそろえる
   （align-items: flex-start ＋ 矢印の margin-top 6px ＝ 行の高さ 24px と矢印 12px の差の半分。2026-10-01） */
.r-breadcrumb li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
}

.r-breadcrumb li + li::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 10L8 6L4 2' fill='none' stroke='%2300425c'/%3E%3C/svg%3E") center / contain no-repeat;
}

.r-breadcrumb a {
  transition: color 0.2s ease;
}

.r-breadcrumb a:hover {
  color: var(--hv-hover-text);
}

/* -------------------------------------------------------------------------
   記事下の関連ブロック（blockSeries。Figma PC 6718:88163〜88248 / SP 6718:87329）
   2026-09-08: 四隅のカギ括弧飾り（.r-series-deco）は廃止。各ブロックは
   上100px（SP 64px）の間隔で連続し、最後のブロックだけ下100px（SP 56px）
   ------------------------------------------------------------------------- */
.r-series {
  padding: 100px var(--cs-gutter) 0;
}

/* 最後のブロック。下端＝フッター上端になるようFigmaどおり100px空ける */
.r-series--info {
  padding-bottom: 100px;
}

.r-series__container {
  width: 100%;
  max-width: 1008px;   /* Figma: 1196px の内側（左右94px）= 1008px */
  margin: 0 auto;
}

/* 見出し（h2_top_PC）: 28px ＋ 12px 下に 2px の水色ライン（角丸）。説明文は廃止 */
.r-series__head {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cs-bblue-60);
}

.r-series__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* タグ見出し（# ＋ タグ名）。上56px・下24px */
.r-series__tag {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 56px 4px 4px 0;
  font-weight: 700;
}

.r-series__tag-mark {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.r-series__tag-text {
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.r-series__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 48px;
}

.r-series__list--col4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 40px;
  padding-top: 20px;   /* タグ見出し下4px ＋ 20px = 24px */
}

.r-series__list--col2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}

.r-series__btn-wrap {
  display: flex;
  justify-content: center;
  padding-top: 56px;
}

/* --- 記事カード（link-card）: サムネ → メタ行（バッジ＋日付）→ タイトル → 連載名 --- */
.s-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;   /* グリッド項目の min-width:auto を切る。連載名（nowrap）でカードが列幅を超えて横スクロールが出ないように（2026-09-18） */
  text-decoration: none;
}

.s-card__blk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.s-card__thumb .r-ph,
.s-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;   /* Figma 252×132 ≒ OGP比率 */
  border: 1px solid var(--cs-gray-10);
  border-radius: 4px;
  object-fit: cover;
}

.s-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.s-card__date {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
  white-space: nowrap;
}

.s-card__date::before {
  content: '';
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Ccircle cx='7' cy='7' r='5.625' stroke='%2300425C'/%3E%3Cpath d='M7 2.9375V7.04861L9.625 8.75' stroke='%2300425C' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* タイトルは3行で省略し、テキストは <span class="u-underline"> で包んでホバー時に下線が流れる
   （2026-09-18 デザイナー指摘: 記事ページのカードだけ下線が無く、省略もされていなかった。
   一覧系の記事カード .r-article-card__title と同じ扱いにする） */
.s-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  transition: color var(--hv-dur-color);
  padding-bottom: 2px; /* 最終行の下線が overflow:hidden に切られないように（.r-article-card__title と同じ。2026-10-02） */
}

.s-card__title .u-underline {
  transition-duration: var(--hv-dur-underline-title), var(--hv-dur-color);
}

.s-card:hover .s-card__title,
.s-card:hover .s-card__serial-title,
.s-card:hover .s-card__media-title {
  color: var(--hv-hover-text);
}

/* 連載名は1行で省略（2026-09-18 デザイナー指示。SP で「連載」の2文字が縦に割れて2行になっていた）。
   中身は「連載」テキスト＋区切り線＋連載名のインライン並びなので、器を block にして nowrap＋ellipsis */
.s-card__series {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--cs-blue-90);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.s-card__series-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 5px;
  background: var(--cs-blue-90);
  vertical-align: -1px;
}

/* --- 特集・連載カード（2カラムの大きいカード。Figma 6718:88224） --- */
.s-card--serial .s-card__thumb .r-ph,
.s-card--serial .s-card__thumb img {
  aspect-ratio: 1200 / 630;   /* 特集・連載の画像はOGP比率（2026-09-01修正。16:9は誤り） */
}

.s-card--serial .s-card__blk {
  gap: 8px;
}

/* 見出しリンク（テキスト＋丸矢印）。テキストは <span class="u-underline"> で包み、
   ホバーで1px下線が流れる（確定仕様 2026-09-04）。下線が行順に流れる条件が
   display:inline のため、flexの直接の子にはせず .u-underline-wrap を挟む */
.s-card__serial-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  transition: color var(--hv-dur-color);
}

/* 丸矢印は連載名の文末に添える（2026-09-18 デザイナー指示。以前は flex で右端に固定）。
   「矢印だけが次の行に落ちる」のを防ぐため、テンプレート側で連載名の最後の1文字と矢印を
   .s-card__serial-tail（nowrap）で束ねる（トップの編集部メンバー名と同じ手法） */
.s-card__serial-tail {
  white-space: nowrap;
}

.s-card__serial-title .r-arrow-circle {
  margin-left: 8px;
  vertical-align: -3px;
}

.s-card__desc {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--cs-text-100);
}

/* --- 他媒体カード（アイコンラベル付き。Figma 6718:88252） --- */
.s-card--media {
  gap: 16px;
}

.s-card--media .s-card__blk {
  gap: 4px;
}

.s-card--media .s-card__thumb .r-ph,
.s-card--media .s-card__thumb img {
  aspect-ratio: 16 / 9;
}

.s-card__slot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.s-card__slot svg {
  width: 24px;
  height: 24px;
}

.s-card__slot--book {
  color: var(--cs-teal-70);
}

.s-card__slot--youtube {
  color: var(--cs-red-60);
}

/* 見出しリンク（テキスト＋丸矢印）。テキストは <span class="u-underline"> で包み、
   ホバーで1px下線が流れる（確定仕様 2026-09-04）。下線が行順に流れる条件が
   display:inline のため、flexの直接の子にはせず .u-underline-wrap を挟む */
.s-card__media-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  transition: color var(--hv-dur-color);
}

.s-card--media .s-card__desc {
  line-height: 1.8;
}

/* -------------------------------------------------------------------------
   レスポンシブ
   PC: Figma 6718:87638 / SP: Figma 6718:86764（2026-09-08 反映）
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .r-series {
    padding-left: 40px;
    padding-right: 40px;
  }

  .r-series__list,
  .r-series__list--col4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 吹き出しの反対側の余白は狭い画面では詰める */
  .m-editor .balloon.left .desc,
  .m-editor .popup.left .desc {
    margin-right: 48px;
  }

  .m-editor .balloon.right .desc,
  .m-editor .popup.right .desc {
    margin-left: 48px;
  }
}

@media (max-width: 767px) {
  .r-article {
    margin-top: 42px;   /* Figma SP: ヘッダー(100px)下端から42px */
    border-radius: 24px;
  }

  .r-article__inner {
    padding: 32px 26px 48px;
  }

  .art-offshot,
  .art-tags,
  .art-share,
  .r-article .m-editor {
    margin-top: 24px;
  }

  .art-staff {
    margin-top: 40px;
  }

  /* 記事ヘッダー（SP 6718:86770）: メタ行はバッジと日付、連載名はタイトルの上の行に下りる */
  .art-head__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
  }

  .art-head__meta > .r-cat-badge {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    padding: 1px 6px;
    font-size: 12px;
  }

  .art-head__date {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }

  .art-head__date svg {
    width: 14px;
    height: 14px;
  }

  /* バッジ行との間は 6px（2026-09-18 デザイナー指示「＋6px」）。
     セレクターを .art-head__meta > にしているのは、共通リセット `.r-article p { margin:0 }`
     （0,1,1）に負けないため。以前の `.art-head__series { margin-top:6px }`（0,1,0）は
     このリセットに負けて実際には 0px だった（ローカル検証で判明） */
  .art-head__meta > .art-head__series {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 6px;
  }

  .art-head__title-wrap {
    padding: 4px 0 12px;
  }

  .art-head__title {
    font-size: 20px;
  }

  .art-head__credits-row {
    padding-top: 12px;
  }

  .art-head__thumb {
    margin-top: 16px;
  }

  .m-editor {
    font-size: 16px;
  }

  /* 本文のブロック間余白は 24px、段落の連続は 12px（SP 6718:86854 / 86855） */
  .m-editor > p,
  .m-editor > ol,
  .m-editor > ul,
  .m-editor > div,
  .m-editor > blockquote,
  .m-editor > section,
  .m-editor > figure,
  .m-editor > iframe {
    margin-top: 24px;
  }

  .m-editor > p + p {
    margin-top: 12px;
  }

  .m-editor > img {
    margin-top: 24px !important;
  }

  .m-editor .text-banner,
  .m-editor .text-img-banner,
  .m-editor .embed-article {
    margin-top: 24px;
  }

  .m-editor > .balloon + .balloon,
  .m-editor > .balloon + .popup,
  .m-editor > .popup + .balloon,
  .m-editor > .popup + .popup {
    margin-top: 24px;
  }

  /* 目次ジャンプの停止位置: SPは画面上端から30px下（PCは60px） */
  .m-editor > a[name] {
    scroll-margin-top: 30px;
  }

  /* SPのh2は 20px・上余白56px・バーとの間隔12px（SP 6718:86853。PC は 2026-10-21 に 16px にしたが SP の Figma は 12px のまま） */
  .m-editor > h2,
  .m-editor .ttl01 {
    margin-top: 56px;
    padding-left: 16px;   /* バー4px＋間隔12px */
    font-size: 20px;
  }

  .m-editor > h3 {
    margin-top: 40px;
    font-size: 18px;
  }

  /* 上のmargin-top指定が「先頭要素は上マージン0」の基本ルール
     （ファイル前半で宣言・同詳細度）に後勝ちしてしまうため再宣言 */
  .m-editor > *:first-child {
    margin-top: 0;
  }

  .m-editor li + li,
  .m-editor li > ul,
  .m-editor li > ol {
    margin-top: 6px;
  }

  /* 箇条書きの点と文字の間隔は SP の Figma（6718:86856）どおり 8px のまま（PC は 12px。2026-10-21） */
  .m-editor ul li {
    padding-left: 16px;
  }

  .m-editor ul li > ul {
    margin-left: 0;
  }

  .m-editor .txt-frame,
  .m-editor .profile,
  .m-editor .profile-list {
    padding: 20px 16px;
  }

  .m-editor .txt-frame > h2,
  .m-editor .txt-frame > h3,
  .m-editor .txt-frame > p,
  .m-editor .txt-frame > ol,
  .m-editor .txt-frame > ul,
  .m-editor .txt-frame > div,
  .m-editor .txt-frame > blockquote {
    margin-top: 8px;
  }

  .m-editor .txt-frame > *:first-child {
    margin-top: 0;
  }

  .m-editor blockquote {
    padding: 36px 16px 32px;
  }

  .m-editor blockquote::before {
    top: 15px;
    left: 15px;
  }

  .m-editor blockquote::after {
    right: 15px;
    bottom: 15px;
  }

  .m-editor blockquote:has(cite) {
    padding-bottom: 20px;
  }

  .m-editor .frame-block {
    padding: 16px 16px 0;
  }

  .m-editor .frame-block > h2,
  .m-editor .frame-block > h3,
  .m-editor .frame-block > p,
  .m-editor .frame-block > ol,
  .m-editor .frame-block > ul,
  .m-editor .frame-block > blockquote,
  .m-editor .frame-block h2,
  .m-editor .frame-block .ttl01 {
    margin-top: 8px;
  }

  .m-editor .frame-block > *:first-child {
    margin-top: 0;
  }

  /* 箱のpaddingを16pxに詰めた分、下部ボタンのネガティブマージンも合わせる */
  .m-editor .frame-block .link-button {
    gap: 8px;
    margin: 16px -16px 0;
    font-size: 16px;
  }

  .m-editor .frame-block .link-button::after,
  .m-editor .frame-block .link-button[target="_blank"]::after,
  .m-editor .text-banner span::after,
  .m-editor .text-img-banner span::after {
    --hv-swap-dist: 20px;   /* 矢印を送る距離＝丸の直径。サイズを変えたら必ず一緒に変える */
    width: 20px;
    height: 20px;
  }

  .m-editor .btn {
    gap: 16px;
    min-width: 200px;
    padding: 4px 4px 4px 16px;
  }

  .m-editor .btn span {
    font-size: 16px;
  }

  .m-editor .btn::after,
  .m-editor .btn[target="_blank"]::after {
    --hv-swap-dist: 38px;   /* 矢印を送る距離＝丸の直径 */
    width: 38px;
    height: 38px;
  }

  .m-editor .text-banner,
  .m-editor .text-img-banner {
    min-height: 100px;
    font-size: 16px;
  }

  .m-editor .text-banner span,
  .m-editor .text-img-banner span {
    gap: 8px;
  }

  .toc #toc {
    gap: 6px;
    padding: 12px 16px;
  }

  .toc #toc:not(.is-collapsed):not(.is-open) {
    padding-bottom: 20px;
  }

  .toc #toc::before {
    font-size: 14px;
  }

  .toc #toc ul,
  .toc #toc ol {
    gap: 6px;
  }

  .toc #toc a {
    gap: 6px;
    padding-bottom: 6px;
  }

  .toc #toc a::before {
    font-size: 16px;
  }

  .toc #toc a span {
    font-size: 14px;
  }

  .r-toc-toggle {
    bottom: 16px;
    padding: 4px 12px 5px;
    font-size: 12px;
  }

  .r-toc-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* 番号付きリストの数字は SP では 18px（Figma SP。2026-09-18 デザイナー指示） */
  .m-editor ol li::before {
    font-size: 18px;
  }

  /* リンクカード小: 左に画像・右にタイトルと日付（2026-10-21 先方FB「SP で画像が画面いっぱいに
     引き伸ばされてぼやける」。旧 Figma SP 6718:86968 の縦積みから変更）。
     旧記事の画像は本文に書き込まれた幅 200px の縮小画像（…-thumb-200xauto-…）で、テンプレートから
     大きい画像に替えられないため、表示幅を 100px（高精細の画面でちょうど等倍）に抑える。
     タイトルは残りの幅（375px の画面で約 175px）に収まるよう 14px にする */
  .m-editor .embed-article {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .m-editor .embed-article .pic {
    width: 100px;
  }

  .m-editor .embed-article .pic a img {
    aspect-ratio: 180 / 101;
  }

  /* 行の高さはリンク（.desc a）側が決めるので、こちらも 14px に揃える */
  .m-editor .embed-article .desc a,
  .m-editor .embed-article .entry-title {
    font-size: 14px;
    line-height: 1.7;
  }

  .m-editor .embed-article .entry-title::after {
    --hv-swap-dist: 18px;
    width: 18px;
    height: 18px;
    margin: 0 0 -4px 6px;
  }

  /* リンクカード大（SP 6718:87000） */
  .art-card-lg {
    gap: 8px;
    padding: 16px;
  }

  .art-card-lg__title {
    font-size: 20px;
  }

  .art-card-lg__title .r-arrow-circle {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    vertical-align: -2px;
  }

  .art-card-lg__desc {
    margin-top: -4px;
  }

  /* 吹き出し（SP 6718:87013 / 87020）: 顔写真＋名前を1行に置き、その下に本体を全幅で。
     右向きは顔写真行を右寄せ（名前→顔写真の順）。しっぽは本体の上辺・顔写真の下 */
  .m-editor .balloon,
  .m-editor .popup,
  .m-editor .balloon.left,
  .m-editor .popup.left,
  .m-editor .balloon.right,
  .m-editor .popup.right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .m-editor .balloon .pic,
  .m-editor .popup .pic {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
  }

  .m-editor .balloon.right .pic,
  .m-editor .popup.right .pic {
    flex-direction: row-reverse;
  }

  .m-editor .balloon .pic img,
  .m-editor .popup .pic img {
    width: 40px;
    height: 40px;
  }

  .m-editor .balloon .name,
  .m-editor .popup .name {
    width: auto;
    font-size: 14px;
    text-align: left;
  }

  .m-editor .balloon .desc,
  .m-editor .popup .desc,
  .m-editor .balloon.left .desc,
  .m-editor .popup.left .desc,
  .m-editor .balloon.right .desc,
  .m-editor .popup.right .desc {
    margin: 0;
    padding: 10px 12px;
  }

  .m-editor .balloon .desc p + p,
  .m-editor .popup .desc p + p {
    margin-top: 8px;
  }

  .m-editor .balloon.left .desc::before,
  .m-editor .balloon.right .desc::before,
  .m-editor .popup.left .desc::before,
  .m-editor .popup.right .desc::before {
    top: -6px;
    width: 6px;
    height: 6px;
  }

  .m-editor .balloon.left .desc::before,
  .m-editor .popup.left .desc::before {
    left: 17px;
    right: auto;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
  }

  .m-editor .balloon.right .desc::before,
  .m-editor .popup.right .desc::before {
    left: auto;
    right: 17px;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
  }

  /* プロフィール（SP 6718:87184 / 一覧 6718:86799） */
  .m-editor .profile .pic img {
    width: 56px;
    height: 56px;
  }

  .m-editor .profile .desc dt {
    margin: 0 0 0 64px;
    font-size: 18px;
  }

  .m-editor .profile .desc dd.profile__role {
    margin-left: 64px;
  }

  .m-editor .profile .desc dd,
  .m-editor .profile .desc dd.profile__role + dd {
    padding-top: 12px;
    font-size: 14px;
  }

  .m-editor .profile-list__title {
    margin-bottom: 12px;
  }

  .m-editor .profile-list .profile + .profile {
    margin-top: 24px;
  }

  .m-editor .profile-list .profile .pic img {
    width: 56px;
    height: 56px;
  }

  .m-editor .profile-list .profile .desc dt {
    margin-left: 64px;
    font-size: 16px;
  }

  .m-editor .profile-list .profile .desc dd,
  .m-editor .profile-list .profile .desc dd.profile__role,
  .m-editor .profile-list .profile .desc dd.profile__role + dd {
    margin-left: 64px;
    padding-top: 4px;
  }

  .m-editor .profile-list .profile .desc dd.profile__role {
    padding-top: 0;
  }

  /* オフショット（SP 6718:87201）: 角丸4px・サムネイル列は横スクロール（1枚107px）。
     送りボタン（28px）は PC と同じく大きい画像の左右端 */
  .art-offshot {
    gap: 12px;
    padding: 16px 16px 20px;
    border-radius: 4px;
  }

  .art-offshot__main {
    gap: 6px;
  }

  /* 横スクロールの見える範囲は大きい画像と同じ幅（コンテンツ幅）。以前は左右 -16px の
     マージンで枠の余白まで広げていたが、サムネイルが余白に入り込んで見えるため
     コンテンツの端で切る形に変更（2026-09-25 作業依頼者指摘） */
  .art-offshot__strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .art-offshot__strip::-webkit-scrollbar {
    display: none;
  }

  .art-offshot__thumb {
    flex: 0 0 107px;
  }

  .art-offshot__thumb .r-ph,
  .art-offshot__thumb img {
    aspect-ratio: 107 / 64;
  }

  /* 送りボタンは PC と同じく大きい画像（ステージ）の縦中央・左右端に半分掛ける
     （2026-09-25 作業依頼者指示。Figma SP はサムネイル列の左右端に載せる構図だったが、
     実表示で PC と位置が違って見えるため PC に揃えた）。28px の丸の中心をステージの縁に置く */
  .art-offshot__nav .r-arrow-circle--lg {
    width: 28px;
    height: 28px;
  }

  .art-offshot__nav--prev {
    left: -14px;
  }

  .art-offshot__nav--next {
    right: -14px;
  }

  /* タグ（SP 6718:87228）／シェア（SP 6718:87245） */
  .art-tags__list {
    gap: 6px;
    padding: 16px 12px;
  }

  .art-tags a {
    padding: 3px 12px;
  }

  .art-share {
    gap: 8px;
  }

  .art-share__btn {
    padding: 12px 16px;
  }

  /* 担当スタッフ（SP 6718:87282）: 1列・アイコン56px */
  .art-staff__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .art-staff__item {
    gap: 8px;
  }

  .art-staff__item + .art-staff__item {
    margin-top: 12px;
  }

  .art-staff__item .r-ph,
  .art-staff__item img {
    width: 56px;
    height: 56px;
  }

  .art-staff__col {
    gap: 4px;
  }

  /* --- パンくず／記事下ブロック（SP） --- */
  .r-breadcrumb {
    padding: 12px 20px;
  }

  .r-series {
    padding: 64px 26px 0;
  }

  .r-series--info {
    padding-bottom: 56px;
  }

  .r-series__head {
    padding-bottom: 8px;
    border-bottom-width: 2px;
  }

  .r-series__title {
    font-size: 22px;
  }

  .r-series__tag {
    gap: 2px;
    padding: 40px 4px 0 0;
  }

  .r-series__tag-mark {
    font-size: 24px;
  }

  .r-series__tag-text {
    font-size: 20px;
  }

  .r-series__list,
  .r-series__list--col2 {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  /* 記事カードはSPでは横並び（サムネ142px＋テキスト。link-card_sp 6718:81133）。
     .s-card__blk の中は タイトル → 連載名 → バッジ の順（バッジが最後）。
     連載カード（--serial）と他媒体カード（--media）はSPでも縦積みのまま。
     2026-10-20 デザイナー修正: サムネ 112px → 142px、間 10px → 8px、サムネの上に 4px
     （一覧系の .r-article-card と同じ。renewal-css-03-lists 参照） */
  .r-series__list--row > .s-card,
  .r-series__list--col4 > .s-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .r-series__list--row > .s-card .s-card__thumb,
  .r-series__list--col4 > .s-card .s-card__thumb {
    flex: none;
    width: 142px;
    margin-top: 4px;
  }

  .r-series__list--row > .s-card .s-card__blk,
  .r-series__list--col4 > .s-card .s-card__blk {
    flex: 1;
  }

  .r-series__list--row > .s-card .s-card__meta,
  .r-series__list--col4 > .s-card .s-card__meta {
    order: 3;
  }

  .r-series__list--row > .s-card .s-card__series,
  .r-series__list--col4 > .s-card .s-card__series {
    margin-top: -2px;
  }

  .s-card__title {
    font-size: 14px;
  }

  /* SPの記事カードには日付を出さない（Figma SP に無い） */
  .s-card__date {
    display: none;
  }

  /* 「同じタグがある記事」もSPでは「同じカテゴリー」と同じ1列の横並びカード
     （2026-09-28 作業依頼者指示。Figma SP 6718:87343 の2列グリッドは、タグごとの記事が
     1件のときに右半分が空いて見えるため、上の --row と同じ規則に揃えた。タグ見出しの下は 12px） */
  .r-series__list--col4 {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 12px;
  }

  .s-card--serial .s-card__thumb .r-ph,
  .s-card--serial .s-card__thumb img {
    aspect-ratio: 1200 / 630;
  }

  .s-card__serial-title {
    font-size: 20px;
  }

  .s-card__serial-title .r-arrow-circle {
    margin-left: 6px;
  }

  .s-card--media {
    gap: 12px;
  }

  .s-card__media-title {
    font-size: 20px;
  }

  .r-series__btn-wrap {
    padding-top: 40px;
  }
}


/* =========================================================================
   特集・連載一覧（feature.html）＋ 一覧系ページの共通パーツ
   Figma「連載一覧」PC(6259:18400) / SP(6259:19907)

   - body.r-bg       … 方眼紙風の背景罫線。リニューアル済みページの body に
                       このクラスを付ける（全ページ共通方針。クラスを付けない
                       旧デザインページには影響しない）
   - .r-pagehead     … パンくず＋ページタイトルの白パネル（一覧系ページ共通）
   - .r-serial-index … 特集カードの2カラム一覧
   - .r-pager        … ページ送り（PageBute の出力を新デザインで整形）
   ========================================================================= */

/* --- 背景罫線（24pxの方眼。Figmaの bg レイヤーを実測した値） --- */
body.r-bg {
  background-color: #f7fbfc;   /* 2026-09-24 デザイナー指示: 塗り #F5FBFC → #F7FBFC */
  background-image:
    linear-gradient(to right, #f0f7fa 1px, transparent 1px),
    linear-gradient(to bottom, #f0f7fa 1px, transparent 1px);   /* 格子 #EBF6FA → #F0F7FA */
  background-size: 24px 24px;
}

/* --- スコープ共通（他セクションと同じ方針でリセットを閉じ込める） --- */
.r-pagehead,
.r-serial-index,
.r-pager,
.r-pagehead *,
.r-serial-index *,
.r-pager * {
  box-sizing: border-box;
}

.r-pagehead,
.r-serial-index,
.r-pager {
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: #141c1f;   /* Figma: regular/text_black_100 */
}

.r-pagehead a,
.r-serial-index a,
.r-pager a {
  color: inherit;
  text-decoration: none;
}

.r-pagehead a:focus-visible,
.r-serial-index a:focus-visible,
.r-pager a:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

/* --- ページ見出しパネル --- */
/* 白パネルの左端は「中央寄せしたコンテンツ幅1200pxの左端から70px外側」に置く
   （= 50% - 600px - 70px）。1440px画面では従来どおり左50pxになり、
   それより広い画面ではコンテンツに追従する。右側は画面右端まで白が伸びる */
.r-pagehead {
  padding: 40px 0 0 max(50px, calc(50% - 670px));
}

.r-pagehead__panel {
  position: relative;
  overflow: hidden;   /* backdrop等が角丸からはみ出さないようパネル内にクリップする */
  background: #fff;
  border-radius: 40px 0 0 40px;
  box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
}

/* パンくず（.r-breadcrumb の基本スタイルを流用）
   2026-08-31のデザイン共通修正で、パネル内上部 → パネルの下（白背景の外）へ移動。
   max-width はコンテンツを下のセクションと同じ1200pxに揃えるための上限
   （左70px + 1200px + 右120px = 1390px） */
.r-breadcrumb--pagehead {
  max-width: 1390px;
  padding: 16px var(--cs-gutter) 16px 70px;
  border-bottom: 0;
}

/* タイトル＋（あれば）リード文の縦積み。
   2026-08-31のデザイン共通修正でアイコンと目盛り飾りは廃止 */
.r-pagehead__body {
  max-width: 1390px;
  padding: 40px var(--cs-gutter) 40px 70px;
}

.r-pagehead__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

/* 検索結果（キーワード検索）: H1「検索結果」の横に小さく検索語（2026-10-23 Figma すべての記事_PC 8060:34643）。
   長い検索語は H1 の下へ折り返し、語の途中でも折り返す */
.r-pagehead__titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
}

.r-pagehead__keyword {
  margin: 0;
  min-width: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.r-pagehead__desc {
  margin: 8px 0 0;   /* H1 との間 8px（2026-09-18 デザイナー指示 No.21/25/27。PC/SP 共通） */
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* --- 特集カードの一覧 --- */
.r-serial-index {
  padding: 64px var(--cs-gutter) 80px;
}

.r-serial-index__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.r-serial-index__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 56px;
}

.r-serial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.r-serial-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.r-serial-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;   /* 特集・連載の画像はOGP比率（2026-09-01修正。16:9は誤り） */
  object-fit: cover;
  border: 1px solid #e3e7e8;
  border-radius: 4px;   /* .r-article-card__thumb img と同じ理由（角丸＋枠線を画像自身に） */
}

/* サムネイルのホバー演出（水色ワイプ＋光の弧）は
   「投稿系サムネイルの共通ホバー演出」に集約（ホバーアニメーションの章） */

.r-serial-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.r-serial-card__title .u-underline {
  transition-duration: var(--hv-dur-underline-title), var(--hv-dur-color);
}

/* 矢印はタイトル末尾に添える（タイトルが折り返しても最後の単語に追従する）。
   2026-09-25 デザイナー指示 No.33: 共通部品 .r-arrow-circle（24px・地色変化＋矢印スワップ）に切り替え。
   旧: インライン svg ＋ .u-icon-hop（ホップ） */
.r-serial-card__arrow {
  margin-left: 8px;
  vertical-align: -5px;
}

.r-serial-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* 概要文は3行で省略（カードの高さを揃える） */
  overflow: hidden;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* --- ページ送り --- */
.r-pager {
  display: flex;
  justify-content: center;
  padding-top: 56px;
}

.r-pager__pill {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 100px;
}

.r-pager__list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 2026-09-24 から矢印は両端に常時表示（1ページ目の「前へ」・最終ページの「次へ」は非活性のグレー。
   デザイナー指示 No.34）ため、片側の矢印が無いときの余白補正は不要になった */

.r-pager__item a,
.r-pager__item--current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #003f4d;
  text-decoration: none;
}

/* 角丸は通常時から丸（50%）にしておく。ホバー時だけ 50% にしていると、ホバーアウトの瞬間に
   角丸が 6px に戻り、フェード中の背景色が角丸の四角に見えていた（2026-09-30 作業依頼者指摘） */
.r-pager__item a {
  background: #fff;
  border-radius: 50%;
  transition: background-color 0.2s ease;   /* 影は 2026-09-30 作業依頼者指示で削除 */
}

.r-pager__item a:hover {
  background: #dfedf2;
}

.r-pager__item--current {
  background: #00425c;
  border-radius: 50%;
  color: #fff;
}

.r-pager__ellipsis {
  font-size: 13px;
  font-weight: 700;
  color: #003f4d;
}

.r-pager__btn {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

/* ホバーは数字タイルと同じ「水色の丸」（2026-09-24 デザイナー指示 No.34。旧 opacity フェード） */
a.r-pager__btn:hover {
  background: #dfedf2;
}

/* 非活性の矢印（1ページ目の「前へ」／最終ページの「次へ」）。
   テンプレートは MTIfPaginationPrev ブロック（リンク）の直後に必ず非活性の span を出力し、
   リンクがあるときだけ CSS で非活性側を隠す（隣接セレクタ。プラグインの MTElse 対応に依存しない） */
.r-pager__btn--disabled {
  pointer-events: none;
}

.r-pager__btn--disabled svg path {
  stroke: #c2c8ce;   /* gray_60 */
}

a.r-pager__btn + .r-pager__btn--disabled {
  display: none;
}

.r-pager__btn svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- レスポンシブ --- */
@media (max-width: 767px) {
  .r-pagehead {
    padding: 22px 0 0;   /* SPはパネルが全幅 */
  }

  .r-pagehead__panel {
    border-radius: 16px;
  }

  .r-breadcrumb--pagehead {
    padding: 8px var(--cs-gutter) 0;
  }

  .r-pagehead__body {
    padding: 32px var(--cs-gutter) 32px;
  }

  .r-pagehead__title {
    font-size: 24px;
  }

  /* SP は検索語を H1 の下に（Figma すべての記事_SP 8060:34791。H1 との間 4px） */
  .r-pagehead__titlerow {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .r-pagehead__keyword {
    font-size: 16px;
    line-height: 1.6;
  }

  .r-pagehead__desc {
    font-size: 14px;   /* H1 との間 8px はベースの margin-top で PC/SP 共通（旧 padding-top: 8px は削除） */
  }

  .r-serial-index {
    padding: 40px var(--cs-gutter) 64px;
  }

  .r-serial-index__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .r-serial-card {
    gap: 8px;
  }

  .r-serial-card__title {
    font-size: 20px;
  }

  /* ページ数が多いとき（例: […]付きで9タイル）はSP幅に収まらないため、
     ページャー自体を横スクロール可能にする。収まる場合は auto マージンで中央寄せ */
  .r-pager {
    justify-content: flex-start;
    padding-top: 40px;
    overflow-x: auto;
  }

  .r-pager__pill {
    flex: none;
    margin: 0 auto;
    gap: 12px;
    padding: 8px;
  }

  .r-pager__list {
    gap: 4px;
  }

  .r-pager__item a,
  .r-pager__item--current {
    width: 40px;
    height: 40px;
  }

  .r-pager__btn {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================================
   特集・連載トップ（/feature/○○.html）
   Figma「連載トップ」PC(6259:18797) / SP(6259:19151)

   - .r-pagehead--hero  … 見出しパネルのヒーロー版（特集名＋概要文＋サムネイル）
   - .r-article-index   … 記事一覧（全N件カウント＋記事カードのグリッド）
   - .r-article-card    … 記事カード（PC=縦積み3カラム / SP=サムネ横並び）。
                           カード全体のリンクは stretched-link 方式
                           （タグは個別リンクのため <a> を入れ子にしない）
   - .r-other-series    … 「他の連載をみる」白パネル
   - .r-h2 / .r-btn-pill / .r-cat-badge / .r-tag … 一覧系ページの共通部品
   ========================================================================= */

/* --- スコープ共通（他セクションと同じ方針でリセットを閉じ込める） --- */
.r-article-index,
.r-other-series,
.r-article-index *,
.r-other-series * {
  box-sizing: border-box;
}

.r-article-index,
.r-other-series {
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: #141c1f;
}

.r-article-index a,
.r-other-series a {
  color: inherit;
  text-decoration: none;
}

.r-article-index a:focus-visible,
.r-other-series a:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

.r-article-index img,
.r-other-series img {
  max-width: 100%;
}

/* --- ヒーロー（見出しパネルの拡張） --- */
.r-pagehead__hero {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 1390px;   /* コンテンツを下のセクションと同じ1200px幅に揃える（70+1200+120） */
  padding: 48px var(--cs-gutter) 48px 70px;   /* 白パネルの上下余白 48px（2026-09-24 デザイナー指示 No.38。旧 40px） */
}

.r-pagehead__hero-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.r-pagehead__hero-desc {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.r-pagehead__hero-thumb {
  flex: none;
  width: 504px;
  max-width: 42%;
}

.r-pagehead__hero-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;   /* 特集画像はOGP比率（2026-09-01修正。16:9は誤り） */
  object-fit: cover;
  border: 1px solid #e3e7e8;
  border-radius: 4px;
}

/* サムネイル下のイラスト制作者クレジット「イラスト 〇〇」（Figma 6718:83528: 12px/lh2/字間0.06em/#141c1f、
   肩書と名前の間隔8px、右寄せ。サムネ下端から8px、SPは4px） */
.r-pagehead__credit {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #141c1f;
}

.r-pagehead__credit-label,
.r-pagehead__credit-name {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.r-pagehead__credit-label {
  flex: none;
}

/* --- 記事一覧 --- */
/* 修飾子なし（.r-article-index 単体）は連載トップだけが使う。上余白 32px
   （2026-09-24 作業依頼者指示。デザイナーの No.39「48px」を一度そのまま適用した後、実機確認のうえ 32px に。旧 56px）。
   一覧系3ページは .r-article-index--recent で別に上書きしている */
.r-article-index {
  padding: 32px var(--cs-gutter) 80px;
}

.r-article-index__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.r-count {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.r-count__num {
  font-size: 24px;
  line-height: 1.2;
  color: #1a7a9f;
}

.r-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

/* --- 記事カード --- */
.r-article-card {
  position: relative;   /* stretched-link の基準 */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.r-article-card__thumb {
  position: relative;   /* .acr-rim / ワイプの基準 */
  overflow: hidden;
  border-radius: 4px;
}

.r-article-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 252 / 132;
  object-fit: cover;
  border: 1px solid #e3e7e8;
  border-radius: 4px;   /* 器の overflow:hidden だけに頼らず画像自身も角丸にする。
                           枠線も角に沿って回り、角で途切れて見えない（2026-09-18 デザイナー指摘） */
}

/* サムネイルのホバー演出（水色ワイプ＋光の弧）は
   「投稿系サムネイルの共通ホバー演出」に集約（ホバーアニメーションの章） */

.r-article-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.r-article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.r-article-card__date {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #00425c;
}

.r-article-card__date svg {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
}

.r-article-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  /* 最終行の下線（.u-underline の padding-bottom 2px の位置）は行の高さから約0.4px はみ出し、
     overflow:hidden に切られて出たり出なかったりした（2026-10-02）。箱の下に2px足して下線を収める。
     4行目の文字の上端は行の上の余白（約5px）より下なので、この2pxには写らない */
  padding-bottom: 2px;
}

/* カード全体をリンクにする透明レイヤー（タイトルのaに付ける） */
.r-article-card__link {
  color: inherit;
  text-decoration: none;
}

.r-article-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* タイトル下線: 共通の.u-underlineを使用。行をまたぐぶん少し長め */
.r-article-card__title .u-underline {
  transition-duration: var(--hv-dur-underline-title), var(--hv-dur-color);
}

.r-article-card__series {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #00425c;
}

/* 「連載」ラベルは縮ませない（縮むと1文字ずつ縦に折れる） */
.r-article-card__series-label {
  flex: none;
  white-space: nowrap;
}

.r-article-card__series-sep {
  flex: none;
  width: 1px;
  height: 12px;
  background: #00425c;
}

/* 連載名側だけが縮んで「…」省略される */
.r-article-card__series-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.r-article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

/* --- カテゴリバッジ／タグ（一覧系ページ共通部品） --- */
/* 配色はFigmaのspeechbubbleパレット（2026-08-26に変数定義から取得）:
     red    #F2DEE1 / #AD5365   … 組織・社会（コンポーネント定義で確認）
     purple #E4DFF0 / #5B4E87   … テクノロジー（デザイン内で確認）
     blue   #D8E9F0 / #1479A0   … サイボウズ（デザインのカードで確認）
     green  #D8E8D8 / #307A30   … 働き方（消去法による推定）
   バッジには .r-cat-badge--<カテゴリのベースネーム> が付く。
   2026-09-30 にカテゴリ名・ベースネームを変更（work-life→work / company→organization /
   family-work→technology）したのに合わせてクラス名を差し替えた
   2026-10-01 アクセシビリティ対応（ガイドライン 1.4.3・レベル AA。12px の文字は 4.5:1 以上）:
   red / blue / green の文字色が背景に対して 3.88 / 3.94 / 4.16:1 で足りなかったため、
   色味（色相・彩度）はそのままに明るさだけ下げた（red #AD5365→#9C4A5B・blue #1479A0→#126D91・
   green #307A30→#2D722D。いずれも 4.6:1 以上）。purple は 5.59:1 で変更なし。背景色は変えていない */
.r-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  background: #d8e9f0;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #126d91;   /* 2026-10-01 #1479a0 → #126d91（コントラスト 3.94 → 4.65:1） */
  white-space: nowrap;
}

.r-cat-badge--work {         /* 働き方 → green */
  background: #d8e8d8;
  color: #2d722d;   /* 2026-10-01 #307a30 → #2d722d（4.16 → 4.63:1） */
}

.r-cat-badge--organization { /* 組織・社会 → red */
  background: #f2dee1;
  color: #9c4a5b;   /* 2026-10-01 #ad5365 → #9c4a5b（3.88 → 4.60:1） */
}

.r-cat-badge--technology {   /* テクノロジー → purple */
  background: #e4dff0;
  color: #5b4e87;
}

.r-cat-badge--cybozu {       /* サイボウズ → blue */
  background: #d8e9f0;
  color: #126d91;   /* 2026-10-01 #1479a0 → #126d91（3.94 → 4.65:1） */
}

.r-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #141c1f;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

a.r-tag {
  position: relative;   /* stretched-link より前面に出してタグ単体で踏めるようにする */
  z-index: 1;
}

a.r-tag:hover {
  background: #dfedf2;
}

/* --- 見出し（h2）とボタン --- */
.r-h2 {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding-top: 64px;
}

.r-h2__bar {
  flex: none;
  width: 4px;
  border-radius: 16px;
  background: #63b4d3;
}

.r-h2__txt {
  flex: 1;
  min-width: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.r-btn-wrap {
  display: flex;
  justify-content: center;
  padding-top: 56px;
}

.r-btn-pill {
  position: relative;   /* .acr-rim の基準 */
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 6px 6px 6px 24px;
  border-radius: 80px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #fff !important;   /* 旧style.cssの a 色指定に負けないよう明示 */
  text-decoration: none;
  /* 背景ワイプ: 3倍幅グラデを右→左へスライドし、明るい面が左から広がって見える */
  background: linear-gradient(90deg,
    var(--hv-hover-text) 0%, var(--hv-hover-text) 33.33%,
    #00425c 66.66%, #00425c 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: background-position var(--hv-dur-wipe-button) var(--hv-ease-wipe);
}

.r-btn-pill:hover {
  background-position: 0 0;
}

.r-btn-pill svg {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
}

/* 矢印アイコンのラップ: overflow:hiddenの窓の中で矢印だけを1回スライドスワップする。
   白丸／白角丸自体は窓（このラッパー）の背景として固定し、動かさない。
   svg内の白い矩形（<rect>）は窓の背景と二重になるので非表示にする */
.r-btn-pill__icon {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  flex: none;
  width: 44px;
  height: 44px;
}

.r-btn-pill__icon rect {
  display: none;
}

@keyframes hv-arrow-swap {
  0%   { transform: translateX(0); }
  49%  { transform: translateX(150%); }
  50%  { transform: translateX(-150%); }
  100% { transform: translateX(0); }
}
.r-btn-pill:hover .r-btn-pill__icon > * {
  animation: hv-arrow-swap .4s ease forwards;
}

/* 外部リンク（↗）の矢印は、矢印の向きどおり左下 → 右上（45°）へ抜けて左下から戻る
   （2026-09-30 作業依頼者指示。それまでは内部リンクと同じ横スワップだった）。
   丸矢印部品の .r-arrow-circle--ext は要素ごと -45° 回転しているので横スワップのままで斜めに動く */
@keyframes hv-arrow-swap-ext {
  0%   { transform: translate(0, 0); }
  49%  { transform: translate(150%, -150%); }
  50%  { transform: translate(-150%, 150%); }
  100% { transform: translate(0, 0); }
}
.r-btn-pill:hover .r-btn-pill__icon--ext > * {
  animation-name: hv-arrow-swap-ext;
}

/* --- 他の連載をみる（白パネル） ---
   Figma 6718:83566: 外枠 padding 80px 50px（下80pxがフッターとの余白）。
   右縁の目盛り飾り（.r-other-series__deco）は 2026-09-07 のデザイン更新で廃止 */
.r-other-series {
  margin-top: 0;   /* 上余白は前段（記事一覧）の下余白に任せる（2026-09-07 作業依頼者指示） */
  padding: 0 50px 80px;
}

.r-other-series__panel {
  overflow: hidden;
  background: #fff;
  border-radius: 40px;
  max-width: 1340px;   /* コンテンツ1200 + 左右70px。広い画面では中央寄せ */
  margin: 0 auto;
  padding: 0 70px 64px;
}

.r-other-series__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.r-other-series__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 48px;
}

/* このページのカードはタイトル20px（連載一覧の22pxより一段小さい） */
.r-other-series .r-serial-card__title {
  font-size: 20px;
}

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
  .r-pagehead__hero {
    flex-direction: column;
    gap: 24px;
  }

  /* 縦積みになる幅ではサムネイル（＋イラストクレジット）を H1 の上に置く
     （2026-09-15 デザイナー指示 No.40・Figma 参考 7298:12636。概要文が長いとサムネイルが
     ファーストビューから見切れるため。PC の横並びは従来どおり左テキスト・右サムネイル） */
  .r-pagehead__hero-thumb {
    order: -1;
    width: 100%;
    max-width: 640px;
  }

  .r-article-grid,
  .r-other-series__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  /* SP（Figma 参考 7298:12636）: パネル上余白32 → サムネ → 4px → クレジット → 16px → H1 → 12px → 概要文 → 下余白32 */
  .r-pagehead__hero {
    gap: 16px;
    padding: 32px var(--cs-gutter) 32px;   /* 2026-08-31共通修正: 上下余白を詰める */
  }

  .r-pagehead__hero-txt {
    gap: 0;
  }

  .r-pagehead__hero-desc {
    padding-top: 12px;
    font-size: 14px;
  }

  .r-pagehead__hero-thumb {
    margin-top: 0;   /* サムネイルが先頭に来るので上マージン不要（旧 8px） */
    max-width: 100%;
  }

  .r-pagehead__credit {
    margin-top: 4px;
  }

  /* 連載トップ: 上余白 24px（2026-09-24 作業依頼者指示。デザイナーの No.41「40px」から実機確認のうえ 24px に変更） */
  .r-article-index {
    padding: 24px var(--cs-gutter) 56px;
  }

  .r-article-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    /* padding-top は 2026-09-30 作業依頼者指示で削除（0。旧 16px ← 2026-09-24 に 8px から変更） */
  }

  /* SPの記事カードはサムネ横並び。要素順もデザインに合わせて入れ替える
     （タイトル → 連載名 → バッジ。日付は非表示）
     ★タグはSPでは非表示（2026-08-31 デザイナー修正指示・全ページ共通ルール。
       SPEC 第5章「一覧共通の表示ルール」）。PCは変わらず表示 */
  /* 2026-10-20 デザイナー修正（Figma link-card_sp 6718:81133。先方FB「SPのサムネが小さい」）:
     サムネ 112px → 142px（背景のマス目1マス分）、文字との間 10px → 8px、サムネの上に 4px
     （タイトル1行目の文字とサムネの上端を揃える）。上の 4px は margin で付ける
     （padding だとサムネに重ねるホバーの光の枠 ::after がずれるため） */
  .r-article-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .r-article-card__thumb {
    flex: none;
    width: 142px;
    margin-top: 4px;
  }

  .r-article-card__body {
    flex: 1;
    min-width: 0;
    gap: 6px;
  }

  .r-article-card__meta {
    order: 3;
    justify-content: flex-start;
  }

  .r-article-card__date {
    display: none;
  }

  .r-article-card__title {
    order: 1;
    font-size: 14px;
  }

  .r-article-card__series {
    order: 2;
    margin-top: -2px;
  }

  .r-article-card__tags {
    display: none;
  }

  /* カテゴリトップは「そのカテゴリの記事一覧」自体なので、カード側の
     カテゴリバッジはSPでは冗長として非表示にする（2026-09-07 作業依頼者指示。
     このページ専用のスコープ = .r-article-index--cat。連載名 .r-article-card__series は残す。
     すべての記事／人気の読みもの等の他ページは複数カテゴリが混在するため対象外） */
  .r-article-index--cat .r-cat-badge {
    display: none;
  }

  /* SPもPCと同じ左バーの見出しに統一（2026-09-03 デザイン更新。
     旧SPデザインの「テキスト＋下線2px」あしらいは廃止。
     Figma 6615:91979 実測: バー4px・間隔12px・文字20px・上余白64px） */
  .r-h2 {
    padding-top: 64px;
  }

  .r-h2__txt {
    font-size: 20px;
  }

  /* SPのCTA（Figma部品 btn-wrap 6025:51654。特集カテトップ 6718:83695 / トップ 6718:81149 で同一）:
     上余白40px・最小幅200・padding 4/4/4/16・角丸80・16px・矢印は38pxの白丸 */
  .r-btn-wrap {
    padding-top: 40px;
  }

  .r-btn-pill {
    gap: 24px;
    min-width: 200px;
    padding: 4px 4px 4px 16px;
    border-radius: 80px;
    font-size: 16px;
  }

  .r-btn-pill svg {
    width: 38px;
    height: 38px;
  }

  .r-btn-pill__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;   /* SPもPCと同じ白丸（2026-09-07 Figma 6718:83695 で確認。旧デザインの角丸四角(6px)から変更） */
  }

  .r-other-series {
    margin-top: 0;
    padding: 0 0 56px;   /* 下56px = Figma SP(6718:83604) のパネル〜フッター間 */
  }

  .r-other-series__panel {
    border-radius: 16px;
    padding: 0 var(--cs-gutter) 56px;
    box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
  }

  .r-other-series__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }
}

/* =========================================================================
   すべての記事（recent.html）
   Figma「カテトップ」（すべての記事はカテゴリトップと同じレイアウトを使う。
     カテゴリトップ実装時にそのまま流用できるよう r-filter-tags は汎用名にしてある）
   - .r-filter-tags … 「タグで絞り込む」のタグリンク行
   記事カード・グリッド・ページャーは特集トップ実装の共通部品を流用
   ※見出しパネルのカテゴリ版（--cat。アイコン付き2カラム）は
     2026-08-31のデザイン共通修正（アイコン・目盛り廃止）で削除。
     タイトル＋リード文はベースの .r-pagehead__body / __desc で表現する
   ========================================================================= */

/* --- タグで絞り込む --- */
.r-filter-tags {
  padding-bottom: 40px;
}

.r-filter-tags__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.r-filter-tags__list {
  display: flex;
  flex-wrap: wrap;   /* デザインは1行だがタグが多い場合は折り返す */
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-filter-tags__item {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #141c1f;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

a.r-filter-tags__item:hover {
  background: #dfedf2;
}

/* 「すべて」= 表示中のページ */
.r-filter-tags__item--current {
  background: #003f4d;
  border-color: #003f4d;
  color: #fff;
}

/* 一覧（すべての記事／人気の読みもの／カテゴリトップ）はパンくず直下 PC 24px・SP 32px
   （2026-09-18 デザイナー指示 No.22/24/26/28/29/30。旧 40px。特集トップの 56px より浅い）。件数表示は無し。
   ※SP の値はここで上書きする。前方の SP 共通 `.r-article-index { padding: 40px … }` と同じ詳細度なので、
     この位置（後ろ）に書かないと負ける */
.r-article-index--recent {
  padding-top: 24px;
}

@media (max-width: 767px) {
  .r-article-index--recent {
    padding-top: 32px;
  }
}

/* 検索結果（タグ検索・キーワード検索）0件時のメッセージ
   ※検索結果ページ（システムテンプレート「検索結果」）は
     このセクションのクラス一式をそのまま流用している */
.r-search-empty {
  margin: 0;
  padding: 8px 0 40px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* カテゴリトップのタグ絞り込み（?tag= 付き。2026-09-29）
   静的に書き出した一覧・ページャーを隠し、JS が差し込む絞り込み結果（.js-cat-result）だけを出す。
   html.is-cat-tagfilter は category_top.mtml のインラインスクリプトが描画前に付ける
   （JSON の取得に失敗したときは JS が外して通常の一覧に戻す） */
.is-cat-tagfilter .r-article-index--cat .r-article-grid:not(.js-cat-result),
.is-cat-tagfilter .r-article-index--cat .r-pager:not(.js-cat-result) {
  display: none;
}

@media (max-width: 767px) {
  .r-filter-tags {
    padding-bottom: 32px;   /* 2026-09-30 作業依頼者指示（旧 16px） */
  }
}

/* =========================================================================
   メンバー一覧（member.html）
   Figma「メンバー一覧」PC(6615:91398) / SP(6615:91960)
   - 見出しパネル .r-pagehead / 見出し .r-h2 / 絞り込みピル
     .r-filter-tags は上の共通部品を流用
   - .r-staff … メンバーカード（円形写真＋名前＋肩書＋SNS）
   ========================================================================= */

.r-member-index {
  padding: 0 var(--cs-gutter) 80px;
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: #141c1f;
}

.r-member-index,
.r-member-index * {
  box-sizing: border-box;
}

.r-member-index a {
  color: inherit;
  text-decoration: none;
}

.r-member-index a:focus-visible,
.r-member-index button:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

.r-member-index__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* このページのセクション見出しは間隔が広い（デザイン実測80px）。
   ただし最初の h2（h1 パネル直下）は 2026-09-24 デザイナー指示 No.56 で 32px 詰めて 48px */
.r-member-index .r-h2 {
  padding-top: 80px;
}

.r-member-index__container > .r-h2:first-child {
  padding-top: 48px;
}

/* 絞り込みピル: h2 との間は32px。ピルは a ではなく button（JS切替）なので
   ブラウザ既定のボタン装飾を打ち消す */
.r-filter-tags--member {
  padding-top: 32px;
}

button.r-filter-tags__item {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: inherit;
  font-feature-settings: inherit;
  cursor: pointer;
}

button.r-filter-tags__item:not(.r-filter-tags__item--current):hover {
  background: #dfedf2;
}

/* --- メンバーカードのグリッド --- */
.r-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  padding-top: 48px;
  align-items: start;   /* 行内に背の高いカードがあっても他カードを引き伸ばさない */
}

/* 絞り込みピル直下のグリッド（ピル行の padding-bottom 40px と合わせて48px） */
.r-staff-grid--all {
  padding-top: 8px;
}

/* --- メンバーカード ---
   構造（2026-09-25）: .r-staff > a.r-staff__link（写真＋見出し）＋ ul.r-staff__sns。
   a は display:contents で箱を持たず、写真・見出し・SNS が .r-staff の縦並び（flex column）に
   直接並ぶ。写真は左に絶対配置し、見出し＋SNS の束を写真の高さ（140px）に対して縦中央に置く
   （＝旧 .r-staff__body の縦中央揃えと同じ見た目）。SNS ボタンは別リンクなので a の外 */
.r-staff {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* テキスト量が写真より多い/少ないカードでも縦中央で揃える */
  gap: 16px;
  min-height: 140px;
  padding-left: 160px;       /* 写真 140px ＋ 間隔 20px */
  min-width: 0;
}

.r-staff__link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

/* display:contents の a は枠線を描けないので、キーボードフォーカスは名前に出す */
.r-staff__link:focus-visible .u-underline {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

/* 絞り込みで隠すカード（.r-staff の display:flex が UA の [hidden] に
   勝ってしまうため明示する） */
.r-staff[hidden] {
  display: none;
}

.r-staff__photo {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 140px;
  height: 140px;
  transform: translateY(-50%);
}

.r-staff__photo img,
.r-staff__ph {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #e3e7e8;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

/* 画像未登録時のグレー円（記事詳細の .r-ph と同じ扱い） */
.r-staff__ph {
  background: #e3e7e8;
}

.r-staff__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.r-staff__name {
  display: block;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* 丸矢印は共通部品 .r-arrow-circle--sm（15px）。ホバーの地色変化＋矢印スワップは
   ホバー章の a:hover .r-arrow-circle が担う（No.57・見出しリンク仕様） */
.r-staff__name .r-arrow-circle {
  margin-left: 6px;
  vertical-align: -1px;
}

.r-staff__title {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #677173;
}

/* 肩書と所属を1行ずつ（片方だけでも崩れない） */
.r-staff__title span {
  display: block;
}

.r-staff__sns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-staff__sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #a1d3e6;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.r-staff__sns-btn:hover {
  background: #dfedf2;
}

.r-staff__sns-btn svg {
  display: block;
}

/* X とリンク（チェーン）のアイコンは 28px の囲みに対して 12×12（2026-09-24 デザイナー指示 No.57。
   Facebook 16px・note 18px は Figma のまま） */
.r-staff__sns-btn--x svg,
.r-staff__sns-btn--link svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1024px) {
  .r-staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .r-member-index {
    padding-bottom: 56px;
  }

  /* SPの見出し間隔はベースの .r-h2（64px）に合わせて戻す
     （PC用の80px指定に勝つための再宣言）。最初の h2 は No.58 で 16px 詰めて 48px */
  .r-member-index .r-h2 {
    padding-top: 64px;
  }

  .r-member-index__container > .r-h2:first-child {
    padding-top: 48px;
  }

  .r-filter-tags--member {
    padding-top: 24px;
  }

  .r-staff-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .r-staff-grid--all {
    padding-top: 16px;
  }

  /* SPはテキストを上揃えにする（写真より高くなるカードがあるため） */
  .r-staff {
    justify-content: flex-start;
    gap: 8px;
    min-height: 88px;
    padding-left: 104px;     /* 写真 88px ＋ 間隔 16px */
  }

  .r-staff__photo {
    top: 0;
    width: 88px;
    height: 88px;
    transform: none;
  }

  .r-staff__head {
    gap: 0;
  }

  .r-staff__name {
    font-size: 16px;
  }

  .r-staff__title {
    line-height: 1.8;
  }
}

/* =========================================================================
   メンバー詳細（member/○○.html）
   Figma「メンバー詳細」PC(6615:91600) / SP(6615:91743)（2026-09-03 正式デザイン）
   - 見出しパネル .r-pagehead / __panel の中身をプロフィール .r-profile に
     差し替える（パンくずはパネルの下＝2026-08-31の共通修正に準拠）
   - 見出し .r-h2 / 記事カード .r-article-grid・.r-article-card /
     ボタン .r-btn-wrap・.r-btn-pill は一覧系ページの共通部品を流用
   - SPはPCと同じマークアップを grid で組み替える（写真の横に所属・氏名・SNS、
     ひとこと・興味関心は全幅）
   ========================================================================= */

/* --- プロフィール（白パネルの中身） ---
   パネル内の余白は Figma 実測: 上40 / 右120（--cs-gutter） / 下48 / 左70。
   max-width は他ページの .r-pagehead__body と同じ（70+1200+120=1390） */
.r-profile {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  max-width: 1390px;
  padding: 40px var(--cs-gutter) 48px 70px;
}

.r-profile__photo {
  flex: none;
  width: 280px;
  height: 280px;
}

.r-profile__photo img,
.r-profile__ph {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

/* 画像未登録時のグレー円（メンバー一覧の .r-staff__ph と同じ扱い） */
.r-profile__ph {
  background: #e3e7e8;
}

.r-profile__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 所属・肩書＋氏名（左）と SNS（右）。幅が足りなければ SNS が下に折り返す */
.r-profile__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.r-profile__ident {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.r-profile__role {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #637278;
}

/* 所属と肩書の間は全角スペース（デザイン「サイボウズ式編集部　編集長」） */
.r-profile__role span + span::before {
  content: '\3000';
}

.r-profile__name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.r-profile__name-ja {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.r-profile__name-en {
  font-family: Inter, var(--cs-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* SNSボタン: 59px角（アイコン27px枠＋padding16）・角丸8・枠 bland_blue_40 */
.r-profile__sns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-profile__sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 59px;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.r-profile__sns-btn:hover {
  background: #dfedf2;
}

.r-profile__sns-btn svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* X のアイコンだけ一回り小さく: PC 18px / SP 12px（2026-09-25 デザイナー指示 No.59/60。
   Facebook・note・チェーンは 22px / 18px のまま） */
.r-profile__sns-btn--x svg {
  width: 18px;
  height: 18px;
}

.r-profile__comment {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* 興味・関心のあること: 見出し＋吹き出し */
.r-profile__interests {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 8px;
}

.r-profile__interests-label {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #00425c;
}

.r-profile__bubble {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  background: #d5e3e8;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* 吹き出しのしっぽ（Figma Vector 59 = 6px の直角三角形。右辺が垂直で頂点は右上、
   斜辺が左下→右上。吹き出し上辺の左12pxに接する）。
   Figma の書き出しSVGをそのまま背景に埋め込む。高さは7pxにして下1pxを
   吹き出し本体に重ね、境目のすき間（アンチエイリアス）を出さない */
.r-profile__bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 12px;
  width: 6px;
  height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 7'%3E%3Cpath d='M6 0V7H0V6L6 0Z' fill='%23D5E3E8'/%3E%3C/svg%3E") no-repeat 0 0 / 6px 7px;
}

/* --- この人が担当した記事 --- */
.r-member-detail {
  padding: 0 var(--cs-gutter) 80px;
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: #141c1f;
}

.r-member-detail,
.r-member-detail * {
  box-sizing: border-box;
}

.r-member-detail a {
  color: inherit;
  text-decoration: none;
}

.r-member-detail a:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

.r-member-detail__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 見出しの上余白はメンバー一覧と同じ80px（Figma h2 インスタンス実測） */
.r-member-detail .r-h2 {
  padding-top: 80px;
}

/* 見出し → カードグリッド 40px */
.r-member-detail__articles {
  padding-top: 40px;
}

/* --- タブレット: 写真を縮めてテキスト幅を確保 --- */
@media (max-width: 1024px) {
  .r-profile {
    gap: 32px;
  }

  .r-profile__photo {
    width: 200px;
    height: 200px;
  }
}

/* --- SP（Figma 6615:91743） ---
   写真100px の横に「所属・氏名・SNS」、その下に「ひとこと」「興味関心」を全幅で。
   .r-profile を grid にし、.r-profile__body は display:contents で子要素を
   直接グリッドに並べる */
@media (max-width: 767px) {
  .r-profile {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 24px 12px;
    padding: 24px var(--cs-gutter) 32px;
  }

  .r-profile__photo {
    width: 100px;
    height: 100px;
  }

  .r-profile__body {
    display: contents;
  }

  .r-profile__head {
    grid-column: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .r-profile__ident {
    flex: none;
    width: 100%;
  }

  .r-profile__role {
    font-size: 14px;
  }

  .r-profile__name {
    gap: 0;
  }

  .r-profile__name-ja {
    font-size: 28px;
  }

  .r-profile__sns {
    gap: 6px;
  }

  .r-profile__sns-btn {
    width: 36px;
    height: 36px;
    border-radius: 5px;
  }

  .r-profile__sns-btn svg {
    width: 18px;
    height: 18px;
  }

  .r-profile__sns-btn--x svg {
    width: 12px;
    height: 12px;
  }

  .r-profile__comment,
  .r-profile__interests {
    grid-column: 1 / -1;
  }

  .r-profile__comment {
    font-size: 14px;
  }

  .r-profile__interests {
    padding-top: 0;
  }

  .r-profile__interests-label {
    font-size: 14px;
    color: #003f4d;
  }

  .r-profile__bubble {
    width: 100%;
  }

  /* SPフレーム実測: しっぽは左14px */
  .r-profile__bubble::before {
    left: 14px;
  }

  .r-member-detail {
    padding-bottom: 56px;
  }

  /* SPフレーム実測: 見出し上56px・グリッド上24px・ボタン上40px */
  .r-member-detail .r-h2 {
    padding-top: 56px;
  }

  .r-member-detail__articles {
    padding-top: 24px;
  }

  .r-member-detail .r-btn-wrap {
    padding-top: 40px;
  }
}

/* =========================================================================
   ホバーアニメーション（確定仕様 2026-08-13 / 光の弧 2026-09-04 / 見出しリンク 2026-09-04）
   原則: テキスト＝1px下線スライドイン、面＝水色ワイプ、アイコン＝1回ホップ。
   アクリル感（光が縁を一周する）はCTA(.r-btn-pill)と記事カード(.r-article-card)
   のサムネイルに限定。SNSアイコンは動かさずopacityのみ。
   適用先: header/footerモジュール、.r-btn-pill、.r-article-card、
   .r-serial-card、.r-toc-toggle（記事詳細目次）、
   丸矢印つき見出しリンク（.r-arrow-circle を内包するリンク）
   原本デモ: docs/reference/hover-animation/
   ========================================================================= */

:root {
  --hv-hover-text: #1a7a9f;
  --hv-hover-underline: #a1d3e6;
  --hv-wipe-card: rgba(161, 211, 230, .25);
  --hv-wipe: rgba(161, 211, 230, .5);
  --hv-ease-wipe: cubic-bezier(.25, .8, .3, 1);
  --hv-ease-hop: cubic-bezier(.34, 1.56, .64, 1);
  --hv-dur-underline: .45s;
  --hv-dur-underline-title: .6s;
  --hv-dur-wipe: .5s;
  --hv-dur-wipe-button: .55s;
  --hv-dur-color: .3s;
  --hv-dur-hop: .45s;
}

/* --- 共通: 下線スライドイン（inline要素専用。複数行でも行順に流れる） --- */
.u-underline {
  display: inline;
  background-image: linear-gradient(var(--hv-hover-underline), var(--hv-hover-underline));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size var(--hv-dur-underline) var(--hv-ease-wipe), color var(--hv-dur-color);
}
a:hover .u-underline,
.u-hover-parent:hover .u-underline {
  background-size: 100% 1px;
  color: var(--hv-hover-text);
}

/* --- 共通: アイコンホップ（1回だけ跳ねる。繰り返さない） --- */
@keyframes hv-hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-5px) rotate(-6deg); }
  100% { transform: translateY(0); }
}
a:hover .u-icon-hop,
.u-hover-parent:hover .u-icon-hop {
  animation: hv-hop var(--hv-dur-hop) var(--hv-ease-hop);
}

/* --- 共通: アクリル演出（光が縁を一周する）。適用はCTA・記事カードのみ ---
   使い方: ホバー親（u-hover-parent）の直下に
   <span class="acr-rim acr-rim--arc" aria-hidden="true"></span> を置く。
   親に position:relative と border-radius が必要（radiusは自動継承）。
   仕組み: padding分(2px)を残して中央をmaskでくり抜いた輪郭リング。
   親のborder-radiusを継承するため、サイズや角丸が変わっても輪郭に一致する。 */
@property --hv-arc {
  syntax: '<angle>';
  initial-value: 160deg;
  inherits: false;
}
.acr-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.acr-rim--arc {
  background: conic-gradient(from var(--hv-arc) at 50% 50%,
    rgba(255, 255, 255, 0) 0deg 300deg,
    rgba(255, 255, 255, .85) 330deg,
    rgba(255, 255, 255, 0) 360deg);
}
a:hover .acr-rim--arc,
.u-hover-parent:hover .acr-rim--arc {
  animation: hv-arcrun 1.25s cubic-bezier(.4, .1, .3, 1) forwards;
}
@keyframes hv-arcrun {
  0% { --hv-arc: 160deg; opacity: 0; }
  13% { opacity: 1; }
  78% { opacity: 1; }
  100% { --hv-arc: 520deg; opacity: 0; }
}
/* @property非対応ブラウザ(Firefox 128未満等)では弧が回らず、
   リングが一瞬フェードして消えるだけになる（表示は壊れない） */

/* --- 投稿系サムネイルの共通ホバー演出（確定仕様 2026-09-08・デザイナー回答） ---
   「投稿系（記事ブロック・特集連載ブロック）のサムネイルは、どのページ・
   どのカードでも同じアニメーションが入る」という回答に基づき、記事カードの演出
   （水色ワイプ25% ＋ 光の弧が縁を一周）を投稿系サムネイル全部に共通で当てる。
   ワイプが25%（--hv-wipe-card）なのは光の弧と併用するため（原本 hover-styles.css 準拠）。
   この章に集約してあるので、部品ごとに個別のワイプを書き足さないこと。

   対象（6部品）:
     .r-article-card__thumb      記事カード（recent / hot / top / feature_top /
                                 category_top / member_detail_view / search_results）
     .r-serial-card__thumb       連載カード（feature_list / feature_top）
     .r-top-fv__thumb            トップFVの記事
     .r-top-serial__feat-thumb   トップの特集
     .s-card__thumb              記事下ブロックのカード（entry / element_list）
     .art-card-lg__thumb         本文内のリンクカード大（entry / element_list）
   ＋ 旧デザインの埋め込み記事カード .embed-article（ワイプのみ。理由は下記）

   ＋ メンバー写真（2026-10-06 デザイナー依頼で追加。円形なので器も円で切る。下の別ブロック）
     .r-staff__photo             メンバー一覧（member）
     .r-top-staff__photo         トップ／about の編集部メンバー
   対象外: メンバー詳細の写真 .r-profile__photo（リンクではないため）
   あわせて、カードではない写真にも入れない:
     .art-head__thumb（記事冒頭画像）/ .art-head__avatar（著者アイコン）/
     .balloon .pic・.popup .pic（吹き出しの話者）/ .profile .pic（プロフィール写真）/
     .art-offshot__thumb（オフショットの切替サムネ）/
     .r-pagehead__hero-thumb（特集カテトップのヒーロー画像）
   他媒体カード（ブックス・YouTube）は投稿系ではないため弧は付けず、
   原本 hover-styles.css 第5章「リンクブロック」の指定どおり50%ワイプのみ:
     .s-card--media（記事下の「他の媒体で、サイボウズ式にふれる」）
   ※トップページのブックス（.r-top-book__thumb）と動画（.r-top-video__thumb）は、2026-10-21 の
     先方FB「ホバーは記事と統一したほうが自然」で、記事カードと同じ「25%ワイプ＋光の弧」にした
     （ブックスはワイプをここに追加・旧 scale は廃止。動画のワイプは 04 側の既存指定。弧はテンプレートの .acr-rim）

   光の弧を出すには器の中に
   <span class="acr-rim acr-rim--arc" aria-hidden="true"></span> を置く必要がある。
   .embed-article は過去記事のHTMLが実体でspanを差し込めないため、弧なし・ワイプのみ。 */

/* 器: ワイプと弧の位置基準。既に持っている部品（記事カード・連載カード・
   トップFV・トップ特集）は各部品側で宣言済みなので、ここでは未宣言のものだけ。
   角丸4pxは中の画像の角丸に合わせている（ワイプを画像の輪郭で切るため） */
.s-card__thumb,
.art-card-lg__thumb,
.m-editor .embed-article .pic a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

/* ワイプ本体: 3倍幅グラデを右から左へスライドし、明るい面が左から広がって見える */
.r-article-card__thumb::after,
.r-serial-card__thumb::after,
.r-top-fv__thumb::after,
.r-top-serial__feat-thumb::after,
.s-card__thumb::after,
.art-card-lg__thumb::after,
.r-top-book__thumb::after,
.m-editor .embed-article .pic a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--hv-wipe-card) 0%, var(--hv-wipe-card) 33.33%,
    transparent 66.66%, transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: background-position var(--hv-dur-wipe) var(--hv-ease-wipe);
  pointer-events: none;
}

/* 他媒体カード（ブックス・YouTube）は弧を併用しないので濃いほうの50%ワイプ */
.s-card--media .s-card__thumb::after {
  background: linear-gradient(90deg,
    var(--hv-wipe) 0%, var(--hv-wipe) 33.33%,
    transparent 66.66%, transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
}

/* ホバーで左から流す。カード本体が <a> のもの（連載カード・トップ特集・
   .s-card・.art-card-lg）は a:hover、<article>等に u-hover-parent を付けて
   いるもの（記事カード・トップFV）は u-hover-parent:hover で拾う */
a:hover :is(
  .r-article-card__thumb,
  .r-serial-card__thumb,
  .r-top-fv__thumb,
  .r-top-serial__feat-thumb,
  .s-card__thumb,
  .art-card-lg__thumb,
  .r-top-book__thumb
)::after,
.u-hover-parent:hover :is(
  .r-article-card__thumb,
  .r-serial-card__thumb,
  .r-top-fv__thumb,
  .r-top-serial__feat-thumb,
  .s-card__thumb,
  .art-card-lg__thumb
)::after {
  background-position: 0 0;
}

/* 埋め込み記事カードはサムネと本文が別リンクなので、カード全体のホバーで流す */
.m-editor .embed-article:hover .pic a::after {
  background-position: 0 0;
}

/* --- メンバー写真（2026-10-06 デザイナー依頼） ---
   「ホバー範囲は写真＋文字なのに、動くのが文字の下線だけ」という指摘を受け、記事カードの
   サムネイルと同じ演出（水色ワイプ25% ＋ 光の弧）を円形の写真にも当てる。
   器を border-radius:50% + overflow:hidden にすると、ワイプは円で切られ、
   .acr-rim（border-radius: inherit）は円の縁に沿って一周する。
   ホバーの拾い方: メンバー一覧は a.r-staff__link（display:contents・u-hover-parent）、
   トップ／about は article.r-top-staff（u-hover-parent）。どちらも写真と名前の両方で反応する。
   .r-staff__photo は絶対配置（SPで位置の上書きあり）なので position は足さない */
.r-staff__photo,
.r-top-staff__photo {
  overflow: hidden;
  border-radius: 50%;
}

.r-top-staff__photo {
  position: relative;
}

.r-staff__photo::after,
.r-top-staff__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--hv-wipe-card) 0%, var(--hv-wipe-card) 33.33%,
    transparent 66.66%, transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: background-position var(--hv-dur-wipe) var(--hv-ease-wipe);
  pointer-events: none;
}

.u-hover-parent:hover :is(.r-staff__photo, .r-top-staff__photo)::after {
  background-position: 0 0;
}

/* --- 本文内のボタン・バナー・埋め込み記事カードの矢印スワップ（2026-09-09） ---
   対象は旧デザインのクラス（過去記事の本文HTMLがそのまま使う）5部品:
     .frame-block .link-button  強調デザイン内のボタン
     .btn                       記事内ボタン
     .text-banner               テキストバナー
     .text-img-banner           画像バナー
     .embed-article             埋め込み記事カード（タイトル文末の丸矢印）
   いずれも矢印がSVGではなく疑似要素の背景なので、CTAボタン（.r-btn-pill）の
   transform 方式は使えない。丸と矢印をレイヤーに分け、矢印レイヤーの
   background-position だけを送ることで同じ「1回・跳ねない」スワップにする。
   マークアップを触らずCSSだけで完結するため、過去記事にもそのまま効く。

   移動距離が px 固定なのは、矢印画像が丸と同寸（background-size:100% 100%）で
   background-position の % が 0 に潰れるため。各部品の ::after 側で
   --hv-swap-dist に丸の直径を入れている（SPのサイズ上書き側にも同じ指定が必要）。 */
@keyframes hv-bg-arrow-swap {
  0%   { background-position: center; }
  49%  { background-position: calc(50% + var(--hv-swap-dist)) center; }
  50%  { background-position: calc(50% - var(--hv-swap-dist)) center; }
  100% { background-position: center; }
}

.m-editor .frame-block .link-button:hover::after,
.m-editor a.frame-block:hover .link-button::after,
.m-editor .btn:hover::after,
.m-editor .text-banner:hover span::after,
.m-editor .text-img-banner:hover span::after,
.m-editor .embed-article:hover .entry-title::after {
  animation: hv-bg-arrow-swap .4s ease forwards;
}

/* 記事内ボタンの光の弧。CTAボタン（.acr-rim--arc）と同じ hv-arcrun を ::before で回す */
.m-editor .btn:hover::before {
  animation: hv-arcrun 1.25s cubic-bezier(.4, .1, .3, 1) forwards;
}

/* 埋め込み記事カードの丸は濃紺なので、ホバーでは見出しリンクの丸矢印と同じく
   地色をホバー色に変える（白丸の4部品は丸を白のまま保つ） */
.m-editor .embed-article:hover .entry-title::after {
  background-color: var(--hv-hover-text);
}

/* --- 見出しリンク（丸矢印つき）: テキスト下線 ＋ 丸矢印のスライドスワップ ---
   確定仕様 2026-09-04（原本: docs/reference/hover-animation/hover-heading-link.css）。
   挙動は2つ:
     テキスト … 記事カードのタイトルと同じ1px下線スライドイン＋文字色（共通の.u-underline）
     丸矢印   … 円の地色がホバー色へ0.3sで変化し、矢印はCTAボタンと同じ
                 スライドスワップ（1回・跳ねない）で右へ抜けて左から戻る
   適用先は .r-arrow-circle を内包するリンク（連載カード .s-card__serial-title /
   他媒体カード .s-card__media-title / リンクカード大 .art-card-lg__title /
   プロフィールリンク .profile__link / 担当スタッフ名 .art-staff__name）。
   オフショットの送りボタンは <button> なので a:hover に当たらず、従来の挙動のまま。

   原本CSSは .hlink / .hlink__text / .hlink__chip という新クラスで書かれているが、
   このサイトには同じ役割の部品（テキスト＋.r-arrow-circle）が既にあるため、
   新クラスを並立させず既存部品に挙動だけを与えている。
   下線色・ホバー色・イージングは原本と同値（--hv-* トークンに既出）。 */
a:hover .r-arrow-circle,
.u-hover-parent:hover .r-arrow-circle {
  background-color: var(--hv-hover-text);
}

a:hover .r-arrow-circle::before,
.u-hover-parent:hover .r-arrow-circle::before {
  animation: hv-arrow-swap .4s ease forwards;
}

/* --- 共通: 「最後の1文字＋矢印」を束ねた見出しリンク（.u-underline--tail） ---
   対象: トップ／about のメンバー名（.r-top-staff__tail）、記事下カードの連載名（.s-card__serial-tail）、
   本文リンクカード大（.art-card-lg__tail）。矢印だけが次の行に落ちないよう、最後の1文字と矢印を
   nowrap の tail で束ねる構造は保ちつつ、下線は名前・タイトル全体を包む1つの .u-underline に持たせる
   （2026-09-25。以前は tail 側にも .u-underline があり、下線が2か所から伸びて見えた）。
   構造:
     <span class="u-underline u-underline--tail">先頭〜<span class="○○__tail">最後の1文字<span class="r-arrow-circle"></span></span></span>
   矢印も .u-underline の中にあるので、そのままだと下線が矢印の下まで伸びる。ホバー時の伸び切り幅を
   「100% − 矢印の幅（径 + margin-left）」= --hv-tail-w にして、矢印の手前で止める。
   0% → calc(100% − Npx) の遷移は1本の background-size アニメーションなので、伸びる線は1本 */
a:hover .u-underline--tail,
.u-hover-parent:hover .u-underline--tail {
  background-size: calc(100% - var(--hv-tail-w, 21px)) 1px;
}

/* --hv-tail-w = 矢印の径 + margin-left（各部品の .r-arrow-circle の指定と一致させる） */
.r-top-staff__name {
  --hv-tail-w: 21px;   /* 15 + 6 */
}

.s-card__serial-title,
.art-card-lg__title {
  --hv-tail-w: 32px;   /* 24 + 8 */
}

@media (max-width: 767px) {
  .r-top-staff__name {
    --hv-tail-w: 19px;   /* 15 + 4 */
  }

  .s-card__serial-title {
    --hv-tail-w: 30px;   /* 24 + 6 */
  }

  .art-card-lg__title {
    --hv-tail-w: 26px;   /* 20 + 6 */
  }
}

/* --- 共通: flexコンテナの中で .u-underline を使うための器 ---
   .u-underline は display:inline が必須（下線が行順に流れる条件）。
   ところが flex コンテナの直接の子は display:inline がblock化されるため、
   .u-underline を直接flexアイテムにすると2行以上に折り返したときに
   「最終行の下に、テキスト幅ではなくブロック幅の下線が1本」出てしまう。
   間にこの器を挟むと、器がflexアイテムになり .u-underline はその中の
   インライン要素として正しく行ごとに下線を引く。

   見出しリンクの親をflexからインライン整列（display:block）に変える案は不採用。
   丸矢印がインラインになると、テキストの折り返し位置によって
   「矢印だけが単独の行に落ちる」幅が多数生じることを実測で確認したため
   （2026-09-08。連載カードで幅140〜520pxを4px刻みで走査し59通りで発生）。
   flexなら矢印は必ずテキストと同じ行に留まり、既存の縦位置も変わらない。 */
.u-underline-wrap {
  min-width: 0;
}


/* --- ヘッダー/フッターのテキストナビ共通: 下線スライドインに切り替え。
   ロゴ・SNSアイコン等（u-hover-parentを持たない<a>）は従来のopacityフェードのまま --- */
.g-header a.u-hover-parent:hover,
.g-footer a.u-hover-parent:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .u-underline,
  .u-icon-hop,
  a:hover .u-icon-hop,
  .u-hover-parent:hover .u-icon-hop,
  .acr-rim,
  a:hover .acr-rim--arc,
  .u-hover-parent:hover .acr-rim--arc,
  .r-btn-pill,
  .r-btn-pill__icon > *,
  .r-article-card__thumb::after,
  .r-serial-card__thumb::after,
  .r-top-fv__thumb::after,
  .r-top-serial__feat-thumb::after,
  .s-card__thumb::after,
  .art-card-lg__thumb::after,
  .m-editor .embed-article .pic a::after,
  .r-staff__photo::after,
  .r-top-staff__photo::after,
  .m-editor .frame-block .link-button::after,
  .m-editor .btn,
  .m-editor .btn::before,
  .m-editor .btn:hover::before,
  .m-editor .btn::after,
  .m-editor .text-banner span::after,
  .m-editor .text-img-banner span::after,
  .m-editor .embed-article .entry-title,
  .m-editor .embed-article .entry-title::after,
  .r-toc-toggle,
  .r-toc-toggle svg,
  .r-arrow-circle,
  .r-arrow-circle::before,
  a:hover .r-arrow-circle::before,
  .u-hover-parent:hover .r-arrow-circle::before {
    animation: none !important;
    transition: none !important;
  }
  a:hover .u-underline,
  .u-hover-parent:hover .u-underline {
    background-size: 100% 1px; /* 下線は即時表示 */
  }
  a:hover .u-underline--tail,
  .u-hover-parent:hover .u-underline--tail {
    background-size: calc(100% - var(--hv-tail-w, 21px)) 1px; /* 矢印の手前で止める（通常時と同じ幅） */
  }
  /* 丸矢印の地色変化は状態表示なので、動きを止めても即時反映する */
  a:hover .r-arrow-circle,
  .u-hover-parent:hover .r-arrow-circle,
  .m-editor .embed-article:hover .entry-title::after {
    background-color: var(--hv-hover-text);
  }
  .m-editor .embed-article:hover .entry-title {
    background-size: 100% 1px; /* 下線は即時表示 */
  }
}


/* =========================================================================
   トップページ（index.html）
   Figma「トップページ」PC(6718:80615) / SP(6718:81092)
   - .r-top          … ページ本体のラッパー（main）。他ページと同じ方針で
                       リセットをスコープ内に閉じ込める
   - .r-top-h2       … トップ専用の見出し（テキスト＋2px下線）。下層ページの
                       左バー見出し（.r-h2）とは別デザイン
   - .r-top-panel    … 白い角丸パネル。--recent（左だけ角丸・右端まで伸びる）
                       と --media（両側角丸・中央寄せ）の2種
   - .r-top-ticks    … パネル縁の目盛り飾り（SVGタイルの背景画像で繰り返す）
   - 記事カード .r-article-card / バッジ .r-cat-badge / CTA .r-btn-pill は
     一覧系ページの共通部品を流用（トップ固有の差分だけここで上書き）
   ========================================================================= */

.r-top {
  display: block;
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: #141c1f;
}

.r-top,
.r-top * {
  box-sizing: border-box;
}

.r-top a {
  color: inherit;
  text-decoration: none;
}

.r-top a:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

.r-top p,
.r-top h2 {
  margin: 0;
}

.r-top img {
  display: block;
  max-width: 100%;
}

.r-top__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- 見出し（テキスト＋2px下線）。各セクションの上余白は見出しが持つ --- */
.r-top-h2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 100px;
}

.r-top-h2::after {
  content: '';
  display: block;
  height: 2px;
  border-radius: 20px;
  background: #63b4d3;
}

.r-top-h2__txt {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* パネル内の最初の見出し（Figma: pt-80）／連載セクションの見出し（pt-64） */
.r-top-h2--first {
  padding-top: 80px;
}

.r-top-h2--serial {
  padding-top: 64px;
}

/* --- FV_注目記事 --- */
/* 背景は body.r-bg の方眼罫線のまま（単色背景は付けない。2026-09-07 作業依頼者判断。
   Figma の bg_PC_FV レイヤーは実装しない） */
.r-top-fv {
  padding: 64px var(--cs-gutter) 80px;
}

.r-top-fv__inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

/* 1件目の大カード（Figma: 624px = 1200px の 52%） */
.r-top-fv__main {
  position: relative;   /* stretched-link の基準 */
  display: flex;
  flex: 0 0 52%;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.r-top-fv__thumb {
  position: relative;   /* .acr-rim / ワイプの基準 */
  overflow: hidden;
  margin-bottom: 4px;   /* サムネ→本文は16px（カード内gap12+4） */
  border-radius: 4px;
}

.r-top-fv__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid #e3e7e8;
  border-radius: 4px;   /* .r-article-card__thumb img と同じ理由（角丸＋枠線を画像自身に） */
}

/* サムネイルのホバー演出（水色ワイプ＋光の弧）は
   「投稿系サムネイルの共通ホバー演出」に集約（ホバーアニメーションの章） */

.r-top-fv__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.r-top-fv__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.r-top-fv__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.r-top-fv__title .u-underline {
  transition-duration: var(--hv-dur-underline-title), var(--hv-dur-color);
}

/* カード全体をリンクにする透明レイヤー（タイトルのaに付ける） */
.r-top-fv__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* 担当者（執筆／編集）。カード全体リンクより前面に出して単独で踏めるようにする */
.r-top-fv__staff {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
}

.r-top-fv__staff img,
.r-top-fv__staff-ph {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid #e3e7e8;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.r-top-fv__staff-ph {
  background: #e3e7e8;
}

.r-top-fv__staff-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.r-top-fv__staff-role {
  font-size: 12px;
  color: #00425c;
}

.r-top-fv__staff-name {
  font-size: 16px;
  font-weight: 700;
  transition: color var(--hv-dur-color);
}

.r-top-fv__staff:hover .r-top-fv__staff-name {
  color: var(--hv-hover-text);
}

/* 2〜5件目の小カード（2×2） */
.r-top-fv__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  min-width: 0;
}

/* --- 白パネル --- */
.r-top-panel {
  position: relative;   /* 目盛り飾りの基準 */
  background: #fff;
  box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
}

/* 新着・人気のパネル: 左端は「中央寄せしたコンテンツ幅1200pxの左端から70px外側」
   （.r-pagehead と同じ計算。1440pxでは左50px）。右側は画面右端まで白が伸びる。
   中身は左詰め（パネル自体が非対称なので margin:auto では中央に揃わない） */
.r-top-panel--recent {
  margin-left: max(50px, calc(50% - 670px));
  padding: 0 var(--cs-gutter) 48px 70px;
  border-radius: 40px 0 0 40px;
}

.r-top-panel--recent > .r-top__container {
  margin-left: 0;
}

/* ブックス〜メンバーのパネル: 両側角丸・中央寄せ（「他の連載をみる」と同じ寸法） */
.r-top-media {
  padding: 0 50px 80px;
}

.r-top-panel--media {
  max-width: 1340px;   /* コンテンツ1200 + 左右70px */
  margin: 0 auto;
  padding: 0 70px 100px;
  border-radius: 40px;
}

/* --- パネル縁の目盛り飾り（Figma Frame 1000008714）
   10本1組（長20 / 短6×4 / 中12 / 短6×4）を12px間隔で繰り返す＝120pxで1周。
   縦（--side）はパネルの左右縁、横（--bottom）はSPで下縁に出す --- */
.r-top-ticks {
  position: absolute;
  opacity: 0.6;
  pointer-events: none;
}

.r-top-ticks--side {
  top: 72px;
  bottom: 40px;
  width: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='120' viewBox='0 0 20 120'%3E%3Cg fill='%23d8e9f0'%3E%3Crect width='20' height='2' rx='1'/%3E%3Crect y='12' width='6' height='2' rx='1'/%3E%3Crect y='24' width='6' height='2' rx='1'/%3E%3Crect y='36' width='6' height='2' rx='1'/%3E%3Crect y='48' width='6' height='2' rx='1'/%3E%3Crect y='60' width='12' height='2' rx='1'/%3E%3Crect y='72' width='6' height='2' rx='1'/%3E%3Crect y='84' width='6' height='2' rx='1'/%3E%3Crect y='96' width='6' height='2' rx='1'/%3E%3Crect y='108' width='6' height='2' rx='1'/%3E%3C/g%3E%3C/svg%3E") left top / 20px 120px repeat-y;
}

/* 新着パネル: 左縁の内側に、縁から右へ向かって伸びる */
.r-top-panel--recent .r-top-ticks--side {
  left: 0;
}

/* メディアパネル: 右縁の外側に、縁から右へ向かって伸びる */
.r-top-panel--media .r-top-ticks--side {
  right: -20px;
  top: 46px;
}

.r-top-ticks--bottom {
  display: none;   /* SPのみ */
  left: 19px;
  right: 19px;
  bottom: 0;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='20' viewBox='0 0 120 20'%3E%3Cg fill='%23d8e9f0'%3E%3Crect width='2' height='20' rx='1'/%3E%3Crect x='12' width='2' height='6' rx='1'/%3E%3Crect x='24' width='2' height='6' rx='1'/%3E%3Crect x='36' width='2' height='6' rx='1'/%3E%3Crect x='48' width='2' height='6' rx='1'/%3E%3Crect x='60' width='2' height='12' rx='1'/%3E%3Crect x='72' width='2' height='6' rx='1'/%3E%3Crect x='84' width='2' height='6' rx='1'/%3E%3Crect x='96' width='2' height='6' rx='1'/%3E%3Crect x='108' width='2' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E") left top / 120px 20px repeat-x;
  transform: scaleY(-1);   /* 下縁から上へ向かって伸びる */
}

/* --- 新着記事（4列）／人気の読みもの（3列） --- */
.r-top-recent__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 40px;
  padding-top: 48px;
}

.r-top-hot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  padding-top: 48px;
}

/* --- 連載 --- */
.r-top-serial {
  padding: 0 var(--cs-gutter) 100px;
}

.r-top-serial__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 48px;
}

/* 連載ブロックの区切り線（gap48 + 線2px + 48） */
.r-top-serial__row {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.r-top-serial__row + .r-top-serial__row {
  padding-top: 48px;
  border-top: 2px solid #a1d3e6;
}

/* 左: 連載の紹介（Figma: 528px = 1200px の 44%） */
.r-top-serial__feat {
  display: flex;
  flex: 0 0 44%;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.r-top-serial__feat-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.r-top-serial__feat-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;   /* 特集・連載の画像はOGP比率 */
  object-fit: cover;
  border: 1px solid #e3e7e8;
  border-radius: 4px;   /* .r-article-card__thumb img と同じ理由（角丸＋枠線を画像自身に） */
}

/* サムネイルのホバー演出（水色ワイプ＋光の弧）は
   「投稿系サムネイルの共通ホバー演出」に集約（ホバーアニメーションの章） */

.r-top-serial__feat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.r-top-serial__feat-title {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.r-top-serial__feat-title .u-underline {
  transition-duration: var(--hv-dur-underline-title), var(--hv-dur-color);
}

/* 矢印はタイトル末尾に添える（折り返しても最後の単語に追従する）。
   2026-09-25 デザイナー指示 No.3/No.33: 共通部品 .r-arrow-circle（地色変化＋矢印スワップ）に切り替え。
   径は Figma どおり 21px。矢印画像は 21px 用（線幅1px）を個別に持つ */
.r-top-serial__feat-arrow {
  width: 21px;
  height: 21px;
  margin-left: 12px;
  vertical-align: -3px;
}

.r-top-serial__feat-arrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M9.5 7L13 10.5L9.5 14' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12.5 10.5H6.5' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.r-top-serial__feat-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* 概要文は3行で省略 */
  overflow: hidden;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* 右: 連載の記事4件（2×2） */
.r-top-serial__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  min-width: 0;
}

/* --- サイボウズ式 ブックス（3列） --- */
.r-top-books__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 48px;
}

.r-top-book {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* 書影の台（薄い水色の16:9の枡）。書影は上下12px空けて中央に収める */
.r-top-book__thumb {
  position: relative;
  display: block;
  aspect-ratio: 384 / 216;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f7fa;
}

.r-top-book__thumb img {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: calc(100% - 24px);
  object-fit: contain;
}

/* ホバー: 書影の拡大（scale 1.03）をやめ、記事カードと同じ「水色ワイプ25%＋縁を一周する光」に
   （2026-10-21 先方FB「ブックス・動画にも記事と同様のアニメーションを」。ワイプは renewal-css-03-lists の
   「投稿系サムネイルの共通ホバー演出」にまとめてあり、光の弧はテンプレートの .acr-rim） */

.r-top-book__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.r-top-book__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.r-top-book__author {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #637278;
}

.r-top-book__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #637278;
}

/* --- 動画（サイボウズ式 チャンネル／白黒つけない会議。3列） --- */
.r-top-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 48px;
}

.r-top-video {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.r-top-video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #e3e7e8;   /* 2026-09-18 デザイナー指示: 枠線は #E3E7E8（旧 #a1d3e6） */
  border-radius: 4px;
  background: #a1d3e6;
}

/* YouTube の hqdefault.jpg は4:3（上下に黒帯）のため、16:9 の枡で切り抜く */
.r-top-video__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r-top-video__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--hv-wipe-card) 0%, var(--hv-wipe-card) 33.33%,
    transparent 66.66%, transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: background-position var(--hv-dur-wipe) var(--hv-ease-wipe);
  pointer-events: none;
}

.r-top-video:hover .r-top-video__thumb::after {
  background-position: 0 0;
}

/* 再生ボタン（2026-09-25 デザイナー指示 No.3「チャンネルの丸のホバー」）:
   .r-arrow-circle と同じ作り（円＝overflow:hidden の窓、::before＝アイコン）にし、
   ホバーで地色がホバー色に変わり、三角がCTAと同じスライドスワップで右へ抜けて左から戻る。
   旧: インライン svg ＋ .u-icon-hop（ホップ） */
.r-top-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  overflow: hidden;
  border-radius: 50%;
  background: #63b4d3;
  transition: background-color var(--hv-dur-color);
}

.r-top-video__play::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none'%3E%3Cpath d='M17.5 14.5V29.5L29.5 22L17.5 14.5Z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.r-top-video:hover .r-top-video__play {
  background-color: var(--hv-hover-text);
}

.r-top-video:hover .r-top-video__play::before {
  animation: hv-arrow-swap .4s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .r-top-video__play,
  .r-top-video:hover .r-top-video__play::before {
    transition: none;
    animation: none;
  }
}

.r-top-video__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* --- 編集部メンバー（最大7人・7列。7列未満のタブレット/SPでは折り返す） --- */
.r-top-staff-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px;
  padding-top: 48px;
  align-items: start;
}

.r-top-staff {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.r-top-staff__photo {
  display: block;
  width: 140px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.r-top-staff__photo img,
.r-top-staff__ph {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #e3e7e8;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.r-top-staff__ph {
  background: #e3e7e8;
}

.r-top-staff__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.r-top-staff__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* 氏名の折り返し（2026-09-07 作業依頼者の指示）:
   - 4〜5文字の氏名は矢印まで1行に収める
   - 6文字以上は折り返してよいが、「矢印だけが次の行に落ちる」のは不可
   実現方法:
   1. 氏名行だけ右側の列間（gap 24px）へ 16px はみ出せるようにして、
      SPの3列（1列約92px）でも「深水 麻初 →」（約94px）が1行に収まる幅を確保する
      （Figma でも「山本 悠子 →」の矢印は列幅の外に出ている）
   2. 氏名の最後の1文字と矢印を .r-top-staff__tail（nowrap）で束ねる。
      折り返すときは最後の1文字が矢印を連れて次の行へ移るので、矢印だけが
      孤立しない（テンプレート側で氏名を「先頭〜1文字前」と「最後の1文字」に分けて出力） */
.r-top-staff__name {
  margin-right: -16px;
}

.r-top-staff__tail {
  white-space: nowrap;
}

/* 丸矢印は共通部品 .r-arrow-circle--sm（15px）。ホバーの地色変化＋矢印スワップは
   ホバー章の a:hover .r-arrow-circle が担う（2026-09-25・メンバー一覧 No.57 と同じ部品） */
.r-top-staff__name .r-arrow-circle {
  margin-left: 6px;
  vertical-align: -1px;
}

.r-top-staff__title {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #637278;
}

/* 所属と肩書を1行ずつ（片方だけでも崩れない） */
.r-top-staff__title span {
  display: block;
}

/* --- サイボウズ式について（2026-10-09 追加。Figma トップページ_PC 7878:186029 の 7878:187808）
   左にロゴ（幅 392px・本文の高さの中で縦中央。画像は about.html と同じ新ロゴ）、右に本文 760px。
   SP のデザインは無いため、1024px 以下はロゴ→本文の縦積み（本文は about.html の SP と同じ 16px） --- */
.r-top-about__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding-top: 40px;
}

.r-top-about__logo {
  flex: 0 1 392px;
  min-width: 0;
}

.r-top-about__logo img {
  width: 100%;
  height: auto;
}

.r-top-about__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 0 1 760px;
  min-width: 0;
}

.r-top-about__text p {
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

@media (max-width: 1024px) {
  .r-top-about__body {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .r-top-about__logo {
    flex: none;
    width: 100%;
    max-width: 392px;
    margin: 0 auto;
  }

  .r-top-about__text {
    flex: none;
  }
}

@media (max-width: 767px) {
  .r-top-about__body {
    gap: 24px;
    padding-top: 32px;
  }

  .r-top-about__logo {
    max-width: 280px;
  }

  .r-top-about__text {
    gap: 16px;
  }

  .r-top-about__text p {
    font-size: 16px;
  }
}

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
  .r-top-fv {
    padding: 48px 40px 64px;
  }

  .r-top-fv__inner {
    flex-direction: column;
    gap: 40px;
  }

  .r-top-fv__main {
    flex: none;
    width: 100%;
  }

  .r-top-fv__grid {
    width: 100%;
  }

  .r-top-panel--recent {
    padding: 0 40px 48px 40px;
  }

  .r-top-recent__grid,
  .r-top-hot__grid,
  .r-top-books__grid,
  .r-top-videos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r-top-serial {
    padding: 0 40px 80px;
  }

  .r-top-serial__row {
    flex-direction: column;
    gap: 32px;
  }

  .r-top-serial__feat {
    flex: none;
    width: 100%;
  }

  .r-top-serial__grid {
    width: 100%;
  }

  .r-top-media {
    padding: 0 40px 64px;
  }

  .r-top-panel--media {
    padding: 0 40px 80px;
  }

  .r-top-staff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* SP: Figma 6718:81092（コンテンツ幅323px＝左右26px） */
@media (max-width: 767px) {
  .r-top-h2 {
    gap: 8px;
    padding-top: 64px;
  }

  .r-top-h2__txt {
    font-size: 22px;
  }

  .r-top-h2--first,
  .r-top-h2--serial {
    padding-top: 48px;
  }

  /* トップのCTAの上余白は共通の40pxと同じ（2026-09-07 に共通側を24px→40pxへ変更）。編集部メンバーのみ24px */
  .r-top .r-btn-wrap {
    padding-top: 40px;
  }

  .r-top .r-btn-wrap--members {
    padding-top: 24px;
  }

  /* --- FV --- */
  .r-top-fv {
    padding: 48px 26px 40px;
  }

  .r-top-fv__inner {
    gap: 40px;
  }

  .r-top-fv__thumb {
    margin-bottom: 0;
  }

  .r-top-fv__thumb img {
    aspect-ratio: 384 / 202;
  }

  .r-top-fv__body {
    gap: 8px;
  }

  .r-top-fv__title {
    font-size: 18px;
  }

  .r-top-fv__staff img,
  .r-top-fv__staff-ph {
    width: 40px;
    height: 40px;
  }

  .r-top-fv__staff-name {
    font-size: 13px;
  }

  /* 2〜5件目は縦1列のサムネ横並びカード（.r-article-card のSP規則そのまま） */
  .r-top-fv__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* --- 白パネル --- */
  /* SP は左右4隅とも 16px（2026-09-18 デザイナー指示。PC は左だけ角丸） */
  .r-top-panel--recent {
    margin-left: 0;
    padding: 0 26px 56px;
    border-radius: 16px;
  }

  /* 下はフッターとの間を 56px 空ける（Figma トップページ_SP 6718:81092: footer の上 56px が透明で、
     白いパネルとフッターの間に方眼の背景が見える。2026-10-05 余白が 0 だった指摘で修正） */
  .r-top-media {
    padding: 0 0 56px;
  }

  .r-top-panel--media {
    padding: 0 26px 56px;
    border-radius: 16px;
  }

  .r-top-ticks--side {
    display: none;
  }

  .r-top-ticks--bottom {
    display: block;
  }

  /* --- 新着・人気: 縦1列 --- */
  .r-top-recent__grid,
  .r-top-hot__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  /* 新着記事のカードはSPでも公開日を出す（トップのデザインのみ。
     一覧共通ルール（SPで日付非表示）の例外） */
  .r-top-recent .r-article-card__date {
    display: flex;
  }

  .r-top-recent .r-article-card__meta {
    justify-content: space-between;
  }

  /* --- 連載 --- */
  .r-top-serial {
    padding: 0 26px 56px;
  }

  .r-top-serial__list {
    gap: 40px;
    padding-top: 40px;
  }

  .r-top-serial__row {
    gap: 32px;
  }

  .r-top-serial__row + .r-top-serial__row {
    padding-top: 40px;
  }

  .r-top-serial__feat {
    gap: 8px;
  }

  .r-top-serial__feat-title {
    font-size: 20px;
  }

  .r-top-serial__feat-arrow {
    margin-left: 6px;
  }

  /* 連載の記事4件は2×2の縦カード（サムネ全幅 → タイトル → バッジ） */
  .r-top-serial__grid {
    gap: 24px 16px;
  }

  .r-top-serial__grid .r-article-card {
    flex-direction: column;
    gap: 4px;
  }

  .r-top-serial__grid .r-article-card__thumb {
    width: 100%;
    margin-top: 0;   /* 横並びカードの「サムネの上 4px」（03）を打ち消す */
  }

  /* 本文の幅をカードの幅に揃える。カードは align-items: flex-start なので、何もしないと本文は
     中身の1行分の幅（nowrap の連載名の長さ）まで広がり、連載名の「…」省略が効かずに横へはみ出す
     （2026-11-04 ②-1 で連載名「「わかりあえない」から進むテクノロジー」がスマホで 81px はみ出した） */
  .r-top-serial__grid .r-article-card__body {
    gap: 6px;
    width: 100%;
  }

  /* --- ブックス: 書影を左に置いた横並び --- */
  .r-top-books__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .r-top-book {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .r-top-book__thumb {
    flex: none;
    width: 100px;
    height: 140px;
    aspect-ratio: auto;
  }

  .r-top-book__body {
    flex: 1;
  }

  .r-top-book__title {
    font-size: 14px;
  }

  /* --- 動画: 縦1列 --- */
  .r-top-videos__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  /* --- 編集部メンバー: 3列 ---
     2026-09-18 デザイナー指示: 写真 72→92px・列間 24→22px・氏名と矢印の間 6→4px
     （4文字の氏名＋矢印を1行に収めるため。1列 = (323 - 22×2) / 3 ≒ 93px） */
  .r-top-staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 22px;
    padding-top: 40px;
  }

  .r-top-staff__photo {
    width: 92px;
  }

  .r-top-staff__name {
    font-size: 16px;
  }

  .r-top-staff__name .r-arrow-circle {
    margin-left: 4px;
  }
}

/* =========================================================================
   サイボウズ式について（about.html）
   Figma「サイボウズ式について」PC (7006:94029) / SP (7006:93632)。2026-09-09
   - 見出しパネル .r-pagehead / パンくず / 見出し .r-h2 / CTA .r-btn-pill /
     編集部メンバー .r-top-staff（トップページの部品）は共通部品を流用
   - .r-about-anchors … パンくずの下・本文の先頭のページ内リンク（丸い下向き矢印つき）
   - .r-about-statement … ステートメント（左: 見出し 392px / 右: 本文 760px）
   - .r-about-era      … 「あゆみ」の1期分（左の縦線＋丸／テキスト 390px／ビジュアル 736px）
   - .r-about-visual   … 写真と吹き出しを絶対配置で散らすビジュアル（PC 736×514・SP 309×480 の
                          比率の箱に、Figma の座標を % に換算して置く。写真は傾き・影ごと
                          書き出した WebP なので CSS では left / top / width だけを指定）
   - .r-about-bubble   … 記事タイトルの吹き出し（右端に折り返しのある尻尾。speechbubble パレット）
   - .r-about-panel    … 下半分の白い角丸パネル（やらないこと／ロゴ／サイトの変遷／編集部メンバー）
   - .r-about-message  … 編集部から読者のみなさんへ
   ========================================================================= */

/* --- スコープ共通（他セクションと同じ方針でリセットを閉じ込める） ---
   ⚠️ 要素セレクタのリセット（p / h2 / ul / img …）は :where() で詳細度を 0 にする。
   .r-about p のように書くと詳細度 (0,1,1) になり、後続の単一クラス（.r-about-era__title 等 (0,1,0)）
   の padding / margin / display をすべて打ち消してしまう（2026-09-14 修正。旧 style.css の
   * { margin:0; padding:0 } が既にあるので、ここは保険としての意味しかない） */
.r-about,
.r-about * {
  box-sizing: border-box;
}

.r-about {
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: #141c1f;   /* Figma: regular/text_black_100 */
}

.r-about a {
  color: inherit;
  text-decoration: none;
}

.r-about a:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

:where(.r-about) :where(p, h2, h3, ul, ol) {
  margin: 0;
  padding: 0;
}

:where(.r-about) :where(ul, ol) {
  list-style: none;
}

:where(.r-about) img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* コンテンツ幅 1200px を中央寄せ（左右の余白は共通の --cs-gutter） */
.r-about__container {
  width: 100%;
  max-width: calc(1200px + var(--cs-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--cs-gutter);
}

/* このページのセクション見出しは間隔が広い（Figma 実測 80px。メンバー一覧と同じ） */
.r-about .r-h2 {
  padding-top: 80px;
}

/* ページ内リンクの停止位置（ハッシュ付きURLで直接開いたとき用の保険。クリック時は about.mtml の JS が
   ヘッダーの実測高さで同じ位置に止める）: 追従ヘッダー（PC 約106px）＋ 50px の位置に見出しの文字が
   来るようにする。リンク先はセクション要素で、その先頭には見出しの上余白 80px が含まれるため
   106 ＋ 50 − 80 ＝ 76px を指定する */
.r-about-statement,
.r-about-history,
.r-about-section,
.r-about-message {
  scroll-margin-top: 76px;
}

/* 768〜1024px は SP と同じヘッダー（上段 56px だけが追従。2026-10-02）で、見出しの上余白は PC の 80px のまま。
   56 ＋ 50 − 80 ＝ 26px */
@media (min-width: 768px) and (max-width: 1024px) {
  .r-about-statement,
  .r-about-history,
  .r-about-section,
  .r-about-message {
    scroll-margin-top: 26px;
  }
}

/* --- ページ内リンク（Figma PC 7992:31699 / SP 7992:32693） ---
   2026-10-20 先方FB「見出しの中にあると目立ちすぎ。SP のファーストビューで本文がほぼ見えない」を受けた
   デザイナーの修正デザインで、見出しパネルの中（旧 Figma 7006:94047）からパンくずの下へ移した。
   左端は本文と同じ（.r-about__container）。PC は文字・矢印の大きさは元のまま、項目の間 24px・行の間 20px */
.r-about-anchors {
  padding-top: 24px;
}

.r-about-anchors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
}

.r-about-anchors a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.r-about-anchors svg {
  flex: none;
  width: 24px;
  height: 24px;
  clip-path: circle(50%);   /* 流れる矢印を円の内側だけで見せる */
}

/* ホバー: 白い矢印だけが円の中を下へ抜け、上から戻る（1回・跳ねない）。
   2026-09-29 デザイナー指示: 旧 .u-icon-hop（丸ごとホップ）から、他の CTA の丸矢印
   （.r-arrow-circle / .r-btn-pill__icon の hv-arrow-swap）と同じスワップの縦向き版に変更。
   円（rect）は動かさない。移動量は viewBox 基準の 100%（＝円の直径）で、SP の 15px でも同じ比率 */
@keyframes hv-arrow-swap-down {
  0%   { transform: translateY(0); }
  49%  { transform: translateY(100%); }
  50%  { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.r-about-anchors__arrow {
  transform-box: view-box;
}

.r-about-anchors a:hover .r-about-anchors__arrow {
  animation: hv-arrow-swap-down .4s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .r-about-anchors a:hover .r-about-anchors__arrow {
    animation: none;
  }
}

/* --- 本文テキスト共通（18px / 行間2 / 段落間 24px） --- */
.r-about-text p {
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.r-about-text p + p {
  padding-top: 24px;
}

/* --- ステートメント（Figma 7006:94097: 見出し 392px ＋ 48px ＋ 本文 760px） --- */
.r-about-statement {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.r-about-statement .r-h2 {
  flex: 1 1 392px;
  min-width: 0;
}

/* 本文は 760px を上限に、画面が狭いときは縮む（1440px 未満で 392＋48＋760 が収まらないため） */
.r-about-statement__text {
  flex: 1 1 760px;
  max-width: 760px;
  min-width: 0;
  padding-top: 80px;   /* 見出しの上余白と同じ高さに揃える */
}

/* --- あゆみ: タイムラインの1期分（Figma 7006:94107） --- */
.r-about-era {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* 見出しの直後の1期目だけ 48px 空ける（2期目以降は前の期の下余白 100px が続く） */
.r-about-era--first {
  padding-top: 48px;
}

/* 縦線。重なり順は Figma どおり「淡い丸（下）→ 線 → 濃い丸（上）」。
   線が淡い丸の下に隠れないよう線に z-index を付け、濃い丸（::after）はさらに上に置く
   （.r-about-era__dot 自身には z-index を付けない＝スタッキングコンテキストを作らない） */
.r-about-era__rail {
  position: relative;
  flex: none;
  width: 2px;
}

.r-about-era__rail::before {
  content: '';
  position: relative;
  z-index: 1;
  display: block;
  width: 2px;
  height: 100%;
  background: #63b4d3;   /* bland_blue_60 */
}

/* 1期目は丸の中心から線が始まる（丸の上に線が突き出ない） */
.r-about-era--first .r-about-era__rail {
  padding-top: 10px;
}

.r-about-era--first .r-about-era__rail::before {
  border-radius: 20px 20px 0 0;
}

.r-about-era__dot {
  position: absolute;
  top: 0;
  left: -11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d8e9f0;   /* speechbubble/blue_20 */
}

.r-about-era__dot::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #63b4d3;
}

.r-about-era__inner {
  display: flex;
  align-items: flex-start;   /* Figma どおりテキストとビジュアルは上揃え。期間ラベルの行が左の点と同じ高さになる（2026-09-25 No.61。旧 center） */
  gap: 48px;
  flex: 1 1 0;
  min-width: 0;
  padding-bottom: 100px;
}

.r-about-era__text {
  flex: none;
  width: 390px;
}

/* 期の名前｜年（例: 立ち上げ期 ｜ 2012 ─ 2014） */
.r-about-era__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #1479a0;   /* speechbubble/blue_90 */
}

.r-about-era__sep {
  flex: none;
  width: 2px;
  height: 16px;
  border-radius: 3px;
  background: #a1d3e6;   /* bland_blue_40 */
}

.r-about-era__years {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #2a7795;   /* 2026-10-01 アクセシビリティ対応（ガイドライン 1.4.3）: Figma の #63b4d3 は背景（方眼 #f0f7fa）に対して 2.15:1 で、
                       18px 太字に必要な 4.5:1 に届かなかった（大きい文字扱いは 18.66px 以上の太字から）。色味はそのままに明るさだけ下げた（4.65:1）。
                       年の間の線（.r-about-era__dash）は飾りなので #63b4d3 のまま */
  font-family: 'Inter', var(--cs-font);   /* Figma は Inter Bold。未読込のときは本文フォントで代替 */
}

.r-about-era__dash {
  flex: none;
  width: 12px;
  height: 2px;
  border-radius: 20px;
  background: #63b4d3;
}

.r-about-era__title {
  padding-top: 8px;   /* 期間ラベルとの間 8px（2026-09-25 デザイナー指示 No.62/64。旧 4px） */
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.r-about-era__desc {
  padding-top: 16px;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.r-about-era__title + .r-about-era__desc {
  padding-top: 24px;
}

/* ビジュアル: Figma の 736×514 の箱。子要素は % で絶対配置。
   箱をコンテナにして、吹き出しの文字サイズを箱の幅に比例させる（下の .r-about-bubble 参照） */
.r-about-visual {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 736 / 514;
  container-type: inline-size;
}

.r-about-visual__item {
  position: absolute;
}

/* 吹き出しは写真の上に載せる */
.r-about-visual .r-about-bubble {
  z-index: 1;
}

/* --- 吹き出し（記事タイトル。Figma "bubble" ＋ 右端の折り返し "Frame 1000008890"） ---
   --bb  … 本体の色（speechbubble ○_20）
   --bb2 … 折り返しの色（speechbubble ○_60） */
.r-about-bubble {
  --bb: #f2dee1;
  --bb2: #ecb5c0;
  display: flex;
  align-items: stretch;
  white-space: nowrap;
  /* 文字サイズは箱の幅に比例（Figma: 箱 736px で 16px ＝ 2.174cqw）。箱が縮んでも
     吹き出しが箱からはみ出さない。余白・尻尾・アイコンはすべて em で追従する。
     コンテナクエリ単位に未対応のブラウザは 16px 固定 */
  font-size: 16px;
  font-size: clamp(11px, 2.174cqw, 16px);
}

.r-about-bubble--yellow { --bb: #f5efd7; --bb2: #e6d593; }
.r-about-bubble--green  { --bb: #d8e8d8; --bb2: #acd6a0; }
.r-about-bubble--purple { --bb: #e4dff0; --bb2: #c1b6e2; }

.r-about-bubble__body {
  display: block;   /* flex にしない: 2行のときアイコンを最終行の文末に続けるため（インラインで並べる） */
  padding: 0.5em 0 0.5em 1.5em;   /* 16px 時 8px / 24px */
  background: var(--bb);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.r-about-bubble__txt {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--hv-dur-color), text-decoration-color var(--hv-dur-color);
}

.r-about-bubble svg {
  display: inline-block;
  width: 1.125em;    /* 16px 時 18px */
  height: 1.125em;
  margin-left: 0.25em;
  vertical-align: -0.19em;   /* 文字の中央付近に置く */
}

/* --- 1記事＝1つのリンク（.r-about-sb）。写真と吹き出しをまとめて包む（scrapbook-link.css 確定仕様 2026-09-15 / 2026-09-16 構造変更）
   a は「その記事の写真＋吹き出しの外接矩形」に置く（座標は下の「ビジュアルの配置」）。
   記事どうしの外接矩形は一部重なる（PC: 社内恋愛×少子化・子守×副業・100人100通り×初任給 など／SP: 社内恋愛×少子化・子守×週5 など）ため、
   a 自身は pointer-events:none にして中の写真・吹き出しだけが反応するようにする。
   これを外すと、後ろの記事の a の透明部分が前の記事の写真を覆ってホバー／クリックを奪う --- */
.r-about-sb {
  position: absolute;
  pointer-events: none;
  outline: none;
}

.r-about-sb > * {
  pointer-events: auto;
}

/* ホバー: 付箋（吹き出し）は動かない。タイトルは文字色 #1a7a9f・下線 #a1d3e6 に、
   外部リンクアイコンは色だけ変わる（ホップ無し）。写真に乗せても吹き出しに乗せても同じ */
.r-about-bubble svg {
  transition: color var(--hv-dur-color);
}

.r-about-sb:hover .r-about-bubble,
.r-about-sb:focus-visible .r-about-bubble {
  color: var(--hv-hover-text);   /* 文字・アイコン（currentColor）の両方 */
}

.r-about-sb:hover .r-about-bubble__txt,
.r-about-sb:focus-visible .r-about-bubble__txt {
  text-decoration-color: var(--hv-hover-underline);
}

/* キーボードフォーカスの枠は a（箱全体）ではなく吹き出しに出す */
.r-about-sb:focus-visible .r-about-bubble__body {
  outline: 2px solid var(--hv-hover-text);
  outline-offset: 2px;
}

/* 写真: 机に貼った写真がふっと動くイメージで、中心を支点に傾きが少し強まる。
   写真は Figma の傾き・影ごと書き出してあるので、ここでは差分の角度（--sb-delta。個体ごとに
   テンプレートの style 属性で ±2deg）だけ足す */
.r-about-sb__photo {
  --sb-delta: -2deg;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform .45s var(--hv-ease-wipe);
  will-change: transform;
}

.r-about-sb:hover .r-about-sb__photo,
.r-about-sb:focus-visible .r-about-sb__photo {
  transform: rotate(var(--sb-delta));
}

/* 視差効果を減らす設定では傾けず、色の変化だけ即時に反映する（scrapbook-link.css と同じ） */
@media (prefers-reduced-motion: reduce) {
  .r-about-sb__photo,
  .r-about-bubble__txt,
  .r-about-bubble svg {
    transition: none;
  }

  .r-about-sb:hover .r-about-sb__photo {
    transform: none;
  }
}

/* 尻尾: 幅 22px（1.375em）。右下の角を 12px（0.75em）斜めに落とし、そこに濃い色の折り返し（三角）を置く */
.r-about-bubble__tail {
  position: relative;
  flex: none;
  width: 1.375em;
  background: var(--bb);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.75em), calc(100% - 0.75em) 100%, 0 100%);
}

.r-about-bubble__tail::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.75em;
  height: 0.75em;
  background: var(--bb2);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* --- ビジュアルの配置（PC）---
   p◯ … 写真（傾き・影ごと書き出し）  c◯ … 切り抜き写真  b◯ … 吹き出し
   記事リンク a.r-about-sb[data-sb] は、その記事の写真＋吹き出しの外接矩形を 736×514 の箱に対する % で置く。
   写真・吹き出し（子要素）の left / top / width は **その a に対する %**（箱に対する % ではない）。
   Figma の箱基準の座標から換算した（2026-09-16。換算は docs/about-implementation.md 参照）。
   ※吹き出しの幅は文字量で決まるため、外接矩形は 1440px 幅で実測した値。他の幅で吹き出しが
     数 px 外にはみ出すことがあるが、overflow は visible なので表示・クリックに影響しない */
/* 社内恋愛（koi）: p1 ＋ b2 */
.r-about-visual--e1 .r-about-sb[data-sb="koi"] { left: 1.09%; top: 0; width: 50.73%; height: 55.35%; }
.r-about-visual--e1 .r-about-visual__item--p1 { left: 0; top: 0; width: 77.80%; }
.r-about-visual--e1 .r-about-visual__item--b2 { left: 50.07%; top: 12.65%; }
/* 少子化（ossan）: c1 ＋ b3 */
.r-about-visual--e1 .r-about-sb[data-sb="ossan"] { left: 50.95%; top: 0; width: 46.43%; height: 63.22%; }
.r-about-visual--e1 .r-about-visual__item--c1 { left: 23.05%; top: 0; width: 76.96%; }
.r-about-visual--e1 .r-about-visual__item--b3 { left: 0; top: 64.31%; }
/* 「大丈夫」ムービー（daijoubu）: p2 ＋ p3 ＋ b1 */
.r-about-visual--e1 .r-about-sb[data-sb="daijoubu"] { left: 9.92%; top: 63.23%; width: 69.42%; height: 35.41%; }
.r-about-visual--e1 .r-about-visual__item--p2 { left: 49.51%; top: 0.01%; width: 50.49%; }
.r-about-visual--e1 .r-about-visual__item--p3 { left: 16.83%; top: 29.12%; width: 37.58%; }
.r-about-visual--e1 .r-about-visual__item--b1 { left: 0; top: 8.79%; }

/* 子守（komori）: c1 ＋ b1 */
.r-about-visual--e2 .r-about-sb[data-sb="komori"] { left: 0.27%; top: 0; width: 47.32%; height: 60.51%; }
.r-about-visual--e2 .r-about-visual__item--c1 { left: 0; top: 0; width: 77.24%; }
.r-about-visual--e2 .r-about-visual__item--b1 { left: 24.41%; top: 26.36%; }
/* 週5（week5）: p1 ＋ b3 */
.r-about-visual--e2 .r-about-sb[data-sb="week5"] { left: 54.08%; top: 0; width: 46.01%; height: 40.58%; }
.r-about-visual--e2 .r-about-visual__item--p1 { left: 0; top: 0; width: 79.87%; }
.r-about-visual--e2 .r-about-visual__item--b3 { left: 32.47%; top: 67.13%; }
/* プレミアムフライデー（premium）: p2 ＋ b2 */
.r-about-visual--e2 .r-about-sb[data-sb="premium"] { left: 0.27%; top: 61.28%; width: 42.39%; height: 38.90%; }
.r-about-visual--e2 .r-about-visual__item--p2 { left: 51.29%; top: 0; width: 48.72%; }
.r-about-visual--e2 .r-about-visual__item--b2 { left: 0; top: 32.03%; }
/* 副業（fukugyo）: c2 ＋ b4 */
.r-about-visual--e2 .r-about-sb[data-sb="fukugyo"] { left: 43.48%; top: 46.11%; width: 56.47%; height: 50.69%; }
.r-about-visual--e2 .r-about-visual__item--c2 { left: 12.75%; top: 0.01%; width: 87.25%; }   /* 2人の切り抜きを1枚に合成（2026-09-14） */
.r-about-visual--e2 .r-about-visual__item--b4 { left: 0; top: 75.62%; }

/* テレワーク（telework）: c1 ＋ b1 */
.r-about-visual--e3 .r-about-sb[data-sb="telework"] { left: 7.07%; top: 0; width: 81.32%; height: 41.01%; }
.r-about-visual--e3 .r-about-visual__item--c1 { left: 0; top: 0; width: 100.00%; }   /* 2人＋画面の女性を1枚に合成（Figma Group 14193。2026-09-14） */
.r-about-visual--e3 .r-about-visual__item--b1 { left: 56.80%; top: 60.26%; }
/* 多様性（tayousei）: p1 ＋ p2 ＋ b2 */
.r-about-visual--e3 .r-about-sb[data-sb="tayousei"] { left: 47.69%; top: 57.00%; width: 52.41%; height: 41.24%; }
.r-about-visual--e3 .r-about-visual__item--p1 { left: 10.63%; top: 37.27%; width: 88.40%; }
.r-about-visual--e3 .r-about-visual__item--p2 { left: 0; top: 6.14%; width: 50.03%; }
.r-about-visual--e3 .r-about-visual__item--b2 { left: 12.71%; top: 0; }
/* マイノリティ（minority）: p3 ＋ b3 */
.r-about-visual--e3 .r-about-sb[data-sb="minority"] { left: 1.49%; top: 45.53%; width: 42.12%; height: 39.90%; }
.r-about-visual--e3 .r-about-visual__item--p3 { left: 0; top: 0; width: 100.00%; }
.r-about-visual--e3 .r-about-visual__item--b3 { left: 13.25%; top: 67.26%; }

/* 100人100通り（100）: p1 ＋ p2 ＋ p3 ＋ b1 */
.r-about-visual--e4 .r-about-sb[data-sb="100"] { left: 43.48%; top: 0; width: 56.93%; height: 46.89%; }
.r-about-visual--e4 .r-about-visual__item--p1 { left: 5.73%; top: 12.45%; width: 59.20%; }
.r-about-visual--e4 .r-about-visual__item--p2 { left: 43.44%; top: 31.54%; width: 56.56%; }
.r-about-visual--e4 .r-about-visual__item--p3 { left: 36.03%; top: 0; width: 37.94%; }
.r-about-visual--e4 .r-about-visual__item--b1 { left: 0; top: 65.13%; }
/* 初任給（shoninkyu）: c1 ＋ b2 */
.r-about-visual--e4 .r-about-sb[data-sb="shoninkyu"] { left: 1.22%; top: 2.33%; width: 48.80%; height: 55.63%; }
.r-about-visual--e4 .r-about-visual__item--c1 { left: 0; top: 0.01%; width: 76.01%; }
.r-about-visual--e4 .r-about-visual__item--b2 { left: 51.79%; top: 80.80%; }
/* プルラリティ（plurality）: p4 ＋ p5 ＋ b3 */
.r-about-visual--e4 .r-about-sb[data-sb="plurality"] { left: 17.39%; top: 56.81%; width: 66.99%; height: 43.00%; }
.r-about-visual--e4 .r-about-visual__item--p4 { left: 0; top: 16.74%; width: 63.09%; }
.r-about-visual--e4 .r-about-visual__item--p5 { left: 58.22%; top: 0; width: 41.78%; }
.r-about-visual--e4 .r-about-visual__item--b3 { left: 52.53%; top: 67.42%; }

/* PC と SP で配置（合成の仕方）が違う画像は2枚用意して切り替える（--pc / --sp） */
.r-about-visual__item--sp {
  display: none;
}

/* --- 白パネル（Figma Frame 1000008696: 左右 48px・角丸 64px・下端の影） --- */
.r-about-panel {
  margin: 0 48px;
  padding: 0 72px 100px;
  background: #fff;
  border-radius: 64px;
  box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
}

.r-about-panel__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- やらないこと（3枚のカード。Figma 7006:94368） --- */
.r-about-policy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 40px;
}

.r-about-policy__card {
  padding: 40px 32px;
  background: #fff;
  border: 1px solid #63b4d3;
  border-radius: 16px;
}

.r-about-policy__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.r-about-policy__card p {
  padding-top: 24px;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* --- ロゴ／サイトの変遷（左 392px ＋ 右 760px。Figma 7006:94380 / 94394） --- */
.r-about-twocol__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-top: 40px;
}

.r-about-twocol__media {
  flex: none;
  width: 392px;
}

.r-about-twocol__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 0;
  max-width: 760px;   /* 画面が狭いときは縮む（左 392px は固定） */
  min-width: 0;
}

.r-about-twocol__text p {
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* ロゴ画像は本文の高さの中で縦中央に置く */
.r-about-logo {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.r-about-logo img {
  width: 100%;
}

/* 制作者コメントの枠（1px の水色枠・角丸 8px） */
.r-about-comment {
  padding: 16px 24px;
  border: 1px solid #63b4d3;
  border-radius: 8px;
}

.r-about-comment p {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.r-about-comment .r-about-comment__by {
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: right;
}

/* サイトの変遷のコラージュ（PC: 3枚のスクリーンショット＋年バッジ＋点線。Figma 7006:94395 の実寸） */
.r-about-sites {
  position: relative;
  height: 501px;
}

.r-about-sites__shot {
  position: absolute;
  width: 280px;   /* 書き出し画像に 1px の枠と角丸を含む */
}

.r-about-sites__shot--1 { left: 0; top: 0; }
.r-about-sites__shot--2 { left: 112px; top: 175px; }
.r-about-sites__shot--3 { left: 0; top: 350px; }

.r-about-sites__badge {
  position: absolute;
  padding: 2px 8px;
  background: #00425c;   /* bland_blue_90 */
  border-radius: 4px;
  color: #fff;
  font-family: 'Inter', var(--cs-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.r-about-sites__badge--1 { left: 294px; top: 65px; }
.r-about-sites__badge--2 { left: 0; top: 240px; }
.r-about-sites__badge--3 { left: 294px; top: 415px; }

.r-about-sites__line {
  position: absolute;
  left: 110px;
  top: 124px;
  width: 190px;
  height: 256px;
}

/* SP 用の1枚画像は PC では出さない */
.r-about-sites-sp {
  display: none;
}

/* --- 編集部メンバー（トップページの部品 .r-top-staff を流用。見出しとの間隔だけ 40px） --- */
.r-about-members .r-top-staff-grid {
  padding-top: 40px;
}

/* --- 編集部から、読者のみなさんへ（Figma 7006:94493） --- */
.r-about-message {
  padding-bottom: 80px;
}

.r-about-message__lead {
  padding-top: 16px;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.r-about-message__card {
  margin-top: 48px;
  padding: 40px 48px;
  background: #fff;
  border: 1px solid #63b4d3;
  border-radius: 16px;
}

.r-about-message__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.r-about-message__list li {
  position: relative;
  padding-left: 16px;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* 箇条書きの点（8px の水色の丸。1行目の中央に置く） */
.r-about-message__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #63b4d3;
}

.r-about-message__sign {
  padding-top: 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

/* --- 〜1280px: 「あゆみ」のテキストとビジュアルを縦積みにし、ビジュアルは中央寄せ。
   横並びのままだとビジュアルの箱が Figma の 736px より縮み、吹き出しが小さくなりすぎるため、
   一般的なノートPC幅（1280px）以下で切り替える --- */
@media (max-width: 1280px) {
  .r-about-era__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding-bottom: 64px;
  }

  .r-about-era__text {
    width: 100%;
  }

  .r-about-visual {
    flex: none;
    width: 100%;
    max-width: 736px;
    margin: 0 auto;
  }
}

/* --- タブレット（〜1024px）: 2カラムを縦積みにする --- */
@media (max-width: 1024px) {
  .r-about-statement {
    flex-direction: column;
    gap: 0;
  }

  /* 縦積みでは flex-basis（392px）が高さに効いて見出しが縦に伸びるため解除する */
  .r-about-statement .r-h2 {
    flex: none;
  }

  .r-about-statement__text {
    flex: none;
    width: 100%;
    max-width: none;
    padding-top: 32px;
  }

  .r-about-panel {
    margin: 0 24px;
    padding: 0 40px 64px;
    border-radius: 40px;
  }

  .r-about-policy__card {
    padding: 24px;
  }

  .r-about-twocol__body {
    flex-direction: column;
    gap: 32px;
  }

  .r-about-twocol__media {
    width: 100%;
    max-width: 392px;
  }

  .r-about-twocol__text {
    flex: none;
    width: 100%;
    max-width: none;
  }
}

/* --- SP（Figma 7006:93632。コンテンツ幅 323px＝左右 26px） --- */
@media (max-width: 767px) {
  .r-about__container {
    padding: 0 26px;
  }

  /* 見出しの上余白は SP デザイン実測 56px（文字 20px は共通の .r-h2 の SP 指定） */
  .r-about .r-h2 {
    padding-top: 56px;
  }

  /* ページ内リンクの停止位置: SP の追従ヘッダー（.g-header__top 56px）＋ 50px − 見出しの上余白 56px ＝ 50px */
  .r-about-statement,
  .r-about-history,
  .r-about-section,
  .r-about-message {
    scroll-margin-top: 50px;
  }

  /* ページ内リンク（Figma SP 7992:32693。2026-10-20 縦並び 14px から変更）: 横に詰めて折り返す。
     13px・行間 1.4・字間なし・矢印 15px、項目の間 12px・行の間 18px */
  .r-about-anchors {
    padding-top: 16px;
  }

  .r-about-anchors ul {
    gap: 18px 12px;
  }

  .r-about-anchors a {
    gap: 4px;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .r-about-anchors svg {
    width: 15px;
    height: 15px;
  }

  /* 本文は 16px。段落間は 12px */
  .r-about-text p {
    font-size: 16px;
  }

  .r-about-text p + p {
    padding-top: 12px;
  }

  .r-about-statement__text {
    padding-top: 24px;
  }

  /* あゆみ */
  .r-about-era {
    gap: 12px;
  }

  .r-about-era--first {
    padding-top: 24px;
  }

  .r-about-era--first .r-about-era__rail {
    padding-top: 8px;
  }

  .r-about-era__dot {
    left: -8px;
    width: 18px;
    height: 18px;
  }

  .r-about-era__dot::after {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
  }

  .r-about-era__inner {
    gap: 24px;
    padding-bottom: 64px;
  }

  .r-about-era__label {
    font-size: 15px;
  }

  .r-about-era__title {
    font-size: 18px;
  }

  .r-about-era__desc {
    padding-top: 12px;
    font-size: 16px;
  }

  .r-about-era__title + .r-about-era__desc {
    padding-top: 16px;
  }

  .r-about-visual {
    max-width: none;
    aspect-ratio: 309 / 480;
  }

  /* 吹き出し: SP は Figma の固定値（14px・左 12px・尻尾 12px・折り返し 8px・アイコン 16px）。
     箱 309px に比例させると小さすぎるため、比例指定を打ち切って固定にする */
  .r-about-bubble {
    font-size: 14px;
  }

  .r-about-bubble__body {
    padding: 6px 2px 6px 12px;
  }

  .r-about-bubble svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
  }

  .r-about-bubble__tail {
    width: 12px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  }

  .r-about-bubble__tail::after {
    width: 8px;
    height: 8px;
  }

  /* ビジュアルの配置（SP）。PC と同じ考え方（a は箱 309×480 に対する %、子要素は a に対する %。375px 幅で実測） */
  /* 社内恋愛（koi）: p1 ＋ b2 */
  .r-about-visual--e1 .r-about-sb[data-sb="koi"] { left: 3.22%; top: 1.96%; width: 81.47%; height: 29.38%; }
  .r-about-visual--e1 .r-about-visual__item--p1 { left: 0; top: 0; width: 57.20%; }
  .r-about-visual--e1 .r-about-visual__item--b2 { left: 41.33%; top: 9.63%; }
  /* 少子化（ossan）: c1 ＋ b3 */
  .r-about-visual--e1 .r-about-sb[data-sb="ossan"] { left: 14.56%; top: 16.46%; width: 90.08%; height: 46.13%; }
  .r-about-visual--e1 .r-about-visual__item--c1 { left: 35.63%; top: 0; width: 64.38%; }
  .r-about-visual--e1 .r-about-visual__item--b3 { left: 0; top: 65.04%; }
  /* 「大丈夫」ムービー（daijoubu）: p2 ＋ p3 ＋ b1 */
  .r-about-visual--e1 .r-about-sb[data-sb="daijoubu"] { left: 0.97%; top: 65.83%; width: 91.58%; height: 26.42%; }
  .r-about-visual--e1 .r-about-visual__item--p2 { left: 45.23%; top: 13.60%; width: 54.77%; }
  .r-about-visual--e1 .r-about-visual__item--p3 { left: 9.37%; top: 39.07%; width: 40.64%; }
  .r-about-visual--e1 .r-about-visual__item--b1 { left: 0; top: 0.01%; }

  /* 子守（komori）: c1 ＋ b1 */
  .r-about-visual--e2 .r-about-sb[data-sb="komori"] { left: -0.32%; top: 0; width: 90.91%; height: 38.53%; }
  .r-about-visual--e2 .r-about-visual__item--c1 { left: 0; top: 0; width: 56.95%; }
  .r-about-visual--e2 .r-about-visual__item--b1 { left: 23.49%; top: 27.04%; }
  /* 週5（week5）: p1 ＋ b3 */
  .r-about-visual--e2 .r-about-sb[data-sb="week5"] { left: 40.78%; top: 26.06%; width: 59.77%; height: 22.15%; }
  .r-about-visual--e2 .r-about-visual__item--p1 { left: 27.88%; top: 0.01%; width: 71.96%; }
  .r-about-visual--e2 .r-about-visual__item--b3 { left: 0.01%; top: 67.65%; }
  /* プレミアムフライデー（premium）: p2 ＋ b2 */
  .r-about-visual--e2 .r-about-sb[data-sb="premium"] { left: 1.26%; top: 43.54%; width: 78.86%; height: 29.66%; }
  .r-about-visual--e2 .r-about-visual__item--p2 { left: 0; top: 0.01%; width: 44.41%; }
  .r-about-visual--e2 .r-about-visual__item--b2 { left: 23.71%; top: 39.35%; }
  /* 副業（fukugyo）: c2 ＋ b4 */
  .r-about-visual--e2 .r-about-sb[data-sb="fukugyo"] { left: 5.83%; top: 72.71%; width: 94.13%; height: 26.07%; }
  .r-about-visual--e2 .r-about-visual__item--c2 { left: 26.82%; top: 0.01%; width: 73.19%; }   /* SP 用の合成画像（Figma Group 14195） */
  .r-about-visual--e2 .r-about-visual__item--b4 { left: 0.01%; top: 71.12%; }

  /* テレワーク（telework）: c1 ＋ b1 */
  .r-about-visual--e3 .r-about-sb[data-sb="telework"] { left: 3.88%; top: 0; width: 95.47%; height: 34.75%; }
  .r-about-visual--e3 .r-about-visual__item--c1 { left: 2.77%; top: 0; width: 97.23%; }   /* SP 用の合成画像（Figma Group 14192） */
  .r-about-visual--e3 .r-about-visual__item--b1 { left: 0; top: 65.96%; }
  /* 多様性（tayousei）: p1 ＋ p2 ＋ b2 */
  .r-about-visual--e3 .r-about-sb[data-sb="tayousei"] { left: 1.62%; top: 71.25%; width: 96.51%; height: 26.17%; }
  .r-about-visual--e3 .r-about-visual__item--p1 { left: 16.44%; top: 32.63%; width: 72.77%; }
  .r-about-visual--e3 .r-about-visual__item--p2 { left: 0; top: 13.53%; width: 40.91%; }
  .r-about-visual--e3 .r-about-visual__item--b2 { left: 6.37%; top: 0; }
  /* マイノリティ（minority）: p3 ＋ b3 */
  .r-about-visual--e3 .r-about-sb[data-sb="minority"] { left: 0.65%; top: 41.04%; width: 103.39%; height: 23.71%; }
  .r-about-visual--e3 .r-about-visual__item--p3 { left: 0; top: 0.01%; width: 54.15%; }
  .r-about-visual--e3 .r-about-visual__item--b3 { left: 35.37%; top: 50.11%; }

  /* 100人100通り（100）: p1 ＋ p2 ＋ p3 ＋ b1 */
  .r-about-visual--e4 .r-about-sb[data-sb="100"] { left: 0.65%; top: 39.38%; width: 98.38%; height: 26.54%; }
  .r-about-visual--e4 .r-about-visual__item--p1 { left: 29.60%; top: 12.56%; width: 43.42%; }
  .r-about-visual--e4 .r-about-visual__item--p2 { left: 58.55%; top: 22.77%; width: 41.45%; }
  .r-about-visual--e4 .r-about-visual__item--p3 { left: 52.30%; top: 0.01%; width: 27.63%; }
  .r-about-visual--e4 .r-about-visual__item--b1 { left: 0; top: 73.00%; }
  /* 初任給（shoninkyu）: c1 ＋ b2 */
  .r-about-visual--e4 .r-about-sb[data-sb="shoninkyu"] { left: 2.91%; top: 0; width: 89.34%; height: 38.32%; }
  .r-about-visual--e4 .r-about-visual__item--c1 { left: 0; top: 0; width: 63.61%; }
  .r-about-visual--e4 .r-about-visual__item--b2 { left: 50.72%; top: 53.28%; }
  /* プルラリティ（plurality）: p4 ＋ p5 ＋ b3 */
  .r-about-visual--e4 .r-about-sb[data-sb="plurality"] { left: 3.24%; top: 71.46%; width: 89.00%; height: 29.64%; }
  .r-about-visual--e4 .r-about-visual__item--p4 { left: 3.63%; top: 27.41%; width: 63.49%; }
  .r-about-visual--e4 .r-about-visual__item--p5 { left: 58.19%; top: 0.01%; width: 41.82%; }
  .r-about-visual--e4 .r-about-visual__item--b3 { left: 0; top: 7.73%; }

  .r-about-visual__item--pc {
    display: none;
  }

  .r-about-visual__item--sp {
    display: block;
  }

  /* 白パネル: 左右 8px・角丸 24px。中身は 26px の余白に揃える */
  .r-about-panel {
    margin: 0 8px;
    padding: 0 18px 56px;
    border-radius: 24px;
  }

  /* やらないこと: 1列 */
  .r-about-policy {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }

  .r-about-policy__card {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .r-about-policy__title {
    font-size: 18px;
  }

  .r-about-policy__card p {
    padding-top: 8px;   /* 見出しと本文の間（2026-09-25 デザイナー指示 No.65。旧 16px） */
    font-size: 16px;
  }

  /* ロゴ／サイトの変遷 */
  .r-about-twocol__body {
    gap: 24px;
    padding-top: 24px;
  }

  .r-about-twocol__media {
    max-width: none;
  }

  .r-about-twocol__text {
    gap: 12px;
  }

  .r-about-twocol__text p {
    font-size: 16px;
  }

  .r-about-logo {
    display: block;
    padding: 16px;
  }

  .r-about-comment {
    margin-top: 12px;   /* 本文との間は 24px（gap 12 ＋ 12） */
    padding: 20px 16px;
  }

  .r-about-comment .r-about-comment__by {
    padding-top: 16px;
  }

  /* サイトの変遷: PC 用コラージュを隠し、SP 用の1枚画像を出す */
  .r-about-sites {
    display: none;
  }

  .r-about-sites-sp {
    display: block;
    width: 100%;
  }

  /* 編集部メンバー: 3列（共通）。写真は SP デザイン実測 92px */
  .r-about-members .r-top-staff-grid {
    padding-top: 24px;
  }

  .r-about-members .r-top-staff__photo {
    width: 92px;
  }

  /* 読者のみなさんへ */
  .r-about-message {
    padding-bottom: 64px;
  }

  .r-about-message__lead {
    padding-top: 12px;
    font-size: 16px;
  }

  .r-about-message__card {
    margin-top: 24px;
    padding: 20px 18px;
    border-radius: 8px;   /* SP は角丸 8px（2026-09-25 デザイナー指示 No.66。PC は 16px のまま） */
  }

  .r-about-message__list {
    gap: 16px;
  }

  .r-about-message__list li {
    font-size: 16px;
  }

  .r-about-message__list li::before {
    top: 11px;
  }

  .r-about-message__sign {
    padding-top: 24px;
    font-size: 14px;
  }
}


/* =========================================================================
   ブックス（/books/ ＝ 子ブログ blog23）
   一覧: メインページ（src/templates/books_index.mtml）
         Figma PC 7448:105814 / SP 7448:106138
   詳細: 記事テンプレート（src/templates/books_entry.mtml）
         Figma 通常 PC 7448:107161 / SP 7448:107384、非売品 PC 7448:106995 / SP 7448:107091、
         内容紹介表示 PC 7448:107272 / SP 7448:107481

   - 見出しパネル .r-pagehead / パンくず .r-breadcrumb / 見出し .r-h2 / ボタン .r-btn-pill /
     記事カード .r-article-card・.r-article-grid / ページ送り .r-pager は一覧系の共通部品を流用
   - 書店ロゴ・特徴アイコン・装飾線は assets/images/books/*.webp（2倍書き出し）
   - 書籍カードのサムネイルは「他媒体カード」扱い（光の弧なし・50%ワイプのみ。
     ホバーアニメーションの章の方針どおり）
   - スコープ内リセットは :where() で詳細度0にする（about と同じ方針）
   ========================================================================= */

/* --- スコープ共通 --- */
.r-books-intro,
.r-books-main,
.r-books-cta,
.r-books-detail,
.r-books-related,
.r-books-head,
.r-books-intro *,
.r-books-main *,
.r-books-cta *,
.r-books-detail *,
.r-books-related *,
.r-books-head * {
  box-sizing: border-box;
}

:where(.r-books-intro, .r-books-main, .r-books-cta, .r-books-detail, .r-books-related, .r-books-head) {
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: #141c1f;
}

:where(.r-books-intro, .r-books-main, .r-books-cta, .r-books-detail, .r-books-related, .r-books-head) :where(p, h1, h2, h3, ul, ol, li, hr, figure) {
  margin: 0;
  padding: 0;
}

:where(.r-books-intro, .r-books-main, .r-books-cta, .r-books-detail, .r-books-related) :where(ul, ol) {
  list-style: none;
}

:where(.r-books-intro, .r-books-main, .r-books-cta, .r-books-detail, .r-books-related) img {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(.r-books-intro, .r-books-main, .r-books-cta, .r-books-detail, .r-books-related) a {
  color: inherit;
  text-decoration: none;
}

:where(.r-books-intro, .r-books-main, .r-books-cta, .r-books-detail, .r-books-related) a:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

/* --- 一覧: 見出しパネル（ブックス用ロゴ画像。2026-10-06 確定版に差し替え。
       PC は1段 625×100（Figma 7843:126132）、SP は2段 260×120（Figma 7859:181031）を picture で切り替える。
       文字の部分は透過（抜き）なので、白パネルの上に置く前提） --- */
.r-pagehead--books .r-books-head {
  display: flex;
  align-items: center;
  max-width: 1390px;
  padding: 44px var(--cs-gutter) 40px 70px;
}

.r-books-head__title {
  min-width: 0;
  margin: 0;
  line-height: 0;
}

.r-books-head__title picture {
  display: block;
}

.r-books-head__logo {
  display: block;
  width: 625px;
  max-width: 100%;
  height: auto;
}

/* --- 一覧: リード文（はたらくを、あたらしく。）
       背景の方眼の上に直接置く（白パネル無し）。装飾の線は絶対配置 --- */
.r-books-intro {
  position: relative;
  overflow: hidden;
  padding: 0 var(--cs-gutter) 100px;
}

.r-books-intro__container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.r-books-intro__h2 {
  padding-top: 80px;
}

.r-books-intro__text {
  padding-top: 24px;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.r-books-intro__text:first-of-type {
  padding-top: 40px;
}

/* SPだけで折り返す <br> */
.r-books-intro__br-sp {
  display: none;
}

/* Figma: 1440px フレームに対して y=162 の 1653×437（左右に約106pxずつはみ出す）。画面中央基準で置く。
   2026-09-30 デザイナー指示: 1440px 超の画面で右端の線が途切れて見えないよう、線を左右に伸ばした
   新しい画像（Figma「05.デザインチェック用」の line 7705:121905）に差し替え。旧: 1440×437・x=0。
   1653px を超える画面では従来どおり端が見えるが、2560px 等までは追わない方針（同指示）。
   はみ出し分は .r-books-intro の overflow: hidden で切れるので横スクロールは出ない */
.r-books-intro__line {
  position: absolute;
  z-index: 0;
  top: 162px;
  left: 50%;
  width: 1653px;
  max-width: none;   /* スコープ共通の img { max-width:100% } で潰されないように */
  height: auto;
  margin-left: -826.5px;
  pointer-events: none;
}

/* PC/SPで別カットの画像を使う（--pc / --sp で切り替え。既定はPC表示） */
.r-books-intro__line--sp {
  display: none;
}

/* --- 一覧: 白パネル（ラインアップ＋特徴） --- */
.r-books-main {
  padding: 0 48px;
}

.r-books-main__panel {
  padding: 0 72px 80px;
  background: #fff;
  border-radius: 64px;
  box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
}

.r-books-main__container {
  max-width: 1200px;
  margin: 0 auto;
}

.r-books-main__h2 {
  padding-top: 80px;
}

/* --- 一覧: 書籍カード --- */
.r-books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 48px;
}

.r-books-card {
  position: relative;   /* stretched-link と NEW ラベルの基準 */
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* 書影の器: 384:216 の淡い水色の箱。書影は高さいっぱい（上下12px余白）で中央に置く */
.r-books-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 384 / 216;
  background: #f0f7fa;
  border-radius: 4px;
}

.r-books-card__thumb img {
  position: absolute;
  top: 12px;
  left: 50%;
  width: auto;
  height: calc(100% - 24px);
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  object-fit: contain;
}

/* 他媒体カード扱い: 50%ワイプのみ（光の弧は付けない） */
.r-books-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--hv-wipe) 0%, var(--hv-wipe) 33.33%,
    transparent 66.66%, transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: background-position var(--hv-dur-wipe) var(--hv-ease-wipe);
  pointer-events: none;
}

.r-books-card.u-hover-parent:hover .r-books-card__thumb::after {
  background-position: 0 0;
}

/* NEW ラベル: カードの左上に少しはみ出して重ねる（Figma: 54px の水色の丸） */
.r-books-new {
  position: absolute;
  z-index: 2;
  top: -21px;   /* 2026-09-24 デザイナー指示 No.43「7px 上に」（旧 -14px。Figma: カード上端の 21px 上） */
  left: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #a1d3e6;
  font-family: Inter, var(--cs-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #00425c;
}

.r-books-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.r-books-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* カード全体をリンクにする透明レイヤー */
.r-books-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.r-books-card__title .u-underline {
  transition-duration: var(--hv-dur-underline-title), var(--hv-dur-color);
}

.r-books-card__author {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #637278;
}

.r-books-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;   /* 概要文は4行で省略（Figma の注記「4行以上は省略」） */
  overflow: hidden;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #637278;
}

/* --- 一覧: サイボウズ式ブックスの特徴（4カード・HTML直書き） --- */
.r-books-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  padding-top: 40px;
}

.r-books-feature__card {
  padding: 40px;
  background: #fff;
  border: 1px solid #63b4d3;
  border-radius: 16px;
}

.r-books-feature__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.r-books-feature__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

/* アイコン画像（books-feature-q1〜q4.webp・128×128＝64px枠の2倍）。
   2026-09-24: Figma の親パネルの影（0 3px 0 rgba(177,217,233,.4)）が PNG 書き出しに焼き込まれて
   「アイコンに影が付いている」状態だったため、SVG 書き出しから filter を除いて再作成した（No.45/47） */
.r-books-feature__icon img {
  width: auto;
  height: auto;
  max-width: 64px;
  max-height: 64px;
}

.r-books-feature__ttl {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.r-books-feature__q {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #00425c;
}

.r-books-feature__h3 {
  font-size: 22px;   /* 2026-09-24 デザイナー指示 No.45（旧 18px。Figma 7448:106088） */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* 本文はアイコン幅ぶん（64+12）字下げして見出しと左端を揃える */
.r-books-feature__desc {
  padding: 8px 0 0 76px;
  font-size: 18px;   /* 2026-09-24 デザイナー指示 No.45（旧 16px。Figma 7448:106092） */
  line-height: 2;
  letter-spacing: 0.06em;
}

/* 蛍光マーカー（Figma 8015:31941: 文字の後ろに #9BD0E4 の帯）。
   2026-10-21 デザイナー修正（先方FB「記事のマーカーより読みづらい」）: 旧指定は上12%・下10%を透明にした
   グラデーションで帯が約20pxしかなく、文字が詰まって見えていた。Figma は文字18px・行の高さ36px に対して帯32px。
   単色で塗り、上下に 0.17em（18px で約3px）の余白を足して、文字の箱 26px → 帯 32px にする
   （インライン要素の上下の余白は行の高さを変えずに背景だけを広げる） */
.r-books-mark {
  padding: 0.17em 2px;
  background-color: #9bd0e4;
  font-weight: 700;
  color: inherit;
}

/* --- 一覧: お問い合わせ（PC: ボタン2つ / SP: 見出し＋noteボタン＋テキストリンク） --- */
.r-books-cta {
  padding: 0 var(--cs-gutter) 80px;
}

.r-books-cta__h2 {
  display: none;
}

.r-books-cta__btns {
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 80px;
}

.r-books-cta__text {
  display: none;
}

/* --- 詳細: パンくず（白パネル無しで直置き。左端はコンテンツ幅に合わせて120px） --- */
.r-books-detail__crumb {
  padding: 16px var(--cs-gutter) 24px;
}

.r-books-detail__crumb ol {
  max-width: none;
  margin: 0;
}

/* --- 詳細: 白パネル --- */
.r-books-detail {
  padding: 0 48px;
}

.r-books-detail__panel {
  padding: 56px 72px 80px;
  background: #fff;
  border-radius: 64px;
  box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
}

/* パネル内のコンテンツ幅は 840px（Figma） */
.r-books-detail__container {
  max-width: 840px;
  margin: 0 auto;
}

.r-books-detail__head {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.r-books-detail__cover {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 240px;
}

.r-books-detail__cover-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 348px;
}

.r-books-detail__cover-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #e3e7e8;
}

.r-books-detail__noimg {
  display: block;
  width: 100%;
  height: 100%;
  background: #f0f7fa;
  border-radius: 4px;
}

/* 小さいピル型ボタン（PDFで試し読み / PDFをダウンロード / 紙の書籍を郵送） */
.r-books-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;   /* 2026-09-30 作業依頼者指示（旧 4px）。文字とアイコンの間はアイコン SVG 内の余白だけになる */
  padding: 4px 12px 4px 14px;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 40px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #141c1f;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.r-books-pill:hover {
  background: #dfedf2;
}

.r-books-pill__icon {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
}

.r-books-detail__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.r-books-detail__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.r-books-detail__copy {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #1479a0;
}

.r-books-detail__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.r-books-detail__authors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #637278;
}

.r-books-detail__pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 価格: 数字（Inter 22px）＋「円」＋補足（本体価格…）を下端揃え */
.r-books-detail__price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.r-books-detail__price-num {
  position: relative;
  top: 4px;   /* 「円（税別）」とベースラインが揃って見えるよう数字だけ下げる（行の高さ・周りの配置は変えない）。
                 2026-09-30 デザイナー指示で 2px → 同日の再指摘「まだ揃っていない、あと2px」で 4px */
  font-family: Inter, var(--cs-font);
  font-size: 22px;
}

.r-books-detail__price-unit {
  padding-bottom: 2px;
  font-size: 16px;
}

.r-books-detail__price-note {
  padding: 0 0 2px 8px;
  font-size: 16px;
}

.r-books-detail__price--free {
  font-size: 22px;
}

.r-books-detail__meta {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #637278;
}

/* 項目の区切り「　／　」 */
.r-books-detail__meta-item + .r-books-detail__meta-item::before {
  content: '\3000／\3000';
}

.r-books-detail__hr {
  height: 1px;
  border: 0;
  background: #a1d3e6;
}

.r-books-detail__buy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.r-books-detail__buy-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* 書店ボタン（3列×2行。6店を常時この順で表示・URL 未登録は薄い表示。2026-09-24 デザイナー指示 No.49/55） */
.r-books-shops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.r-books-shop {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

a.r-books-shop:hover {
  background: #f0f7fa;
}

/* ロゴは白背景が焼き込まれた不透過 WebP のため、multiply で白をボタン背景に溶かす
   （ホバー時にロゴの矩形だけ白く残っていた件・No.49）。
   Amazon が 5px 左に見えた件（No.49/55）は画像側の余白が非対称だったのが原因で、
   画像を再トリミングして解消（CSS での位置調整はしていない） */
.r-books-shop img {
  width: auto;
  height: 24px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ロゴごとの高さ（2026-10-21 デザイナー差し替え素材 Figma 8015:31936 の枠の高さ。画像は枠ごと4倍で書き出し）。
   先方FB「ロゴの解像度が低い」で Amazon・楽天・サイボウズ商店を公式素材に、7net・e-hon は少し大きく調整。
   honyaclub は素材の差し替えなし（上の 24px のまま）。e-hon は 32px でボタンの内側（26px）より大きいが、
   上下に 3px ずつ padding へはみ出すだけで枠線には届かない */
.r-books-shop--amazon img { height: 28px; }
.r-books-shop--rakuten img { height: 22px; }
.r-books-shop--7net img { height: 27px; }
.r-books-shop--ehon img { height: 32px; }
.r-books-shop--cybozu img { height: 27px; }

/* URL 未登録の書店: 薄く表示・クリック不可 */
.r-books-shop--disabled {
  opacity: 0.35;
  pointer-events: none;
}

.r-books-detail__free-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.r-books-detail__h2 {
  padding-top: 80px;
}

/* --- 詳細: 内容紹介（折りたたみ） --- */
.r-books-body {
  position: relative;
}

.r-books-body__inner {
  position: relative;
  max-height: 264px;   /* 折りたたみ時に見せる高さ（本文18px×行送り2＝36px/行 → 約6行＋上余白） */
  overflow: hidden;
  padding-top: 32px;
}

.r-books-body.is-open .r-books-body__inner {
  max-height: none;
}

.r-books-body__content {
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.r-books-body__content p {
  margin: 0;
}

.r-books-body__content p + p,
.r-books-body__content ul + p,
.r-books-body__content p + ul {
  margin-top: 24px;
}

.r-books-body__content a {
  text-decoration: underline;
}

/* 「すべて表示」: 折りたたみ時は上に白のグラデーションを重ねて本文をフェードさせる */
.r-books-body__more {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.r-books-body:not(.is-open) .r-books-body__more::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 69px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
  pointer-events: none;
}

/* 本文が短くて折りたたむ必要が無いとき（JSが判定） */
.r-books-body.is-short .r-books-body__more {
  display: none;
}

.r-books-body__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 7px;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 40px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #141c1f;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* ホバーできる環境（マウス）だけ。タッチ端末ではタップ後に :hover が残って
   「閉じる」ボタンに背景色が付いたままになるため（2026-09-17） */
@media (hover: hover) {
  .r-books-body__toggle:hover {
    background: #dfedf2;
  }
}

.r-books-body__toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
}

/* 「すべて表示」は＋、「閉じる」は×（矢印の回転ではない。Figma 7448:107236 / 7448:107348 実測） */
.r-books-body__toggle-icon-cross {
  display: none;
}

.r-books-body.is-open .r-books-body__toggle-icon-plus {
  display: none;
}

.r-books-body.is-open .r-books-body__toggle-icon-cross {
  display: block;
}

/* --- 詳細: 著者（マスタ方式。複数人は縦に並ぶ） --- */
.r-books-author {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-top: 40px;
}

.r-books-author__photo {
  flex: none;
  width: 240px;
  height: 240px;
}

.r-books-author__photo img,
.r-books-author__ph {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #e3e7e8;
}

.r-books-author__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.r-books-author__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.r-books-author__ident {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.r-books-author__name {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.r-books-author__name-en {
  font-family: Inter, var(--cs-font);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.r-books-author__sns {
  display: flex;
  flex: none;
  gap: 8px;
}

.r-books-author__sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 59px;    /* 2026-09-30 Figma 7747:53544: 59×59（枠線込み）・アイコン 27px（旧 56px / 22px） */
  height: 59px;
  background: #fff;
  border: 1px solid #a1d3e6;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.r-books-author__sns-btn:hover {
  background: #dfedf2;
}

.r-books-author__sns-btn svg {
  display: block;
  width: 27px;    /* 4種とも 27px の枠に Figma の配置で描いてあるので、同じ寸法で並べると大きさが揃う */
  height: 27px;
}

.r-books-author__text {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* プロフィール本文中のリンク（著者ページの「プロフィール」欄に書かれた a タグ）。
   2026-09-30 作業依頼者指示: 地の文と区別がつかないため下線を付け、ホバーで薄くする */
.r-books-author__text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.r-books-author__text a:hover {
  opacity: 0.7;
}

/* --- 詳細: この本に関連する記事＋一覧へ戻る（白パネルの外） --- */
.r-books-related {
  padding: 0 var(--cs-gutter) 80px;
}

.r-books-related__container {
  max-width: 1200px;
  margin: 0 auto;
}

.r-books-related__h2 {
  padding-top: 80px;
}

.r-books-related__grid {
  padding-top: 48px;
}

.r-books-related__btn {
  padding-top: 56px;
}

/* 1025〜1439px でもロゴは 625×100 のまま（2026-09-24 デザイナー指示 No.42「ロゴの高さ 100px」）。
   768〜1024px でパネルより広くなる場合は max-width: 100% で縦横比を保って縮む */

/* --- レスポンシブ（SP: 767px以下） --- */
@media (max-width: 767px) {
  /* 見出しパネル */
  .r-pagehead--books .r-books-head {
    padding: 32px 26px;
  }

  .r-books-head__logo {
    width: 260px;
  }

  /* リード文
     Figma SP では線画の上端がブロック上端より 7px 上（パンくず行の右側）にはみ出す。
     横方向だけ切り取り、縦方向は見せる（overflow-x: clip は片側だけ visible を保てる。
     非対応ブラウザでは上端 7px が切れるだけで崩れない） */
  .r-books-intro {
    padding: 0 26px 56px;
    overflow-x: clip;
    overflow-y: visible;
  }

  .r-books-intro__h2 {
    padding-top: 40px;
  }

  .r-books-intro__text {
    padding-top: 12px;
    font-size: 14px;
  }

  .r-books-intro__text:first-of-type {
    padding-top: 24px;
  }

  .r-books-intro__br-sp {
    display: inline;
  }

  /* Figma SP(7448:106160)は専用カットの画像（PCの画像をリサイズ・回転しただけでは
     構図が一致しない）。PC用は隠し、SP用に切り替える */
  .r-books-intro__line--pc {
    display: none;
  }

  .r-books-intro__line--sp {
    display: block;
  }

  /* Figma SP: 514×136（回転前）の画像を中心基準で -15° 回転。
     回転後のAABB(531.685×264.399)が left:-53px / top:-37px に来るよう、
     回転前の左上座標を逆算して直接指定する */
  .r-books-intro__line--sp {
    top: 27px;
    left: -44px;
    width: 514px;
    max-width: none;   /* スコープ共通の img { max-width:100% } で 375px に潰されないように */
    height: 136px;
    margin-left: 0;
    transform: rotate(-15deg);
  }

  /* 白パネル */
  .r-books-main {
    padding: 0;
  }

  .r-books-main__panel {
    padding: 0 26px 56px;
    border-radius: 16px;
  }

  .r-books-main__h2 {
    padding-top: 56px;
  }

  /* 書籍カード: サムネ100×140を左に、テキストを右に */
  .r-books-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .r-books-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .r-books-card__thumb {
    flex: none;
    width: 100px;
    height: 140px;
    aspect-ratio: auto;
  }

  .r-books-card__title {
    font-size: 14px;
  }

  .r-books-new {
    top: -12px;
    left: -12px;
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  /* 特徴 */
  .r-books-feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  .r-books-feature__card {
    padding: 20px 16px;
  }

  .r-books-feature__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* 2026-10-22 デザイナー指示: SP は PC（22px / 18px）より小さく、見出し 18px・本文 16px
     （それまで SP の指定が無く、PC の 2026-09-24 の拡大がそのまま効いていた） */
  .r-books-feature__h3 {
    font-size: 18px;
  }

  .r-books-feature__desc {
    padding: 12px 0 0;
    font-size: 16px;
  }

  /* お問い合わせ */
  .r-books-cta {
    padding: 0 26px 56px;
  }

  .r-books-cta__h2 {
    display: flex;
    padding-top: 56px;
  }

  /* SP は CTA ボタン2本を縦に並べる（2026-09-24 デザイナー指示 No.48・Figma 参考 7619:53937:
     ボタンは幅いっぱい・間隔16px・文字15px・矢印38px）。旧「note ボタン＋テキストリンク」は廃止 */
  .r-books-cta__btns {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 40px;
  }

  .r-books-cta__btns .r-btn-pill {
    justify-content: space-between;
    width: 100%;
    font-size: 15px;
  }

  .r-books-cta__btn-pc {
    display: inline-flex;   /* PC 専用の扱いをやめて SP でも表示 */
  }

  .r-books-cta__text {
    display: none;
  }

  /* 詳細: パンくず・パネル */
  /* SP のパンくずは「トップ ＞ サイボウズ式ブックス ＞ 書籍名」を1つの文として流し、
     コンテンツ端で文字単位に折り返す（2026-09-24 デザイナー指示 No.53。旧: 書籍名の項目が丸ごと次行に落ちていた） */
  .r-books-detail__crumb {
    padding: 12px 20px 0;
  }

  .r-books-detail__crumb ol {
    display: block;
  }

  .r-books-detail__crumb li {
    display: inline;
  }

  .r-books-detail__crumb li + li::before {
    display: inline-block;
    margin: 0 6px;
    vertical-align: -1px;
  }

  .r-books-detail {
    padding: 10px 0 0;
  }

  .r-books-detail__panel {
    padding: 32px 26px 48px;
    border-radius: 16px;
  }

  .r-books-detail__head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .r-books-detail__cover {
    width: 100%;
  }

  .r-books-detail__cover-img {
    width: 200px;
    height: 290px;
  }

  .r-books-detail__info {
    gap: 12px;
  }

  .r-books-detail__titles {
    gap: 2px;
  }

  .r-books-detail__copy {
    font-size: 14px;
  }

  .r-books-detail__title {
    font-size: 20px;
  }

  .r-books-detail__pricing {
    gap: 2px;
  }

  .r-books-detail__price-num {
    top: 1px;   /* 2026-09-30 作業依頼者指示: SP は文字が小さいので PC の 4px ではなく 1px */
    font-size: 18px;
  }

  .r-books-detail__price-unit,
  .r-books-detail__price-note {
    font-size: 14px;
  }

  .r-books-detail__price-note {
    padding-left: 6px;
  }

  .r-books-detail__price--free {
    font-size: 18px;
  }

  .r-books-detail__meta {
    font-size: 12px;
    line-height: 1.5;
  }

  .r-books-detail__buy {
    gap: 12px;
  }

  .r-books-detail__buy-label {
    font-size: 14px;
    line-height: 1.5;
  }

  .r-books-shop {
    height: 38px;
    padding: 10px 12px;
  }

  .r-books-shop img {
    height: 18px;
  }

  /* ロゴごとの高さ: PC の 0.75 倍（PC 24px → SP 18px と同じ比率） */
  .r-books-shop--amazon img { height: 21px; }
  .r-books-shop--rakuten img { height: 16.5px; }
  .r-books-shop--7net img { height: 20.25px; }
  .r-books-shop--ehon img { height: 24px; }
  .r-books-shop--cybozu img { height: 20.25px; }

  .r-books-detail__free-btns {
    gap: 8px;
  }

  .r-books-detail__h2 {
    padding-top: 56px;
  }

  /* 内容紹介 */
  /* 内容紹介の折りたたみ（Figma SP 7448:107450）:
     本文は上余白24px込みで 452px まで見せる（16px×行送り2＝32px/行 → 13行＋上余白）。
     Figma はボタン枠を最後の1行に重ねる構図だが、実データでは切れ目が行の途中に来て
     「ボタンが文字に乗る／文字がバツッと切れる」見え方になったため（2026-09-17）、
     PCと同じ「切れ目で完全に白くなるグラデーションを本文の上に置き、ボタンはその下」にする。
     切れ目は books_entry.mtml の JS が行の境界（452px 以下で最も下の行の下端）に揃えるので
     文字が途中で欠けることはなく、グラデーション 2行分（64px）で最後の行が半分ほど薄くなって終わる */
  .r-books-body__inner {
    max-height: 452px;
    padding-top: 24px;
  }

  .r-books-body__more {
    padding-top: 20px;
  }

  .r-books-body:not(.is-open) .r-books-body__more::before {
    height: 64px;
  }

  .r-books-body__content {
    font-size: 16px;
  }

  .r-books-body__content p + p,
  .r-books-body__content ul + p,
  .r-books-body__content p + ul {
    margin-top: 12px;
  }

  .r-books-body__toggle {
    padding: 4px 12px 5px;
    font-size: 12px;
  }

  .r-books-body__toggle-icon {
    width: 18px;
    height: 18px;
  }

  /* 著者: 写真88px＋名前を横並び、紹介文は全幅 */
  .r-books-author {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px 16px;
    padding-top: 24px;
  }

  .r-books-author__photo {
    width: 88px;
    height: 88px;
  }

  .r-books-author__photo img,
  .r-books-author__ph {
    border: 1px solid #e3e7e8;
  }

  .r-books-author__body {
    display: contents;
  }

  .r-books-author__head {
    flex-direction: column;
    gap: 8px;
  }

  .r-books-author__ident {
    flex: none;
    gap: 0;
  }

  .r-books-author__name {
    font-size: 16px;
    line-height: 1.5;
  }

  .r-books-author__name-en {
    line-height: 1.8;
    color: #677173;
  }

  .r-books-author__sns {
    gap: 6px;
  }

  .r-books-author__sns-btn {
    width: 28px;
    height: 28px;
    border-radius: 5px;
  }

  .r-books-author__sns-btn svg {
    width: 20px;   /* 2026-09-30: 27px 枠のアイコンに差し替えたため 16px → 20px（中の図柄が従来と近い大きさになる） */
    height: 20px;
  }

  .r-books-author__text {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  /* 関連記事 */
  .r-books-related {
    padding: 0 26px 56px;
  }

  .r-books-related__h2 {
    padding-top: 56px;
  }

  .r-books-related__grid {
    padding-top: 24px;
  }

  .r-books-related__btn {
    padding-top: 40px;
  }

  /* SPのピルボタン: 文言が長い（「サイボウズ式ブックス編集部のnote」等）ので
     1行に収まるよう字を1px落として矢印との間隔を詰める */
  .r-books-page .r-btn-pill {
    gap: 12px;
    font-size: 15px;
  }
}

/* =========================================================================
   404ページ（404.html）
   Figma「404_PC」(7533:118033) / 「404_SP」(7533:118195)。2026-09-17
   - 見出し .r-h2 / CTA .r-btn-wrap .r-btn-pill / 記事カード .r-article-card /
     カテゴリバッジ .r-cat-badge は一覧系ページの共通部品を流用
   - .r-nf-hero   … 白い角丸パネル（h1 ＋ 案内文 ＋ イラスト ＋ トップへ戻る）。
                    about.html の白パネル（左右 48px・角丸 64px・下端の影）と同じ寸法
   - .r-nf-lists  … 人気の読みもの（3列）／新着記事（4列×2行）。白パネル無しで
                    方眼背景の上に直接置く（トップページの白パネルとは違う）
   ⚠️ 要素セレクタのリセットは :where() で詳細度 0 にする（about と同じ方針。CLAUDE.md 参照）
   ========================================================================= */

.r-nf,
.r-nf * {
  box-sizing: border-box;
}

.r-nf {
  display: block;
  font-family: var(--cs-font);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  color: #141c1f;   /* Figma: regular/text_black_100 */
}

.r-nf a {
  color: inherit;
  text-decoration: none;
}

.r-nf a:focus-visible {
  outline: 2px solid var(--cs-blue-60);
  outline-offset: 2px;
}

:where(.r-nf) :where(p, h1, h2) {
  margin: 0;
  padding: 0;
}

:where(.r-nf) img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* コンテンツ幅 1200px を中央寄せ */
.r-nf__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- 白パネル（Figma 7533:118038〜118052）
   ヘッダーとの間 64px。左右 48px・角丸 64px・内側の左右余白 72px・下 80px --- */
.r-nf-hero {
  padding: 64px 48px 0;
}

.r-nf-hero__panel {
  padding: 0 72px 80px;
  background: #fff;
  border-radius: 64px;
  box-shadow: 0 3px 0 rgba(177, 217, 233, 0.4);
}

/* タイトル＋案内文の箱（Figma cat-list: 840px・上 56px）。
   1440px 未満ではパネルの内幅に合わせて縮む */
.r-nf-hero__inner {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding-top: 56px;
}

.r-nf-hero__title {
  padding-bottom: 16px;
  border-bottom: 1px solid #a1d3e6;   /* Figma: regular/bland_blue_40 */
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: center;
}

/* 案内文（左・伸縮）＋イラスト（右・180px 固定）。両方とも罫線から 40px 下がる */
.r-nf-hero__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.r-nf-hero__text {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 40px;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.r-nf-hero__text p + p {
  padding-top: 24px;
}

/* SP だけ「見つかりませんでした。」の後で改行する（Figma SP の2行表記） */
.r-nf-hero__br {
  display: none;
}

.r-nf-hero__illust {
  flex: none;
  padding-top: 40px;
}

.r-nf-hero__illust img {
  width: 180px;
  height: 180px;
}

/* --- 人気の読みもの／新着記事（Figma 7533:118053: 左右 120px・下 80px） --- */
.r-nf-lists {
  padding: 0 var(--cs-gutter) 80px;
}

/* 見出しの上余白は Figma 実測 80px（共通の 64px より広い。about・メンバー一覧と同じ） */
.r-nf .r-h2 {
  padding-top: 80px;
}

.r-nf-hot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  padding-top: 48px;
}

.r-nf-recent__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 40px;
  padding-top: 48px;
}

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
  .r-nf-hero {
    padding: 48px 40px 0;
  }

  .r-nf-hero__panel {
    padding: 0 40px 64px;
    border-radius: 40px;
  }

  .r-nf-hot__grid,
  .r-nf-recent__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SP: Figma 7533:118195（コンテンツ幅 323px＝左右 26px） */
@media (max-width: 767px) {
  /* パネルは全幅・角丸 16px。ヘッダーとの間は 46px（Figma: 36 + 10） */
  .r-nf-hero {
    padding: 46px 0 0;
  }

  .r-nf-hero__panel {
    padding: 32px 26px 48px;
    border-radius: 16px;
  }

  .r-nf-hero__inner {
    max-width: none;
    padding-top: 0;
  }

  .r-nf-hero__title {
    padding-bottom: 12px;
    font-size: 32px;
  }

  /* 案内文の下にイラストを中央寄せで縦積み */
  .r-nf-hero__row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .r-nf-hero__text {
    width: 100%;
    padding-top: 24px;
    font-size: 16px;
  }

  .r-nf-hero__text p + p {
    padding-top: 12px;
  }

  .r-nf-hero__br {
    display: inline;
  }

  .r-nf-hero__illust {
    padding-top: 12px;
  }

  .r-nf-hero__illust img {
    width: 140px;
    height: 140px;
  }

  /* 一覧: 下 56px はパネル〜フッター間（他ページの SP と同じ） */
  .r-nf-lists {
    padding: 0 26px 56px;
  }

  .r-nf .r-h2 {
    padding-top: 56px;
  }

  .r-nf-hot__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  .r-nf-recent__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  /* 新着記事のカードは SP でも公開日を出す（トップページと同じ。
     一覧共通ルール（SPで日付非表示）の例外。人気の読みものは出さない） */
  .r-nf-recent .r-article-card__date {
    display: flex;
  }

  .r-nf-recent .r-article-card__meta {
    justify-content: space-between;
  }
}

