@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*----------------------------
    メイン(内容物)ここから
------------------------------*/
main {
  width: 100%;
  height: auto;
  background-color: #42392dfe;
  color: aliceblue;
  font-family: "Noto Serif JP", serif; /* 記事ページ準拠 */
  font-size: 16px;
  line-height: 1.8;
}

.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;
}

.title h1 {
  font-weight: bold;
  letter-spacing: 10px;
  font-size: 2.5rem;
  font-family: "Zen Maru Gothic", serif; /* 見出しはZen Maru */
}

/* 共通見出しのフォント統一 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Zen Maru Gothic", serif;
}

/* スマホでの文字サイズ最適化 */
@media screen and (max-width: 750px) {
  main {
    font-size: 15px;
  }
  .title h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .main_title {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }
}

.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;
}

/*パンくずリスト*/
.breadcrumb {
  width: 95%;
  padding-left: 5%;
  font-family: "Zen Maru Gothic", serif;
}
.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;
}

.main_article {
  width: 65%;
  flex: 1; /* メイン部分を広めに */
  padding: 10px 16px 0 16px;
}

.main_article p:last-child,
.main_article ul {
  padding-top: 50px;
}

.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;
}

.kensyo-space {
  height: 50px;
}

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

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

/*イベント(お知らせやニュース、開催イベントなど)ここから*/
.content-event {
  display: flex;
  gap: 1rem;
  padding: 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 {
  padding: 10px 0 50px 0;
}

.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;
}

.event-guidance {
  width: 90%;
  margin: 0 5%;
}

.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;
}

/*----------------------------
    メイン(内容物)ここまで
------------------------------*/
/*----------------------------
    スマホ向けここから
------------------------------*/
@media screen and (max-width: 750px) {
  .title {
    padding: 100px 0 30px 0;
  }

  .article {
    flex-direction: column;
  }

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

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

  .event-guidance {
    width: 100%;
    margin: 0;
  }

  .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;
  }

  .main_article p:last-child,
  .main_article ul {
    padding-top: 50px;
  }

  .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;
  }

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

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

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