/* Reset */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: YakuHanJP, "Noto Sans JP", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  background-color: #fff;
  width: 100%;
  max-width: 480px;
  padding-bottom: 80px;
}
.pb-0 {
  padding-bottom: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  position: relative;
  padding-bottom: 16px;
  text-align: center;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 2px;
  background-color: #00a39d;
}

/* First View */
.fv {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.fv__image {
  flex-grow: 1;
  display: flex;
}

/* Top Button */
.top-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto 0;
  background-color: #00a39d;
  color: #fff;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  max-width: 240px;
}

/* Tab Navigation */
.tab {
  display: flex;
  width: 100%;
  margin-top: 40px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.tab__button {
  flex: 1;
  padding: 16px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #999;
  border-radius: 10px 10px 0 0;
  border: 1px solid #EAEAEA;
  border-bottom: none;
  position: relative;
}

.tab__button[data-tab="prizes"] {
  background-color: #edf5f4;
}

.tab__button[data-tab="museums"] {
  background-color: #fcf7ed;
}

.tab__button--active {
  color: #000;
}

.tab__button--active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: inherit;
  z-index: 1;
}

/* Tab Contents */
.tab-contents {
  width: 100%;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.tab-content {
  display: none;
  padding: 24px 16px;
  border: 1px solid #EAEAEA;
}

.tab-content--active {
  display: block;
}

#prizes.tab-content--active {
  background-color: #edf5f4;
}

#museums.tab-content--active {
  background-color: #fcf7ed;
}

/* Filter */
.filter {
  margin-bottom: 24px;
}

.filter__select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 16px;
  background-color: #fff;
  background-image: url('../images/allow_down.svg');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.note {
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* List Items */
.list-item {
  margin: 0 auto 30px;
  border-bottom: 1px solid #ddd;
}

.list-item__image {
  width: 100%;
  display: block;
  text-decoration: none;
  text-align: center;
}

.list-item__content {
  padding: 16px;
  position: relative;
}

.list-item__title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.list-item__title::before {
  content: "";
  height: 20px;
  width: 4px;
  background-color: #009f76;
  border-radius: 100px;
  display: inline-block;
  margin-right: 8px;
}

.list-item__description {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

.list-item__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-icon {
  width: auto;
  height: 23px;
  min-height: 23px;
  object-fit: contain;
}
.category-icon img {
  height: 23px;
  min-height: 23px;
}

.list-item__link-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 6px;
}

.list-item__link {
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #00a39d;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 400;
}

.list-item__link img {
  width: 16px;
  height: 16px;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin-top: 40px;
}
.nav-buttons__inner {
  margin: 0 auto;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.nav-button {
  width: 104px;
  height: 104px;
  aspect-ratio: 1;
  background-color: #00a39d;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: background-color 0.3s ease;
}
.nav-button:hover {
  background-color: #008783;
}

.nav-button::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  border: 2.5px solid #3ebcb8;
  border-radius: 16px;
  pointer-events: none;
}

.nav-button__text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.about {
  margin-top: 40px;
  padding: 0 24px;
}
.about__content {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__text {
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.sub__button {
  display: block;
  text-align: center;
  width: 210px;
  padding: 14px 32px;
  background-color: #c68431;
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin: auto;
}

.sub__button:hover {
  background-color: #b6792d;
}

.how-to,
.prizes,
.museums {
  background-color: #edf5f4;
  margin-top: 40px;
}



.how-to .inner,
.prizes .inner,
.museums .inner {
  padding: 32px 24px;
}

.step {
  margin-top: 35px;
}

.step h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #fff;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  width: 100%;
}

.step h3 span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #00a39d;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.step p {
  font-size: 14px;
  margin-top: 18px;
  line-height: 1.6;
}
.step a {
  margin: 22px auto 0;
}
.step .link {
  display: block;
  margin: 16px auto 0;
  text-align: center;
}
.step .link a {
  text-align: center;
  text-decoration: underline;
  display: inline-block;
  color: #00a39d;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.step .image-cover {
  margin: 16px auto;
  max-width: 130px;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #fff;
  border: 1px solid #8EBBBA;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s, visibility 0.3s;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* 注意事項 */
.notes {
  margin-top: 40px;
  padding: 0 24px;
}

.notes__list {
  margin-top: 24px;
}

.notes__list li {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 10px;
  text-indent: -18px;
  margin-bottom: 4px;
}

.notes__list li::before {
  content: "・";
  margin-right: 8px;
}

.notes__list li:last-child {
  margin-bottom: 0;
}

.prizes__image,
.museums__image {
  margin-top: 30px;
}
.prizes__text,
.museums__text {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.prizes .sub__button,
.museums .sub__button {
  margin-top: 24px;
}

.museums {
  margin-top: 0;
  padding-bottom: 60px;
  background: #fff;
}

.list-item__credit {
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 3px;
}

/* Loading Animation */
.loading {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.loading.visible {
  display: flex;
}

.loading__dots {
  display: flex;
  gap: 8px;
}

.loading__dot {
  width: 8px;
  height: 8px;
  background-color: #00a39d;
  border-radius: 50%;
  animation: loading 1.4s infinite;
}

.loading__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading__dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading {
  0%,
  100% {
    transform: scale(0.5);
    opacity: 0.3;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Footer */
div#footer-template {
  width: 100%;
}
.footer {
  background-color: #00a39d;
  color: #fff;
  padding: 40px 0;
  width: 100%;
  max-width: 480px;
  margin: auto;
}

.footer__content {
  padding: 0 24px;
  max-width: 480px;
  margin: 0 auto;
}

.footer__title {
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}

.footer__organizer {
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer__contact {
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer__logo {
  max-width: 106px;
}

.footer__logo img {
  width: 100%;
  height: auto;
}

.footer-link {
  margin-bottom: 8px;
  text-decoration: underline;
}
