/* 一般的なボディスタイル */
body {
    font-family: 'Arial', sans-serif; /* フォントファミリーをArialに設定 */
    font-family: 'Noto Serif JP', serif;
    overflow-x: hidden;
}
#space{
    position: relative;
}

main {
    position: relative;
    background: linear-gradient(to bottom, 
        #050937 165vh, 300vh, #141BB2 465vh, 650vh, #B5DBEF 850vh
    );
    margin: 0 auto;
    padding: 3rem;
    padding-top: 80px;/*ハンバーガーメニューの大きさに「+20px」*/
}

@media(min-width:1024px){
    main{
        padding: 7rem;
        padding-top: 80px;
    }
}

/* セクションのスタイル */
section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* トランスフォームとシャドウにトランジションを追加 */
    padding: 2rem;
    z-index: 10;
}
/* セクションのホバー効果 */
section:hover {
    transform: translateY(-5px); /* ホバー時にセクションを上に5px移動 */
    box-shadow: 0px 0px 15px 10px rgb(209, 209, 150); /* シャドウを追加 */
}

section:active {
    transform: translateY(-5px); /* ホバー時にセクションを上に5px移動 */
    box-shadow: 0px 0px 15px 10px rgb(209, 209, 150); /* シャドウを追加 */
}
/* セクションの見出しスタイル */
section h2 {
    font-size: 1.5rem; /* 見出しのフォントサイズを1.875remに設定 */
    line-height: 2rem;
    font-weight: 600; /* 見出しのフォントウェイトを600に設定 */
    margin-bottom: 1rem; /* 下マージンを1remに設定 */
}
/* サブ見出しのスタイル */
section h3 {
    font-size: 1.25rem; /* サブ見出しのフォントサイズを1.25remに設定 */
    line-height: 1.75rem;
    font-weight: 500; /* サブ見出しのフォントウェイトを500に設定 */
    margin-bottom: 0.5rem; /* 下マージンを0.5remに設定 */
}
/* 段落のスタイル */
section p {
    font-size: 1.125rem; /* 段落のフォントサイズを1.125remに設定 */
    line-height: 1.75rem;
}

#directions div{
    background-color: rgb(230, 230, 230);
    border-radius: 10px;
    padding: 0.5rem;
}
#directions h3{
    border-radius: 10px;
    text-align: left;
}
#directions p{
    font-size: 1.1rem;
    line-height: 1.75rem;
}
.mT{
    margin: 0.5rem;
}
#timetable p:first-of-type{
    margin-bottom: 10px;
}
#timetable p:last-of-type{
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-color: rgb(255, 200, 0);
}

/*スマホ*/
@media(max-width:480px){
    section{
        padding: 1rem;
    }
    /* セクションの見出しスタイル */
    section h2 {
        font-size: 1.4rem; /* 見出しのフォントサイズを1.875remに設定 */
        line-height: 2rem;
        font-weight: 600; /* 見出しのフォントウェイトを600に設定 */
        margin-bottom: 0.75rem; /* 下マージンを1remに設定 */
    }
    /* サブ見出しのスタイル */
    section h3 {
        font-size: 1rem; /* サブ見出しのフォントサイズを1.25remに設定 */
        line-height: 1.75rem;
        font-weight: 400; /* サブ見出しのフォントウェイトを500に設定 */
        margin-bottom: 0.3rem; /* 下マージンを0.5remに設定 */
    }
    /* 段落のスタイル */
    section p {
        font-size: 1rem; /* 段落のフォントサイズを1.125remに設定 */
        line-height: 1.75rem;
    }
    
    section span{
        content:"\A";
        white-space: pre;
    }
    #directions h3{
        font-size: 1.2rem;
        font-weight: 500;
    }
}

.contact-info {
    margin-top: 20px;
    color:#0080ff
}

/* Google Maps埋め込みフレームをレスポンシブ対応にする */
.responsive-map {
    position: relative;
    padding-bottom: 500px; /* 16:9 Aspect Ratio 56.25%*/
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f0f0f0;
    z-index: 15;
}
@media(min-width:1024px){
    .responsive-map{
        margin:  0 auto;
        max-width: 1300px;/*900*/

    }
}

.responsive-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
}

/*id:carの画像調節 */
#car img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 0.5rem;
}

/*timetable*/
/* ボタンスタイル */
button {
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#direction-buttons{
    margin: 1rem;
}

/* 方向決定ボタン */
#direction-buttons button{
    background-color: #0180ff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    box-shadow: 7px 5px 10px rgb(100, 100, 100);
}

@media(max-width:647px){
    #direction-buttons button{
        margin-right: 0;
        margin: 0.3rem;
    }
}

#direction-buttons button:hover {
    background-color: #01c4ff;
}

#direction-buttons button.selected{
    background-color: #ffbf00;
    box-shadow: none;
    transform: translateY(5px);
}

#date-buttons{
    margin: 0rem 2rem;
}

/* 日付ボタン */
/* #date-buttons button{
    background-color: #00b7ff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    box-shadow: 7px 5px 10px rgb(100, 100, 100);
}

#date-buttons button:hover{
    background-color: #00ffea;
}
#date-buttons button:active{
    background-color: #00ffea;
}

#date-buttons button.selected{
    background-color: #00ffea;
    box-shadow: none;
    transform: translateY(5px);
} */

/* バス時刻表のスタイル */
#timetable-content {
    font-size: 1.125rem;
    padding-top: 1rem;
}

/* 画像のスタイル */
#timetable-image img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    display: block;
}

/* 隠しクラス */
.hidden {
    display: none;
}