/* ------------------------------
ヘッダー
------------------------------ */
.lang-bar {
  display: grid;
  background: var(--c-surface-2, rgba(68, 94, 131, 0.05));
  height: 48px;
  text-align: center;
  padding: 0px 40px;
}

.lang-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: auto;
}

.lang-btn {
  padding: 0 8px 0 16px !important;
}

.lang-btn::after {
  content: '';
  background-image: url('/assets/images/icons/arrow_drop_down.svg');
  margin-left: 2px;
  width: 20px;
  height: 20px;
}

.dropdown {
  position: absolute;
  width: 240px;
  padding: 8px 0;
  top: 44px;
  background-color: var(--c-surface-1, #FFF);
  border-radius: var(--border-radius-4, 4px);
  border: 1px solid var(--Border-1, rgba(68, 94, 131, 0.16));
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.10);
  z-index: 99;
  visibility: hidden;
  opacity: 0;
  transition: var(--animation-hover, .2s);
}

.dropdown a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px 0 44px;
  text-decoration: none;
  color: black;
}

.selected {
  position: relative;
  background: var(--c-surface-2, rgba(68, 94, 131, 0.05));
}

.selected::before {
  content: '';
  position: absolute;
  background-image: url('/assets/images/icons/checkmark.svg');
  top: 10px;
  left: 16px;
  width: 20px;
  height: 20px;
}

.dropdown a:hover {
  background-color: var(--c-surface-2, rgba(68, 94, 131, 0.05));
  transition: var(--animation-hover, .2s);
}

.show {
  visibility: visible;
  opacity: 1;
  transition: var(--animation-hover, .2s);
}

