@charset "UTF-8";
/* =========================================================================
   アクセシビリティ／可読性の調整  2026-11-23
   このファイルを読み込みから外せば、すべて元の表示に戻ります。
   （header.php / header-blog.php / header-single.php の link を削除）
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. フォーカスリング
   キーボード操作時に「いま、どこにいるか」が見えるようにする。
   マウス操作では出ない（:focus-visible）。
   ------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #d2171a;
  outline-offset: 2px;
  border-radius: 2px;
}

/* 暗い背景・赤背景の上では赤いリングが埋もれるので白にする */
.footer a:focus-visible,
#g-nav a:focus-visible,
#g-nav2 a:focus-visible,
#g-nav button:focus-visible,
#g-nav2 button:focus-visible,
#g-nav input:focus-visible,
#g-nav2 input:focus-visible,
.btn--red a:focus-visible,
.btn--black a:focus-visible,
.section_index_contact a:focus-visible,
.header .openbtn:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .45);
}

/* -------------------------------------------------------------------------
   2. コントラスト（JIS X 8341-3 / WCAG AA = 4.5:1）
   ------------------------------------------------------------------------- */

/* 2-1. ハンバーガーメニューの閉じている間の背景を、開いたときと同じ色にする。
   元は #999 で、開くまでの0.3秒だけ灰色がちらついていた。 */
#g-nav {
  background: #282828;
}
#g-nav2 {
  background: #fff;
}

/* 2-2. 記事の日付・カテゴリ、実績の社名 gray(#808080) → #636363
   白地 3.95 → 6.01 ／ #F4F5F6 上 3.62 → 5.51 */
.main .section_index_blog .article-item .item-meta,
.main .section_index_blog .article-item .item-meta a,
.main .section_index_interview .int_lead span {
  color: #636363;
}
.main .section_index_blog .article-item .item-meta .item-cat {
  border-color: #636363;
}

/* 2-3. 見出し脇の英字ラベル #878788 → #737373（白地 3.59 → 4.74） */
.heading-border-side span span {
  color: #737373;
}

/* -------------------------------------------------------------------------
   3. 文字サイズの下限（和文は12px未満で可読性が落ちる）
   ------------------------------------------------------------------------- */
.footer .small,
.footer-blog .small,
.main .section_index_interview .int_lead span,
.section_consulting_expert .title span,
.main .section_index_blog .article-item .item-meta .item-cat,
.main .section_index_contents .item_01 .item_badge {
  font-size: 12px;
}

/* -------------------------------------------------------------------------
   4. タップ領域（最小44×44px）
   疑似要素で当たり判定だけを広げ、見た目と配置は変えない。
   ------------------------------------------------------------------------- */
/* position は上書きしない。すでに absolute のものに relative を当てると
   配置が崩れるため、static のものだけ relative にする。 */
