/* Generated from assets/scss/legacy.scss. Edit SCSS, then run npm run build in .style-build. */
/* Compatibility for HTML already stored in WordPress. Scoped to avoid changing new components. */
.legacy-content {
  overflow-wrap: anywhere;
}

.legacy-content .wp, .legacy-content .animated {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.legacy-content section + section, .legacy-content .section-body + .section-body {
  margin-top: var(--section-gap);
}

.legacy-content .row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}
.legacy-content .row > * {
  grid-column: span 12;
  min-width: 0;
}
.legacy-content .row > .col-6 {
  grid-column: span 6;
}
.legacy-content .row > .col-12 {
  grid-column: span 12;
}
.legacy-content .row > [class*=offset-] {
  margin-left: 0;
}

.legacy-content .section-header {
  margin-bottom: 32px;
}

.legacy-content .section-title {
  margin-bottom: 16px;
}

.legacy-content .section-sub-title {
  color: var(--muted);
  margin-bottom: 24px;
}

.legacy-content .slim-content {
  max-width: 760px;
}

.legacy-content .section-body {
  margin-top: 40px;
}
.legacy-content .section-body:first-child {
  margin-top: 0;
}

.legacy-content .banner {
  border-block: 1px solid var(--line);
  padding-block: 40px;
}

.product-app-xremo #setup-guide > .banner.howtosetup {
  border-block: 0;
}

.legacy-content .banner .section-title {
  font-size: 26px;
}

.legacy-content .faq-list dl {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin: 0;
}

.legacy-content dt {
  font-weight: 600;
  margin: 0 0 16px;
}

.legacy-content dd {
  margin: 0 0 48px;
}
.legacy-content dd:last-child {
  margin-bottom: 0;
}

.legacy-content .faq-list dt {
  font-size: 17px;
}
.legacy-content .faq-list dd {
  font-size: 15px;
}

.legacy-content .features h3 {
  color: var(--accent);
  margin-bottom: 32px;
}
.legacy-content .features dl {
  margin: 0;
}

.legacy-content .models {
  margin-top: 24px;
}

.legacy-content .img-fluid {
  width: 100%;
  height: auto;
}
.legacy-content .img-size-maxhalf {
  max-width: 260px;
  width: 100%;
}
.legacy-content .inline-icon {
  display: inline-block;
  width: auto;
  max-height: 1.5em;
  vertical-align: middle;
}
.legacy-content span.calendar {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-inline: 0.25em;
  vertical-align: -0.2em;
  background: url("../../images/apps/calun/calendar.svg") center/contain no-repeat;
}
.legacy-content .marker::before {
  display: inline-block;
  content: "";
  width: 2rem;
  height: 2rem;
  vertical-align: -0.65rem;
  margin-right: 0.5rem;
  background: center/contain no-repeat;
}
.legacy-content .marker-a::before {
  background-image: url("../../images/apps/letters/marker-a.svg");
}
.legacy-content .marker-b::before {
  background-image: url("../../images/apps/letters/marker-b.svg");
}
.legacy-content .marker-c::before {
  background-image: url("../../images/apps/letters/marker-c.svg");
}

.product-app-edf .legacy-content .characters {
  position: relative;
  width: 150px;
  height: 160px;
  margin: 48px 0 0 auto;
}
.product-app-edf .legacy-content .characters img {
  position: absolute;
  width: 100px;
  height: auto;
}

.product-app-edf .legacy-content #akechi {
  right: 50px;
  bottom: 30px;
}

.product-app-edf .legacy-content #uzupon {
  right: 0;
  bottom: 0;
}

.legacy-content .text-center {
  text-align: center;
}

.legacy-content .text-left {
  text-align: left;
}

.legacy-content .note {
  font-size: 14px;
}

.legacy-content .card {
  padding: 24px;
  border: 1px solid var(--line);
}

.legacy-content .sibling-page-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.legacy-content .sibling-page-list li {
  border-top: 1px solid var(--line);
  padding-block: 24px;
}
.legacy-content .sibling-page-list a {
  font-size: 19px;
  text-decoration: none;
}
.legacy-content .sibling-page-list .note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.legacy-content .badge-no {
  position: relative;
}
.legacy-content .badge-no::before {
  position: absolute;
  top: 8px;
  left: 8px;
  color: white;
  background: var(--accent);
  padding: 2px 12px;
  border-radius: 4px;
  z-index: 1;
}

.legacy-content .badge-no-1::before {
  content: "1";
}

.legacy-content .badge-no-2::before {
  content: "2";
}

.legacy-content .badge-no-3::before {
  content: "3";
}

.legacy-content .badge-no-4::before {
  content: "4";
}

.legacy-content .badge-no-5::before {
  content: "5";
}

.legacy-content .badge-no-6::before {
  content: "6";
}

.legacy-content .badge-no-7::before {
  content: "7";
}

