@charset "UTF-8";
/*
Theme Name: pagination
Description: ブロックテーマ学習用のテンプレートです
Version: 1.0
Author: いぬ
*/

:root {
  --white-color: #fff;
  --black-color: #000;

  --linkBlue-color: #009cdf;
  --linkBlue2-color: #9ce2ff;
  --red-color: #ed4545;

  --main-text: "Noto Sans JP", sans-serif;
  --mincho400-text: "ZenOldMincho-Regular", serif;
  --roman100-text: "Geologica-ExtraLightItalic", sans-serif;
  --roman900-text: "Geologica-BlackItalic", sans-serif;

  --big-margin: calc(17.66px + 5.19vw);
  --bigClamp-margin: clamp(60px, 26.49px + 7.79vw, 120px);
  --middle-margin: calc(17.66px + 5.19vw);
  --middleC-margin: clamp(40px, 17.66px + 5.19vw, 80px);
  --small-margin: 5.2vw;
  --smallClamp-margin: clamp(20px, 5.2vw, 40px);

  /* 430: 17.5px */
  --font35-size: calc(12.45px + 1.17vw);
  --font35C-size: clamp(16px, 12.45px + 1.17vw, 35px);

  --font30-size: 1.6vw;
  --font30C-size: clamp(17.5px, 1.6vw, 30px);

  /* 1920:25px > 430:16px */
  --font25-size: calc(13.4px + 0.6vw);
  --font25C-size: clamp(16px, 13.4px + 0.6vw, 25px);

  --font20-size: calc(13.77px + 0.52vw);
  --font20C-size: clamp(16px, 13.77px + 0.52vw, 20px);

  --font18-size: 1.5vw;
  --font18C-size: clamp(15px, 1.5vw, 18px);

  /* 430:16px > 250:14px */
  --font16-size: calc(11.22px + 1.11vw);
  --font16C-size: clamp(14px, 11.22px + 1.11vw, 16px);
}

