/* CSS Document */
:root {
  --primary-color: #f88379; /* メインカラー */
  --secondary-color: #2ecc71; /* サブカラー */
  --accent-color: #e74c3c; /* アクセントカラー */
  --background-color: #F7DDDC; /* 背景色 */
  --background-color2: #ffffff; /* 背景色2 */
  --text-color: #333; /* テキストカラー */
}
.tc_primary{color: var(--primary-color);}
.tc_secondary{color: var( --secondary-color);}
.tc_accent{color: var(--accent-color);}
.tc_lchan{color: #C0504D;margin-bottom: 0.5em;}

.m_auto{margin: auto;}
.full{width: 100%;}

#s1{
  scroll-margin-top: 190px;
}
#s2,#s3,#s4,#s5 {
  scroll-margin-top: 90px;
}
#age1,#age3{
  scroll-margin-top: 190px;
}

section{
    /*min-height: 50vh;*/
    padding-bottom: 2em;
}
section .text{
    width: fit-content;
    display: inline-block;
    /*text-align: left;*/
    text-align: justify;
    line-height: 1.2em;
    margin: 0 auto;
}
navi .menu{
    display: none;

}
#sp_header{
    position: fixed;
    top:0;
    background: #fff;
    z-index: 10;
}
#sp_header img{
    width: 80%;
    height: auto;
}
#logo{display: none;}

.membar_menu{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
	justify-content: space-around;
	align-items: center;
	margin: 10px auto;
}
.membar_menu>div a{
   /* display: block;*/
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 160px;
    height: 80px;
    /*height: 100px;*/
    margin: 6px;
    text-align: center;
    border: dashed 2px pink;
    border-radius: 10px;
    background-color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    background: rgba(255,255,255,1);
    color: #009933;
}
.membar_menu>div a img{
    border-radius: 10px;
}
.menu_external{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
	justify-content: space-around;
	align-items: center;
	margin: 10px auto;
}
side{
    font-size: 14px;
    position: fixed;
    /*top:30vh;*/
    bottom: 10px;
    left:0;
    align-items: flex-end;
    /*height: 100vh;*/
    z-index: 20;
}
side ul{
    list-style: none;
    padding-left: 0.5em;
    display: block;
}
side ul li{
    background-color:inherit;
    padding: 0;
    margin: 0;
    border-radius: 0;
    margin-bottom: 1em;
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
    color: var(--primary-color);

}
side ul li a{
    left: 0px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.6); 
    padding: 1em;
    padding: 0.5em;
    border-radius: 0 10px 10px 0;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


main{
    background-color: var(--background-color);
    text-align: center;
}
main>.title{
    color: #fff;
    padding: 10px;
    font-size: 36px;
    text-shadow: 2px 2px 4px var(--accent-color);
    display: inline-block;
    text-align: center;
    border-width: 1px 0px 1px 0px;
    border-style: dashed;
    border-color: var(--accent-color);
    margin-bottom: 1em;
    /*border-radius: 6px;*/
    width: 320px;
}
main section>.title{
    font-size: 24px;
    width: 240px;
    margin: 0 auto 1em;
    text-align: center;
    border: 1px dotted var(--accent-color);
    color: var(--accent-color);
    border-radius: 10px;
    background-color: #fff;
    padding: 0.5em;
}
h2{
/*    margin-bottom: 0.5em;
*/}
section{
    position: relative;
    padding: 150px 1em 1px 2em;
}
section:first-of-type{padding-top: 0;}

section:nth-of-type(2n+1){background-color: var(--background-color);}
section:nth-of-type(2n){background-color: var(--background-color2);}

section::after {
    content: "";
    display: block;
    width: 100%;
    height: 100px;
    background: url("../../images/wave2.png") /*no-repeat*/;
    background-size: 100% 200px;
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    z-index: 2;
}
 
section:nth-of-type(2n+1)::after {
    content: "";
    background: url("../../images/wave2.png") /*no-repeat*/;
}
 
section:nth-of-type(2n)::after {
    content: "";
    background: url("../../images/wave1.png") /*no-repeat*/;

}
section:last-of-type::after {
    content: "";
    display: none;
    z-index: -1;
}

footer{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--primary-color);
    /*min-height: 300px;*/
    padding: 1em;
    color: #fff;
}
header .navi,footer .navi{
    width: 100%;
    margin: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-top: 1px #fff dashed;
    color: #fff;
}
header .navi{
    margin-left: 60px;
}
header .menu_list,footer .menu_list{
    /*list-style: none;*/
    padding: 6px 0;
    width: 50%;
    margin-top: 0;

}
header .menu_list li,footer .menu_list li{
    padding-left: 0px;
    margin-left: 1.5em;
    font-size: 12px;

}
header .menu_list li:nth-child(1),footer .menu_list li:nth-child(1){
    font-weight: bold;
    font-size: 14px;
    padding-left: 0;
    list-style: none;
    margin-left: 0;
}
.line {
    width: 100%;
    height: 60px;
    margin-top: 20px;
    margin-bottom: 0px;
    background-repeat: repeat-x; /* repeat-x, repeat-y も可 */
   /* background-size: contain;*/ 
    /*background-size: cover; */
    position: relative;
    z-index: 2;
    background-size: 180% 100%; /* ← 背景を要素に完全にフィットさせる */
    background-position: center center;
}
.line01 {background-image: url("../../images/line01.png");    margin-top: -120px;}
.line02 {background-image: url("../../images/line02.png");}
.line03 {background-image: url("../../images/line03.png");}
.line_contact {background-image: url("../../images/line_contact.png");}
.line_facility {background-image: url("../../images/line_facility.png");}
.line_access {background-image: url("../../images/line_access.png");}

    #daily,#year {
      scroll-margin-top: 190px;
    }
