/* v3 Footer
---------------------------------------------------------- */
.v3-footer {
  font-family: var(--font-meiryo);
  margin: 0;
  padding: 0;
}

.v3-footer a {
  transition: opacity 0.25s ease;
}

.v3-footer a:hover,
.v3-footer a:focus-visible,
.v3-footer__menu-l1:hover,
.v3-footer__menu-l1:focus-visible {
  opacity: 0.5;
}

.v3-footer__menu-l1 {
  transition: opacity 0.25s ease;
}

/* 1. Menu
---------------------------------------------------------- */
.v3-footer__menu {
  box-sizing: border-box;
  padding: 36px 40px;
  background-color: #222222;
}

.v3-footer__menu-title {
  margin: 0;
  font-family: var(--font-gothic);
  font-size: 32px;
  font-weight: bold;
  line-height: 60px;
  color: #ffffff;
}

.v3-footer__menu-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 20px;
}

.v3-footer__menu-col {
  min-width: 0;
  padding-right: 10px;
}

.v3-footer__menu-l1 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.v3-footer__menu-l2-top {
  display: none;
}

.v3-footer__menu-l1-text {
  min-width: 0;
  font-family: var(--font-gothic);
}

.v3-footer__menu-mark {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  margin-top: 3px;
}

.v3-footer__menu-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px; /* 8px tall / 6px wide */
  border-color: transparent transparent transparent #000000;
  transform: translate(-35%, -50%);
}

.v3-footer__menu-l2 {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-footer__menu-l2 a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  line-height: 23px;
  color: #ffffff;
  text-decoration: none;
  padding-left: 7px;
}

.v3-footer__menu-l2 li + li {
  margin-top: 10px;
}

.v3-footer__menu-arrow {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 6px;
  height: 8px;
  margin-top: 6px;
}

.v3-footer__menu-block-container {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  padding-bottom: 6px;
  padding-top: 10px;
}
.v3-footer__menu-l2 > li:has(.v3-footer__menu-block-container):nth-of-type(2) .v3-footer__menu-block-container {
  padding-top: 5px;
}
.v3-footer__menu-block {
  width: 9px;
  height: 18px;
  background-color: white;
}

.v3-footer__menu-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #ffffff;
  transform: translateY(-50%);
}

/* 2. Links
---------------------------------------------------------- */
.v3-footer__links {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background-color: #252525;
  border-top: 2px solid #4a4a4a;
}

.v3-footer__links-primary {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  background-color: #252525;
  padding: 27px 40px 22px;
}

.v3-footer__link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: min(50%, 230px);
}

.v3-footer__link-list a {
  display: block;
  font-size: 12px;
  font-weight: bold;
  line-height: 26px;
  color: #ffffff;
  text-decoration: none;
}

.v3-footer__link-list a::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 11px;
  background-color: #ffffff;
  vertical-align: middle;
}

.v3-footer__links-secondary {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background-color: #292929;
  padding: 27px 40px 38px;
}

.v3-footer__links-secondary-col {
  width: 189px;
}

.v3-footer__links-secondary-col:first-child {
  box-sizing: border-box;
  width: auto;
}

.v3-footer__address {
  margin-top: 2px;
  font-size: 12px;
  font-weight: bold;
  font-style: normal;
  line-height: 26px;
  color: #ffffff;
}

.v3-footer__address p {
  margin: 0;
}

.v3-footer__address a {
  color: inherit;
  text-decoration: none;
}

.v3-footer__sns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.v3-footer__sns-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.v3-footer__sns-item:hover {
  opacity: 0.8;
}

.v3-footer__sns-icon {
  display: block;
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.v3-footer__links-secondary-col:last-child {
  width: auto;
  margin-top: 9px;
}

.v3-footer__global {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v3-footer__global-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  font-size: 10px;
  font-weight: bold;
  line-height: 10px;
  color: #ffffff;
}

.v3-footer__global-title-bar {
  flex: 1;
  height: 4px;
  background-color: #ffffff;
}

.v3-footer__global-title span {
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 1px;
}

.v3-footer__global-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 246px;
  height: 90px;
  margin-top: 5px;
  background-color: #00507e;
  text-decoration: none;
}