.wp-block-paragraph a {
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.wp-block-search__button {
  background-color: black;
  color: white;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.wp-block-search__button:hover {
  background-color: red;
  color: white;
}
/* fixedheader用 */
.beaver-frontheader {
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.beaver-frontheader.scrolled-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.wp-block-navigation:not(.has-background)
  .wp-block-navigation__responsive-container.is-menu-open {
  background-color: #fcb900;
}

.is-menu-open .wp-block-navigation__responsive-dialog {
  display: flex;
  justify-content: center;
}
/* トップイメージスライダー---------------------------------------- */
.swiper1 {
  width: 100%;
  height: 500px;
}
.swiper1 .is-layout-flow > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.swiper1-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  object-position: center;
}
.swiper1-button-next,
.swiper1-button-prev {
  width: 40px;
  height: 40px;
  color: #ffffff; /* アイコン色黒 */
  cursor: pointer;
}
/* カードカルーセル---------------------------------------- */
.swiper2-container {
  width: 100%;
  position: relative;
}
.swiper2 {
  width: 90%;
  height: 350px;
  margin: 5%;
  box-sizing: border-box;
  overflow: hidden;
}
.swiper2-slide {
  width: 100%;
  height: 350px;
  background-color: #fff;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: border 0.2s ease-out;
  box-sizing: border-box;
  border: 3px solid transparent; /* 初期値を指定しておく */
}
.swiper2-slide:hover {
  border: 3px solid #000;
}
.swiper2-slide img {
  text-align: center;
  margin: 5%;
  border-radius: 20px;
  width: 90%;
  height: 40%;
  object-fit: cover;
  display: block;
}
.swiper2-slide time,
.swiper2-slide h3,
.swiper2-slide p {
  padding: 0 5%;
}
.swiper2-button-next,
.swiper2-button-prev {
  width: 40px;
  height: 40px;
  background-color: #000000; /* 薄グレー */
  color: #ffffff; /* アイコン色黒 */
  border-radius: 50%; /* 丸くする */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

/* 位置調整：画像の外側に配置 */
.swiper2-button-prev {
  left: 10px;
}

.swiper2-button-next {
  right: 10px;
}

/* 矢印がはみ出さないように中の ::after を制御 */
.swiper2-button-next::after,
.swiper2-button-prev::after {
  font-size: 16px;
  line-height: 1;
}

/* ホバー時の反応 */
.swiper2-button-next:hover,
.swiper2-button-prev:hover {
  background-color: #363636;
}
/* カスタムでリッチテキストツールバーにインライン編集できる機能を作ったときの */
span.big-text {
  font-size: 1.5em;
  font-weight: bold;
}
/* フッターレスポンシブ */
@media (max-width: 600px) {
  .footer-responsive.wp-container-core-group-is-layout-9366075c {
    justify-content: center;
  }
}

/* フッターのナビゲーションの色 */
.beaver-footer-nav .wp-block-navigation-item__content {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

.beaver-footer-nav .wp-block-navigation-item__content:hover {
  color: #cc4e00 !important;
}

.footer-list-gap li {
  margin-bottom: 24px !important;
}

.beaver-footer-nav .wp-block-social-links .wp-block-social-link a:hover {
  color: #cc4e00 !important; /* ← ホバー時のアイコンの色 */
}

.beaver-footer-nav .wp-block-social-links .wp-block-social-link svg:hover path {
  fill: #cc4e00 !important; /* ← SVG のパスの塗りも変える */
}

/* カスタムフィールドクエリーループ料金表の */
.q-block-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 2em;
  box-sizing: border-box;
  padding-inline-start: 0;
}
@media screen and (max-width: 500px) {
  .q-block-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.q-block-card,
.q-block-card * {
  box-sizing: border-box;
}
.q-block-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: hidden;
  background: white;
  margin-bottom: 20px;
  list-style: none;
  height: 200px;
  border-radius: 10px;
  padding: 10px;
}

.q-block-left {
  width: 50%;
  height: 100%;
}
.q-block-right {
  width: calc(50% - 10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.q-block-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.q-block-options {
  display: flex;
  padding-inline-start: 0;
  flex-wrap: wrap;
}
.q-block-options li {
  list-style: none;
  background: rgb(61, 61, 61);
  color: white;
  padding: 4px 8px;
  border-radius: 15px;
  margin-right: 5px;
  font-size: 10px;
  margin-bottom: 5px;
}
.q-block-text {
  margin: 0;
}
/* 🔥 aタグでli全体を覆う */
.q-block-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border 0.2s ease-out;
}
.q-block-link:hover {
  border: 3px solid #000;
}
/* 検索フォームの部分 */
.q-block-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
}
@media screen and (max-width: 500px) {
  .q-block-form {
    flex-direction: column;
    align-items: center;
  }
}

.q-block-form-group {
  display: flex;
  flex-direction: column;
}

.q-block-input {
  padding: 5px;
  width: 150px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.q-block-button {
  padding: 8px 16px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.q-block-button:hover {
  background-color: #444;
}

/* ページネーション  */
.pagination-wrapper {
  text-align: center;
  margin-top: 20px;
}

.pagination {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination li {
  display: inline-block;
  margin: 0 5px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.pagination .current {
  background: #333;
  color: #fff;
}

/* サブメニューを初期状態で非表示に */
@media (max-width: 599px) {
  .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    display: none;
  }
  .wp-block-navigation-submenu
    > .wp-block-navigation-item__content[aria-expanded="true"]
    + .wp-block-navigation__submenu-icon
    + .wp-block-navigation__submenu-container {
    display: block;
  }

  .wp-block-navigation-submenu__toggle .wp-block-navigation-item__label::after {
    content: ">";
    display: inline-block;
    margin-left: 0.5em;
    font-size: 0.9em;
    vertical-align: middle;
    transform: rotate(90deg) scale(1, 1.5);
  }
}

/* コンタクトフォーム */
/* フォーム全体を中央寄せ */
.wpcf7 {
  max-width: 600px;
  margin: 2em auto;
  padding: 1em;
  box-sizing: border-box;
}

/* 各フォームフィールドの余白とフォント調整 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="number"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.8em;
  margin-top: 0.3em;
  margin-bottom: 1.2em;
  font-size: 1.1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus {
  border-color: #888;
  outline: none;
}

/* ラベルのスタイル */
.wpcf7 label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.3em;
  color: #333;
}

/* チェックボックスリスト */
.wpcf7 .wpcf7-checkbox label {
  display: inline-block;
  margin-right: 1em;
  font-size: 1em;
}

/* メッセージエリア */
.wpcf7 textarea {
  resize: vertical;
  min-height: 150px;
}

/* 同意チェックボックス */
.wpcf7 .wpcf7-acceptance label {
  font-size: 0.95em;
  color: #555;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  background-color: #333;
  color: #fff;
  font-size: 1.1em;
  padding: 0.8em 1.6em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wpcf7 input[type="submit"]:hover:not(:disabled) {
  background-color: #555;
}

.wpcf7 input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* バリデーションエラーの見た目（オプション） */
.wpcf7-not-valid {
  border-color: #e74c3c;
}

.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 0.9em;
}

/* 本の紹介ループ中のカテゴリーのスタイリング */
/* カンマを非表示にする */
.taxonomy-book-genre.wp-block-post-terms .wp-block-post-terms__separator {
  display: none;
}

/* タクソノミー 'new-book' のリンクにピンクの背景色を適用 */
.taxonomy-book-genre.wp-block-post-terms a[href*="new-book"] {
  background-color: pink;
  padding: 2px 5px;
  border-radius: 10px;
  text-decoration: none;
  margin: 2px;
}

/* タクソノミー 'science' のリンクに青の背景色を適用 */
.taxonomy-book-genre.wp-block-post-terms a[href*="science"] {
  background-color: lightblue;
  padding: 2px 5px;
  border-radius: 10px;
  text-decoration: none;
  margin: 2px;
}
/* タクソノミー 'bookforkids' のリンクに青の背景色を適用 */
.taxonomy-book-genre.wp-block-post-terms a[href*="bookforkids"] {
  background-color: rgb(255, 238, 164);
  padding: 2px 5px;
  border-radius: 10px;
  text-decoration: none;
  margin: 2px;
}
/* タクソノミー 'programming' のリンクに青の背景色を適用 */
.taxonomy-book-genre.wp-block-post-terms a[href*="programming"] {
  background-color: rgb(173, 230, 203);
  padding: 2px 5px;
  border-radius: 10px;
  text-decoration: none;
  margin: 2px;
}
/* タクソノミー 'history' のリンクに青の背景色を適用 */
.taxonomy-book-genre.wp-block-post-terms a[href*="history"] {
  background-color: rgb(230, 177, 173);
  padding: 2px 5px;
  border-radius: 10px;
  text-decoration: none;
  margin: 2px;
}
/* タクソノミー 'suspense' のリンクに青の背景色を適用 */
.taxonomy-book-genre.wp-block-post-terms a[href*="suspense"] {
  background-color: rgb(191, 197, 255);
  padding: 2px 5px;
  border-radius: 10px;
  text-decoration: none;
  margin: 2px;
}
/* タクソノミー 'mystery' のリンクに青の背景色を適用 */
.taxonomy-book-genre.wp-block-post-terms a[href*="mystery"] {
  background-color: rgb(218, 190, 255);
  padding: 2px 5px;
  border-radius: 10px;
  text-decoration: none;
  margin: 2px;
}
