@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");
:root {
  --background: #ffffff;
  --primary-background: #f4f6f8;
  --secondary-background: #e6ebef;
  --primary: #0f2f4f;
  --primary-font: "Noto Sans JP", sans-serif;
  --secondary-font: "Raleway", sans-serif;
}
body {
  font-family: var(--primary-font);
}
.bg-background {
  background-color: var(--background);
}
.bg-primary-background {
  background-color: var(--primary-background);
}
.bg-secondary-background {
  background-color: var(--secondary-background);
}
.bg-primary {
  background-color: var(--primary);
}

.text-background {
  color: var(--background);
}
.text-primary {
  color: var(--primary);
}
.text-primary-background {
  color: var(--primary-background);
}

.font-primary {
  font-family: var(--primary-font);
}
.font-secondary {
  font-family: var(--secondary-font);
}

.border-background {
  border-color: var(--background);
}
.border-primary {
  border-color: var(--primary);
}
.border-primary-background {
  border-color: var(--primary-background);
}

/* button */
button.primary {
  background: var(--primary);
  color: white;
  border-radius: 4px;
}

.button.primary.xl-button {
  border-radius: 8px;
}

/* nav bar */
.navbar-container .links-wrapper {
  padding: 32px 16px 0 0;
  display: flex;
}

.navbar-container .links-wrapper a {
  height: 40px;
  margin-left: 32px;
  display: flex;
  align-items: center;
  /* align-self: center; */
  max-width: calc(100% - 32px);
  color: var(--primary);
  font-weight: 500;
  font-family: var(--primary-font);
}

.navbar-container .links-wrapper a.active {
  font-weight: 700;
}

.navbar-container .info-wrapper {
  padding: 32px 32px 0 24px;
  display: flex;
}

.navbar-container .info-wrapper .message-btn {
  height: 40px;
  padding: 0 12px;
}
.navbar-container .phone-container {
  margin: 0 0 0 24px;
}
.navbar-container .phone-container .top-section {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 1px;
  padding-top: 8px;
}

.navbar-container .desktop-nav-container {
  height: 112px;
}

.navbar-container .phone-container .phone-number {
  line-height: 1;
}

.navbar-container .phone-container .bottom-paragraph {
  font-size: 13px;
  text-align: right;
}

nav .link-container {
  height: 48px;
  padding: 8px 32px 0 364px;
  display: flex;
  justify-content: end;
}

nav .link-container span {
  line-height: 1.2;
  font-weight: 500;
  color: var(--primary);
}

.logo-container {
  padding: 40px 32px 32px;
  width: 364px;
}

.mobile-nav-modal {
  position: fixed;
  right: 0;
  top: 0;
  height: 0;
  width: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  transition: 0s;
}

.mobile-nav-modal.open {
  background: var(--primary);
  visibility: visible;
  height: 100vh;
  width: 280px;
  color: white;
  z-index: 100;
  opacity: 1;
  transition: 0.5s width ease-in-out;
}

.mobile-link {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  line-height: 1.4;
  font-weight: bold;
}

.hamburger-button {
  display: none;
}

@media screen and (max-width: 1280px) {
  .navbar-container .nav-links {
    flex-direction: column-reverse;
    align-items: end;
  }

  .navbar-container .links-wrapper {
    padding: 32px 32px 0 0;
    line-height: 1;
  }

  .navbar-container .desktop-nav-container {
    height: 136px;
  }

  .navbar-container .links-wrapper a {
    height: auto;
  }

  .navbar-container .phone-container .phone-number {
    font-size: 22px;
    margin: 0 0 3px;
  }

  .navbar-container .info-wrapper {
    flex-direction: row-reverse;
  }

  .navbar-container .phone-container .top-section {
    padding: 0;
  }
  .navbar-container .phone-container {
    margin: 0 24px 0 0;
  }

  .navbar-container .phone-container .bottom-paragraph {
    font-size: 12px;
    line-height: 1;
  }
  .navbar-container .phone-icon {
    font-size: 16px;
  }

  nav .link-container span {
    line-height: 1;
    font-size: 15px;
  }

  nav .link-container {
    padding-top: 4px;
  }
}

