/* common --------------------------------------------------------- */
body {
    min-width: 0 !important;
    background-image:none !important;
}
img {
    width: 100% !important;
    height: auto !important;
}

div:after {
    display: none !important;
}
.itp_breakall{
    word-break: break-all;
}
.itp_auto-phrase{   
    word-break: keep-all;
}


.itp_mbOnly {
    display: block !important;
}

.itp_pcOnly{
    display: none !important;
}

.itpMax500 {
    max-width: 500px;
}


/* 共通構造 ---------------------------------------------------------*/

/* 新着情報～アクセス上まで */
#contents {
    width: 90% !important;
}

/* ナビ ---------------------------------------------------------*/
#nav {
    display: none;
}

/* hamburgerメニュー ---------------------------------------------------------*/

/* ボタン */
.ham_con {
    display: block;
    position: fixed;
    background: #E53E5A;
    border-radius: 20px 0 0 20px;
    cursor: pointer;
    font-family: "M PLUS Rounded 1c", sans-serif;
    width: 50px;
    height: 100px;
    writing-mode: vertical-rl;
    right: 0;
    z-index: 2;
    top: 30px;
    border: 4px solid white;
    border-right: none;
    right: 0;
    color: white;
}
.ham_con.active{
        right: 215px;
}

/* ボタン　ライン */
.ham_con span {
    display: inline-block;
    position: absolute;
    left: 50%;
    height: 3px;
    border-radius: 5px;
    background: white;
    width: 35%;
    transform: translate(-50%);
}

.ham_con span:nth-of-type(1) {
    top: 20px;
}

.ham_con span:nth-of-type(2) {
    top: 27px;
}

.ham_con span:nth-of-type(3) {
    top: 34px;
}

/* MENU */
.ham_con span:nth-of-type(3)::after {
    display: flex;
    content: "メニュー";
    position: absolute;
    left: 46%;
    transform: translateX(-50%);
    margin-top: 5px;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    word-break: keep-all;
    top: 6px;
}

_::-webkit-full-page-media, _:future, :root .ham_con span:nth-of-type(3)::after {
    transform: translateX(-70%);
}

/* active時 */
.ham_con.active span:nth-of-type(1) {
    transform: rotate(-45deg);
    width: 25px;
    top:25px;
    transform: translate3d(-50% ,0 ,0) rotate(-45deg);
}

.ham_con.active span:nth-of-type(2) {
    opacity: 0;
}

.ham_con.active span:nth-of-type(3) {
     top: 25px;
    width: 25px;
    transform: translate3d(-50% ,0 ,0) rotate(45deg);
}

.ham_con.active span:nth-of-type(3)::after {
    content: "閉じる";
    transform: translateY(0) rotate(-45deg);
    top: 8px;
    left: 26px;

}
_::-webkit-full-page-media, _:future, :root .ham_con.active span:nth-of-type(3)::after {
    transform: translate3d(-10%,10%,0)  rotate(-45deg);
}

/* 中身 */
.ham_inner {
    font-family: "M PLUS Rounded 1c", sans-serif;
    position: fixed;
    background-color: white;
    z-index: 2;
    top: 20px;
    text-align: left;
    box-sizing: border-box;
    right: 0;
    height: fit-content;
    padding: 20px;
    border: 5px solid #E53E5A;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.ham_inner li{
    width: fit-content;
    width: 100%;
    margin-bottom: 10px;
}

.ham_inner li a{
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: white;
    background-color:rgb(105, 105, 105) ;
    padding: 10px 20px ;
    height: 100%;
    box-sizing: border-box;
    display: block;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 10px;
    font-weight: bold;
}

.ham_inner li a:hover{
    background-color: white !important;
}

.ham_inner li:nth-child(1) a{
    background-color: #C69C6D;
    border-color: #C69C6D;
}
.ham_inner li:nth-child(2) a{
    background-color: #5AC8C3;
    border-color: #5AC8C3;
}

.ham_inner li:nth-child(3) a{
    background-color: #EF87AE;
    border-color: #EF87AE ;
}

.ham_inner li:nth-child(4) a{
    background-color: #B062A3;
    border-color: #B062A3;
}

.ham_inner li:nth-child(5) a{
    background-color: #F39800;
    border-color: #F39800 ;
}

.ham_inner li:nth-child(6) a{
    background-color: #64B9EA;
    border-color: #64B9EA ;
}
.ham_inner li:nth-child(7) a{
    background-color:#6DBB58;
    border-color: #6DBB58;
}

.ham_inner li:nth-child(1) a:hover{
    color: #C69C6D;
}

.ham_inner li:nth-child(2) a:hover{
    color: #5AC8C3;
}

.ham_inner li:nth-child(3) a:hover{
    color: #EF87AE ;
}

.ham_inner li:nth-child(4) a:hover{
    color: #B062A3;
}

.ham_inner li:nth-child(5) a:hover{
    color: #F39800 ;
}

.ham_inner li:nth-child(6) a:hover{
    color: #64B9EA ;
}
.ham_inner li:nth-child(7) a:hover{
    color: #6DBB58;
}




/* メインビジュアル ---------------------------------------------------------*/

.itp_mainGraphic img{
    display: block !important;

}
header.top{
    background-image: none !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}


