html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, Arial,
    sans-serif;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 1);
}

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

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

header {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  z-index: 100;
  width: 100%;
}

.header-container {
  padding: calc(100vw * 30 / 1366) 0 0 0;
}

.header-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0 calc(100vw * 12 / 1366);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: calc(100vw * 80 / 1366);
  margin: 0 auto;
  padding: 0 calc(100vw * 50 / 1366);
  border-radius: calc(100vw * 50 / 1366);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 calc(100vw * 30 / 1366) rgba(0, 0, 0, 0.1);
}

.header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 calc(100vw * 40 / 1366) 0 0;
}

.header-logo img {
  width: auto;
  height: calc(100vw * 50 / 1366);
}

.header-link-area {
  width: auto;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: calc(100vw * 20 / 1366);
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.header-nav-link {
  font-size: calc(100vw * 12 / 1366);
  font-weight: bold;
  color: rgba(0, 0, 0, 1);
  white-space: nowrap;
  word-break: keep-all;
}

.header-nav-link:hover {
  text-decoration: underline;
}

.footer-container {
  margin: 83px 0 0;
  background-color: rgba(255, 255, 255, 1);
}

.footer-wrapper {
  width: min(1366px, 100%);
  margin: 0 auto;
  padding: 0 24px 100px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo img {
  width: 169px;
  height: auto;
}

.footer-info {
  margin-top: 24px;
}

.footer-company-name {
  margin: 30px 0 0;
  font-size: 16px;
}

.footer-address {
  margin: 20px 0;
  font-size: 16px;
  line-height: 2;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  width: calc(3 * 140px + 4 * 48px);
  padding: 17px 0 0;
  row-gap: 28px;
}

.footer-nav-link {
  flex: 0 0 140px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  color: rgba(0, 0, 0, 1);
}

.footer-nav-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  width: 100%;
  height: 40px;
  background-color: rgba(0, 125, 201, 1);
}

.menu-toggle-checkbox {
  display: none;
}

.hamburger-menu {
  display: none;
}

.menu-overlay {
  display: none;
}

.menu-close-btn {
  display: none;
}

@media (min-width: 769px) {
  html {
    font-size: calc(100vw * 16 / 1440);
  }

  .header-container {
    padding: calc(100vw * 30 / 1440) 0 0 0;
  }

  .header-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 calc(100vw * 12 / 1440);
  }

  .header-content {
    width: calc(100vw * 1266 / 1440);
    height: calc(100vw * 80 / 1440);
    padding: 0 calc(100vw * 32 / 1440);
    border-radius: calc(100vw * 50 / 1440);
    box-shadow: 0 0 calc(100vw * 30 / 1440) rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    gap: calc(100vw * 24 / 1440);
  }

  .header-logo {
    padding: 0 calc(100vw * 24 / 1440) 0 0;
  }

  .header-logo img {
    height: calc(100vw * 50 / 1440);
  }

  .header-nav {
    gap: calc(100vw * 14 / 1440);
  }

  .header-nav-link {
    font-size: calc(100vw * 12 / 1440);
  }

  .footer-container {
    margin: calc(100vw * 83 / 1440) 0 0;
  }

  .footer-wrapper {
    width: min(calc(100vw * 1366 / 1440), 100%);
    padding: 0 calc(100vw * 24 / 1440) calc(100vw * 100 / 1440);
  }

  .footer-logo img {
    width: calc(100vw * 169 / 1440);
  }

  .footer-info {
    margin-top: calc(100vw * 24 / 1440);
  }

  .footer-company-name {
    margin: calc(100vw * 30 / 1440) 0 0;
    font-size: calc(100vw * 16 / 1440);
  }

  .footer-address {
    margin: calc(100vw * 20 / 1440) 0;
    font-size: calc(100vw * 16 / 1440);
  }

  .footer-nav {
    width: calc(100vw * (3 * 140 + 4 * 48) / 1440);
    padding: calc(100vw * 17 / 1440) 0 0;
    row-gap: calc(100vw * 28 / 1440);
  }

  .footer-nav-link {
    flex: 0 0 calc(100vw * 140 / 1440);
    font-size: calc(100vw * 14 / 1440);
  }

  .footer-bottom {
    height: calc(100vw * 40 / 1440);
  }
}

