@charset "utf-8";

/*
Theme Name: biba7
Theme URI: https://bibanana.com/
Author: ビバナナ
Author URI: https://bibanana.com/
Description: カスタマイズ
Version: 1.0.0
Text Domain: biba7
*/

/* ---------------------------------------------
   基本設定（:root, *, html, body など）
--------------------------------------------- */
:root {
  --main-color: #c9b8ff;
  --main-color-dark: #6b4fa0;
  --main-color-on-bg: #2d1553;
  --active-color: #aa8fd8;
  --link-color: #b03572;
  --link-hover-color: #c44080;
  --link-button-bg: #f2c4d8;
  --link-button-border: #e8a8c8;
  --nav-bg: rgba(201, 184, 255, 0.45);
  --nav-text-color: rgba(74, 58, 94, 0.8);
  --assort-color: #d6b48c;
  --gray-01: #e3e3e3;
  --gray-02: #ccc;
  --gray-03: #595959;
  --card-gap: 16px;
  --space-section: 40px; /* セクション間の統一余白 */
  --space-block: 16px; /* ブロック間の統一余白 */
}
* {
  background: none;
  padding: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  font-family:
    'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    Meiryo, sans-serif;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}

@font-face {
  font-family: YuGothicM;
  font-weight: 400;
  src:
    local('YuGothic-Medium'), local('Yu Gothic Medium'),
    local('YuGothic-Regular');
}

html {
  padding: 0;
  font-size: 62.5%;
  line-height: 1.15;
  box-sizing: border-box;
  overflow: auto;
  margin: 0;
}

/* =============================
   ここは「変数 + 全体レイアウト」
   ・共通の色/余白/レイアウトの骨組み
   ・記事固有の装飾は content.css / parts.css で管理
   ============================= */

body {
  background: #fafafa;
  color: var(--gray-03);
  padding: 0;
  font-size: 16px;
  line-height: 2;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin: 0;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover,
a:active {
  outline: 0;
  color: var(--link-hover-color);
}

/* ---------------------------------------------
   テキスト・見出し・ユーティリティ
--------------------------------------------- */
form,
input,
textarea {
  font-size: 1.5rem;
}

h1 {
  line-height: 1.3;
  margin: 0.67em 0;
}

h2 {
  line-height: 1.4;
}

.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

.hidden {
  display: none !important;
}

#comment {
  margin-top: 1rem;
}

b,
strong {
  text-decoration: underline;
  text-decoration-thickness: 0.5em;
  text-decoration-color: rgba(201, 184, 255, 0.5);
  text-underline-offset: -0.2em;
  text-decoration-skip-ink: none;
}

h2 strong,
h3 strong {
  text-decoration: none;
}
.wp-block-image img {
  margin-bottom: var(--space-block);
}
/* ---------------------------------------------
   レスポンシブ：PC/SP切り替え見出しサイズ
--------------------------------------------- */
@media screen and (min-width: 1200px) {
  h1 {
    font-size: 3.6rem;
  }
  h2 {
    font-size: 2.4rem;
  }
  h3 {
    font-size: 2rem;
  }
  h4 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 768px) {
  .sp_hidden {
    display: none !important;
  }

  h1 {
    font-size: 2.4rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.8rem;
  }
}

/* ---------------------------------------------
   ヘッダー・ナビゲーションスタイル
--------------------------------------------- */
#nav-wrapper {
  position: relative;
}

#nav {
  position: relative;
  width: 100%;
  background: transparent;
  z-index: 9999;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

#nav.fixed {
  top: 0;
  left: 0;
  position: fixed;
  background-color: var(--nav-bg);
  backdrop-filter: blur(5px);
  z-index: 9999;
}

#nav::before,
#nav::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100%;
  background-color: var(--nav-bg);
  z-index: -1;
}

/* 疑似要素も追尾時に残して半透明に調整 */
#nav.fixed::before,
#nav.fixed::after {
  background-color: var(--nav-bg);
  backdrop-filter: blur(5px);
  z-index: -1; /* 本体の後ろにキープ */
}

/* メニューリスト */
#nav .menu {
  position: relative;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
  text-align: center;
  background-color: var(--nav-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#nav .menu li {
  display: flex;
  flex: 1;
  min-width: 0;
}

