@charset "UTF-8";
/* ============================================================
   楽一サイト リデザイン 土台（フェーズ0）  2026-11-06
   /rakuichi/common/rk-base.css
   読み込み：/common/components/header.js が <head> に link を差し込む
   （style.css / top_style.css / style_ez.css より後に読まれるので同じ詳細度なら勝つ）
   方針：共通CSSは触らない。ここには「全ページ共通で変えたいもの」だけを置く。
   接頭辞 rk- は後続フェーズ（rk-top.css, rk-price.css …）と共通。
   ============================================================ */

/* ---- 1. デザイントークン ---------------------------------- */
:root {
  --rk-orange: #f35c01;
  --rk-orange-dark: #d44e00;
  --rk-orange-soft: #fff0e6;
  --rk-navy: #0d3162;
  --rk-text: #222222;
  --rk-text-mute: #6b6b6b;
  --rk-line: #e3e3e3;
  --rk-bg-soft: #f6f6f6;
  --rk-white: #ffffff;
  --rk-radius: 8px;
  --rk-radius-pill: 999px;
  --rk-font: "YakuHanJP", "Inter", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---- 2. フォント（2026-11-06 長岡さん決定：YakuHanJP＋Inter＋Zen Kaku Gothic New） ----
   YakuHanJP … 「、。（）「」！？」など約物だけを半角幅にする補助フォント（自社配信、下の @font-face）
   Inter      … 英数字・記号（Google Fonts、header.js が読み込む）
   Zen Kaku Gothic New … 日本語（Google Fonts、header.js が 400/700/900 を読み込む）
     テスト比較の結果、Noto Sans JP から変更（2026-11-06 夕）。通常文字と太字のメリハリを出すため本文は 400。
   Mac も Windows も同じ見え方にするため、ヒラギノは最後の保険にだけ置く。 */
@font-face { font-family: "YakuHanJP"; font-style: normal; font-weight: 400; font-display: swap; src: url("/rakuichi/common/fonts/yakuhanjp/YakuHanJP-Regular.woff2") format("woff2"); unicode-range: U+3001,U+3002,U+3008,U+3009,U+300a,U+300b,U+300c,U+300d,U+300e,U+300f,U+3010,U+3011,U+3014,U+3015,U+30fb,U+ff01,U+ff08,U+ff09,U+ff1a,U+ff1b,U+ff1f,U+ff3b,U+ff3d,U+ff5b,U+ff5d; }
@font-face { font-family: "YakuHanJP"; font-style: normal; font-weight: 500; font-display: swap; src: url("/rakuichi/common/fonts/yakuhanjp/YakuHanJP-Medium.woff2") format("woff2"); unicode-range: U+3001,U+3002,U+3008,U+3009,U+300a,U+300b,U+300c,U+300d,U+300e,U+300f,U+3010,U+3011,U+3014,U+3015,U+30fb,U+ff01,U+ff08,U+ff09,U+ff1a,U+ff1b,U+ff1f,U+ff3b,U+ff3d,U+ff5b,U+ff5d; }
@font-face { font-family: "YakuHanJP"; font-style: normal; font-weight: 700; font-display: swap; src: url("/rakuichi/common/fonts/yakuhanjp/YakuHanJP-Bold.woff2") format("woff2"); unicode-range: U+3001,U+3002,U+3008,U+3009,U+300a,U+300b,U+300c,U+300d,U+300e,U+300f,U+3010,U+3011,U+3014,U+3015,U+30fb,U+ff01,U+ff08,U+ff09,U+ff1a,U+ff1b,U+ff1f,U+ff3b,U+ff3d,U+ff5b,U+ff5d; }
@font-face { font-family: "YakuHanJP"; font-style: normal; font-weight: 900; font-display: swap; src: url("/rakuichi/common/fonts/yakuhanjp/YakuHanJP-Black.woff2") format("woff2"); unicode-range: U+3001,U+3002,U+3008,U+3009,U+300a,U+300b,U+300c,U+300d,U+300e,U+300f,U+3010,U+3011,U+3014,U+3015,U+30fb,U+ff01,U+ff08,U+ff09,U+ff1a,U+ff1b,U+ff1f,U+ff3b,U+ff3d,U+ff5b,U+ff5d; }

body {
  font-family: var(--rk-font);
  font-weight: 400; /* 本文は通常（Zen Kaku の 400 は Noto より少し太く読みやすい）。太字 700 との差をはっきり出す */
}
/* 太字はウェイト700（Zen Kaku Gothic New Bold） */
b, strong, th {
  font-weight: 700;
}
/* 見出し：極太＋プロポーショナル詰め＋字間を少し詰める。
   既存ページの見出しは #id .class で太さを指定しているものが多く、そちらが優先される（ここは土台の既定値）。 */
h1, h2, h3, h4 {
  font-weight: 900;
  font-feature-settings: "palt" 1;
  letter-spacing: -0.02em;
}

/* ---- 3. 動きを減らす設定の人には動かさない ----------------------
   既存の .fade-section（top_style.css）と、今後の .rk-reveal の両方をここで無効化する。 */
@media (prefers-reduced-motion: reduce) {
  .fade-section,
  .fade-section .fade-child,
  .rk-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}

/* ---- 4. 共通ボタン（フェーズ1以降で使う。既存ページには影響しない） ----
   使い方：<a class="rk-btn rk-btn--primary" href="...">相談日程を送る</a>
           <a class="rk-btn rk-btn--secondary" href="...">資料を見る</a>
   style.css の a:link（紺）に負けないよう a.rk-btn:link / :visited で色を書く。 */
.rk-btn,
a.rk-btn:link,
a.rk-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 56px;
  padding: 12px 28px;
  border-radius: var(--rk-radius-pill);
  font-family: var(--rk-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rk-btn--primary,
a.rk-btn--primary:link,
a.rk-btn--primary:visited {
  background: var(--rk-orange);
  color: var(--rk-white);
  border: 2px solid var(--rk-orange);
  box-shadow: 0 4px 12px rgba(243, 92, 1, .25);
}
.rk-btn--primary:hover,
a.rk-btn--primary:hover,
.rk-btn--primary:focus-visible {
  background: var(--rk-orange-dark);
  border-color: var(--rk-orange-dark);
  color: var(--rk-white);
  transform: translateY(-1px);
}
.rk-btn--secondary,
a.rk-btn--secondary:link,
a.rk-btn--secondary:visited {
  background: var(--rk-white);
  color: var(--rk-orange);
  border: 2px solid var(--rk-orange);
}
.rk-btn--secondary:hover,
a.rk-btn--secondary:hover,
.rk-btn--secondary:focus-visible {
  background: var(--rk-orange-soft);
  color: var(--rk-orange-dark);
}
.rk-btn:focus-visible {
  outline: 3px solid rgba(243, 92, 1, .45);
  outline-offset: 2px;
}
.rk-btn--block {
  display: flex;
  width: 100%;
}
.rk-btn__arrow::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}
@media only screen and (max-width: 767px) {
  .rk-btn,
  a.rk-btn:link,
  a.rk-btn:visited {
    min-height: 52px;
    padding: 12px 20px;
    font-size: 16px;
  }
}

/* ---- 5. 登場アニメーション用クラス（フェーズ7で rk-motion.js と組み合わせる。今は何もしない） ----
   JS が無いときに消えたままにならないよう、.rk-reveal 単体では透明にしない。
   rk-motion.js が html に .rk-motion を付けたときだけ初期状態を透明にする。 */
html.rk-motion .rk-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
html.rk-motion .rk-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- 6. 既存ページの表示の不具合修正（2026-11-18） ----
   共通 style.css は変更せず、ここで上書きする。 */

/* 6-1 特長カードの丸数字（01・02・03）が固定ヘッダーより前に出る。
       style.css の z-index:1000 がヘッダー（.rk-hd の 1000）と同じ値のため。カード内で前に出れば足りる */
body#rakuichi.top #contents #containar-feature .containar-feature-wrp .no,
body#rakuichiez.top #contents .pointArea .pointAreaNmb .ttl .no {
  z-index: 2;
}

