/* 「ポケモンとアスリートのわざ展」（THE WORLD OF MOVES）ページ専用スタイル */

html {
    scroll-padding-top: 80px;
}

.mt20 {
    margin-top: 20px;
}

/* ベースレイアウト */
.poke2026 {
    padding-bottom: 120px;

    @media only screen and (max-width: 980px) {
        padding-bottom: 80px;
    }
}

.poke2026_inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;

}

.poke2026_lead {
    width: 80%;
    margin-inline: auto;
    font-weight: bold;
    line-height: 2;
    font-size: 2rem;
    text-align: left;

    @media only screen and (max-width: 980px) {
        margin-top: 20px;
        width: 100%;
    }
}

.poke2026_leadTxt + .poke2026_leadTxt{
  margin-top: 1.5em;
}

.poke2026_leadTxt br{
  @media only screen and (max-width: 980px) {
    display: none;
  }
}

.poke2026_kv {
    margin-top: 0;
    background-color: #f8f8f8;
    border-bottom: solid 80px #e31c3f;

    img {
        display: block;
        margin: 0 auto;
        max-width: 1200px;
        width: 100%;
    }

    @media only screen and (max-width: 980px) {
        border-bottom-width: 60px;
        border-top: solid 1px #e9e9e9;
    }
}

.poke2026_section {
  margin-top: 80px;

    @media only screen and (max-width: 980px) {
        margin-top: 60px;
    }
}

.poke2026_sectionTtl {
    position: relative;
    font-size: 2.6rem;
    font-weight: bold;
    margin-bottom: 5px;

    &::before,
    &::after {
        position: absolute;
        bottom: -5px;
        display: block;
        content: "";
        height: 4px;
    }

    &::before {
        width: 100%;
        background-color: #e9e9e9;
    }

    &::after {
        width: 80px;
        background-color: #e31c3f;
    }
}

.poke2026_sectionTxt {
    margin-top: 30px;
    font-size: 1.8rem;
    line-height: 1.8;
}

.poke2026_sectionDl {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 18% 1fr;
    row-gap: 20px;
    column-gap: 20px;
    align-items: start;

    & + & {
        margin-top: 20px;

        @media only screen and (max-width: 980px) {
            margin-top: 10px;
        }
    }

    @media only screen and (max-width: 980px) {
        margin-top: 40px;
        display: block;
    }
}

.poke2026_sectionDt {
    width: 100%;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    height: 100%;

    @media only screen and (max-width: 980px) {
        text-align: left;
        display: block;
    }
}

.poke2026_sectionDtLabel {
    background-color: #f5f5f5;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;

    @media only screen and (max-width: 980px) {
        justify-content: start;
    }
}

.poke2026_sectionDd {
    flex: 1;
    padding: 10px;

    p + p {
        margin-top: 20px;

        @media only screen and (max-width: 980px) {
            margin-top: 10px;
        }
    }
}

.poke2026_DdPhoto {
    margin-bottom: 20px;
    

    img {
        width: 100%;
        max-width: 600px;
    }
}

.poke2026_bold {
    font-size: 1.8rem;
    font-weight: bold;
}

.poke2026_ambassador .poke2026_DdPhoto{
    max-width: max-content;
    margin-top: 20px;
    margin-inline: auto;
    text-align: center;
    border: 1px solid #e9e9e9;
}


/* バナーリンク（ポケモンスポーツパーク） */
.poke2026_banner {
    display: block;
    max-width: 60%;
    margin-top: 20px;
    margin-inline: auto;
    text-align: center;
    border: 1px solid #e9e9e9;

    @media only screen and (max-width: 980px) {
    max-width: 100%;
    }

    img {
        display: block;
        width: 100%;
    }

    &:hover{
        opacity: 0.6;
    }
}

/* オリジナルグッズ・メニュー */
.poke2026_productItem {
    display: grid;
    gap: 20px;
    padding: 30px 0;
    grid-template-columns: 300px 1fr;
    border-bottom: 1px solid #e9e9e9;

    img {
        max-width: 100%;
    }

    @media only screen and (max-width: 980px) {
        grid-template-columns: 1fr;
    }
}

.poke2026_productName {
    font-weight: bold;
    font-size: 1.8rem;
    line-height: 1.8;
}

.poke2026_productLead{
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.6;
  margin-top: 10px;
}

.poke2026_productContent {
      font-size: 1.8rem;
    margin-top: 10px;
}

.poke2026_productNote {
    font-size: 1.6rem;
}

.poke2026_productNote + .poke2026_productName{
  margin-top: 15px;
}

.poke2026_productComingSoonText {
    margin-top: 10px;
    color: #e31c3f;
    font-size: 1.8rem;
    font-weight: bold;
}

/* イベントのタイトルをクリックして詳細を開閉するアコーディオン */
.poke2026_eventAccordionBtn {
    margin-top: 0;
}

.poke2026_eventAccordionTrigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    border-top: 1px solid #e9e9e9;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;

    &[aria-expanded="true"] .poke2026_eventAccordionIcon::after {
        opacity: 0;
    }


    &:hover{
      text-decoration: underline;
    }
}

.poke2026_events .js-accordion{
   &:nth-of-type(1) .poke2026_eventAccordionTrigger{
    border-top: none;
  }

  &:last-of-type {
    border-bottom: 1px solid #e9e9e9;
  }
}

.poke2026_eventAccordionTitle {
    position: relative;
    font-size: 2rem;
    font-weight: bold;
    padding-right: 20px;

}

