html {
  scroll-behavior: smooth;
}

body {
  font-family: YakuHanJP, "Hina Mincho", "Noto Sans JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
  position: relative;
}
@media screen and (max-width: 599px) {
  body {
    font-size: 0.875rem;
  }
}
@media screen and (min-width: 600px) {
  body {
    font-size: 1rem;
  }
}

ul, ol, li {
  list-style: none;
}

ul {
  padding-left: 0;
}

a {
  color: #1C1A1A;
}

img {
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.p-hamburger {
  width: 48px;
  height: 48px;
  top: 20px;
  right: 20px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  position: fixed;
  z-index: 100;
  cursor: pointer;
  display: none;
}
.p-hamburger.active .c-hamburger__line:nth-of-type(1) {
  -webkit-transform: translateY(9px) rotate(-45deg);
          transform: translateY(9px) rotate(-45deg);
}
.p-hamburger.active .c-hamburger__line:nth-of-type(2) {
  opacity: 0;
}
.p-hamburger.active .c-hamburger__line:nth-of-type(3) {
  -webkit-transform: translateY(-9px) rotate(45deg);
          transform: translateY(-9px) rotate(45deg);
}
@media screen and (max-width: 1023px) {
  .p-hamburger {
    display: block;
  }
}

.c-hamburger__line {
  width: 26px;
  height: 2px;
  left: 11px;
  background-color: #FFF;
  position: absolute;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}
.c-hamburger__line:nth-of-type(1) {
  top: 14px;
}
.c-hamburger__line:nth-of-type(2) {
  top: 23px;
}
.c-hamburger__line:nth-of-type(3) {
  top: 32px;
}

.gnavwrapper {
  width: 100%;
  padding: 4.09vw;
  color: #FFF;
  background-color: rgba(0, 0, 0, 0.9);
  position: fixed;
  z-index: 99;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}
.gnavwrapper a {
  color: #FFF;
  display: block;
}
.gnavwrapper .p-logo {
  display: none;
}
.gnavwrapper .p-gnav a {
  text-decoration: none;
}
.gnavwrapper .p-gnav li:not(.c-bunner) {
  width: 100%;
  border-bottom: 1px dotted #FFF;
}
.gnavwrapper .p-gnav li:not(.c-bunner) a {
  padding: 3.07vw 0;
}
.gnavwrapper .p-gnav li.c-bunner {
  margin: 1.02vw;
  display: inline-block;
}
.gnavwrapper .p-gnav li.c-bunner img {
  max-width: 200px;
}
.gnavwrapper .p-gnav li.u-margintop {
  margin-top: 6.14vw;
}

.l-container {
  position: relative;
}
@media screen and (min-width: 1024px) {
  .l-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

aside {
  color: #FFF;
  background-color: rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 9;
}
aside a {
  color: #FFF;
  text-decoration: none;
}
@media screen and (max-width: 1023px) {
  aside {
    display: none;
  }
}
@media screen and (min-width: 1024px) {
  aside {
    width: 31.25vw;
  }
}
@media screen and (min-width: 1448px) {
  aside {
    width: 320px;
  }
}

@media screen and (min-width: 1024px) {
  .l-aside__inner {
    top: 0;
    padding: 2.76vw;
    position: sticky;
  }
}
@media screen and (min-width: 1448px) {
  .l-aside__inner {
    padding: 40px;
  }
}

.p-logo {
  margin: auto;
  color: #1C1A1A;
  background-color: #FFF;
  line-height: 1.2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  aspect-ratio: 1/1;
}
.p-logo figure {
  -o-object-fit: contain;
     object-fit: contain;
}
@media screen and (min-width: 1024px) {
  .p-logo {
    width: 17.58vw;
  }
  .p-logo figure {
    width: 5.08vw;
    height: 5.08vw;
  }
  .p-logo p {
    margin-top: 1.56vw;
    font-size: 1.56vw;
  }
  .p-logo h1 {
    margin-top: 0.78vw;
    font-size: 2.34vw;
  }
  .p-logo h1 span {
    font-size: 1.56vw;
  }
}
@media screen and (min-width: 1400px) {
  .p-logo {
    width: 240px;
  }
  .p-logo figure {
    width: 52px;
    height: 52px;
  }
  .p-logo p {
    margin-top: 32px;
    font-size: 1.25rem;
  }
  .p-logo h1 {
    margin-top: 8px;
    font-size: 2.25rem;
  }
  .p-logo h1 span {
    font-size: 1.75rem;
  }
}

.p-gnav li a {
  display: block;
}
.p-gnav .c-bunner img {
  width: 100%;
  height: auto;
  margin: auto;
  display: block;
}
.p-gnav .c-bunner a {
  padding: 0;
}
@media screen and (min-width: 1024px) {
  .p-gnav {
    font-size: 1.56vw;
  }
  .p-gnav ul {
    margin: 2.34vw 0;
  }
  .p-gnav li {
    margin: 0.78vw 0;
  }
  .p-gnav li a {
    padding: 0.78vw 0;
  }
  .p-gnav .c-bunner {
    margin: 0.78vw 0;
  }
  .p-gnav .u-margintop {
    margin-top: 2.34vw;
  }
}
@media screen and (min-width: 1400px) {
  .p-gnav {
    font-size: 1.25rem;
  }
  .p-gnav ul {
    margin: 32px 0;
  }
  .p-gnav li {
    margin: 8px 0;
  }
  .p-gnav li a {
    padding: 8px 0;
  }
  .p-gnav .c-bunner {
    margin: 8px 0;
    padding: 0;
  }
  .p-gnav .u-margintop {
    margin-top: 24px;
  }
}

@media screen and (min-width: 1024px) {
  .p-address {
    font-size: 1.37vw;
  }
}
@media screen and (min-width: 1400px) {
  .p-address {
    margin-top: 24px;
    font-size: 1rem;
  }
}

.c-name span {
  font-size: 1.25em;
}

.c-address {
  margin-top: 0.5em;
}

.c-phone span {
  font-size: 1.25em;
}

main {
  background: url(../img/bg_body.jpg) repeat-y center/contain;
}
main iframe {
  width: 100%;
}
@media screen and (max-width: 599px) {
  main {
    padding-bottom: 5.08vw;
  }
}
@media screen and (min-width: 600px) {
  main {
    padding-bottom: 104px;
  }
}
@media screen and (min-width: 1024px) {
  main {
    min-width: 100%;
    margin-left: -320px;
  }
}

@media screen and (min-width: 1024px) {
  .u-leftmargin {
    padding-left: 344px;
    padding-right: 24px;
  }
}

.l-firstview {
  width: 100%;
  position: relative;
}
.l-firstview .c-logotype {
  z-index: 10;
}
.l-firstview .c-intro {
  z-index: 10;
}
@media screen and (max-width: 599px) {
  .l-firstview .c-logotype {
    width: 20.53vw;
    height: 95.47vw;
    top: 32vw;
    right: calc(50% - 10.27vw);
    position: absolute;
  }
  .l-firstview .c-intro {
    width: 80%;
    margin: -3vw auto 0;
    padding: 1em;
    color: #FFF;
    background-color: rgba(0, 0, 0, 0.8);
    font-size: 0.75rem;
    text-align: left;
    position: relative;
  }
  .l-firstview .c-intro p {
    margin: 0 0.5em;
  }
}
@media screen and (min-width: 600px) {
  .l-firstview .c-logotype {
    width: 7.52vw;
    height: 34.96vw;
    top: 9.77vw;
    right: calc(50% - 3.13vw);
    position: absolute;
  }
  .l-firstview .c-intro {
    width: 80%;
    margin: -3vw auto 0;
    padding: 1em;
    color: #FFF;
    background-color: rgba(0, 0, 0, 0.8);
    font-size: 0.875rem;
    text-align: left;
    position: relative;
  }
  .l-firstview .c-intro p {
    margin: 0 0.5em;
  }
}
@media screen and (min-width: 1024px) {
  .l-firstview .c-logotype {
    width: 7.52vw;
    height: 34.96vw;
    top: calc(50% - 19.53vw);
    right: calc(40% - 3.13vw - 160px);
  }
  .l-firstview .c-intro {
    width: auto;
    height: 410px;
    top: calc(65% - 200px);
    left: calc(50% - 50px);
    background-color: transparent;
    font-size: 0.8125rem;
    -webkit-writing-mode: vertical-rl;
        -ms-writing-mode: tb-rl;
            writing-mode: vertical-rl;
    text-align: justify;
    position: absolute;
  }
  .l-firstview .c-intro p {
    margin: 0 0.5em;
  }
}
@media screen and (min-width: 1280px) {
  .l-firstview .c-logotype {
    width: 104px;
    height: 484px;
    top: calc(45% - 190px);
    right: calc(40% - 52px - 160px);
  }
  .l-firstview .c-intro {
    width: auto;
    height: 400px;
    top: calc(50% - 100px);
    left: calc(50% - 150px);
    font-size: 1rem;
  }
}

.c-video__wrapper {
  position: relative;
  aspect-ratio: 16/9;
}
.c-video__wrapper::after {
  content: "";
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  z-index: 8;
}
.c-video__wrapper video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  position: relative;
}
.c-video__wrapper .swiper-pagination {
  z-index: 10;
}
.c-video__wrapper .swiper-pagination-bullet {
  background: #FFF;
  opacity: 1;
}
.c-video__wrapper .swiper-pagination-bullet-active {
  background: #000;
}
@media screen and (max-width: 599px) {
  .c-video__wrapper {
    aspect-ratio: 9/16;
  }
  .c-video__wrapper::before {
    content: "";
    width: 8px;
    height: 8px;
    top: 161.11vw;
    left: calc(50% - 4px);
    border-bottom: 1px solid #FFF;
    border-right: 1px solid #FFF;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    position: absolute;
    z-index: 3;
  }
  .c-video__wrapper .swiper {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
  }
  .c-video__wrapper .swiper img {
    width: auto;
    max-width: initial;
    height: 100%;
    top: 0;
    -webkit-transform: translateX(-42%);
            transform: translateX(-42%);
    position: absolute;
  }
  .c-video__wrapper .swiper-pagination {
    top: 166.67vw;
    bottom: 0;
  }
}
@media screen and (min-width: 600px) and (max-width: 1023px) {
  .c-video__wrapper .swiper img {
    width: 100%;
  }
  .c-video__wrapper .swiper-pagination {
    bottom: 36px;
  }
}
@media screen and (min-width: 1024px) {
  .c-video__wrapper {
    margin-left: -31.25vw;
  }
  .c-video__wrapper .swiper img {
    width: 100%;
  }
  .c-video__wrapper .swiper-pagination {
    margin-left: 31.25vw;
  }
}
@media screen and (min-width: 1448px) {
  .c-video__wrapper {
    margin-left: -320px;
  }
  .c-video__wrapper .swiper-pagination {
    margin-left: 320px;
  }
}

.c-title__top {
  margin: auto;
  font-size: 1.25rem;
  font-weight: normal;
}
.c-title__top span {
  -webkit-writing-mode: vertical-rl;
      -ms-writing-mode: tb-rl;
          writing-mode: vertical-rl;
  text-align: right;
}
@media screen and (max-width: 599px) {
  .c-title__top {
    font-size: 1rem;
  }
}
@media screen and (min-width: 600px) {
  .c-title__top {
    font-size: 1.25rem;
  }
}

.c-linkbox {
  margin: auto;
  border: 1px solid #818181;
  background-color: #FFF;
  display: inline-block;
  position: relative;
}
.c-linkbox::after {
  content: "";
  width: 6px;
  height: 6px;
  top: calc(50% - 3px);
  right: 8px;
  border-top: 1px solid #1C1A1A;
  border-right: 1px solid #1C1A1A;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  position: absolute;
}
@media screen and (max-width: 1023px) {
  .c-linkbox {
    width: 100%;
    padding: 1.33vw;
  }
}
@media screen and (min-width: 1024px) {
  .c-linkbox {
    width: 270px;
    padding: 8px;
  }
}

@media screen and (max-width: 1023px) {
  .p-newslist {
    margin-top: 5.08vw;
    padding: 0 2.34vw;
  }
}
@media screen and (min-width: 1024px) {
  .p-newslist {
    margin-top: 104px;
  }
}

.p-newslist__inner {
  max-width: 1080px;
  margin: 0 auto;
  background-color: #FFF;
  border: 1px solid #D5D5D5;
}
@media screen and (max-width: 1023px) {
  .p-newslist__inner {
    padding: 3.52vw;
  }
  .p-newslist__inner .c-linkbox {
    margin-top: 3.13vw;
  }
}
@media screen and (min-width: 1024px) {
  .p-newslist__inner {
    padding: 36px;
  }
  .p-newslist__inner .c-linkbox {
    margin-top: 32px;
  }
}

.c-news {
  padding-left: 0;
}
.c-news li {
  border-bottom: 1px dotted #707070;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-align: left;
}
.c-news li span {
  width: 5em;
  margin-right: 0.5em;
  display: inline-block;
}
@media screen and (max-width: 1023px) {
  .c-news {
    margin-top: 2.67vw;
  }
  .c-news li {
    padding: 1.33vw 0;
  }
}
@media screen and (min-width: 1024px) {
  .c-news {
    max-width: 800px;
    margin: 36px auto 0;
  }
  .c-news li {
    padding: 8px 0;
  }
}

@media screen and (max-width: 1023px) {
  .p-frame {
    margin-top: 8vw;
  }
}
@media screen and (min-width: 1024px) {
  .p-frame {
    margin-top: 104px;
  }
}

.p-frame__inner {
  max-width: 1080px;
}
.p-frame__inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
}
@media screen and (max-width: 599px) {
  .p-frame__inner iframe {
    height: 125vw;
  }
}
@media screen and (max-width: 1023px) {
  .p-frame__inner {
    padding: 0 2.34vw;
  }
  .p-frame__inner iframe {
    margin-top: 3.71vw;
  }
  .p-frame__inner .c-linkbox {
    margin-top: 2.34vw;
  }
}
@media screen and (min-width: 1024px) {
  .p-frame__inner {
    margin: 0 auto;
  }
  .p-frame__inner iframe {
    margin-top: 56px;
  }
  .p-frame__inner .c-linkbox {
    margin-top: 24px;
  }
}

