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

body {
  color: #b8d4e8;
  background-color: #003366;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  height: 100vh;
}

main {
  flex: 1;
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  scrollbar-color: #b8d4e8 #003366;
}

main.container {
  display: grid;
  grid-template-columns: 50% 50%;
  margin: 1em 1em 0 1em;
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
}

.panel.scroll {
  justify-content: flex-start;
  overflow-y: auto;
  padding: 1em 0; /* hover移動領域の確保 */
}

.panel.scroll .items {
  /* itemが少ない場合に中央揃え */
  margin-top: auto;
  margin-bottom: auto;
}

.top,
.profile {
  text-align: center;
}

.top h1 {
  color: #ffffff;
  font-size: 3em;
  margin-bottom: 0.5rem;
}

.top img {
  border-radius: 16px;
  width: 80%;
}

.items {
  padding: 0 1em;
}

ul.item-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  list-style: none;
}

ul.item-list li a {
  text-decoration: none;
}

.item {
  background-color: #0a4070;
  border-radius: 16px;
  border: 2px solid #00c48c;
  box-shadow: 0 0 20px rgba(0, 196, 140, 0.12);
  padding: 1em;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.item.coral {
  border-color: #ff7a6e;
  box-shadow: 0 0 20px rgba(255, 122, 110, 0.12);
}

.item.gold {
  border-color: #f0c040;
  box-shadow: 0 0 20px rgba(240, 192, 64, 0.12);
}

.item:hover {
  background-color: #1a5080;
  transform: translateY(-6px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(0, 196, 140, 0.18);
}

.item .head {
  display: flex;
  align-items: center;
  gap: 1em;
}

.item .icon {
  color: #ffffff;
  width: 3em;
  height: 3em;
}

.item .icon svg {
  width: 100%;
  height: 100%;
}

.item .title {
  display: block;
}

.item h3 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 2px;
}

.item h4 {
  color: #b8d4e8;
  font-size: 1em;
}

footer {
  color: #b8d4e8;
  background-color: #003366;
  position: sticky;
  padding: 4px;
  bottom: 0;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
}

@media screen and (max-width: 767px) {
  body {
    overflow: auto;
    height: auto;
  }

  main {
    flex: none;
    overflow: visible;
  }

  main.container {
    grid-template-columns: 100%;
    gap: 1.5em;
    height: auto;
  }

  .panel.scroll {
    overflow-y: visible;
  }
}
