body {
  color: #111;
  background-color: #F2F6F7;
  font-family: "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Osaka, "ＭＳ ゴシック", "MS Gothic", sans-serif;
  word-wrap: break-word;
  height: 100%;
  line-height: 2.2;
  overflow-x: hidden;
}

html {
  height: 100%;
}

header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.fixed {
  background-color: #111;
  background-color: rgba(242,246,247,0.9);
}

header h1 a img {
  top: 23px;
  left: 10px;
  height: 44px;
}

#g_navi {
  position: absolute;
  top: 20px;
  right: 10px;
  width: auto;
  margin-left: 200px;
  display: block;
  z-index: 1000;
  text-align: center;
}

#g_navi ul {
  display: flex;
  gap: 1rem;
  padding: 0;
  flex-direction: row;
}

#g_navi ul li {
  display: inline;
}

#g_navi ul li a {
  width: auto;
  padding: 10px;
  line-height: 30px;
  display: block;
  color: #111;
  text-decoration: none;
  text-align: center;
  position: relative;
  float: left;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: bold;
  border-top: 1px solid #eee;
}

#g_navi ul li:first-child a {
  border-top: none;
}

#g_navi li a::before {
  display: block;
  height: 2px;
  position: absolute;
  top: 2px;
  width: 70%;
  left: 15%;
  background-color: rgba(17,187,221,0);
  content: '';
  transition: 0.2s linear;
}

#g_navi li a:hover::before {
  background-color: #db873d;
  top: 0px;
  width: 80%;
  left: 10%;
}

#g_navi li a:hover {
  color: #db873d;
}

#g_navi.txt_w li a {
  color: #FFF;
}

header.fixed #g_navi.txt_w li a {
  color: #111;
}

#g_navi li.contact a {
  background-color: #db873d;
  color: #FFF !important;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: 10px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s 0.5s;
}

#g_navi li.contact a:hover {
  background-color: #FFF;
  color: #db873d !important;
  transition: background-color 0.3s, color 0.3s 0s;
}

#g_navi li.contact a::before {
  display: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: #222;
  text-decoration: none;
}

a:hover {
  color: #333;
  text-decoration: underline;
}

.header-left {
  width: 70%;
}

