@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500&display=swap");
@font-face {
  font-family: "Aahgb";
  src: url("../font/Aahgb.woff2") format("woff2");
}
@font-face {
  font-family: "kmpr6nm-sub";
  src: url("../font/kmpr6nm_sub.woff2") format("woff2");
}
@font-face {
  font-family: "HannariMin";
  src: url("../font/HannariMincho-Regular.woff2") format("woff2");
}

:root {
  --base-width: 1270px;
  --top-mgn: 30px;
  --btm-mgn: 10px;
  --side-mgn: 80px;
  --head-font-size: 11px;
  --text-font-size: 11px;
  --head-line-height: 18px;
  --text-line-height: 18px;
  --head-text-weight: 500;
  --text-text-weight: 400;
  --base-text-color: #000000;
  --blue-text-color: #2ea9dd;
  --hover-text-color: #989898;
  --news-text-color: #3e3a39;
  --events-text-color: #ffffff;
  --news-bg-color: #f5f5f5;
  --events-bg-color: #231815;
}

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

body {
  width: 100%;
  background-color: white;
  font-family: "Hiragino Kaku Gothic ProN W3", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "ヒラギノ角ゴ Pro", "ヒラギノ角ゴシック", "Noto Sans JP",
    sans-serif;
}

/* ページ全体でリンクの下線除去&ホバー時に下線アニメ*/
a:link,
a:visited {
  position: relative;
  left: 0;
  top: 0;
  text-decoration: none;
  color: var(--base-text-color);
}

/* メインコンテンツ */
main {
  width: 100%;
  /* max-width: var(--base-width); */
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  font-weight: var(--text-text-weight);
  background-color: white;
}
div.section {
  width: 100%;
  position: relative;
}
div.section-tile {
  width: 100%;
  max-height: 400px;
  display: flex;
  cursor: pointer;
}
div.tile-head {
  width: 18.75%;
  flex-grow: 0;
  max-width: 300px;
  height: auto;
  display: grid;
  place-items: center;
}
div.head-title {
  max-width: 300px;
}
span.title-num {
  font-size: 2vw;
  color: #3e3a39;
  font-weight: bold;
  font-family: "Aahgb";
}
span.title-word {
  font-size: 2.5vw;
  color: #3e3a39;
  font-weight: bold;
  font-family: "kmpr6nm-sub";
  display: inline-flex;
  transform: translate(0.1em, 0.2em);
  margin-top: 6.25vw;
}
@media screen and (min-width: 1280px) {
  span.title-num {
    font-size: 25.6px;
  }
  span.title-word {
    font-size: 32px;
    margin-top: 80px;
  }
}
img.tile-image {
  width: 81.25%;
  flex-grow: 1;
  object-fit: cover;
  object-position: center top;
  overflow: hidden;
}
img.tile-image-fill {
  width: 100%;
  object-fit: cover;
  object-position: center center;
  overflow: hidden;
}
div.text-tile {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  /* JSではマージン分も考慮してアニメーションさせているためカスタムプロパティの数字を変えること */
  margin-top: var(--top-mgn);
  margin-bottom: var(--btm-mgn);
}
div.width-limit-container {
  max-width: var(--base-width);
  margin: 0 auto;
}
@media screen and (max-width: 1270px) {
  div.width-limit-container {
    max-width: 97%;
  }
}
/* クローズボタンとトップへ戻るボタン */
div.btn-close,
div.btn-pagetop {
  width: 45px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: 58px;
}
div.btn-close {
  margin-top: 14px;
}
div.btn-pagetop {
  margin-top: 40px;
}

@media screen and (max-width: 780px) {
  div.btn-close,
  div.btn-pagetop {
    margin-right: 30px;
  }
}
/* タイルクローズボタン固有 */
div.btn-close div {
  width: 29px;
  margin: 0 auto 5px auto;
}
div.btn-close div:first-child {
  height: 14px;
}
div.btn-close div:first-child {
  background-image: url("../images/cmn_close_arrow.png");
}
div.btn-close:hover div:first-child {
  background-image: url("../images/cmn_close_arrow_hover.png");
  transition: transform 0.3s ease-out;
  transform: translateY(3px);
}
div.btn-close div:nth-child(2) {
  height: 7px;
}
div.btn-close div:nth-child(2) {
  background-image: url("../images/cmn_close_text.png");
}
div.btn-close:hover div:nth-child(2) {
  background-image: url("../images/cmn_close_text_hover.png");
}
/* トップへ戻るボタン固有 */
div.btn-pagetop div {
  width: 42px;
  margin: 0 auto 5px auto;
}
div.btn-pagetop div:first-child {
  height: 14px;
}
div.btn-pagetop div:first-child {
  background-image: url("../images/cmn_pagetop_arrow.png");
}
div.btn-pagetop:hover div:first-child {
  background-image: url("../images/cmn_pagetop_arrow_hover.png");
  transition: transform 0.3s ease-out;
  transform: translateY(-6px);
}
div.btn-pagetop div:nth-child(2) {
  height: 7px;
}
div.btn-pagetop div:nth-child(2) {
  background-image: url("../images/cmn_pagetop_text.png");
}
div.btn-pagetop:hover div:nth-child(2) {
  background-image: url("../images/cmn_pagetop_text_hover.png");
}

