@charset "UTF-8";
@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

/* --- 共通スタイル --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.wrapper {
  width: 100%;
  position: relative;
  background-color: #fff;
}

#contents_wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background-color: #fff;
}

footer, section {
  text-align: center;
}

img {
  display: block !important;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

h2 {
  font-size: 1.5rem;
  margin-top: 20px;
}

.sp_container {
  display: none;
  position: relative;
  width: 100vw;
  max-width: 750px;
  height: 470vw;
  margin: 0 auto;
  background-image: url('../img/pattern_blue.png');
  background-repeat: repeat;
  background-size: 20vw;
  overflow: hidden;
}

.tb_container {
  display: none;
  width: 100vw;
  max-width: 768px;
  aspect-ratio: 768 / 670;
  margin: 0 auto;
  background-image: url('../img/pattern_blue.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 80px;
  overflow: hidden;
  position: relative;
}

.pc_container {
  display: none;
  width: 100vw;
  max-width: 1080px;
  aspect-ratio: 1080 / 800;
  margin: 0 auto;
  padding-bottom: 20px;
  background-image: url('../img/pattern_blue.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 80px;
  overflow: hidden;
  position: relative;
}

.fadein-item {
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s ease;
  position: absolute;
  height: auto;
  display: block;
}

.fadein-item.from-bottom {
  transform: translateY(15px);
}

.fadein-item.from-bottom.visible {
  opacity: 1;
  transform: translateY(0);
}

.fadein-item.no-move {
  transform: none;
}

.fadein-item.no-move.visible {
  opacity: 1;
}

.city {
  transform: translateY(-30px);
  align-items: center;
}

.city-overlay {
  left: 0;
  width: 100%;
  z-index: 10;
  height: auto;
}

.comment {
  padding: 2% 8% 8% ;
  text-align: justify;
  font-size: 1.0rem;
  line-height: 2.0rem;
}

.concept {
  padding: 10% 8% 2%;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 2.0rem;
}

.yamahoko_wrap {
  text-align: center;
  padding: 10% 8%;
  background-image: url('../img/pattern_red.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 20vw;
  overflow: hidden;
  position: relative;
}

.yamahoko_wrap img {
  height: 350px;
  object-fit: contain;
}

.sponsor_wrap {
  text-align: center;
  padding-bottom: 20px;
  background-image: url('../img/pattern_grey.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 20vw;
}

.list {
  padding: 0 20px;
  margin: 0 auto;
}

.random_box {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  justify-content: flex-start;
  margin: 0 auto;
}

.random_item {
  margin-top: 15px;
}

.sponsor {
  margin-top: 60px;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 130%;
}

.operation {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 130%;
}

.caption {
  margin-top: 30px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}


/* ------------ スマホ（539px以下）：2列 --------------- */
@media screen and (max-width: 539px) {
  .sp_container {
    display: block !important;
  }
  .tb_container {
    display: none !important;
  }
  .pc_container {
    display: none !important;
  }
  .list {
    padding: 0;
    width: 96%;
  }
  .random_box div {
    width: 48%;
  }
}

/* --------- タブレット（540px〜768px）：3列 --------- */
@media screen and (min-width: 540px) and (max-width: 959px) {
  .tb_container {
    display: block !important;
  }
  .pc_container {
    display: none !important;
  }
  .sp_container {
    display: none !important;
  }
 
  h2, .sponsor {
    font-size: 1.8rem;
  }

.city {
  padding: 2% 0%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  transform: translateY(0px); /* すでに入っているスタイル */
}

.city-overlay {
  width: 40%;
  height: auto;
  z-index: 10;
}

.comment {
  padding: 0 1.5rem;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.2rem;
    height: auto;
}

.concept {
  padding: 4% 30% 2%;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 2.0rem;
}

.yamahoko_wrap {
  text-align: center;
  padding: 4% 2%;
  background-image: url('../img/pattern_red.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 80px;
  overflow: hidden;
  position: relative;
}

.yamahoko_wrap img {
  height: 350px;
  object-fit: contain;
}

.sponsor_wrap {
  text-align: center;
  padding-bottom: 20px;
  background-image: url('../img/pattern_grey.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 80px;
}

.list {
  padding: 0 20px;
  margin: 0 auto;
}

.random_box {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  justify-content: flex-start;
  margin: 0 auto;
}

.random_box div {
  width: 31.5%;
}

.random_item {
margin-top: 15px;
}

.sponsor {
  margin-top: 60px;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 130%;
}

.operation {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 130%;
}

.caption {
  margin-top: 30px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}
}


/* ------------ PC（769px以上）：4列 ------------ */
@media screen and (min-width: 769px) {
  .pc_container {
    display: block !important;
  }
  .tb_container {
    display: none !important;
  }
  .sp_container {
    display: none !important;
  }
  .wrapper {
    background-image: url('../img/washi_pattern.png');
    background-repeat: repeat;
    background-position: top left;
    background-size: 20%;
    background-color: transparent;
  }
  .list {
    padding: 0;
    width: 880px;
  }
  .random_box div {
    width: 23%;
  }
  h2, .sponsor {
    font-size: 1.8rem;
  }
  .random_item {
    margin-top: 12px;
  }

.city {
  padding: 2% 0%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  transform: translateY(0px); /* すでに入っているスタイル */
}

.city-overlay {
  width: 40%;
  height: auto;
  z-index: 10;
}

.comment {
  padding: 0 1.5rem;
  text-align: left;
  font-size: 1.0rem;
  line-height: 1.8rem;
    height: auto;
}

.concept {
  padding: 4% 30% 2%;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 2.0rem;
}

.yamahoko_wrap {
  text-align: center;
  padding: 4% 2%;
  background-image: url('../img/pattern_red.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 80px;
  overflow: hidden;
  position: relative;
}

.yamahoko_wrap img {
  height: 350px;
  object-fit: contain;
}

.sponsor_wrap {
  text-align: center;
  padding-bottom: 20px;
  background-image: url('../img/pattern_grey.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 80px;
}

.list {
  padding: 0 20px;
  margin: 0 auto;
}

.random_box {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  justify-content: flex-start;
  margin: 0 auto;
}

.random_item {
  margin-top: 15px;
}

.sponsor {
  margin-top: 60px;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 130%;
}

.operation {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 130%;
}

.caption {
  margin-top: 30px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}
}