.header-right {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.logo img {
  width: 100%;
  mix-blend-mode: multiply;
}

.tags button {
  padding: 8px 16px;
  margin: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}

.kizi-title {
  position: relative;
  padding: 0;
}

.kizi-title h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.date {
  font-size: 1.2rem;
  font-weight: bold;
  color: #666;
  margin-bottom: 2px;
}

.suji {
  text-align: center;
}

.linear {
  width: 100%;
  height: 0.5px;
  background-color: #666;
  margin-top: 2px;
}

.linear-bold {
  width: 100%;
  height: 2px;
  background-color: #222;
  margin-top: 2px;
}

main {
  display: flex;
  padding: 2.5%;
}

article {
  width: 70%;
  padding-right: 20px;
}

.article-image1 {
  position: relative;
  width: 100%;
  text-align: center;
}

.article-image2 {
  width: 100%;
  object-fit: cover;
}

.article-image1 img {
  display: block;
  margin: 0 auto;
  position: relative;
  border-radius: 8px;
}

.article-image img {
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

.article-text {
  position: relative;
  z-index: 2;
  padding-inline: 10%;
  font-size: 1rem;
  line-height: 1.6;
  margin: 20px 0;
  color: #333;
}

.event-block {
  margin: 2em 0;
  padding: 1em;
  border: 1px solid #ccc;
  background-color: #fafafa;
  border-radius: 8px;
}

.event-block h3 {
  margin-bottom: 0.5em;
  font-size: 1.2em;
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.event-list li {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75em;
}

.event-list li:last-child {
  border-bottom: none;
}

.event-list li strong {
  display: block;
  margin-bottom: 0.25em;
  color: #222;
}

aside {
  width: 30%;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  border-bottom: 1px solid #ccc;
}

.news-item img {
  width: 100px;
  height: auto;
  object-fit: contain;
  padding: 1.5%;
  border-radius: 16px;
}

.column {
  display: flex;
  flex-direction: column;
}

.news-date {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.news-title {
  line-height: 1.5;
}

.last-text {
  font-size: 24px;
  font-family: 'Noto Serif JP', serif;
  font-weight: bold;
}

.author-info {
  margin-top: 2em;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.author-details {
  align-items: center;
}

.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 1em;
}

.author-name {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.author-bio {
  margin: 10%;
}

.tag-parent {
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 1em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.tag {
  background-color: #db873d;
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Osaka, "ＭＳ ゴシック", "MS Gothic", sans-serif;
}

.tag:hover {
  background-color: #b35f2b;
}

.tag:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(219, 135, 61, 0.5);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #db873d;
  font-family: "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Osaka, "ＭＳ ゴシック", "MS Gothic", sans-serif;
  color: #222;
  font-size: 0.9em;
}

.footer-left, .footer-right {
  display: flex;
  flex-direction: column;
}

.footer-company {
  font-weight: bold;
  margin-bottom: 5px;
}

.bullet {
  color: #ffab40;
  margin-right: 5px;
}

.footer-address, .footer-contact {
  margin: 0;
}

.footer-email {
  color: #222;
  text-decoration: none;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-copyright {
  text-align: right;
  display: flex;
  flex-wrap: wrap;
}

.footer-copyright ul {
  width: 50%;
  box-sizing: border-box;
  padding-right: 10px;
}

.footer-left img {
  max-width: 100px;
  mix-blend-mode: multiply;
}

.full-width-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  padding: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.full-width {
  width: 100%;
  object-fit: cover;
  max-height: 80vh;
}

.article-image.full-width-container {
  margin: 2rem -50vw;
}

.article-image1.full-width-container::after {
  width: calc(100% - 40px);
  height: calc(100% - 40px);
}

.article-image1.full-width-container {
  width: 100vw;
}

.article-image3.full-width-container {
  width: 100%;
}

@media (max-width: 768px) {
  li {
      font-size: 0.8rem;
  }

  h2 {
      font-size: 1.0rem;
  }

  h3 {
      font-size: 0.9rem;
  }

  header {
      height: auto;
      flex-direction: column;
      display: none;
      align-items: center;
      padding: 10px 0;
  }

  header h1 a img {
      top: 0;
      left: 0;
      height: 35px;
      margin-bottom: 5px;
  }

  #g_navi ul {
      flex-direction: column;
  }

  #g_navi ul li a {
      font-size: 12px;
      padding: 10px 0;
      border-top: 1px solid #eee;
  }

  .body {
      position: relative;
      background: #fff;
      margin: 0;
      font-family: "Noto sans JP", sans-serif;
      width: 100vw;
      z-index: 1000;
  }

  ul li {
      display: inline;
  }

  #overlay-button {
      position: fixed; /* absoluteからfixedに変更してスクロールしても位置を固定 */
      right: 0; /* 右端に配置 */
      top: 1em; /* 上部の位置を調整 */
      padding: 26px 16px; /* 右側のパディングを増やして指でタップしやすく */
      z-index: 100; /* より前面に表示 */
      cursor: pointer;
      user-select: none;
      background-color: rgba(255, 255, 255, 0.9); /* 背景色を追加して視認性を向上 */
      border-top-left-radius: 8px; /* 左上角を丸く */
      border-bottom-left-radius: 8px; /* 左下角を丸く */
      box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
  }

  #overlay-button span {
      height: 4px;
      width: 35px;
      border-radius: 2px;
      background-color: #222;
      position: relative;
      display: block;
      transition: all .2s ease-in-out;
  }

  #overlay-button span:before {
      top: -10px;
      visibility: visible;
  }

  #overlay-button span:after {
      top: 10px;
  }

  #overlay-button span:before, #overlay-button span:after {
      height: 4px;
      width: 35px;
      border-radius: 2px;
      background-color: #222;
      position: absolute;
      content: "";
      transition: all .2s ease-in-out;
  }

  #overlay-button:hover span, #overlay-button:hover span:before, #overlay-button:hover span:after {
      background: #555;
  }
  
  input[type=checkbox] {
      display: none;
  }
  
  input[type=checkbox]:checked ~ #overlay {
      transform: translateX(0);
      box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  input[type=checkbox]:checked ~ #overlay-button:hover span, input[type=checkbox]:checked ~ #overlay-button span {
      background: transparent;
  }

  input[type=checkbox]:checked ~ #overlay-button span:before {
      transform: rotate(45deg) translate(7px, 7px);
  }

  input[type=checkbox]:checked ~ #overlay-button span:after {
      transform: rotate(-45deg) translate(7px, -7px);
  }
  
  #overlay {
      height: 100vh;
      width: 80vw; /* メニュー幅を調整 */
      max-width: 400px; /* 最大幅を設定 */
      background: #db873d;
      z-index: 99; /* ボタンより下のz-indexに設定 */
      position: fixed;
      top: 0;
      right: 0;
      transform: translateX(100%); /* 初期位置を右側に設定 */
      transition: transform 0.3s ease-in-out; /* スライドアニメーションを追加 */
      font-family: "Noto Serif JP", sans-serif; /* フォントをNoto Sans JPに変更 */
  }
  
  #overlay ul {
      display: flex;
      justify-content: flex-start; /* 左寄せに変更 */
      align-items: flex-start; /* 上寄せに変更 */
      flex-direction: column;
      text-align: left; /* テキスト左寄せ */
      height: 100vh;
      padding: 80px 20px 20px; /* 上部にスペースを追加 */
      list-style-type: none;
      margin: 0;
  }
  
  #overlay ul li {
      padding: 1em;
      width: 100%;
      opacity: 0; /* 初期状態は透明 */
      transform: translateX(20px);
      animation: fadeInRight 0.5s ease forwards;
      animation-delay: calc(0.1s * var(--i, 0));
  }
  
  @keyframes fadeInRight {
      from {
          opacity: 0;
          transform: translateX(20px);
      }
      to {
          opacity: 1;
          transform: translateX(0);
      }
  }
  
  input[type=checkbox]:checked ~ #overlay ul li:nth-child(1) { --i: 1; }
  input[type=checkbox]:checked ~ #overlay ul li:nth-child(2) { --i: 2; }
  input[type=checkbox]:checked ~ #overlay ul li:nth-child(3) { --i: 3; }
  input[type=checkbox]:checked ~ #overlay ul li:nth-child(4) { --i: 4; }
  input[type=checkbox]:checked ~ #overlay ul li:nth-child(5) { --i: 5; }
  input[type=checkbox]:checked ~ #overlay ul li:nth-child(6) { --i: 6; }
  input[type=checkbox]:checked ~ #overlay ul li:nth-child(7) { --i: 7; }
  
  #overlay ul li a {
      color: #222;
      text-decoration: none;
      font-size: 1.5em;
      display: block;
      padding: 0.5em 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);
      width: 100%;
      font-family: "Noto Sans JP", sans-serif; /* リンクテキストにも同じフォントを適用 */
  }
  
  #overlay ul li a:hover {
      color: #000!important;
      background-color: rgba(255, 255, 255, 0.2);
      border-radius: 4px;
  }

  .full-width-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .article-image.full-width-container {
    margin: 1rem -50vw;
  }

  main {
      padding: 0;
      flex-direction: column;
  }

  .article-image1 img {
      width: 100%;
  }

  .article-text {
      padding-inline: 2.5%;
  }

  .news-item {
      width: 100%;
      flex-direction: column-reverse;
  }

  .news-item img {
    width: 100%;
  }


  .tag-parent {
      display: none;
  }

  .tag-list {
      gap: 0.2em;
  }

  .article-content {
      padding-top: 100px;
  }

  .author-info {
      line-height: 1.2;
  }

  .footer {
      flex-direction: column;
      text-align: center;
  }

  .footer-left, .footer-right {
      align-items: center;
      margin-bottom: 10px;
  }

  .footer-copyright {
      text-align: center;
  }

  .header-container, main {
      flex-direction: column;
  }

  .header-left, .header-right, article, aside {
      width: 100%;
  }

  .header-right {
      align-items: center;
  }

  .header-left img {
      max-width: 100%;
  }
}

@media (min-width: 769px) {
  header {
      height: auto;
      display: flex; /* Flexboxを適用 */
      justify-content: space-between; /* 要素間のスペースを均等に配分（必要に応じて変更） */
  }

  .body {
    display:none;
  }

  #g_navi ul li a {
      font-size: 16px;
      padding: 10px 0;
      border-top: 1px solid #eee;
  }

  .kizi-title {
      padding-inline: 10%;
  }

  .kizi-title h1 {
      font-size: 1.5rem;
  }

  .article-image1 img {
      width: 100%;
  }
}

@media (max-width: 480px) {
  body {
      font-size: 0.8rem !important;
  }

  p {
      font-size: 0.8rem !important;
  }
}