/*--- Tablet View ---------------------------------------------------------------------------------------------------------*/
@media (min-width: 768px){
    header{
        position: relative;
       /* display: flex;*/
        
    }
    #sp_header{
        display: none;
    }
    #logo{display: block;}

    main{
        margin-top: 120px;
    }
    main>.title{
        margin-top: 60px;
    }
    main section>.title{
    }
    #logo{
        width: 360px;
        text-align: center;
        z-index: 11;
    }
    #logo img{
        width: 320px;
    }

    navi{
        display: flex;
        position: fixed;
        top:0;
        height: 120px;
        /*background-color: rgba(255,255,255,0.8); */
        align-items: center;
        margin: 0;
        padding: 0;
        width: 100%;
        justify-content: space-around;
        cursor: pointer;
        z-index: 10;
    }
    navi::before {
        content: "";
        display: block;
        width: 105%;
        height: 210px;
        background: url("../../images/nav-shape.png") no-repeat;
        background-size: 100% 210px;
        position: absolute;
        top: -50%;
        left: 0;
        right: 0;
        /*z-index: -1;*/
    }
    
    .menu>div a{
/*        width: 160px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        margin: 10px;        
*/    }
    navi .menu {
        position: relative;
        /*display: inline-block;*/
        display: block;
        flex-wrap: wrap;
        text-align: center;
        width: auto;
        justify-content: center;
        white-space: nowrap;
        align-items: center;
        padding: 1em;
        color: var(--primary-color);
        /*font-weight: bold;*/
    }
    .menu a {
        color: var(--primary-color);
    }

    .submenu {
        display: none;
        position: absolute;
        color: green;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        width: auto;
        background-color: #fff;
        border: 3px solid var(--primary-color);
        border-radius: 10px;
        padding: 15px;
        min-width: 200px;
        z-index: 10;
        top: 90px;
        left: -50px;
        left:50%;
         transform: translate(-50%, 0%);
        /*opacity: 0; *//* 初期状態で非表示（透明） */
        transition: opacity 0.5s ease; /* トランジションの設定 */
    }
    .submenu::before {
        position: absolute;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    .submenu::before {
        content: '';
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 8.5px 14px;
        border-color: transparent transparent var(--primary-color);
        top: -16px;
    }
    .menu:hover .submenu {
        display: block;
        /*opacity: 1;*/
    }

    .submenu a {
        color: var(--primary-color);
        text-decoration: none;
        display: block;
        padding: 10px;    

    }

    .submenu a:hover {
        background-color: var(--primary-color);
        color: #fff;
    }
    side{
        font-size: 16px;
        position: fixed;
        top:30vh;
        left:0;
        align-items: flex-end;
        height: 100vh;
        z-index: 20;
    }
    side ul{
        list-style: none;
        padding-left: 1em;
        display: block;
    }
    side ul li{
        background-color:inherit;
        padding: 0;
        margin: 0;
        border-radius: 0;
        margin-bottom: 1em;
        writing-mode: vertical-rl;
        letter-spacing: 0.1em;
        color: var(--primary-color);

    }
    side ul li a{
        /*position: fixed;*/
        left: 0px;
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        background-color: rgba(255,255,255,0.9); 
        padding: 1em;
        border-radius: 0 10px 10px 0;
        font-weight: bold;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    section::after {
        background-size: 100% 210px;
    }

    footer{
    }
    footer .navi{
        width: 100%;
        margin: 1em;
        display: flex;
        justify-content: space-around;
        border-top: 1px #fff dashed;
        color: #fff;
    }
    footer .menu_list{
        list-style: none;
        padding: 0;
        width: auto;
        margin: 1em;
        
    }
    footer .menu_list li{
        padding-left: 0.5em;
        margin-left: auto;
        font-size: medium;
        line-height: 1.5em;
        text-align: left;
    }
    footer .menu_list li:nth-child(1){
        font-weight: bold;
        font-size: large;
        padding-left: 0;
    }
    .line {
        width: 100%;
        height: 160px;
        margin-top: 0px;
        /*margin-bottom: 20px;*/
        margin-bottom: -40px;
        background-repeat: repeat-x; /* repeat-x, repeat-y も可 */
        background-size: contain; 
        position: relative;
        z-index: 3;
    }

}
/*--- Desktop View ---------------------------------------------------------------------------------------------------------*/
@media (min-width: 1024px){
}

.btn_busmap img{
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}
.image_container {
    display: flex;
    justify-content: center;
    gap: 1em; /* 要素の間隔を調整したいとき */
    flex-wrap: wrap; /* 画面が狭い時に折り返すなら */
    margin: 1em;
}