/* 6-2 楽一トップの導入価格例：製品の画像が説明文に重なる。
       画像はカード幅いっぱい（縦横比 715:347）で上に 30px はみ出す配置なのに、
       文字の上の余白が 115px 固定で、カードが広い（3枚並び）と足りない。余白をカード幅に比例させる */
body#rakuichi.top #containar-price .containar-price-box .txt-wrp {
  padding-top: calc(48.6% - 16px);
}

/* 6-3 楽一ＥＺ・楽一の機能ページ：ページ下の「ご相談・お問い合わせ」の案内文が中央にそろわない。
       機能ページ用の指定（.info の幅 70%、p の文字 14px）が帯の案内文にも効いていたため */
#rakuichiez.function #containar-contact .info,
#rakuichi.function #containar-contact .info {
  width: auto;
  font-size: 1.5rem;
  margin-bottom: 15px;
}
@media only screen and (max-width: 767px) {
  #rakuichiez.function #containar-contact .info,
  #rakuichi.function #containar-contact .info {
    font-size: 1rem;
  }
}

/* ---- 7. 背景画像の読み込みエラー（404）の解消（2026-11-18 SEO 対応） ----
   共通 style.css の楽一用ルールが ../../img/… や /img/… を指しているが、/common/css/ から見ると
   サイト直下の /img/（存在しない）になり 404 になる。楽一の画像は /rakuichi/img/ にある。
   style.css は変更せず、同じセレクタ（同じ詳細度・後から読まれる）で background-image だけを正しいパスに上書きする。
   位置・大きさ・繰り返しは style.css の指定のまま。 */

