/*
Theme Name: WP Test
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-test
Tags: 
*/

/**
 * Link styles：リンク色の修正設定
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: .1em;
}

/* 🔸ブロックテーマ用初期化 */
/* ボックスモデルの統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ブラウザのデフォルト余白をリセット */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
dl,
blockquote,
figure {
  margin: 0;
  padding: 0;
}

/* リストスタイルの初期化（特定のクラスを持つもの以外） */
ul:not([class]),
ol:not([class]) {
  margin-left: 1.5em;
  list-style: disc;
}

/* 画像のレスポンシブ対応 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* フォーム要素のフォント継承 */
input,
button,
textarea,
select {
  font: inherit;
}

/* 🔸マイ初期化 補正 */
button {cursor: pointer;}

/* インラインスタイル ハイライト補正 */
mark {
  background-color: transparent; /* 背景色を透明にする */
  color: inherit;              /* 文字色を親要素から引き継ぐ */
  font-weight: inherit;        /* フォントの太さを引き継ぐ */
  padding: 0;                  /* 余白をゼロにする */
}
/* indent補正 */
p.wp-block-site-title {
  text-indent: 0;
}
/* iOS Safari テキストサイズ自動調整機能オフ
 * footer 著作年部 目次章-節部
 */
body {
  -webkit-text-size-adjust: 100%;
}

/* ==========================================
   レスポンシブ表示制御
   ========================================== */

/* ~650px 今日の日付非表示 */
@media (max-width: 650px) {
  header .today-date {
    display: none !important;
  }
}

/* ~550px 並列から縦列 */
@media (max-width: 550px) {
  /* ページャー 投稿日 */
  .pager.is-layout-flex,
  .posted-date.is-layout-flex {
    flex-direction: row !important;
    align-items: center !important; 
  }
  /* コードブロック */
  .code-block {
    width: 100%;
  }
  /* コードメモ */
  .code-block:has(> pre.wp-block-code.is-style-code-memo) {
    position: initial !important;
  }
  p.wp-block-site-title {
    padding-left: var(--wp--preset--spacing--step-3) !important;
  }

}

/* ~450px 文字サイズ調整 */
@media (max-width: 450px) {
  header .wp-block-site-logo img.custom-logo {
    width: 85%;
  }

  article .posted-date {
    display: none !important;
  }

  h1,h2,h3,h4,h5,h6,
  .note-child-list li a {
    font-size: var(--wp--preset--font-size--step-0);
    letter-spacing: -0.05em;
  }

  .note-section,
  footer small .has-step-1-font-size {
    font-size: var(--wp--preset--font-size--step-00) !important;
  }

  header nav.has-step-1-font-size,
  .wp-site-blocks main article p:not(.no-resize) {
    font-size: var(--wp--preset--font-size--step-000) !important;
  }

  h1.wp-block-post-title {
    margin-top: 0 !important;
  }
  .text-filter-wrapper {
    top: 87px !important;
  }
  .text-filter-input { 
    width: 5.5em !important;
  }
}/* 終わり ~450px 文字サイズ調整 */


/* ＝＝＝＝＝＝＝＝＝＝ JS 季節変化 */
body.spring {
  background-color: var(--honeydew);
}
body.summer {
  background-color: var(--aliceblue);
}
body.autumn {
  background-color: var(--oldlace);
}
body.winter {
  background-color: var(--papayawhip);
}

.spring .is-style-post-title-icon::before,
.spring .is-style-heading-icon::before {
  background-color: var(--yellowgreen);
}
.summer .is-style-post-title-icon::before,
.summer .is-style-heading-icon::before {
  background-color: var(--forestgreen);
}
.autumn .is-style-post-title-icon::before,
.autumn .is-style-heading-icon::before {
  background-color: var(--gold);
}
.winter .is-style-post-title-icon::before,
.winter .is-style-heading-icon::before {
  background-color: var(--darkorange);
}

/** セクションの微インデント
 * クラス属性を持ち、かつ直下に h3~h6 を含んでいる section 要素
 */
.is-layout-constrained > :where(h3, h4, h5, h6) ~ *:not(h3, h4, h5, h6) {
  margin-left: var(--wp--preset--spacing--step-1) !important;
}
p + p {
  margin-top: var(--wp--preset--spacing--step-00) !important;
}
main article h1.wp-block-post-title {
  margin-left: -1% !important;
}
/*
h2, h3, h4, h5, h6 {
    margin-top: var(--wp--preset--spacing--step-2) !important;
}*/


