@charset 'utf-8';

@media screen and (max-width:1400px) {
    .top-online{
        margin: 24vh 0 27vh;
        position: relative;
        display: flex;
        flex-direction: row-reverse;
    }
    .top-online__image-area{
        position: absolute;
        top: 50px;
        left: 0;
        width: 40%;
    }
    .top-highlight__image-area{
        position: absolute;
        top: 50px;
        right: 0;
        width: 40%;
    }
}


@media screen and (max-width:900px) {
.sp-none{
    display: none;
}
.top-about__image-slide {
    ul {
        padding: 0;
        width: 130vw;
        display: flex;
        flex-shrink: 0;
    li {
        margin-right: 35px;
    }
    }
}

.top-about__text-area {
    display: flex;
    font-weight: 400;
    font-size: 1.2em;
    padding: 120px 160px 150px 0;
}
.top-about__text span {
    display: block;
    line-height: 8.5vw;
    letter-spacing: 10px;
}
.top-about__crest {
    position: absolute;
    left: -30px;
    bottom: 100px;
    width: 25vw;
}
.top-prayer{
    display: flex;
    flex-direction: column-reverse;
    margin-top: 100px;
    align-items: baseline;
}
.top-visitor{
    display: flex;
    flex-direction: column;
    margin-top: 100px;
    align-items: end;
}
.top-prayer__text,.top-visitor__text {
    width: 80%;
    margin: 40px auto 50px;
    text-align: center;
}
.top-prayer__text-area{
    width: 95%;
    margin-top: -130px;
    z-index: 90;
}
.top-visitor__text-area {
    width: 95%;
    margin-top: -150px;
    z-index: 90;
}
.top-prayer__image-area, .top-visitor__image-area {
    width: 90.5%;
    position: relative;
}
.top-prayer__title, .top-visitor__title {
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    letter-spacing: 10px;
    font-size: 4.25vw;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #fff;
    background-color: #fff;
}
.top-prayer__title{
    margin: 0 0 0 auto;
}
.top-visitor__title {
    margin: 0 auto 0 0;
}

.top-event,.top-news,.top-service {
    display: flex;
    flex-direction: column;
    margin: 100px 0 0 0;
}

.top-event__title,.top-news__title,.top-service__title,.top-info__title {
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    font-size: 1.8em;
    letter-spacing: 8px;
    width: 100%;
    margin-bottom: 40px;
}

.top-event__inner, .top-service__inner {
    padding-left: 0;
}

.top-info {
    width: 100%;
    display: block;
    gap: 75px;
    margin-top: 100px;
}

.top-info__sanpai {
    background-color: #F3F2EE;
    padding: 30px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 30px;
}

.top-ganzandaishi__button {
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    background-color: #ffffff;
    padding:  20px 20px 32px;
    margin-top: 210px;
    position: relative;
    letter-spacing: 3px;
    margin-right: 30px;
}
.top-ganzandaishi__bg img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: 0;
}

.top-goshuin {
    max-width: 1400px;
    margin: 100px auto 0;
    display: block;
    flex-direction: row-reverse;
    gap: 30px;
}
.top-goshuin__title {
    font-size: 4.5em;
    align-content: flex-start;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    width: 100%;
}
.top-goshuin__image-area {
    text-align: center;
    width: 60%;
    margin-top: -200px;
}
.top-goshuin__text {
    width: 100%;
    align-content: end;
    margin-top: 30px;
}

.top-highlight__text {
    margin-top: 50px;
}
.top-online {
    margin: 8vh 0;
    position: relative;
    display: flex;
    flex-direction: row-reverse;
}
.top-online__text {
    margin-top: 50px;
}

.top-jindaiji-image{
    width: 100%;
    margin-top: 200px;
    display: block;
}
}


