/**
 * ------------------------------
 * global.css
 * ------------------------------
 * @purpose
 * サイト全体共通のcss
 *
 * @pages
 * ・(サイト全体)
 *
 * @version
 * 1.1.1
 */

/**
 * ----------------------------------------
 *  # 基本スタイリング
 * ----------------------------------------
 */
@font-face {
  font-family: "HonokaMaru";
  src: url("/wp-content/themes/swell_child/custom/fonts/Honoka-Shin-Maru-Gothic_R.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

/**
 * ----------------------------------------
 *  # まなびの水跡 提出完了導線
 * ----------------------------------------
 */
.wm-review-submission-confirmation {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #b9d8e8;
  border-radius: 10px;
  background: #f3fbff;
  text-align: center;
}

.wm-review-submission-confirmation p {
  margin: 0;
}

.wm-review-submission-confirmation p + p {
  margin-top: 16px;
}

.wm-review-submission-message + p {
  margin-top: 16px;
}

.wm-review-submission-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #087fbd;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.4;
}

.wm-review-submission-return:hover,
.wm-review-submission-return:focus-visible {
  background: #066a9f;
  color: #fff !important;
  opacity: 1;
}

.wm-review-submission-return:focus-visible {
  outline: 3px solid rgba(8, 127, 189, 0.35);
  outline-offset: 3px;
}
/* リンク */
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: 2rem;
  margin: 3% auto;
}

/**
 * ----------------------------------------
 *  # 固定ページ共通：ページ見出し [pc,sp]
 *    ・対象ページだけに付与するbody classでスコープする
 *    ・既存のフォント指定は変更しない
 * ----------------------------------------
 */
#body_wrap.wm-compact-page-heading .l-mainContent__inner > .c-pageTitle {
  margin: 1.5% auto 1%;
  padding-bottom: 0.35em;
  font-size: 1.75rem;
  line-height: 1.4;
}

/* SWELL標準の .l-content padding-top: 2em を対象ページだけ解除する。 */
#body_wrap.wm-compact-page-heading .l-content {
  padding-top: 0;
}

/* SWELL標準の本文上余白 4em を半分にして、見出しとの距離を整える。 */
#body_wrap.wm-compact-page-heading .l-mainContent__inner > .post_content {
  margin-top: 2em;
}

/* 比較案A：SWELLの全幅グレー線を消し、タイトル幅の青線だけを残す。 */
#body_wrap.wm-compact-page-heading .c-pageTitle[data-style="b_bottom"] {
  border-bottom: 0 !important;
}

/**
 * ----------------------------------------
 *  # ログインページ：ページ見出しを視覚的に非表示 [pc,sp]
 *    ・見出しはスクリーンリーダーへ残す
 *    ・フォームは固定ページ共通のコンパクトな配置を継承する
 * ----------------------------------------
 */
#body_wrap.wm-hide-page-heading .l-mainContent__inner > .c-pageTitle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  #body_wrap.wm-compact-page-heading .l-mainContent__inner > .c-pageTitle {
    margin-top: 4%;
    margin-bottom: 2%;
    padding-bottom: 0.35em;
    font-size: 1.5rem;
  }

}
/* 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) {
  .l-content p {
    font-size: 1.2rem;
    margin: 7% auto;
  }
}

/**
 * ----------------------------------------
 *  # 共通パーツ :swell関連
 * ----------------------------------------
 */
/***
 * [リンクリスト :swell]
 */
/* 水色表示でリンク感を出す */
ul.swell-block-linkList a span {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  cursor: pointer;
  color: rgb(3, 140, 195);
  font-weight: 500;
}
/* ホバー時に指ポインタ表示 */
ul.swell-block-linkList a:hover {
  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]
 *  SPではSWELLメニューアイコンを常時表示し、サイトタイトルは中央寄せを維持する。
 */
