/**
 * global.css
 * 全体共通のカスタムスタイル
 */

@font-face {
  font-family: "HonokaMaru";
  src: url("/wp-content/themes/swell_child/custom/fonts/Honoka-Shin-Maru-Gothic_R.woff")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "游ゴシック", sans-serif;
}

a {
  text-decoration: none;
}
a:hover {
  opacity: 0.7;
}

/**
 * ----------------------
 * チェックリスト
 * ----------------------
 */
/* 指定のチェックマーク画像を差し込む */
ul.wm-checklist li {
  list-style: none;
  position: relative;
  padding-left: 1.8em;
  margin: 1.5% auto;
}

ul.wm-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("http://test.waterme.jp/wp-content/uploads/2025/10/check_smokeblue_1.png")
    no-repeat center center;
  background-size: contain; /* 元画像の比率を保って収める */
}

/**
 * ----------------------
 * swell：リンクリスト
 * ----------------------
 */
/* 通常から水色表示でリンク感を出す */
ul.swell-block-linkList a span {
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: default;
  color: rgb(3, 140, 195);
  font-weight: 500;
}
/* ホバー時に指ポインタ表示 */
ul.swell-block-linkList a:hover {
  cursor: pointer;
  opacity: 0.7;
  transform: translateX(5px);
}

/**
/**
* ----------------------
* swell：もくじ
* ----------------------
*/
/* 通常から水色表示でリンク感を出す */
ul.p-toc__list a {
  /* transition: opacity 0.4s ease, transform 0.4s ease; */
  cursor: default;
  color: rgb(32, 120, 155);
  font-weight: 500;
  font-size: 16px;
}
/* ホバー時に指ポインタ表示 */
ul.p-toc__list a:hover {
  cursor: pointer;
  opacity: 0.5;
  /* transform: translateX(5px) !important; */
}

/**
 * ----------------------
 * 共通部品：デザイン・エフェクトの個別適用
 * ----------------------
 */
/* Honokamaruフォントの適用 */
.honokamaru {
  font-family: "HonokaMaru";
}
/* フェードイン効果 */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 3.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 3.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* HPタイトル */
.c-headLogo {
  font-family: "HonokaMaru";
  font-size: 1.7rem;
}
/* 本文内見出し：H1 */
.l-content h1 {
  font-family: "HonokaMaru";
  font-size: 2.8rem;
  margin: 10% auto;
}

/* 本文内見出し：H2 */
.l-content h2 {
  font-family: "HonokaMaru";
  font-size: 1.8rem;
  margin: 15% auto 7% !important;
  background-color: #f2f2f2;
  @media (max-width: 768px) {
    margin: 25% auto 10% !important;
  }
}
.l-content h2.wp-block-heading {
  padding: 10px 10px 10px 30px !important;
}

/* 本文内見出し：H3 */
.l-content h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 5% auto;
}

/* 本文内見出し：H4 */
.l-content h4 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 2% auto;
}
/* 本文内段落：p */
.l-content p {
  margin: 5% auto;
  @media (max-width: 768px) {
    font-size: 1.2rem;
    margin: 7% auto;
  }
}

/**
* ----------------------
* 動画
*
* 停止時：
* 　・常時：再生アイコン(▶)を表示,画面中央寄せ
* 　・ホバー時：半透明,ズーム
*
* 再生時：
* 　・Video Popupプラグイン側で自動ポップアップ生成
 * ----------------------
 */
.wm-video {
  position: relative;
  display: block;
  text-align: center;
  cursor: pointer;
  margin: 20px auto;
}
.wm-video img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.25, 1.25, 0.5, 1), opacity 0.3s ease;
}
.wm-video:hover img {
  opacity: 0.6;
  transform: scale(1.08);
}
.wm-video .fa-play {
  /* Font Awesomeの再生アイコン(▶)をオーバーレイ表示 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/**
 * ----------------------
 * フッター
 * ----------------------
 */
/* ポリシー(プライバシーポリシー) */
.footer-policy {
  text-align: center;
  margin-bottom: 8px;
  font-size: 14px;
}
.footer-policy a {
  text-decoration: none;
}
.footer-policy a:hover {
  opacity: 0.6;
}

/* タグクラウド */
.tag-cloud-link {
  font-size: 14px !important;
  padding: 3% 5% !important;
  border-radius: 15px !important;
  font-weight: 600;
}
