/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 要素の幅と高さをパディングとボーダーを含めたものに */
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    /* 高さを100%に設定 */
}
ol,
ul {
    list-style: none;
    /* リストのデフォルトスタイルを削除 */
}

a {
    text-decoration: none;
    /* アンダーラインを削除 */
    color: inherit;
    /* テキストの色を継承 */
}

img {
    max-width: 100%;
    /* 画像の最大幅を100%に設定 */
    height: auto;
    /* 高さを自動調整 */
}

table {
    border-collapse: collapse;
    /* テーブルのボーダーを結合 */
    width: 100%;
    /* 幅を100%に設定 */
}

th {
    text-align: left;
    /* テーブルヘッダーのテキストを左揃え */
}

button {
    border: none;
    /* ボタンのデフォルトボーダーを削除 */
    background: none;
    /* ボタンの背景を削除 */
    cursor: pointer;
    /* カーソルをポインタに */
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0
}

ul[role='list'],
ol[role='list'] {
    list-style: none
}

body {
    min-height: 100vh;
    line-height: 1.7;
    /* font-family: serif; */
}

h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1
}

h1,
h2,
h3,
h4 {
    text-wrap: balance
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor
}

img,
picture {
    max-width: 100%;
    display: block
}

input,
button,
textarea,
select {
    font: inherit
}

textarea:not([rows]) {
    min-height: 10em
}

:target {
    scroll-margin-block: 5ex
}

/* ここから */
.sp {
    display: none;
}

.pc {
    display: block;
}

.pc.inline {
    display: inline-block;
    padding: 0 5px;
}

/* body {
    font-family: 'Noto Sans JP', sans-serif; 
    background-image: url('../img/bg.jpg'); 
    background-size: cover;
    background-position: center; 
    background-attachment: fixed;
    background-color: #00b7e9;
    color: #333;
    line-height: 1.8;
    font-size:clamp(0.875rem, 0.792rem + 0.42vw, 1rem);
    width: 100vw;
    height: 100vh;
    animation: bugfix infinite 1s;
    -webkit-animation: bugfix infinite 1s;
} */
body::before {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-image: url('../img/bg.jpg');
    background-size: cover;
}

h2 {
    line-height: 1.8;
}

/* header {
    text-align: center;
    background-color: #f8f8f8;
    padding: 20px;
} */

nav ul,
.header-small nav ul {
    font-family: "Alata", sans-serif;
    /* Google Fontsを適用 */
    list-style-type: none;
    padding: 0;
    background: rgba(999, 999, 999, 0.7);
    font-size: clamp(0.813rem, 0.43rem + 1.91vw, 1.625rem);
    color: #16217C;
    text-align: center;
    height: 70px;
    position: fixed;
    width: 100%;
}

nav ul li {
    display: inline-block;
    margin: 0 5px;
}
nav ul li.sns{
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
}
nav ul li.sns a{
    width: 22px;
    height: 22px;
}
nav ul li.sns img{
    margin-left: 9px;
    margin-top: 4px;
}
nav ul li a {
    display: block;
    height: 50px;
    padding: 5px 0
}

nav ul li.pc {
    display: inline-block;
}

nav ul li.sp {
    display: none;
}

nav ul li .small {
    display: block;
    font-size: clamp(0.688rem, 0.646rem + 0.21vw, 0.75rem);
    margin-top: -5px;
}

main {
    max-width: 1000px;
    /* 幅を840pxに設定 */
    margin: 0 auto;
    /* 中央揃え */
    padding: 20px;
    /* 内側の余白 */
    padding-top: 60px;
    border-radius: 10px;
    /* 角を丸く */
}

section {
    margin: 0 auto 80px;
}

h2 {
    font-family: "Alata", sans-serif;
    /* Google Fontsを適用 */
    text-align: center;
    color: #16217C;
    font-size: clamp(1.25rem, 0.417rem + 4.17vw, 2.5rem);
}

h2 .small {
    display: block;
    font-size: clamp(0.75rem, 0.667rem + 0.42vw, 0.875rem);
    margin-top: -10px;
}

#staff,
#ticket,
#bunkacho,
#info {
    margin: 0 auto 80px;
    max-width: 680px;
}

h1.heading-title {
    font-size: 0px;
    color: transparent;
    /* テキストの色 */
}

.key-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px auto 0;
}

