@charset "UTF-8";

/* ポータルメニュー（ポータル・/anime/・/cinema/ 共通。他CSSに依存しない） */
.pm {
  --pm-yellow: #feee4a;
  --pm-cream: #fffeee;
  --pm-brown: #4a190c;
  --pm-navy: #044266;
  --pm-font-en: "Bowlby One", sans-serif;
  --pm-font-jp: "M PLUS Rounded 1c", sans-serif;
  --pm-z: 1000;
  font-family: var(--pm-font-jp);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--pm-brown);
}

.pm *,
.pm *::before,
.pm *::after {
  box-sizing: border-box;
}

.pm ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm p {
  margin: 0;
}

.pm a {
  color: inherit;
  text-decoration: none;
}

.pm img {
  max-width: none;
  vertical-align: middle;
}

/* ---------- ボタン ---------- */
.pm-btn {
  position: fixed;
  top: 0;
  right: 0;
  z-index: calc(var(--pm-z) + 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 86px;
  height: 86px;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: var(--pm-yellow);
  border: 0;
  border-radius: 0 0 0 20px;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.22));
  cursor: pointer;
}

.pm-btn__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 14px;
}

.pm .pm-btn__icon img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm .pm-btn__icon .pm-btn__icon-close {
  display: none;
  width: 14px;
  height: 14px;
}

.pm-btn__txt {
  font-size: 12px;
  font-weight: 900;
  line-height: 14px;
  letter-spacing: -0.01em;
  text-align: center;
}

.pm.is-open .pm-btn__icon .pm-btn__icon-open {
  display: none;
}

.pm.is-open .pm-btn__icon .pm-btn__icon-close {
  display: block;
  margin: auto;
}

/* Modaal（オーバーレイ z-index: 999）を開いている間は、ボタンをモーダルの背面へ。
   インライン型は background_scroll 指定の都合で modaal-noscroll が付かないため、:has でも拾う（別ルールにして、非対応ブラウザでも上が効くようにする） */
.modaal-noscroll .pm-btn {
  z-index: 900;
}

body:has(.modaal-wrapper) .pm-btn {
  z-index: 900;
}

/* ---------- パネル ---------- */
.pm-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--pm-z);
  width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--pm-yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.pm-panel[hidden] {
  display: block;
  visibility: hidden;
}

.pm.is-open .pm-panel {
  visibility: visible;
  transform: translateY(0);
}

.pm-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 39px;
  max-width: calc(1112px + 60px);
  margin-inline: auto;
  padding: 34px 30px;
}

.pm-panel__head {
  display: flex;
  align-items: center;
  gap: 59px;
  height: 30px;
}

.pm-label,
.pm-links a,
.pm-sns a {
  font-size: 19px;
  line-height: normal;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pm-label,
.pm-links a,
.pm-sns a.is-en {
  font-family: var(--pm-font-en);
  font-weight: 400;
}

.pm-sns a {
  font-weight: 800;
}

.pm-label {
  position: relative;
}

.pm-label__arrow {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
}

.pm-links {
  display: flex;
  gap: 59px;
}

.pm-sns {
  display: flex;
  gap: 29px;
  margin-left: 19px;
}

.pm-sns a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pm-sns img {
  width: 25px;
  height: auto;
}

.pm-links a,
.pm-sns a,
.pm-sites a {
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .pm-links a:hover,
  .pm-sns a:hover,
  .pm-sites a:hover {
    opacity: 0.7;
  }
}

/* ---------- 各サイト ---------- */
.pm-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pm-sites a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 200px;
}

.pm-sites__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 109px;
  overflow: hidden;
  background: var(--pm-cream);
  border-radius: 20px;
}

.pm-sites__logo--anime img {
  width: 114px;
  height: auto;
}

.pm-sites__logo--cinema2 img {
  width: 150px;
  height: auto;
}

.pm-sites__dummy {
  display: grid;
  place-items: center;
  width: 150px;
  height: 59px;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  background: #d3d3d3;
}

.pm-sites__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.21;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background: var(--pm-navy);
  border-radius: 11px;
}

/* 映画1作目ロゴ（Figma上で分割されているパーツを元の位置で重ねる） */
.pm-logo-cinema1 {
  position: relative;
  display: block;
  width: 165px;
  height: 85px;
  overflow: hidden;
}

.pm-logo-cinema1 img {
  position: absolute;
  display: block;
}

.pm-logo-cinema1__a { left: 12.74%; top: 0;      width: 13.57%;  height: 17.73%; }
.pm-logo-cinema1__b { left: 16.76%; top: 21.34%; width: 65.11%;  height: 63.43%; }
.pm-logo-cinema1__c { left: 24.43%; top: 89.82%; width: 49.62%;  height: 10.17%; }
.pm-logo-cinema1__d { left: 15.49%; top: 4.61%;  width: 7.94%;   height: 6.44%; }
.pm-logo-cinema1__e { left: -0.01%; top: 71.65%; width: 100.01%; height: 19.13%; }

/* ---------- SP ---------- */
@media (max-width: 767px) {
  .pm-btn {
    gap: 8px;
    width: 55px;
    height: 52px;
    border-radius: 0 0 0 24px;
    filter: drop-shadow(0 2px 6.5px rgba(0, 0, 0, 0.22));
  }

  .pm--sp-left .pm-btn {
    right: auto;
    left: 0;
    border-radius: 0 0 24px 0;
  }

  .pm--sp-left .pm-panel__inner {
    padding-top: 72px;
  }

  .pm-btn__icon {
    width: 12px;
    height: 9px;
  }

  .pm-btn__txt {
    font-size: 8px;
    line-height: 9.1px;
  }
}

/* ---------- パネルをSPの並びにする幅（横並びだと右上のボタンに重なる） ---------- */
@media (max-width: 1099px) {
  .pm-panel__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
    padding: 40px 30px;
  }

  .pm-panel__head {
    display: contents;
  }

  .pm-label,
  .pm-links a,
  .pm-sns a {
    font-size: 16px;
  }

  .pm .pm-label {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    margin-bottom: 4px;
  }

  .pm-label__arrow {
    left: auto;
    right: -14px;
    bottom: auto;
    top: 10px;
    width: 6px;
    height: 6px;
    transform: none;
  }

  .pm .pm-sites {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 16px;
    margin-bottom: 38px;
  }

  .pm-sites a {
    gap: 8px;
    width: 156px;
  }

  .pm-sites__logo {
    height: 85px;
    border-radius: 10px;
  }

  .pm-sites__logo--anime img {
    width: 89px;
  }

  .pm-sites__logo--cinema2 img {
    width: 117px;
  }

  .pm-sites__dummy {
    width: 117px;
    height: 46px;
    font-size: 16px;
  }

  .pm-sites__label {
    width: 100%;
    min-height: 37px;
    font-size: 12px;
    border-radius: 8px;
  }

  .pm-logo-cinema1 {
    width: 128.7px;
    height: 66.3px;
  }

  .pm .pm-links,
  .pm .pm-sns {
    grid-row: 3;
    flex-direction: column;
    gap: 16px;
    margin: 0;
  }

  .pm-sns img {
    width: 20px;
  }
}
