/*:root {
    --color-hasu: #f9d4db;
    --color-non: #f8b500;
    --color-nasu: #5383c3;
    --color-ui: #68BE8D;
    --color-koto: #BA2636;
    --color-kan: #e7609e;
    --color-kona: #c8c2c6;
    --color-hina: #a2d7dd;
    --color-fuka: #fad764;
    --color-rin: #9d8de2;

    --color-logo-blue:#00386a
    --color-logo-pink:#f9d4db
}*/


.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Hiranogi Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo, "ＭＳ Ｐゴシック", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
}

header {
    width: auto;
    padding: 30px 4% 10px;
    background-color: #00386a;
    color: #f9d4db;
    position: sticky;
    top: 0;

    display: flex;
    align-items: center;
}

footer {
    display: block;
    margin-top: auto;
    width: 100%;
    background-color: #00386a;
    justify-content: center;
    text-align: center;
    color: #f9d4db;
}

h1 {
    margin: 0;
    padding: 0;
    font-size: 20px;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    display: flex;
}

li_nav {
    margin: 0 0 0 15px;
    font-size: 10px;
}

li {
    margin: 0 1em 0 1em;
    font-size: 1em;
}

nav {
    margin: 0 50px 0 auto;
}

.head_article{
    margin: 20px auto;
    width: 85%;
    padding: 10px;
    border: 1px solid #f9d4db;
    border-radius: 10px;
}

.footer-wrapper{
    padding: 0 auto;
}

#anniversary{
    text-align: center;
    width: 80%;
    margin: 10px auto;
}

#calendar-top{
    display: flex;
    align-items: center;
    width: 30%;
    margin: 0 auto;
}

p#month-display{
    font-size: 20px;
    margin: 0 auto;
    text-align: center;
}

#calendar {
    display: flex;
}

table{
    table-layout: fixed;
    width: 100%;
}

table.calendar{
    margin: 0 auto 0 auto;
    padding-top: 1em;
    table-layout: fixed;
    width:90%;
}

table.calendar th{
    padding: 8px;
    background-color: white;
    text-align: center;
    border: 1px solid #CCC;
}

table.calendar td{
    padding: 8px;
    background-color: white;
    text-align: left;
    vertical-align: top;
    border: 1px solid #CCC;
}

/* 行の最初のtdは日曜日なため赤く */
table.calendar th:first-of-type, table.calendar td:first-of-type{
    background-color: #ffefef;
    color: red;
    font-weight: bold;
}

/* 行の最後のtdは土曜日なため青く */
table.calendar th:last-of-type, table.calendar td:last-of-type{
    background-color: #ededff;
    color: blue;
    font-weight: bold;
}

/* 今日の日付 */
table.calendar td.today{
    background-color: #fbffa3;
    font-weight: bold;
}

table.calendar p.date{
    margin-top: 0;
}

.event{
    font-size: 0.5em;
    font-weight: bold;
    color: #000;
    padding: 10px;
    border-radius: 0 15%;
}

#close {
    font-size: 100%;/*ボタンの大きさ*/
    font-weight: bold;
    border: 1px solid #999;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    width: 1.3em;
    line-height: 1.3em;
    cursor: pointer;
    transition: .2s;
    margin-left: auto;
}

#close:hover {
    background: #333;
    border-color: #333;
    color: white;
}

#popup-wrapper {
    background-color: rgba(0,0,0,.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#popup-inside {
    width: 100%;
    max-width: 300px;
    background: white;
    margin: 10% auto;
    padding: 20px;
    position: relative;
}

#popup-date {
    text-align: left;
}

#popup-URL {
    word-break: break-all;
}

#bottom-ad {
    justify-content: center;
    display: flex;
}

#live-event {
    margin: 20px auto 0 auto;
    width: max-content;
}
#live-event ul{
    padding: 0;
    margin: auto;
}

#live-event .banner {
    width: 350px;
}

.tab-button-container {
    display: flex;
    width: 630px;
    margin: auto;
    align-items: center;
}

.tab-button-container ul {
    flex-wrap: wrap;
    margin: auto;
    padding-left: 20px;
}