.key-visual img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.key-visual img.titile {
    max-width: 100%;
    height: auto;
    margin-bottom: 80px;
}
.key-visual .key-visual_text{
    text-align: center;
    margin-bottom: 50px;
    font-size: clamp(0.938rem, 0.732rem + 1.03vw, 1.375rem);
    padding: 30px 0;
    margin: 0 auto;
    margin: -30px calc(50% - 50vw) 50px;
    width: 100vw;
    background: #003f8e;
    color: #fff;
}
.key-visual .key-visual_text h3{
    color: yellow;
    margin-bottom: 16px;
}
h2 {
    margin-bottom: 10px;
}

.youtube {
    aspect-ratio: 16 / 9;
    width: 80%;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
}

.youtube iframe {
    width: 100%;
    height: 100%;
}

.intro_box .txt_box,
.story_box .txt_box {
    background: rgba(999, 999, 999, 0.7);
    /* box-shadow: 5px 5px 5px rgba(22, 33, 124 , 0.5); */
    padding: 30px 60px;
}

.intro_box .txt_box p,
.story_box .txt_box p {
    margin-bottom: 10px;
}

.txt_box .txt_big {
    font-size: clamp(0.938rem, 0.732rem + 1.03vw, 1.375rem);
    color: #16217C;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    font-family: Calisto MT, serif;
}

.intro_box .txt_box p:nth-child(2) {
    color: #ed21dc;
}

/* .intro_box h2{
    background: #16217C;
    color: #fff;
    padding: 10px 0;
} */
.cast-list {
    display: flex;
    /* 横並び */
    justify-content: center;
    /* flex-wrap: wrap;  画面サイズによって折り返し */
    margin: 20px auto;
    font-size: clamp(0.75rem, 0.632rem + 0.59vw, 1rem);
}

.cast-item {
    text-align: center;
    /* 中央揃え */
    margin: 3px;
    background-color: #fff;
}

.cast-list.first {
    max-width: 85%;
}

.cast-list.first .cast-item {
    width: calc(100% / 5);
}

.cast-list.second,
.cast-list.third,
.cast-list.fourth {
    font-size: clamp(0.75rem, 0.721rem + 0.15vw, 0.813rem);
}

/* .cast-list.second .cast-item{
    width: calc(100% / 9);
}
.cast-list.thrd.cast-item{
    width: calc(100% / 9);
} */
.cast-list.fourth {
    width: 30%;
}

.cast-list.fourth .cast-item p.cast_small {
    line-height: 1.4;
}

.cast-list.fourth .cast-item p span {
    font-size: 9px;
}

.cast-list.fourth .cast-item .cast-item img {
    height: auto;
    /* 高さ自動調整 */
    display: block;
}

.cast-item p {
    padding: 3px;
}

.staff-blocks {
    padding: 5px;
}

.staff-blocks {
    display: flex;
    flex-direction: column;
    /* 縦に並べる */
    align-items: center;
    /* 中央揃え */
    margin: 0 0 20px;
}

.staff-block {
    display: flex;
    align-items: center;
    /* 中央揃え */
}

.staff-item {
    margin: 5px 15px;
    /* 各アイテムの間隔 */
    text-align: center;
    /* 中央揃え */
    font-size: clamp(0.75rem, 0.705rem + 0.23vw, 0.875rem);
}

#schedule {
    margin: 0 auto 80px;
    max-width: 1000px;
}

.schedule_box {
    display: flex;
    justify-content: space-between;
}

.schedule-block {
    width: 48%;
    margin: 0 0 48px;
    /* 外側の余白 */
    text-align: center;
    /* 中央揃え */
}

.schedule-block h3 {
    background-color: #16217C;
    color: #fff;
    padding: 10px;
}

.schedule-block .link a {
    font-size: clamp(0.938rem, 0.813rem + 0.63vw, 1.125rem);
    color: #16217C;
    vertical-align: top;
}

.schedule-block .day-time_box {
    background-color: #fff;
    padding: 20px 30px;
    font-size: clamp(1rem, 0.667rem + 1.67vw, 1.5rem);
}