.poke2026_eventAccordionIcon {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;

    &::before,
    &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        background-color: #e31c3f;
        transform: translate(-50%, -50%);
        transition: opacity 0.2s ease;
        border-radius: 50px;
    }

    &::before {
        width: 80%;
        height: 3px;
    }

    &::after {
        width: 3px;
        height: 80%;
    }
}

.poke2026_events .poke2026_sectionTtl{
  margin-bottom: 30px;
}

.poke2026_eventComingSoon {
    grid-column: 1 / -1;
    padding: 40px 20px;
    background-color: #f5f5f5;
    color: #e31c3f;
    font-size: 2.4rem;
    font-weight: bold;
    text-align: center;

    @media only screen and (max-width: 980px) {
        padding: 30px 15px;
    }
}

.poke2026_events .poke2026_sectionDl{
  padding: 30px 0;
  margin-top: 0;
  row-gap: 10px;
  column-gap: 15px;
  border-top: 1px dashed #e9e9e9;

  @media only screen and (max-width: 980px) {
    padding: 15px 0;
  }
}

.poke2026_events .poke2026_DdPhoto{
  margin-bottom: 0;
}

/* 画像クリックでフルスクリーン表示するモーダル */
.poke2026_modal img {
    cursor: zoom-in;
}

.poke2026_modalOverlay {
    display: none;
    position: fixed;
    z-index: 10001;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);

    img {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90vw;
        max-height: 90vh;
        width: auto;
        height: auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }
}

.poke2026_modalClose {
    display: block;
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 10002;
    font-size: 4rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;

    @media only screen and (max-width: 980px) {
        top: 10px;
        right: 15px;
        font-size: 3rem;
    }
}

.poke2026_trademark{
    font-size: 1.2rem;
    text-align: center;
    width: 80%;
    margin-inline: auto;
    margin-top: 100px;
    color: #999;

    @media only screen and (max-width: 980px) {
       margin-top: 50px;
    }
}

.poke2026_quiz_img{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;

    img{

    width: 100%;
    max-width: 400px;
    }
}

/* 企画展詳細・画像スライダー */
.poke2026_exhibitionBlock {
    margin-top: 60px;

    @media only screen and (max-width: 980px) {
        margin-top: 45px;
    }
}

.poke2026_exhibitionTtl {
    padding-left: 16px;
    border-left: 6px solid #e31c3f;
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.5;

    & + .poke2026_sectionTxt {
        margin-top: 20px;
    }
}

.poke2026_gallery {
    position: relative;
    margin-top: 30px;
    padding: 0 52px;

    @media only screen and (max-width: 980px) {
        padding: 0;
    }
}

.poke2026_galleryViewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;

    &::-webkit-scrollbar {
        display: none;
    }

    &.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
        scroll-snap-type: none;
    }
}

.poke2026_galleryList {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 20px;
    margin: 0;
    padding: 10px 12px;
    list-style: none;

    @media only screen and (max-width: 980px) {
        gap: 15px;
    }
}

.poke2026_galleryItem {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    scroll-snap-align: start;
}

.poke2026_galleryOpen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: clamp(200px, 44vw, 480px);
    padding: 0;
    overflow: visible;
    border: none;
    background: transparent;
    cursor: grab;

    img {
        display: block;
        width: auto;
        height: 100%;
        transition: transform 0.25s ease;
        -webkit-user-drag: none;
    }

    &:hover img,
    &:focus-visible img {
        transform: scale(1.02);
    }

    &:focus-visible {
        outline: 3px solid #e31c3f;
        outline-offset: -3px;
    }

    .is-dragging & {
        cursor: grabbing;
    }
}

.poke2026_galleryNav,
.poke2026_galleryModalNav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e31c3f;
    cursor: pointer;
    transform: translateY(-50%);

    &::before {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 11px;
        height: 11px;
        border-top: 3px solid #fff;
        border-right: 3px solid #fff;
        content: "";
    }

    &:focus-visible {
        outline: 3px solid #111;
        outline-offset: 2px;
    }
}

.poke2026_galleryNav {
    z-index: 1;

    @media only screen and (max-width: 980px) {
        display: none;
    }
}

.poke2026_galleryNav--prev {
    left: 0;

    &::before {
        transform: translate(-35%, -50%) rotate(-135deg);
    }
}

.poke2026_galleryNav--next {
    right: 0;

    &::before {
        transform: translate(-65%, -50%) rotate(45deg);
    }
}

/* スライダー画像の拡大表示 */
body.poke2026_modalOpen {
    overflow: hidden;
}

.poke2026_galleryModal {
    display: none;
    position: fixed;
    z-index: 10003;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 30px;
    background: rgba(0, 0, 0, 0.9);

    &.is-open {
        display: flex;
    }

    @media only screen and (max-width: 980px) {
        padding: 55px 48px 25px;
    }
}

.poke2026_galleryModalBody {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    img {
        display: block;
        max-width: 100%;
        max-height: calc(100vh - 110px);
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

.poke2026_galleryModalCount {
    position: absolute;
    bottom: 12px;
    left: 50%;
    color: #fff;
    font-size: 1.6rem;
    transform: translateX(-50%);
}

.poke2026_galleryModalClose {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
}

.poke2026_galleryModalNav {
    z-index: 1;
    background: rgba(227, 28, 63, 0.95);
}

.poke2026_galleryModalNav--prev {
    left: 20px;

    &::before {
        transform: translate(-35%, -50%) rotate(-135deg);
    }

    @media only screen and (max-width: 980px) {
        left: 4px;
    }
}

.poke2026_galleryModalNav--next {
    right: 20px;

    &::before {
        transform: translate(-65%, -50%) rotate(45deg);
    }

    @media only screen and (max-width: 980px) {
        right: 4px;
    }
}