#nav .menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  width: 100%;
  box-sizing: border-box;
  color: var(--nav-text-color);
  text-decoration: none;
}

#nav .menu li a:hover {
  background-color: var(--link-button-bg);
  transition: background-color 0.3s ease;
  text-shadow: none;
}

#nav .menu li a.active {
  font-weight: 700;
}

/* ナビアイコン共通 */
#nav .menu li.home > a::before,
#nav .menu li.beaver > a::before,
#nav .menu li.beaver-zoo > a::before,
#nav .menu li.beaver-news > a::before,
#nav .menu li.mini_game > a::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 6px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#nav .menu li.home > a::before {
  background-image: url('/wp-content/themes/biba7/assets/images/home.webp');
}

#nav .menu li.beaver > a::before {
  background-image: url('/wp-content/themes/biba7/assets/images/beaver.webp');
}

#nav .menu li.beaver-zoo > a::before {
  background-image: url('/wp-content/themes/biba7/assets/images/beaver-zoo.webp');
}

#nav .menu li.beaver-news > a::before {
  background-image: url('/wp-content/themes/biba7/assets/images/news.webp');
}

#nav .menu li.mini_game > a::before {
  background-image: url('/wp-content/themes/biba7/assets/images/game.webp');
}

/* =========================
   サイトタイトル（ヘッダー）
========================= */
.site-header {
  position: relative;
  width: 100vw;
  height: min(30vh, 300px);
  background: linear-gradient(
    315deg,
    #f9b5e4 0%,
    #d6c0ff 40%,
    #b0cffc 60%,
    #adc5fe 80%,
    #9ddfdd 100%
  );
  background-size: 300% 300%;
  animation: GradientBackground 20s ease-in-out infinite;

  display: flex;
}
/* タイプライター：entry-title */
body:not(.search-results) .entry-title .entry-title-body > span {
  border-right: 2px solid;
  animation: entryTitleCaret 1s steps(1) infinite;
}

@keyframes entryTitleCaret {
  50% {
    border-color: transparent;
  }
}

@keyframes GradientBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.site-title,
.site-title a {
  width: 100%;
  height: 100%;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 600px;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(180, 160, 255, 0.35))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) brightness(1.15);
  animation: floatLogo 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatLogo {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ---------------------------------------------
   子メニュー
--------------------------------------------- */

.menu .sub-menu li {
  width: 100%;
}

.menu .sub-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--nav-text-color);
  text-decoration: none;
  width: 100%;
  word-break: break-word;
  box-sizing: border-box;
}

.menu .sub-menu li a:hover {
  background-color: var(--link-button-bg);
}

.menu li:has(.sub-menu) > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  padding: 10px 0;
  text-decoration: none;
}

.menu li:has(.sub-menu) > a::after {
  position: absolute;
  top: 50%;
  right: 10%;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8em;
  content: '\f107';
  opacity: 0.5;
  transform: translateY(-50%);
}

.menu li {
  position: relative;
}

/* PC表示時のみアニメーションを有効にする */
@media screen and (min-width: 769px) {
  .menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    z-index: 10;
    display: flex;
    width: 100%;
    background: rgba(201, 184, 255, 0.85);
    backdrop-filter: blur(10px);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  .menu .sub-menu li a {
    white-space: nowrap;
  }
  .menu li:hover > .sub-menu {
    transform: scaleY(1);
  }
  .menu-btn,
  .menu-icon {
    display: none;
  }
}