/* タイル表示時 */
div.active {
  display: block;
  height: auto;
}
/* flex未対応端末対応 */
div.text-tile.active.col {
  display: block;
}
div.map-link {
  display: flex;
  align-items: center;
  margin-left: 80px;
  margin-right: auto;
}
@media screen and (max-width: 780px) {
  div.map-link {
    margin-left: 40px;
  }
}
@media screen and (max-width: 480px) {
  div.map-link {
    margin-left: 20px;
  }
}
div.map-link > div {
  font-family: "Aahgb";
}
div.map-link > div:first-child {
  display: block;
  font-size: 30px;
  font-weight: 600;
  line-height: 30px;
}
div.map-link div.move-arrow {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("../images/cmn_move_arrow.png");
}
div.map-link a:link,
div.map-link a:visited {
  color: var(--base-text-color);
}
/* MAPテキストサブメニュー */
div.text-map-sub1,
div.text-map-sub2 {
  display: flex;
  align-items: center;
  height: 30px;
  visibility: hidden;
  font-size: 16px;
}
div.text-map-sub1.pc,
div.text-map-sub2.pc {
  visibility: visible;
}
div.text-map-sub1 span,
div.text-map-sub2 span {
  display: inline-block;
  /* 中央に寄せているように見せるための高さ調整 */
  vertical-align: 1px;
}
div.text-map-sub1 {
  margin-left: 2px;
}
div.text-map-sub2 {
  margin-left: 7px;
}
div.text-map-sub1 span.pc:hover,
div.text-map-sub2 span.pc:hover {
  color: var(--hover-text-color);
}
/* マウスカーソルが乗ったとき */
/* div.map-link:hover div.move-arrow {
  background-image: url("../images/cmn_move_arrow_hover.png");
}
div.map-link:hover div.move-arrow.right {
  transition: transform 0.3s ease-out;
  transform: translateX(5px);
}
div.map-link:hover span.text-map {
  color: var(--hover-text-color);
} */
/* 矢印がゆっくり左から右へ出現するアニメーション */
.fadeIn-right {
  opacity: 0;
  transform: translateX(-30px);
  animation-duration: 1.3s;
  animation-fill-mode: forwards;
}
.move-arrow.fadeIn-right {
  animation-delay: 0s;
  animation-name: fadeInLeftToRightArrow;
  animation-timing-function: ease;
}
.text-map-sub1.fadeIn-right {
  animation-delay: 0.3s;
  animation-name: fadeInLeftToRightText1;
  animation-timing-function: linear;
}
.text-map-sub2.fadeIn-right {
  animation-delay: 1s;
  animation-name: fadeInLeftToRightText2;
  animation-timing-function: ease;
}
@keyframes fadeInLeftToRightArrow {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInLeftToRightText1 {
  0% {
    opacity: 0;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInLeftToRightText2 {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 0番タイルテキスト用 */
div.box-text-1,
div.box-text-2 {
  width: 90%;
  font-family: "HannariMin", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 18px;
}
div.box-text-1 {
  max-width: 580px;
  margin-top: 50px;
  margin-left: 80px;
}
div.box-text-2 {
  max-width: 360px;
  margin-top: 80px;
  margin-left: auto;
  margin-right: 200px;
  margin-bottom: 40px;
}
@media screen and (max-width: 480px) {
  div.box-text-1,
  div.box-text-2 {
    margin-left: 1em;
  }
}
h3 {
  color: var(--blue-text-color);
  font-size: var(--head-font-size);
  line-height: var(--head-line-height);
  font-weight: var(--head-text-weight);
  margin-bottom: 1em;
}

/* １番以降のグレー正方ボックス */
div.col-4 {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* gap: 50px; Safari on iOS 14.5以降でないと効かないので使用不可*/
  transform-origin: top left;
  margin-top: 20px;
  margin-left: 80px;
  margin-right: 80px;
}
@media screen and (max-width: 480px) {
  div.col-4 {
    width: 240px;
    margin-left: auto;
    margin-right: auto;
  }
}

ul.list-menu {
  display: flex;
  flex-flow: column;
  list-style-type: none;
  width: 240px;
  height: 240px;
  background-color: #efefef;
  margin-right: 50px;
  margin-bottom: 20px;
  padding-top: 16px;
  padding-left: 16px;
}
/* gapが使えないのでグレー正方ボックスの右側に50pxのマージンを取り最後だけ外す */
ul.list-menu:last-child {
  margin-right: 0px;
}
@media screen and (max-width: 480px) {
  ul.list-menu {
    margin-right: 0px;
  }
}

ul.list-menu a:link,
ul.list-menu a:visited {
  color: var(--base-text-color);
}
ul.list-menu a:link:hover,
ul.list-menu a:visited:hover {
  color: var(--hover-text-color);
}
ul.list-menu > li {
  font-family: "HannariMin", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 16px;
}
/* リストの一番上の行だけ見出し行扱いにする */
ul.list-menu > li:first-child {
  font-size: 14px;
  margin-bottom: 10px;
}
/* headタグがついていても見出し扱い */
ul.list-menu > li.head {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
}
/* 見出しが並んだらトップマージンはつけない */
ul.list-menu > li.head + li.head {
  margin-top: 0;
}

/* お知らせ欄 */
div.news-container {
  width: 100%;
  max-width: var(--base-width);
  margin: 0 auto;
}
div.newstitle {
  margin-top: 40px;
  margin-bottom: 10px;
  margin-left: 40px;
  margin-right: auto;
}
div#announce {
  width: calc(100% - 160px);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 52px;
  font-family: "HannariMin", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  font-size: 12px;
  letter-spacing: 2px;
  margin: 0 auto;
}
@media screen and (max-width: 780px) {
  div#announce {
    flex-direction: column;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
#news,
#event {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc((100% - 52px) / 2);
  margin-top: 30px;
}
@media screen and (max-width: 780px) {
  #news,
  #event {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
  }
}
/* 一行表示部分 */
#news > div,
#event > div {
  width: 100%;
  height: auto;
  transition: all 0.3s linear;
}
#news > div {
  background-color: var(--news-bg-color);
  color: var(--news-text-color);
}
#event > div {
  background-color: var(--events-bg-color);
  color: var(--events-text-color);
}
#news a.title,
#event a.title {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 5px 20px;
}
#news a.title:link,
#news a.title:visited {
  color: var(--news-text-color);
  margin-left: 1em;
}
#event a.title:link,
#event a.title:visited {
  color: var(--events-text-color);
  margin-left: 1em;
}
#news > div:hover {
  background-color: var(--events-bg-color);
  color: var(--events-text-color);
}
#event > div:hover {
  background-color: var(--news-bg-color);
  color: var(--news-text-color);
}
#news > div:hover a.title:link,
#news > div:hover a.title:visited {
  color: var(--events-text-color);
}
#event > div:hover a.title:link,
#event > div:hover a.title:visited {
  color: var(--news-text-color);
}
div.date,
div.title-text {
  display: inline-block;
  vertical-align: top;
}
div.date {
  width: 100px;
}
div.title-text {
  width: calc(100% - 100px - 20px * 2);
}

/* フッター */
footer {
  width: 100%;
  text-align: center;
  margin-top: 160px;
  margin-bottom: 80px;
}
ul.list-footer {
  display: flex;
  justify-content: center;
  list-style-type: none;
  font-family: "HannariMin", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 16px;
  margin-bottom: 80px;
}
ul.list-footer a:link,
ul.list-footer a:visited {
  color: #281815;
}
ul.list-footer a:link:hover,
ul.list-footer a:visited:hover {
  color: #989898;
}
ul.list-footer > li {
  margin: 2em;
}
span.copylight {
  font-family: "HannariMin", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  font-size: 7px;
  letter-spacing: 2px;
  color: #989898;
}
/* モバイルや縦長ブラウザ */
@media screen and (max-width: 780px) {
  ul.list-footer {
    flex-direction: column;
    margin-top: 1em;
    margin-bottom: 1em;
  }
  ul.list-footer > li {
    margin-top: 0.5em;
    margin-bottom: 0;
  }
}