.v3-footer__global-logo svg {
  display: block;
  width: 146px;
  height: auto;
}

.v3-footer__global-logo svg .cls-1,
.v3-footer__global-logo svg .logo-icon {
  fill: #ffffff;
}

/* 3. Copyright
---------------------------------------------------------- */
.v3-footer__copyright {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 63px;
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.v3-footer__copyright small {
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
}

@media screen and (max-width: 1350px) {
  .v3-footer__menu-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }

  .v3-footer__links-secondary {
    flex-direction: column;
  }

  .v3-footer__global-logo {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .v3-footer__menu {
    padding: 24px 18px 16px;
  }

  .v3-footer__menu-title {
    font-size: 19px;
    line-height: 26px;
  }

  .v3-footer__menu-columns {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    row-gap: 0;
  }

  .v3-footer__menu-col {
    padding-right: 0;
  }

  .v3-footer__menu-col:not(:first-child) {
    border-top: 2px solid #4a4a4a;
  }

  .v3-footer__menu-col:last-child {
    border-bottom: 2px solid #4a4a4a;
  }

  .v3-footer__menu-l1 {
    box-sizing: border-box;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 16px 0;
    font-size: 16px;
    cursor: pointer;
  }

  .v3-footer__menu-l1 .v3-footer__menu-mark {
    order: 1;
    margin-left: auto;
    margin-right: 3px;
    background-color: transparent;
  }

  .v3-footer__menu-l1 .v3-footer__menu-mark::before,
  .v3-footer__menu-l1 .v3-footer__menu-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #ffffff;
    transform: translate(-50%, -50%);
    border: none;
  }

  .v3-footer__menu-l1 .v3-footer__menu-mark::before {
    width: 14px;
    height: 2px;
  }

  .v3-footer__menu-l1 .v3-footer__menu-mark::after {
    width: 2px;
    height: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .v3-footer__menu-col.is-open .v3-footer__menu-l1 .v3-footer__menu-mark::after {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
  }

  .v3-footer__menu-l2 {
    display: block;
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.4s ease,
      padding 0.4s ease,
      opacity 0.3s ease;
  }

  .v3-footer__menu-col.is-open .v3-footer__menu-l2 {
    pointer-events: auto;
  }

  .v3-footer__menu-l2-top {
    display: list-item;
  }

  .v3-footer__menu-l2 li + li {
    margin-top: 11px;
  }

  .v3-footer__links {
    flex-direction: column;
    background-color: #222222;
    border-top: none;
  }

  .v3-footer__links-primary {
    padding: 4px 18px;
    background-color: transparent;
  }

  .v3-footer__link-list a {
    font-size: 10px;
  }
  
  .v3-footer__link-list a::before {
    display: none;
  }

  .v3-footer__address {
    font-size: 10px;
    line-height: 20px;
  }

  .v3-footer__links-secondary {
    background-color: transparent;
    padding: 10px 18px 18px;
  }

  .v3-footer__links-secondary-col:last-child {
    margin-top: 15px;
  }

  .v3-footer__global-title {
    gap: 12px;
  }

  .v3-footer__global-title span {
    letter-spacing: 0;
  }

  .v3-footer__global-logo {
    height: 70px;
    padding-right: 25px;
    margin-top: 11px;
  }

  .v3-footer__global-logo svg {
    width: 140px;
  }

  .v3-footer__copyright {
    height: 43.5px;
    font-size: 15px;
  }

  .v3-footer__copyright small {
    font-size: 9px;
  }
  .v3-footer__sns-item {
    width: 20px;
    height: 20px;
  }

  .v3-footer__sns-icon {
    width: 15px;
    height: 15px;
  }
  .v3-footer__menu-l2 a {
    font-size: 14px;
  }
  .v3-footer__menu-block-container {
    font-family: Hiragino Sans;
    font-size: 14px;
    padding-top: 15px;
  }
  .v3-footer__menu-block {
    width: 9px;
    height: 12px;
    background-color: white;
  }

  .v3-footer__menu-l2 > li:has(.v3-footer__menu-block-container):nth-of-type(2) .v3-footer__menu-block-container {
    padding-top: 10px;
  }
}