/* --------------------------------
   検索窓
--------------------------------- */
.search-box #search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search-box #search select {
  flex: 0 0 225px;
  width: 225px;
  height: 52px;
}

.search-box .search-keyword {
  display: flex;
  flex: 1;
  height: 52px;
}

.search-box #search-input {
  flex: 1;
  height: 52px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 20px;

  border: 1px solid #c7c7c7;
  border-right: 0;
  border-radius: 26px 0 0 26px;
}

.search-box .search-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 95px;
  height: 52px;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0 26px 26px 0;

  background: #2493f3;
  color: #fff;
}

.search-box .search-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------
   スマホ
--------------------------------- */

@media screen and (max-width: 767px) {


}


/**/

/* --------------------------------
   教えてカテゴリー画像一覧
--------------------------------- */
/* 各画像 */
.oshiete-category-grid .wp-block-image {
  position: relative;
  overflow: hidden;

  width: 100%;
  margin: 0 !important;
  padding: 0;
}

/* リンク */
.oshiete-category-grid .wp-block-image > a {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* 画像 */
.oshiete-category-grid .wp-block-image img {
  display: block;

  width: 100%;
  height: auto;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;

  margin: 0;
  padding: 0;

  transition: transform 0.3s;
}

/* カテゴリー名 */
.oshiete-category-grid .wp-element-caption {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;

  width: 100%;

  margin: 0 !important;
  padding: 8px 4px 20px;

  color: #fff;

  font-size: 16px;
  line-height: 1.2;
  text-align: center;

  pointer-events: none;
}

/* ホバー */
.oshiete-category-grid .wp-block-image:hover img {
  transform: scale(1.3);
}

/* 共通 */
.oshiete-category-grid .wp-element-caption {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;

  width: 100%;
  margin: 0 !important;
  padding: 8px 4px 20px;

  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;

  pointer-events: none;
}

/* 雪 */
.oshiete-category-grid .wp-block-image:nth-child(1) .wp-element-caption {
  background: linear-gradient(
    180deg,
    rgba(88, 174, 219, 0.95) 0%,
    rgba(88, 174, 219, 0) 100%
  );
}

/* 氷 */
.oshiete-category-grid .wp-block-image:nth-child(2) .wp-element-caption {
  background: linear-gradient(
    180deg,
    rgba(63, 141, 230, 0.95) 0%,
    rgba(63, 141, 230, 0) 100%
  );
}

/* 水 */
.oshiete-category-grid .wp-block-image:nth-child(3) .wp-element-caption {
  background: linear-gradient(
    180deg,
    rgba(68, 193, 222, 0.95) 0%,
    rgba(68, 193, 222, 0) 100%
  );
}

/* 生活・文化 */
.oshiete-category-grid .wp-block-image:nth-child(4) .wp-element-caption {
  background: linear-gradient(
    180deg,
    rgba(205, 165, 60, 0.95) 0%,
    rgba(205, 165, 60, 0) 100%
  );
}

/* その他の現象 */
.oshiete-category-grid .wp-block-image:nth-child(5) .wp-element-caption {
  background: linear-gradient(
    180deg,
    rgba(214, 111, 88, 0.95) 0%,
    rgba(214, 111, 88, 0) 100%
  );
}


/* --------------------------------
   スマホ
--------------------------------- */

@media screen and (max-width: 767px) {

  .oshiete-category-grid {
    gap: 5px !important;
  }

  .oshiete-category-grid .wp-element-caption {
    font-size: 12px;
    padding: 6px 2px 14px;
  }
}


/*-------------------------------------*/
/* ==============================
   Q&A アコーディオン
============================== */

.oshiete-faq-item {
  margin-bottom: 30px;
}

/* 質問タイトル */
.oshiete-faq-item .faq-click {
  appearance: none;

  display: flex;
  align-items: center;

  width: 100%;

  margin: 0;
  padding: 10px;

  border: 0;
  border-radius: 10px;

  background: #1e90ff;
  color: #fff;

  font: inherit;
  text-align: left;

  cursor: pointer;
}

/* Qアイコン */
.oshiete-faq-item .icon-q {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 60px;

  width: 60px;
  height: 60px;

  margin-right: 10px;

  border-radius: 50%;
  background: #fff;
}

.oshiete-faq-item .icon-q-inner {
  color: #1e90ff;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 500;
  white-space: nowrap;
}

/* タイトル */
.oshiete-faq-item .title-q {
  flex: 1;

  margin: 0;

  color: #fff;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 600;
  line-height: 1.5;
}

/* 開閉アイコン */
.oshiete-faq-item .icon-toggle {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 45px;

  margin-left: auto;

  transition: transform 0.3s ease;
}

.oshiete-faq-item .icon-toggle svg {
  display: block;

  width: 40px;
  height: 40px;

  fill: currentColor;
}

/* 開いた状態 */
.oshiete-faq-item.is-open .icon-toggle {
  transform: rotate(180deg);
}


/* ==============================
   回答部分
============================== */

.oshiete-faq-item .faq-content {
  margin-top: 30px;
  margin-bottom: 30px;
}

.oshiete-faq-item .faq-content[hidden] {
  display: none;
}

/* 質問本文 */
.oshiete-faq-item .question-text {
  margin: 0 0 30px;

  color: #1e90ff;
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 600;
  line-height: 1.8;
}

/* 回答 */
.oshiete-faq-item .anser {
  position: relative;

  margin-left: 100px;
  padding: 30px;

  border-radius: 10px;

  background: #ebfbff;
}

/* 館長画像 */
.oshiete-faq-item .thumbnail {
  position: absolute;
  top: 0;
  left: -85px;
}

.oshiete-faq-item .thumbnail-image {
  display: block;

  width: 100px;
  height: 100px;

  border-radius: 50%;
}

/* 回答本文 */
.oshiete-faq-item .answer-content > :first-child {
  margin-top: 0;
}

.oshiete-faq-item .answer-content > :last-child {
  margin-bottom: 0;
}

/* カテゴリー・タグ */
.oshiete-faq-item .answer-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;

  margin-top: 20px;
}

