@import url('https://fonts.googleapis.com/css2?family=Kaisei+Decol:wght@400;500;700&family=Kaisei+Opti:wght@400;500;700&display=swap');

/*ヘッダー部分開始*/
.header {
  margin: 0;
  position: fixed;
  width: 100%;
  height: 52px;
  text-align: right;
  z-index: 1000;
}

/* 背景全体をカバーする要素 */
.menu-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fdfbef;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  z-index: 999;
}

/* メニューを開いたときに背景色を適用 */
.menu-btn:checked~.menu-background {
  opacity: 1;
  pointer-events: auto;
}

/* ナビゲーションメニュー */
.menu {
  list-style: none;
  position: absolute;
  width: 100%;
  top: 52px;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #fdfbef;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
}

/* メニュー表示時 */
.menu-btn:checked~.menu {
  transform: scale(1, 1);
}

/* ハンバーガーボタン */
.menu-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 10px;
  width: 70px;
  height: 70px;
  background-color: #fdfbef;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  border: 2px solid #d4bc89;
}

@media (max-width: 760px) {
  .menu-icon {
    width: 50px;
    height: 50px;
    top: 10px;
    right: 10px;
  }

  .menu a {
    font-size: 24px !important;
  }

  .menu li {
    padding: 10px 0 !important;
    margin: 0 20px !important;
  }
}

.menu-icon.no-border {
  border: none;
}

/* ハンバーガーボタンのアイコン */
.navicon {
  background: #000;
  display: block;
  height: 3px;
  width: 26px;
  position: relative;
  transition: 0.3s ease-in-out;
}

/* 上下のバー */
.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 3px;
  width: 26px;
  position: absolute;
  background: #000;
  transition: 0.3s ease-in-out;
}

.navicon:before {
  top: 8px;
}

.navicon:after {
  bottom: 8px;
}

/* メニューを開いたときのハンバーガーアイコンのアニメーション */
.menu-btn:checked~.menu-icon .navicon {
  background: transparent;
}

.menu-btn:checked~.menu-icon .navicon:before {
  transform: rotate(-45deg);
  top: 0;
}

.menu-btn:checked~.menu-icon .navicon:after {
  transform: rotate(45deg);
  bottom: 0;
}

/* メニュー内のリンク */
.menu a {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 50px;
  text-transform: capitalize;
  color: #000;
  opacity: 0;
  transition: opacity 0.5s;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
}

.menu li {
  border-top: 1px solid rgb(75, 75, 75);
  padding: 15px 0;
  margin: 0 54px;
  opacity: 0;
  transition: opacity 0.5s;
}

/* メニュー表示時にテキストをフェードイン */
.menu-btn:checked~.menu a,
.menu-btn:checked~.menu li {
  opacity: 1;
}

/* メニューの表示非表示切り替え */
.menu-btn {
  display: none;
}

/*ヘッダー部分終了*/




/*ページトップ移動ボタン部分開始*/
.page_top_btn {
  display: inline-block;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  transition: all 0.3s ease;
  border-radius: 50%;
  overflow: hidden;
}

.page_top_btn img {
  width: 100px;
  height: 100px;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 690px) {
  .page_top_btn img {
    width: 70px;
    height: 70px;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
}

.page_top_btn:hover img {
  opacity: 1;
  transform: translateY(-5px);
}

.page_top_btn:active img {
  transform: translateY(0);
}

/*ページトップ移動ボタン部分終了*/


/* フッター部分開始 */
.footer {
  padding: 2rem;
  font-size: 15px;
  color: #4b5564;
  background: #fff;
  max-width: 100%;
  margin: 0 auto;
}

.footer ul {
  padding: 0;
  list-style: none;
}

.footer a {
  color: #4b5564;
  text-decoration: none;
}

.footer a:hover {
  color: #000;
}

.footer hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  text-align: center;
}

.footer__navi-heading {
  font-weight: 600;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 3rem;
  perspective: 1000px;
}

.footer__logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  transition: transform 1s ease;
}

.footer__logo:hover img {
  transform: rotateY(360deg);
}

.footer__navi li {
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .md-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23rem;
  }

  .md-justify-between {
    justify-content: center;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* フッター部分終了 */







/*記事部分開始*/
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdfbef;
  margin: 0;
  padding: 0;
}

/* 記事コンテナ */
.news-container {
  max-width: 800px;
  margin: 30px auto;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 30px;
}

/* 記事ヘッダー */
.news-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

/* 記事タイトル */
.article-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.3;
  color: #222;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
}

/* 日付 */
.date {
  font-size: 14px;
  color: #777;
  margin: 0 0 15px 0;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
}

/* シェアボタン */
.share-buttons {
  margin: 15px 0;
}

/* 記事本文 */
.article-body {
  margin-bottom: 30px;
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 15px 0;
}

/* ナビゲーション */
.article-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
}

.nav-link {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  color: #1a73e8;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: #f0f7ff;
  text-decoration: underline;
}

.nav-icon {
  font-weight: bold;
}

.prev-link {
  text-align: left;
}

.next-link {
  text-align: right;
}

.home-link {
  text-align: center;
  font-weight: bold;
}

.disabled {
  color: #999;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .news-container {
    padding: 20px;
    margin: 15px;
    border-radius: 6px;
  }

  .article-title {
    font-size: 24px;
  }

  .article-content {
    font-size: 16px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }
}

/*記事部分終了*/






/* フッター部分開始 */
.footer {
  padding: 2rem;
  font-size: 15px;
  color: #4b5564;
  background: #fff;
  max-width: 100%;
  margin: 0 auto;
}

.footer ul {
  padding: 0;
  list-style: none;
}

.footer a {
  color: #4b5564;
  text-decoration: none;
}

.footer a:hover {
  color: #000;
}

.footer hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  text-align: center;
}

.footer__navi-heading {
  font-weight: 600;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 3rem;
  perspective: 1000px;
}

.footer__logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  transition: transform 1s ease;
}

.footer__logo:hover img {
  transform: rotateY(360deg);
}

.footer__navi li {
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .md-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23rem;
  }

  .md-justify-between {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .md-flex {
    display: block;
    text-align: center;
  }

  .footer__logo {
    margin-bottom: 1.5rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer {
    padding: 1rem;
  }

  .footer__navi-heading {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer__navi li {
    margin-bottom: 5px;
    font-size: 12px;
  }
}

/* フッター部分終了 */