/**
 * ------------------------------
 * global.css
 * ------------------------------
 * @purpose
 * サイト全体共通のcss
 *
 * @pages
 * ・(サイト全体)
 *
 * @note
 * ・.wm-css：自作cssは区別のため、ラッパーコンテナにwm-cssクラスを付している
 *
 * @version
 * 1.0.1
 */

/**
 * ----------------------------------------
 *  # 基本スタイリング
 * ----------------------------------------
 */
@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;
}
/* リンク */
a {
  text-decoration: none;
}
a:hover {
  opacity: 0.7;
}

/**
 * ----------------------------------------
 *  # 共通パーツ
 * ----------------------------------------
 */
/* サイトタイトル */
.c-headLogo {
  font-family: "HonokaMaru";
  font-size: 1.7rem;
}
/* body */
body {
  font-family: "游ゴシック", sans-serif;
}
/* 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: 8% auto;
  padding: 10px 10px 10px 30px !important;
  background-color: #f2f2f2;
}
/* 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: 3% auto;
  @media (max-width: 768px) {
    font-size: 1.2rem;
  }
}

/**
 * ----------------------------------------
 *  # 共通パーツ :swell関連
 * ----------------------------------------
 */
/***
 * [リンクリスト :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; */
}

/***
 * [swellヘッダメニュー :sp]
 *  ヘッダ内のswellメニューアイコンを消して、サイトタイトルを中央寄せ
 *  代わりに画面下部にメニューを表示する形をとっている。
 */
@media screen and (max-width: 768px) {
  /* ハンバーガーメニューを消去 */
  .l-header__menuBtn {
    display: none !important;
  }
  /* サイトタイトルを中央寄せ */
  .l-header__inner {
    position: relative;
  }
  .l-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
  }
}

/**
 * ----------------------------------------
 *  # 共通パーツ :自作
 * ----------------------------------------
 */
/***
 * [フッター > プライバシーポリシー]
 */
.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;
}

/**
 * ----------------------------------------
 *  # 共通部品/ユーティリティ
 * ----------------------------------------
 */
/***
 * [.wm-checklistセレクタ　➡　チェックリストのアイコン表示]
 */
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; /* 元画像の比率を保って収める */
}

/***
 * [.honokamaru ➡　Honokamaruフォント適用]
 */
.honokamaru {
  font-family: "HonokaMaru";
}
/***
 * [.fade-in ➡　フェードイン効果適用]
 */
.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);
}

/***
 * [.wm-video ➡ 動画]
 */
/* 停止時…常時：再生アイコン(▶)表示,画面中央寄せ */
.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);
}
/* 再生時…Video Popupプラグイン側で自動ポップアップ生成 */
.wm-video .fa-play {
  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;
}
