/* 共通 */
:root {
  --lightgrey: #eaeaea;
  --midgrey: #d0d0d0;
  --darkgrey: #666666;
  --blue: #1d80d0;
  --darkblue: #104c73;
  --pink: #fe5b91;
}

html {
  font-family: "Noto Sans JP";
  font-style: normal;
  overflow-x: hidden;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  text-align: justify;
}

a:hover {
  opacity: 0.5;
}

body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* ヘッダー */

header {
  position: relative;
  height: 50px;
  background-color: var(--blue);
}

nav {
  position: absolute;
  top: 0;
  display: flex;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0 5%;
}

.logo {
  position: relative;
  width: 140px;
  height: 95px;
  border-radius: 0px 0px 10px 10px;
  background: #fff;
  margin-right: auto;
  z-index: 2;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

.logo img {
  position: absolute;
  width: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 800px) {
  .logo {
    position: relative;
    width: 230px;
    height: 150px;
  }

  .logo img {
    width: 200px;
  }
}

@media (min-width: 1200px) {
  .logo {
    position: relative;
    width: 280px;
    height: 180px;
  }

  .logo img {
    width: 240px;
  }
}

.button_container {
  display: flex;
  gap: 10px;
}

.button_back {
  width: 80px;
  margin-top: 10px;
  padding-left: 5px;
  background-color: white;
  height: 30px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
}

.button_back img {
  width: 18px;
  margin-right: 4px;
}

.button_back {
  font-weight: 700;
  align-items: center;
}

.button_link {
  margin-top: 10px;
  padding-left: 5px;
  background-color: white;
  width: 100px;
  height: 30px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  font-weight: 700;
  align-items: center;
}

.button_link img {
  width: 18px;
  margin-right: 4px;
}

/* スライド */

.content {
  width: 100vw;
  background-color: var(--lightgrey);
}
.content img {
  width: 100vw;
  object-fit: cover;
}

/* メイン */
.top_main {
  background: var(--lightgrey);
  display: block;
}

.news {
  background-color: white;
  margin: 40px auto;
  width: 90%;
  padding: 20px 20px 20px;
  border-radius: 4px;
}

@media (min-width: 1300px) {
  .news {
    width: 1200px;
  }
}

.news h1 {
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0px 2px 0px 0px var(--darkblue);
  color: #fff;
  height: 30px;
  font-weight: 700;
  text-align: center;
  line-height: 30px;
  margin-bottom: 10px;
}
.news div {
  max-height: 220px; /* 表示する高さを制限 */
  overflow-y: auto; /* 縦方向にスクロールバーを表示 */
  padding: 10px;
}
.news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news ul li {
  padding: 16px 0;
  line-height: 28px;
  border-bottom: 1px solid var(--lightgrey); /* 下線 */
}

.news ul li:last-child {
  border-bottom: none;
}
.news span {
  color: var(--midgrey);
}

.top {
  background-color: white;
  margin: 40px auto;
  width: 90%;
  padding: 20px 20px 10px;
  border-radius: 4px;
}

@media (min-width: 1300px) {
  .top {
    width: 1200px;
  }
}

.top ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.top li {
  position: relative;
  width: 33%;
  font-size: 17px;
  font-weight: 700;
}

@media (min-width: 600px) {
  .top li {
    width: 25%;
  }
}

@media (min-width: 1000px) {
  .top li {
    width: 20%;
  }
}

@media (min-width: 1200px) {
  .top li {
    width: 16.6%;
  }
}

.top li a {
  display: block;
  width: 100%;
  padding: 10px 0px 10px 13px;
}

.top li:before {
  content: "";
  position: absolute;
  top: 17px;
  left: -3px;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}

.top h1 {
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0px 2px 0px 0px var(--darkblue);
  color: #fff;
  height: 30px;
  font-weight: 700;
  text-align: center;
  line-height: 30px;
  margin-bottom: 10px;
}

.top p {
  margin-top: 20px;
  margin-bottom: 10px;
}

/* フッター */
footer {
  height: 40px;
  background-color: var(--darkgrey);
}

footer p {
  color: white;
  font-size: 14px;
  text-align: center;
  line-height: 40px;
}

/* リストページ */

.list_content {
  width: 1200px;
  margin: 60px auto auto;
}

@media (max-width: 1300px) {
  .list_content {
    width: 90vw;
  }
}

@media (min-width: 800px) {
  .list_content {
    margin: 120px auto auto;
  }
}

@media (min-width: 1200px) {
  .list_content {
    margin: 160px auto auto;
  }
}

.list_title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.list_title h1 {
  background-color: var(--blue);
  font-weight: 700;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0px 2px 0px 0px var(--darkblue);
  margin-right: 10px;
}

.list_title h2 {
  font-size: 20px;
  font-weight: 700;
}

/* 表 */
.tableArea table {
  width: 1200px;
  border-collapse: collapse;
}
.tableArea table th {
  padding: 10px 5px;
  background-color: var(--darkgrey);
  color: white;
  border: 1px solid var(--midgrey);
  text-align: center;
  vertical-align: middle;
}

.tableArea table td {
  padding: 10px;
  border: 1px solid var(--midgrey);
  vertical-align: middle;
  text-align: justify;
  line-height: 24px;
}

.tableArea table td a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.t_center {
  text-align: center;
}

.tableArea table tr:nth-child(odd) td {
  background-color: var(--lightgrey);
}

.scroll-hint-text {
  margin-top: 0;
}

.w50 {
  width: 50px;
  font-size: 12px;
  line-height: 16px;
}

.w80 {
  width: 80px;
}

.w100 {
  width: 100px;
}

.w140 {
  width: 140px;
}

.w200 {
  width: 200px;
}

.w400 {
  width: 400px;
}

/* 詳細ページ */

/* マップ */
.google_map {
  width: 100%;
  height: 400px;
}

@media (min-width: 800px) {
  .google_map {
    height: 600px;
  }
}

/* 表 */

.detail_table {
  margin-top: 40px;
  width: 100%;
}

.detail_table th {
  border-top: 1px solid var(--midgrey);
  border-bottom: 1px solid var(--midgrey);
  background-color: var(--darkgrey);
  color: white;
  width: 116px;
  padding: 10px;
}

.detail_table td {
  border-top: 1px solid var(--midgrey);
  border-bottom: 1px solid var(--midgrey);
  padding: 10px;
}

/* 印刷ボタン */
.print {
  border-radius: 4px;
  padding: 10px;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-weight: 700;
  width: 160px;
  text-align: center;
  color: var(--white, #fff);
  background: var(--pink);
  box-shadow: 0px 2px 0px 0px #a61c53;
}

.print_button {
  margin: 60px auto;
  width: 160px;
}

.scroll-hint-icon-wrap {
  overflow: hidden;
}

.scroll-hint-icon-wrap .scroll-hint-icon {
  top: calc(50% - 35px);
}
