* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 62.5%;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font-family: var(--font-sans);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font-size: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

figure,
blockquote,
address,
p,
h1,
h2,
h3,
ol,
ul,
dl,
dd {
  margin: 0;
}

button:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #17685f;
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--page-gutter);
  margin-inline: auto;
}

.header {
  position: fixed;
  z-index: 100;
  width: 100%;
  border-top: 4px solid #e0481d;
  background: var(--color-white);
}

.header__org-sp {
  display: block;
  height: 37px;
  padding: .5rem 2rem;
  border-bottom: 1px solid var(--color-gray);
  font-size: 1.4rem;
  font-weight: 500;
  text-align: right;
}

.header__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 65px;
  padding: 0 24px;
}

.header__brand {
  margin-top: 1.8rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.header__brand a {
  color: var(--color-text);
}

.header__nav {
  margin-left: auto;
}

.gnav-list {
  display: none;
  gap: 24px;
  padding: 0;
  list-style: none;
}

.gnav-list a {
  position: relative;
  color: #333;
  font-family: sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.gnav-list a:hover {
  color: var(--color-primary);
}

.form-btn {
  position: relative;
  display: none;
}

.form-btn__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-btn__title {
  font-size: 1.5rem;
  line-height: 1.6;
}

.form-btn__arrow,
.cv-btn__arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 10px;
  border-top: 2.5px solid var(--color-blue);
  border-right: 2.5px solid var(--color-blue);
  transform: rotate(45deg);
}

.form-btn--navy {
  border-color: #082057;
  background: #082057;
}

.form-btn--navy .form-btn__arrow {
  border-top-color: #fff;
  border-right-color: #fff;
}

.form-btn .form-btn__arrow,
.cv-btn__link .cv-btn__arrow {
  border-top-color: var(--color-blue);
  border-right-color: var(--color-blue);
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo img {
  display: none;
}

.menu-btn {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  width: 60px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn::after {
  content: "MENU";
  display: inline-block;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
}

.menu-btn__line {
  position: absolute;
  top: 50%;
  left: 21px;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transition: .2s ease-out;
}

.menu-btn__line:nth-child(1) { transform: translateY(-6px); }
.menu-btn__line:nth-child(2) { top: 50%; }
.menu-btn__line:nth-child(3) { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(1) { transform: translateY(0) rotate(-35deg); }
.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(3) { width: 18px; transform: translateY(0) rotate(35deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  padding: 10rem 0 0;
  overflow-y: auto;
  background: var(--color-light-blue);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
}

.menu--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-list {
  display: flex;
  flex-direction: column;
  padding: 0 2rem;
  margin-top: 5rem;
  margin-bottom: 3rem;
  list-style: none;
}

.menu-list li {
  border-bottom: 1px solid var(--color-gray);
}

.menu-list a {
  position: relative;
  display: block;
  padding: 16px 20px;
  color: #333;
  font-size: 1.4rem;
  font-weight: 400;
}

.cv-btn {
  position: relative;
  display: block;
  padding: 2rem;
  text-align: center;
}

.cv-btn__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
  padding: 2.2rem .8rem;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  color: var(--color-white);
  background: var(--gradient-primary);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: .2s ease-out;
}

@media (hover: hover) {
  .cv-btn__link:hover {
    color: var(--color-primary);
    background: #fff;
    border-color: var(--color-primary);
  }

  .cv-btn__link:hover .cv-btn__arrow {
    border-top-color: var(--color-blue);
    border-right-color: var(--color-blue);
  }
}

.main {
  padding-top: 106px;
}

.section--black {
  background: #232529;
}

.container--top {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.address {
  display: none;
}

.address__title {
  color: var(--color-white);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
}

.address__title a,
.address__detail {
  color: var(--color-white);
}

.address__detail {
  font-size: 1.3rem;
  line-height: 1.6;
}

.page-top,
.footer__page-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 65px;
  height: 65px;
  padding: 1.3rem 0;
  border: 1px solid var(--color-gray);
  border-radius: 6px;
  color: var(--color-text);
  background: var(--color-white);
  font-family: sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.page-top__arrow,
.footer__page-top-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 10px;
  border-top: 2.5px solid var(--color-primary);
  border-right: 2.5px solid var(--color-primary);
  transform: rotate(-45deg);
}

.footer {
  padding: 20px 25px;
  border-top: 2px solid #e0481d;
  margin-top: auto;
}

.footer .footer-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.footer-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 10px;
  padding: 0;
  list-style: none;
}

.footer-list__link {
  display: block;
  padding: 0 17px;
  border-right: 1px solid #333;
  color: #333;
  font-family: sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
  white-space: nowrap;
  transition: .2s ease-out;
}

.footer-list__link:hover {
  color: var(--color-primary);
}

.footer-list li:nth-child(3) .footer-list__link {
  border-right: 0;
}

.footer__logo {
  display: block;
  width: 108px;
  max-width: 100%;
  height: auto;
  margin: 2rem auto 0;
  text-align: center;
}

.footer__logo img {
  width: 100%;
  height: auto;
}

.footer__copyright {
  display: block;
  margin-top: 1rem;
  color: #333;
  font-family: sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  text-align: center;
}

.footer__page-top-wrapper {
  display: flex;
  justify-content: flex-end;
  padding-top: 4rem;
}

@media (max-width: 767px) {
  .section--black {
    display: none;
  }
}

@media (min-width: 768px) {
  .header {
    border-top-width: 2px;
  }

  .header__brand {
    margin-top: 1.3rem;
    font-size: 2rem;
  }

  .main {
    padding-top: 104px;
  }

  .address {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer {
    padding: 13px 40px;
  }

  .footer-list {
    flex-direction: row;
    justify-content: flex-start;
  }

  .footer-list__link {
    font-size: 1.6rem;
  }

  .footer__logo,
  .footer__page-top {
    display: none;
  }

  .footer__copyright {
    margin-top: 0;
  }

  .footer__page-top-wrapper {
    display: none;
  }
}

@media (min-width: 1200px) {
  body {
    letter-spacing: .05em;
  }

  .header__org-sp {
    display: none;
  }

  .main {
    padding-top: 67px;
  }

  .cv-btn__link:hover {
    color: var(--color-primary);
    background: #fff;
  }

  .cv-btn__link:hover .cv-btn__arrow {
    border-top-color: var(--color-blue);
    border-right-color: var(--color-blue);
  }

  .container--top {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }

  .footer .footer-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1520px) {
  .header__body {
    gap: 24px;
    height: 106px;
    padding: 15px 24px;
  }

  .header__brand {
    font-size: 2.4rem;
  }

  .gnav-list {
    display: flex;
  }

  .gnav-list a {
    display: flex;
    align-items: flex-start;
    height: 106px;
    margin-top: 2.2rem;
    font-size: 1.6rem;
  }

  .form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 67px;
    padding: 1rem 1.8rem;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    color: var(--color-white);
    background: var(--color-primary);
    font-weight: 700;
    text-align: center;
    transition: .2s;
  }

  .form-btn:hover {
    color: var(--color-primary);
    background: #fff;
  }

  .form-btn:hover .form-btn__arrow {
    border-top-color: var(--color-blue);
    border-right-color: var(--color-blue);
  }

  .form-btn.form-btn--navy {
    border-color: #082057;
    background: #082057;
  }

  .form-btn--navy:hover {
    color: #082057;
    background: #fff;
  }

  .form-btn--navy:hover .form-btn__arrow {
    border-top-color: #082057;
    border-right-color: #082057;
  }

  .header__logo {
    transition: .2s ease-out;
  }

  .header__logo:hover {
    opacity: .6;
  }

  .header__logo img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
  }

  .menu-btn {
    display: none;
  }

  .main {
    padding-top: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
