@charset "UTF-8";

body {
  font-family: "Noto Sans JP", Arial, Helvetica, sans-serif;
  margin: 0;
  padding-top: 50px;
  font-size: 62.5%;
}

/* ヘッダー */
.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 30px 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1000;
  /* justify-content: space-between; */
}

.header-logo img {
  width: 200px;
  height: 30px;
  position: absolute;
  left: 20px;
  top: 20px;
}

.g-nav ul {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.g-nav ul li {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  /* border-color: #000; */
  /* border-width: 2px; */
  /* background: #888; */
}

.g-nav ul li a {
  padding-left: 35%;
  padding-right: 35%;
  padding-top: 1rem;
  padding-bottom: 1rem;

  color: #2d9830;
  text-decoration: none;
  font-size: 1.2rem;
  /* border-color: #000;
    border-width: 2px; */
}

.g-nav ul li.current-menu-item a {
  color: #005fa3;
}

.icon-menu3 {
  font-size: 2.5rem;
  color: #2d9830;
}

#menu-toggle {
  display: none;
}

.menu-label {
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  position: fixed;
  right: 20px;
  top: 10px;
  padding: 5px;
}

#menu-toggle:checked ~ .g-nav ul {
  display: flex;
  background: #fff;
}

#menu-toggle:checked ~ .g-nav ul li a {
  color: black;
}

#menu-toggle:checked ~ .g-nav ul li.current-menu-item a {
  color: #2d9830;
}

section {
  padding-top: 30px;
  /* margin-top: -30px;   */
}

@media (min-width: 900px) {
  /*ここだけ900pxにしないとヘッダー部分で被りが発生*/
  .header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }

  .menu-label {
    display: none;
  }

  .g-nav ul {
    display: flex;
    flex-direction: row;
    /* justify-content: flex-end; */
    position: static;
    /* background-color: black; */
  }

  .g-nav ul li {
    width: fit-content;
    height: 20px;
    padding: 0;
    margin-left: 30px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
  }
  .g-nav ul li a {
    padding: 0;
  }
}

/* コンテンツ部分共通 */

.container {
  max-width: 940px;
  margin: 0 auto;
  padding-left: 34px;
  padding-right: 34px;
}

/* モーダル処理 */
.wrapper.is-locked {
  position: fixed;
  width: 100%;
}

/* モーダルウィンドウの余白
https://qiita.com/kitikitchen/items/d0357eaecd2972275eca
より改変引用 */
.modal {
  visibility: hidden;
  overflow-y: scroll;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s, visibility 0s 0.3s;
  z-index: 1001;
}

.modal.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s, visibility 0s 0s;
}

.modal-content {
  margin-top: 120px;
  margin-bottom: 60px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1002;
}

.modal-body {
  display: flex;
  flex-direction: column; /*モバイルでは縦並び*/
  align-items: center;
}

.modal-image img {
  width: 80%;
  max-width: 300%;
  aspect-ratio: 1 / 1; /*正方形*/
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.modal-text {
  text-align: left;
  font-size: 15px;
}

.modal-btn img {
  width: 250px;
  height: 250px;
}

.modal-content img {
  width: 300px;
  aspect-ratio: 1;
  /* margin-right: 20px; */
}

.modal-close {
  margin-top: 10px;
  font-size: 20px;
  color: #2d9830;
  border-width: 2px;
  border-radius: 3px;
  border-color: #2d9830;
  padding: 20px;
  width: 110px;
}

.button-center {
  text-align: center;
}

@media (min-width: 768px) {
  .modal-btn {
    width: 30%;
    height: 30%;
  }

  .modal-body {
    flex-direction: row; /*画像とテキストを横並び*/
    align-items: flex-start;
    gap: 20px;
  }

  .modal-image img {
    width: 300px;
  }

  .modal-text {
    width: 500px;
    font-size: 20px;
    margin-left: 60px;
  }

  .modal-text p {
    margin-top: 20px;
  }

  .filter {
    transition: filter 0.5s;
    transition: transform 0.5s;
    filter: grayscale(100%);
  }

  .filter:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
  }
}

/* フッター */

.footer {
  background-color: black;
  height: 150px;
}

/* パンくずリストエリア全体 */
.breadcrumb {
  height: 25px;
  background-color: #f0f0f0;
}
/* パンくずリストの中身 */
.breadcrumb_inner {
  font-size: 17px;
}
/* パンくずリストの中で、"見ていない"ページの装飾を変更 */
/* :not()で()の中の物以外を指定する */
.breadcrumb_inner a:not(.current-item) {
  color: #2d9830;
}

.footer p {
  text-align: center;
  font-size: 14px;
  color: white;
  padding-top: 75px;
}

.post time {
  display: block;
  text-align: right;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: bold;
}

.content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}
.content p:last-child {
  margin-bottom: 0;
}

.content img {
  width: 100%;
}

.content p a {
  color: #2d9830;
}

/* single.phpの前後記事へのボタン。教科書のそのまま */
.prevNext {
  padding-top: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 100%;
}
.prevNext .prevNext_item {
  width: 50%;
}
.prevNext .prevNext_item a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  color: #000;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-decoration: none;
}
.prevNext .prevNext_item a i {
  color: #45c6e5;
  font-size: 28px;
}
.prevNext .prevNext_item a span {
  display: inline-block;
  padding: 0 10px;
  font-size: 18px;
}
.prevNext .prevNext_item a:hover span {
  text-decoration: underline;
}
.prevNext .prevNext_item-prev {
  border-right: 1px solid #224163;
  margin-right: auto;
}
.prevNext .prevNext_item-next {
  text-align: right;
  margin-left: auto;
}
@media (max-width: 767px) {
  .prevNext {
    padding-top: 20px;
  }
  .prevNext .prevNext_item a {
    font-size: 12px;
  }
  .prevNext .prevNext_item a i {
    font-size: 18px;
  }
}

/* 投稿ページのボタンホバー */

.wp-block-button__link:hover {
  background-color: #2d9830;
}

@media (min-width: 768px) {
  .margin {
    margin-bottom: 47vh;
  }
}
