:root {
  --blue: #06236f;
  --deep: #02133e;
  --yellow: #ffc800;
  --text: #071945;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: 'Yu Gothic', Meiryo, 'Hiragino Kaku Gothic ProN', Arial, sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
}

.site-header {
  height: 70px;
  background: linear-gradient(#fff 0%, #f8f9fd 100%);
  box-shadow: rgba(0, 20, 70, 0.14) 0 2px 14px;
  position: relative;
  z-index: 5;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  width: 207px;
  height: auto;
}

.contact-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe26a 0%, var(--yellow) 58%, #f6b800 100%);
  color: #071022;
  font-weight: 800;
  font-size: 15px;
  box-shadow:
    rgba(153, 112, 0, 0.18) 0 -2px 0 inset,
    rgba(255, 196, 0, 0.28) 0 8px 20px;
}

.mail-icon {
  width: 23px;
  height: 16px;
  border: 2px solid;
  border-radius: 2px;
  position: relative;
  flex: 0 0 auto;
}

.mail-icon::before,
.mail-icon::after {
  content: '';
  position: absolute;
  top: 3px;
  width: 12px;
  height: 2px;
  background: currentcolor;
}

.mail-icon::before {
  left: -1px;
  transform: rotate(35deg);
}

.mail-icon::after {
  right: -1px;
  transform: rotate(-35deg);
}

.chevron {
  font-size: 28px;
  line-height: 1;
}

.site-footer {
  margin-top: 0;
  padding: 42px 0 14px;
  background: #e9e9eb;
  color: #4f535c;
  border-top: 1px solid #dfdfe2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.7fr;
  gap: 92px;
  padding-bottom: 48px;
}

.footer-logo {
  width: 210px;
  margin-bottom: 22px;
}

.listing-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  max-width: 350px;
  margin-bottom: 24px;
}

.listing-row p,
.footer-office p,
.footer-office li,
.footer-office a,
.footer-policy a {
  margin: 0;
  color: #5b5f69;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 600;
}

.jpx-logo {
  width: 46px;
  height: auto;
  background: #fff;
}

.footer-site-link {
  display: inline-flex;
  min-width: 190px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2d2d6;
  color: #555a64;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.footer-office h2,
.footer-policy h2 {
  margin: 0 0 24px;
  color: #20242b;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 900;
}

.footer-office p + p {
  margin-top: 4px;
}

.footer-office h2:nth-of-type(2) {
  margin-top: 30px;
  margin-bottom: 22px;
}

.footer-office ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-office li + li {
  margin-top: 4px;
}

.footer-policy a {
  display: inline-block;
}

.footer-office a:hover,
.footer-policy a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #e6e6e8;
  color: #9a9da5;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 28px, 760px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .footer-policy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    padding: 10px 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    width: 160px;
  }

  .contact-button {
    width: 100%;
    padding: 0 12px;
    font-size: 13px;
  }

  .site-footer {
    padding-top: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 34px;
  }

  .footer-policy {
    grid-column: auto;
  }

  .footer-logo {
    width: 185px;
  }
}