.header {
  display: flex;
  justify-content: center;
  background: var(--c-surface-1, #FFF);
  min-height: 104px;
  text-align: center;
  margin: 0 auto;
  padding: 0 40px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 16px 0;
  max-width: 1224px;
  width: 100%;
  column-gap: 40px;
}

.logo {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.logo a {
  margin: auto 0;
}

.logo img {
  height: 48px;
}

.logo h1, .logo .company-name {
  color: var(--c-text-1, rgba(0, 0, 0, 0.88));
  font-size: var(--font-24, 24px);
  line-height: var(--lineheight-24, 32px);
  font-weight: var(--weight-B, 600);
  word-break: break-word;
  margin: auto 0;
}

.header-btn {
  display: flex;
  gap: 16px;
}

/* ------------------------------
ナビゲーションメニュー
------------------------------ */
.menu {
  display: flex;
  justify-content: center;
  position: sticky;
  background: var(--c-surface-1, #FFF);
  margin: 0 auto;
  z-index: 80;
  padding: 20px 40px;
  top: 0;
}

.menu-content {
  display: flex;
  justify-content: space-between;
  max-width: 1224px;
  width: 100%;
}

.menu-content ul {
  display: flex;
  flex-direction: row;
}

.menu-btn {
  display: flex;
  gap: 16px;
  visibility: hidden;
  opacity: 0;
  transition: var(--animation-hover, .2s);
}

.menu-btn.sticky {
  visibility: visible;
  opacity: 1;
  transition: var(--animation-hover, .2s);
}

.underlay-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-top: 80px;
  background: rgba(0, 0, 0, 0.24);
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: var(--animation-hover, .2s);
}

.child-menu-trigger:hover .underlay-menu {
  visibility: visible;
  opacity: 1;
  transition: var(--animation-hover, .2s);
}

.child-menu {
  width: 100%;
  position: absolute;
  top: 60px;
  /* 親項目の直下に重なるように配置 */
  left: 0;
  padding: 44px 40px 64px 40px;
  box-sizing: border-box;
  background: var(--c-surface-1, #FFF);
  visibility: hidden;
  opacity: 0;
  transition: var(--animation-hover, .2s);
  z-index: 50;
}

.child-menu-trigger:hover .child-menu {
  visibility: visible;
  opacity: 1;
  transition: var(--animation-hover, .2s);
}

.child-menu-list {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 1224px;
  margin: 0 auto;
}

.child-menu-item {
  display: flex;
  flex-direction: column;
  width: 288px;
  gap: 24px;
}

.child-menu-item ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.child-menu-item p {
  color: var(--c-text-3, rgba(0, 0, 0, 0.48));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
}

.child-menu-item a {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
}

.child-menu-item a:hover {
  color: var(--c-text-3, rgba(0, 0, 0, 0.48));
  transition: var(--animation-hover, .2s);
}

/* ------------------------------
フッター
------------------------------ */
.footer-container {
  background-color: #1E1E1E;
  padding: 24px 0;
  text-align: center;
}

.footer-container ul {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  margin: 0;
}

.footer-container li {
  list-style: none;
  height: 24px;
  border-left: 1px solid var(--c-border-3, rgba(255, 255, 255, 0.32));
  border-right: 1px solid var(--c-border-3, rgba(255, 255, 255, 0.32));
}

.footer-container li+li {
  border-left: 0;
  border-right: 1px solid var(--c-border-3, rgba(255, 255, 255, 0.32));
}

.footer-container a {
  display: block;
  padding: 0 32px;
  color: var(--c-text-5, #FFF);
  font-size: var(--font-12, 12px);
  line-height: var(--lineheight-16, 24px);
  font-weight: var(--weight-B, 700);
}

.foot-copy {
  margin-top: 24px;
  color: var(--c-text-6, rgba(255, 255, 255, 0.80));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
}


/* ---------------- デスクトップ-Lサイズ（基本はstyle.cssに記述） ----------------- */
@media only screen and (min-width: 1080px) {

  /* ------------------------------
  ヘッダー
  ------------------------------ */
  .logo {
    width: 80%;
  }

  .header-btn {
    width: auto;
  }
}

/* --------------------------　デスクトップ-Mサイズ -------------------------- */
@media only screen and (min-width: 744px) and (max-width: 1079px) {

  /* ------------------------------
  ヘッダー
  ------------------------------ */
  .lang-bar {
    height: 36px;
    padding: 0px 24px;
  }

  .lang-btn.button.text-S {
    height: 28px;
  }

  .dropdown {
    top: 36px;
  }

  .header {
    min-height: 96px;
  }

  .header-content {
    padding: 32px 0 16px 0;
    column-gap: 20px;
  }

  .logo {
    gap: 20px;
    width: 65%;
  }

  .logo img {
    height: 40px;
  }

  .logo h1, .logo .company-name {
    font-size: var(--font-20, 20px);
    line-height: var(--lineheight-20, 28px);
  }

  .header-btn {
    display: flex;
    gap: 12px;
    width: auto;
  }

  /* ------------------------------
  フッター
  ------------------------------ */
  .footer-container a {
    padding: 0 24px;
  }
}

/* -------------------------- モバイルサイズ -------------------------- */
@media only screen and (max-width: 743px) {
  .desktop {
    display: none !important;
  }

  /* ------------------------------
  ヘッダー
  ------------------------------ */
  .lang-bar {
    height: 36px;
    padding: 0px 20px;
  }

  .lang-btn {
    padding: 0px !important;
    visibility: hidden;
  }

  .lang-btn.button.text-S:hover {
    background: none;
  }

  .dropdown {
    top: 36px;
  }

  .button.text-S.compact {
    padding: 0;
  }

  .menu-btn {
    display: none !important;
  }

  .menu-content ul {
    padding: 12px 20px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .header {
    min-height: 168px;
    padding: 0px 20px;
  }

  .header-content {
    flex-direction: column;
    padding: 24px 0 12px 0;
    max-width: 480px;
  }

  .header h1, .header .company-name {
    margin: auto;
  }

  .logo {
    flex-direction: column;
    gap: 6px;
  }

  .logo img {
    height: 40px;
  }

  .logo h1, .logo .company-name {
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
  }

  .header-btn {
    width: 100%;
  }

  .header-btn a {
    flex: 1;
  }

  /* ------------------------------
  フッター
  ------------------------------ */
  .footer-container {
    padding: 24px 20px;
    text-align: left;
  }

  .footer-container ul {
    flex-wrap: wrap;
    grid-column-gap: 8px;
    grid-row-gap: 16px;
    justify-content: flex-start;
    height: auto;
  }

  .footer-container li {
    width: calc((100% - 8px) / 2);
    height: 18px;
    border-left: none;
    border-right: none;
  }

  .footer-container li+li {
    border-left: 0;
    border-right: none;
  }

  .footer-container a {
    padding: 0;
    font-size: var(--font-12, 12px);
    line-height: var(--lineheight-12, 18px);
    font-weight: var(--weight-R, 400);
  }

  .foot-copy {
    font-size: var(--font-10, 10px);
    line-height: var(--lineheight-10, 16px);
  }

  /* ------------------------------
  お問い合わせボタン
  ------------------------------ */
  .contact-btn-container {
    display: flex;
    justify-content: center;
    position: fixed;
    width: 100%;
    background: var(--c-surface-1, #FFF);
    margin: 0 auto;
    padding: 16px 20px;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    z-index: 40;
    /* opacity: 1; */
    opacity: 0;
    pointer-events: auto;
    transition: var(--animation-hover, .2s);
  }

  .contact-btn-container a {
    width: 100%;
  }

  .contact-btn-container.visible {
    opacity: 1;
    transition: var(--animation-hover, .2s);
  }

}
