.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em;
}

img {
  max-width: 100%;
  height: auto;
}



body {
  background-color: #f9f6f1;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.10em;
  color: #2e3a4f;
  line-height: 1.6;
}


#site-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  letter-spacing: 0.01em;
  font-weight: 300;
  /* 細く！ */
  text-align: center;
  margin-top: 2.5rem;
  /* 上の余白 */
  margin-bottom: 1.8rem;
  /* 下の余白 */
  line-height: 1.2;
}

#site-title a {
  text-decoration: none;
  color: #2e3a4f;
}


.nav-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* ← ここ重要：狭い時に折り返す */
  gap: 2rem;
  margin-top: 1rem;
  /* 上の余白 */
  margin-bottom: 1.8rem;
  /* 下の余白 */
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.nav-menu a {
  text-decoration: none;
  color: #1a1a1a;
}

.quote {
  text-align: center;
  font-style: italic;
  margin-top: 2rem ;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 32em;
}

.section-divider {
  border: none;
  border-top: 1px solid #2b2e36;
  width: 60%;
  margin-top: 2.8rem;
  margin-bottom: 0rem;
  opacity: 0.5;
}

.works {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.works h2 {
  margin-top: 1.5rem;
  margin-bottom: 0rem;
}

.name {
  max-width: 500px;
  padding: 0.5rem;
  text-align: center;
  margin: 0rem auto;
  font-style: italic;
}

.work {
  margin-bottom: 2rem;
}


.updatelogs {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  list-style: none;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-bottom: 1rem;
  
}

.updatelogs li {
  font-size: 0.9rem;
  list-style: none;
}

.updatelogs.date li {
  font-family: 'EB Garamond', serif;
  font-weight: bold;
  margin-right: 0.5em;
  color: #6a7ba2;
}

.updatelogs h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: -0.8rem;
}

.work h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.work p {
  margin-bottom: 0.5rem;
}

.work a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #2b2e36;
  border-bottom: 1px solid #2b2e36;
  padding-bottom: 2px;
}

.attention a {
  position: relative;
  text-decoration: none;
  font-size: 1.1rem;
  color: #2b2e36;
  display: inline-block;
  margin-top: 1.2rem;
}

.attention a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.attention a:hover::after {
  transform: scaleX(1);
}

textarea {
  width: 100%;
  max-width: 600px;
  height: 40px;
  padding: 0.3rem;
  font-family: 'Georgia', serif;
  font-size: 0.85rem;
  color: #2b2e36;
  background-color: #fdfcf9;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  resize: vertical;
  line-height: 1.5;
  transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus {
  border-color: #6a7ba2;
  box-shadow: 0 0 0 3px rgba(106, 123, 162, 0.2);
  outline: none;
}

p {
  font-size: 0.9rem;
}

footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

@media screen and (max-width: 600px) {

  .quote {
  margin-top: 0rem ;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.65rem;
}

  .updatelogs h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    margin-bottom: -0.8rem;
    padding-left: 2rem;
  }

  .updatelogs li {
    font-size: 0.8rem;
    padding-left: 1rem;
  }

  .works h2 {
    font-size: 1.15rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }

  .work h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }


  .nav-menu {
    font-size: 0.85rem;
    gap: 0.8rem;
    margin-bottom: 0.5rem; 
  }

  .nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s ease;
  }

  .nav-menu a:hover {
    color: #2b2e44;
  }

  #site-title a {
    font-size: 1.9rem;
    letter-spacing: 0.05em;
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-decoration: none;
    color: #2e3a4f;
  }

  #site-title {
    font-size: 1.9rem;
    letter-spacing: 0.05em;
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-decoration: none;
    color: #2e3a4f;
  }

  .name {
    font-size: 0.95rem;
    margin-top: 0rem;
    margin-left: auto;
    margin-right: auto;
  }

  .section-divider {
    border: none;
    border-top: 1px solid #2b2e36;
    width: 80%;
    margin-top: 2.8rem;
    margin-bottom: 0rem;
    opacity: 0.5;
  }

  .name input {
    width: 90%;
    margin-bottom: 0.5rem;
  }

  .name button {
    width: 45%;
    margin: 0.5rem auto;
  }

  .attention a {
    position: relative;
    text-decoration: none;
    font-size: 1.1rem;
    color: #2b2e36;
    display: inline-block;
    margin-top: 1.2rem;
    border-bottom: 1px solid rgba(43, 46, 54, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
  }
}