/* 7-1 見出し帯：新デザイン（header.js の単色 #e4f2ff の帯）に合わせて画像は出さない（今も 404 で出ていないので見た目は変わらない） */
body#rakuichi #pagetitle,
body#rakuichi.top #pagetitleTop,
body#rakuichiez #pagetitle,
body#rakuichiez.top #pagetitleTop {
  background-image: none;
}
@media only screen and (max-width:767px) {
  body#rakuichi.top #pagetitleTop,
  body#rakuichiez.top #pagetitleTop {
    background-image: none;
  }
}

/* 7-2 楽一（製品・ハード・ソフト・FAQ・機能） */
@media only screen and (min-width:768px) {
  body#rakuichi #anchorLink ul li a { background-image: url(/rakuichi/img/rakuichi/anchor_arrow.png); }
  body#rakuichiez #anchorLink ul li a { background-image: url(/rakuichi/img/rakuichiez/anchor_arrow.png); }
}
@media only screen and (max-width:767px) {
  body#rakuichi #anchorLink ul li { background-image: url(/rakuichi/img/rakuichi/anchor_arrow.png); }
  body#rakuichiez #anchorLink ul li { background-image: url(/rakuichi/img/rakuichiez/anchor_arrow.png); }
}
body#rakuichi.top #contents .customerTtl .f-small:before { background-image: url(/rakuichi/img/rakuichi/icon_comment.png); }
body#rakuichi.hard #contents .ttlBlock { background-image: url(/rakuichi/img/rakuichi/icon_block.png); }
body#rakuichi.soft #contents .arrow { background-image: url(/rakuichi/img/rakuichi/anchor_arrow.png); }
@media only screen and (max-width:767px) {
  body#rakuichi.soft #contents .arrow { background-image: url(/rakuichi/img/rakuichi/anchor_arrow.png); }
}
body#rakuichi.faq #contents .faqArea .faqBox .question span,
body#rakuichiez.faq #contents .faqArea .faqBox .question span { background-image: url(/rakuichi/img/rakuichi/icon_question.jpg); }
body#rakuichi.faq #contents .faqArea .faqBox .answer span,
body#rakuichiez.faq #contents .faqArea .faqBox .answer span { background-image: url(/rakuichi/img/rakuichi/icon_answer.jpg); }
@media only screen and (max-width:767px) {
  #rakuichi.function.top #contents .lede { background-image: url(/rakuichi/img/rakuichi/icon_function.png); }
}
#rakuichi.function .cmt { background-image: url(/rakuichi/img/rakuichi/icon_point.png); }
#rakuichi.function .arrow-red { background-image: url(/rakuichi/img/rakuichiez/arrow_red.png); }
@media only screen and (max-width:767px) {
  #rakuichi.function .arrow-red { background-image: url(/rakuichi/img/rakuichiez/arrow_red_sp.png); }
}

