/* html {
  scroll-padding-top: 21.5vw;
} */

body {
  /* padding: 20px; */
  scroll-behavior: smooth;
  font-size: 13px;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
}

a:hover {
  color: inherit;
}

header {
  position: fixed;
  background: #fff;
  width: 100%;
  /* height: 21.5vw; */
  padding: 15px;
  top: 0;
}

.container {
  max-width: 1254px;
  margin: auto;
  padding: 21.5vw 10px 5vw;
}

.external-banner-detail .container {
  max-width: unset;
}

.page-title {
  margin-bottom: 0;
  position: relative;
  margin: 0;
}

.page-title span {
  position: absolute;
  top: 1vw;
  left: calc(19vw);
  font-size: 3vw;
}

.page-title.isScrolled span {
  left: calc(4vw);
  font-size: 1.3vw;
}

.page-title img {
  max-width: 50vw;
}

@media (min-width: 768px) {
  .page-title span {
    font-size: 20px;
    left: 160px;
    top: 1vw;
  }
}

.menu {
  position: fixed;
  top: 4px;
  right: 10px;
  font-size: 13px;
  padding: 0.7rem;
  text-align: center;
  background-color: #000000;
  color: #ffffff;
  transition: 0.3s all;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
}

.category-nav {
  /* display: none; */
  position: fixed;
  top: 0;
  right: -30%;
  width: 30%;
  background: #d4d4d4e3;
  height: 100%;
  padding: 60px 20px 10px;
  line-height: 2;
  opacity: 0;
  transition: 0.4s all;
}

@media (max-width: 767.98px) {
  .category-nav {
    right: -70%;
    width: 70%;
  }
}

.category-nav ul {
  padding-left: 5px;
}

.category-nav.open {
  opacity: 1;
  right: 0;
}

.affiliate-banner-list {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
}

.external-banner-detail .affiliate-banner-list {
  align-items: flex-start;
}

.affiliate-banner-item {
  border: 1px solid #ddd;
  padding: 10px;
  width: calc((100% - 40px) / 3);
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .affiliate-banner-item {
    width: calc((100% - 20px) / 2);
  }
}

@media (min-width: 1200px) {
  .affiliate-banner-item {
    width: calc((100% - 100px) / 4);
  }
}

.external-banner-detail .affiliate-banner-item {
  width: auto;
}

.affiliate-banner-item.attention {
  width: 100%;
  background-color: #eee;
  font-size: 13px;
}

.affiliate-banner-item[data-ins-id^="s"][data-width] {
  /* display: none; */
}

.affiliate-banner-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  display: block;
  margin-bottom: 12px;
  box-shadow: 0px 5px 14px 1px rgb(0 0 0 / 0.3);
}

.affiliate-banner-item img[border="0"][width="1"][height="1"] {
  display: none;
}

.affiliate-banner-item span {
  display: block;
  font-size: 13px;
  color: #555;
}

.affiliate-banner-item .affi_size_link {
  display: block;
  font-size: 13px;
  color: #555;
}

.page_top {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-weight: bold;
  padding: 0.7em;
  text-align: center;
  background-color: #000000;
  color: #ffffff;
  transition: 0.3s all;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1;
}

.back-button {
  font-weight: bold;
  padding: 0.7em;
  text-align: center;
  background-color: #eee;
  color: #666;
  transition: 0.3s all;
  border-radius: 8px;
  text-decoration: none;
}

/* マウスオーバー時 */
.page_top:hover {
  background-color: #eee;
  color: rgb(156, 156, 156, 0.8);
}