@media screen and (max-width: 768px) {

  /* 背景画像の修正(Safari/モバイル対応) */
  body::after {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }

  body::before {
    background-attachment: scroll;
  }

  /* ヘッダー */
  .header {
    padding: 15px 20px;
  }

  .hamburger {
    width: 45px;
    height: 45px;
    gap: 6px;
  }

  .hamburger span {
    width: 20px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ナビゲーションメニュー */
  .nav-menu ul li {
    margin: 25px 0;
  }

  .nav-menu ul li a {
    font-size: 1.8rem;
    padding: 8px 15px;
  }

  /* ファーストビュー */
  .stage {
    height: 100dvh;
  }

  .circle {
    width: 80vw;
    height: 80vw;
    max-width: 85vw;
    max-height: 85vw;
    font-size: 7.5vw;
    padding: 30px;
    border: 3px solid rgba(255, 255, 255, 0.8);
  }

  /* スマホ版の丸の位置調整 */
  .circle-osaka {
    left: -62vw;
  }

  .circle-tokyo {
    right: -62vw;
  }

  @keyframes moveLeft {
    to {
      left: calc(-32vw + 50px);
    }
  }

  @keyframes moveRight {
    to {
      right: calc(-32vw + 50px);
    }
  }

  h1 {
    width: 87vw;
    letter-spacing: 0.08em;
  }

  h1 span {
    font-size: 0.76rem;
    margin-bottom: 5vw;
  }

  h1 img {
    width: 90%;
  }

  h2 {
    font-size: 2.5rem;
    margin: 4vh 0 2vh;
  }

  h4 {
    font-size: 1.2rem;
    margin: 8vw auto 5vw;
    letter-spacing: 0;
  }

  section {
    max-width: 90vw;
  }

  section#schedule {
    height: 100dvh;
    min-height: 100vh;
    margin-top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .tour-schedule {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 2vh 0;
    position: relative;
    width: 100%;
  }

  .tour-item:first-child::after {
    display: none;
  }

  .tour-item:last-child::before {
    display: none;
  }

  .tour-schedule::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 90vw;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease 1s;
  }

  .tour-schedule:has(.tour-item:first-child.visible)::before {
    opacity: 1;
  }

  .tour-item {
    padding: 1.5vh 0;
    min-height: auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .tour-item::before,
  .tour-item::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 90vw;
    left: 50%;
    background: rgba(255, 255, 255, 0.4);
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 1s cubic-bezier(0.34, 1.35, 0.64, 1);
  }

  .tour-item:first-child::after {
    display: none;
  }

  .tour-item:last-child::before {
    display: none;
  }

  .tour-item:first-child.visible::after {
    display: none;
  }

  .tour-item:last-child.visible::before {
    display: none;
  }

  .tour-item.visible::before {
    top: 0;
    transform: translate(-50%, 0);
  }

  .tour-item.visible::after {
    top: 100%;
    transform: translate(-50%, -100%);
  }

  .tour-item:nth-child(2).visible::before,
  .tour-item:nth-child(2).visible::after {
    transition-delay: 0.15s;
  }

  .tour-item:first-child.visible::before {
    top: 0 !important;
    transform: translate(-50%, 0) !important;
    transition: all 1s cubic-bezier(0.34, 1.35, 0.64, 1) !important;
  }

  .tour-item:first-child.visible~.tour-item::after {
    top: 100% !important;
    transform: translate(-50%, -100%) !important;
    transition: all 1s cubic-bezier(0.34, 1.35, 0.64, 1) !important;
  }

  .tour-item:first-child.visible~.tour-item .tour-content {
    opacity: 1 !important;
    transition: opacity 0.8s ease 1s !important;
  }

  .tour-content {
    opacity: 0;
    transition: opacity 0.8s ease 1s;
  }

  .tour-item.visible .tour-content {
    opacity: 1;
  }

  .tour-item:nth-child(2).visible .tour-content {
    transition-delay: 1.15s;
  }

  .tour-city {
    font-size: 2rem;
    margin-bottom: 0.5vh;
    letter-spacing: 0.2em;
  }

  .tour-date {
    font-size: 1.4rem;
    margin-bottom: 0.8vh;
    min-height: 2rem;
  }

  .tour-date .sat,
  .tour-date .sun {
    font-size: 1.2rem;
  }

  .tour-venue-en {
    font-size: 2.3rem;
    margin-bottom: 0.5vh;
    min-height: 5rem;
    padding: 0.5rem 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
  }

  .tour-item:nth-child(2) .tour-venue-en {
    font-size: 2.7rem;
    min-height: 5rem;
  }

  .tour-venue {
    font-size: 0.8rem;
    margin-bottom: 0.8vh;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3em;
  }

  .tour-time {
    font-size: 0.9rem;
    line-height: 1.3em;
    margin: 1vh 0;
    min-height: 2.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .tour-contact {
    font-size: 0.8rem;
    line-height: 1.3em;
    margin-bottom: 1.5vh;
    min-height: 2.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* チケットセクション */
  #ticket {
    padding: 0;
    width: 90%;
  }

  .notes {
    font-size: 0.8rem;
    line-height: 1.7;
  }

  .ticket-wrap {
    margin-bottom: 5vw;
  }

  .ticket-wrap .ticket-type {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 0px !important;
  }

  .ticket-wrap .ticket-type.sold-out::after {
    padding: 5px 10px;
    font-size: 1rem;
  }

  .ticket-seat {
    width: auto;
    font-size: 0.875rem;
    margin: 0 10px 0 10px;
    width: 45%;
  }

  .ticket-seat small {
    font-size: 0.675rem;
  }

  .ticket-price {
    font-size: 1.1rem;
    text-align: right;
  }

  .ticket-price .tax {
    font-size: 0.75rem;
    padding-left: 2vw;
  }

  /* アコーディオン */
  .accordion-header {
    font-size: 1rem;
    padding: 2vw 4vw;
    margin: 5vw auto 0;
  }

  .accordion-header::after {
    font-size: 2rem;
  }

  .accordion-content-inner {
    padding: 4vw 5vw 3vw;
    font-size: 0.85rem;
  }

  .list li {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 1vw 0;
  }

  .specialseat {
    padding: 13px 20px 15px;
    width: 100%;
    margin: 30px auto 0;
  }

  .specialseat .heading {
    margin: 0 0 8px;
    font-size: 0.94rem;
  }

  /*.specialseat .heading::before,
  .specialseat .heading::after {
    width: 0;
    border: none;
  }*/

  .specialseat p {
    text-align: left;
    font-size: 0.76rem;
    line-height: 1.6;
  }

  .ticket-list {
    padding: 4vw 5vw 4.5vw;
    margin: 5vw auto;
    clip-path: polygon(20px 0,
        100% 0,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        0 100%,
        0 20px);
  }

  .ticket-list .title {
    font-size: 0.98rem;
    margin-bottom: .2vw;
    text-align: center;
  }

  .ticket-list .title span {
    font-size: 0.75rem !important;
  }

  .ticket-list .period {
    margin: 2vw 0 2vw;
  }

  .ticket-list .period li {
    padding: 2vw 0;
    font-size: 0.82rem;
    line-height: 1.5;
    letter-spacing: -0.03em;
  }

  .ticket-list .period li span {
    font-size: 0.82rem;
    padding: 0 0.2vw;
  }

  .ticket-list .period div {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    border-right: none;
  }

  .ticket-list .heading {
    font-size: 0.95rem;
    margin: 30px 0 10px;
  }

  .ticket-list .heading:first-of-type {
    margin: 10px 0;
  }


  .ticket-list p {
    margin: 2vw 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .ticket-list .fc {
    font-size: 0.88rem;
  }

  .ticket-list .note {
    margin: 2vw 0 0;
    font-size: 0.88rem;
  }

  .ticket-list .notice {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .ticket-list .notice2 {
    font-size: 0.76rem;
    margin: 0.5rem 0rem 0;
  }

  .detail-toggle-btn {
    padding: 1.5vw 5vw 1.7vw;
    font-size: 0.8rem;
    margin: 2vw auto 0;
  }

  .detail-toggle-btn::after {
    font-size: 0.7rem;
  }

  .detail-content {
    margin-top: 3vw;
  }

  footer {
    margin-top: 20px;
    font-size: 0.75rem;
  }

  footer .copyright {
    font-size: 0.7rem;
  }
}