@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*----------------------------
    メイン(内容物)ここから
------------------------------*/
main {
  width: 100%;
  height: auto;
  background-color: #42392dfe;
  color: aliceblue;
}

.title {
  background-image: url(../img/title.jpg);
  padding: 120px 0 80px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title h1 {
  font-weight: bold;
  letter-spacing: 10px;
  font-size: 2.5rem;
  font-family: inherit;
}

.main_title {
  margin-left: 0;
  padding-top: 10px;
  padding-left: 10px;
  margin-bottom: 15px;
  display: inline-flex; /* テキストの高さに合わせる */
  align-items: center; /* 垂直方向の中央揃え */
}

.main_title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1.5em;
  background-color: #4caf50;
  margin-right: 20px;
  border-radius: 2px;
}

/* 投稿ページのカテゴリタグ（タイトル下） */
.article-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-left: 10px;
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

/*パンくずリスト*/
.breadcrumb {
  width: 95%;
  padding-left: 5%;
}
.breadcrumb ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 10px 0;
  border-bottom: 1px solid #c5c5c5;
}

.breadcrumb li {
  font-size: 14px;
  color: #aaa;
}

.breadcrumb li a,
.breadcrumb li a:visited {
  text-decoration: none;
  color: #aaa;
}

.breadcrumb li a:hover {
  color: #4caf50;
}

.breadcrumb li::after {
  content: ">";
  margin: 0 6px;
  color: #aaa;
}

.breadcrumb li:last-child::after {
  content: "";
}

/*----------------------------
    メイン記事ここから
------------------------------*/
.article {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px; /* メインとサイドバーの間の余白 */
  width: 100%;
  padding: 0 5%;
  padding-bottom: 200px;
  font-family: "Zen Maru Gothic", serif;
}

.main_article {
  width: 65%;
  flex: 1; /* メイン部分を広めに */
  padding: 10px 16px 0 16px;
  overflow-wrap: break-word; /* スペースなしの長い文字列でも強制折り返し */
}

.main_article ul {
  padding-left: 20px;
}

.main_article p {
  padding-top: 20px;
}

/*
.main_article p:last-child{
  text-align:right;
}
*/
.main_img {
  width: 90%;
  height: auto;
}

.main_img img {
  width: 100%;
  margin-bottom: 50px;
}

.kensyo-space {
  height: 50px;
}

/*----------------------------
    メイン記事ここまで
------------------------------*/

/*----------------------------
    サイドバーここから
------------------------------*/
.sidebar {
  width: 35%; /* サイドバーの固定幅 */
  padding: 16px;
}

/*イベント(お知らせやニュース、開催イベントなど)ここから*/
.content-event {
  display: flex;
  gap: 1rem;
  padding: 20px 0 10px 0;
  border-bottom: 1px solid #d4d4d4;
}

.event-img img {
  width: 150px;
  height: 100px;
  object-fit: cover;
}

.sentence {
  display: flex;
  flex-direction: column;
}

.event-guidance__info {
  display: inline-block;
  margin-left: 1.2em;
  font-size: 0.6em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.event-guidance__info-link {
  font-weight: 700;
  color: #4caf50;
  text-decoration: none;
}

.event-guidance__info-link:hover {
  text-decoration: underline;
}

.article-link a {
  color: #7ced80;
  text-decoration: none;
}

.article-link a:hover {
  color: #4caf50;
}

/* 投稿本文内のリンクをフロントと同じデザインに */
.article a,
.article a:visited {
  color: #7ced80;
  text-decoration: none;
}

.article a:hover {
  color: #4caf50;
}

.event-guidance__title {
  padding-bottom: 5px;
  position: relative;
  border-bottom: 2px solid #fff;
  margin-bottom: 10px;
}

.event-guidance__title::before {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 25%;
  height: 3px;
  background: #4caf50;
}

.kensyo_day {
  text-align: right;
}

.sentence b {
  /* 文字を小さくする */
  font-size: 0.7em;
  /* 文字色を灰色にする */
  color: #a2a2a2;
}

/* サイドバーのカテゴリータグ */
.event-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.event-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  color: white !important;
  white-space: nowrap;
}

/*----------------------------
    メイン(内容物)ここまで
------------------------------*/
/*----------------------------
    スマホ向けここから
------------------------------*/
@media screen and (max-width: 750px) {
  .title {
    padding: 100px 0 30px 0; /* 上下のパディングを調整してh1を縦中央に */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .article {
    flex-direction: column;
  }

  .main_img {
    width: 100%;
    height: auto;
  }

  .sidebar {
    width: 100%;
  }

  .article {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* メインとサイドバーの間の余白 */
    width: 100%;
    padding: 0 5%;
    padding-bottom: 200px;
  }

  .main_article {
    width: 100%;
    flex: 1; /* メイン部分を広めに */
    padding: 10px 10px 0 10px;
    overflow-wrap: break-word; /* スペースなしの長い文字列でも強制折り返し */
  }

  .main_article ul {
    padding-left: 20px;
  }
  /*
.main_article p:last-child{
  text-align:right;
}
*/

  .main_img {
    width: 90%;
    height: auto;
  }

  .main_img img {
    width: 100%;
    margin-bottom: 50px;
  }

  .title h1 {
    font-size: 24px;
  }

  /*----------------------------
    メイン記事ここまで
------------------------------*/
  /*
.event-img img {
  width: 100px;
  height: 50px;
  object-fit: cover;
}


  .sidebar {
    width: 100%;
    padding: 0;
  }

  .event-guidance {
    width: 100%;
    margin:0;
  }
*/
}
/*----------------------------
    スマホ向けここまで
------------------------------*/

.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}

/* 投稿ページ本文下のリンク */
.article-excerpt-link {
  margin-top: 40px;
  padding: 20px 0;
}

.article-excerpt-link a {
  display: inline-flex;
  align-items: center;
  color: #7ced80;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-excerpt-link a:hover {
  color: #4caf50;
}

.article-excerpt-link a::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.article-excerpt-link a:hover::after {
  transform: translateX(4px);
}

/* WP Sitemap Page プラグインのサイトマップ調整 */
.wsp-container {
  margin-left: 30px;
}

/* 見出し（ページ / カテゴリーごとの投稿）の余白調整 */
.wsp-pages-title,
.wsp-posts-title {
  margin-bottom: 10px; /* 見出し下の余白を小さく */
}

.wsp-posts-title {
  margin-top: 30px; /* 「カテゴリーごとの投稿」の上の余白 */
}

/* カテゴリータイトル（カテゴリー：〇〇）の余白調整 */
.wsp-category-title {
  display: block;
  margin-bottom: 5px; /* カテゴリー名の下の余白を小さく */
}

/* リストの余白調整 */
.wsp-container ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

/* ページリストと投稿リストの上余白を小さく */
.wsp-pages-list,
.wsp-posts-list {
  margin-top: 5px !important;
}

.wsp-container li {
  line-height: 1.8;
}

/* カテゴリー内の投稿リストの余白 */
.wsp-posts-list .wsp-posts-list {
  margin-top: 5px;
  margin-bottom: 15px;
}

/* タブレット以下でのサイトマップ調整 */
@media screen and (max-width: 750px) {
  .wsp-container {
    margin-left: 30px; /* PC版と同じインデント */
    margin-right: 10px;
  }

  .wsp-container ul {
    padding-left: 15px;
  }

  .wsp-pages-title,
  .wsp-posts-title {
    font-size: 1.1rem;
  }

  .wsp-category-title {
    font-size: 1rem;
  }

  .wsp-container li {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}
