@font-face {
  font-family: 'DotFont';
  src: url('/assets/fonts/PixelMplus12-Regular.ttf') format('truetype');
}

html {
  font-size: 100%;
}

body {
  font-size: 1rem;
  font-family: Helvetica, "Helvetica Neue", Arial, Vendana, Roboto, "Hiragino Kaku Gothic ProN", "游ゴシック", "Yu Gothic", "游ゴシック体" , "YuGothic" , "ヒラギノ角ゴ Pro W3","Meiryo UI" ,  "メイリオ" , Meiryo, "ＭＳ Ｐゴシック" , "MS PGothic", sans-serif;
  background-color: #fcf4e7;
  color: #555;
}

a{
  text-decoration: none;
}

ul {
  margin-top: 0;
  padding-left: 0;
}

li {
  list-style: none;
}

img {
  max-width: 100%;
}

p{
  line-height: 1.5;
  letter-spacing: 0.05rem;
}

/* =======================================
   ヘッダー部分
   ======================================= */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  padding: 20px 0;
  background-color: #c0695b;
  /* border: solid 3px darkgreen; */
}

.header__content {
  margin-bottom: 30px;
  /* border: solid 1px darkgoldenrod; */
}

.header__icon {
  height: 130px;
  /* border: solid 3px darkgreen; */
}

.header_title {
  font-family: 'DotFont';
  font-size: 3.0rem;
  font-weight: bold;
  text-align: center;
  color: #FBAA31;
  transition: transform 0.3s ease, color 0.3s ease;
  /* border: solid 3px gold; */
}

.header_title:hover {
  padding: 5px;
  transform: translateY(-2px);
  color: #FFF;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* =======================================
   ナビゲーション部分
   ======================================= */
.header_navigation_list {
  display: flex;
  justify-content: center;
}

.header_navigation_list li {
  margin: 0 15px;
}

.header_navigation_list li a {
  text-decoration: none;
}

/* =======================================
   コンテンツ共通部分
   ======================================= */
#container {
  display: flex;
  gap: 10px;
  margin: 0 auto;
  justify-content: center;
  width: 100%;
  max-width: 1250px;
  padding: 20px;
  box-sizing: border-box;
  /* border: solid 5px darksalmon; */
}

.section-title {
  margin-top: 30px;
  font-size: 1.5em;
  font-weight: bold;
  padding: 1em;
  margin-bottom: 2em;
  border: 4px double #FBAA31;
  border-radius: 15px;
  text-align: center;
  color: #FF8C42;
}

.section-title i {
  margin-right: 10px;
}

/* =======================================
   メイン部分
   ======================================= */
main {
  flex: 1;
  width: 100%;
  max-width: 75%;
  /* border: solid 2px darkcyan; */
}

.game__content {
  margin-bottom: 100px;
  /* border: 1px solid firebrick; */
}

.main__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 30px 7px 0 7px;
  border-radius: 20px 20px 0px 0px ;
  width: 100%;
  /* border: solid 5px blue; */
}

.content-card {
  width: 100%;
  min-width: 230px;
  /* min-height: 350px; */
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* overflow: hidden; */
  display: grid;
  grid-template-rows: auto;
  /* border: solid 2px seagreen; */
  flex-grow: 0;
}

.content-card:hover {
  transform: translateY(-10px);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
}

.content-card__body {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  /* width: 100%;*/
  height: 100%;
  padding-bottom: 10px;
  border-radius: 20px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* border: solid 5px saddlebrown; */
  /* flex-grow: 1; */
}

