@import url("https://fonts.googleapis.com/css2?family=M+PLUS+2:wght@400;500;700;800&display=swap");

:root {
  --ta-header-blue: #1680d2;
  --ta-header-blue-dark: #0c6fbf;
  --ta-header-orange: #fd9d30;
  --ta-header-text: #000000;
  --ta-header-white: #ffffff;
  --ta-header-height: 5.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sp-only {
  display: block !important;
}

.pc-only {
  display: none !important;
}

@media (min-width: 769px) {
  body {
    padding-left: var(--gnav-width);
  }

  .sp-only {
    display: none !important;
  }

  .pc-only {
    display: block !important;
  }
}

.header p {
  margin: 0;
}

.header a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

body {
  font-family: "M PLUS 2", "Hiragino Sans", "Yu Gothic", sans-serif;
}

a:hover {
  color: var(--ta-header-blue);
  text-decoration: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--ta-header-blue);
  box-shadow: 0 0.3125rem 0 0 var(--ta-header-blue-dark);
  padding: 0.5rem 1.5rem;
}

.header + * {
  padding-top: var(--ta-header-height);
}

.header__row {
  min-height: 65px;
  align-items: center;
  row-gap: 1rem;
}

.header__brand-col,
.header__actions-col {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: 0;
}

.header__brand-col {
  flex-direction: column-reverse;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.header__logo {
  display: block;
  width: auto;
  height: auto;
  margin-left: 1rem;
}

.header__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  background: var(--ta-header-white);
  color: var(--ta-header-blue);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 0;
  white-space: nowrap;
}

.header__badge p {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.header__actions-col {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.header__contact-card {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 58px;
  padding: 0.5rem 1rem;
  background: var(--ta-header-white);
  border: 4px solid #fff;
  border-radius: 12px;
  min-width: 200px;
}

.header__contact-card--mail {
  background-color: var(--ta-header-orange);
  color: #fff;
}

.header__contact-icon {
  display: block;
  width: auto;
  height: auto;
}

.header__contact-note {
  display: flex;
  align-items: center;
}

.header__contact-main {
  display: flex;
  align-items: center;
}

.header__contact-note p {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.header__contact-main p {
  font-weight: 700;
  line-height: 1.2;
  font-size: 1.25rem;
}

.header__contact-card--mail .header__contact-note p,
.header__contact-card--mail .header__contact-main p {
  color: #fff;
}

.header__contact-card--phone .header__contact-note p,
.header__contact-card--phone .header__contact-main p {
  color: var(--ta-header-text);
}

.header__menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  min-height: 3.5rem;
  padding: 0;
  border: 4px solid var(--ta-header-white);
  border-radius: 12px;
  background: var(--ta-header-white);
  appearance: none;
  cursor: pointer;
}

.header__menu-lines {
  position: relative;
  display: block;
  width: 2rem;
  height: 1.6rem;
}

.header__menu-line {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--ta-header-blue);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.header__menu-line:nth-child(1) {
  top: 0;
}

.header__menu-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.header__menu-line:nth-child(3) {
  bottom: 0;
}

.header__menu-button.is-open .header__menu-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__menu-button.is-open .header__menu-line:nth-child(2) {
  opacity: 0;
}

.header__menu-button.is-open .header__menu-line:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.header-menu-panel {
  position: fixed;
  top: var(--ta-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  width: 100%;
  overflow-y: auto;
  background: #00000033;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

/* 管理画面で表示 */
.header-menu-panel[data-gjs-type] {
  visibility: visible;
  opacity: 1;
}

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

.header-menu-panel__content {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.header-menu-panel__primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-width: 100%;
  padding: 5rem 2rem;
  background: var(--ta-header-blue);
  min-height: 50%;
  flex: 3;
}

.header-menu-panel__links-row + .header-menu-panel__links-row {
  margin-top: 2rem;
}

.header-menu-link {
  display: block;
  width: 100%;
}

.header-menu-link:hover {
  color: inherit;
}

.header-menu-link__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: gap 0.2s ease;
}

.header-menu-link__inner::before {
  content: "";
  display: block;
  width: 1.125rem;
  height: 0.125rem;
  background: var(--ta-header-white);
  flex: 0 0 auto;
  transition: width 0.2s ease;
}

.header-menu-link__inner p {
  margin: 0;
  color: var(--ta-header-white);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.header-menu-link:hover .header-menu-link__inner {
  gap: 0.625rem;
}

.header-menu-link:hover .header-menu-link__inner::before {
  width: 1.5rem;
}

.header-menu-panel__secondary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-width: 100%;
  padding: 4rem 2rem;
  background: var(--ta-header-white);
  flex: 2;
}

.header-menu-brand {
  max-width: 28rem;
}

.header-menu-brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  background: var(--ta-header-blue);
}

.header-menu-brand__badge p {
  margin: 0;
  color: var(--ta-header-white);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.2;
}

.header-menu-brand__logo {
  display: block;
  width: 18rem;
  height: auto;
  margin-top: 1rem;
}

.header-menu-brand__name {
  margin: 2rem 0 0;
  color: var(--ta-header-text);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

.header-menu-brand__info {
  margin: 0.5rem 0 0;
  color: var(--ta-header-text);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
}

body.is-header-menu-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .header__badge {
    padding: 0.5rem 1rem;
  }
  .header__menu-button {
    width: 4rem;
    min-height: 4rem;
  }

  .header-menu-panel__content {
    min-width: 50%;
    width: fit-content;
    margin-left: auto;
  }
  .header-menu-panel__primary {
    padding: 5rem 7rem;
  }
  .header-menu-panel__secondary {
    padding: 4rem 7rem;
  }
}

@media (min-width: 993px) {
  .header__contact-card {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .header__brand-col {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }

  .header__brand-col,
  .header__actions-col {
    padding-left: 15px;
    padding-right: 15px;
    align-items: center;
  }

  .header__badge {
    margin-left: 1rem;
  }
  .header__logo {
    margin-left: 0;
  }
}