/* 第*章 *-* */
.note-section, .note-chapter {
  font-variant-numeric: tabular-nums; /* 数字の幅を等幅にし、1と8などでガタつき防止 */
  display: inline-block;
  white-space: nowrap;
}
.note-chapter {
  margin: 0.08em 0.5em 0 0;
}
.note-section {
  margin-right: 0.3em;
  font-size: var(--wp--preset--font-size--step-000);
}
.wp-block-post-title .note-section {
  margin: 0.18em 0.25em 0 0;
  font-size: var(--wp--preset--font-size--step-1);
}


/* ブロックギャップ補正 */
header {
  margin-block-start: 2px !important;
}
main, footer {
  margin-block-start: 4px !important;
}
footer {
  margin-block-end: 2px !important;
}


/* 🔸 ページタイトルアイコン */
.is-style-heading-icon,
.is-style-post-title-icon,
.archive-post-title {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.is-style-heading-icon::before,
.is-style-post-title-icon::before {
  background-color: var(--yellowgreen);
}
h1.is-style-post-title-icon::before,
.leaf-svg {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  width: 1.35em;
  height: 1.35em;
  margin-right: 0.45em;
  vertical-align: sub;
  -webkit-mask-image: url('./assets/images/svg/leaf-solid.svg');
  mask-image: url('./assets/images/svg/leaf-solid.svg');
}
/* タクソノミー ノート アイコン */
.tax-notes_taxonomy h1.is-style-post-title-icon::before,
.tax-notes_taxonomy h1.archive-post-title::before,
.is-note-parent h1.is-style-post-title-icon::before,
.book-svg::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: var(--steelblue) !important;
  -webkit-mask-image: url('./assets/images/svg/book-solid.svg');
  mask-image: url('./assets/images/svg/book-solid.svg');
  width: 1.3em;
  height: 1.3em;
  transform: skewX(-10deg) scaleX(1.2);
  margin-right: 0.05em;
  vertical-align: sub;
}
.is-note-parent h1.is-style-post-title-icon::before {
  margin-right: 0.7em;
  margin-top: 0.1em
}
 /* カテゴリー一覧アイコン */
.category h1.archive-post-title::before,
.folder-open-svg::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: var(--gold);
  -webkit-mask-image: url('./assets/images/svg/folder-open-solid.svg');
  mask-image: url('./assets/images/svg/folder-open-solid.svg');
  width: 1.45em;
  height: 1.45em;
  margin-left: 0.1em;
  vertical-align: text-bottom;
}
 /* タグ一覧アイコン */
.tag h1.archive-post-title::before,
.tag-svg::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: var(--lightsalmon);
  -webkit-mask-image: url('./assets/images/svg/tag-solid.svg');
  mask-image: url('./assets/images/svg/tag-solid.svg');
  width: 1.25em;
  height: 1.25em;
  margin-left: 0.1em;
  vertical-align: sub;
}
/* 検索結果、404アイコン */
.search-no-results h1.archive-post-title::before,
.error404 h1.archive-post-title::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: #bdbc8f;
  -webkit-mask-image: url('./assets/images/svg/magnifying-glass-solid.svg');
  mask-image: url('./assets/images/svg/magnifying-glass-solid.svg');
  width: 1.4em;
  height: 1.4em;
  margin-left: 0.1em;
  vertical-align: text-top;
}
.error404 h1.archive-post-title::before {
  margin-right: 0.5em;
}

/* ノート親 h2目次 */
.is-note-parent h2.note-child-index-title {
  line-height: 1.7;
}
/* ノート親 h2目次 アイコン */
.is-note-parent h2.note-child-index-title::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: var(--olivedrab);
  -webkit-mask-image: url('./assets/images/svg/list-solid.svg');
  mask-image: url('./assets/images/svg/list-solid.svg');
  width: 1.35em;
  height: 1.35em;
  margin-right: 0.6em;
  margin-top: 0.3em;
  vertical-align: sub;
}


/* 見出し用アイコン */
/* 共用 */
.is-style-heading-icon::before,
.is-style-post-title-icon::before,
.archive h2.archive-post-title::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/**
 * カスタムノートタイトルh1アイコン
 * アーカイブ一覧のノートカテゴリ一覧以外の
 * 個別ノートタイトルh2アイコン
 */
