/*---------------------------------------------*/
/* 基本設定                                    */
/*---------------------------------------------*/
html {
	font-size: 62.5%;
}
body {
	font-size: 16px;
	font-size: 1.6rem;
	line-height: 175%;
	font-family: "游ゴシック体", "游ゴシック", YuGothic, メイリオ, Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic", Osaka, sans-serif;
	background-color: #38251D;
	font-weight: 500;
	word-wrap: break-word;
}
.h1, h1 {
	font-size: calc(4.0rem + (1vw - 0.56rem) * 1.5649);
}
.h2, h2 {
	font-size: calc(3.5rem + (1vw - 0.56rem) * 1.5649);
}
.h3, h3 {
	font-size: calc(3.0rem + (1vw - 0.56rem) * 1.5649);
}
.h4, h4 {
	font-size: calc(2.4rem + (1vw - 0.56rem) * 1.7214);
}
.h5, h5 {
	font-size: calc(2.0rem + (1vw - 0.56rem) * 1.5649);
}
.h6, h6 {
	font-size: calc(1.8rem + (1vw - 0.56rem) * 1.0955);
}
@media (min-width: 992px){
	.h1, h1 {
		font-size: 5rem;
	}
	.h2, h2 {
		font-size: 4.5rem;
	}
	.h3, h3 {
		font-size: 4rem;
	}
	.h4, h4 {
		font-size: 3.5rem;
	}
	.h5, h5 {
		font-size: 3rem;
	}
	.h6, h6 {
		font-size: 2.0rem;
	}
}
main {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}
#p-header h3 {
    color: #FFF;
    margin: 0px;
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}
#history h6 {
    color: #503428;
    margin-left: 0px;
    margin-right: 0px;
}
ruby rt {
    font-size: 20%;
}
#history figure {
    margin: 0px;
}

/*表紙*/
.photo-area {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.photo-area:before {
    content: "";
    display: block;
    width: 100%;
}
.photo-area img {
    height: 100%;
    width: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
	-moz-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	-o-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
}
.top-button {
    flex-direction: column;
    background-color: red;
    width: 100px;
    height: 100px;
    box-sizing: border-box;
    border-radius: 100%;
    padding: 5px;
    box-shadow: 6px 6px 6px rgba(0,0,0,0.5);
}
.top-button h6 {
    display: block;
    color: #FFF!important;
}
.top-button:after {
    color: #FFF;
}
@media (min-width: 992px){
    .photo-area:before {
        padding-top: 50%;
    }
    .top-button {
        bottom: 5%;
        top: auto;
        right: auto;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}
@media (max-width: 991px){
    .photo-area:before {
        padding-top: 75%;
    }
    .top-button {
        position: static;
        margin-bottom: 10px;
    }
    .first-slide {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
    }
}

/*ヘッダー、フッター*/
#p-header {
    background-color: #38251D;
    padding: 10px;
}
#p-footer {
    background-color: #38251D;
    padding: 10px;
}

/*スライダー本体*/
.swiper {
    position: relative;
    background-image: url("../../asset/img/bg.jpg");
}
.bg-photo {
    background-image: url("../../asset/img/bg.png");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    position: relative;
}
.bg-photo:before {
    content: "";
    padding-top: 68%;
    width:100%;
    display: block;
}
.swiper-slide {
    position: relative;
    overflow: hidden;
}
.swiper-pagination {
    position: static;
}
.swiper-pagination span {
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 10px;
    line-height: 100%;
    padding: 5px;
    display: inline-block;
    width: 30px;
    height: auto;
}
.swiper-pagination-bullet {
    text-align: center;
    color: #FFF;
    opacity: 1;
    background: transparent;
    border-radius: 0px;
}
.swiper-pagination-bullet-active {
    background: #766963;
}