/* ---------------------------------------------
   スマホ表示用ナビゲーション
--------------------------------------------- */
@media screen and (max-width: 768px) {
  #nav {
    height: 50px;
    width: 100%;
    position: relative;
  }

  .menu-btn {
    display: none;
  }

  .menu-icon {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 10px;
    cursor: pointer;
    padding: 24px 14px;
    z-index: 10001;
  }

  .navicon {
    display: block;
    height: 3px;
    width: 26px;
    position: relative;
    transition: 0.3s ease;
  }

  .navicon:before,
  .navicon:after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    transition: 0.3s ease;
  }

  .navicon,
  .navicon:before,
  .navicon:after {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 4px rgba(120, 110, 160, 0.45);
  }

  .menu-icon:hover .navicon,
  .menu-icon:hover .navicon:before,
  .menu-icon:hover .navicon:after {
    box-shadow:
      0 0 6px rgba(160, 150, 210, 0.65),
      0 0 12px rgba(160, 150, 210, 0.4);
  }

  .menu-btn:checked ~ .menu-icon .navicon:before,
  .menu-btn:checked ~ .menu-icon .navicon:after {
    box-shadow:
      0 0 8px rgba(210, 200, 255, 0.85),
      0 0 16px rgba(210, 200, 255, 0.55);
  }

  .navicon:before {
    top: 9px;
  }

  .navicon:after {
    bottom: 9px;
  }

  .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
    box-shadow: none;
  }

  .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
    top: 0;
  }

  .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
    bottom: 0;
  }

  #nav .menu {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    z-index: 9999;
  }

  #nav .menu-btn:checked ~ .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
  }

  /* 非表示状態にだけ display:none を適用 */
  #nav .menu:not(.open) {
    display: none;
    opacity: 0;
  }

  /* 表示状態 */
  #nav .menu.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    background-color: rgb(201, 184, 255);
    padding: 0 10%;
    box-sizing: border-box;
  }

  #nav .menu li {
    display: block;
    background: rgb(201, 184, 255);
    backdrop-filter: blur(10px);
    width: 100%;
    margin: 0;
    height: auto !important;
    overflow: visible !important;
  }
  #nav .menu li a {
    height: 100%;
    padding: 0;
    margin: 0;
    line-height: 50px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 6px rgba(180, 160, 255, 0.35);
    justify-content: flex-start;
  }

  .menu .sub-menu {
    transform: none !important;
    transition: none !important;
    position: relative;
    top: 0;
    width: 100%;
    display: none;
    margin: 0;
    padding: 0;
  }

  .menu li.open .sub-menu {
    display: block;
  }
  #nav .menu .sub-menu li {
    background: rgba(201, 184, 255, 0.85);
  }
  .menu li {
    position: relative;
    height: auto;
    overflow: visible;
  }
}

/* フッター
--------------------------------------------- */
.site-footer {
  position: relative;
  background: #222;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-menu a {
  display: block;
  padding: 0 10px;
  color: var(--gray-02);
}
.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px;
}
@media screen and (min-width: 769px) {
  .site-footer .footer-menu {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-footer .footer-menu li {
    margin: 0;
    padding: 0 20px;
    border-left: 1px var(--gray-02) solid;
  }
  .site-footer .footer-menu li:first-child {
    padding-left: 0;
    border: none;
  }
}

@media screen and (max-width: 768px) {
  .site-footer {
    text-align: center;
  }

  .site-footer .footer-menu li {
    border-top: 1px solid var(--gray-03);
    border-left: none;
  }

  .site-footer .footer-menu li:last-child {
    border-bottom: 1px solid var(--gray-03);
  }

  .site-footer .footer-menu li a {
    padding: 12px 20px;
    text-align: left;
  }
}

.site-footer__cr {
  color: #fff;
  text-align: center;
  line-height: 2;
  padding-top: 20px;
  margin: 0;
}

.site-footer__cr a {
  color: #f0a0c8;
}

/* 2カラム
--------------------------------------------- */
.content-wrap {
  display: flex;
  padding: var(--space-section) 20px;
  margin: 0 auto 30px;
  max-width: 1240px;
  width: 100%;
  justify-content: space-between;
  gap: 3rem;
}

main.main-content,
.site-main {
  width: calc(100% - 320px);
  /* メインコンテンツの幅 */
  display: flex;
  flex-direction: column;
}

#secondary {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  width: 320px;
}

@media screen and (max-width: 768px) {
  /* 小さい画面では縦並びに変更 */
  .content-wrap {
    flex-direction: column;
    padding: 2rem 2rem 3rem;
  }

  /* それぞれの幅を100%にして縦並びに */
  .main-content,
  #secondary,
  .site-main {
    width: 100%;
  }

  #secondary {
    padding: 0;
  }
}

.widget-area .widget {
  position: relative;
  margin: 20px auto;
  border: 1px solid var(--main-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.widget-area .widget .top,
.widget-area .widget_block .wp-block-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  background: var(--main-color);
  border-bottom: none;
}

.widget-area .widget .title,
.widget-area .widget_block .wp-block-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--main-color-on-bg);
}

