* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

header, h1, h2, h3, p {
  margin: 0;
  padding: 0;
}


.landing-photo {
  background-image: url('../photo/banba.JPG');
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  height: 80vh;
  width: 80%;
  margin: 0 auto;
  margin-top: 10px;
  padding: 0;
}

.header-back-photo {
  /* background-image: url('photo/banba.JPG'); */
  background-color: #444;
  background-size: cover;
  background-position: center;
  height: 100px;
  width: 100%;
  margin: 0;
  padding: 0;
}

#footer {
  font-family: 'Noto Sans JP', serif;
  background-color:#19284c;
  color: #f9f9f9;
  padding-top: 100px;
  margin-top: 140px;
  text-align: right;
}

#footer p{
  padding-right: 20px; 
  
}
.footer-menu-list li{
  text-align: left !important;
  margin-left: 40px;
  list-style-type: none;
}

.footer-menu-list li a{
  color: #f4f4f4;
  text-decoration: none;
  
}


body {
  font-family: 'Noto Sans JP', serif;
  line-height: 1.6;
  background-color: #efefef;
  /* color: #333; */
  padding: 0px;
  border-radius: 30px;
}

/* .site-header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 10;
  text-align: center;
} */

.title {
  /* text-shadow: 2px 2px 3px rgb(63, 63, 63); */
  font-family: 'Noto Sans JP', serif;
  /* position: absolute; */
  font-size: 15px;
  
  color: #315098;
  margin-top: 0px;
  margin-left: 0px;
}
.title-home {
  /* text-shadow: 2px 2px 3px rgb(63, 63, 63); */
  font-family: 'Noto Sans JP', serif;
  /* position: absolute; */
  font-size: 15px;
  
  color: #000000;
  margin-top: 0px;
  margin-left: 0px;
}
.header-box {
  width: 100%;
  height: 80px;
  margin: 0px;
  padding: 10px;
  background-color: #ccd3e5;
  color: #f9f9f9;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5em;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); */
}
.header-box-home {
  width: 100%;
  height: 80px;
  margin: 0px;
  padding: 10px;
  background-color: #efefef;
  color: #000000;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5em;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); */
}
.fixed-menu {
  display: flex;           /* 中央揃えが効くように */
  align-items: center;
  height: 100%;
}