h1.is-style-heading-icon::before,
body:not(.tax-notes_taxonomy).archive h2.is-style-post-title-icon::before {
  width: 1.6em;
  height: 1.6em;
  margin-right: 0.4em;
  vertical-align: bottom;
  -webkit-mask-image: url('./assets/images/svg/leaf-solid.svg');
  mask-image: url('./assets/images/svg/leaf-solid.svg');
}



/* ノートカテゴリ一覧以外のアーカイブ（h2）微調整 */
body:not(.tax-notes_taxonomy).archive h2.is-style-post-title-icon::before {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5em;
  vertical-align: sub;
}

/* h2 以下 アイコン */
h2.is-style-heading-icon::before {
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.2em;
  vertical-align: sub;
  -webkit-mask-image: url('./assets/images/svg/pagelines-brands-solid.svg');
  mask-image: url('./assets/images/svg/pagelines-brands-solid.svg');
  rotate: 3deg;
}

h3.is-style-heading-icon::before {
  width: 0.9em;
  height: 0.9em;
  margin: 0.25em 0.25em 0 0.25em;
  -webkit-mask-image: url('./assets/images/svg/seedling-solid.svg');
  mask-image: url('./assets/images/svg/seedling-solid.svg');
}

:is(h4, h5, h6).is-style-heading-icon::before {
  width: 0.9em;
  height: 0.9em;
  margin: 0.28em 0.25em 0 0.25em;
  -webkit-mask-image: url('./assets/images/svg/canadian-maple-leaf-brands-solid.svg');
  mask-image: url('./assets/images/svg/canadian-maple-leaf-brands-solid.svg');
  rotate: 33deg;
}
h5.is-style-heading-icon::before {
  margin-top: 0.35em;
  width: 0.8em;
  height: 0.8em;
}
h6.is-style-heading-icon::before {
  margin-top: 0.47em;
  width: 0.7em;
  height: 0.7em;
}

/* 見出し付属テキスト */
h2 span.fs-step-000 {
  display: inline-block;
  margin-top: 0.3em;
}


/* *** タクソノミーリスト小アイコン *** */
/* ノート フォルダ開 タグ 共用 */
.taxonomy-list-container nav .tax-item:nth-child(1 of .taxonomy-list-container nav .tax-item)::before,
.category-list:nth-child(1 of .category-list)::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 0.3em;
  margin-bottom: 0.1em;
}
/* ノート */
.taxonomy-list-container nav.is-notes .tax-item:nth-child(1 of .taxonomy-list-container nav.is-notes .tax-item)::before {
  background-color: steelblue;
  -webkit-mask-image: url('./assets/images/svg/book-solid.svg');
  mask-image: url('./assets/images/svg/book-solid.svg');
  width: 1.1em;
  height: 1.1em;
  transform: skewX(-10deg) scaleX(1.2);
  margin-right: 0.4em;
  margin-bottom: 0.35em;
}
/* フォルダ開 */
.taxonomy-list-container nav.is-category .tax-item:nth-child(1 of .taxonomy-list-container nav.is-category .tax-item)::before {
  background-color: var(--gold);
  -webkit-mask-image: url('./assets/images/svg/folder-open-solid.svg');
  mask-image: url('./assets/images/svg/folder-open-solid.svg');
  width: 1.35em;
  height: 1.35em;
  transform: scaleY(1.1);
  margin-right: 0.35em;
}
/* タグ */
.taxonomy-list-container nav.is-tag .tax-item:nth-child(1 of .taxonomy-list-container nav.is-tag .tax-item)::before {
  background-color: lightsalmon;
  -webkit-mask-image: url('./assets/images/svg/tag-solid.svg');
  mask-image: url('./assets/images/svg/tag-solid.svg');
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.15em;
  margin-bottom: 0.25em;
}
/* 時計アイコン */
.taxonomy-list-container .post-date::before,
.is-style-clock-icon::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  vertical-align: sub;
  background-color: #bdbc8f;
  -webkit-mask-image: url('./assets/images/svg/clock-solid.svg');
  mask-image: url('./assets/images/svg/clock-solid.svg');
  width: 1.17em;
  height: 1.17em;
  margin-right: 0.33em;
  margin-bottom: 0.1em;
}
/* 終わり タクソノミーリスト小アイコン */