.widget-area .widget .top > .wp-block-heading {
  flex: 1;
  padding: 0;
  background: transparent;
  border-bottom: none;
}

.widget-area .widget .buttons {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  padding: 0;
  background: transparent;
  color: inherit;
}

.buttons button svg {
  width: 100%;
  height: 100%;
}

body:not(.search-results) .entry-title .buttons button,
.widget-area .widget .buttons .close {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: default;
}

body:not(.search-results) .entry-title .buttons button svg,
.widget-area .widget .buttons .close svg {
  width: 10px;
  height: 10px;
}

.widget-area .widget .buttons .minimize,
.widget-area .widget .buttons .maximize {
  display: none;
}

.widget-area .widget .topfix {
  height: 6px;
  background-color: #efefef;
}

.widget-area .widget hr {
  margin: 0;
  border: none;
  border-top: 1px solid #d6d6d6;
}

.widget-area .widget_block {
  padding: 0;
}

.widget-area .widget_block .wp-block-group {
  margin: 0;
  background-color: #fff;
}

.widget-area
  .widget_block
  .wp-block-group__inner-container
  > .wp-block-heading {
  margin: 0 -16px 16px;
}

.widget-area .widget_block > *:not(.wp-block-group) {
  padding: 10px;
  background-color: #fff;
}

/* ページネーション
--------------------------------------------- */
.pagination {
  display: block;
  text-align: center;
  margin-top: 28px;
}

.pagination .page-numbers {
  display: inline-block;
  color: var(--gray-03);
  padding: 10px 15px;
  margin: 0 5px;
  background-color: var(--gray-01);
  border-radius: 5px;
}

.pagination .page-numbers.current {
  background-color: var(--active-color);
  color: #fff;
  font-weight: 700;
}

.pagination .page-numbers:hover {
  background-color: var(--active-color);
  color: #fff;
}

/* おすすめ記事
--------------------------------------------- */
.recommendation-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recommendation-item {
  display: flex;
  background: #fff;
  padding: 14px;
  align-items: center;
  gap: 12px;
  border-radius: 5px;
  transition: background 0.3s;
  text-decoration: none;
}

.recommendation-img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.recommendation-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.recommendation-item span {
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.recommendation-item .recommendation-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--main-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 1;
}

.custom-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  gap: 10px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.nav-previous,
.nav-next {
  display: flex;
  justify-content: center;
  flex: 1;
  width: 48%;
}

.nav-previous a,
.nav-next a {
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
  text-align: center;
  padding: 12px 18px;
  background-color: var(--link-button-bg);
  color: var(--main-color-on-bg);
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.nav-previous a i,
.nav-next a i {
  display: inline-block;
  position: absolute;
}
.nav-previous a i {
  right: 10px;
}
.nav-next a i {
  left: 10px;
}

.nav-previous a span,
.nav-next a span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 90%;
}

@media screen and (max-width: 600px) {
  .custom-navigation {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 90vw;
  }

  .nav-previous,
  .nav-next {
    width: 100%;
  }

  .nav-previous a,
  .nav-next a {
    width: 100%;
    max-width: 90vw;
    padding: 14px 20px;
    font-size: 1.5rem;
  }
}

.widget_search {
  padding-top: 0;
  margin: 0 auto;
  background: none;
  border: none;
}

/* =========================
   リンクカード（旧レイアウト）
   ========================= */
.blogcard-wrap {
  padding: 1.2em 0 0.8em;
}

.blogcard {
  display: flex;
  background: rgba(251, 140, 0, 0.02);
  border: 1px solid var(--active-color);
  word-wrap: break-word;
  max-width: 100%;
  border-radius: 5px;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease-in-out;
  position: relative;
  box-sizing: border-box;
}