.fixed-menu .menu-list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fixed-menu .menu-list li {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.fixed-menu .menu-list li a {
  color: #315098;
  font-family: 'Noto Sans JP', serif;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  padding: 0;   
  vertical-align: middle;
}
.fixed-menu .menu-list li a:hover {
  text-decoration: underline;
}

.fixed-menu .menu-list-home {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fixed-menu .menu-list-home li {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.fixed-menu .menu-list-home li a {
  color: #000000;
  font-family: 'Noto Sans JP', serif;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  padding: 0;   
  vertical-align: middle;
}
.fixed-menu .menu-list-home li a:hover {
  text-decoration: underline;
}


/* スマホなど画面幅が768px以下の場合 */
@media (max-width: 768px) {
  .fixed-menu {
    display: none;
  }

  .menu-toggle {
    display: flex; /* ← flexにしておくと縦に3本線が並ぶ */
  }

  .landing-photo {
    background-image: url('../photo/banba.JPG');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    height: 100%;
    min-height: 500px;
    width: 90%;
    margin: 0 auto;
    margin-top: 0px;
    padding: 0;
  }

  .header-box {
    width: 100%;
    height: 60px;
    margin: 0px;
    padding: 10px;
    background-color: #ccd3e5;
    color: #f9f9f9;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); */
  }
  .fixed-menu {
    display: flex;           /* 中央揃えが効くように */
    align-items: center;
    height: 100%;
  }
  
  .fixed-menu .menu-list {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .fixed-menu .menu-list li {
    margin: 0;
    padding: 0;
    line-height: 1;
  }
  
  .fixed-menu .menu-list li a {
    color: #315098;
    font-family: 'Noto Sans JP', serif;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    display: inline-block;
    padding: 0;   
    vertical-align: middle;
  }
  
  .fixed-menu .menu-list li a:hover {
    text-decoration: underline;
  }
  
  .link-section-image {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column; 
  }
  
  .link-section-image img{
    border-radius: 15px;
    width: 360px;
    height: 270px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease; 
  }
  .link-section-image img:hover{
    transform: scale(1.05);
  }
  .link-section-image-button{
    
    position: relative;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: transform 0.5s ease; 
  }
  
  .image-text{
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    /* font-weight: bold; */
    pointer-events: none; 
    text-decoration: none;
    font-size: 30px;
    
  }
  
  .link-section-image-button:hover .image-text{
    color: #315098;
    
  }

  .tokutei-photo {
    width: 100%;
    height: auto;
    border-radius: 0px;
    overflow: hidden;
    margin: 50px 60% 0 auto;
    position: relative;
  }
  .tokutei-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
    transition: transform 3s ease;
    transform: scale(1);
    display: block;
  }
  .tokutei-photo.zoomed img {
    transform: scale(1.1);
  }
}


/* indexページの特定家畜伝染病ボタン */
.link-section-tokutei {
  /* background-color: rgb(255, 255, 255); */
  padding: 50px 20px;
  text-align: center;
  margin-left: 5%;
}

.link-section-tokutei h2 {
  font-size: 30px;
  margin-bottom: 20px;
  /* text-shadow: 2px 2px 3px lightgray; */
}

.button-tokutei {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
    margin:0 auto 0.8rem;
    padding: .9em 2em;
    border: 1px solid #19284c;
    border-radius: 5px;
    background-color: #fff;
    color: #19284c;
    font-size: 1.2em;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-tokutei::after {
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #19284c;
    border-right: 2px solid #19284c;
    content: '';
}

.button-tokutei:hover {
  transform: translateY(-3px);
}

.tokutei-container {
  display: flex;              /* 横並びにする */
  align-items: center;        /* 縦方向の中央揃え */
  justify-content: center;    /* 全体を中央寄せ（任意）*/
  gap: 40px;                  /* 写真とリンクの間の余白 */
  margin-top: 30px;
}

.tokutei-photo {
  width: 400px;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  margin: 3rem 0.2rem 0 0;
  position: relative;
}
.tokutei-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  transition: transform 3s ease;
  transform: scale(1);
  display: block;
}
.tokutei-photo.zoomed img {
  transform: scale(1.1);
}

/* indexページの特定家畜伝染病ボタン ここまで*/

.disease_select_title {
  text-align: center;
}

.link-section {
  background-color: #efefef;
  padding: 20px 20px;
  margin-top: 30px;
  text-align: center;
}

.link-section h2 {
  font-size: 30px;
  margin-bottom: 0px;
  /* text-shadow: 2px 2px 3px lightgray; */
}




#search-button-container {
  display: none;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
  border-color: #000000;
}

#search-button-container.show {
  display: flex;
}

.search-btn {
  font-size: 1.0rem;
  padding: 5px 10px;
  border: 2px solid black;
  color: rgb(0, 0, 0);
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background-color: #7bbeeb; /* マウスオーバー時の色 */
}

.graph_container {

  padding: 20px;
}

@media (max-width: 767px) {
  .container {
    flex-direction: column; /* スマホでは縦並びに */
  }
}

/* PC向けレイアウト */
@media (min-width: 768px) {
  .container {
    flex-direction: row;
  }
}

.radio-list,
.radio-list-todokede,
#radio-list-sp {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列にする */
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.radio-list label,
.radio-list-todokede label,
#radio-list-sp label {
  display: flex;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  background: #f4f4f4;
  padding: 6px 10px;
  border-radius: 6px;
}

.radio-list input[type="radio"],
.radio-list-todokede input[type="radio"],
#radio-list-sp input[type="radio"] {
  margin-right: 8px;
}

/* スライダーのカスタマイズ */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  background: transparent;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
}

#minYearRange {
  top: 0px;
}

#maxYearRange {
  top: 5px;
}

#ruinen_chart{
  padding-left: 5%;
  padding-right: 5%;
}


#myChart-year {
  height: 1600px !important;
}

/* #myChart-pref {
  height: 1000px !important;
} */

.link-section-image {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.link-section-image img{
  border-radius: 15px;
  width: 360px;
  height: 270px;
  display: block;
  transition: transform 0.5s ease; 
}
.link-section-image img:hover{
  transform: scale(1.05);
}
.link-section-image-button{
  position: relative;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: transform 0.5s ease; 
}

.image-text{
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(0, 0, 0);
  /* font-weight: bold; */
  pointer-events: none; 
  text-decoration: none;
  font-size: 30px;
  
}

.link-section-image-button:hover .image-text{
  color: #315098;
  
}

/* HPAIシーズンごとのページ */

#map-container {
  width: 500px;
  height: 500px;
  border-radius: 10%; /* 丸くする場合 */
  overflow: hidden;   /* 丸四角の中に収める */
  /* border: 2px solid #333; */
  background-color: #ffffff;
  box-shadow: 0 0 8px gray;
  display: inline-block;
  margin-left: 3%;
}

