body {
  color: #333;
}

p {
  letter-spacing: 0.08em;
  line-height: 1.8;
}

@media (max-width: 600px) {
  p {
    font-size: 15px;
  }
}

header {
  background-color: #142E79;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 960px) {
  header {
    padding: 10px 10px;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 10px;
  }
}

header .logo {
  display: block;
}

header .logo img {
  display: block;
  height: 60px;
}

@media (max-width: 600px) {
  header .logo img {
    height: 40px;
  }
}

header nav {
  color: #fff;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 50px;
}

@media (max-width: 960px) {
  header nav ul {
    gap: 24px;
  }
}

header nav a {
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 600px) {
  header nav a {
    font-size: 12px;
  }
}

header nav a: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;
}

.hero h2 {
  font-size: 48px;
  font-weight: 700;
}

.hero h2 br {
  display: none;
}

@media (max-width: 600px) {
  .hero h2 br {
    display: block;
  }
}

.hero p {
  font-size: 20px;
  font-weight: 400;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .hero p {
    font-size: 18px;
  }
}

.hero p br {
  display: none;
}

@media (max-width: 600px) {
  .hero p br {
    display: block;
  }
}

/* 共通セクション */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 40px;
}

@media (max-width: 600px) {
  .container {
    padding-inline: 20px;
  }
}

.main-section {
  padding: 80px 0 100px;
}

@media (max-width: 600px) {
  .main-section {
    padding-block: 60px;
  }
}

.main-section h2 {
  border-bottom: 2px solid #142E79;
  font-size: 30px;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.strengths, .about {
  background-color: #f9f9f9;
}

.strengths .layout,
.services .layout,
.about .layout,
.thanks .layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
}

.strengths .text,
.services .text,
.about .text,
.thanks .text,
.strengths .image,
.services .image,
.about .image,
.thanks .image {
  flex: 1;
}

.strengths .text h3,
.services .text h3,
.about .text h3,
.thanks .text h3 {
  border-bottom: 2px solid #142E79;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
  margin-top: 20px;
}

.strengths .text p,
.services .text p,
.about .text p,
.thanks .text p {
  margin-top: 20px;
}

.strengths .image img,
.services .image img,
.about .image img,
.thanks .image img {
  width: 100%;
  aspect-ratio: 4 / 6;
  object-fit: cover;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 960px) {
  .strengths .layout,
  .services .layout,
  .about .layout,
  .thanks .layout {
    flex-direction: column;
  }
}

@media (min-width: 961px) {
  .services .layout {
    flex-direction: row-reverse;
  }
}

/* 定義リスト */
dl {
  display: grid;
  grid-template-columns: var(--dt-width, 140px) 1fr;
  margin: 20px 0;
  padding: 10px;
  /*background: #fafafa;*/
}

dt,
dd {
  font-size: 14px;
  padding: 10px;
  border-top: 1px solid #ccc;
}

dt {
  white-space: nowrap;
  background-color: #f0f0f0;
  font-weight: 500;
}

dt.no-bg {
  background-color: transparent;
}

dd {
  background-color: #fff;
}

@media (max-width: 600px) {
  dl {
    grid-template-columns: 1fr;
  }

  dt,
  dd {
    font-size: 13px;
    padding: 8px;
  }
}

.dl-style1 {
  border: 2px solid #ccc;
  width: 320px;
}

.dl-style2 {
  width: 500px;
  --dt-width: 200px;
}

/* お問い合わせフォーム */
.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;
}

.form-item label {
  font-size: 14px;
}

.form-item + .form-item {
  margin-top: 30px;
}

input,
textarea {
  border: 1px solid #aaa;
  padding: 0.8em 0.5em;
  border-radius: 8px;
}

input::placeholder,
textarea::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;
}

button:hover {
  background-color: #1E40AF;
}

/* フッター */
footer {
  display: grid;
  justify-items: center;
  color: #fff;
  background-color: #142E79;
  padding: 40px 20px 20px;
}

footer p {
  font-size: 12px;
}

/* リスト */
.marker-list {
  list-style: disc;
  padding-left: 1.5em;
}

/* thanks */
.thanks {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px;
}
