@charset "UTF-8";
/* 共通部分----------- */
html {
    font-size: 100%;
}
/* 文字の色、フォント設定や行間など------*/
body {
    color: #333333;
    font-family: "BIZ UDPゴシック", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
    line-height: 1.7;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
/* h1: 太字と下線 上の余白を狭くする----- */
h1 {
  font-size: 1.75rem;
  font-weight: bold;
  color: #333333;
  margin-top: -0.5rem;
  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;
}
/* ボタンタグ　iPhoneも押しやすく設定 */
button {
  background: #efefef;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  padding: 4px 8px;
  appearance: none;
  color: #000;
  line-height: 1.5rem;
}

/* レイアウト */
.wrapper {
    max-width: 950px;
    margin: auto;
    padding: 1rem 1.5rem;
}
.align-center {
    text-align: center;
}
/* カバーは背景を指定　色または画像 */
.cover {
    background-color: #f3fdf6;
}
/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
}
/* ハンバーガーボタンのデザイン */
.menu-button {
  display: flex;
  padding: 8px 2px 8px;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 9999;
  position: relative;
}
.menu-button span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #226622;
  transition: 0.3s;
}
/* メニューの初期位置（画面外へ隠す） */
.menu-box {
  position: fixed;
  top: 0;
  right: -100%;
  width: 92%;
  height: 100vh;
  background-color: #f8f8f8;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  transition: 0.3s ease-in-out;
  padding-top: 90px;
  padding-left: 1rem;
  z-index: 998;
}
.menu-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-box li a {
  display: block;
  padding: 0.5em 0.5em;
  color: #333;
  font-size: 1.1rem;
  text-decoration: none;
}
/* チェックが入ったらメニューをスライドイン */
.menu-toggle:checked ~ .menu-box {
  right: 0;
}

/* チェックが入ったときにアイコンを×印に変形（オプション） */
.menu-toggle:checked ~ .menu-button span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle:checked ~ .menu-button span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .menu-button span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* ハンバーガーメニュー内のレイアウト */

.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    max-width: 950px;
    width: 90%;
    background-color: #e4e1d8;
    padding: 1rem 1rem 1rem 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: left;
    border-radius: 8px;
    transition: 0.2s;
}
.menu li:hover {
    background: #d3ffde;
    font-weight: bold;
}

/* トップページのサムネ画像入りメニューのレイアウト */
.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;
}

/* ヘッダーのサイト名テキスト */
.heading-box{
  position: relative;
  top: -2rem;
}
/* ヘッダーとfooter直前のリンクボックス */
.title-box a {
  padding: 0.6rem;
  color: #333333;
  background-color: #f5f5f5;
  border: 2px dashed #999999;
  border-radius: 0.5rem;
}
.title-box :hover {
  background-color: #d3ffde;
}
/* ------------------------------------------*/
ul li a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 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;
}