#map-container svg {
  width: 100%;
  height: auto;

}

/* 発生事例テーブル (class="cases_list") ----------- */
.cases_list {
  margin: 5rem 15rem 5rem 15rem;
  border-collapse: collapse;
  width: 70%;
  /* display: flex; */
  justify-content: center; 

  input[type="search"] {
    padding: .4rem .6rem;
    margin: 0 0 1rem 0;
    width: 15rem;
  }

  /* ------- th と td 共通 ------- */
  th,
  td {
    border: 1px solid #ccc;
    padding: .4rem;
    text-align: left;
  }

  /* ------- th 専用 ------- */
  th {
    background: #f5f5f5;
    cursor: pointer;
    user-select: none;

    &.asc::after  { content: " ▲"; }
    &.desc::after { content: " ▼"; }
  }

  /* ------- 偶数行の背景 ------- */
  tr:nth-child(even) { background: #fafafa; }

  table{
    border-collapse: collapse; width: 100%;
  }

}


#season-cases,
#season-wasu{
  font-size: 30px;

  width: 200px;
  height: 200px;
  border-radius: 15%; /* 丸くする場合 */
  overflow: hidden;   /* 丸四角の中に収める */
  background-color: #ffffff;
  box-shadow: 0 0 8px gray;
  display: inline-block;
  margin-left: 6%;
  text-align: center;
  position: relative;
  flex-flow: column;
  p{
    text-align: center;
    margin: 0 auto;
    /* position: absolute; */
    margin-top: 20%;
  }
  .big-text{
    font-size: 50px;
    font-weight: bold;
    color: #315098;
    
  }
  .big-text-4digits{
    font-size: 40px;
    font-weight: bold;
    color: #315098;
    
  }
}
/* 親を横並びにする */
#container {
  display: flex;
  flex-wrap: wrap;   
  /* ３つの四角を中央に配置 */
  justify-content: center; 
  gap: 20px;
  /* margin: 0 auto; */
}

/* 左の縦列 */
#left-column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 上下の余白 */
  margin-left: 5%;
}

#horizontal-graph-container{
  /* flex-basis: 50%;       改行（別段に移動） */
  display: flex;           /* 中央揃え用（任意） */
  justify-content: center;
  align-items: center;

  width: 750px;
  height: 750px;
  border-radius: 10%; /* 丸くする場合 */
  overflow: hidden;   /* 丸四角の中に収める */
  background-color: #ffffff;
  box-shadow: 0 0 8px gray;
  display: inline-block;
  padding: 3%;

  margin-top: 2%;
  margin-left: 7%;
}

/* HPAIシーズンごとのページここまで */

.hpai-main-container{
  width: 50%;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 15px;
  margin: 2% auto; /* 上下 2%、左右 自動（中央寄せ） */

}

.hpai-main-container h1 {
  text-align: center;
  padding: 0.5em;
  width: 100%;
}

.about-hpai{
  padding: 0.5em;
  text-align: left; 
  width: 100%;
}
.about-hpai h2{
  position: relative;
  display: flex;
  column-gap: 8px;
  /* padding: 0 55px; */
  /* text-align: center;  */
  margin-top: 2rem;
  font-weight: bolder;
  margin-left: 5%;
  
}

.about-hpai h2:before{
  width: 0.8em;
  height: 0.4em;
  border-bottom: 4px solid #2589d0;
  border-left: 4px solid #2589d0;
  transform: rotate(-45deg) translate(2px, -2px);
  content: '';
  margin-top: 0.8rem;
}


.about-hpai p{

  margin: 0.5rem auto 2rem;
  width: 90%;
  /* margin: 0 auto;  */
  /* text-align: center;  */
  line-height: 2;
}

/* サイドバーのデザイン */
/* サイドバー全体 */
.sidebar-container {
  position: fixed;
  top: 200px;               /* 上から20pxの位置で追従 */
  margin-left: 2%;
  width: 170px;
  background-color: #19284c;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 0 8px gray;
}

/* サイドバー内の各項目 */
.sidebar-item {
  
  /* background: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  margin-bottom: 15px;
  padding: 0px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-item:hover {
  transform: translateY(-3px);
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); */
  background-color: #747e95;
  border-radius: 15px;
}

.sidebar-item a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  display: block;
}