.p-contentslink {
  background: url(../img/bg_menu.jpg) no-repeat center/cover;
}
.p-contentslink a {
  text-decoration: none;
}
.p-contentslink ul {
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.p-contentslink li {
  border: 1px solid #707070;
  line-height: 1.2;
  aspect-ratio: 1/1;
}
.p-contentslink li a {
  width: 100%;
  height: 100%;
  display: block;
}
.p-contentslink li span {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.77);
  border: 1px solid #707070;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
@media screen and (max-width: 599px) {
  .p-contentslink {
    margin-top: 8vw;
    padding: 4vw 2.67vw;
  }
  .p-contentslink li {
    width: 36vw;
    margin: 4vw;
    font-size: 0.875rem;
  }
  .p-contentslink li a {
    padding: 2.67vw;
  }
}
@media screen and (min-width: 600px) {
  .p-contentslink {
    margin-top: 5.08vw;
    padding: 0 5.08vw;
  }
  .p-contentslink li {
    width: 25.2vw;
    margin: 2.34vw;
    font-size: 1rem;
  }
  .p-contentslink li a {
    padding: 2.34vw;
  }
}
@media screen and (min-width: 1024px) {
  .p-contentslink {
    margin-top: 104px;
    padding: 0 0 0 320px;
  }
  .p-contentslink ul {
    max-width: 1080px;
  }
  .p-contentslink li {
    width: 20.33vw;
    margin: 1.63vw;
    font-size: 1.25rem;
  }
  .p-contentslink li a {
    padding: 1.63vw;
  }
}
@media screen and (min-width: 1423px) {
  .p-contentslink li {
    width: 280px;
    margin: 30px;
  }
  .p-contentslink li a {
    padding: 24px;
  }
}

@media screen and (min-width: 1024px) {
  .p-contentslink__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 74px 0;
  }
}

