body {
  font-family: 'Century', serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

header {
  background: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: white;
  padding: 1em;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin: 0;
}

nav a {
  position: relative;
  color: white;
  text-decoration: none;
  padding: 0.5em 1em;
  overflow: hidden;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px; /* ← 細く調整 */
  background-color: white;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
}

main {
  padding: 2em;
}

footer {
  background: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: white;
  text-align: center;
  padding: 1em;
}


.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  text-align: center;
  font-family: 'Century', serif;
}


main section {
  text-align: center;
}

main section ul,
main section ol {
  list-style-position: inside;
  text-align: center;
  padding-left: 0;
}

/* タイトル類に文字の影 */
h1, h2, h3 {

  padding: 0 1em;
}


p {
  padding: 0 1em;

}

h2, h3, p {
  color: black; 
}


@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  main {
    padding: 1em;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
  }



  .hero-text {
    font-size: 2rem;
    padding: 0 1em;
  }
}


.image-container {
  text-align: center;
  margin: 2em auto;
}

.image-container img {
  max-width: 50px;     /* ← 画像の最大幅を指定（お好みで調整） */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-only {
    display: block;
  }
}


footer p {
  color: white;
}