img[src="/__custom/makochin-wordmark.png"],
img[data-src="/__custom/makochin-wordmark.png"] {
  display: block;
  width: 100%;
  height: auto;
}

.mv .mv_button a::after {
  background-image: url("/__custom/quantum-cat-hero.webp");
}

/* Saturn-ring motif for the large hero CTA. The opaque planet hides the
   middle of each ellipse, leaving clean rings without crossing the label. */
.mv .mv_button {
  isolation: isolate;
}

.mv .mv_button::before,
.mv .mv_button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 154px;
  height: 42px;
  border: 2px solid rgba(224, 247, 252, 0.98);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(18, 51, 67, 0.7);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-14deg);
}

.mv .mv_button::after {
  width: 166px;
  height: 50px;
  border-width: 2px;
  border-color: rgba(18, 51, 67, 0.84);
  box-shadow: none;
}

.mv .mv_button a {
  z-index: 1;
}

#js-loading.is-first::before {
  background-image: url("/__custom/quantum-cat-hero.webp");
}

.top_nostimes .video-lightbox-trigger .img {
  position: relative;
}

.top_nostimes .video-lightbox-trigger .img::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 72px;
  height: 23px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(18, 51, 67, 0.42);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-14deg);
}

.top_nostimes .video-lightbox-trigger .img::before {
  content: "▶";
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: background-color 180ms ease-out;
}

.top_nostimes .video-lightbox-trigger:hover .img::before,
.top_nostimes .video-lightbox-trigger:focus-visible .img::before {
  background: rgba(0, 0, 0, 0.9);
}

.top_nostimes .video-lightbox-trigger:hover .img img {
  transform: scale(1.001);
}

.video-lightbox {
  width: min(92vw, 1080px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}

.video-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
}

.video-lightbox__frame {
  aspect-ratio: 16 / 9;
}

.video-lightbox__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.video-lightbox__close:focus-visible {
  outline: 3px solid #3188a3;
  outline-offset: 3px;
}

@media screen and (max-width: 767px) {
  .mv .mv_button {
    right: 28px;
  }

  .mv .mv_button::before {
    width: 146px;
    height: 38px;
  }

  .mv .mv_button::after {
    width: 154px;
    height: 44px;
  }

  .top_nostimes .video-lightbox-trigger .img::after {
    width: 54px;
    height: 18px;
  }

  .top_nostimes .video-lightbox-trigger .img::before {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .video-lightbox {
    width: calc(100vw - 24px);
  }

  .video-lightbox__close {
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top_nostimes .video-lightbox-trigger .img::before {
    transition: none;
  }
}

/* Official channel banner: real event photograph, preserved panoramic layout. */
.section_pj {
  background-image:
    linear-gradient(rgba(8, 25, 38, 0.56), rgba(8, 25, 38, 0.56)),
    url("/__custom/official-channels-desktop.avif");
  background-position: center;
  background-size: cover;
}

.section_pj.soon::before {
  content: "最新情報を\A発信中！";
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0 14px 22px;
  color: #fff;
  background: #3189a7;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 60% 78%, 50% 100%, 40% 78%, 0 78%);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: pre;
}

.section_pj .ttl_pj {
  max-width: 92%;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(2rem, 4.45vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-wrap: balance;
  text-shadow: 0 2px 8px rgba(3, 15, 24, 0.52);
}

/* The original telephone treatment made the LINE CTA oversized and misleading. */
.footer_button .line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #303030;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.94em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.footer_button .line::before {
  content: "LINE";
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  color: #fff;
  background: #06c755;
  font-family: Arial, sans-serif;
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer_button:focus-visible {
  outline: 3px solid #3189a7;
  outline-offset: 3px;
}

@media screen and (max-width: 767px) {
  .footer_button .line {
    gap: 8px;
    font-size: 0.9em;
  }

  .footer_button .line::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 0.42rem;
  }
}

@media screen and (max-width: 767px) {
  .section_pj {
    background-image:
      linear-gradient(rgba(8, 25, 38, 0.58), rgba(8, 25, 38, 0.58)),
      url("/__custom/official-channels-mobile.avif");
  }

  .section_pj.soon::before {
    padding: 0 9px 16px;
    font-size: 0.7rem;
  }

  .section_pj .ttl_pj {
    max-width: 88%;
    font-size: clamp(1.35rem, 6vw, 1.8rem);
    letter-spacing: 0.06em;
  }
}

.top_about .shirokuma .img img {
  animation: quantum-cat-brew 3.2s ease-in-out infinite;
  transform-origin: 50% 90%;
}

.top_kurashi .sofa-kuma {
  animation: quantum-cat-read 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.section_pj .taiya {
  display: none;
}

.section_pj.animated .shirokuma_pj {
  animation: shirokuma_pj 10s linear forwards, quantum-cat-flight 0.9s ease-in-out infinite;
}

@media screen and (max-width: 767px) {
  .section_pj.animated .shirokuma_pj {
    animation: shirokuma_pj 5s linear forwards, quantum-cat-flight 0.9s ease-in-out infinite;
  }
}

@keyframes quantum-cat-brew {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-0.6deg); }
}

@keyframes quantum-cat-read {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(1px) scale(1.005); }
}

@keyframes quantum-cat-flight {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-3px) rotate(0.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .top_about .shirokuma .img img,
  .top_kurashi .sofa-kuma,
  .section_pj.animated .shirokuma_pj {
    animation: none;
  }
}

.header_logo {
  width: 240px;
}

.header_fixed .logo {
  width: 150px;
}

.footer_logo {
  width: 70%;
  max-width: 320px;
}

@media screen and (max-width: 767px) {
  .header_logo {
    width: 145px;
    padding: 4px 8px 6px;
  }

  .footer_logo {
    width: 68%;
  }
}