/* サムネイル画像 */
.content-card__container {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.content-card__image {
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
}

.content--card__date-wrapper {
  display: flex;
  align-items: center;
  margin: 7px 10px 0 10px;
  /* border: solid 3px mediumaquamarine; */
}

.conten-card__icon {
  margin-left: 5px;
  margin-bottom: 2px;
  color: #919191;
  /* border: solid 2px salmon; */
}

.content-card__date {
  margin: 5px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #919191;
  /* border: solid 2px slateblue; */
}

.content--card__title {
  margin: 0 10px;
  padding: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.4;
  /* min-height: calc((3 * 1.1rem * 1.4) + 1rem); */
  /* min-height: 3.5rem;*/
  text-align: justify;
  /* border: solid 3px red;*/
}

.game__content .content-card__body {
  padding-bottom: 20px;
}

.game__content .content--card__title {
  margin: 15px 30px 0px;
  padding: 0.5rem;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  transition: text-decoration 0.3s ease;
  position: relative;
  /* border: 1px solid deeppink; */
}

.game__content .content--card__description {
  margin: 0px 30px;
  padding: 0.5rem;
  font-size: 1em;
  color: #555;
  line-height: 1.6;
  text-align: justify;
  /* border-bottom: dashed 1px saddlebrown; */
}

/* =======================================
  ページネーション
   ======================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
  gap: 8px;
}

.pagination a {
  display: inline-block;
  padding: 8px 14px;
  /* border: 1px solid #ddd; */
  border: 2px solid #ff8c42;
  border-radius: 20px;
  color: #333;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pagination a.active {
  background-color: #ff8c42;
  color: #fff;
  border-color: #ff8c42;
}

.pagination a:hover {
  background-color: #ffe0c2;
  color: #000;
}

.pagination a.disabled {
  pointer-events: none;
  color: #ffa76f;
  border-color: #ffe0c2;
  background-color: #fff5eb;
}

/* =======================================
  関連記事
   ======================================= */
.related-articles {
  padding: 40px 20px;
  background-color: white; 
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.05);
}

.related-articles h2 {
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: #333;
  position: relative;
}

.related-articles h2::after {
  content: "";
  display: block;
  width: 300px;
  height: 3px;
  background-color: #007acc;
  margin: 10px auto 0 auto;
  border-radius: 3px;
}

.related__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 7px 0 7px;
  border-radius: 0px 0px 20px 20px ;
  width: 100%;
  /* border: solid 5px blue; */
}