@media screen and (max-width: 768px) {
  .l-header__menuBtn {
    display: block !important;
  }
  /* メニューは、黒のDropletアイコンとラベルで案内する */
  .l-header__menuBtn .c-iconBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    color: #333;
  }
  .l-header__menuBtn .c-iconBtn__icon {
    display: block;
    width: 22px;
    height: 22px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M12 1.5C9.4 5.2 5 10.1 5 14.3a7 7 0 0 0 14 0C19 10.1 14.6 5.2 12 1.5Zm0 17.8a5 5 0 0 1-5-5c0-2.3 2.2-5.8 5-9.7 2.8 3.9 5 7.4 5 9.7a5 5 0 0 1-5 5Z'/%3E%3C/svg%3E");
  }
  .l-header__menuBtn .c-iconBtn__icon::before {
    content: none;
  }
  .l-header__menuBtn .c-iconBtn::after {
    content: "MENU";
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
  }
  /* サイトタイトルを中央寄せ */
  .l-header__inner {
    position: relative;
  }
  .l-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
  }

  /* SWELL標準メニューをWaterMeの案内パネルとして整える */
  #sp_menu .p-spMenu__inner {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 12px 0 32px rgba(32, 49, 70, 0.12);
  }
  #sp_menu .p-spMenu__body {
    padding: 18px 16px 30px;
  }
  #sp_menu .p-spMenu__closeBtn {
    margin: 2px 8px 0 0;
  }
  #sp_menu .c-widget__title.-spmenu {
    margin: 0 0 12px;
    padding: 11px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #5474a3, #6e8eb8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
  }
  #sp_menu .c-spnav > li > a,
  #sp_menu .c-spnav .sub-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 50px;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(84, 116, 163, 0.12);
    color: #2f3a46;
    font-size: 14px;
    font-weight: 500;
  }
  #sp_menu .c-spnav > li > a::before,
  #sp_menu .c-spnav .sub-menu a::before {
    content: none;
  }
  #sp_menu .wm-sp-menu-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: #5474a3;
    font-size: 16px;
  }
  #sp_menu .c-spnav .sub-menu {
    margin: 2px 0 8px;
    padding: 2px 0 2px 14px;
    border-left: 1px solid rgba(84, 116, 163, 0.18);
  }
  #sp_menu .c-spnav .sub-menu a {
    min-height: 44px;
    color: #4b5b6d;
    font-size: 13px;
  }
  #sp_menu .c-spnav .sub-menu .wm-sp-menu-link-icon {
    color: #6e8eb8;
    font-size: 14px;
  }
  #sp_menu .c-spnav a:hover,
  #sp_menu .c-spnav a:focus-visible {
    background: rgba(84, 116, 163, 0.08);
    color: #2f4f7d;
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 *  # 共通パーツ :自作
 * ----------------------------------------
 */
/***
 * [フッター > プライバシーポリシー]
 */
.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;
}

/* PC版SWELLヘッダー：SPメニューと同じ意味づけのアイコンを添える */
@media screen and (min-width: 769px) {
  #gnav .c-gnav > li > a,
  #gnav .c-gnav .sub-menu a {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 7px;
  }

  #gnav .c-gnav > li > a {
    padding-inline: 12px;
  }

  #gnav .wm-pc-menu-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: #6e8eb8;
    font-size: 13px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  #gnav .c-gnav .sub-menu a {
    gap: 8px;
    padding: 12px 18px;
  }

  #gnav .c-gnav .sub-menu {
    width: 320px;
    min-width: 320px;
  }

  #gnav .c-gnav .sub-menu > li::before,
  #gnav .c-gnav .sub-menu a::before {
    content: none;
  }

  #gnav .c-gnav .sub-menu .wm-pc-menu-link-icon {
    color: #5474a3;
    font-size: 12px;
  }

  #gnav .c-gnav a:hover .wm-pc-menu-link-icon,
  #gnav .c-gnav a:focus-visible .wm-pc-menu-link-icon {
    color: #2f5f9c;
    transform: translateY(-1px);
  }
}
