/*
Theme Name: Twenty Twenty-Five Child
Theme URI:  https://example.com/
Description: Child theme for Twenty Twenty-Five — custom CSS goes here.
Author:      remoteassist
Template:    twentytwentyfive
Version:     1.0.0
*/

/* ---------- サイト全体：リンクの下線を消す ---------- */

a,
a:visited {
  text-decoration: none; /* 下線を消す */
  border-bottom: none; /* テーマが border-bottom で下線付けている場合に備える */
  background-image: none; /* 一部テーマで使われる下線表現を消す */
}

/* ホバーでは色変化で「リンクらしさ」を出す（必要に応じて色を調整） */
a:hover,
a:active {
  text-decoration: none;
  color: inherit; /* テーマのリンク色に合わせたい場合は別途カラーハンドリング */
  opacity: 0.88; /* 軽い視覚フィードバック（任意） */
}

/* キーボード利用者のためのフォーカス可視化（必ず残す） */
a:focus-visible {
  outline: 3px solid #ffd166; /* フォーカスの色はブランドやアクセシビリティ要件に合わせて変更 */
  outline-offset: 3px;
  border-radius: 4px;
}

/* ここだけ下線を付ける用 */
a.link-underline {
  text-decoration: underline;
  border-bottom: none;        /* テーマの疑似下線対策 */
  background-image: none;     /* 同上 */
  text-underline-offset: 0.15em; /* 下線を少し離して読みやすく（任意） */
}

/* ホバー時 */
a.link-underline:hover {
  text-decoration-thickness: 2px; /* 任意：少し強調 */
  opacity: 1;
}


/* ヘッダーの固定 */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background-color: #fff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* ブロック */
/* 最新の投稿 */
.wp-block-latest-posts.wp-block-latest-posts__list li {
  margin-bottom: 2em;
}

/* トップに戻るボタン */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 999;
  cursor: pointer; /* ポインター */

  /* ★ iPad Safari 対策 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* hover / focus でも色を変えさせない */
.back-to-top:hover,
.back-to-top:focus {
  color: #fff !important;
}

/* フォーカス制御 */
.back-to-top:focus {
  outline: none;
}

.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ヘッダーの高さ分 */
/* Topに戻るボタン用 */
#top,
/* 目次リンク用 見出しアンカー調整 */
#faq-camera,
#faq-pc,
#faq-trouble,
#faq-others,
#faq-lbphone,
#faq-engo,
#logistics,
#medical-collaboration,
#medical-device-support,
#skill-transfer,
#safety-monitoring,
#automation-maintenance {
  scroll-margin-top: 150px;
}

/* 三角マークリスト*/
.triangle-list {
  list-style: none; /* デフォルトの点を消す */
  padding-left: 1.2em; /* ulの余白*/
}

.triangle-list li {
  position: relative;
  padding-left: 1.5em; /* 三角分の余白 */
}

.triangle-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.9em; /* マーカーを少し小さく */
  color: #666;
}


/* 三角マークリスト（オレンジ） */
.triangle-list--orange li::before {
  color: #f28c28;
}

/* チェックマーク付きのリスト */
.check-list {
  list-style: none; /* デフォルトの点を消す */
  padding-left: 1.2em; /* ulの余白*/
}

.check-list li {
  position: relative;
  padding-left: 1.5em; /* チェックマークの余白 */
}

.check-list li::before {
  content: "✔"; /* チェックマーク */
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #666;
}

/* ロゴの上のサブタイトルの文字 */
.subtitle {
  font-size: 1.25rem; /* 20px */
  display: block;
}

/* 固定ページ */
/* プライバシーポリシーページ */
body.page-id-3 h2 {
  padding: 0.25em 0.5em; /*上下 左右の余白*/
  color: #494949; /*文字色*/
  background: transparent; /*背景透明に*/
  border-left: solid 10px #7db4e6; /*左線*/
}

/* 法人向けページ */

/* 共通　h2　テンプレートにクラス指定 */
.b-page h2 {
  padding: 0.25em 0.5em; /*上下 左右の余白*/
  border-left: solid 10px #1f5e8c; /*左線*/
}

  /* 料金ページの導入の流れのカラム幅 */
  .priceplan-columns-wrap {
    max-width:1000px;
  }


/* FAQページ　h2ブロックにクラス指定 */
.h2-label-b {
  padding: 0.5em;
  background: #dce6ee;
  border-bottom: solid 3px #1f5e8c;
}

/*Biz Assist Xページ */
.bizassistx-page {
  padding: 0.25em 0.5em; /*上下 左右の余白*/
  border-left: solid 10px #c62828; /*左線*/
}

  /* カラム幅 */
  .bizassistx-columns-wrap {
    max-width:1100px;
  }

/* 個人向けページ */

/* 共通　h2　テンプレートにクラス指定 */
.c-page h2 {
  padding: 0.25em 0.5em; /*上下 左右の余白*/
  border-left: solid 10px #289F65; /*左線*/
}


/* FAQページ　h2ブロックにクラス指定 */
.h2-label-c {
  padding: 0.5em;
  background: #e3f2ec;
  border-bottom: solid 3px #23755A;
}

@media (max-width: 768px) {
  /* スマホ向け見出し調整 */
  h1 {
    font-size: 1.75rem;
  } /* 28px */
  h2 {
    font-size: 1.375rem;
  } /* 22px */
  h3 {
    font-size: 1.125rem;
  } /* 18px */
  h4 {
    font-size: 1rem;
  } /* 16px */
  h5 {
    font-size: 1rem;
  } /* 16px */

  /* 段落のフォントサイズを調整 */
  p {
    font-size: 1rem !important;
  } /* 16px */

  /* リストのフォントサイズを調整 */
  ul li,
  ol li {
    font-size: 1rem !important; /* 16px */
  }


  /* トップに戻るボタン位置調整 */
  .back-to-top {
    bottom: 30px;
  }

  /* ヘッダーの高さ分 */
  /* Topに戻るボタン用 */
  #top,
  /* 目次リンク用 見出しアンカー調整 */
  #faq-camera,
  #faq-pc,
  #faq-trouble,
  #faq-others,
  #logistics,
  #medical-collaboration,
  #medical-device-support,
  #skill-transfer,
  #safety-monitoring,
  #automation-maintenance {
    scroll-margin-top: 120px;
  }

  /* ロゴの上のサブタイトルの文字 */
  .subtitle {
    font-size: revert; /* デフォルトに戻す */
  }

  /* チェックマーク付きのリスト */
  .check-list ul,
  .check-list {
    padding-left: 0em;
  }

  /* 料金ページの導入の流れのカラム幅 */
  .priceplan-columns-wrap {
    max-width: 250px;
  }

  .priceplan-columns-wrap .wp-block-columns {
    gap: 1rem; /* モバイル時の余白調整 */
  }

  /* モバイルナビ全体の右寄せを解除 */
  .wp-block-navigation__responsive-container.is-menu-open {
    justify-content: flex-start !important;
  }

  /* 各メニュー項目を左揃えにする */
  .wp-block-navigation-item {
    width: 100%;
  }

  .wp-block-navigation-item__content {
    width: 100%;
    justify-content: flex-start !important;
    text-align: left !important;
  }

}
