@import url("common.css");

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

h2 {
  font-family: karla;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.para{
  margin-bottom: 1rem;

}

.content {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
}

.content-left {
  flex: 1 1 70%;
}

.content-right {
  flex: 0 0 30%;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* each item */
.list li {
  display: flex;
  align-items: flex-start; 
  gap: 0.5rem;            
}


.list li span {
  flex: 0 0 240px;/*スパンの横幅*/
}

.list[lang="ja"]{
  font-weight: 400;
}

.list li div {
  flex: 1;
  line-height: 1.4;
}

.list li a {
  color: black;
  text-decoration: underline;
  word-break: break-word;
}

.portrait {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.caption {
  font-size: 0.7rem;
  font-weight: 300;
  text-align: left;
}

hr {
  margin: 1.2rem 0;
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
}

/* Responsive for smaller screens */

@media (max-width: 768px) {
  main {
    padding: 6rem 10px rem 10px; /* スマホは左右余白10px */
    max-width: 100%;
  }

  .content {
    flex-direction: column;
  }

  
  .portrait {
    max-width: 100%;
    padding-right: 0;
  }

  .caption {
    text-align: left;
    margin-top: 0.4rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1rem;
  }
  .top p{
    opacity: 0;
  }
  
  .list li {
  flex-direction: column;
  }

  .list li span {
  flex: none;
  margin-bottom: 0;
  }
}