/* 電源アイコン */
.power-off-icon::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  vertical-align: sub;
  background-color: var(--wp--preset--color--text-base);
  -webkit-mask-image: url('./assets/images/svg/power-off-solid.svg');
  mask-image: url('./assets/images/svg/power-off-solid.svg');
  width: 0.9em;
  height: 0.9em;
  margin-bottom: 0.18em;
}
.kbd-mdn .power-off-icon {
  padding: 0.15em;
}
.kbd-mdn .power-off-icon::before {
  margin-bottom: 0.01em;
  width: 1em;
  height: 1em;
}
.kbd-wiki-alt-black .power-off-icon::before {
  background-color: var(--white);
}


/* windows アイコン */
.windows-icon::before {
  content: "";
  display: inline-block;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  vertical-align: sub;
  background-color: var(--wp--preset--color--text-base);
  -webkit-mask-image: url('./assets/images/svg/windows-brands-solid.svg');
  mask-image: url('./assets/images/svg/windows-brands-solid.svg');
  width: 0.92em;
  height: 0.92em;
  margin-bottom: 0.05em;
}

/* 絵文字アイコン */
/* bolt */
img[alt="⚡️"] {
  height: 1.3em!important;
  width: 1.3em!important;
  margin-bottom: -0.085em !important;
}
/* 星 */
img[alt="⭐"] {
  height: 1em !important;
  width: 1em !important;
  margin-top: 0.35em !important;
}


/* 🔸 タクソノミーパンくずリスト */
.taxonomy-list-container {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.7em;
}
.taxonomy-list-container > nav {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5em;
}
/* 最後の > を非表示 */
.taxonomy-list-container .tax-item .sep:last-child { 
  display: none !important;
}

/* 親目次ノートのタクソノミーリストを非表示 */
.is-note-parent .taxonomy-list-container { 
  display: none !important;
}



/* カテゴリ罫線 */
.archive.category .is-style-post-title-icon {
  border-top-color: var(--wp--preset--color--ruled-lines-category) !important;
}
.archive.category .is-style-post-title-icon,
.archive.category div:has(>.taxonomy-list-container) {
  border-bottom-color: var(--wp--preset--color--ruled-lines-category) !important;
}
/* タグ罫線 */
.archive.tag .is-style-post-title-icon {
  border-top-color: var(--wp--preset--color--ruled-lines-tag) !important;
}
.archive.tag .is-style-post-title-icon,
.archive.tag div:has(>.taxonomy-list-container) {
  border-bottom-color: var(--wp--preset--color--ruled-lines-tag) !important;
}
 
/* ***** アーカイブページ ***** */
/* アーカイブ記事 検索結果 区切り線 間隔 */
.archive .wp-block-post-template li,
.search-results .wp-block-post-template li + li {
  line-height: 0;
}
.archive .wp-block-post-template li + li,
.search-results .wp-block-post-template li + li {
  border-top: 2px solid var(--wp--preset--color--ruled-lines);
  padding-top: var(--wp--preset--spacing--step-1);
  padding-bottom: var(--wp--preset--spacing--step-0);
}
/* カテゴリ区切り線 */
.archive.category .wp-block-post-template li + li {
  border-top-color: var(--wp--preset--color--ruled-lines-category) !important;
}
/* タグ区切り線 */
.archive.tag .wp-block-post-template li + li {
  border-top-color: var(--wp--preset--color--ruled-lines-tag) !important;
}


/* 目次セクションの外枠 */
.note-child-pages-index {
  margin-top: var(--wp--preset--spacing--step-0);
  padding: var(--wp--preset--spacing--step-0);
}

/* リスト本体 */
.note-child-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 0 var(--wp--preset--spacing--step-1) !important;
}

.note-child-list li {
  position: relative;
  padding: var(--wp--preset--spacing--step-2) 0 var(--wp--preset--spacing--step-1);
  border-bottom: 2px solid var(--wp--preset--color--ruled-lines);
}

.note-child-list li a {
  font-size: var(--wp--preset--font-size--step-0);
  text-decoration: none;
  display: block;
}


/* 一覧ページタイトルリンクホバー */
.note-child-list li a:hover,
.tax-notes_taxonomy li h2:hover,
.archive li h2:hover {
  background-color: rgba(0,0,0,0.035);
  width: 100%;
}

/* 検索ページネーション */
.wp-block-query-pagination-numbers .current {
  color: var(--wp--preset--color--text-base);
  font-size: var(--wp--preset--font-size--step-0);
}