/* 7-3 楽一ＥＺ（機能） */
#rakuichiez.function .cmt { background-image: url(/rakuichi/img/rakuichiez/icon_point.png); }
#rakuichiez.function .pin { background-image: url(/rakuichi/img/rakuichiez/icon_pin.png); }
#rakuichiez.function .turn .list:first-child:after { background-image: url(/rakuichi/img/rakuichiez/arrow_red_func10_1.png); }
#rakuichiez.function .turn .list:nth-child(2):after { background-image: url(/rakuichi/img/rakuichiez/arrow_red_func10_2.png); }
#rakuichiez.function .arrow-red { background-image: url(/rakuichi/img/rakuichiez/arrow_red.png); }
@media only screen and (max-width:767px) {
  #rakuichiez.function .cmt { background-image: url(/rakuichi/img/rakuichiez/icon_point.png); }
  #rakuichiez.function .turn .list:first-child { background-image: url(/rakuichi/img/rakuichiez/arrow_red_func10_1_sp.png); }
  #rakuichiez.function .turn .list:nth-child(2) { background-image: url(/rakuichi/img/rakuichiez/arrow_red_func10_2_sp.png); }
  #rakuichiez.function .arrow-red { background-image: url(/rakuichi/img/rakuichiez/arrow_red_sp.png); }
}

/* 7-4 導入ガイド・パートナー・お問い合わせ */
#guide #contents .pointTtl:before { background-image: url(/rakuichi/img/guide/icon_point.png); }
#guide #contents .arrow-yobidashi { background-image: url(/rakuichi/img/guide/arrow_yobidashi.png); }
@media only screen and (max-width:767px) {
  #guide #contents .pointTtl:before { background-image: url(/rakuichi/img/guide/icon_point.png); }
  #guide #contents .arrow-yobidashi .multiple:first-child { background-image: url(/rakuichi/img/guide/arrow_yobidashi_bottom.png); }
}
#partner #contents .partnerFig .collabo { background-image: url(/rakuichi/img/partner/hand.jpg); }
@media only screen and (max-width:767px) {
  #partner #contents .partnerFig .collabo { background-image: url(/rakuichi/img/partner/hand.jpg); }
}
/* @2x の画像は無いので等倍の画像を使う（style.css 側が background-size:contain なので表示の大きさは同じ） */
#contact .contact-items .contact-item .btn-ico.fa-phone { background-image: url(/rakuichi/img/contact/icon_tel.png); }
#contact .contact-items .contact-item .btn-ico.fa-file-text-o { background-image: url(/rakuichi/img/contact/icon_mail.png); }
#contact .contact-items .contact-item .btn-ico.fa-download { background-image: url(/rakuichi/img/contact/icon_download.png); }
/* ※ ＥＺ給与勤怠（payroll 配下、サービス終了）・ホームページ運営サービス（終了）・newproduct 用のルールは対象外 */

/* ---- 8. お知らせの記事タイトル（2026-11-18 SEO 対応） ----
   記事タイトルを <div class="mainTitle"> から <h1 class="mainTitle"> に、一覧の見出し帯を <div class="page"> から <h1 class="page"> に変更。
   大きさ・色・太さ・余白は style.css（#contents .mainTitle）と header.js の見出し帯（#pagetitle .page）の指定がそのまま効く。
   2節の h1 の既定（字間を詰める・palt）が加わらないよう、div のときと同じ値（親から継承）に戻す。お知らせ（body#information）だけに限定。 */
body#information #contents h1.mainTitle {
  letter-spacing: inherit;
  font-feature-settings: inherit;
}
body#information #pagetitle h1.page {
  font-feature-settings: inherit;
}

/* ---- 9. 画面幅 768〜1247px で横スクロールが出ないようにする（2026-11-24） ----
   共通 style.css は PC 表示（768px 以上）の枠を 1200px 固定にしている（header#header の min-width、
   #contents・#breadArea・#containar-contact・#footer .footer-wrp・#pagenav・#subNav の width）。
   画面が 1200px より狭いと（タブレット縦、拡大表示のノート PC など）横スクロールが出ていた。
   style.css は全社共通なので変更せず、楽一ページだけが読むここで「画面幅から左右 24px ずつ空けた幅、最大 1200px」に上書きする。
   各ページの CSS（rk-ez.css など）が #pagenav に width:1200px を強い詳細度で書いているため !important を使う。
   1248px 以上は従来どおり（1200px＋左右 24px が収まる）。ヘッダーの詰め方は rk-header.css の 1199px 以下の節。 */
