@charset "UTF-8";

/* 共通部分----------- */
html {
    font-size: 100%;
}
/* 文字の色、フォント設定や行間など------*/
body {
    color: #333333;
    font-family: "BIZ UDPゴシック", "Hiragino Sans", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", sans-serif;
    line-height: 1.7;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
figure {
    margin: 0;
    padding: 0.2rem;
}
figcaption {
    font-size: 0.8rem;
}

/* h1: シンプルに下線 ----- */
h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #333333;
  margin-bottom: 30px;
  border-bottom: 2px solid #333333;
  padding-bottom: 10px;
}

/* h2: 左側にアクセントカラーの縦棒 ----- */
h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 6px solid #3498db;
  padding-left: 15px;
}

/* h3: 背景色に白抜き文字 ----- */
h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #3498db;
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 4px;
}

/* h4: 点線のアンダーライン ----- */
h4 {
  font-size: 1.125rem;
  font-weight: bold;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 15px;
  border-bottom: 1px dashed #cccccc;
  padding-bottom: 5px;
}

/* レイアウト */
.wrapper {
    max-width: 950px;
    margin: auto;
    padding: 1rem 1.5rem;
}
.align-center {
    text-align: center;
}
/* カバーは背景を指定　色または画像 */
.cover {
    background-color: #f3fdf6;
}

/* navi メニューリストの非表示と表示切りかえ設定 スマホ用
   PCやタブレットはCSS最下部のメディアクエリー */
/* メニュー */
.menu-checkbox {
    display: none
}

/* メニュー内容 初期状態は非表示 */
.menu-content {
    display: none;
}

/* on/offのクリック判定でメニューの一覧を表示　*/
.menu-checkbox:checked ~ .menu-content {
    display:block
}

/* トップページの画像メニューレイアウト */
.topmenu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    max-width: 900px;
    width: 90%;
    background-color: #e4e1d8;
    padding: 1rem;
}
.topmenu a {
    color: #226622;
    font-weight: bold;
}
.topmenu li {
    list-style: none;
    max-width: 250px;
    background: #f5f5f5;
    border: 3px solid #808080;
    padding: 5px;
    text-align: center;
    border-radius: 8px;
    transition: 0.2s;
}
.topmenu li a {
    display: flex;
    flex-direction: column; /* 要素を縦並びにする（画像→文字） */
    align-items: center;  
}
.topmenu li:hover {
    background: #d3ffde;
    font-weight: bold;
}
/* トップページの画像メニュー ここまで -- */

/* navi のメニュー -------- */
.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    max-width: 950px;

    width: 90%;
    background-color: #e4e1d8;
    padding: 1rem;
}
.menu a {
    color: #226622;
    font-weight: bold;
}
.menu li {
    list-style: none;
    max-width: 170px;
    background: #f5f5f5;
    border: 3px solid #808080;
    padding: 5px;
    text-align: center;
    border-radius: 8px;
    transition: 0.2s;
}
.menu li:hover {
    background: #d3ffde;
    font-weight: bold;
}
/* メニュー内文字部だけでなくボタン内全体をリンク有効にする */
ul li a {
    display: block;
    width: 100%;
    height: 100%;
}

/* メニュー切り替えの文字 */
.menu-header {
    font-size: 1.1rem;
    background-color: #e4e1d8;
}

/* ヘッダー-------- */
.logo {
    width: 210px;
}

/* PDFボタン リンクボタン共通 */
.btn {
    display: inline-block;
    font-size: 1.5rem;
    background-color: #338833;
    color: #fff;
    border-radius: 8px;
    padding: .75rem 1.5rem;
}
.btn:hover {
    background-color: #226622;
}

/* 路線図の枠線　busimage 角を丸める */
.bus-image {
    border-width: 2px;
    border-style: solid;
    border-color: #999999;
    border-radius: 15px;
}

/* 福井駅近くや福井駅南東部や芦原温泉駅で、路線一覧でのレイアウト 横線 */
dl {
    line-height: 2rem;
    border-bottom: 2px solid #b6d6db;
    margin: 1rem 1.5rem 2rem 1.5rem;
}
dt {
    line-height: 2rem;
    border-top: 2px solid #b6d6db;
}

/* 路線バス等について最近の変更 tableタグのレイアウト */
th,
td {
    display: block;
}
th {
    text-align: left;
}
td {
    padding-left: 1em;
}

/* デスクトップandタブレット版の設定 ------------ */
/* メディアクエリーでデフォルトでメニューを常時表示 */
@media (min-width: 600px) {
    .menu-content {
        display: block;
    }
    /* さらにメニューの「開く/閉じる」の文字を消す */
    .menu-header {
        display: none
    }
}