.blogcard:hover {
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  -moz-transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

.blogcard .eyecatch {
  flex-shrink: 0;
  width: 30%;
  margin-right: 1rem;
}

.eyecatch img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.blogcard__contents {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blogcard__title {
  font-size: 1em;
  margin: 5px 10px 5px 0px;
  font-weight: bold;
  line-height: 1.4;
}

.blogcard__subtitle {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.3rem;
  padding: 0 0.5em;
  background-color: var(--assort-color);
  transform: translateY(-50%) translateX(2.3em);
  color: #3a2200;
}

.blogcard .phrase {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--gray-03);
}

.blogcard .blogcard_link {
  margin-top: auto;
  font-size: 0.8em;
}

@media only screen and (max-width: 480px) {
  .blogcard {
    flex-direction: column;
    padding: 20px;
  }

  .blogcard .eyecatch,
  .blogcard__contents {
    width: 100%;
  }

  .blogcard .eyecatch {
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .blogcard .eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .blogcard__subtitle {
    transform: translateY(-50%) translateX(0.7em);
    font-size: 1.2rem;
  }
}

/* =========================
   リンクカード（新レイアウト）
   ========================= */

.blogcard_thumbnail {
  width: 100px;
  height: 100px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #fff;
  flex-shrink: 0;
  max-width: 100%;
  position: relative;
}

.blogcard_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blogcard_content {
  flex-grow: 1;
  max-width: calc(100% - 150px);
}

.blogcard_title {
  padding: 20px 20px 10px;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.4;
}

.blogcard_excerpt {
  padding: 0 17px 15px 20px;
  font-size: 0.85em;
  line-height: 1.6;
}

.blogcard_content .blogcard_link {
  padding: 0 17px 15px 20px;
  font-size: 0.65em;
  text-align: left;
}

.blogcard_link .icon-external-link-alt::before {
  font-size: 0.75em;
}

/* 共通（旧/新リンクカード） */
.blogcard_link {
  color: var(--assort-color);
  word-break: break-all;
}

/* =========================
     レスポンシブ対応
     ========================= */

@media screen and (max-width: 768px) {
  .blogcard-wrap {
    padding: 1.5em 0;
  }

  .blogcard_title {
    font-size: 0.95em;
    padding-bottom: 17px;
  }

  .blogcard_excerpt {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .blogcard {
    width: 80%;
  }

  .blogcard-wrap {
    padding: 1.5em 0;
  }

  .blogcard_thumbnail {
    position: relative;
    margin-right: 10px;
  }

  .blogcard_thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
  }
}
/* =========================
     ホーム画面ブログカード
     ========================= */
#cardlayout-wrap {
  position: relative;
  max-width: 960px;
  width: 100%;
}

/* カード一覧レイアウト */

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
  justify-content: flex-start;
  margin-bottom: var(--space-block);
}

.card-list::after {
  content: '';
  display: block;
  width: calc(100% / 3);
}

.card-list > * {
  flex: 1 1 300px;
}

/* =========================
   カードデザイン
   ========================= */