.legacy-content h2:not(:first-child) {
  margin-top: 72px;
}

.legacy-content h3:not(:first-child) {
  margin-top: 48px;
}

.legacy-content .row h3:first-child {
  margin-top: 0;
}

.legacy-content .owl-carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.legacy-content .owl-carousel.is-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
}
.legacy-content .owl-carousel.is-carousel > * {
  flex: 0 0 calc((100% - 40px) / 2);
  scroll-snap-align: start;
  min-width: 0;
}

.legacy-content .unit {
  border-top: 1px solid var(--line);
  padding-block: 24px;
}
.legacy-content .unit .name {
  font-size: 13px;
  color: var(--muted);
}
.legacy-content .unit h4 {
  font-size: 21px;
  margin-top: 24px;
}
.legacy-content .unit .stars {
  color: #966327;
}
.legacy-content .unit .stars span {
  color: var(--line);
}
.legacy-content .unit .icon-app {
  width: 48px;
  height: 48px;
}
.legacy-content .unit .rate {
  font-size: 13px;
}
.legacy-content .unit p {
  font-size: 15px;
}

.legacy-content .icon-stamp {
  max-width: 260px;
}

.legacy-content .line-stamp {
  margin-bottom: 32px;
}

.legacy-content .frame-iphone {
  --phone-width: 260px;
  --phone-inset: calc(var(--phone-width) * 5 / 225);
  --phone-offset: calc(var(--phone-width) * 10 / 225);
  position: relative;
  width: var(--phone-width);
  max-width: 100%;
  aspect-ratio: 1/2;
  margin: 0 auto;
  isolation: isolate;
  background: #000;
  border-radius: 13%/6.5%;
}

/* Preserve the source screenshots' individual fitting instead of giving every app the same inset. */
.legacy-content .frame-iphone > span {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 98%;
  height: 99%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}
.legacy-content .frame-iphone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../images/apps/iphone-x-frame.png") center/100% 100% no-repeat;
  z-index: 5;
  pointer-events: none;
}

.legacy-content .frame-iphone16 {
  aspect-ratio: 225/465;
}
.legacy-content .frame-iphone16::before {
  background-image: url("../../images/apps/iphone-16-frame.png");
}

.legacy-content .frame-iphone .edf {
  background-image: url("../../images/apps/edf/app-screenshot-1.jpg");
}

.lang-en .legacy-content .frame-iphone .edf {
  background-image: url("../../images/apps/edf/app-screenshot-1_en.jpg");
}

.legacy-content .frame-iphone .zremo {
  width: 95%;
  background-position: right var(--phone-offset);
  background-image: url("../../images/apps/zremo/app-screenshot-1.jpg");
}

.lang-en .legacy-content .frame-iphone .zremo {
  background-image: url("../../images/apps/zremo/app-screenshot-1_en.jpg");
}

.legacy-content .frame-iphone .zremo-en {
  background-image: url("../../images/apps/zremo/app-screenshot-1_en.jpg");
}
.legacy-content .frame-iphone .xremo {
  width: 95%;
  height: 97%;
  background-position: var(--phone-offset) var(--phone-offset);
  background-image: url("../../images/apps/xremo/app-screenshot-2.jpg");
}

.lang-en .legacy-content .frame-iphone .xremo {
  background-image: url("../../images/apps/xremo/app-screenshot-2_en.jpg");
}

.legacy-content .frame-iphone .mwcalc {
  width: 100%;
  height: 100%;
  background-position: var(--phone-inset) 0;
  background-image: url("../../images/apps/mwcalc/screenshot-ja.jpg");
}

.lang-en .legacy-content .frame-iphone .mwcalc {
  background-image: url("../../images/apps/mwcalc/screenshot-en.jpg");
}

.legacy-content .frame-iphone .calun {
  width: 100%;
  height: 100%;
  background-position: var(--phone-inset) 0;
  background-image: url("../../images/apps/calun/screenshot-ja.jpg");
}

.lang-en .legacy-content .frame-iphone .calun {
  background-image: url("../../images/apps/calun/screenshot-en.jpg");
}

.legacy-content #inframe-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-inline: var(--phone-inset);
  object-fit: fill;
  border-radius: 13%/6.5%;
  z-index: 1;
}

.legacy-content .frame-iphone.is-playing .calun {
  visibility: hidden;
}

/* Original Calun mask: video (1), still (2), status-area overlay (4), device frame (5).
   Scale the original 29px / 225px mask with the phone; keep it active while the video plays. */
.product-app-calun .legacy-content .frame-iphone::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--phone-width) * 29 / 225);
  background: url("../../images/apps/calun/screenshot-ja.jpg") top center/100% auto no-repeat;
  border-radius: var(--phone-offset) var(--phone-offset) 0 0;
  z-index: 4;
  pointer-events: none;
}

