:root {
  --main-color: #5738ab;
  --accent-color: #8a2be2;
  --text-light: #e4e1ed;
  --gray: #5c5c5c;
  --bg-light: #d2d4d9;
  --base-font-size: 1rem;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.6;
}

/* =====================
   オープニングアニメーション
===================== */

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100svw;
  height: 100svh;
  z-index: 10;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 1.5s 2.5s forwards;
  z-index: 200;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.loading__logo {
  opacity: 0;
  animation: logo_fade 2s 0.5s forwards;
  width: 400px;
}

@keyframes logo_fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  60% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
  }
}

/* =====================
   ヘッダー
===================== */
.head {
  font-size: 15px;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  background-color: var(--main-color);
  opacity: 0.95;
  z-index: 100;
}

.head h1 {
  font-size: 1.2rem;
  margin: 0;
}

.fly {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.head-a {
  color: var(--text-light);
  text-decoration: none;
}

/* =====================
   タイトルセクション
===================== */
#taitol {
  color: var(--accent-color);
  background: url(裏表紙.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
  z-index: 100;
}

/* タブレット向け */
@media (min-width: 768px) {
  #taitol {
    background-image: url("表紙全体bg.jpg");
  }
}

/* デスクトップ向け */
@media (min-width: 1024px) {
  #taitol {
    background-image: url("表紙全体bg.jpg");
  }
}
.taitol-logo {
  width: 60vw;
  max-width: 60vh;
  height: auto;
}

.fade-text {
  line-height: 1.4;
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 300% 300%;
}

.fade-text.to__top {
  background-image: linear-gradient(
    to top,
    #fff 30%,
    rgba(255, 255, 255, 0) 60%
  );
  background-position: top 100% center;
  transform: translate(0, -200px);
  -webkit-animation: toTop var(--duration, 2.4s) var(--ease) var(--delay, 0.6s)
    forwards;
  animation: toTop var(--duration, 2.4s) var(--ease) var(--delay, 0.6s) forwards;
}

@keyframes toTop {
  100% {
    transform: translate(0, 0);
    background-position: top 0% center;
  }
}
.gaiyou {
  color: var(--main-color);
  font-size: 2rem;
  margin-top: 1em;
  justify-content: center;
  align-items: center;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
}

.br-sp {
  display: none;
}

@media (max-width: 600px) {
  .br-sp {
    display: block;
  }
}

/* =====================
   開催日時
===================== */
#nitiji {
  padding: 2em 1em;
  font-size: 20px;
}

.nitiji-gaiyo {
  list-style: none;
  padding: 0;
}

.nitiji1,
.nitiji2 {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.5em 0;
}

.niti,
.doyo {
  width: 1.25em;
  height: 1.25em;
}

.before-order {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.old-problem {
  color: #5738ab;
}
/* =====================
   アクセス
===================== */
#akusesu {
  padding: 2em 1em;
}

#akusesu-content {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}

.akusesu-gaiyo {
  list-style: none;
  padding: 0;
  margin: 0.5em 0;
}

.akusesu-gaiyo li {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.tyuui {
  border: 2px solid gray;
  border-radius: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em;
  margin: 1em 0;
  font-size: 0.9rem;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.map {
  flex: 1 1 300px;
  min-height: 300px;
  border: none;
  max-width: 100%;
}
.yama,
.mita {
  width: 3em;
  height: 3em;
}

/* =====================
   Hongodori
===================== */
#hongodori {
  padding: 2em 1em;
}

#hongodori-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hongodori-rogo {
  max-width: 300px;
  width: 80%;
  margin: 0em 0em;
  display: block;
  text-align: center;
}

.hongodori-url {
  display: inline-block;
  margin: 1em 0;
  padding: 0.5em 1.2em;
  font-size: 1.2rem;
  color: var(--text-light);
  background-color: var(--main-color);
  border-radius: 0.3em;
}

.ryuui {
  border: #5c5c5c solid 1px;
  padding: 1em;
  margin: 1em 0;
  border-radius: 0.5em;
  width: fit-content;
}

.hongodori-gazo {
  margin-top: 1em;
  margin-bottom: 3em;
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  height: 300px;
}

.hongodori-gazo img {
  position: absolute;
}

.image {
  background-size: cover;
  background-position: center center;
  animation: image-switch-animation 6s infinite;

  margin-top: 1.5em;
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;

  position: relative;
  width: 175px;
  max-width: 30%;
  height: auto;
  border-radius: 0.3em;
  object-fit: cover;
}

.image:nth-of-type(1) {
  animation-delay: 0s;
}
.image:nth-of-type(2) {
  animation-delay: 2s;
}
.image:nth-of-type(3) {
  animation-delay: 4s;
}

@keyframes image-switch-animation {
  0%,
  63%,
  100% {
    opacity: 0;
  }
  20%,
  33% {
    opacity: 1;
  }
}
/* =====================
  timer
===================== */

#counter_wrap {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  text-align: center;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  font-size: 150%;
}

#days,
#hours,
#minutes,
#seconds {
  font-family: "Josefin Sans", sans-serif;
  color: #8a2be2;
  max-width: 100%;
  width: 100%;
  font-size: 3em;
  overflow: hidden;
  line-height: 1.5em;
  font-weight: bold;
}
/* =====================
   フッター
===================== */
footer {
  margin-top: 2em;
  padding: 2em 1em;
  background-color: var(--bg-light);
  text-align: center;
  display: flex;
  justify-content: space-between;
}

.logo {
  max-width: 200px;
  width: 40%;
  height: auto;
  margin: 1em 0;
}

.footer-a img {
  display: inline-block;
  height: 1em;
  width: 1em;
  margin: 5rem;
}

#xcom {
  padding: 10px;
  align-items: center;
}

#home {
  height: 80px;
  width: 80px;
}

#github {
  height: 80px;
  width: 80px;
}

/* =====================
   メディアクエリ
===================== */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  .head {
    flex-direction: column;
    align-items: flex-start;
  }
  .fly {
    margin-top: 0.5em;
    justify-content: flex-start;
    gap: 0.5em;
  }
  #akusesu-content {
    flex-direction: column;
  }
  .hongodori-gazo img {
    max-width: 90%;
  }
}
