:root { color-scheme: light; }
.studio-banner-popover { display: none !important; }
[data-static-site="true"] { margin: 0; }

/* Google Material Iconsをローカル配信する。 */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/MaterialIcons-Regular.ttf') format('truetype');
}

/* Footer social icons: use the bundled Font Awesome Brands font locally. */
@font-face {
  font-family: 'Busicom Social Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../images/fa-brands-400-c7865f5e66.woff2') format('woff2'),
       url('../images/fa-brands-400-a50765398b.ttf') format('truetype');
}

.fa-twitter,
.fa-facebook-f,
.fa-instagram,
.fa-youtube-play {
  font-family: 'Busicom Social Icons' !important;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-twitter::before { content: "\\f099" !important; }
.fa-facebook-f::before { content: "\\f39e" !important; }
.fa-instagram::before { content: "\\f16d" !important; }
.fa-youtube-play::before { content: "\\f167" !important; }

/* Literal glyphs avoid CSS escape parsing differences on some hosts. */
.fa-twitter::before { content: "" !important; }
.fa-facebook-f::before { content: "" !important; }
.fa-instagram::before { content: "" !important; }
.fa-youtube-play::before { content: "" !important; }

.material-icons {
  direction: ltr;
  display: inline-flex;
  font-family: 'Material Icons' !important;
  font-feature-settings: 'liga';
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-rendering: optimizeLegibility;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Header dropdown arrows: use a geometric icon so its visible shape is
   centered against the text instead of depending on the font baseline. */
[data-s-c08e707f-9713-4a12-919c-c31627d38893],
[data-s-93dac51b-8d2e-4c55-923b-e41cc19ef2cb],
[data-s-333b5946-c654-4ed7-919e-6530004aa6b8],
[data-s-038296f7-603f-4449-a02c-e11f619d97e5] {
  align-self: center !important;
  background: currentColor !important;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  flex: 0 0 10px !important;
  font-size: 0 !important;
  height: 6px !important;
  line-height: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  translate: none !important;
  width: 10px !important;
}

/* Match the compact Material chevron used inside the original dropdowns. */
header .static-icon--keyboard_arrow_right {
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  flex: 0 0 7px !important;
  font-size: 0 !important;
  height: 7px !important;
  margin-left: 1px;
  margin-right: 3px;
  padding: 0 !important;
  rotate: 45deg;
  width: 7px !important;
}

/* Keep all three desktop dropdown canvases aligned to the header baseline. */
header [data-s-5f0cde4f-559c-410e-8f48-c53139271ae4],
header [data-s-e9dd0e7c-2d77-48b7-974c-088efcb887a1],
header [data-s-0a1f4c78-46e8-42e2-94fc-786ce0578a87] {
  box-sizing: border-box;
  z-index: 2;
}
header [data-s-9ef27adc-55f6-4548-bb36-268583d0107e]:hover [data-s-5f0cde4f-559c-410e-8f48-c53139271ae4],
header [data-s-10764f34-f1ce-4b2c-941e-11ce574483a7]:hover [data-s-e9dd0e7c-2d77-48b7-974c-088efcb887a1],
header [data-s-0a1461e7-8537-47ab-a7d2-8d1ea0423c32]:hover [data-s-0a1f4c78-46e8-42e2-94fc-786ce0578a87] {
  bottom: auto !important;
  top: 57px !important;
}

@media (max-width: 1140px) {
  header [data-s-9ef27adc-55f6-4548-bb36-268583d0107e]:hover [data-s-5f0cde4f-559c-410e-8f48-c53139271ae4],
  header [data-s-10764f34-f1ce-4b2c-941e-11ce574483a7]:hover [data-s-e9dd0e7c-2d77-48b7-974c-088efcb887a1],
  header [data-s-0a1461e7-8537-47ab-a7d2-8d1ea0423c32]:hover [data-s-0a1f4c78-46e8-42e2-94fc-786ce0578a87] {
    top: 56px !important;
  }
}

/* Preserve the original desktop dropdown canvas sizes so the right cards and
   their labels are never clipped by percentage widths inherited from STUDIO. */
@media (min-width: 1023px) {
  header [data-s-5f0cde4f-559c-410e-8f48-c53139271ae4] {
    left: -240px !important;
    max-width: none !important;
    overflow: visible !important;
    right: auto !important;
    width: 700px !important;
  }
  header [data-s-e9dd0e7c-2d77-48b7-974c-088efcb887a1] {
    left: -270px !important;
    max-width: none !important;
    overflow: visible !important;
    right: auto !important;
    width: 700px !important;
  }
  header [data-s-0a1f4c78-46e8-42e2-94fc-786ce0578a87] {
    left: -220px !important;
    max-width: none !important;
    overflow: visible !important;
    right: auto !important;
    width: 520px !important;
  }
}

body.static-mobile-menu-open { overflow: hidden; }
.static-mobile-menu { display: none; }
@media (max-width: 1022px) {
  .static-mobile-menu {
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .25s ease;
    visibility: hidden;
    z-index: 2147483600;
  }
  .static-mobile-menu.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
  .static-mobile-menu__backdrop { background: rgba(0, 0, 0, .28); inset: 0; position: absolute; }
  .static-mobile-menu__panel {
    background: rgba(33, 33, 40, .98);
    box-sizing: border-box;
    color: #fff;
    height: 100%;
    margin-left: auto;
    max-width: 520px;
    overflow-y: auto;
    padding: 70px 28px 40px;
    position: relative;
    transform: translateX(35px);
    transition: transform .3s cubic-bezier(.4,.4,0,1);
    width: min(100%, 520px);
  }
  .static-mobile-menu.is-open .static-mobile-menu__panel { transform: translateX(0); }
  .static-mobile-menu__close {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    padding: 12px;
    position: absolute;
    right: 14px;
    top: 8px;
  }
  .static-mobile-menu a,
  .static-mobile-menu summary {
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    text-decoration: none;
  }
  .static-mobile-menu__top,
  .static-mobile-menu summary,
  .static-mobile-menu__offer {
    border-bottom: 1px solid rgba(255,255,255,.2);
    display: block;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 6px;
  }
  .static-mobile-menu summary { list-style: none; padding-right: 35px; position: relative; }
  .static-mobile-menu summary::-webkit-details-marker { display: none; }
  .static-mobile-menu summary::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: '';
    height: 8px;
    position: absolute;
    right: 10px;
    rotate: 45deg;
    top: 20px;
    transition: rotate .2s ease;
    width: 8px;
  }
  .static-mobile-menu details[open] summary::after { rotate: 225deg; top: 25px; }
  .static-mobile-menu details > div { background: rgba(255,255,255,.06); padding: 5px 12px 10px; }
  .static-mobile-menu details a { display: block; font-size: 14px; padding: 10px 8px 10px 22px; position: relative; }
  .static-mobile-menu details a::before { content: '›'; left: 6px; position: absolute; }
  .static-mobile-menu__entry {
    background: #4c931a;
    border-radius: 8px;
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 26px auto 0;
    padding: 13px 25px;
    text-align: center;
    width: min(100%, 240px);
  }
}

.static-image-modal-trigger { cursor: zoom-in; }
body.static-modal-open { overflow: hidden; }
.static-image-modal {
  align-items: center;
  background: rgba(0, 0, 0, .16);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 0;
  position: fixed;
  z-index: 2147483647;
}
.static-image-modal.is-open { display: flex; }
.static-image-modal__panel {
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  margin: 20px;
  max-height: calc(100vh - 40px);
  max-width: calc(100vw - 40px);
  padding: 0;
  position: relative;
}
.static-image-modal[data-modal-size="wide"] .static-image-modal__panel {
  width: 1260px;
}
.static-image-modal[data-modal-size="portrait"] .static-image-modal__panel {
  width: auto;
}
.static-image-modal__stage {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: auto;
  padding: 10px;
  width: 100%;
}
.static-image-modal__stage img {
  display: block;
  height: auto;
  max-height: calc(100vh - 60px);
  max-width: 100%;
  object-fit: contain;
}
.static-image-modal[data-modal-size="wide"] .static-image-modal__stage img { width: 100%; }
.static-image-modal[data-modal-size="portrait"] .static-image-modal__stage img { width: 457px; }
.static-image-modal__close {
  align-items: center;
  background: #666;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 300 28px/1 Arial, sans-serif;
  height: 50px;
  justify-content: center;
  padding: 0 0 2px;
  position: absolute;
  right: -9px;
  top: -33px;
  width: 50px;
  z-index: 3;
}

@media (max-width: 840px) {
  .static-image-modal__close { right: -8px; top: -35px; }
}
@media (max-width: 540px) {
  .static-image-modal__close {
    font-size: 20px;
    height: 38px;
    right: -7px;
    top: -15px;
    width: 37px;
  }
}
@media (max-width: 320px) {
  .static-image-modal__close { height: 30px; right: -9px; top: -18px; width: 30px; }
}

/* The original runtime revealed these elements with an IntersectionObserver.
   In the static build they must be visible without that runtime. */
[data-type="carousel"] { position: relative; }
[data-type="carousel"] > .static-hero-slide {
  inset: 0;
  position: absolute !important;
  will-change: transform;
}
[data-type="carousel"] > .static-hero-slide .image::before {
  background-image: var(--static-slide-image) !important;
}
