/* 一般的なボディスタイル */
body {
    font-family: 'Arial', sans-serif; /* フォントファミリーをArialに設定 */
    font-family: 'Noto Serif JP', serif;
}




/* 新しいヘッダー用のスタイル */
.new-header {
    background-color: #11114d;
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.new-header-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}

.new-logo {
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

.new-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.new-header-title {
    margin: 0;
    font-size: 1.5em;
    font-family: 'Noto Serif JP', serif;
    color: white;
}

.new-header-info p {
    margin-top: 5px;
    font-size: 0.8em;
    font-family: 'Noto Serif JP', serif;
    color: white;
}

.new-teisai-container {
    margin-left: auto; /* 左側のスペースを自動的に埋めることで右端に配置 */
    text-align: right;
    display: flex;
    align-items: center;
}

.new-teisai {
    font-family: 'Noto Serif JP', serif;
    font-size: 3em;
    color: white;
    margin: 0;
}

/* HOMEリンクのスタイル */
.new-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.new-nav ul li {
    margin: 0;
}

.new-nav ul li a {
    color: white;
    text-decoration: none;
}

.new-nav ul li a:visited,
.new-nav ul li a:hover,
.new-nav ul li a:active {
    color: white;
}

/* 新しいリンクスタイル */
.new-logo-link, .new-info-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.new-logo-link:hover,
.new-info-link:hover,
.new-logo-link:active,
.new-info-link:active {
    color: inherit;
}

/* スマホ対応のためのメディアクエリ */
@media (max-width: 768px) {
    .new-header {
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .new-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .new-header-title {
        font-size: 1.2em;
    }

    .new-header-info p {
        font-size: 0.7em;
    }

    .new-teisai {
        font-size: 2.5em;
    }

    .new-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .new-nav ul li {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .new-header {
        padding: 15px;
    }

    .new-logo {
        width: 35px;
        height: 35px;
    }

    .new-header-title {
        font-size: 1em;
    }

    .new-header-info p {
        font-size: 0.6em;
    }

    .new-teisai {
        font-size: 2em;
    }
}








/* Google Maps埋め込みフレームをレスポンシブ対応にする */
.responsive-map {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f0f0f0;
}

.responsive-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ナビゲーションリンクのスタイル */
nav a {
    font-size: 1.125rem; /* リンクのフォントサイズを1.125remに設定 */
    margin-right: 1.5rem; /* 右マージンを1.5remに設定 */
    color: #FFFFFF; /* リンクの色を白に設定 */
    transition: color 0.3s ease; /* 色の変化にトランジションを追加 */
}

/* ナビゲーションリンクのホバー効果 */
nav a:hover {
    color: #D1D5DB; /* ホバー時のリンクの色をグレーに変更 */
}

/* セクションのスタイル */
section {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* トランスフォームとシャドウにトランジションを追加 */
    padding: 2rem;
}

/* セクションのホバー効果 */
section:hover {
    transform: translateY(-5px); /* ホバー時にセクションを上に5px移動 */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1); /* シャドウを追加 */
}

/* セクションの見出しスタイル */
h2 {
    font-size: 1.875rem; /* 見出しのフォントサイズを1.875remに設定 */
    font-weight: 600; /* 見出しのフォントウェイトを600に設定 */
    margin-bottom: 1rem; /* 下マージンを1remに設定 */
}

/* サブ見出しのスタイル */
h3 {
    font-size: 1.25rem; /* サブ見出しのフォントサイズを1.25remに設定 */
    font-weight: 500; /* サブ見出しのフォントウェイトを500に設定 */
    margin-bottom: 0.5rem; /* 下マージンを0.5remに設定 */
}

/* 段落のスタイル */
p {
    font-size: 1.125rem; /* 段落のフォントサイズを1.125remに設定 */
}

.contact-info {
    margin-top: 20px;
    color::#0080ff
}





/* ボタンスタイル */
button {
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

/* ボタンのホバー効果 */
button:hover {
    background-color: #2563EB;
}

/* バス時刻表のスタイル */
#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;
}

img, video {
    max-width: 50%;
    height: auto;
    display: block; /* ブロック要素として扱う */
    margin: 0 auto; /* 左右のマージンを自動で設定して中央寄せ */
}

@media (max-width: 780px) {
    img, video {
        max-width: 100%; /* 画面幅が780px以下のとき、幅を100%に */
    }
}













/* フッター用のスタイル */
.footer-container {
    background-color: #333;  /* フッターの背景色を黒に固定 */
    color: white;            /* フッターのテキスト色を白に固定 */
    padding: 20px 0;         /* 上下のパディング */
    font-family: 'Noto Serif JP', serif;  /* フッター用フォント */
    padding-left: 8%;        /* 左からの余白を追加 */
    width: 100%;             /* フッターの幅を全体に広げる */
    box-sizing: border-box;  /* パディング込みで幅を調整 */
}

.footer-contact {
    margin-bottom: 10px;     /* お問い合わせセクションの下の余白を狭める */
    text-align: left;        /* お問い合わせ情報を左寄せ */
    padding: 10px;           /* お問い合わせセクション内のパディングを狭める */
    color: white;            /* テキスト色を白に固定 */
}

.footer-contact h4 {
    margin-bottom: 8px;      /* タイトルと次の段落の間隔を狭める */
    font-size: 1.5rem;
    color: white;            /* タイトルの色を白に固定 */
}

.footer-contact p {
    margin: 5px 0;           /* 各段落の間隔を狭める */
    line-height: 1.4;        /* テキスト間の行間を狭める */
    color: white;            /* 段落のテキスト色を白に固定 */
}

.footer-link {
    color: white;;          /* リンクの色を青に固定 */
    text-decoration: none;   /* 下線をなくす */
}

.footer-link:hover {
    text-decoration: underline;  /* ホバー時に下線を追加 */
}

.footer-bottom {
    text-align: center;      /* すべてのテキストを中央寄せ */
    margin-top: 15px;        /* 上に余白を追加 */
    font-size: 0.9em;        /* 少し小さめのフォントサイズ */
    color: white;            /* フッターテキストを白に固定 */
}

.footer-bottom p {
    color: white;            /* フッターの段落テキストも白に固定 */
}

/* スマホ対応のためのメディアクエリ */
@media (max-width: 768px) {
    .footer-container {
        padding: 15px 5%;   /* スマホ向けにパディングを小さく */
    }

    .footer-contact {
        padding: 8px;
        text-align: left;   /* スマホでもお問い合わせ情報は左寄せのまま */
    }

    .footer-contact h4 {
        font-size: 1.2rem;  /* タイトルのフォントサイズを小さく */
    }

    .footer-contact p {
        font-size: 0.8rem;  /* 段落のフォントサイズを小さく */
    }

    .footer-bottom {
        text-align: center; /* フッターの下部はスマホでも中央寄せ */
        font-size: 0.8em;   /* フッターのフォントサイズをさらに小さく */
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 10px 3%;   /* さらにパディングを小さく */
    }

    .footer-contact {
        text-align: left;   /* スマホの小さい画面でもお問い合わせ情報は左寄せ */
        padding: 5px;
    }

    .footer-contact h4 {
        font-size: 1rem;    /* タイトルのフォントサイズを小さく */
    }

    .footer-contact p {
        font-size: 0.7rem;  /* 段落のフォントサイズを小さく */
    }

    .footer-bottom {
        text-align: center; /* フッターの下部は常に中央寄せ */
        font-size: 0.7em;   /* フォントサイズをさらに小さく */
    }
}
