/* ベース */
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #f9f9f9;
  
}

/* ヘッダー */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  font-size: 1.3rem;
  color: #0066cc;
  margin: 0%;
  padding: 0%;
  font-style: italic;
  max-width: 100px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ナビゲーション */
.main-nav {
  background-color: #fff;
  width: 100%;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.main-nav a:hover {
  background-color: #e0f0ff;
}

/* スマホ時 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .main-nav.open {
    max-height: 500px; /* 開くと下に“伸びる” */
  }

  .main-nav a {
    border-top: 1px solid #eee;
  }
}

/* ヒーロー部分 */
.hero {
  height: 100vh;
  background: url("./img/若狭海岸鉄道1000形-ローアングル-hero.png") center/cover no-repeat;
  position: relative;
}

@media (max-width: 870px) {
  .hero {
  height: 70vh;
  background: url("./img/若狭海岸鉄道1000形-ローアングル-hero.png") center/cover no-repeat;
  position: relative;
}
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column; /* ← 縦並びに */
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 2.0rem;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.3rem;
  opacity: 0.9;
}

.site-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 20px 0;
  font-size: 14px;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-info p {
  margin: 5px 0;
}

.footer-nav {
  display: flex;
  gap: 15px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #00aaff;
}

/* スマホ用レスポンシブ */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    margin-top: 10px;
    flex-wrap: wrap;
  }
}

.section-inside{
    margin: 10px;
    background-color: #efefef;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 7px;
    padding-top: 1px;
}

.section-inside h2 {
    font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 2px;
  border-bottom: 3px solid #70dae8; /* 明るい青のライン */
}


    /* スマホのみ改行用（使い方: 改行したい箇所に <br class="mobile-only"> を挿入） */
    br.mobile-only {
        display: none;
    }

    @media (max-width: 600px) {
        /* スマホ表示時のみ改行を有効にする */
        br.mobile-only {
            display: block;
        }
    }

    /* クイック検索フォーム */
    .quick-search-form {
        background-color: #ffffff;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .form-label {
        font-weight: bold;
        color: #333;
    }

    .form-label select,
    .form-label input[type="time"] {
        min-width: 150px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1rem;
        background-color: #f9f9f9;
    }

    .form-actions {
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
    }

    .btn-primary {
        background-color: #0066cc;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s;
        padding: 5px 9px;
    }

    .btn-primary:hover {
        background-color: #005bb5;
    }

    .btn-secondary {
        background-color: #f0f0f0;
        color: #333;
        border: 1px solid #ccc;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s;
        padding: 5px 9px;
    }

    .btn-secondary:hover {
        background-color: #e0e0e0;
    }

    .search-note {
        font-size: 0.9rem;
        color: #666;
    }

    .routemap-div{
        text-align: center;
    }

    .quick-search-form2 {
        background-color: #ffffff;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding-top: 15px;
    }

    .quick-search-form3 {
        list-style: none;
        background-color: #ffffff;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .quick-search-form4 {
        background-color: #ffffff;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px;
        padding-top: 0px;
    }

    .strong-li{
        font-weight: 600;
    }

    .li-dot{
        list-style: none;
        border-left: 3px solid #0066cc;
        padding-left: 5px;
        margin-right: 0px;
        margin-bottom:10px ;
    }

    .li-dot2 {
        list-style: none;
        border-left: 3px solid #4e92d6;
        padding-left: 5px;
        margin-right: 0px;
        margin-bottom:10px ;
    }

    .li-dot3 {
        list-style: none;
        border-left: 3px solid #a6cbf0;
        padding-left: 5px;
        margin-right: 0px;
        margin-bottom:10px ;
    }

    .motto {
        text-decoration: none;
        color: #333;
        font-weight: 500;
    }

    .motto:hover {
        text-decoration: underline;
        text-decoration-style:dashed;
        text-decoration-color: #0066cc;
    }

    .bana-{
        display: flex;
        margin: 10px;
    }

    .bana-img {
        margin-right: 10px;
    }

    /* CSS（Grid） */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;               /* アイテム間の余白 */
  align-items: start;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.card {
  background: #fff;        /* 必要なら変更 */
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  width: 150px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform .14s ease, box-shadow .14s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.card img {
  width: 150px;
  height: auto;
  display: block;
  object-fit: cover;
}

/* キャプション */
.card figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: #222;
  line-height: 1.3;
}

/* 小さい画面での調整（任意） */
@media (max-width:420px) {
  .gallery { gap: 10px; }
  .card figcaption { font-size: 13px; padding: 8px; }
}

.search-result-box-style {
  border: #005bb5 solid 2px;
}

.routemapimg {
  text-align: left;
}

.junbi {
  color: #e30000;
  font-weight: 500;
}

.quick-search-form select {
  width: 40px;   /* 好きな幅に調整してOK */
  max-width: 100%;
}

table {
 border-collapse: collapse;
 border: 2px solid black;
}

table th,
table td {
 border: 1px dashed gray;
 padding: 5px;
}

table th {
  background: #93dbff;
}

.kyori {
  background: #d2d2d2;
}

@media screen and (max-width: 430px) {
table th,
table td {
 border: 1px dashed gray;
 padding: 5px;
 font-size: 13px;
}
}

@media screen and (max-width: 340px) {
table th,
table td {
 border: 1px dashed gray;
 padding: 5px;
 font-size: 10px;
}
}

.tokkyu ul{
  padding-left: 15px;
  list-style:decimal;
}

.route {
  font-size: 130%;
  border-bottom: 2px dashed #005bb5;
}

.route2 {
  font-size: 130%;
  border-bottom: 2px dashed #b50045;
}

.sitemap a {
  color: #fff;
  text-decoration: none;
}

.sitemap a:hover {
  border-bottom: 1.5px dashed #fff;
}

.sitemap {
  padding-left: 16px;
}

.sitemap {
  list-style: none;
}

.sum {
  font-weight: 500;
}

.yama {
  color: #b8790b;
  list-style: none;
}

.misaca {
  padding: 0;
  margin: 0;
}

/* 各ブロック */
.info-block {
  flex: 1;
}

.info-block h2 {
    font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 2px;
  border-bottom: 1.5px dashed #cf8856;
  margin-right: 30px;
  display: inline-block;
}

/* 見出し */
.info-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 2px;
  border-bottom: 1.5px dashed #cf8856;
  margin-right: 30px;
  display: inline-block;
}

/* リスト */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

/* 日付部分 */
.info-list .date {
  color: #555;
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 90px;
}

/* リンク部分 */
.info-list a {
  color: #008bb0;
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
}


.more-btn {
  display: inline-block;
  background-color: #ffffff;
  border: 1.4px dashed #86c2ff;
  color: #0b2d67;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 585;
  transition: 0.2s;
}

.more-btn:hover {
  opacity: 0.8;
}