@media screen and (max-width:768px) {
.header__logo img {
    position: absolute;
    left: 10px;
    top: 18px;
    z-index: 10;
    width: 110px;
    height: auto;
}

.top__start-logo{
    position: fixed;
    top: 50%;
	left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 21vw;
    z-index: 9999;
}

.global-nav{
    display: none;
}
/* ハンバーガーメニュー*/
/* チェックボックス非表示 */
.drawer_hidden {
    display: none;
  }

/* ハンバーガーアイコンの設置スペース */
.hamburger__menu{
    display: block;
    position: relative;
}
.drawer_open {
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 100;
    cursor: pointer;
    right: 0;
    top: 5px;
}
  
  /* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #ffffff;
    transition: 0.5s;
    position: absolute;
}
  
  /* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
    bottom: 8px;
}
  
  /* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
    top: 8px;
}
  
  /* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
    background: rgba(255, 255, 255, 0);
}
  
  /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
}
  
#drawer_input:checked ~ .drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
}
    
  /* メニューのデザイン*/
.nav_content {
    width: 100%;
    height: 100%;
    position: fixed;
    color: #ffffff;
    top: 0;
    left: 100%; /* メニューを画面の外に飛ばす */
    z-index: 99;
    background: rgb(0,0,0,0.9);
    transition: .5s;
  }
  
  /* メニュー黒ポチを消す */
  .nav_content{
    text-align: center;
  }
  .nav_list {
    list-style: none;
    margin-top: 50px;
  }
  .nav_list li{
    padding: 10px 20px;
  }
  .hamburger__address{
    margin-top: 20px;
    padding: 15px 0;
    display: inline-block;
    position: relative;
    font-size: 0.9rem;
  }
  .hamburger__address::before{
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: #fff;
    top: 0;
  }


  .hamburger__address span{
    display: block;
    padding-top: 10px;
    text-align: center;
  }

  .hamberger__sns{
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
  }
  .hamberger__sns li{
    width: 25px;
    height: auto;
}
.hamberger__sns li img{
    width: 100%;
}
  
  /* アイコンがクリックされたらメニューを表示 */
  #drawer_input:checked ~ .nav_content {
    left: 0;/* メニューを画面に入れる */
  }


.key-visual__under-phrase {
    text-align: center;
    position: absolute;
    font-size: 5vw;
    font-weight: 700;
    color: black;
    padding: 14px;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    }

.top-about__title {
    font-size: 5vh;
    font-weight: 600;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    position: absolute;
    right: -40px;
    top: 50px;
    border: solid 2px #000000;
    letter-spacing: 10px;
    }

.top-about__image-slide {
        ul {
            padding: 0;
            width: 200vw;
            display: flex;
            flex-shrink: 0;
        li {
            margin-right: 35px;
        }
    }
}

.top-ganzandaishi__text-area {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    position: absolute;
    top: 0;
    right: 5%;
}
.top-ganzandaishi__title span {
    display: block;
    line-height: 125%;
    letter-spacing: 16px;
}

.top-info__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
}

.top-highlight__image-area {
    position: absolute;
    top: 50px;
    right: 0;
    width: 45%;
}
.top-online__image-area {
    position: absolute;
    top: 50px;
    left: 0;
    width: 45%;
}

.top-online__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    display: block;
    width: 95%;
    height: 1px;
    border-top: solid 1px #000;
}

.top-online__button-area a {
    background-color: #000000;
    color: #ffffff;
    display: block;
    width: 230px;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
}
.top-highlight__button-area a {
    background-color: #000000;
    color: #ffffff;
    display: block;
    width: 230px;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
}

footer {
    width: 100%;
    padding-top: 0;
    text-align: center;
    position: relative;
    display: block;
}

.footer{
    width: 100%;
    padding-top: 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction:column;
}
.footer__bg{
    background-image: none;
}
.footer-trip{
    margin: 50px auto 40px;
    display: flex;
    gap: 30px;
    max-width: 50%;
    padding-top: 0;
}

.footer-nav{
    max-width: 100%;
    margin: 0 auto;
}


.footer__logo {
    width: 135px;
    position: relative;
    top: 0;
    left: 0;
    z-index: 10;
    margin: 0 auto 30px;
}
.footer__bg-sp{
    width: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    opacity: 0.7;
    z-index: -10;
}
.footer__bg-sp img{
    width: 100%;
    z-index: -10;
    object-fit: cover;
    object-position: bottom;
}
}