.card {
  display: flex;
  flex-direction: column;
  position: relative; /* 擬似要素を適切に配置 */
  flex: 0 1 calc((100% - (2 * var(--card-gap))) / 3);
  min-width: 0;
  background-color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* =========================
     カード内のコンテンツ
     ========================= */

.card::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  display: block;
  background: linear-gradient(90deg, var(--cyber-accent), var(--cyber-accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

/* =========================
     ホバー時のボーダーアニメーション
     ========================= */

.card:hover::after {
  transform: scaleX(1);
}

/* =========================
     カード内部の要素
     ========================= */

.card .card-thumbnail {
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
}

.card .card-thumbnail a {
  display: block;
  line-height: 0;
}

.card .card-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.4rem;
  height: 100%;
  flex-grow: 1;
}

@media screen and (max-width: 768px) {
  .card {
    flex-direction: row;
  }

  .card .card-thumbnail {
    flex: 0 0 40%;
  }

  .card .card-thumbnail img {
    aspect-ratio: 4 / 3;
  }

  .card-content {
    flex: 1;
    padding: 0.8rem 1rem;
  }
}

.card-title {
  color: var(--gray-03);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
  font-size: 1.4rem;
}

.card-tags a {
  display: inline-block;
  padding: 4px 8px;
  background-color: var(--gray-01);
  color: var(--main-color-dark);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.card-tags a::before {
  content: '#';
}

.card-tags a:hover {
  background-color: var(--active-color);
  color: #fff;
}

.zoo-wrap {
  margin-bottom: var(--space-section);
}

/* =========================
   カテゴリタイトル
   ========================= */

.category-title.parent,
.section-heading {
  background: linear-gradient(90deg, var(--main-color), #f2a6c8);
  color: var(--main-color-on-bg);
  padding: 1rem 2rem;
  margin: var(--space-section) 0 var(--space-block);
}

.category-title.parent:first-of-type,
.section-heading:first-of-type {
  margin-top: 0;
}

.category-title.child {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 2px solid var(--main-color);
  box-shadow: 5px 5px 0 rgba(201, 184, 255, 0.45);
  position: relative;
}

.child-categories {
  margin: var(--space-section) 0 0;
}

/* 閉じた状態（上向き） */
.child-categories .category-title.child::after {
  font-family: 'Font Awesome 6 Free';
  content: '\f139';
  line-height: 1;
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  color: var(--link-color);
  font-size: 20px;
}

.category-title.child.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* =========================
   子カテゴリ見出し
   ========================= */

.card-list.child {
  margin-left: 2em;
}

.child-content {
  display: none;
  margin-left: 20px;
  margin-bottom: 20px;
}

/* =========================
   カード レスポンシブ対応
   ========================= */

@media all and (max-width: 950px) {
  .card {
    flex: 0 1 calc((100% - var(--card-gap)) / 2);
  }

  .card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.card-date-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-bottom: 4px;
  justify-content: flex-end;
}

.card-date,
.updated {
  margin: 0;
  display: inline-block;
}

@media all and (max-width: 768px) {
  .card {
    flex: 0 1 100%;
  }

  .card-tags a {
    padding: 6px 10px;
  }
}

/* ---------------------------------------------
共通ボタンのスタイル
--------------------------------------------- */

input,
textarea {
  padding: 0.375em 0.75em;
  font-size: inherit;
  font-family: inherit;
  border-radius: 0.25rem;
  border: 1px solid var(--gray-02);
  outline: none;
  background-color: #fff;
}

input:focus,
textarea:focus,
input:hover {
  border-color: rgba(var(--color_rgb), 0.5);
  box-shadow: 0 0 3px 1px rgba(var(--color_rgb), 0.5);
}

input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--color);
}

/* 404ページ
--------------------------------------------- */

.error-404 {
  text-align: center;
}

.breadcrumb {
  margin: 0;
}

.breadcrumb .breadcrumb-item {
  display: inline-block;
}

/* ---------------------------------------------
コメントフォームのスタイル
--------------------------------------------- */

#comment {
  width: 100%;
}

.form-submit {
  text-align: right;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  display: inline-block;
  color: #595959;
  text-align: center;
  padding: 15px 0;
  width: 200px;
  background-color: var(--gray-01);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  cursor: pointer;
}

/* ホバー時のスタイル */
button:hover,
input[type='button']:hover,
input[type='submit']:hover {
  color: #fff;
  background-color: var(--active-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* もっと読む */
.more-link {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 20px;
  background-color: #e8e8e8;
  border: 1.6px solid #e2e2e2;
  box-shadow:
    6px 6px 10px #c5c5c5,
    -6px -6px 12px #ffffff;
  transform: skewX(-5deg);
  position: relative;
  overflow: hidden;
  display: block;
  margin: 0 auto var(--space-section);
}

/* グラデーションボーダー用 ::before */
.more-link::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  z-index: -1;
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 400%;
  border-radius: 30px;
  opacity: 0;
  transition:
    opacity 0.5s,
    filter 0.5s;
}

.more-link:hover {
  border-radius: 20px;
}

.more-link:hover::before {
  filter: blur(10px);
  opacity: 1;
  animation: animateBorder 8s linear infinite;
}

@keyframes animateBorder {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 400%;
  }
}

.more-link span {
  color: black;
  letter-spacing: 3px;
  font-size: 18px;
}

.more-link:active {
  box-shadow:
    5px 5px 12px #cfcece,
    -4px -4px 12px #fcfcfc;
}

.wp-block-calendar table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  overflow-wrap: break-word;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .wp-block-calendar table {
    max-width: 500px;
  }
}

/* ページ内リンク */
.anchor-fix {
  display: block;
  position: relative;
  top: -80px;
  height: 0;
  margin: 0;
  padding: 0;
}

.beaver-link-tags {
  margin-top: 4px;
}

.beaver-link-tag {
  display: inline-block;
  font-size: 12px;
  background: #e8f0fd;
  color: #3a5fb0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
