@import url(common.css);
/* main {
  background-color: #fff;
} */
/* 名称,説明,画像をflex表示 */
.rekisi1 {
  max-width: 1155px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.rtitle {
  margin-top: -150px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
}
.rtitle3 {
  margin-top: -80px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
}

/* 名称の文字の各種設定 */
main article h1 {
  padding-top: 100px;
  font-family: "Zen Old Mincho", serif;
  font-size: 100px;
  font-weight: 500;
  color: #333;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
  writing-mode: vertical-rl;
}

main article h2 {
  padding-top: 100px;
  font-family: "Zen Old Mincho", serif;
  font-size: 35px;
  font-weight: 500;
  color: #333;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
  writing-mode: vertical-rl;
}

/* 説明の文字各種設定 */
main article p {
  padding-top: 115px;
  padding-right: 78px;
  font-family: "Zen Old Mincho", serif;
  font-size: 35px;
  font-weight: 500;
  color: #333;
  margin-left: auto;
  margin-right: auto;
  line-height: 130%;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

main p span {
  font-size: 55px;
  text-shadow: 5px 5px 2px hsl(170, 71%, 26%, 0.3);
}

.hokora {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hokora p {
  writing-mode: unset;
  font-size: 30px;
  letter-spacing: 0.03em;
  margin-top: -110px;
}

.hokora {
  width: 500px;
}

@media (max-width: 1155px) {
  /*----------
  歴史 観光 宿泊のレイアウト変更
  ---------- */
  header {
    max-width: none;
  }
  /* 背景画像を全体表示 */
  .rekisi {
    max-width: 1155px;
    height: 60vw;
    margin: 0 auto;

    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.3) 45% 55%, rgba(255, 255, 255, 0)), url(../img/main_rekisi.png);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  /* 大見出しを横書きに変更 サイズも小さく */
  .rekisi h2 {
    writing-mode: unset;
    position: unset;
    text-align: center;
    font-size: 130px;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 5px 5px 3px #000;
  }
  /* サブ見出しも縦書き サイズ変更 */
  p.sabu {
    writing-mode: unset;
    position: unset;
    text-align: center;
    font-size: 30px;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 5px 5px 3px #000;
  }
}

/* 800px以下の時 見出しを可変に */
@media (max-width: 800px) {
  .rekisi h2 {
    font-size: 16vw;
  }
  p.sabu {
    font-size: 3.75vw;
  }
}
