@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700;900&display=swap");

:root {
  --beaver-1000: #3f2b24;
  --beaver-300: #d9b16a;
  --font-noto-sans-jp: "Noto Serif JP", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-noto-sans-jp);
  background: #f5f0e8;
  color: #1f1f1f;
}

body,
button,
a {
  font-family: var(--font-noto-sans-jp);
}

a {
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

a:hover {
  opacity: 0.9;
}

header {
  z-index: 99999 !important;
}

#drawer-menu {
  background-color: rgb(24, 13, 9);
  color: #fff;
  z-index: 99999 !important;
}

#drawer-menu > div {
  transition: transform 0.5s ease;
}

#drawer-menu a {
  color: #fff;
}

#drawer-toggle,
#drawer-toggle svg {
  pointer-events: auto;
}

#hamburger-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

#hamburger-btn.is-active {
  border-color: rgba(255, 255, 255, 0.9);
}

header nav ul,
footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav a,
footer nav a {
  color: inherit;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  header .container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  header .flex.justify-between {
    gap: 0.75rem;
  }
}

/* ── Splide スライダー カスタムスタイル ─────────────────── */
/* スライド内の画像が aspect-ratio + position:absolute で配置されるため */
.splide__slide {
  position: relative;
}

/* ページネーション（ドット）の配色 */
.splide__pagination__page {
  background: rgba(255, 255, 255, 0.5);
}

.splide__pagination__page.is-active {
  background: #ffffff;
  transform: scale(1.2);
}

/* 各ページの下部にマージンを設ける */
.container {
  margin-bottom: 60px;
}

.single-page {
}

/* WPのリストにドットを打つ */
ul.wp-block-list {
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* 1. 元の select タグを非表示（灰色のボックス消去）         */
/* NiceSelect.bind() が後から style 属性を書き換えるため     */
/* display:none のみでは不十分。多重指定で確実に非表示にする */
select.custom-select {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* 2. ドロップダウン本体 */
/* リストが position:absolute で展開される基準になるよう relative を明示 */
.nice-select {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 0.25rem !important;
  height: 42px !important;
  line-height: 40px !important;
  padding-left: 14px !important;
  padding-right: 36px !important;
  font-size: 15px !important;
  position: relative !important;
  /* リストの基準点 */
  z-index: 10 !important;
  /* ドロワーメニューより下、かつカード画像等の上に来るように */
}

/* 選択中テキスト */
.nice-select .current {
  color: #fff !important;
}

/* 矢印アイコン */
.nice-select::after {
  border-bottom: 2px solid #fff !important;
  border-right: 2px solid #fff !important;
  right: 14px !important;
}

/* 3. ポップアップメニュー（前面表示＆文字サイズ固定） */
.nice-select .list {
  background-color: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  margin-top: 4px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8) !important;
  border-radius: 6px !important;
  padding: 4px 0 !important;
  position: absolute !important;
  /* リストを絶対配置にしてレイアウトを崩さない */
  z-index: 9999 !important;
  /* 最前面に表示 */
  width: auto !important;
  min-width: 100% !important;
  top: 100% !important;
  /* 親要素の直下に開く */
  left: 0 !important;
}

/* 選択肢 */
.nice-select .option {
  font-size: 15px !important;
  line-height: 26px !important;
  min-height: 26px !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  color: #ccc !important;
}

/* ホバー・選択中 */
.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected {
  background-color: #333 !important;
  color: #fff !important;
  font-weight: bold !important;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* content-dog-list.php */
/* 個体リストの「性別」などのラベルの調整 */

.card-label span.font-bold.w-16 {
  display: inline-block;
  width: 64px;
  text-align: justify;
  text-align-last: justify;
  letter-spacing: normal;
  /* 不要な文字間隔指定を解除 */
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* content-dog-list.php */
/* 各カードには border-t（赤茶系）が付いているが、           */
/* 最初のカード（:first-child）では上線が不要なため消去する。 */
/* front-page.php は <hr> がセパレーターになるため影響なし。  */
.grid-bottom > div:first-child {
  border-top: none !important;
}

.flex.items-center.mb-2.self-start {
  padding: 2px 10px;
  border: 1px solid #d4af37;
  border-radius: 3px;
  background-color: rgba(212, 175, 55, 0.08);
  transition: all 0.3s ease;
  display: inline-flex !important;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 6px;
  /* SVGとテキストの間の余白 */
}

/* ホバー時 */
.flex.items-center.mb-2.self-start:hover {
  background-color: rgba(212, 175, 55, 0.2);
  border-color: #ffd700;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* テーブル全体：外枠を解除 */
table.has-fixed-layout {
  width: 100%;
  border-collapse: collapse;
  border: none !important;
}

/* 各セルの基本設定（下線のみ引く） */
table.has-fixed-layout td,
table.has-fixed-layout th {
  border: none !important;
  border-bottom: 1px solid #ffffff !important;
  /* 横の中線（白） */
  padding: 12px 16px;
}

/* 最下段の行の下線を消して完全な外枠なしにする */
table.has-fixed-layout tr:last-child td,
table.has-fixed-layout tr:last-child th {
  border-bottom: none !important;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* 背景の色を調整 */
.bg-black {
  background-color: #271615 !important;
}
header > div {
  background-color: #0f0d0e;
}

footer.bg-black {
  background-color: #000000 !important;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* メイン画像のコンテナ */
.main-swiper {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* YouTubeの比率に合わせて余白をなくす */
  background: #000;
  border-radius: 8px;
}

.main-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* サムネイルのコンテナ */
.thumb-swiper {
  margin-top: 4px;
  /* はみ出しスクロールバー非表示 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.thumb-swiper::-webkit-scrollbar {
  display: none;
}

.thumb-swiper .swiper-slide {
  width: 60px;
  height: 40px;
  cursor: pointer;
  opacity: 0.6;
  border-radius: 2px;
  overflow: hidden;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: opacity 0.3s;
}

.thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #fff;
}

.thumb-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTubeラッパー */
.youtube-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-content {
  margin-top: 40px;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* content-dog-list.php の縦のgap調整　*/
.row-gap-40 {
  row-gap: 40px;
}