@media only screen and (min-width: 768px) and (max-width: 1247px) {
  header#header { min-width: 0 !important; }
  #contents,
  #breadArea,
  #containar-contact,
  #footer .footer-wrp,
  #pagenav,
  #subNav,
  #subNavHankan {
    width: auto !important;
    max-width: 1200px;
    margin-left: 24px !important;
    margin-right: 24px !important;
    box-sizing: border-box;
  }
  /* 本文の中で幅を 900〜1200px に固定している部品（2026-11-24 楽一 231 ページを 768／1000／1240px で検査して見つかったもの）。
     枠より広くならないようにする。1248px 以上では効かない（従来どおり） */
  #contents article.column_article,
  #contents .faqArea,
  body#rakuichi.flow #contents dl,
  body#rakuichiez.flow #contents dl,
  #contents .def,
  #containar-news,
  #contents article.merit,
  #subNavPayroll,
  #contents #payrollLink,
  #contents .summary,
  #contents .strong {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  #subNavPayroll { margin-left: 24px !important; margin-right: 24px !important; max-width: none !important; width: auto !important; }
  #contents table.kintaiPlan { width: 100% !important; }
  /* ページ下の「ご相談・お問い合わせ」：メールの箱が枠の 49%（左にアイコン分 130px の余白）で、狭いと「お問い合わせ」ボタンが縦書きのように細くなる */
  #containar-contact .containar-contact-box > div { width: 100%; max-width: 470px; }
  #containar-contact .info { text-wrap: balance; }
}

/* ---- 10. 楽一トップ・料金：文章とボタンの重なりをなくす（2026-11-24） ----
   top_style.css は製品ラインアップ・ご利用料金イメージの箱のボタン（.btns）と、特長カードの「詳しくはこちら」（.defBtn4）を
   箱の下端に絶対配置し、その分の余白を箱の下に固定で空けている。文章が長くなると（画面が狭いと／PC でも特長 01 で）ボタンが文章に重なる。
   ボタンを文章の流れに戻し、箱を縦並びの flex にして「余った高さはボタンの上に入れる」＝横に並んだ箱どうしでボタンの高さはそろったまま。 */