.tab-button-container li {
    padding: 0;
    width: 110px;
    text-align: center;
    margin: 2px;
}

#tab-hasu {
    color: #f9d4db;
    border: 2px solid #f9d4db;
    border-radius: 5px;
}
#tab-hasu.active {
    background: #f9d4db;
    color: white;
}

#tab-non {
    color: #f8b500;
    border: 2px solid #f8b500;
    border-radius: 5px;
}
#tab-non.active {
    background: #f8b500;
    color: white;
}

#tab-nasu {
    color: #5383c3;
    border: 2px solid #5383c3;
    border-radius: 5px;
}
#tab-nasu.active {
    background: #5383c3;
    color: white;
}

#tab-ui {
    color: #68be8d;
    border: 2px solid #68be8d;
    border-radius: 5px;
}
#tab-ui.active {
    background: #68be8d;
    color: white;
}

#tab-koto {
    color: #ba2636;
    border: 2px solid #ba2636;
    border-radius: 5px;
}
#tab-koto.active {
    background: #ba2636;
    color: white;
}

#tab-kan {
    color: #e7609e;
    border: 2px solid #e7609e;
    border-radius: 5px;
}
#tab-kan.active {
    background: #e7609e;
    color: white;
}

#tab-kona {
    color: #c8c2c6;
    border: 2px solid #c8c2c6;
    border-radius: 5px;
}
#tab-kona.active {
    background: #c8c2c6;
    color: white;
}

#tab-hina {
    color: #a2d7dd;
    border: 2px solid #a2d7dd;
    border-radius: 5px;
}
#tab-hina.active {
    background: #a2d7dd;
    color: white;
}

#tab-fuka {
    color: #fad764;
    border: 2px solid #fad764;
    border-radius: 5px;
}
#tab-fuka.active {
    background: #fad764;
    color: white;
}

#tab-rin {
    color: #9d8de2;
    border: 2px solid #9d8de2;
    border-radius: 5px;
}
#tab-rin.active {
    background: #9d8de2;
    color: white;
}

.tab-content-container {
    width: 70%;
    margin: 0 auto;
    padding-top: 10px;
}

.cast-tab-content {
        display: none;
}

.cast-tab-content.show {
    display: block;
    border: 2px solid #f9d4db;
    border-radius: 5px;
    padding: 10px;
}    
.cast-tab-content h5{
    margin: 0;
}
.cast-tab-content p{
    margin: 2px 0;
}
.cast-tab-content span{
    display: inline-block;
}

.footer-ad ul{
    display: block;
    padding: 0;
}

