/* ------------------------------
   2025 Minimal Modern Reset
------------------------------ */

/* すべての要素にボックスサイズの統一 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* マージン・パディング初期化 */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, button {
  margin: 0;
  padding: 0;
  font-family: "M PLUS 1p", sans-serif;
}

/* リストのデフォルトスタイルを削除 */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* aタグ：装飾リセット */
a {
  text-decoration: none;
  color: inherit;
}

/* ボタンやinputのfont継承とborderリセット */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
  font-family: "M PLUS 1p", sans-serif;

}

/* ボタン系のクリック範囲対策 */
button {
  cursor: pointer;
  background-color: transparent;
}

/* 画像はブロック要素として扱い、親要素に合わせて表示 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* テーブル：セル間のスペースをなくす */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* HTML5セクション要素のデフォルトdisplayを指定 */
main, article, aside, footer, header, nav, section, figure {
  display: block;
}

/* body全体に基本のフォントと背景色 */
body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background-color: #FAFAFA;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  overflow: hidden;
  background: black;
  font-family: sans-serif;
}

#uiArea {
  position: fixed;
  z-index: 100;
  transition: opacity 0.3s ease;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 50px;
}

img.logo{
  width:350px;
  object-fit: contain;
}

.flexbox{
  display: flex;
  justify-content: center;
  gap:30px;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

button.ui-button{
  width:130px;
  text-align: center;
  font-size: 18px;
  border-radius: 50px;
  background: #FAFAFA;
  padding: 5px;
}

button#startBtn:disabled{
  background-color: #9ECCFE;
  color: #FAFAFA;
}

@media screen and (max-width:768px) {
  button.ui-button{

  }
}


#visualArea {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.word {
  position: absolute;
  font-size: 2em;
  animation: fly 3s ease-out forwards;
  font-family: "M PLUS 1p", sans-serif;

}

@keyframes fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(200px - 400px * random()), calc(200px - 400px * random())) scale(2);
    opacity: 0;
  }
}
.word::after {
  content: "|";
  animation: blink 1s step-start infinite;
  margin-left: 4px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hidden-ui {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: none;
}

button.modal-button{
  color: #FAFAFA;
  text-decoration: underline;
}


.modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  inset: 0;
}

.modal-content {
  background-color: #FAFAFA;
  padding: 40px;
  width: 90%;
  max-width: 60vw;
  max-height: 80vh; /* ← スマホでも表示領域に収まる */
  border-radius: 8px;
  color: #000;
  overflow: hidden; /* ← 角丸を守るために必要 */
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%; /* ← right: 50% ではなく left: 50% が正しい */
  transform: translate(-50%, -50%);
}

.modal-body{
  overflow-y: auto;
  flex: 1;

  /* スクロールバー非表示 */
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE & Edge旧 */

  /* WebKit系（Chrome, Safari, Edge新） */

}

.modal-body p{
  font-size:14px;
}

.modal-body h2{
  font-size: 20px;
  margin-bottom: 20px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

a#openTermsBtnContent{
  text-decoration: underline;
  font-weight: 600;
}

.modal-body::-webkit-scrollbar {
  display: none;                   /* Chromeなど */
}


.sns_container{
  display: flex;
  gap:10px;
  margin: 10px 0;
}

.sns_container img{
  width:35px;
  height: 35px;  
}

hr{
  margin: 20px 0;
}

@media screen and (max-width:768px) {
  .modal-content{
    max-width: none;
    padding: 20px;
  }
}

.sp-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10001;
  padding: 10px;
  border: none;
  background: none;
  display: none;
  background-color: #FAFAFA;
  border-radius: 10px;
}

/* SP表示時のみ表示 */
@media (max-width: 768px) {
  .sp-toggle-btn {
    display: block;
  }
}

/* アイコンにフェード効果 */
#toggleIcon {
  width: 32px;
  height: 32px;
  transition: opacity 0.3s ease;
}


footer{
  color: #FAFAFA;
  font-size: 14px;
  width: 100%;
  text-align: center;
  padding: 20px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10000;
}
footer .flexbox{
  margin-bottom: 10px;
}