.ticket-block,
.ticket-advance-block {
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 40px;
}
.ticket-block .day_box,
.ticket-advance-block .day_box{
    background: #fff;
    padding: 20px;
    text-align: left;
}
.ticket-block h3,
.ticket-advance-block h3,
.ticket-ditile-block h3{
    color: #fff;
    background-color: #16217C;
    font-size: 20px;
    padding: 10px;
    text-align: center;
}
.ticket-block p{
    font-size: 20px;
}
.ticket-block p.money{
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px; 
}
.ticket-block p:first-child{
    padding-bottom: 20px;
}
.ticket-block p:last-child{
    padding-bottom: 0px;
    padding-top: 10px;
}
.ticket-block p .small{
    font-size: 16px; 
}
.ticket-block p .small .pink{
    color: #ff1493
}
.ticket-block {
    font-size: 22px;
}
.ticket-block .big,
.ticket-advance-block .big{
    font-size: clamp(1.25rem, 1.083rem + 0.83vw, 1.2rem);
}
.ticket-ditile-block table {
    background-color: #fff;
    /* border: 1px solid #16217C; */
}
.ticket-block .bg_txt,
.ticket-advance-block .bg_txt{
    background: #ff1493;
    color: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    margin-right: 10px;
}
.ticket-advance-block .advance_box p{
    font-size: clamp(1rem, 0.864rem + 0.68vw, 1.375rem);
    padding: 10px 0 5px;
}
.ticket-ditile-block table .title {
    background-color: #16217C;
    padding: 10px 0;
    color: #fff;
    text-align: center;
    /* border: #16217C 1px solid; */
}

.ticket-ditile-block .name {
    font-size: 20px;
    font-weight: 800;
}

.ticket-ditile-block .small,
.ticket-advance-block .small {
    font-size: 14px;
}

.ticket-ditile-block table,
.ticket-ditile-block td,
.ticket-ditile-block th {
    border-top: 1px solid #16217C;
    border-collapse: collapse;
}

.ticket-ditile-block td,
.ticket-ditile-block th {
    padding: 10px;
    height: 25px;
    text-align: center;
}
.ticket-ditile-block td{
    font-size: 0;
}
.ticket-ditile-block td:first-child{
    border-right: 1px solid #16217C;
}
.ticket-ditile-block td .btn{
    display: inline-block;
}

.ticket-ditile-block th {
    background: #f0e6cc;
}

.ticket-ditile-block .even {
    background: #fbf8f0;
}

.ticket-ditile-block .odd {
    background: #fefcf9;
}

.ticket-ditile-block .original-button {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    border-radius: 5px;
    width: 200px;
    height: 40px;
    font-weight: bold;
    border-bottom: 4px solid #16217C;
    transition: 0.3s;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
    background-color: #16217C;
}

.ticket-ditile-block .original-button:hover {
    box-shadow: 0 0 rgba(0, 0, 0, 0.4);
    border-bottom-width: 2px;
    transform: translateY(2px);
}