@media screen and (max-width:500px) {   
.start {
    background: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;  
    z-index: 9000;
    display: flex;
    flex-direction: column;
}

.start__bg-1,.start__bg-2 {
    display: none;
    width: 100%;
    height: 50svh;
}
.start__bg-2{
    margin-top: 0;
}

.start__bg-1 img,.start__bg-2 img{
    object-fit: cover;
    width: 100%;
    height: 100vh;
}
.start__bg-1 img {
    object-position: 0 -150px;
}
.start__bg-2 img {
    object-position: 0 -150px;
}

.top__start-logo{
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 30vw;
    z-index: 9999;
}
.top__start-logo img{
    width: 100%;
}

.top-about__title {
    font-size: 3.75vh;
    font-weight: 600;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    position: absolute;
    right: -40px;
    top: 50px;
    border: solid 2px #000000;
    letter-spacing: 10px;
}
.top-about__text-area {
    display: flex;
    font-weight: 400;
    font-size: 1em;
    padding: 90px 100px 150px 0;
}


.top-highlight__bg,.top-online__bg {
    width: 100%;
    background-color: #F3F2EE;
    display: flex;
    gap: 100px;
}
.top-highlight__title,.top-online__title {
    font-size: 5.7vw;
    font-weight: 600;
    letter-spacing: 10px;
    position: relative;
    display: inline-block;
    text-align: center;
    margin-bottom: 30px;
}
.top-highlight__title::after,.top-online__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 0;
    height: 0;
    border-top: solid 0 #000;
}

.top-highlight__text,.top-online__text{
    padding: 20px;
    margin: -40px auto 0;
    width: 90%;
    background-color: rgb(255, 255, 255, 0.7);
}

.top-highlight__image-area,.top-online__image-area{
    display: none;
}
.top-highlight__image-area-500,.top-online__image-area-500{
    display: block;
    width: 100%;
}
.top-highlight__image-area-500 ul,.top-online__image-area-500 ul{
    display: flex;
    flex-wrap:wrap;
}
.top-highlight__image-area-500 li,.top-online__image-area-500 li{
    width: calc(100% / 3);
}
.top-highlight__image-area-500 li img,.top-online__image-area-500 li img{
    width: 100%;
}
.top-highlight__text-area,.top-online__text-area {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.top-highlight__button-area,.top-online__button-area {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-highlight__button-area a {
    background-color: #000000;
    color: #ffffff;
    display: block;
    width: 80%;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
}
.top-online__button-area a {
    background-color: #000000;
    color: #ffffff;
    display: block;
    width: 80%;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.top-ganzandaishi__title {
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    font-weight: 600;
    margin: 0 auto;
    color: #ffffff;
    margin-top: 30px;
}
.top-ganzandaishi__title span {
    font-size: 3.25vh;
    display: initial;
    line-height: 125%;
    letter-spacing: 8px;
}


.top-goshuin__title {
    font-size: 3.5em;
    align-content: flex-start;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    width: 100%;
}
.top-goshuin__title span::before {
    content: "";
    position: absolute;
    top: 0;
    left: -5px;
    display: block;
    width: 2px;
    height: 195px;
    border: 0px;
    border-top: solid 2px #CCCCCC;
    border-right: solid 2px #CCCCCC;
}
.top-goshuin__title span::after {
    content: "";
    position: absolute;
    bottom: -12px;
    right: 0px;
    display: block;
    width: 100px;
    height: 2px;
    border: 0px;
    border-top: solid 2px #CCCCCC;
    border-right: solid 2px #CCCCCC;
}
.footer-trip {
    margin: 50px auto 30px;
    display: flex;
    gap: 30px;
    max-width: 70%;
    padding-top: 0;
}
}


@media screen and (max-width:370px){
.top-about__image-slide {
    ul {
        padding: 0;
        width: 300vw;
        display: flex;
        flex-shrink: 0;
    li {
        margin-right: 35px;
    }
    }
}
}