.footer-ad li{
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.footer-ad p{
    text-align: center;
}

.footer-wrap{
    width: 80%;
    margin: 0 auto;
    display: flex !important;
    justify-content: space-between;
}

.footer-wrap li a{
    color: #f9d4db;
    text-decoration: none;
}

.footer-wrap li a:hover{
    text-decoration: underline;
}

.footer-wrap p{
    margin: 0;
    padding: 0 0 20px 0;
}

.footer-wrap .box {
    width: 30%;
}

.footer-wrap .box ul{
    margin: 0;
    padding: 0 0 20px 0;
    list-style: none;
    display: block;
}

.back-purple {
    padding: 5px 0 5px 10px;
    background-color: #f9d4db;
    color: white;
}

.back-white {
    padding: 5px 0 5px 10px;
    background-color: white;
    color: #f9d4db;
    border: 1px solid #f9d4db;
}

/*page*/
.page-wrapper{
    margin: 20px auto;
    width: 60%;
    padding: 10px;
}

.page-title {
    margin-bottom: 0;
    text-align: center;
}

.page-content {
    padding: 0 15px;
}

.page-content p{
    padding: 0 10px;
}

.page-h3 {
    border: solid 3px #f9d4db;
    border-radius: 30px;
    width: auto;
    margin: 5 auto;
    padding: 5px 50px;
}

.page-h4 {
    padding: 0 10px;
}

/*article-index.php*/

.article-list {
    margin: 20px auto 0 auto;
    width: 60%;
    padding: 10px;
}

.article-list ul{
    width: 100%;
    padding-inline-start: 0;
    display: block;
}

.article-list a{
    display: block;
}

.article-item {
    float: none;
    padding: 5%;
    height: fit-content;
    border: solid 3px #f9d4db;
    border-radius: 30px;
    margin: 10px 0;
}

/*article*/
.article-wrapper {
    margin: 20px auto;
    width: 60%;
    padding: 10px;
}

.article-title {
    margin-bottom: 0;
}

.article-content {
    padding: auto;
}

.ad-info {
    color: #00386a;
    border: solid 1.5px #00386a;
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto;
    padding: 5px 30px;
}

.article-content .a8ad img{
    max-width: 300px;
    max-height: 300px;
}

a.btn--purple {
    color: #fff;
    background-color: #00386a;
}

a.btn--purple:hover {
    color: #fff;
    background: #004e92;
}

a.btn--gema {
    color: #fff;
    background-color: #ff8224;
}

a.btn--gema:hover {
    color: #fff;
    background: #fa9a50;
}

a.btn-c {
    display: inline-block;
    font-size: 0.8rem;
    position: relative;
    padding: 0rem 1.5rem;
    border-radius: 100vh;
    margin: 0.2rem;
}

.carousel-container {
    display: block;
    width: 500px;
    height: 250px;
    margin: 3rem auto 5rem auto;
    padding: 0 auto;
    position: relative;
    align-items: center;
}

.carousel-area {
    height: 100%;
    display: flex;
    position: relative;
    padding: 0;
    margin: 0 auto;
}

.carousel-block {
    width: fit-content;
    height: auto;
    align-items: center;
    display: flex;
}

.carousel-area img{
    max-width: 300px;
}

.arrow-wrap {
    width: 90%;
    height: 100%;
    margin: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}
.arrow-btn {
    width: 48px;
    height: 48px;
    background-color: #f9d4db;
    border: none;
    border-radius: 50%;
    transition: .2s;
}
.arrow-btn:focus {
    box-shadow: 0px 1px 10px -2px rgba(185, 185, 185, 0.8);
}
.arrow-btn:hover {
    background-color: #a070e7e6;
    box-shadow: 0px 1px 10px -2px rgba(0, 0, 0, 0.8);
}

/* 左 */
.arrow-left {
    position: relative
}
  /* ボタン左の中身（三角を擬似要素で表現） */
.arrow-left:before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #fefefe;
    border-left: 2px solid #fefefe;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%)rotate(-45deg);
}
  /* 右 */
.arrow-right {
    position: relative
}
  /* ボタン右の中身（三角を擬似要素で表現） */
.arrow-right:before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #fefefe;
    border-left: 2px solid #fefefe;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-70%, -50%)rotate(135deg);
}

