/*
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;
}

/* クリック・マウス操作では枠を出さない */
a:focus:not(:focus-visible) {
  outline: none;
}


/* ヘッダーの固定 */
/* 上にスクロールしたら隠れて、下にスクロールしたら出てくる */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
  z-index: 9999;
}

/* 隠す */
.site-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* 固定にすると本文が下に潜るので高さを自動調整 */
.wp-site-blocks {
  padding-top: var(--header-height); /* jsで取得したヘッダーの高さに合わせる */
}


/* ブロック */
/* 最新の投稿 */
.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;
}

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

/* h3テンプレートにクラス指定 */
.p-page h3 {
  border-bottom: double 5px #1f5e8c /*下二重線*/
  }

/* ==========================
   固定ページ
   ========================== */
/* ファーストビュー画像 */
/* 初期：PC表示 */
.hero--sp {
  display: none;
}

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

/* ==========================
   法人向けページ　投稿ページ
   ========================== */
/* h1ブロックにクラス指定 */
.b-page-h1 {
  padding: 0.5em;
  background: #dce6ee;
  border-bottom: solid 3px #1f5e8c;
}

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

/*h2のデザイン */
/* テンプレートで指定してるけど個々に指定することになったら使う */
/* .b-page-h2 {
  padding: 0.25em 0.5em; 
  border-left: solid 10px #1f5e8c;
} */

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

/* ==========================
   Biz Assist Xページ
   ========================== */
/* h1ブロックにクラス指定 */
.bizassistx-page-h1 {
  background: #fdecec; /* 薄い赤 */
  border-bottom: solid 3px #c62828; /* 下線の赤 */
}

/* h2ブロックにクラス指定 */
.bizassistx-page-h2 {
  padding: 0.25em 0.5em; /*上下 左右の余白*/
  border-left: solid 10px #c62828; /*左線*/
}

/* ==========================
   個人向けページ
   ========================== */
/* 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;
}

/* ==========================
   コンタクトフォーム（CF7）
   ========================== */

/* input を箱にする */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  padding: 12px;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* 入力エリア内の不要なマージンを削除 */
.contact-form__item-input p {
  margin: 0;
}

/* フォーカス時の枠を非表示 */
.contact-form input:not([type="submit"]):focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: none; /* 将来のテーマ対策として入れておく */
}

/* 送信ボタン本体*/
.contact-form input[type="submit"],
.twlp-btn4__item {
  cursor: pointer;
  width: 100%;
  border: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  border-radius: 12px;
  letter-spacing: 0.5em;
  background: linear-gradient(to right, #ff855a 0%, #ff7f32 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.32);
}

/* 送信ボタン内テキスト余白 */
input.wpcf7-submit {
  padding: 12px 0;
}

/* ==========================
   メディアクエリ
   ========================== */
@media (max-width: 768px) {
  /* 折り返しの制御 */
  blockquote,
  caption,
  figcaption,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    text-wrap: wrap;
  }

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

  /* ヘッダーの高さ分 */
  /* 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;
  }

  /* ファーストビュー画像 */
  .hero--pc {
    display: none;
  }
  /* モバイル用ヒーロー */
  .hero--sp {
    display: block;
  }

  /* 高さ＋中央配置が必要なページだけ */
  .hero--vh {
    min-height: 60vh;
    display: flex;
    align-items: center;
  }

  /* テキストを少し上に持ち上げる */
  .hero--sp .wp-block-cover__inner-container {
    transform: translateY(-10%);
  }

  /* 料金ページの導入の流れのカラム幅 */
  .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: auto;
  }

  /* リンクだけを横いっぱいに */
  .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* 親ナビアイテムのフォーカス枠を消す */
  .wp-block-navigation-item:focus,
  .wp-block-navigation-item:focus-within {
    outline: none !important;
    box-shadow: none !important;
  }

  /* モバイル用ハンバーガーボタンのフォーカスを無効化 */
  .wp-block-navigation__responsive-container-open:focus,
  .wp-block-navigation__responsive-container-open:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }

  /* 閉じるボタン側も念のため */
  .wp-block-navigation__responsive-container-close:focus,
  .wp-block-navigation__responsive-container-close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
}