.bunkacho-blocks {
    background-color: #fff;
    /* 背景色 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: clamp(0.813rem, 0.729rem + 0.42vw, 0.938rem);
    border-radius: 6px;
    padding: 16px 0;
    font-family: serif;
    align-items: center;
}
.bunkacho-blocks .txt{
    font-size: clamp(0.813rem, 0.729rem + 0.42vw, 0.938rem);
}
.bunkacho-box {
    background-color: #fff;
    /* 背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.813rem, 0.729rem + 0.42vw, 0.938rem);
    border-radius: 6px;
    padding: 5px;
    font-family: serif;
}

.bunkacho-blocks img {
    width: 80px;
    margin-right: 20px;
}
#info img{
    margin-bottom: 40px;
}
.footer_sns li.sns{
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    margin: 0 auto;
    padding-left: 10px;
    padding-top: 8px;
}
.footer_sns li.sns a {
    width: 22px;
    height: 22px;
    display: block;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #f8f8f8;
}

/* スクロール時に縮小するスタイル */
/* .header-small nav ul{
    padding: 10px; 
    background: rgba(999, 999, 999, 0.7);
    font-size: 15px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-small nav ul li .small{
    display: none;
} */
/* スマホ用のスタイル */
@media screen and (max-width: 768px) {
    .sp {
        display: block;
    }

    .pc {
        display: none;
    }

    .pc.inline {
        display: none;
    }

    .hamburger {
        font-size: 28px;
        /* ハンバーガーメニューのアイコンサイズ */
        display: block;
        /* ハンバーガーメニューを表示 */
    }

    nav ul {
        height: 40px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav ul li.sp {
        display: inline-block;
    }

    nav ul li.pc {
        display: none;
    }

    nav ul li .small {
        margin-top: -2px;
    }

    nav ul,
    .header-small nav ul {
        height: 48px;
    }

    nav ul li a {
        display: block;
        height: 36px;
        padding: 2px;
    }
    nav ul li.sns{
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }
    nav ul li.sns a{
        width: 22px;
        height: 22px;
    }
    nav ul li.sns img{
        margin-left: 4px;
        margin-top: 4px;;
    }
    .header-small nav ul li .small {
        display: block;
    }

    main {
        width: 100%;
        padding: 20px 0;
    }

    .key-visual {
        width: 100%;
    }

    .intro_box .txt_box,
    .story_box .txt_box {
        padding: 30px 20px;
    }

    .cast-item p {
        padding: 5px 0;
    }

    .cast-list {
        margin: 0 10px;
    }

    .cast-list.first {
        max-width: 100%;
    }

    .cast-list,
    .staff-blocks {
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
    }

    .staff-blocks {
        align-items: center;
        /* 中央揃え */
    }

    .cast-list.first .cast-item {
        width: calc(100% / 3 - 6px);
    }

    .cast-list.second,
    .cast-list.third,
    .cast-list.fourth {
        max-width: 100%;
    }

    .cast-list.second .cast-item,
    .cast-list.third .cast-item {
        width: calc(100% / 4);
    }

    .cast-list.fourth {
        width: 90%;
    }

    .cast-list.fourth .cast-item {
        width: calc(100% / 5);
    }

    .cast-list.second .cast-item.sp_flex {
        width: calc(100% / 6);
    }

    #intro,
    #story,
    #staff,
    #bunkacho {
        padding: 0 20px;
    }

    .staff-item {
        margin: 5px 3px;
        /* 各アイテムの間隔 */
        font-size: 14px;
    }

    .schedule-block {
        margin: 24px 0;
        /* 外側の余白を調整 */
    }

    .schedule_box {
        flex-direction: column;
    }

    .schedule_box .schedule-block {
        width: 90%;
        margin: 0 auto 20px;
    }

    .schedule-block .day-time_box {
        padding: 20px 10px;
    }
    .ticket-block,
    .ticket-advance-block{
        width: 90%;
        margin: 0 auto 20px;
    }
    .ticket-block {
        font-size: 16px;
    }
    .ticket-block p{
        padding-bottom: 0px;
        font-size: 18px;
        line-height: 1.7;
    }
    .ticket-block p .small,
    .ticket-advance-block .small{
        font-size: 14px; 
    }
    .ticket-block p.money{
        line-height: 1.7;
        height: auto;
    }
    .ticket-block p.money:nth-of-type(4){
        line-height: 1;
    }
    .ticket-advance-block .advance_box p{
        padding: 10px 0 5px;
    }
    .ticket-block .day_box .center{
        text-align: center;
        display: block;
    }
    .ticket-block .ticket-ditile-block tr,
    .ticket-advance-block .ticket-ditile-block tr{
        border-top: 1px solid #16217C;
        border-left: none;
        border-right: none;
        border-bottom: none;
    } 
    .ticket-ditile-block td:first-child{
        border: none;
    }

    td:last-child {
        /* border-bottom: 1px solid #16217C; */
        width: 100%;
    }
    /* tr{
        border: 1px solid #16217C;
    } */
    td {
        padding: 10px;
    }
    .ticket-ditile-block td:first-child{
        padding-bottom: 0;
    }
    .ticket-ditile-block td, .ticket-ditile-block th {
        border: none;
        display: block;
        width: 100%;
        height: auto;
    }
    .ticket-ditile-block .original-button{
        margin: 0 auto;
    }
    .ticket-ditile-block .name{
        font-size: 18px;
    }
    .ticket-ditile-block{
        font-size: 14px;
        text-align: center;
    }
    #info{
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .sp {
        display: block;
    }

    main {
        padding-top: 30px;
    }

    .key-visual img {
        max-width: 100%;
    }
}

@media screen and (max-width: 375px) {
    nav ul {
        font-size: 15px;
    }

    nav ul li .small {
        font-size: 9px;
    }

    .cast-list.fourth .cast-item p span {
        font-size: 8px;
    }
}

@media screen and (max-width: 320px) {
    nav ul {
        font-size: 13px;
    }

    nav ul li .small {
        font-size: 9px;
    }
}
section {
    -webkit-animation: fadeIn 3s ease 0s 0 normal;
    animation: fadeIn 3s ease 0s 0 normal;
  }

  @keyframes fadeIn {
    0% {
      opacity: 0
    }

    100% {
      opacity: 1
    }
  }

  @-webkit-keyframes fadeIn {
    0% {
      opacity: 0
    }

    100% {
      opacity: 1
    }
  }