@media screen and (max-width: 768px) {
  .navbar-container .desktop-nav-container {
    height: auto;
  }
  .navbar-container .links-wrapper {
    display: none;
  }
  .navbar-container .info-wrapper {
    padding: 0;
  }

  .logo-container {
    width: 300px;
    padding: 24px 16px;
  }

  .navbar-container .phone-container .top-section {
    gap: 4px;
  }

  .navbar-container .phone-container {
    padding: 8px 72px 0 0;
    margin: 0;
    height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .navbar-container .info-wrapper .message-btn {
    display: none;
  }

  .hamburger-button {
    display: flex;
    position: fixed;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    color: white;
    width: 64px;
    height: 64px;
    z-index: 2;
  }

  .hamburger-button .ham {
    font-size: 24px;
    margin: 0 0 2px;
  }
  .hamburger-button .text {
    font-size: 13px;
    font-weight: 700;
    line-height: 0.8;
    margin: 1px 0 2px 0;
    font-family: var(--secondary-font);
  }
  .navbar-container .phone-container .phone-number {
    font-size: 16px;
  }

  .navbar-container .phone-icon {
    font-size: 12px;
  }

  nav .link-container {
    height: auto;
    padding: 0 16px 24px 0;
    font-size: 16px;
  }
  nav .link-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 8px;
    align-items: end;
  }
  nav .link-container span {
    line-height: 1.4;
    font-size: 16px;
  }
  nav .link-container span:last-child {
    font-size: 14px;
  }
  nav .link-wrapper .divider {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  nav .link-container {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    padding: 88px 0 24px;
    width: 64px;
    z-index: 1;
  }
  nav .link-wrapper {
    writing-mode: vertical-lr;
    align-items: start;
    gap: 2px;
  }

  nav .link-container span:first-child {
    font-size: 15px;
  }
  nav .link-container span:last-child {
    font-size: 13px;
    line-height: 1.4;
  }

  .navbar-container .phone-container {
    display: none;
  }

  .logo-container {
    height: 64px;
    padding: 24px 0 0 16px;
    max-width: calc(100% - 80px);
  }
}

.paragraph-regular {
  font-size: 16px;
  font-family: var(--primary-font);
  line-height: 1.8;
  font-weight: normal;
}

.section-container {
  padding: 120px 80px;
}

.section-wrapper {
  width: 1200px;
  max-width: 100%;
  margin: auto;
}

.section-title {
  font-size: 48px;
  line-height: 1;
  font-weight: bold;
  font-family: var(--secondary-font);
  color: var(--primary);
}

.section-subtitle {
  font-weight: 500;
  line-height: 1.4;
  font-size: 16px;
}

.page-title {
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  font-family: var(--secondary-font);
  color: var(--primary);
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
  font-size: 20px;
}

.page-container {
  padding: 80px 80px 160px;
}

.page-title-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
}

.input-group {
  margin: 0 0 40px;
}

input[type="text"],
input[type="email"],
input[type="number"] {
  border: 1px solid var(--primary);
  border-radius: 4px;
  height: 56px;
  padding: 16px;
  line-height: 1.8;
  letter-spacing: 0em;
  width: 100%;
}

textarea {
  border: 1px solid var(--primary);
  border-radius: 4px;
  height: 180px;
  padding: 16px !important;
  line-height: 1.8 !important;
  letter-spacing: 0em;
  width: 100%;
}

form label.form-label {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  max-width: calc(100% - 8px);
  color: var(--primary);
  margin: 0 0 16px 8px;
}

.required-label {
  border-radius: 4px;
  background: var(--primary);
  color: white;
  line-height: 1.7;
  margin: 2px 0 0 12px;
  padding: 0 5px;
  height: fit-content;
  font-size: 12px;
}

@media (max-width: 767px) {
  .section-container {
    padding: 96px 56px;
  }
  .page-container {
    padding: 24px 56px 96px;
  }

  .page-title-container {
    flex-direction: row;
    align-items: end;
    margin-bottom: 48px;
  }

  .page-title {
    margin-bottom: 0;
  }

  .page-subtitle {
    padding-bottom: 6px;
    margin: 0 0 0 16px;
  }
}

@media (max-width: 639px) {
  .section-container {
    padding: 80px 24px;
  }
  .section-title {
    font-size: 36px;
  }

  .contact-msg-btn {
    color: var(--primary);
    background: white;
  }
  .page-container {
    padding: 32px 24px 80px;
  }

  .page-title-container {
    margin-bottom: 32px;
  }
  .page-title {
    font-size: 36px;
  }
  .page-subtitle {
    padding-bottom: 5px;
    margin-left: 12px;
    font-size: 18px;
    max-width: calc(100% - 12px);
  }
}

.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary);
  transition: top 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 0;
  left: 0;
  background: var(--primary);
}
.card:hover::before {
  top: 0;
  color: white;
}

.card:hover {
  color: white;
}

/* .service-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 10px;
  background-color: var(--primary);
} */

.service-detail-content {
  font-size: 18px;
}

.service-detail-content h2 {
  border-bottom: 2px solid var(--primary);
  margin: 80px 0 40px;
  line-height: 1.6;
  font-size: 26px;
  color: var(--primary);
  padding: 0 4px 8px;
  font-weight: 700;
}

.service-detail-content p {
  margin: 32px 0;
  line-height: 2em;
  font-size: 18px;
}

.service-detail-content ul {
  margin: 40px 0 40px 20px;
  padding: 0 20px;
  list-style-type: disc;
  line-height: 1.6;
}
.service-detail-content ul li {
  margin: 0 0 8px 0;
  padding: 0 0 0 4px;
}
.service-detail-content ol {
  margin: 40px 0 40px 20px;
  padding: 0 20px;
  list-style-type: decimal;
  line-height: 1.6;
}
.service-detail-content ol li {
  margin: 0 0 8px 0;
  padding: 0 0 0 4px;
}

.service-detail-content table {
  width: 100%;
  padding: 8px 0;
  text-align: left;
}

.service-detail-content table th {
  line-height: 1.4;
  min-width: 132px;
  padding: 16px;
  font-weight: 500;
}

.service-detail-content table td {
  line-height: 1.4;
  min-width: 132px;
  padding: 16px;
}

@media screen and (max-width: 640px) {
  .service-detail-content {
    font-size: 16px;
  }
  .service-detail-content h2 {
    font-size: 22px;
    margin: 72px 0 32px;
  }
  .service-detail-content p {
    margin: 24px 0;
    font-size: 16px;
  }

  .service-detail-content ul {
    margin: 32px 0 32px 8px;
  }

  .service-detail-content ol {
    margin: 33px 0 33px 10px;
  }
}
