/* Homepage chrome aligned to a full-bleed, top-bar layout. Existing links stay. */

body,
uni-view,
uni-navigator,
uni-text,
uni-button,
uni-input,
uni-textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- desktop ---------- */
@media (min-width: 1021px) {
  .bodys {
    padding-top: 64px;
  }

  header#PC {
    padding: 0 32px;
    background: #fff;
    border-bottom: 0;
  }

  #PC .header {
    position: relative;
    height: 64px;
  }

  #PC .header > uni-navigator {
    position: static;
  }

  #PC .logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 150px !important;
    max-width: none;
    height: 22px !important;
    transform: translate(-50%, -50%) !important;
  }

  #PC .logo > div {
    width: 100%;
    height: 100%;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }

  #PC .heade1 {
    max-width: calc(50% - 110px);
    height: 64px;
    align-items: center;
    flex-wrap: nowrap;
  }

  #PC .heade1_1,
  #PC .heade2_1 {
    height: 64px;
    margin-right: 22px;
    font-size: 12px;
    line-height: 64px;
    letter-spacing: 0.04em;
  }

  #PC .heade2 {
    align-items: center;
  }

  #PC .heade1_2 {
    position: fixed;
    left: 0;
    top: 64px;
    z-index: 16;
    width: 280px;
    height: calc(100vh - 64px);
    padding: 36px 40px;
    background: rgba(255, 255, 255, 0.98);
    overflow: auto;
  }

  #PC .heade1_3 {
    width: 100%;
  }

  #PC .heade1_4,
  #PC .heade1_6 {
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: 0.02em;
  }

  #PC .heade1_5 {
    position: fixed;
    left: 280px;
    top: 64px;
    z-index: 16;
    width: 260px;
    height: calc(100vh - 64px);
    padding: 36px 40px;
    background: #fff;
    border-left: 1px solid #eee;
    overflow: auto;
  }

  #PC .heade2_3 {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 17;
    width: auto;
    min-width: 140px;
    height: auto;
    padding: 10px 0;
    background: #fff;
  }

  #PC .heade2_3_1 {
    width: auto;
    margin: 0;
    padding: 6px 18px;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
  }

  .inde_video {
    width: 100%;
    padding: 0 0 48px;
  }

  .inde_video1 {
    display: block;
    line-height: 0;
  }

  .inde_video2 {
    display: block;
    width: 100%;
    height: calc(100vh - 128px) !important;
    height: calc(100dvh - 128px) !important;
    min-height: 480px;
  }

  .inde_video3 {
    width: auto;
    margin: 14px 0 0 32px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: #1c1b1b;
  }

  .carttc_box {
    width: 420px;
  }

  footer {
    padding: 48px 32px 28px;
    border-top: 1px solid #ececec;
  }

  .footer_top1 {
    width: 150px;
    margin-right: 48px;
    padding-right: 0;
    border-right: 0;
  }

  .footer_top3_1 {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}

/* ---------- mobile, same breakpoint as the existing PC / H5 switch ---------- */
@media (max-width: 1020px) {
  .bodys {
    padding-top: 56px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  header#H5 {
    top: 0;
    bottom: auto;
    z-index: 30;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    background: #fff;
    box-shadow: none;
  }

  #H5 .header {
    position: relative;
    height: 56px;
  }

  #H5 .header > uni-navigator {
    position: static;
  }

  #H5 .logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 120px !important;
    max-width: none;
    height: 18px !important;
    transform: translate(-50%, -50%) !important;
  }

  #H5 .logo > div {
    width: 100%;
    height: 100%;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }

  .menubtn {
    width: 22px;
    padding: 6px 0;
  }

  .menubtn i {
    width: 18px;
    height: 1px;
    margin: 0;
    background: #1c1b1b;
  }

  .menubtn i:nth-child(2),
  .menubtn i:nth-child(3) {
    margin-top: 5px;
  }

  .heade3_1,
  .heade3_2 {
    width: 18px;
  }

  .heade3_2 {
    margin-left: 16px;
  }

  #H5 .hea_searchs {
    top: 100%;
    bottom: auto;
    padding: 16px;
    box-shadow: none;
    border-top: 1px solid #eee;
  }

  #H5 .hea_search1 {
    width: 100%;
    max-width: none;
  }

  .mobile_dhs {
    padding-top: env(safe-area-inset-top);
  }

  .mobile_dh1 {
    height: 56px;
    padding: 0 16px;
  }

  .mobile_dh2 {
    height: calc(100% - 56px);
  }

  .mobile_dh5 {
    padding: 8px 24px 0;
  }

  .mobile_dh5_1,
  .mobile_dh6_2,
  .mobile_dh8_2 {
    padding: 13px 0;
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .mobile_dh6,
  .mobile_dh8 {
    padding: 8px 24px 0;
  }

  .mobile_dh3 {
    padding: 18px 24px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .inde_video {
    width: 100%;
    padding: 0 0 28px;
  }

  .inde_video1 {
    display: block;
    line-height: 0;
  }

  .inde_video2 {
    display: block;
    width: 100%;
    height: calc(100vh - 120px) !important;
    height: calc(100dvh - 120px) !important;
    min-height: 360px;
  }

  .inde_video3 {
    width: auto;
    margin: 12px 16px 0;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: #1c1b1b;
  }

  .carttc_box {
    width: 100%;
    max-width: 420px;
  }

  footer {
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
    border-top: 1px solid #ececec;
  }

  .footer_tops {
    display: block;
  }

  .footer_top1 {
    width: 100%;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid #eee;
  }

  .footer_top2 {
    display: block;
    width: 100%;
  }

  .footer_top3 {
    width: 100%;
    padding: 0;
    margin-bottom: 8px;
  }

  .footer_top3_1 {
    margin: 0;
    padding: 8px 0;
    font-size: 13px;
  }
}

img.inde_video2 {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain;
  background: #fff;
}

.inde_video2 .uni-video-container,
.inde_video2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage only: the picture starts at the top edge, header sits on it. */
body.pages-index-index .bodys {
  padding-top: 0 !important;
}

body.pages-index-index header#PC,
body.pages-index-index header#H5 {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.pages-index-index #H5 .heade3_1,
body.pages-index-index #H5 .heade3_2,
body.pages-index-index #H5 .heade3_2 uni-image,
body.pages-index-index #H5 .heade3_2 uni-view {
  background: transparent !important;
  background-color: transparent !important;
}

body.pages-index-index #H5 .heade3_1,
body.pages-index-index #H5 .heade3_2 uni-image {
  width: 22px !important;
  height: 22px !important;
}

body.pages-index-index #H5 .heade3_1 > div,
body.pages-index-index #H5 .heade3_2 uni-image > div {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !important;
}

body.pages-index-index #H5 .heade3_1 > div {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b1b' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15.2 15.2L20 20'/%3E%3C/svg%3E") !important;
}

body.pages-index-index #H5 .heade3_2 uni-image > div {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b1b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9h11l-.8 10.5h-9.4z'/%3E%3Cpath d='M9 9V7.2a3 3 0 0 1 6 0V9'/%3E%3C/svg%3E") !important;
}

footer#PC .footer_top1,
footer#H5 .footer_top5 > .footer_top5_1:first-child {
  display: none !important;
}

footer#PC .footer_top2 {
  width: 100% !important;
}
