@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;
}

/*ヘッダー部分終了*/









/*記事基礎部分開始*/
:root {
  --primary-color: #5bb7ae;
  --text-color: #333;
  --background-light: #f4f4f4;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/*記事基礎部分終了*/

/* Pick Up記事部分開始 */
.pick-up-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

.section-title {
  text-align: center;
  font-size: 50px;
  margin: 20px 0 20px;
  position: relative;
  padding-bottom: 0px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease-out forwards;
  color: #000;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
  animation: expandWidth 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* アニメーション定義 */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  0% {
    width: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    width: 80px;
    opacity: 1;
  }
}

.section-title:hover {
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .articles-container {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
    color: #000;
  }
}

.featured-article {
  margin-bottom: var(--spacing-lg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.featured-image:hover {
  transform: scale(1.02);
}

.featured-article-title {
  color: #000;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.5rem;
  margin: -20px 0 10px 0;
}

@media (max-width: 768px) {
  .featured-article-title {
    font-size: 1rem;
    margin-top: 9px;
  }
}

.featured-article-date {
  color: #666;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1rem;
  margin: -15px 0 10px 0;
}

@media (max-width: 768px) {
  .featured-article-date a {
    font-size: 0.7rem;
  }
}

/* Pick Up記事部分終了 */





/* 記事一覧部分開始 */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  position: relative;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
}

.article-card {
  background: var(--background-light);
  border-left: solid 4px var(--primary-color);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0.1s ease;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  z-index: 1;
}

.article-card.animate {
  animation: fadeInDown 0.6s forwards;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-link {
  display: block;
  padding: var(--spacing-md);
  text-decoration: none;
  color: var(--text-color);
}

.article-title {
  font-size: 1.2rem;
  margin: 0 0 var(--spacing-sm);
}

.article-date {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .articles-container {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* 記事一覧部分終了 */













/*ページトップ移動ボタン部分開始*/
.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;
  }
}

@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;
  }
}

/* フッター部分終了 */





@media (max-width: 760px) {

  .article-title {
    font-size: 1rem;
  }

  .article-date {
    font-size: 0.8rem;
  }

  .article-card {
    margin-bottom: 10px;
  }

  .article-link {
    padding: 10px;
  }

  .articles-container {
    gap: 0px;
    margin-bottom: 10px;
    padding-bottom: 0;
  }

  .pick-up-section {
    padding: 10px;
    padding-bottom: 5px;
    margin-bottom: 0;
  }

  .section-title {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .footer {
    margin-top: 10px;
  }

  .featured-article {
    margin-bottom: 15px;
  }
}