@font-face {
  font-family: m;
  src: url("../fonts/LexendDeca-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: r;
  src: url("../fonts/LexendDeca-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  color: #333333;
  font-family: m, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  overflow-y: scroll;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: #8b8d8c;
}

img {
  border: none;
  vertical-align: middle;
  max-width: 100%;
}

button,
input,
textarea {
  font-family: inherit;
  outline: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

textarea {
  resize: none;
}

h1,
h2,
h3,
h4 {
  font-weight: normal;
}

#content {
  flex: 1;
}

header {
  background: #fcdd6d;
}

header .head,
footer .foot {
  width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

header .head {
  height: 56px;
}

header .head .logo {
  margin-right: 40px;
  flex: 0 0 auto;
}

header .head .logo img,
footer .foot .logo_foot img {
  width: 173px;
  height: 44px;
  object-fit: contain;
}

header .head nav,
footer .foot nav {
  display: flex;
  align-items: center;
}

header .head nav a {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin-right: 60px;
}

header .head nav a:last-child,
footer .foot nav a:last-child {
  margin-right: 0;
}

header .head nav a:hover,
footer .foot nav a:hover {
  text-decoration: underline;
}

footer {
  background: #fcdd6d;
}

footer .foot {
  justify-content: space-between;
  padding: 16px;
}

footer .foot nav a {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin-right: 40px;
}

.page-list #content {
  padding: 24px 40px;
}

.page-list .game_list,
.related .game_list {
  display: grid;
  grid-template-columns: repeat(9, minmax(50px, 1fr));
  gap: 16px;
}

.related .game_list {
  grid-template-columns: repeat(5, minmax(50px, 1fr));
}

.game_list .game_item {
  position: relative;
  min-width: 0;
}

.game_list .game_item a {
  display: block;
  position: relative;
  border: 2px solid #ffffff;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, border-color 0.3s;
}

.game_list .game_item a .game_cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eeeeee;
  display: block;
}

.game_list .game_item a .mc {
  position: absolute;
  inset: 0;
  display: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.game_list .game_item a .mc h3 {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 8px;
  font-family: r, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (any-hover: hover) {
  .game_list .game_item:hover {
    z-index: 2;
  }

  .game_list .game_item:hover a {
    transform: scale(1.1);
    border-color: #ff1f4f;
  }

  .game_list .game_item:hover a .mc {
    display: block;
  }
}

.page-detail #content,
.page-info #content {
  width: 1280px;
  margin: 0 auto;
  padding: 24px 60px;
}

.page-detail #content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cont_l {
  width: 844px;
  min-width: 0;
}

.game_detail {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.game_detail .game_cover {
  margin-right: 12px;
  flex: 0 0 auto;
}

.game_detail .game_cover img {
  height: 96px;
  width: auto;
  max-width: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #eeeeee;
}

.game_detail .game_r h3 {
  font-size: 20px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ad_box {
  margin-bottom: 16px;
}

.ad_box h3 {
  margin-bottom: 4px;
  font-family: r, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #999999;
  text-align: center;
}

.ad_box .ad_cont {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ad_box .ad_cont > div {
  width: 100%;
  max-width: 840px;
  height: 100%;
  margin: 0 auto;
}

.jies {
  display: block;
  font-family: r, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 14px;
  color: #999999;
  margin-bottom: 7px;
}

.xing {
  display: flex;
  align-items: center;
  gap: 2px;
}

.xing span {
  font-family: r, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 14px;
  color: #666666;
}

.xing img,
.star {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.star {
  color: #f5b400;
  font-size: 16px;
  line-height: 16px;
}

.table,
.fwb,
.btns,
.comment,
.lb,
.related {
  margin-bottom: 16px;
}

.table h3,
.fwb h3,
.comment h3,
.related h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #333333;
}

.tab_box .tr {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tab_box .tr:last-child {
  margin-bottom: 0;
}

.td1 {
  width: 123px;
  flex: 0 0 123px;
  font-family: r, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  color: #999999;
}

.td2 {
  font-size: 16px;
  font-weight: 500;
  color: #666666;
}

.fwb_text p {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  line-height: 21px;
  margin-bottom: 8px;
}

.fwb_text p:last-child {
  margin-bottom: 0;
}

.fwb_text strong {
  font-weight: 700;
  color: #333333;
}

.btns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.btns a {
  flex: 1;
  height: 48px;
  background: #fcdd6d;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.btns a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 8px;
}

.btns a span {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}

.btns a:hover span {
  text-decoration: underline;
}

.comment {
  margin-bottom: 24px;
}

.comment textarea,
.comment .tj input,
.page-info form input,
.page-info form textarea {
  border: 1px solid #eeeeee;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

.comment textarea::placeholder,
.comment .tj input::placeholder,
.page-info form input::placeholder,
.page-info form textarea::placeholder {
  color: #999999;
}

.comment textarea {
  width: 100%;
  height: 100px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
}

.comment .tj {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f9f9f9;
  margin-bottom: 16px;
}

.comment .tj input {
  width: calc(100% - 187px);
  height: 51px;
  padding: 0 16px;
  background: #ffffff;
}

.comment .tj button,
.page-info form button {
  background: #fcdd6d;
  border-radius: 8px;
  font-weight: 500;
  color: #333333;
}

.comment .tj button {
  width: 177px;
  height: 51px;
  font-size: 14px;
  flex: 0 0 auto;
}

.comment .tj button:hover,
.page-info form button:hover,
.btns a:hover {
  filter: brightness(0.97);
}

.reply_item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f9f9f9;
  margin-bottom: 16px;
}

.reply_img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fcdd6d;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex: 0 0 auto;
}

.reply_r {
  width: calc(100% - 58px);
  min-width: 0;
}

.reply_r .name {
  font-size: 14px;
  color: #999999;
  line-height: 16px;
  margin-bottom: 4px;
}

.reply_r .talk {
  font-size: 14px;
  color: #666666;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.lb {
  position: relative;
}

.swiper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.swiper::-webkit-scrollbar {
  display: none;
}

.swiper-wrapper {
  display: flex;
  gap: 9px;
  width: max-content;
}

.swiper-slide img {
  height: 268px;
  width: auto;
  max-width: none;
  border-radius: 16px;
  object-fit: cover;
  background: #eeeeee;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: none;
  z-index: 2;
}

.swiper-button-prev {
  left: 0;
  background-image: url("../images/lb-l.png");
}

.swiper-button-next {
  right: 0;
  background-image: url("../images/lb-r.png");
}

.cont_r {
  width: 300px;
  background: #ffffff;
  border-radius: 8px;
  flex: 0 0 300px;
}

.cont_r .r_title {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  padding: 16px;
  border-bottom: 1px solid #f8f8f8;
}

.cont_r .game_list {
  display: flex;
  flex-direction: column;
}

.cont_r a.game_item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f8f8f8;
  min-width: 0;
}

.cont_r a.game_item:last-child {
  border-bottom: none;
}

.cont_r .game_cover {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-right: 8px;
  flex: 0 0 auto;
  background: #eeeeee;
}

.cont_r .game_r {
  width: calc(100% - 72px);
  min-width: 0;
}

.cont_r .game_r h3 {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cont_r .jies {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.cont_r a.game_item:hover .game_cover {
  border-color: #ff1f4f;
}

.cont_r a.game_item:hover h3 {
  color: #ff1f4f;
  text-decoration: underline;
}

.page-info .cont {
  width: 100%;
  padding: 16px 16px 4px;
  background: #ffffff;
  border-radius: 8px;
}

.page-info .cont h2 {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 16px;
}

.page-info .cont p {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  line-height: 21px;
  margin-bottom: 12px;
}

.page-info .cont a {
  color: #333333;
  text-decoration: underline;
}

.page-info form input,
.page-info form textarea {
  width: 100%;
  background: #f6f6f6;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  margin-bottom: 16px;
}

.page-info form input {
  height: 56px;
  padding: 0 16px;
}

.page-info form textarea {
  height: 120px;
  padding: 16px;
}

.page-info form button {
  width: 100%;
  height: 64px;
  font-size: 20px;
  margin-bottom: 12px;
}

.form-note {
  font-size: 14px;
  color: #333333;
  margin-bottom: 12px;
}

@media screen and (max-width: 1300px) {
  header .head,
  footer .foot,
  .page-detail #content,
  .page-info #content {
    width: 100%;
  }

  header .head nav a {
    margin-right: 20px;
  }

  .page-list #content {
    padding: 16px;
  }

  .page-list .game_list {
    grid-template-columns: repeat(8, minmax(50px, 1fr));
  }

  .page-info #content,
  .page-detail #content {
    padding: 16px;
  }
}

@media screen and (max-width: 1200px) {
  .page-list .game_list {
    grid-template-columns: repeat(7, minmax(50px, 1fr));
  }

  .cont_r {
    display: none;
  }

  .cont_l {
    width: 100%;
  }
}

@media screen and (max-width: 1000px) {
  .page-list .game_list {
    grid-template-columns: repeat(5, minmax(50px, 1fr));
  }

  footer .foot {
    flex-direction: column;
  }

  footer .foot nav {
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  footer .foot nav a {
    margin: 0 10px 0 0;
  }
}

@media screen and (max-width: 768px) {
  header .head {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    flex-wrap: wrap;
  }

  header .head .logo {
    margin-right: 16px;
  }

  header .head .logo img,
  footer .foot .logo_foot img {
    width: 140px;
    height: auto;
  }

  .page-list .game_list {
    grid-template-columns: repeat(3, minmax(50px, 1fr));
  }

  .related .game_list {
    grid-template-columns: repeat(4, minmax(50px, 1fr));
  }

  footer .foot nav {
    flex-direction: column;
  }

  footer .foot nav a {
    margin: 0 0 8px 0;
  }

  .comment .tj {
    flex-direction: column;
  }

  .comment .tj input,
  .comment .tj button {
    width: 100%;
  }
}

.page-404 #content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.not-found {
  width: 100%;
  max-width: 520px;
  padding: 40px 32px 32px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.not-found p.not-found-code {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 20px 8px;
  background: #fcdd6d;
  border-radius: 8px;
  font-family: m, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 64px;
  line-height: 1.1;
  font-weight: 500;
  color: #333333;
  letter-spacing: 2px;
}

.not-found h1 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 500;
  color: #333333;
}

.not-found p {
  font-family: r, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  line-height: 21px;
}

.not-found .lead {
  margin-bottom: 24px;
}

.not-found .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 48px;
  padding: 0 24px;
  background: #fcdd6d;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}

.not-found .home-btn:hover {
  filter: brightness(0.97);
  text-decoration: underline;
}

.not-found-links {
  margin-top: 20px;
}

.not-found-links a {
  margin: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  text-decoration: underline;
}

.not-found-links a:hover {
  color: #ff1f4f;
}

@media screen and (max-width: 500px) {
  .related .game_list {
    grid-template-columns: repeat(3, minmax(50px, 1fr));
  }

  .btns {
    flex-direction: column;
  }

  .btns a {
    width: 100%;
    flex: none;
  }

  .td1 {
    width: 96px;
    flex-basis: 96px;
  }

  .ad_box .ad_cont,
  .ad_box .ad_cont > div {
    min-height: 100%;
  }

  .not-found {
    padding: 32px 20px 24px;
  }

  .not-found p.not-found-code {
    font-size: 48px;
  }

  .not-found .home-btn {
    width: 100%;
    min-width: 0;
  }
}
