/* ゴシックドゥフォントは以下3行をコピペ */
/* font-family: SicGothicDuex-HDL-E;
font-weight: 400;
font-style: normal; */

/* さつき源代明朝は以下3行をコピペ */
/* font-family: "SatsukiGendaiMincho-M", sans-serif;
font-weight: 300;
font-style: normal; */

/* 縦書き文字は以下2行をコピペ */
/* -ms-writing-mode: tb-rl; */
/* writing-mode: vertical-rl; */

main{
    font-family: "SatsukiGendaiMincho-M", sans-serif;
    font-weight: 300;
    font-style: normal;
}

@media screen and (max-width:767px) {
    /* spの人はここから記述 */
    main{
        background-color: #091E35;
        padding-top: 70px;
    }

    .selecter {
        background-color: #091E35;
        color: #fff;
        text-align: center;
        margin: 10vw;
    }

    .title {
        color:#fff;
        font-size: 6vw;
        margin-bottom: 6vw;
        font-family: SicGothicDuex-HDL-E;
        font-weight: 400;
        font-style: normal;
    }

    .select-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        column-gap: 5vw;
        row-gap: 7vw;
    }

    .select-button {
        background-color: #F4F8E9;
        color: #091E35;
        padding: 1.5vw 0;
        text-align: center;
        border: none; 
        display: block;
        font-size: 3.4vw;
        line-height: 1;
        border-radius: 1vw;
        font-family: SicGothicDuex-HDL-E;
        font-weight: 400;font-style: normal;
        box-sizing: border-box;
        border: 0.5vw solid #F4F8E9; 
        box-shadow:
        inset 0 0 0 2px #091E35,
        0 2px 0 rgba(0,0,0,.25);
    }

    .select-button:hover{
        background-color:#d7d7d7;
    }

    .m {
        width: 100%;
        background: linear-gradient(#0058A9, #6EC6CD, #0058A9);
        background-image: url(../image/cm/pr/Frame_1414.png);
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .m-title {
        font-size: 5vw;
        color: #091E35;
        font-family: "SatsukiGendaiMincho-M", sans-serif;
        font-weight: 300;
        font-style: normal;
        text-align: center;
        padding: 13vw 0;
    }

    .work-movie {
        height: 36vw;
        width: 58vw;
        background-color: #F4F8E9;
    }

    .work-title {
        width: 58vw;
        color: #F4F8E9;
        font-family: "SatsukiGendaiMincho-M", sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 4vw;
        text-align: center;
        padding: 5vw 0;
    }

    .work {
        padding: 0px 20px;
    }

    .work-left{
      width: fit-content;
    }

    .work-center{
      width: fit-content;
      margin: 0 auto;
    }

    .work-right{
      width: fit-content;
      margin-right: 0;
      margin-left: auto;
    }
  
    /* spの人はここまで記述 */
}


@media screen and (min-width:768px) {
    /* pcの人はここから記述 */
  main {
    padding-top: 80px;
    background-color: #091E35;
  }

  :root {
    --movie-item-width: 28.5%;
  }
  
  .media-merch-tabs {
    background: #091E35;
    position: relative;
    padding: 80px 0 100px; 
    text-align: center;
    color: #fff;
    z-index: 1;
  }
  
  /* タイトル */
  .media-merch-tabs h1 {
    font-size: 45px;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: SicGothicDuex-HDL-E;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
  }

  .media-merch-tabs .tab-group {
    display: flex;
    justify-content: center;
    gap: 90px;
    position: relative;
    padding-top: 40px;
    z-index: 2;
  }
  
  .media-merch-tabs .tab {
    background: #F4F8E9;
    border: none;
    color: black;
    font-size: 2.2vw;
    font-family: SicGothicDuex-HDL-E;
    font-weight: 400;
    font-style: normal;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 0 3px #091E35, 0 0 0 8px #F4F8E9;

    width: 20vw;
    max-height: 73px;
    max-width: 500px;
  }
  
  .media-merch-tabs .tab:hover {
    background: #9e9e9e;
  }
  
  .media-merch-tabs .tab.active {
    background: #fff;
    color: #333;
    font-weight: bold;
    font-family: SicGothicDuex-HDL-E;
    font-weight: 400;
    font-style: normal;
  }
  
  .movie{
        background-image: url("../image/cm/pr/Frame1410-2.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        display: block;
        padding-bottom: 60px;
  }
  .movie-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
  }
  
  .movie-title {
    text-align: center;
    padding-top: 70px;
    font-size: 110px;
    color: #F4F8E9;
    font-family: SicGothicDuex-HDL-E;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 40px;
  }
  
  /* サムネイル共通 */
  .movie-item{
    position: absolute;
    text-align: center;
    width: var(--movie-item-width);
    aspect-ratio: 16 / 9;
    transform: translate(-50%, 0%);
  }

  .movie-item p{
    text-align: center;
    font-size: 30px;
    color: #F4F8E9;
    font-family: SicGothicDuex-HDL-E;
    font-weight: 400;
    font-style: normal;
  }
  
  .movie-item iframe {
    width: 100%;
    height: 100%;
    background: #F4F8E9;
    display: inline-block;
    border-radius: 12px;
  }

  .movie-item img {
    width: 100%;
    height: 100%;
    background: #F4F8E9;
    display: inline-block;
    border-radius: 12px;
  }
  
  /* 中央ロゴ */
  .movie-center-logo {
    width: 35%;
    height: auto;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-48%, -50%);
  }
  
  .padding {
    position: relative;
    width: 100%;
    height: 100px;
  }
  
  /* ===== サムネイル配置（6方向） ===== */
  .movie-item:nth-child(1) { top: 5%; left: 50%; }  
  .movie-item:nth-child(2) { top: 12%; left: calc(75% + var(--movie-item-width) * 0.25); } 
  .movie-item:nth-child(3) { top: 68%; left: calc(75% + var(--movie-item-width) * 0.25); } 
  .movie-item:nth-child(4) { top: 75%; left: 50%; }  
  .movie-item:nth-child(5) { top: 68%; left: calc(25% - var(--movie-item-width) * 0.25); }  
  .movie-item:nth-child(6) { top: 12%; left: calc(25% - var(--movie-item-width) * 0.25); }  
  .movie-item:nth-child(7) { top: 40%; left: calc(25% - var(--movie-item-width) * 0.25); }  
  .movie-item:nth-child(8) { top: 40%; left: calc(75% + var(--movie-item-width) * 0.25); }  
  
    /* pcの人はここまで記述 */
}