﻿.logo
{
  height: 100px;
  width: 100px;
}

/* 全体のバー */
.bar {
  position: sticky;
  top: 0; /* 画面の上に固定 */
  background: white;
  border-bottom: 4px solid #000;
  z-index: 1000; /* 前に表示 */
}

/* 中身を横並びに */
.bar-in {
  max-width: 2100px;
  padding: 0.5rem 1rem; /* 余白 */
  display: flex; /* 横並びにする */
  align-items: center;
  justify-content: space-between; /* ロゴとメニューを左右に分ける */
}

/* バーのリンク */
.bar-link a {
  margin-left: 4rem; /* 間隔を広げる */
  text-decoration: none; /* 使わない下線消し */
  color: #333;
  font-weight: 700;
  font-size: 24px;
  padding-bottom: 4px; /* 下線と文字のスペース */
  border-bottom: 2px solid transparent; /* 最初は線を消す */
  transition: border-color 0.5s, color 0.5s; /* 下線部の動き */
}

/* 下線部の線 */
.bar-link a:hover {
  border-bottom: 2px solid #000;
}

/* 文字を大きくする */
.big-text {
  font-size: 34px; /* 文字のサイズ */
  max-width: 1600px; /* 横幅調整 */
  margin: 0 auto; /* 文字を中央に */
}

/* 文字に下線部 */
.underline {
  border-bottom: 7px solid #00cfff; 
}

/* 四角で囲む */
.box {
  border: 2px solid #000;  /* 黒の四角 */
  padding: 15px;            /* 内側の余白 */
  border-radius: 10px;       /* 角を丸く */
  background-color: #f9f9f9; /* 背景の色 */
}

/* ボタン */
.start-button {
  text-align: center;
  margin: 3rem 0; /* 上下の余白 */
}

/* トップページのボタン */
.btn {
  display: inline-block;
  background-color: #1E90FF; 
  color: white;
  font-size: 1.2rem;
  font-weight: bold; /* フォント */
  padding: 1rem 3rem; /* ボタンの縦横比 */
  margin: 0 2rem; /* ボタンの隙間 */
  border-radius: 12px; /* 角を丸く */
  text-decoration: none; /* リンクの線を消す */
  transition: background-color 0.3s, transform 0.2s; /* 動き */
}

/* 上のボタンにふれたとき */
.btn:hover {
  background-color: #104E8B; /* 押されたら色変え */
  transform: scale(1.05); /* 押したら拡大 */
}

/* 地方の四角 */
.ken {
  display: inline-block;
  padding: 1.2rem 3.5rem; /* 四角の大きさ */
  font-size: 1.4rem;
  color: white; /* 文字色 */
  margin: 0 4rem; /* 四角同士の間隔 */
  cursor: default;
  pointer-events: none;
}

/* 地方の色 */
.ken-to { background-color: #619FEB; }
.ken-ka { background-color: #3DA942; }
.ken-chu { background-color: #99CC33; }
.ken-ki { background-color: #F2C100; }
.ken-shi { background-color: #FD9FAB; }
.ken-kyu { background-color: #FF6460; }

/* 地方ごとに横並び */
.ichiran{
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap; /* 狭いとき折り返す */
}

/* トップページ県中央揃え */
.middle {
    text-align: center; /* 中央揃え */
}

/* トップページ県表示 */
.ken-moji {
  display: block; /* ボタンの下に改行 */
  margin-top: 0.5rem; /* ボタンとの間隔 */
  font-size: 1.4rem;
  color: #0077CC;
  text-decoration: underline;
}


.ken-list a {
  display: block; /* 縦並び */
  margin: 0.5rem 0; /* 県同士の間隔 */
  color: #0077CC;
  text-decoration: underline;
}

/* トップ県押したら濃く */
.ken-list a:hover {
  color: #00497D;
}


.syousai {
  text-decoration: underline;
  text-align: center;
}



#menu {
  position: fixed;    /* バーを画面上に固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 145px;      /* menu.htmlのバーの高さと合わせる */
  border: none;
}


/* 下の本文をバーの下にずらす */
.body_index {
  margin: 0;
  padding-top: 140px; /* バーの高さ分余白 */
  font-family: sans-serif;
  background-image: url("../soza/green.png");
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.body_aboutus {
  margin: 0;
  padding-top: 140px; /* バーの高さ分余白 */
  font-family: sans-serif;
  background-image: url("../soza/blue.png");
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* 出典の県名 */
.subtitle {
  font-family: "メイリオ", "ヒラギノ角ゴ", sans-serif; /* フォントの種類 */
  font-size: 36px; /* 文字の大きさ */
  font-weight: normal;
  color: #333; /* 文字の色 */
}


/* ----------出典ページ専用---------- */

.container {
  display: flex;
  height: calc(100vh - 145px);
  position: absolute;
  top: 145px;
  left: 0;
  right: 0;
}

/* 左側：本文（県ごとの見出し） */
.main {
  flex: 4;/* 4:1 */
  padding: 60px;
  overflow-y: scroll;
  font-size: 18px;
  scroll-behavior: smooth; /* 滑らかにスクロール */
}

.main h1 {
  margin: 10px 0;
  text-indent: -30px;
  font-family: "メイリオ", "ヒラギノ角ゴ", sans-serif; /* フォントの種類 */
  font-size: 36px;
  font-weight: normal;
  color: #333; /* 文字の色 */
}

/* 右側の目次 */
.toc {
  flex: 1;
  padding: 10px;
  border-left: 2px solid #ccc;
  background: #f9f9f9;
  overflow-y: scroll;
}


.toc-links a {
  margin: 0.5rem 0;
  color: #0077cc;
}

.toc-links a:hover {
  color: #00497d;
}

/* ボタンを三列にする */
.btn_menu{
  display: flex;
  margin-bottom: 15px; /* ボタン縦間隔 */
  gap: 11px; /* ボタン横間隔 */
  justify-content: center;
}

/* ボタン装飾 */
.btn_ken{
  font-size: 32px;
  cursor: pointer;
  width: 150px;
}

/* -------------------- */