/* youtube ---------------------------------------------------------*/
#youtube iframe{
    aspect-ratio: 560 / 315;
    width:60%;
    height: auto;
    margin-top: 2.5vw;
}

#youtube{
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 176 / 81;
    height: auto !important;
    padding: 0 !important;
    background-size: contain;
}

/* 協賛ボタン ---------------------------------------------------------*/
.itp_top-SponsorBtn a{
    font-size: 25px !important;
    padding: 15px 40px !important;
}
.itp_top-SponsorBtn a.botan_link05{
    font-size: 16px !important;
    line-height: 140% !important;
    padding: 8px 30px !important;
    margin-left: 0px !important;
}

/* 新着情報 ---------------------------------------------------------*/

/* 見出し */
.itp_top-headline-newinfo{
    display: flex !important;
    gap: 10px;
    position: relative;
    align-items: center;
    border-bottom: 2px solid #0075c1;
    padding-bottom: 2px;
}
.itp_top-headline-newinfo-imgWrap img{
    width: 50px !important;
    height: auto;
}
.itp_top-headline-newinfo-txt{
    line-height: 1em !important;
    font-size: 25px;
    font-family: "M PLUS Rounded 1c", sans-serif !important;
    color: #0075c1;
    font-weight: 500;
}
.itp_top-headline-newinfo::before{
    content: "Matsubara Marche";
    font-size: clamp(11px, 3vw, 16px);
    opacity: .5;
    font-family: sans-serif !important;
    color: #0075c1;
    font-weight: 800;
    bottom: .5px;
    position: absolute;
    right: 0;
}

@media (max-width:360px){
    .itp_top-headline-newinfo::before{
        display: none !important;
    }
}

/* #box_L,R------------------- */
#box_L,
#box_R {
    float: none !important;
    width: 100% !important;
}

/* 新着一覧 */
#new_box {
    border-radius: 10px 0 0 10px !important;
    border: 2px #cccccc solid !important;
    height: fit-content !important;
    max-height: 372px;
    border-right: none !important;
}

#new_box dl:not(:first-child) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px #000 dashed;
}

#new_box dl dd {
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


#box_R {
    max-width: 600px;
    margin: auto;
}



/* 正方形バナーエリア ---------------------------------------------------------*/
ul#top_event_menu li , ul#top_event_menu_l li {
    width: 100% !important;
    margin: 0 !important;
}

#top_event_menu {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

#top_event_menu li.rectangle {
    grid-row: 1;
    grid-column: 1/3;
    gap: 20px 0px!important;
}

/* アクセス --------------------------------------------------------- */

.top_content {
    float: none !important;

}

#access {
    width: 90% !important;

}

#access td,
#access th {
    display: block !important;
}

#access th {
    max-width: 150px;
    margin: auto;
    margin-bottom: 30px;
}

#access td {
    /* 属性解除しないと無理 */
    text-align: center;
    align-items: center;
    padding: 0;
    display: block;
    margin: auto;
    width: fit-content;
}

#access td img {
    display: none;
}

.itp-access_infoWrap {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

.itp-access_info-1stLine {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 5px;
}

.itp-access_info-2ndLine {
    font-weight: 500;

}

/* ご来場は近鉄電車が… */
.itp-access_info-rightBox {
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: #E53E5A;
    border-bottom: 2px solid #E53E5A;
    font-weight: bold;
    padding: 3px 20px;
}

/* footer（ピンク色エリア） --------------------------------------------------------- */
footer {
    padding-top: 50px !important;
}

#footer_box {
    width: 100% !important;
}

#pagetop {
    z-index: 1;
}

#pagetop img {
    width: 90px !important;
}

.itp_footer-imgWrap {
    width: 90%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: auto;
    margin-bottom: 50px;
}

.ite_footer-img-logo {
    max-width: 300px;
}

.ite_footer-img-date {
    max-width: 350px;

}


/* 背景画像あるとこ SNSのボタン含む */
#footer_title {
    background: none !important;
    padding: 0 !important;
    height: fit-content !important;
    margin-bottom: 50px;
}

/* snsのボタンwrap */
.sns_box {
    display: flex !important;
    position: static !important;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
@media(max-width:500px){
.sns_box {
    max-width: 300px;
    margin: auto;
}
}

/* twitterボタン */
.twitter-share-button {
    margin: 0 !important;
    width: 90px !important;
}

/* LINEボタン */
.itp-footer_line img {
    max-width: 100px !important;
}


/* facebook */
#ITP_FooterFbWrap {
    width: 90% !important;
    max-width: 500px;
    margin: auto;
    margin-bottom: 20px;
    float: none !important;
}

/* Instagram */
.itp-footer_instWrap {
    width: 90% !important;
    margin: auto;
    max-width: 500px;
    height: auto !important;
    float: none !important;
}
.Instagram-img-top{
    aspect-ratio: 232 / 220;
    width: 100%;
}


/* 主催など */
.itp-footer_infoTbl {
    margin: auto;
    width: 95%;
}

/* smark */
.itp-footer_infoTbl_scmark {
    display: none;
}

.itp_footer-scmark {
    display: block !important;
    max-width: 150px;
    text-align: center;
    margin: 20px auto;
}

#copyright {
    font-size: 13px !important;
    width: 90%;
    margin: auto;
}