.c-history {
  background: url(../img/bg_contents1.jpg) no-repeat center/contain;
}

.c-about {
  background: url(../img/bg_contents2.jpg) no-repeat center/contain;
}

.c-33kannon {
  background: url(../img/bg_contents3.jpg) no-repeat center/contain;
}

.c-ossuary {
  background: url(../img/bg_contents4.jpg) no-repeat center/contain;
}

.c-event {
  background: url(../img/bg_contents5.jpg) no-repeat center/contain;
}

.c-access {
  background: url(../img/bg_contents6.jpg) no-repeat center/contain;
}

.p-instagram a {
  display: block;
}
@media screen and (max-width: 599px) {
  .p-instagram {
    margin-top: 5.08vw;
  }
}
@media screen and (min-width: 600px) {
  .p-instagram {
    margin-top: 80px;
  }
  .p-instagram a {
    max-width: 640px;
    margin: 0 auto;
  }
}

footer {
  width: 100%;
  color: #FFF;
  background-color: rgba(0, 0, 0, 0.8);
}
footer a {
  color: #FFF;
}
footer small {
  display: block;
}
@media screen and (max-width: 599px) {
  footer {
    padding: 10.67vw 2.67vw 1.33vw;
  }
  footer small {
    margin-top: 10.67vw;
    font-size: 0.75rem;
  }
}
@media screen and (min-width: 600px) {
  footer {
    padding: 6.25vw 1.56vw 0.78vw;
  }
  footer small {
    margin-top: 6.25vw;
    font-size: 0.875rem;
  }
}
@media screen and (min-width: 1024px) {
  footer {
    padding: 64px 16px 8px;
  }
  footer small {
    margin-top: 64px;
  }
}