.oshiete-faq-item .answer-terms a {
  display: inline-block;

  padding: 0.2rem 0.4rem;

  border-radius: 3px;
  border: 1px solid #187fc3;

  color: #187fc3;
  text-decoration: none;

  font-size: var(--wp--preset--font-size--small);
}


/* ==============================
   スマホ
============================== */

@media screen and (max-width: 767px) {

  .oshiete-faq-item .icon-q {
    flex-basis: 46px;

    width: 46px;
    height: 46px;
  }

  .oshiete-faq-item .icon-toggle {
    flex-basis: 30px;
  }

  .oshiete-faq-item .icon-toggle svg {
    width: 30px;
    height: 30px;
  }

  .oshiete-faq-item .anser {
    margin-top: 100px;
    margin-left: 0;
  }

  .oshiete-faq-item .thumbnail {
    top: -80px;
    left: 50%;

    transform: translateX(-50%);
  }
}

/*-------------------------------*/
/*ページネーション*/
.oshiete-pagination {
  margin-top: 30px;
}

.oshiete-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;

  margin: 0;
  padding: 0;

  list-style: none;
  justify-content: center;
}

.oshiete-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
}

/* 通常ページ */
.oshiete-pagination a.page-numbers {
  color: #0000ee;
  text-decoration: none;
  line-height: 1.5;
}

/* ホバー */
.oshiete-pagination a.page-numbers:hover {
  text-decoration: underline;
}

/* 現在ページ */
.oshiete-pagination span.page-numbers.current {
  color: #000;
  font-size: 16px;
  line-height: 1.5;
}

/* … */
.oshiete-pagination span.page-numbers.dots {
  color: #000;
  font-size: 16px;
  line-height: 1.5;

  margin: 0 3px;
}

.oshiete-pagination a.page-numbers,
.oshiete-pagination .page-numbers.current,
.oshiete-pagination .page-numbers.dots {
  font-size: 18px !important;
}