@media only screen and (min-width: 768px) {
  body #containar-lineup .containar-lineup-wrp .containar-lineup-box,
  body #containar-fee .containar-fee-wrp .containar-fee-box { display: flex; flex-direction: column; }
  body #containar-lineup .containar-lineup-wrp .containar-lineup-box-inr,
  body #containar-fee .containar-fee-wrp .containar-fee-box-inr { padding-bottom: 8px; }
  body #containar-lineup .containar-lineup-wrp .containar-lineup-box .btns,
  body #containar-fee .containar-fee-wrp .containar-fee-box .btns {
    position: static; transform: none; margin: auto 0 0; padding: 0 10% 10%; box-sizing: border-box;
  }
  body #containar-feature .containar-feature-item-inr { display: flex; flex-direction: column; width: 100%; }
  body #containar-feature .containar-feature-item .text { flex: 1 0 auto; display: flex; flex-direction: column; padding-bottom: 8%; }
  body #containar-feature .containar-feature-item .text .defBtn4 { position: static; transform: none; margin: auto 0 0; padding-top: 16px; }
  /* 導入事例カードの「詳しくはこちら」も同じ（お客様の声は rk-top.css で対応済み） */
  body #containar-case .containar-case-items:not(.rk-voice) .containar-case-item-inr { display: flex; flex-direction: column; width: 100%; }
  body #containar-case .containar-case-items:not(.rk-voice) .containar-case-item .text { flex: 1 0 auto; display: flex; flex-direction: column; padding-bottom: 11%; }
  body #containar-case .containar-case-items:not(.rk-voice) .containar-case-item .text .defBtn4 { position: static; transform: none; margin: auto 0 0; padding-top: 12px; }
}
/* 1023px 以下：楽一トップの各区画の幅（画面の 83%）を「左右 24px あけた幅」に広げる（業種・特長・導入の流れのカードが細くなりすぎるため） */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  :where(#top, #contact) .sec > .sec-inr { width: calc(100% - 48px); }
  /* 導入までの一般的な流れ（5 枚横並び・1 枚 130px 前後）：見出し 20px → 16px、本文 13px、箱の余白を少し詰める */
  #containar-flow .containar-flow-item .text .title { font-size: 16px; }
  #containar-flow .containar-flow-item .text p { font-size: 13px; }
  #containar-flow .containar-flow-item-inr { padding: 14% 7% 8%; }
}
/* 768〜1247px：枠が狭くなると見出しが語の途中で折れる（例「機／能が」）。見出しは文節で折り返し、行の長さをそろえる */
@media only screen and (min-width: 768px) and (max-width: 1247px) {
  #contents :is(h1, h2, h3, h4), main :is(h1, h2, h3, h4), #pagetitle :is(h1, h2, .page, .pageInfo) { word-break: auto-phrase; text-wrap: balance; }
  /* 本文は最終行が 1〜2 文字にならないように（長岡さんの決まり：最終行 1〜2 文字の折り返しは禁止） */
  /* 文節で折り返し（auto-phrase）、最後の数行を整える（pretty）。子要素にも受け継がれる。個別に text-wrap を指定している所はそちらが優先 */
  #contents, main, #containar-contact { word-break: auto-phrase; text-wrap: pretty; }
  /* 表のセル・ボタンや一覧の見出しなど短い文は行の長さをそろえる（最後の行が 2 文字だけ、を防ぐ） */
  /* 表のセル・ボタン・カードの短い見出しなどは文字単位で行の長さをそろえる（文節単位だと「〜を／解説」のように最後の行が 2 文字の文節だけになるため） */
  :is(#contents, main) :is(th, td, dt, li, figcaption, label, a, button, b), :is(#contents, main, body) .column-list-item .title, aside :is(h3, h4, a), #containar-flow .text p, #contents .rks ol.rks-year li { word-break: normal; text-wrap: balance; }
  /* 短い表見出し（「向いている会社」など 7 文字前後）は 1 行に収まる幅を確保する */
  #column #contents .rk-col-v2 table.rk-col-table th { min-width: 7.5em; }
  /* コラムの比較表（rk-col-table）は列幅固定（table-layout: fixed）・文節で改行しない（keep-all）。狭い幅では列幅を中身に合わせ、文字単位で折り返す */
  #column #contents .rk-col-v2 table.rk-col-table { table-layout: auto; }
  #column #contents .rk-col-v2 table.rk-col-table :is(th, td), #column #contents .rk-col-v2 table.rk-col-table.has-cols th { word-break: normal; }
  /* 機能ページ下の「機能紹介トップ」は折り返さない */
  .rkf-pager__top { white-space: nowrap; }
}
/* 1023px 以下：見出し帯の下のページ切り替え（#pagenav）が 5 項目以上なら 4 列で折り返す（楽一製品は 8 項目で 1 項目 84px・3 行に折れるため） */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  html body #pagenav ul:has(> li:nth-child(5)) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html body #pagenav ul:has(> li:nth-child(5)) > li { display: block !important; width: auto !important; border-right: 1px solid #e3edf8 !important; border-bottom: 1px solid #e3edf8; }
  html body #pagenav ul:has(> li:nth-child(5)) > li:nth-child(4n) { border-right: 0 !important; }
  html body #pagenav ul:has(> li:nth-child(5)) > li > a { display: flex !important; align-items: center; justify-content: center; min-height: 60px !important; height: 100%; padding: 10px 8px !important; box-sizing: border-box; text-wrap: balance; }
}
/* 1023px 以下：楽一 業務ソフト（soft）の 2 枚並びのカードを 1 列に、年間給与処理の流れ（6 列）を 4 列に（表と月の札が細くなりはみ出すため） */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .rks .rks-cards { grid-template-columns: minmax(0, 1fr); }
  #contents .rks ol.rks-year { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* 1023px 以下：「ご相談の流れ」3 ステップ（事例一覧・お役立ち資料）のアイコンを文の左 → 上に（文の幅が 100px まで細くなるため） */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .rkvi .rkvi-steps li { grid-template-columns: minmax(0, 1fr); padding: 20px 20px 22px; }
  .rkvi-steps svg { grid-column: 1; grid-row: auto; width: 36px; height: 36px; margin-bottom: 8px; }
  .rkvi-steps__ttl, .rkvi-steps__txt { grid-column: 1; }
}
/* 1023px 以下：お役立ち資料「製品カタログ」の帯（画像・文・ボタンの 3 列で文が 120px まで細くなる）→ ボタンを下の段へ */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .rkvi a.rkdl-catalog, .rkvi a.rkdl-catalog:link, .rkvi a.rkdl-catalog:visited { flex-wrap: wrap; }
  .rkvi .rkdl-catalog__txt { flex: 1 1 260px; }
  .rkvi .rkdl-catalog__go { flex: 1 1 100%; display: flex; justify-content: center; }
}
/* 1023px 以下：導入事例・お客様の声のカードを 4 列 → 2 列に（4 列だとカード幅 146px で文字が窮屈・見出しが切れる） */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  body #containar-case .containar-case-items { justify-content: space-between; }
  body #containar-case .containar-case-items .containar-case-item { width: 48.5%; margin-left: 0; margin-top: 3%; }
}
/* 導入価格例（トップ #containar-fee・料金ページ #containar-price）：1247px 以下は金額の文字を一段小さく、1023px 以下は ＥＺ と 楽一 を上下に分ける */
@media only screen and (min-width: 768px) and (max-width: 1247px) {
  body #containar-fee .containar-price-box .price-num,
  body#price #containar-price .containar-price-box .price-num { font-size: 32px; }
  body #containar-fee .containar-price-box .price-num .unit,
  body#price #containar-price .containar-price-box .price-num .unit { font-size: 22px; }
}
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  body #containar-fee .containar-price-columns,
  body#price #containar-price .containar-price-columns { display: flex; flex-direction: column; gap: 0; }
  body #containar-fee .containar-price-ez-brand,
  body#price #containar-price .containar-price-ez-brand { align-self: center; width: 320px; margin: 0 0 12px; }
  body #containar-fee .containar-price-ez .containar-price-box,
  body#price #containar-price .containar-price-ez .containar-price-box { width: 320px; height: auto; margin: 0 auto; }
  body #containar-fee .containar-price-divider,
  body#price #containar-price .containar-price-divider { width: 100%; height: 0; border-left: 0; border-top: 4px dotted #969696; margin: 36px 0 28px; }
  body #containar-fee .containar-price-plans-logo,
  body#price #containar-price .containar-price-plans-logo { align-self: stretch; }
}

