@charset "utf-8";
@media screen and (max-width: 1200px) {
  .smart {
    display: block;
  }
  .pc {
    display: none !important;
  }
  .tablet {
    display: none !important;
  }
  #smart_globalmenu_area .globalmenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    /* display: none; */
    /* background: #fff; */
    width: 100vw;
    height: 100vh;
    background: url("../common/img/header/header_bg_sp.webp") top center;
    background-size: cover;
    opacity: 0;
  }
  .active .globalmenu {
    animation-name: appearance;
    animation-duration: 0.3s;
    animation-timing-function: linear;
    display: flex !important;
    opacity: 1 !important;
    justify-content: center;
    flex-direction: column;
  }
  .close .globalmenu {
    animation-name: appearance_r;
    animation-duration: 0.3s;
    animation-timing-function: linear;
    display: flex !important;
    justify-content: center;
    flex-direction: column;
  }
  #smart_globalmenu_area {
    /* border-top: #121212 8px solid; */
    /*border-bottom: #121212 4px solid;*/
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: right;
    color: #fff;
    z-index: 60000;
    /* background: url("../common/img/header/header_bg_sp2.webp") top center;
    background-size: cover; */
  }
  .header_logo_sp {
    position: absolute;
    width: 80px;
    top: 0;
    left: 0;
  }
  .list_btn {
    position: relative;
    cursor: pointer;
    width: 30px;
    height: 29.6px;
    border-radius: 5px;
    top: 20px;
    left: calc(100% - 50px);
    z-index: 1000;
  }
  .list_btn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    /* right: 20px; */
    height: 3.2px;
    background: rgb(102, 102, 102);
    width: 30px;
    left: 0;
  }
  .list_btn span:nth-of-type(1) {
    top: 0px;
  }
  .list_btn span:nth-of-type(2) {
    top: 10px;
  }
  .list_btn span:nth-of-type(3) {
    top: 20px;
  }
  .list_btn.active span:nth-of-type(1) {
    top: 10px;
    transform: rotate(-45deg);
  }
  .list_btn.active span:nth-of-type(2) {
    opacity: 0;
  }

  .list_btn.active span:nth-of-type(3) {
    top: 10px;
    transform: rotate(45deg);
  }
  .relative_area {
    position: relative;
    height: 100vh;
    display: flex !important;
    justify-content: center;
    flex-direction: column;
  }
  #smart_globalmenu_area .globalmenu img {
    display: inline-block;
  }
  .menu_sp {
    text-align: left;
    margin: 0 auto;
    width: 200px;
    height: 20px;
    /* border-bottom: 1px solid #000; */
    cursor: pointer;
    margin-bottom: 20px;
  }
  .menu_sp img {
    width: auto !important;
  }
  .menu_sp a {
    display: block;
    width: 100%;
  }
  .menu_sp:nth-of-type(3) {
    transform: translateX(1px);
  }
  .menu_sp:nth-of-type(4) {
    transform: translateX(-2px);
  }
  .menu_sp:nth-of-type(5) {
    transform: translateX(1px);
  }
  .menu_sp:nth-of-type(6) {
    transform: translateX(-6px);
  }
  .menu_sp:nth-of-type(7) {
    transform: translateX(-2px);
  }
  .menu_sp:nth-of-type(8) {
    transform: translateX(-2px);
  }

  .menu_sp_append {
    text-align: left;
    margin: 0 auto;
    width: 200px;
    height: 20px;
    /* border-bottom: 1px solid #000; */
    cursor: pointer;
    margin-bottom: 20px;
  }
  .menu_sp_append img {
    width: auto !important;
  }
  .menu_sp_append a {
    display: block;
    width: 100%;
  }
  .menu_sp_append:nth-of-type(3) {
    transform: translateX(-1.5px);
  }
  .menu_sp_append:nth-of-type(4) {
    transform: translateX(1px);
  }
  .menu_sp_append:nth-of-type(5) {
    transform: translateX(-6px);
  }
  .menu_sp_append:nth-of-type(6) {
    transform: translateX(-2px);
  }
  .twitter_share_sp {
    position: absolute;
    width: 15px;
    top: 200px;
    right: 50px;
  }
  #pc_globalmenu_area {
    display: none;
  }
  /* ;menu */

  /* top */
  #mainvisual_area {
    overflow-x: scroll;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-top: 0 !important;
  }
  #mainvisual_area::-webkit-scrollbar {
    display: none;
  }
  #mainvisual_area .smart {
    width: 100%;
    position: relative;
    max-height: auto;
  }
  #top_logo_sp {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
  }
  /* #top_logo_sp img:nth-child(2) {
    top: 0;
    left: 0;
    opacity: 0;
  } */
  #top_logo_sp img:last-child {
    margin-top: -20px;
  }
  #top_bg {
    background-image: url("../img/background_mobile.webp") !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    z-index: 0;
    height: auto; /* 高さを自動調整に変更 */
    min-height: 100vh; /* 画面よりコンテンツが少ない場合でも最低限の高さは維持 */
    padding-bottom: 50px; /* 次のセクションとの間に余白を追加 */
  }
  /* #top_bg::before {
    background: url("../img/top_bg.webp") no-repeat;
    background-size: 150%;
    background-position: 0 0px;
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    content: "";
  } */
  #top_bg .flex_area {
    display: block;
    padding-top: 10% !important;
  }
  #top_bg .half_area {
    width: 100%;
  }
  #news_area {
    width: 90%;
    padding: 10px 5% 20px 5% !important;
    margin: 0;
  }
  .news_logo {
    width: 50px;
    left: 20px;
  }
  .sakura1 {
    width: 18px;
    bottom: 4px;
  }
  .sakura img {
    width: 100% !important;
  }
  #news_area ul.news .date {
    width: auto;
    height: auto;
    /* padding: 8px 10px 2px; */
    /* font-size: 15px; */
  }
  #news_area ul.news .text {
    display: inline-block;
    /* font-size: 14px; */
  }
  #youtube_area {
    margin: 20px auto;
    height: auto;
    width: 90%;
    position: relative;
  }
  #sakuranouta_area {
    margin: 20px auto;
    height: auto;
    width: 90%;
    position: relative;
  }
  #sakuranouta_area img {
    width: 100%;
    height: auto;
  }
  #slide_area {
    margin-top: 10px;
  }
  .topSlide {
    width: 85%;
  }
  .top_arrow_l,
  .top_arrow_r {
    width: 20px;
    height: 40px;
    top: calc(50% - 20px);
  }
  .top_arrow_l {
    left: -20px;
  }
  .top_arrow_r {
    right: -20px;
  }
  /* ;top */


  /* package */
  #package_area {
    background-image: url("../img/package/package_bg.webp") no-repeat;
    background-size: contain;
    background-position: top center;
    min-height: 100vh;
    background-repeat: no-repeat;
  }
  #package_area .package_logo {
    width: 230px;
  }

  /* パッケージエリアの背景を画面全体に表示 */
  #package_area {
    background-attachment: fixed;
    background-size: cover; /* 画面を覆うように設定 */
    background-position: center;
  }
  /* package */


  /* story */
  #story_bg {
    background-image: url("../img/story/story_bg.webp") no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: 0px;
    min-height: 100vh;
  }
  #story_area {
    padding: 40px 0 80px;
    position: relative;
  }
  .story_logo {
    width: 205px;
  }
  .dots_sp {
    width: 85%;
    height: 30px;
  }
  #story_area .slick-dots {
    bottom: none;
  }
  #story_area .slick-dots li {
    height: 15px;
  }
  #story_area .slick-dots li img {
    height: 100%;
  }
  .story_slide2.smart {
    opacity: 1;
    width: 100%;
    height: 550px;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    background-size: contain;
    padding: 30px 20px;
    overflow: hidden;
  }
  #story_area .slick-dots {
    display: none !important;
  }
  /* スライド用ナビゲーションドット */
  .dots.pc {
    display: none !important;
  }
  /* スライド用ナビゲーションドット */
  .dots.smart {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: auto auto;
    opacity: 1 !important;
    height: auto;
    width: auto;
    flex-wrap: wrap;
  }
  /* アクティブなドットコンテナのみ表示 */
  .dots.smart.show {
    display: flex !important;
  }
  /* スライド用ナビゲーションドット */
  .dots.smart img {
    width: auto;
    height: 15px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  /* スライド用ナビゲーションドット */
  .dots.smart img.active {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  }
  /* ストーリースライドエリアの設定 */
  .story_slide2.smart .story_img {
    display: none;
    text-align: center;
    animation: story 2s linear;
  }
  /* ストーリースライドエリアの設定 */
  .story_slide2.smart .story_img.active {
    display: block;
  }
  /* ストーリースライドエリアの設定 */
  .story_slide2.smart .story_img img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: inline-block;
    margin: 0 auto;
  }
  /* STORY下部の装飾画像 */
  .feather {
    width: 20%;
    bottom: 5%;
    left: 5%;
  }

  /* スマホ版ストーリーエリア */
  #story_area {
    touch-action: pan-y; /* 縦スクロールのみ */
    overflow-x: hidden; /* 横スクロールを防止 */
    overscroll-behavior-x: none; /* 横方向のオーバースクロールを無効化 */
  }

  /* スマホ版ドットの調整 */
  #story_bg_append .dots.smart {
    width: 100%; /* スマホ版では幅を広く */
    touch-action: manipulation;
    display: flex;
    justify-content: center;
    gap: 40px; /* スマホ版はgapを小さく */
  }

  #story_bg_append .dots.smart img, {
    touch-action: manipulation;
    pointer-events: auto;
  }

  #story_bg .dots.smart {
    touch-action: manipulation;
  }

  #story_bg .dots.smart img {
    touch-action: manipulation;
    pointer-events: auto;
  }

  .story_logo_btn img {
    width: 200px;
    transition: opacity 0.3s;
  }
  .story_logo_btn_append img {
    width: 200px !important;
    transition: opacity 0.3s;
  }

  /* append版（dots-slide-b）のスマート版特別設定 */
  .dots.smart.dots-slide-b {
    width: auto;
    min-width: 240px; /* 2つの画像(110px each) + gap(15px) = 235px + margin */
    gap: 30px; /* gapを少し拡大 */
  }

  .dots.smart.dots-slide-b img {
    width: 140px; /* スマホ版も画像サイズを拡大 */
    touch-action: manipulation;
    pointer-events: auto;
    flex-shrink: 0; /* 画像の圧縮を防ぐ */
    object-fit: contain;
  }

  /* スマホ版スライドエリア */
  .story_slide2.smart {
    touch-action: pan-y; /* 縦スクロールのみ許可 */
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none; /* iOS用：長押しメニューを無効化 */
    overflow-x: hidden; /* 横スクロールを無効化 */
    overscroll-behavior: contain; /* スクロールチェーンを防止 */
  }

  /* スマホ版ロゴボタン */
  .story_logo_group.smart {
    touch-action: manipulation;
  }

  .story_logo_btn.smart {
    touch-action: manipulation;
    pointer-events: auto;
  }

  .story-arrow {
    position: absolute;
    top: 65%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: 40px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
  }

  .story-arrow {
    width: 30px; /* スマホでは少し小さく */
  }

  .story-arrow-prev {
    left: 5px; /* 画面の左端から5px */
  }

  .story-arrow-next {
    right: 5px; /* 画面の右端から5px */
  }

  .story_logo_group.smart {
    display: flex;
    justify-content: center;
    width: 100%; /* コンテナの幅を100%にして、その中で中央揃えを確実にする */
  }
  /* ;story */

  /* character */
  #character_area {
    padding: 10px 0 3%;
    background: url("../img/character/character_bg.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
  }
  #character_area_append {
    padding: 10px 0 3%;
    background: url("../img/character/character_append_bg.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
  }
  #character_area .contents,
  #character_area_append .contents {
    padding: 0;
  }
  .character_logo {
    width: 270px;
  }
  .main_chara_sp2 {
    z-index: 5;
  }
  .chara_picture_sp {
    max-width: 700px;
    width: 100%;
    max-height: 1334px;
    position: relative;
  }
  #chara_picture_change1_sp {
    background: url("../img/character/chara1-1_sp.webp") top center;
    background-size: cover;
  }
  .change_btn_sp,
  .change_sp {
    position: absolute;
    bottom: 50px;
    right: 50px;
    max-width: 130px;
  }
  .change_sp {
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
  }
  .change_after_sp {
    background: url("../img/character/change_btn_2.webp") top center;
    background-size: cover;
  }
  .chara_name {
    margin: 0 auto;
    text-align: center;
    line-height: 3.5rem;
    width: 100%;
  }
  .chara_intro {
    max-width: 400px;
    width: 90%;
    height: 250px;
    margin: 0 auto;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #020826;
    letter-spacing: 0.14em;
    padding-top: 2rem;
  }
  .chara_arrow_l,
  .chara_arrow_r {
    width: 15px !important;
    height: 30px;
    top: calc(50% - 15px);
  }
  .chara_arrow_l_sp {
    position: absolute;
    width: 40px !important;
    height: 350px;
    bottom: 0px;
    left: 0px;
    cursor: pointer;
    z-index: 500;
    padding: 320px 0 20px;
  }
  .chara_arrow_r_sp {
    position: absolute;
    width: 40px !important;
    height: 350px;
    bottom: 0px;
    right: 0px;
    cursor: pointer;
    z-index: 500;
    padding: 320px 0 20px;
  }

  /* キャラクターエリアの各種矢印に、表示が切り替わる際のアニメーション効果を追加 */
  .chara_arrow_l_sp,
  .chara_arrow_r_sp,
  .thumb-arrow {
    transition: opacity 0.3s ease;
  }

  /* スライダーが端に到達して無効になった矢印（両方）を非表示にする */
  .chara_arrow_l_sp.slick-disabled,
  .chara_arrow_r_sp.slick-disabled,
  .thumb-arrow.slick-disabled {
    opacity: 0;
    pointer-events: none; /* 透明な矢印をクリックできないようにする */
    cursor: default;
  }

  #character_area .slick-dots,
  #character_area_append .slick-dots {
    max-width: 200px;
    /* width: 100px; */
    left: 50%;
    transform: translateX(-50%);
  }
  #character_area .slick-dots li,
  #character_area .slick-dots li button,
  #character_area .slick-dots li button:before,
  #character_area_append .slick-dots li,
  #character_area_append .slick-dots li button,
  #character_area_append .slick-dots li button:before {
    width: 8px;
  }
  #character_area .slick-dots li button:before,
  #character_area_append .slick-dots li button:before {
    font-size: 0px;
    line-height: 8px;
    height: 8px;
    background-color: rgb(189, 204, 212, 0);
    border-radius: 50%;
    box-shadow: 0px 0px 2px 1px rgb(200, 200, 200);
    opacity: 1;
  }
  #character_area .slick-dots li.slick-active button:before,
  #character_area_append .slick-dots li.slick-active button:before {
    background-color: rgba(189, 204, 212, 1);
    opacity: 1;
  }
  #character_area .character_btn_sp {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 12px;
    /* border-bottom: 1px solid; */
  }
  #character_area .character_btn_sp li {
    cursor: pointer;
    width: 8%;
    max-width: 140px;
    margin: 0 0.7%;
  }
  #character_area_append .character_btn_sp {
    width: 60%;
    margin: 0 auto;
    padding-bottom: 12px;
    /* border-bottom: 1px solid; */
  }
  #character_area_append .character_btn_sp li {
    cursor: pointer;
    width: 8%;
    max-width: 140px;
    margin: 0 2%;
  }
  .character_btn_sp li:hover {
    opacity: 0.8;
  }
  .chara_voice_box_sp {
    position: absolute;
    top: 35%;
    right: 80px;
  }
  .chara_voice {
    margin-bottom: 10px;
  }
  .chara_cv {
    width: auto;
    padding: 0;
    margin: 0.2rem auto 0;
    text-align: center;
  }

  /* キャラクターセクションのスマホ版コンテンツエリアを基準点にする */
  #character_area .contents.smart {
    position: relative;
  }

  /* スマホ版キャラクタースライダーの矢印の位置を調整
    既存のスタイルを上書きして、画像の上に配置します。
  */
  .chara_arrow_l_sp,
  .chara_arrow_r_sp {
    position: absolute;
    /* 上からの位置を調整（40%あたりが画像の中心になりやすい） */
    top: 65%;
    transform: translateY(-50%);
    z-index: 100; /* 画像より手前に表示 */

    /* サイズを調整 */
    width: 30px !important;
    height: auto !important; /* 高さは自動 */

    /* 元々あった bottom の指定を解除 */
    bottom: auto;
    padding: 0;
  }

  /* 左矢印の横位置 */
  .chara_arrow_l_sp {
    left: 10px;
  }

  /* 右矢印の横位置 */
  .chara_arrow_r_sp {
    right: 10px;
  }

  /* サムネイルのラッパーを矢印配置の基準点にする */
  .character_thumb_wrapper {
    position: relative;
    /* サムネイルスライダーの幅とマージンを親要素から継承 */
    width: 80%;
    margin: 0 auto;
    padding-bottom: 12px;
  }

  /* サムネイル用矢印の基本スタイル */
  .thumb-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: 25px; /* サムネイル用に矢印を少し小さく */
    opacity: 0.8;
    transition: opacity 0.3s;
  }
  .thumb-arrow:hover {
    opacity: 1;
  }

  /* 左矢印の位置 */
  .thumb-arrow-prev {
    left: -40px; /* サムネイルバーの外側左に配置 */
  }

  /* 右矢印の位置 */
  .thumb-arrow-next {
    right: -40px; /* サムネイルバーの外側右に配置 */
  }


  #product_area {
    padding: 10px 0 3%;
    background-color: white;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
  }
  #otherSlide_area {
    background-position: top left;
  }
  .others_logo {
    width: 135px;
  }
  .click_logo {
    width: 105px;
  }
  .other_btn_sp {
    display: flex;
    flex-wrap: wrap;
    padding: 0 5% 0 5%;
    justify-content: center;
  }
  .other_btn_sp div {
    max-width: 165px;
    width: 25%;
    margin: 0 3% 6%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 5;
    border-radius: 15px;
    overflow: hidden;
  }
  .other_btn_sp div img:hover {
    opacity: 0.8;
  }
  .other_btn_sp::after {
    content: "";
    width: 62%;
  }
  #cboxContent {
    margin: 0 !important;
  }
  .others_cv {
    width: auto;
  }

  @media screen and (max-width: 450px) {
    .change_btn_sp,
    .change_sp {
      right: 0;
    }
    .chara_voice_box_sp {
      right: 20px;
    }
  }
  @media screen and (max-width: 350px) {
    .change_btn_sp,
    .change_sp {
      bottom: 10px;
    }
    .others_intro {
      font-size: 0.75rem !important;
    }
  }
  @media screen and (max-width: 300px) {
    #mainvisual_area .smart {
      width: 1000px;
    }
    .twitter_share_sp {
      right: 20px;
    }
    .chara_arrow_r {
      right: -30px;
    }
    .chara_arrow_l {
      left: -30px;
    }
    .change_btn_sp,
    .change_sp {
      bottom: 0px;
    }
    .chara_intro {
      height: 400px;
    }
    #character_area .slick-dots,
    #character_area_append .slick-dots {
      max-width: 150px;
    }
    .others_name {
      font-size: 2.5rem;
    }
    #other11_sp .others_name {
      font-size: 2.3rem;
    }
    #other13_sp .others_name {
      font-size: 1.35rem;
    }
    #controller_box_gallery {
      bottom: 20px;
    }
  }
  /* ;character */

  /* gallery */
  #gallery_area {
    background-attachment: scroll;
    background: url("");
    padding: 5% 0 4%;
  }
  #gallery_area::before {
    background: url("../img/gallery/gallery_bg.webp") no-repeat;
    background-position: top left;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    content: "";
  }
  .gallery_logo {
    width: 270px;
  }
  @media screen and (max-width: 350px) {
    .gallerySlide_box_sp .gallery_intro {
      font-size: 0.7rem !important;
    }
  }
  @media screen and (max-width: 300px) {
    .gallerySlide_box_sp .gallery_intro {
      line-height: 1.4rem !important;
    }
  }
  /* ;gallery */

  /* special */
  .special_logo {
    width: 205px;
  }
  #special_area .special_list {
    margin: 0;
  }
  #special_area .special_list li {
    width: 70%;
    margin: 0 0 30px;
  }
  /* ;special */
  .product_logo {
    width: auto;
    max-width: 205px;
    margin-bottom: -2rem;
  }

  /* footer */
  footer {
    background: white;
    padding: 5% 8% 3%;
    border-top: none;
  }
  footer span {
    height: 50px;
  }
  footer .logo_area .flex_area:first-child a {
    width: 150px;
  }
  footer .logo_area .flex_area:last-child {
    width: 55px;
    margin: 10px auto 0 5px;
  }
  footer .logo_area .flex_area:last-child a {
    width: 25px;
  }
  footer .copyright {
    margin-top: 3%;
    font-size: 10px;
  }
}