.pagination {
    margin: 5% auto 0;
    display: flex;
    justify-content: space-around;
}
.pagination-circle {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background-color: #c8afece6;
}
/* jsでtargetクラスがついたら背景色を変える */
.pagination-circle.target {
    background-color: #f9d4db;
}

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

    nav {
        margin: 0 5px 0 auto;
    }

    #calendar-top{
        display: flex;
        align-items: center;
        width: 60%;
        margin: 0 auto;
    }

    table.calendar{
        margin: 0 auto 0 auto;
        padding-top: 1em;
        table-layout: fixed;
        width:80%;
        writing-mode: vertical-lr;
    }

    table.calendar tbody{
        width: 80%;
    }

    table.calendar tr{
        height: auto;
    }

    table.calendar th,td{
        padding: 8px;
        background-color: white;
        text-align: center;
        border: 1px solid #CCC;
        writing-mode:horizontal-tb;
        height: auto;
    }

    table.calendar th{
        width: 15%;
    }

    table.calendar td{
        overflow-wrap: normal;
        width:60%
    }

    /* 行の最初のtdはPCで赤指定のため白で上書き */
    table.calendar th:first-of-type, table.calendar td:first-of-type{
        background-color: #FFF;
        color: black;
        font-weight: normal;
    }
    
    /* ６番目のtdは土曜日なため青く */
    table.calendar th:nth-of-type(6), table.calendar td:nth-of-type(6){
        background-color: #ededff;
        color: blue;
        font-weight: bold;
    }

    /* 最後のtdは日曜日なため赤く */
    table.calendar th:last-of-type, table.calendar td:last-of-type{
        background-color: #ffefef;
        color: red;
        font-weight: bold;
    }

    #bottom-ad img{
        justify-content: center;
        display: flex;
        width: 100vw;
    }

    #live-event{
        width: 300px;
    }
    
    #live-event ul {
        display: block;
        padding-left: 0;
    }

    #live-event li {
        width: 300px;
        margin: 10px auto;
    }

    #live-event .banner {
        width: 300px;
    }

    .tab-button-container{
        width: 70%;
    }

    .cast-tab-ul{
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        li{
            margin: 2px;
        }
    }

    .footer-wrap li a{
        color: white;
        text-decoration: none;
    }
    
    .footer-wrap li a:hover{
        text-decoration: underline;
    }
    
    .footer-wrap{
        width: 80%;
        margin: 0 auto;
        display: block;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .footer-wrap p{
        margin: 0;
        padding: 0 0 20px 0;
    }
    
    .footer-wrap .box {
        width: 95%;
        margin: 0 auto;
    }
    
    .footer-wrap .box ul{
        margin: 0;
        padding: 0 0 20px 0;
        list-style: none;
        display: block;
    }
    
    .footer-wrap .box ul{
        padding-bottom: 10px;
    }

    .article-list {
        margin: 20px auto 0 auto;
        width: 80%;
        padding: 10px;
    }

    .article-wrapper {
        margin: 20px auto;
        width: 80%;
        padding: 10px;
    }

    .article-content img{
        max-width: 330px;
    }
    
}

@media screen and (max-width:450px) {
    .article-wrapper {
        margin: 5px auto;
        width: 90%;
        padding: 0;
    }

    #bottom-ad img{
        justify-content: center;
        display: flex;
        width: 100vw;
    }
    
    .tab-button-container{
        width: 90%;
    }

    .article-content img{
        max-width: 200px;
    }

    .carousel-container {
        display: block;
        width: 280px;
        height: 250px;
        margin: 3rem auto 5rem auto;
        padding: 0 auto;
        position: relative;
        align-items: center;
    }
    
    .carousel-area {
        height: 100%;
        display: flex;
        position: relative;
        padding: 0;
        margin: 0 auto;
    }
    
    .carousel-block {
        width: fit-content;
        height: auto;
        align-items: center;
        display: flex;
    }
    
    .carousel-area img{
        max-width: 200px;
    }
    
    .arrow-wrap {
        width: 90%;
        height: 100%;
        margin: 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
    }
    .arrow-btn {
        width: 20px;
        height: 20px;
        background-color: #f9d4db;
        border: none;
        border-radius: 50%;
        transition: .2s;
    }
    .arrow-btn:focus {
        box-shadow: 0px 1px 10px -2px rgba(185, 185, 185, 0.8);
    }
    .arrow-btn:hover {
        background-color: #a070e7e6;
        box-shadow: 0px 1px 10px -2px rgba(0, 0, 0, 0.8);
    }
    
    /* 左 */
    .arrow-left {
        position: relative
    }
      /* ボタン左の中身（三角を擬似要素で表現） */
    .arrow-left:before {
        content: "";
        width: 5px;
        height: 5px;
        border-top: 1px solid #fefefe;
        border-left: 1px solid #fefefe;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-30%, -50%)rotate(-45deg);
    }
      /* 右 */
    .arrow-right {
        position: relative
    }
      /* ボタン右の中身（三角を擬似要素で表現） */
    .arrow-right:before {
        content: "";
        width: 5px;
        height: 5px;
        border-top: 1px solid #fefefe;
        border-left: 1px solid #fefefe;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-70%, -50%)rotate(135deg);
    }
    
    .pagination {
        margin: 3% auto 0;
        display: flex;
        justify-content: space-around;
    }
    .pagination-circle {
        width: 15px;
        height: 15px;
        border: none;
        border-radius: 50%;
        background-color: #c8afece6;
    }
}