.inner-logo a,
.footer .align-center ul li a,
.main .section_index_blog .article-item .item-meta .item-cat a,
.item_02 .tools_manual a {
  position: relative;
}
.inner-logo a::after,
.footer .align-center ul li a::after,
.item_02 .tools_manual a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
.header .header-mail::after,
.main .section_index_blog .article-item .item-meta .item-cat a::after,
.bme-popup-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
/* ボタンの高さを44pxに（上下のpaddingのみ調整） */
.btn a,
.btn input {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* 検索ボックスと送信ボタン */
.header form .submit {
  min-width: 44px;
  min-height: 44px;
}
.header form input[type="text"] {
  min-height: 44px;
}

/* -------------------------------------------------------------------------
   4-2. ツールカードのマニュアルリンク
   入れ子の <a> を解消してカードの外へ出したぶんの位置調整。
   ------------------------------------------------------------------------- */
.item_02 .tools_manual {
  margin-top: .5em;
}
.item_02 .tools_manual a {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   5. ハンバーガーボタンのキーボード操作
   div をボタンとして扱うため、フォーカス可能にした分の見た目を整える。
   ------------------------------------------------------------------------- */
.openbtn[role="button"] {
  -webkit-tap-highlight-color: rgba(210, 23, 26, .18);
}

/* -------------------------------------------------------------------------
   6. transition: all を実際に変化するプロパティだけに限定
   （all は将来追加したプロパティまで巻き込み、描画コストも高い）
   ------------------------------------------------------------------------- */
.openbtn span {
  transition: top .4s, left .4s, width .4s, transform .4s, background-color .4s;
}
.section_consulting_expert .title {
  transition: background-color .5s ease;
}

/* -------------------------------------------------------------------------
   7. アニメーションを減らす設定（OS側）への対応
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *:not(.swiper-wrapper):not(.swiper-slide) {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   8. 本文へスキップ（キーボード操作でヘッダーを飛ばせる）
   ------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 16px;
  background: #d2171a;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}
#main-content:focus {
  outline: none;
}

/* -------------------------------------------------------------------------
   9. 和文の行分割（禁則処理）
   ------------------------------------------------------------------------- */
html {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
   10. 閉じているメニューをタブ移動の対象から外す
   opacity:0 のままだと、見えないリンク25本にフォーカスが入ってしまう。
   ------------------------------------------------------------------------- */
#g-nav,
#g-nav2 {
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
#g-nav.panelactive,
#g-nav2.panelactive {
  visibility: visible;
}

/* メニュー内の検索窓のプレースホルダー（背景 #6B6B6B 上で 4.67:1） */
.header form input::-moz-placeholder { color: #F0F0F0; opacity: 1; }
.header form input::placeholder { color: #F0F0F0; opacity: 1; }

/* -------------------------------------------------------------------------
   11. PC幅での横スクロール（約100px）を止める
   スクロール時に右から入ってくる画像の初期位置（translateX(100px)）が
   画面幅をはみ出していた。アニメーション自体はそのまま。
   ------------------------------------------------------------------------- */
.main .section_index_contents {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  .main .section_index_contents { overflow-x: hidden; }
}

/* =========================================================================
   12. トップページ以外（ブログ一覧・記事・各サービスページ）
   ========================================================================= */

/* 12-1. 日付・カテゴリ・注記のコントラスト（gray → #636363） */
.recommend .recommend-list .list_inner .text-wrap .date,
.archiveWrap li .date,
.archiveWrap li .cat,
.article-item .article-content .date,
.article-item .article-content .cat,
.article-item .item-meta,
.item-meta,
.item-meta .date,
.item-meta .cat,
.wp-pagenavi .page,
.date-wrap .cat,
.date-wrap .date,
.main .contact-contents .inner .cap,
.section_interview .int_lead span {
  color: #636363;
}

/* 12-2. 文字サイズの下限（9px・10px・11px → 12px） */
.recommend .recommend-list .list_inner .text-wrap .date,
.archiveWrap li .date,
.archiveWrap li .cat,
.article-item .article-content .date,
.article-item .article-content .cat,
.item-meta .date,
.item-meta .cat,
.section_blog_category ul li,
.date-wrap .cat,
.date-wrap .date,
.sidebar .tag-ist li,
.sidebar .side-newpost li .archive .navigation .date,
.contents-top h2 span,
.section_interview .int_lead span,
.system-fields .system-field h3 span,
.system-flow .system-flow-item h3 .step,
.system-subsidy .system-subsidy-steps > li .n,
.system-subsidy .system-subsidy-detail-item h3 .step,
.system-subsidy .system-subsidy-list ul li span {
  font-size: 12px;
}

/* 12-3. 入力欄の文字サイズ
   スマホで16px未満だと、タップしたときにiOSが画面を勝手に拡大する。 */
.blog-form input {
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* 12-4. ブログページのタップ領域 */
.blog-form input[type="text"] {
  min-height: 44px;
}
.blog-form .submit {
  min-width: 44px;
  min-height: 44px;
}
.section_blog_category ul li a {
  position: relative;
}
.section_blog_category ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

/* 12-5. 記事ページのタグ・サイドバーのタップ領域 */
.tag-ist li a,
.sidebar .tag-ist li a {
  position: relative;
  display: inline-block;
}
.tag-ist li a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  min-width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* -------------------------------------------------------------------------
   13. 記事本文の画像
   読み込み中のガタつき（CLS）を防ぐため、高さの比率を保つ。
   ------------------------------------------------------------------------- */
.post-content img,
.entry-content img,
.single-content img {
  height: auto;
}

/* 12-6. カテゴリーリンク（サイドバー・記事下）のタップ領域 */
li.cat-item > a,
.date-wrap .cat a,
.item-meta .cat a {
  position: relative;
}
li.cat-item > a::after,
.date-wrap .cat a::after,
.item-meta .cat a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  min-width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* 12-7. システム開発ページの薄いグレー文字（白地 3.19 / 4.42 → 5.47 / 4.97） */
.system-subsidy .system-subsidy-steps > li .n,
.system-subsidy .system-subsidy-figure-note,
.system-subsidy .system-subsidy-list ul li span {
  color: #636A72;
}

/* 12-8. お問い合わせフォーム */
/* 同意欄のリンク：薄いグレー地の上で 4.32 → 5.72 */
.mw_wp_form .contact-privacy-link a,
.contact-privacy-link a {
  /* 元のCSSが !important を使っているため、こちらも同じ強さで指定する */
  color: #B01013 !important;
}
/* ラジオ・チェックボックスは、ラベル全体をタップできる高さにする */
.mwform-radio-field label,
.mwform-checkbox-field label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* 12-9. システム開発ページ：濃いグレーのカードに乗る赤い小見出し
   #d2171a on #383838 = 2.17 → #FF8A8A で 5.16 */
.system-fields .system-fields-list .system-field h3 span,
.system-fields-list .system-field h3 span {
  color: #FF8A8A;
}