/* サムネイル画像 */
.related__content-card__container {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* タイトル */
.related-content-card__title {
  margin: 0 10px;
  padding: 0.5rem;
  font-size: 1.0rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: justify;
}

/* =======================================
   サイドバー
   ======================================= */
.sidebar__content {
  flex: none;
  width: 100%;
  max-width: 350px;
  margin-left: 20px;
  padding: 30px 15px 10px 15px;
  /* border: solid 5px hotpink; */
  /* background-color: #FFF2C1; */
  min-width: 150px;
}

.sidebar__title {
  padding: 15px 17px 15px 17px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #FBAA31;
  background-color: #FFF2C1;
  border-radius: 10px 10px 0px 0px;
  /* border: solid 2px darkblue; */
}

/* =======================================
   自己紹介ブロック
   ======================================= */
.profile {
  padding-top: 7px;
  margin-bottom: 30px;
  border-radius: 10px;
  background-color: #fff6d7;
  box-shadow: 2px 2px 2px 2px #bbb;
  /* border: solid 5px green; */
}
    
.profile img {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: white;
  border: dashed 5px wheat;
  image-rendering: pixelated;
  /* image-rendering: crisp-edges; */
}

.profile__name {
  padding: 20px 0px;
  font-size: 1.05rem;
  font-weight: bold;
  text-align: center;
}

.profile__description {
  padding: 0px 20px 20px 20px;
  font-size: 0.9rem;
  text-align: justify;
}

/* =======================================
   人気記事ブロック
   ======================================= */
.popular-article {
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 2px 2px 2px 2px #bbb;
  background-color: white;
  /* border: solid 5px green; */
}

.popular-article__item {
  margin: 20px 15px 0px 15px;
  padding: 10px;
  /* border: solid 4px darkcyan; */
}

.popular-article .prepare {
  text-align: center;
}

.popular-article__list {
  margin-bottom: 16px;
}

.popular-article__list a {
  display: block;
  transition: background-color 0.3s, transform 0.2s;
  border-radius: 6px;
  padding: 4px;
}

.popular-article__list a:hover {
  background-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* サムネイル画像 */
.thumbnail-container {
  position: relative;
  display: inline-block;
  margin-bottom: 5px;
}

.thumbnail-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ランキングバッジ */
.ranking-badge {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 10px;
  margin: 0;
  padding: 6px 0;
  z-index: 2;
  width: 30px;
  text-align: center;
  font-size: 12px;
  color: white;
  background: #ff785b;
}

/* 1位: 金色グラデーション */
.ranking-badge.gold {
  background: linear-gradient(
    45deg, #B67B03 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #B67B03 90% 100%
  );
  color: #fff;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}

/* 2位: 銀色グラデーション */
.ranking-badge.silver {
  background: linear-gradient(
    45deg, #757575 0%, #9E9E9E 45%, #E8E8E8 70%, #9E9E9E 85%, #757575 90% 100%
  );
  color: #fff;
  box-shadow: 0 0 6px rgba(192, 192, 192, 0.7);
}

/* 3位: 銅色グラデーション */
.ranking-badge.bronze {
  background: linear-gradient(
    45deg, #8C4A2F 0%, #B87333 45%, #FFD2A6 70%, #B87333 85%, #8C4A2F 90% 100%
  );
  color: #fff;
  box-shadow: 0 0 6px rgba(205, 127, 50, 0.7);
}

.ranking-badge::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  height: 0;
  width: 0;
  border-left: 15px solid;
  border-right: 15.5px solid;
  border-bottom: 8px solid transparent;
}

.ranking-badge.gold::after {
  border-right-color: #d6a92d;
  border-left-color: #be830c;
}

.ranking-badge.silver::after {
  border-right-color: #a09d9d;
  border-left-color: #757575;
}

.ranking-badge.bronze::after {
  border-right-color: #a05f1e;
  border-left-color: #914b2f;
}

/* タイトル */
.popular-article__title {
  padding: 0px 5px 10px 5px;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.5rem;
  margin-bottom: 5px;
}

/* =======================================
   カテゴリーブロック
   ======================================= */
.categories {
  padding-bottom: 3px;
  margin-bottom: 60px;
  border-radius: 10px;
  box-shadow: 2px 2px 2px 2px #bbb;
  background-color: white;
  /* border: solid 5px green; */
}

.categories__item{
  margin: 5px;
  /* border: solid 4px darkcyan; */
}

.categories__item p {
  padding: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.5rem;
}

/* =======================================
   フッター
   ======================================= */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  margin: 0 auto;
  background-color: #c0695b;
  /* border: solid 3px darkcyan; */
}

.footer p {
  margin: 10px 0px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  /* border: solid 1px royalblue; */
}

/* =======================================
  タブレット対応
======================================= */
@media (max-width: 768px) {
  #container {
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .profile {
    display: none;
  }

  main {
    width: 100%;
    max-width: 100%;
  }

  .main__content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    width: 100%;
  }

  .content-card {
    width: 100%;
    min-width: 0;
    min-height: auto;
    height: auto;
  }

  .content-card__image {
    width: 100%;
    max-width: 100%;
  }

  .content--card__title {
    font-size: 1rem;
  }

  .sidebar__content {
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
  }

  .related__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =======================================
   スマートフォン対応
   ======================================= */
@media (max-width: 480px) {
  #container {
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    }

  .header {
    height: 100px;
    width: 100%;
  }
  
  .header__icon {
    height: 100px;
  }

  .header_title {
    font-size: 1.6rem;
  }

  main {
    width: 100%;
    max-width: 100%;
  }

  .main__content {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    padding: 20px;
  }
  
  .content-card {
    width: 100%;
    min-width: 0;
    min-height: auto;
    height: auto;
  }
  
  .content--card__title {
    font-size: 1.0rem;
  }

  .content-card__date {
    font-size: 0.75rem;
  }

  .sidebar__content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .profile {
    display: none;
  }

  .related__content {
    display: grid;
    grid-template-columns: 1fr;
  }
}

