body {
  color: #333;
}
p {
  letter-spacing: 0.08em;
  line-height: 1.8;
  @media (width <= 600px){
    font-size: 15px;
  }
}
header{
  background-color: #142E79;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
    @media(width <= 960px) {
    padding: 10px 10px;
  }
  @media(width <= 600px) {
flex-direction: column;
    gap: 10px;  }
  .logo {
    display: block;
    img {
      display: block;
      height: 60px;
      @media(width <= 600px) {
        height: 40px;
      }
    }
  }
  nav {
      color: #fff;
    ul{
    display: flex;
      align-items: center;
      gap: 50px;
      @media(width <= 960px) {
      gap: 24px;
    }
  } 
  a {
    font-size: 14px;
    font-weight: 400;
     @media(width <= 600px) {
      font-size: 12px;
      }
    &:hover {
      color: blue;
      text-decoration: underline;
    }
  }
  }
}
/* ヒローセクション */
.hero {
  color: #fff;
  text-align: center;
  height: 400px;
  background-image: url(../images/hero.jpg);
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  h2 {
    font-size: 48px;
    font-weight: 700;
    br {
      display: none;
      @media(width <= 600px) {
      display: block;
    } 
  }
}
  p {
    font-size: 20px;
    font-weight: 400;
    margin-top: 20px;
     @media(width <= 600px) {
      font-size: 18px;
    }
    br {
      display: none;
      @media(width <= 600px) {
        display: block;
      }
    }
  }
}
/* 共通セクション */
/* コンテナ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 40px;
  @media(width <= 600px) {
    padding-inline: 20px;
  }
}
.main-section {
  padding: 80px 0 100px;
   @media(width <= 600px) {
      padding-block: 60px;
    }
  h2 {
    border-bottom: 2px solid #142E79;
    font-size: 30px;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
}
.strengths, .about {
  background-color: #f9f9f9;
}

.strengths, .services, .about, .thanks{
  
  .layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;

    .text,
    .image {
      flex: 1;
    }
    .text {
          h3 {
      border-bottom: 2px solid #142E79;
      padding-bottom: 10px;
      margin-bottom: 20px;
      font-size: 28px;
      font-weight: 700;
      margin-top: 20px;
    }
    p {
      margin-top: 20px;
    }
    }
  .image {
    border-radius: 8px;
    overflow: hidden;
    img {
      width: 100%;
      aspect-ratio: 4 / 6;
      object-fit: cover;
    }
  }
  }
  @media (max-width: 960px) {
    .layout {
      flex-direction: column;
    }
  }
  @media (min-width: 961px) {
    &.services {
      .layout {
        flex-direction: row-reverse;
      }
    }
  }
}
/* 定義リスト */

dl {
   display: grid;
      grid-template-columns: 140px 1fr;
      @media (width <= 600px){
        grid-template-columns: 140px 1fr;
      }
      dt,dd {
        font-size: 14px;
        padding: 10px;
        border-top: 1px solid #ccc;
      }
      dt {
  white-space: nowrap;
  background-color: #f0f0f0;
  font-weight: 500;
}
dd {
  background-color: #fff;
}
    }
/* お問い合わせフォーム */

.contact h2 {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.form-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px;
}
.form-item {
  display: grid;
  gap: 10px;
  label {
    font-size: 14px;
  }
  + .form-item {
    margin-top: 30px;
  }

input,
  textarea {
    border: 1px solid #aaa;
    padding: 0.8em 0.5em;
    border-radius: 8px;
    &::placeholder {
      color: #aaa;
    }
  }
    textarea {
    resize: none;
  }
  button {
    font-size: 16px;
    display: inline-block;
    color: #fff;
    background-color: #2563EB;
    border: none;
    padding: 1em 2em;
    border-radius: 8px;
    &:hover {
      background-color: #1E40AF;
    }
  }
  }

/* フッター */
footer {
  display: grid;
  justify-items: center;
  color: #fff;
  background-color: #142E79;
  padding: 40px 20px 20px;
   p {
    font-size: 12px;
  }
}


/* リスト */
.marker-list {
  list-style: disc;
  padding-left: 1.5em;
}

/* thanks */
.thanks {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px;
}



