/* =========================
   Shutto翻訳 カスタム表示
   PC：新設タブ .stt-nav-translate
   SP：既存タグ .stt-lang-select.bl
   ========================= */


/* ---------------------------------
   既存Shuttoタグ（SP用）
--------------------------------- */

/* 初期は非表示。SPでだけ出す */
.stt-lang-select.bl {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-395px) !important;
  z-index: 9999 !important;

  display: none !important;
  align-items: center;
  gap: 10px;
  min-width: 22px;
  height: 58px;
  padding: 0 15px !important;

  background: #5a5a5a !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  cursor: pointer;
}

.stt-lang-select.bl .stt-logo {
  display: none !important;
}

.stt-lang-select.bl::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: url("/img/language.svg") no-repeat center center / contain;
}

.stt-lang-select.bl .stt-code {
  display: none !important;
}

.stt-lang-select.bl .stt-text {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0 !important;
  color: #fff !important;
}

.stt-lang-select.bl .stt-text::before {
  content: "For translation";
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.stt-lang-select .stt-text:after {
  content: "▼";
  display: none !important;
  position: absolute;
  top: 15px;
  right: 9px;
  font-size: 10px;
  color: #999;
}

.stt-lang-select.bl::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: -4px;
  flex: 0 0 auto;
  pointer-events: none;
}

/* 開閉パネル */
.stt-lang-select.bl .stt-select {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  min-width: 250px !important;
  background: #2f2f2f !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
  z-index: 10000 !important;
  padding: 10px 0 !important;
}

.stt-lang-select.bl .stt-select::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 24px;
  width: 10px;
  height: 10px;
  background: #2f2f2f;
  transform: rotate(45deg);
}

.stt-lang-select.bl .stt-select .stt-item {
  display: block !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: #fff !important;
  background: transparent !important;
  white-space: nowrap;
  cursor: pointer;
}

.stt-lang-select.bl .stt-select .stt-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.stt-lang-select.bl .stt-select .stt-item.active {
  background: #2f66b3 !important;
  color: #fff !important;
}


/* ---------------------------------
   PC用新設タブ
--------------------------------- */

.stt-nav-translate {
  position: relative;
  list-style: none;
  display: list-item;
  flex: 0 0 220px;
  width: 220px;
}

.stt-nav-translate-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 200px;
  height:50px;
  padding:10px 5px 15px 25px;
  border: none;
  background: #666;
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  text-align: left;
}

.stt-nav-translate-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: url("/img/language.svg") no-repeat center center / contain;
}

.stt-nav-translate-text {
  display: block;
  flex: 1 1 auto;
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.stt-nav-translate-arrow {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(1px);
  transition: transform 0.2s ease;
}

.stt-nav-translate:hover .stt-nav-translate-arrow {
  transform: rotate(-135deg) translateY(-1px);
}

.stt-nav-translate-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: #6d6d6d;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  z-index: 9999;
}

.stt-nav-translate:hover .stt-nav-translate-menu {
  display: block;
}

.stt-nav-translate-note {
  margin: 0;
  padding: 14px 18px;
  background: #7a7a7a;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  line-height: 1.6;
}

.stt-nav-translate-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stt-nav-translate-list li {
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stt-nav-translate-list a {
  display: block;
  padding: 20px 18px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.4;
  background: #6d6d6d;
}

.stt-nav-translate-list a:hover {
  background: rgba(255,255,255,0.08);
}

.stt-nav-translate-list a[data-stt-active] {
  background: #818181;
  font-weight: 700;
}

.stt-nav-translate[data-stt-disabled] .stt-nav-translate-toggle,
.stt-nav-translate[data-stt-disabled] .stt-nav-translate-list a {
  opacity: 0.45;
  pointer-events: none;
}


/* ---------------------------------
   ヘッダーまわり補助
--------------------------------- */

/* .hdMenu {
  display: flex;
  align-items: stretch;
} */

/* .hdMenu > li {
  position: relative;
} */

/* 既存タブ高さ合わせ */
/* .hdMenu > li:not(.stt-nav-translate) > a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
} */

/* overflow対策 */
.header,
#gNavi,
#globalNav,
nav,
.hdMenuBox,
.menuBlock {
  overflow: visible;
}


/* ---------------------------------
   注釈
--------------------------------- */

.translation-note-inline.pc {
  display: none !important;
}

.translation-note-inline.sp {
  display: none !important;
}


/* ---------------------------------
   SP
--------------------------------- */
@media screen and (max-width: 767px) {

  /* PC用新設タブは非表示 */
  .stt-nav-translate {
    display: none !important;
  }

  /* 既存タグを表示 */
  .stt-lang-select.bl {
    display: flex !important;
    top: 30px !important;
    left: auto !important;
    right: 52px !important;
    transform: none !important;
    min-width: 180px;
    height: 28px;
    padding: 0 10px !important;
  }

  .stt-lang-select.bl::before {
    width: 15px;
    height: 15px;
  }

  .stt-lang-select .stt-text {
    position: relative;
    padding: 0 25px 0 10px !important;
  }

  .stt-lang-select.bl .stt-text::before {
    font-size: 14px;
  }

  .stt-lang-select.bl .stt-select {
    min-width: 210px !important;
  }

  .stt-lang-select.bl .stt-select .stt-item {
    font-size: 14px !important;
    padding: 11px 14px !important;
  }

  .translation-note-inline.sp {
            display: block !important;
        position: absolute;
        top: 3px;
        left: 120px;
        right: 60px;
        z-index: 10;
        font-size: 13px;
        line-height: 1;
        color: #666;
        text-align: left;
  }
}


/* ---------------------------------
   PC
--------------------------------- */
@media screen and (min-width: 768px) {

  /* PCでは新設タブを表示 */
  .stt-nav-translate {
    display: list-item;
  }

  /* PCでは既存タグを消す */
  .stt-lang-select.bl {
    display: none !important;
  }

  .translation-note-inline.pc {
    display: none !important;
  }
}


@media screen and (max-width: 767px) {
  /* 上段タブはお問い合わせ以外消す */
  #header .menuBlock .hdMenuBox .hdMenu > li:nth-child(1),
    #header .menuBlock .hdMenuBox .hdMenu > li:nth-child(2),
  #header .menuBlock .hdMenuBox .hdMenu > li:nth-child(3),
  #header .menuBlock .hdMenuBox .hdMenu > li:nth-child(4) {
    display: none !important;
  }

  /* お問い合わせだけ残す */

#header .menuBlock .hdMenuBox .hdMenu > li:nth-child(5) {
    position: relative;
    padding: 6px 2px;
    background: #A00062;
}
  #header .menuBlock .hdMenuBox .hdMenu > li:nth-child(5) > a {
    display: block;
    background: none;
    width: auto;
    padding: 0;
    font-size: 12px;
    line-height: 15px;
    color: #fff;
  }

  #header .menuBlock .hdMenuBox .hdMenu > li:nth-child(5) > a:after {
    display: none;
  }


    #header .menuBlock .hdMenuBox {
        float: none;
        background: #54585A;
        margin: 0;
        padding: 10px;
    }
 

  /* タブの中身はSPでは不要 */

  /* PC用For this pageは念のため消す */
  .stt-nav-translate {
    display: none !important;
  }
}