@media (max-width: 768px) {
  .main {
    margin: 0;
  }

  .header-container {
    padding: calc(100vw * 10 / 375) 0 0 0;
  }

  .header-wrapper {
    padding: 0 calc(100vw * 10 / 375);
  }

  .header-content {
    position: relative;
    width: 100%;
    min-height: calc(100vw * 50 / 375);
    height: auto;
    margin: 0 auto;
    padding: calc(100vw * 10 / 375) calc(100vw * 16 / 375);
    border-radius: calc(100vw * 25 / 375);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 calc(100vw * 20 / 375) rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(100vw * 12 / 375);
  }

  .header-logo {
    flex: 0 0 auto;
    padding: 0;
  }

  .header-logo img {
    height: calc(100vw * 28 / 375);
    width: auto;
  }

  .hamburger-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100vw * 28 / 375);
    height: calc(100vw * 28 / 375);
    gap: calc(100vw * 5 / 375);
    cursor: pointer;
    flex: 0 0 auto;
  }

  .hamburger-menu > span {
    display: block;
    width: 100%;
    height: calc(100vw * 2 / 375);
    border-radius: calc(100vw * 1 / 375);
    background-color: rgba(0, 125, 201, 1);
  }

  .menu-toggle-checkbox:checked + .hamburger-menu {
    opacity: 0;
    pointer-events: none;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 999;
    cursor: pointer;
  }

  .menu-toggle-checkbox:checked ~ .menu-overlay {
    display: block;
  }

  .header-link-area {
    position: fixed;
    top: calc(100vw * 72 / 375);
    left: 50%;
    transform: translateX(-50%) translateY(calc(100vw * -6 / 375));
    width: calc(100% - calc(100vw * 24 / 375));
    max-width: calc(100vw * 360 / 375);
    max-height: calc(100vh - calc(100vw * 96 / 375));
    overflow: auto;
    padding: 0;
    border-radius: calc(100vw * 12 / 375);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 calc(100vw * 10 / 375) calc(100vw * 30 / 375)
      rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .menu-toggle-checkbox:checked ~ .header-link-area {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .menu-close-btn {
    display: block;
    position: sticky;
    top: 0;
    padding: calc(100vw * 10 / 375) calc(100vw * 14 / 375);
    font-size: calc(100vw * 24 / 375);
    line-height: 1;
    text-align: right;
    color: rgba(0, 125, 201, 1);
    background-color: rgba(255, 255, 255, 0.96);
    cursor: pointer;
    z-index: 1;
    border-bottom: calc(100vw * 1 / 375) solid rgba(34, 186, 79, 0.12);
  }

  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(100vw * 6 / 375) 0;
    white-space: normal;
  }

  .header-nav-link {
    display: block;
    padding: calc(100vw * 12 / 375) calc(100vw * 16 / 375);
    font-size: calc(100vw * 14 / 375);
    font-weight: 700;
    text-align: left;
    color: rgba(0, 0, 0, 1);
    border-top: calc(100vw * 1 / 375) solid rgba(0, 0, 0, 0.06);
    white-space: normal;
  }

  .header-nav-link:first-child {
    border-top: none;
  }

  .header-nav-link:hover {
    text-decoration: none;
  }

  .footer-container {
    margin: 40px 0 0;
  }

  .footer-wrapper {
    width: 100%;
    padding: 0 16px 30px;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 290px;
    margin: 0 auto;
  }

  .footer-logo img {
    width: 90px;
  }

  .footer-company-name {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-address {
    margin: 8px 0;
    font-size: 11px;
    line-height: 1.6;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    width: auto;
    padding: 0;
    gap: 0;
    row-gap: 0;
  }

  .footer-nav-link {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 2;
    white-space: nowrap;
    text-align: right;
  }

  .footer-bottom {
    height: 28px;
  }
}
