@charset "utf-8";

/* -------------------------------------------- 
	GENERAL
-------------------------------------------- */

/* -------------------------------------------- 
	KV
-------------------------------------------- */
.kv {
    width: 100%;
    height: calc(100vh - var(--header-height) - 30px);
    background: #000;
    margin-top: var(--header-height);
    position: relative;
}

.kv:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 2;
}

/* PC用KVロゴ */
.kv:after {
    content: "";
    height: 80%;
    width: auto;
    aspect-ratio: 285 / 763;
    background: url('/img/top/kv-logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

/* スマホ用ロゴ */
.top-logo {
    display: none;
}

.kv-item {
    width: 100%;
    height: 100%;
}

.kv-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transform-origin: center center;
}

.kv-item__image.is-zooming {
    animation: kvZoom 7300ms linear forwards;
    animation-delay: 1000ms;
}

@keyframes kvZoom {
    0% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

.kv-item__text {
    background: #171717;
    color: #fff;
    writing-mode: vertical-rl;
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 20px;
    font-family: "Shippori Mincho", serif;
    letter-spacing: 0.8em;
    line-height: 1;
    padding: 23px 10px 10px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.kv-item__text.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* タブレット以下で縦長の場合のスタイル */
@media (max-width:768px) and (orientation: portrait) {

    .header {
        background: transparent;
    }

    .header.is_scroll {
        background: #fff;
    }

    .header__inner {
        padding: 0 0 0 var(--page-padding-width);
        display: flex;
        justify-content: space-between;
    }

    .nav-toggle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .header.is_scroll .header__inner {

        display: flex;
        gap: 0;
    }

    .header__logo {
        display: none;
    }

    .header.is_scroll .header__logo {
        display: block;
        flex: 0 0 230px;
    }

    .header__contact-button {
        display: none;
    }


    .top-logo {
        display: block;
        width: 65%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 243 / 172;
        display: block;
        margin: calc(var(--header-height) + 3vw) auto;
    }

    .kv {
        width: 100%;
        height: auto;
        aspect-ratio: 393 / 420;
    }

    .kv:after {
        display: none;
    }
}

@media (max-width:425px){
     .top-logo {
        display: block;
        margin: 70px auto;
    }
}


/* -------------------------------------------- 
	SCROLL DOWN
-------------------------------------------- */
/* スクロールダウンの位置 */
.scroll-down {
    position: absolute;
    right: 15px;
    top: calc(100vh - 130px);
    font-family: 'Oswald';
    font-weight: 300;
    letter-spacing: 0.5px;
    font-size: 17px;
    writing-mode: vertical-rl;
    z-index: 1;
}

/* 線のアニメーション部分 */
.scroll-down::before {
    animation: scroll 2s infinite;
    background-color: #fff;
    bottom: -110px;
    content: "";
    height: 100px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    width: 1px;
}

/* 線のアニメーション */
@keyframes scroll {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }

    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }

    51% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }

    100% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }
}

/* --------------------------------------------
	TOP INTRO
-------------------------------------------- */
.top-intro__subtitle {
    text-align: center;
    font-style: italic;
    margin-top: -16px;
    color: var(--title-color);
}

.top-intro__author {
    text-align: right;
}

.top-intro__text {
    position: relative;
    margin-top: 1em;
}

.top-intro__ending{
    margin-top: 1.5em;
    text-align: right;
    letter-spacing: 0.35em;
}

.top-intro__text::before {
    content: "";
    width: 60%;
    max-width:340px;
    height: auto;
    aspect-ratio: 566 / 326;
    background: url('/img/common/nami.png') no-repeat;
    background-size: contain;
    position: absolute;
    bottom: -100px;
    right: -50px;
    opacity: 0.8;
}

@media (max-width:425px){
    .top-intro__text::before {
        width:70vw;
        max-width:70vw;
        bottom: -80px;
    }
}


/* --------------------------------------------
	TOP TEMPLE 
-------------------------------------------- */

.top-temple__title {
    letter-spacing: 0.5em;
}

.top-temple__temple,
.top-temple__info {
    display: grid;
    gap: 0.6rem;
}

.top-temple__list {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 10px;
    border-bottom: 1px solid #707070;
}

.top-temple-list__title {
    font-weight: 500
}

.top-temple-photo__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.top-temple-photo__text {
    text-align: center;
    font-size: var(--font-size-caption);
    font-weight: 500;
    margin-top: 0.3em;
    line-height: 1.8;
}

.top-temple__map {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.top-temple__map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* 本坊 */
.top-temple__honbo .contents-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--contents-margin-s);
}

/* 分院 */

.top-temple__bunin .contents-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--contents-margin-s);
}

.top-temple__bunin .top-temple-photo__list {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
}


@media (max-width:425px){
    .top-temple__list{
        grid-template-columns: 1fr;
        gap: 0;
    }
    .top-temple-list__title{
        font-weight: 600;
    }
    .top-temple-photo__list{
        gap: 10px;
    }
    .top-temple-list__text{
        line-height: 1.9;
    }
}


/* --------------------------------------------
	TOP BUTSUJI
-------------------------------------------- */

.top-butsuji__h4 {
    text-align: center;
    margin-top: 1.5rem;
}

.top-butsuji__list {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin: 0.5em 0 0.5em 1em;
}

.top-butsuji__item{
    line-height: 2;
}

.common-table {
    max-width: 700px;
}

.common-table--illust {
    position: relative;
}

.common-table--illust:before {
    content: "";
    display: block;
    position: absolute;
    width: 230px;
    height: auto;
    aspect-ratio: 271 / 294;
    background: url('/img/top/illust01.png') no-repeat;
    background-size: contain;
    bottom: -40px;
    right: -200px;
    z-index: 0;
    opacity: 0.9;
}

.top-butsuji__block .common-table__head, 
.top-butsuji__block .common-table__data{
    padding: 12px 20px;
}

.top-butsuji__contact {
    margin-top: 3.5em;
}

.top-butsuji__button {
    background: var(--button-bg-color);
    color: #fff;
    display: block;
    padding: 25px;
    min-height: 74px;
    width: 100%;
    max-width: 420px;
    margin: 1.5em auto;
    position: relative;
    line-height: 1;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.top-butsuji__contact-text {
    text-align: center;
    width: fit-content;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

 .top-butsuji__contact-text br.--pc{
    display: inline;
 }

.top-butsuji__button:before {
    content: "";
    display: block;
    background: url('/img/common/button-bg.png') no-repeat;
    background-position: center right;
    background-size: contain;
    width: 235px;
    height: 235px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -20px;
    opacity: 0.04;
}


.top-butsuji__button:after {
    content: "";
    display: block;
    background: url('/img/common/button-arrow.svg') no-repeat;
    background-position: center right;
    background-size: contain;
    width: 38px;
    height: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
}

@media (max-width:1152px) {
    .common-table--illust:before {
        width: 30%;
        right: -5%;
        bottom: -20%;
    }
}

@media (max-width:768px){
    .top-butsuji__contact-text {
    text-align: left;
    width: fit-content;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
 .top-butsuji__contact-text br.--pc{
    display: none;
 }
}

@media (max-width:560px) {
    .common-table--illust:before {
        width: 143px;
        right:-15px;
        bottom: -130px;
    }
}