@media (min-width: 992px){
    .text-div h6 {
        writing-mode: vertical-rl;
        line-height: 175%;
        font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    }
    .waku-div {
        margin-top: 10%;
        height: 80%;
        box-shadow: 6px 6px 6px rgba(0,0,0,0.5);
    }
    .waku-div::before {
        content: "";
        display: block;
        width: 100%;
        padding-top: 20px;
        background-image: url("../../asset/img/text-bg01.png");
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
    }
    .waku-div::after {
        content: "";
        display: block;
        width: 100%;
        padding-top: 20px;
        background-image: url("../../asset/img/text-bg03.png");
        background-repeat: no-repeat;
        background-position: bottom center;
        background-size: cover;
    }
    .text-div {
        background-image: url("../../asset/img/text-bg02.png");
        background-repeat: repeat-y;
        background-position: top center;
        background-size: cover;
        height: 100%;
        position: relative;
        padding-top: 30px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
    }
    .text-div .swiper-button-prev,
    .text-div .swiper-button-next {
        position: static!important;
        z-index: 0;
    }
    .text-div h3 {
        position: absolute;
        top: -30px;
        right: -20px;
        color: #000;
        background-color: rgba(255,255,255,0.5);
        display: block;
        width: 150px;
        text-align: center;
        transform: rotate(15deg);
        box-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    }
    .text-div .swiper-button-prev.swiper-button-disabled,
    .text-div .swiper-button-next.swiper-button-disabled {
        opacity: 0;
    }
}
@media (max-width: 991px){
    .waku-div {
        background-color: #eeebe2;
        padding: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        box-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    }
    .text-div .swiper-button-prev,
    .text-div .swiper-button-next {
        display: none;
    }
    .text-div h3 {
        margin-right: 20px;
    }
    .text-div br {
        display: none;
    }
}
@media (max-width: 539px){
    main.container {
        margin-left: -10px;
        margin-right: -10px;
    }
}

/*写真部分*/
.bg-photo figure {
    width: 75%;
    padding: 10px 15px;
    box-sizing: border-box;
    background-image: url("../img/bg-daisi.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: absolute;
    box-shadow: 6px 6px 6px rgba(0,0,0,0.5);
}
.bg-photo figure img {
    width: 100%;
    height: auto;
    display: block;
}
.old-photo {
    left: 5%;
    bottom: 5%;
    z-index: 3;
    transform-origin: left bottom 0;
    cursor: pointer;
}
.old-photo:before {
    content: "昔";
    position: absolute;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    top: 5%;
    left: 0px;
    width: 100px;
    display: inline-block;
    padding: 5px;
    background-color: rgba(238,235,226,0.8);
    transform: rotate(-10deg);
}
.new-photo {
    right: 5%;
    top: 5%;
    z-index: 2;
    transform: rotate(2.5deg);
    transform-origin: right bottom 0;
    cursor: pointer;
}
.new-photo:before {
    content: "今";
    position: absolute;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    top: 5%;
    left: 0px;
    width: 100px;
    display: inline-block;
    padding: 5px;
    background-color: rgba(255,255,255,0.5);
    transform: rotate(-10deg);
}
.mae.old-photo {
    animation-name: anime-old;
    animation-fill-mode:forwards;
    animation-duration:1s;
    animation-iteration-count:1;
    animation-timing-function:ease;
    animation-direction:normal;
}
.mae.new-photo {
    animation-name: anime-new;
    animation-fill-mode:forwards;
    animation-duration:1s;
    animation-iteration-count:1;
    animation-timing-function:ease;
    animation-direction:normal;
}
.photo2 div {
	position: relative;
}
.photo2 div+div {
	margin-top: 5px;
}
.photo2 div span {
    position: absolute;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    top: 5%;
    left: 0px;
    width: 110px;
    display: inline-block;
    padding: 5px;
    background-color: rgba(238,235,226,0.8);
    transform: rotate(-10deg);
}
.photo2:before {
   display: none;
}
@keyframes anime-new {
    0% {
        top: 5%;
        right: 5%;
        transform: rotate(2.5deg);
    }
    50% {
        top: -20%;
        right: -20%;
        z-index: 4;
        transform: rotate(45deg);
    }
    100% {
        top: 5%;
        right: 5%;
        z-index: 4;
        transform: rotate(2.5deg);
    }
}

@keyframes anime-old {
    0% {
        left: 5%;
        bottom: 5%;
        z-index: 1;
        transform: rotate(0deg);
    }
    50% {
        left: -20%;
        bottom: -20%;
        z-index: 3;
        transform: rotate(-45deg);
    }
    100% {
        left: 5%;
        bottom: 5%;
        z-index: 3;
        transform: rotate(0deg);
    }
}
:root {
    --swiper-theme-color: red;
}