@charset "UTF-8";
html,
body {
  font-size: 62.5%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.penlight {
  position: relative;
  width: 100%;
  height: 100%;
  --penlight-color: #0b3190;
  /* 初期色 */
  background: linear-gradient(to bottom, var(--penlight-color, #0b3190) 70%, transparent 100%), url("../images/bg.jpeg");
  background-position: 50% 103%;
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-color 0.4s ease-in-out;
}
.penlight::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, var(--penlight-color, #0b3190) 0%, transparent 100%);
  pointer-events: none;
}
.penlight::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  background-image: url("../images/logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  /* 初期は非表示 */
}

/* 初回UIボタンクリック後にロゴを表示 */
.penlight.show-logo::after {
  opacity: 0.2;
}

.start-ui {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  z-index: 10;
}
.start-ui button {
  position: relative;
  font-size: 1.8rem;
  font-family: "Mochiy Pop One", sans-serif;
  letter-spacing: 0.1rem;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
  border-radius: 50px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1.2rem;
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(5px);
  /* 光のアニメーション用 */
}
.start-ui button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: shine 1.5s linear infinite;
}
@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}
.start-ui p {
  font-family: "Noto Sans JP";
  font-weight: bold;
  letter-spacing: 0.08rem;
  color: #fff;
  font-size: 1.4rem;
  text-align: center;
}

.emoji {
  position: absolute;
  font-size: 3.2rem;
  pointer-events: none;
  animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}
.nav-ui {
  display: none;
  /* 初期は非表示 */
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  flex-flow: column;
  gap: 1.6rem;
  width: 100%;
  z-index: 20;
}
.nav-ui p {
  font-family: "Noto Sans JP";
  font-weight: bold;
  letter-spacing: 0.08rem;
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.nav-ui p::before, .nav-ui p::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
}
.nav-ui p::before {
  border-right: 0.8rem solid #fff;
}
.nav-ui p::after {
  border-left: 0.8rem solid #fff;
}
.nav-ui .dot-nav {
  display: flex;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 30px;
  width: fit-content;
  padding: 1.6rem 3.2rem;
  margin: 0 auto;
  gap: 0.8rem;
}
.nav-ui .dot-nav .dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transition: background-color 0.4s, transform 0.4s;
}
.nav-ui .dot-nav .dot.active {
  transform: scale(1.3);
}

/* 左下固定ボタン */
.fixed-button {
  display: none;
  position: fixed;
  bottom: 13rem;
  left: 3rem;
  width: 120px;
  height: 120px;
  border: none;
  margin: 0;
  padding: 0;
  -webkit-mask-image: url("../images/button.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 10;
}
.fixed-button .fixed-button-icon {
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* === 非モーダルボトムシート === */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  z-index: 30;
  display: none;
  /* 初期は非表示 */
  justify-content: center;
}

.sheet-content {
  color: #313131;
  background-color: #fff;
  padding: 3.2rem 1.6rem;
  border-radius: 16px 16px 0 0;
  width: 100%;
  min-height: 30vh;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
  position: relative;
}
.sheet-content h2 {
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
  text-align: center;
  margin: 3.2rem 0 0;
}
.sheet-content p {
  font-family: "Noto Sans JP";
  font-size: 1.4rem;
  letter-spacing: 0.08rem;
  line-height: 1.8;
  margin: 2.4rem 0 0;
}

/* 表示アニメーション */
.bottom-sheet.show .sheet-content {
  transform: translateY(0);
}

/* 閉じるボタン */
.sheet-content .close-button {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-size: 3.2rem;
  color: #313131;
  cursor: pointer;
}

/* ボトムシート内アイコン */
.emoji-list {
  text-align: center;
  margin-top: 2.4rem;
}

.emoji-list img {
  width: 8rem;
  height: 8rem;
  margin: 0 1.6rem;
}

/* 浮かぶアニメーション用 */
.emoji-float {
  position: absolute;
  width: 8rem;
  height: 8rem;
  pointer-events: none;
  animation: floatUp 2s ease-out forwards;
}

/* プルプル（拡大→横揺れ→縮小）アニメーション */
@keyframes popShakeLoop {
  0% {
    transform: scale(1) translateX(0);
  }
  10% {
    transform: scale(1.2) translateX(0);
  }
  20% {
    transform: scale(1.2) translateX(-4px);
  }
  30% {
    transform: scale(1.2) translateX(4px);
  }
  40% {
    transform: scale(1.2) translateX(-3px);
  }
  50% {
    transform: scale(1.2) translateX(3px);
  }
  60% {
    transform: scale(1.2) translateX(0);
  }
  100% {
    transform: scale(1) translateX(0);
  }
}
/* アニメーション用クラス */
.fixed-button.popShake {
  animation: popShakeLoop 0.8s ease-in-out forwards;
}

/* ナビゲーション・左下ボタン用のトランジション */
.nav-ui {
  transition: transform 0.4s ease-out;
}

.link {
  display: flex;
  justify-content: center;
}

a.link__txt {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: "Noto Sans JP";
  color: #313131;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  margin: 2.4rem auto 0;
}
a.link__txt::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background-color: #6b6b6b;
}
a.link__txt::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 1.2rem;
  color: #6b6b6b;
  transform: rotate(-35deg);
}