.lang-en.product-app-calun .legacy-content .frame-iphone::after {
  background-image: url("../../images/apps/calun/screenshot-en.jpg");
}

.product-app-calun .legacy-content .features h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-app-calun .legacy-content .features h3::before {
  content: "";
  flex: 0 0 28px;
  height: 28px;
  border-radius: 6px;
  background: #f5f5ee center/contain no-repeat;
}

.product-app-calun .legacy-content .features-free h3::before {
  background-image: url("../../images/apps/calun/calun-icon5.svg");
}

.product-app-calun .legacy-content .features-plus h3::before {
  background-image: url("../../images/apps/calun/calun-icon5plus.svg");
}

.product-app-xremo .sibling-link-xremo .page_item a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  overflow-wrap: break-word;
}
.product-app-xremo .sibling-link-xremo .page_item a::before {
  content: "";
  height: 48px;
  background: center/contain no-repeat;
  border-radius: 12px;
}
.product-app-xremo .sibling-link-xremo a[href*="/guide-homekit/"]::before {
  background-image: url("../../images/apps/xremo/icon-home.webp");
}
.product-app-xremo .sibling-link-xremo a[href*="/guide-web-api/"]::before {
  background-image: url("../../images/apps/xremo/icon-webapi.webp");
}
.product-app-xremo .sibling-link-xremo a[href*="/to-z-remo-users/"]::before {
  background-image: url("../../images/common/icon-zremo.png");
}

/* These stored 5/7 pairs need one real gutter, including inside another pair. */
.product-app-xremo .document-content .row:has(> .col-sm-5):has(> .col-sm-7) {
  display: flex;
  flex-wrap: wrap;
}

.product-app-xremo .document-content .row:has(> .col-sm-7) > .col-sm-5 {
  flex: 5 1 0;
  min-width: min(100%, 180px);
}

.product-app-xremo .document-content .row:has(> .col-sm-5) > .col-sm-7 {
  flex: 7 1 0;
  min-width: min(100%, 180px);
}

@media (max-width: 575px) {
  .product-app-xremo .document-content .row:has(> .col-sm-5):has(> .col-sm-7) > * {
    flex-basis: 100%;
  }
}
.policy-banner .section-title {
  font-size: 20px;
}
.policy-banner .section-sub-title {
  font-size: 14px;
}

@media (min-width: 761px) {
  .policy-banner .banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
  }
  .policy-banner .banner > .button {
    justify-self: end;
  }
  .policy-banner .section-sub-title {
    margin-bottom: 0;
  }
}
@media (min-width: 576px) {
  .legacy-content .row > .col-sm-4 {
    grid-column: span 4;
  }
  .legacy-content .row > .col-sm-5 {
    grid-column: span 5;
  }
  .legacy-content .row > .col-sm-6 {
    grid-column: span 6;
  }
  .legacy-content .row > .col-sm-7 {
    grid-column: span 7;
  }
  .legacy-content .row > .col-sm-8 {
    grid-column: span 8;
  }
}
@media (min-width: 761px) {
  .legacy-content .row > .col-md-3 {
    grid-column: span 3;
  }
  .legacy-content .row > .col-md-4 {
    grid-column: span 4;
  }
  .legacy-content .row > .col-md-5 {
    grid-column: span 5;
  }
  .legacy-content .row > .col-md-6 {
    grid-column: span 6;
  }
  .legacy-content .row > .col-md-8 {
    grid-column: span 8;
  }
  .legacy-content .row > .offset-md-1.col-md-6 {
    grid-column: span 7;
  }
  .legacy-content .d-none {
    display: none;
  }
  .legacy-content .d-md-block {
    display: block;
  }
}
@media (min-width: 992px) {
  .legacy-content .row > .col-lg-5 {
    grid-column: span 5;
  }
  .legacy-content .row > .col-lg-7 {
    grid-column: span 7;
  }
}
.document-content .row > .col-md-3 {
  grid-column: span 6;
}

@media (max-width: 760px) {
  .legacy-content .row {
    gap: 48px 24px;
  }
  .legacy-content .row > .col-6 {
    grid-column: span 12;
  }
  .legacy-content .row .row {
    gap: 32px 20px;
  }
  .legacy-content .frame-iphone {
    --phone-width: 240px;
    margin-block: 8px 24px;
  }
  .product-app-edf .legacy-content .characters {
    margin-inline: auto;
  }
  .legacy-content .owl-carousel {
    grid-template-columns: 1fr;
  }
  .legacy-content .owl-carousel.is-carousel {
    gap: 24px;
  }
  .legacy-content .owl-carousel.is-carousel > * {
    flex-basis: 90%;
  }
  .legacy-content .d-none {
    display: none;
  }
  .legacy-content .hidden-xs, .legacy-content .hidden-sm {
    display: none;
  }
  .legacy-content h2:not(:first-child) {
    margin-top: 56px;
  }
}
