@import url('layout.css');

/* ================================
   トップページ専用
================================ */

.index-section {
  min-height: 100%;
  width: 100%;
  display: flex;
}

.welcome-section {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: var(--spacing);
  margin: var(--spacing) 5%;
  text-align: center;
  border: 1px solid #e0e0e0;
  width: 60%;
  height: auto;
  position: relative;
  z-index: 2;
  transform: translateX(15%);
}

.index-section .menu-section .toptext {
  margin: 0;
}

.titlelogo {
  object-fit: contain;
}

.index-section .menu-section {
  height: auto;
  width: 60%;
  position: relative;
  z-index: 1;
  transform: translateX(-15%);
}

.index-section .menuButtons {
  margin: 10px auto;
}

.index-section .menuButtons .btn {
  width: 95%;
}

.btn:not(.login-btn) {
  justify-content: end;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.btn:not(.login-btn):hover {
  transform: translateX(20px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 750px) {
  .main-container {
    padding: 12px;
  }

  .index-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .welcome-section,
  .index-section .menu-section {
    width: 90%;
    height: auto;
    margin: 0;
    transform: none;
  }

  .index-section .menuButtons .btn {
    width: 100%;
  }

  .toptext {
    font-size: 18px;
    line-height: 1.7;
  }
}

@media screen and (max-width: 600px) {
  :root {
    --spacing: 12px;
  }

  .main-container {
    padding: 8px;
  }

  .index-section {
    gap: 16px;
  }

  .welcome-section,
  .index-section .menu-section {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    height: auto;
  }

  .toptext {
    font-size: 16px;
    line-height: 1.6;
  }

  .index-section .menuButtons {
    gap: 12px;
  }

  .index-section .menuButtons .btn {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 14px;
  }

  .btn:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }
}
