* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #59616b;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding-top: 42px;
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin: 0 29px 40px 0;
}

.line-button {
  display: block;
  width: 191px;
  height: 65px;
}

.line-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link img {
  width: 46px;
  height: 46px;
  display: block;
}

.main-nav {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.5fr 1.55fr 1.35fr 1.35fr 1.35fr;
  height: 35px;
  border: 1px solid #ececec;
  border-bottom: 0;
  background: #f7f7f7;
}

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #ececec;
  color: #30333a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a:first-child {
  border-left: 0;
}

.main-nav .active {
  background: #eacb76;
  color: #fff;
}

.hero img {
  display: block;
  width: 100%;
  height: 447px;
  object-fit: cover;
  object-position: center 47%;
}

.intro {
  padding: 34px 19px 33px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}

.intro p {
  margin: 0;
}

.intro .spacer {
  margin-top: 26px;
}

.intro strong {
  color: #f32d39;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 8px;
}

.service-card {
  position: relative;
  min-height: 599px;
  padding: 9px 9px 28px;
  border: 2px solid #5f5f5f;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
}

.service-photo {
  display: block;
  width: 100%;
  height: 203px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 178px;
  left: 8px;
  width: 94px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  box-shadow: 5px 10px 0 rgba(255, 190, 0, .35);
}

.service-card h2 {
  margin: 31px 0 18px;
  text-align: center;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 800;
}

.service-card p {
  margin: 0 7px 18px;
  color: #59616b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.56;
}

.service-card ul {
  margin: 0 0 22px;
  padding: 12px 13px;
  list-style: none;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  border: 3px solid;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, .3);
}

.service-card li::before {
  content: "✔";
  margin-right: 2px;
}

.service-card .more {
  display: block;
  width: 142px;
  margin: 0 auto;
  padding: 5px 0;
  border: 2px solid #b7cef0;
  color: #8fb0dd;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.orange .badge,
.orange ul {
  background: #ffc20f;
  border-color: #ff9b00;
}

.orange h2 {
  color: #ffb400;
}

.red .badge,
.red ul {
  background: #ef2f40;
  border-color: #db1c2c;
}

.red .badge {
  box-shadow: 5px 10px 0 rgba(239, 47, 64, .35);
}

.red h2 {
  color: #ef1f2f;
}

.blue .badge,
.blue ul {
  background: #1b73d0;
  border-color: #0c59af;
}

.blue .badge {
  box-shadow: 5px 10px 0 rgba(27, 115, 208, .35);
}

.blue h2 {
  color: #0f68c9;
}

.contact-wrap {
  padding: 242px 0 66px;
  text-align: center;
}

.contact-button {
  display: inline-block;
  min-width: 210px;
  padding: 10px 18px;
  border: 1px solid #a9c5ea;
  color: #8fb0dd;
  font-size: 14px;
  font-weight: 800;
}

.news-section {
  margin: 0 auto 118px;
  padding: 8px 36px 45px;
  background: #f3f3f3;
}

.news-section h2 {
  margin: 0 0 8px;
  color: #222;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-grid article {
  min-height: 134px;
  padding: 22px 17px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #444;
  font-size: 11px;
  line-height: 1.45;
}

.news-grid .author {
  margin: 0 0 11px;
  color: #888;
  font-size: 9px;
}

.news-grid h3 {
  margin: 0 0 8px;
  color: #2d2d2d;
  font-size: 12px;
  line-height: 1.45;
}

.news-grid p {
  margin: 0;
}

.site-footer {
  min-height: 90px;
  background: #f8b400;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.footer-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 21px 0 0 637px;
  line-height: 1.35;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .site-header,
  main {
    width: calc(100% - 24px);
  }

  .site-header {
    padding-top: 22px;
  }

  .header-tools {
    justify-content: center;
    margin: 0 0 22px;
    gap: 12px;
  }

  .line-button {
    height: 45px;
    font-size: 17px;
  }

  .social-link img {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    display: flex;
    height: auto;
    overflow-x: auto;
  }

  .main-nav a {
    min-width: 120px;
    height: 36px;
    font-size: 12px;
  }

  .hero img {
    height: 52vw;
    min-height: 235px;
  }

  .intro {
    padding: 28px 6px;
    font-size: 15px;
  }

  .service-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    padding: 0;
  }

  .service-card {
    min-height: auto;
  }

  .contact-wrap {
    padding: 80px 0 48px;
  }

  .news-section {
    margin-bottom: 70px;
    padding: 10px 18px 28px;
  }

  .footer-inner {
    padding: 22px 0;
  }
}