/* ---- 11. 幅の広い画面で楽一製品トップの冒頭を大きくする（2026-11-24） ----
   冒頭（.rktv-hero）の背景は画面いっぱいだが、中身は幅 1148px 固定。34 インチ級のワイドモニター（表示幅 2500px 前後）では
   中身が真ん中に小さく残る（長岡さん指摘）。1440px 以上で中身（文字・ボタン・PC 画像）をまとめて段階的に拡大する。
   ページ切り替えの帯と本文は従来どおり 1200px。zoom に対応しない古いブラウザーでは従来どおり。 */
@media only screen and (min-width: 1440px) { .rktv-hero__in { zoom: 1.12; } }
@media only screen and (min-width: 1680px) { .rktv-hero__in { zoom: 1.25; } }
@media only screen and (min-width: 1920px) { .rktv-hero__in { zoom: 1.38; } }
@media only screen and (min-width: 2240px) { .rktv-hero__in { zoom: 1.5; } }
@media only screen and (min-width: 2560px) { .rktv-hero__in { zoom: 1.6; } }

/* ---- 12. 各ページの見出し帯（#pagetitle）に、淡い水色の背景画像を敷く（2026-11-25） ----
   楽一トップの「楽一ご紹介動画」の区画と同じ画像（Adobe Stock 958678635 を Illustrator で書き出したもの）。
   帯の色・高さ・文字は header.js の <style>（rk-pagetitle-css）のまま。ここでは背景だけを足す。
   header.js の指定（body#rakuichi #pagetitle）や style.css の楽一ＥＺ用の指定（body#rakuichiez #pagetitle）より
   強くするため、id を 2 回重ねた書き方にしている。画像が読めないときは、今までの単色 #e4f2ff のまま。 */
html body #pagetitle#pagetitle {
  background-color: #e4f2ff;
  background-image: url("/rakuichi/img/top/bg-movie-v2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media only screen and (max-width: 767px) {
  html body #pagetitle#pagetitle {
    background-image: url("/rakuichi/img/top/bg-movie-v2_sp.jpg");
  }
}
