/*
Theme Name: 蟷螂山 2025
Theme URI: https://tourouyama.jp
Description: 蟷螂山サイトのテーマ2025：TOP
Version: 1
Author: Yumi Asakura
Author URI: http://yumiasakura.com
*/

/****************************************
		TOP
*****************************************/
/* ヘッダー */
.hero {
  background: url(img/bk.jpg) center / 250px repeat;
  height: 700px;
  position: relative;
}
.hero img.top-kamakiri {
    width: 630px;
    height: auto;    
    bottom: 2.3%;
    left: 9%;
    z-index: 9;
}
.hero h1 {
      position: absolute;
    top: 35%;
    right: 21%;
    width: 213px;
    height: 147px;
    background: url(img/title.png) center / 213px no-repeat;
    text-indent: -9999px;
}
.hero img.moya {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: -2vw;
    left: 0;
    z-index: 10;
}
.top section {
    margin: 8em auto;
    text-align: center;
}
@media screen and (max-width: 768px) {
	.hero {
  	height: 72vh;
	}
	.hero img.top-kamakiri {
    width: 100%;
    height: auto;    
    bottom: 2.3%;
    left: 9%;
	}
	.hero h1 {
    display: none;
	}
	.top section {
    margin: 4em auto;
	}
}


/* 紹介セクション */
.top section.intro {
    margin: 3em auto 13em auto;
	position: relative;
}
.intro p {
    width: auto;
    margin: 0 auto;
    text-align: left;
    display: inline-block;
	font-size: 110%;
}
/* 緑雲ボタン */
a.more1 {
  width: 11em;
  height: auto;
	display: block;
	transition: right 0.3s ease;
}
a.more1 img, a.more2 img {
	width: 95%;
} 
a.more1 {
	position: absolute;
	right: 20%;
    bottom: -6em;
}
a.more1:hover {
	right: 19%;
}
@media screen and (max-width: 768px) {
	.top section.intro {
		font-size: 80%;
    	margin: 3em auto 10em auto;
	}
	.intro p {
    	width: 80%;
		font-size: 100%;
	}
	.intro a.more1 {
 	 right: 10%;
    bottom: -5.5em;
	}
}

/* 授与品バナー */
.bnr-juyohin {
	width: 80%;
	height: 12em;
	margin: 0 auto;
	position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
	background-size: 110%;
  overflow: hidden;
    border-radius: 5px;
    border: 1px solid #DBCB9B;
}
.bnr-juyohin::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7); /* 白で50%オーバーレイ */
  z-index: 1;
}
.bnr-juyohin-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.bnr-juyohin-text {
  position: relative;
  z-index: 2;
  top: 50%;
	width: 80%;
  left: 10%;
  transform: translateY(-50%);
	display: flex;
    justify-content: center;
    align-items: center;
	text-align: left;
	text-shadow: 0px 0px 5px rgba(255, 255, 255, 1);
}
.bnr-juyohin-text h2 {
	font-size: 2em;
	padding-right: 2em;
}
.bnr-juyohin-text h2 span {
	font-weight: normal;
}
.bnr-juyohin-text h3 {
	font-size: 1.4em;
}
@media screen and (max-width: 768px) {
	.bnr-juyohin {
	    background-size: 180%;
		width: 90%;
	}
	.bnr-juyohin-text {
    width: 80%;
    left: 10%;
    align-items: flex-start;
    flex-direction: column;
	text-align: center;
	}
	.bnr-juyohin-text h2 {
    font-size: 1.5em;
    padding-right: 0;
	padding-left: 0.5em;
    margin: 0 auto .5em auto;
	}
	.bnr-juyohin-text h2 span {
    display: block;
	}
	.bnr-juyohin-text div {		
	 margin: 0 auto;
	}
	.page section.bnr-juyohin p {
    line-height: 1.7;
	}	
	.bnr-juyohin-text h3 {
    font-size: 1.2em;
	}
}

/* 巡行写真 */
.top-photo {
    width: 100%;   
}
.top-photo img {
    width: 100%;
}
@media screen and (max-width: 768px) {
.top-photo img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: 90% 100%;
	}
}


/* お知らせ */
.top-news {
    display: flex;
    align-items: center;
    border: 1px solid #7E9F67; /* 緑色の枠 */
    background-color: white;
    padding: 1em;
    max-width: 70%;
    position: relative;
}
.top-news-title {
    writing-mode: vertical-rl;
    text-align: center;
    background-color: white;
    border: 1px solid #7E9F67;
    width: 4em;
    padding: 2.2em 1em;
    position: absolute;
    left: -2em;
    top: -2em;
    font-size: 90%;
    letter-spacing: .2em;
}
.top-news-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.top-news-box {
    flex: 1;
    text-align: center;
    padding: 2em;
}
.top-news-box h2 {
    font-size: 110%;
    text-align: right;
    margin: 0 auto;
    width: auto;
    display: inline-block;
}
.top-news-box h2 a {
    padding-bottom: 5px;
    border-bottom: 1px solid #DBCB9B;
}
.top-news-box p {
    color: #77746E;
    font-size: 70%;
    padding-top: 1em;
    font-weight: normal;
    letter-spacing: 0.1em;
}
.divider {
    width: 1px;
    background-color: #7E9F67;
    height: 8em;
    align-self: center;
}
@media screen and (max-width: 768px) {
	.top-news-content {
		flex-direction: column;
	}
	.top-news-box {
	 	padding: 1em 1em 1em 2.5em;
	}
	.top-news-box h2 {
		font-size: 100%;
    	text-align: left;
	}
	.divider {
    	width: 90%;
    	height: 1px;
	}
}
/* あゆみ */
.top-ayumi {
  width: 100%;
  min-height: 455px;
  background: url(img/top-ayumi.png) bottom left / 90% no-repeat;
  padding:10% 18% 10% 57%;
}
.top-content {
    text-align: left;
}
.top-content h2 {
    margin-bottom: 1em;
	    font-size: 140%;
}
.top-content p {
    font-size: 85%;
    line-height: 2em;
    text-align:justify;
}
.top-ayumi-content {
	position: relative;
}
/* 雲ボタン */
a.more2 {
	width: 11em;
  	height: auto;
	display: block;
	transition: right 0.3s ease;
	position: absolute;
}
.top-ayumi a.more2 {
	bottom: -2em;
	right: 0;
}
.top-ayumi a.more2:hover {
	right: -5%;
}
@media screen and (max-width: 768px) {
.top-ayumi {
    min-height: 350px;
    background: url(img/top-ayumi.png) top left 20% / 160% no-repeat;
     padding: 70% 10% 0 10%;
	}
	.top-ayumi a.more2 {
	right: -1em;
	}
}

/* いろいろなかまきり */
.top-iroiro {
  width: 100%;
  padding:10% 0 11% 10%;
  display: flex;
    align-items: center;
    justify-content: space-between;
  background: url(img/kumo3.png) left bottom / 50% no-repeat;
}
.top-iroiro-content {
    width: 24%;
	position: relative;
}
/* 雲ボタン */
.top-iroiro a.more2 {
	bottom: -4em;
	right: 0;
}
.top-iroiro a.more2:hover {
	right: -5%;
}
.top-iroiro-emaki {
    width: 70%;
    height: auto;
    padding-bottom: 2%;
    background: url(img/emaki.gif) right top / 100% no-repeat;
}
.slider-container {
            width: 94%;
            overflow: hidden;
            position: relative;
            margin: 4% 0 0 6.1%;
        }

        .slider {
            display: flex;
            width: max-content;
            animation: slide 60s linear infinite;
            border-top: 1px solid #DBCB9B;
            border-bottom: 1px solid #DBCB9B;
        }

        .slider img {
            height: 19vw;
            width: auto;
            flex-shrink: 0;
            filter: brightness(0.9);
        }
        @keyframes slide {
            from { transform: translateX(-50%); } /* 画像5枚分スライド */
    to { transform: translateX(0); } /* 逆向き */
        }
@media screen and (max-width: 768px) {
.top section.top-iroiro {
  padding:42% 10% 35% 10%;
  background: url(img/kumo3.png) left -200% bottom / 90% no-repeat;
	margin-top: 8em;
	flex-direction: column;
	}
	.top-iroiro-content {
    width: 100%;
	}
	.top-content h2 {
		margin-bottom: 0.6em;
	}
	.top-iroiro-emaki {
    width: 90%;
    height: 45%;
    padding-bottom: 0;
    background: url(img/emaki.gif) right top / 100% no-repeat;
    position: absolute;
    top: 0;
    right: 0;
	}
	.slider img {
    height: 28.9vw;
	}
	.top-iroiro a.more2 {
	bottom: -3em;
		right: -1em;
	}
}        
        
/* 懸装品 */
.top-kake {
  width: 100%;
  padding:10% 0;
    background: url(img/top-kake.png) center / 100% no-repeat;
}
.top-kake-content {
    width: 24%;
    margin: 0 auto;
	position: relative;
	padding-bottom: 1.5em;
}
.top-kake-content h2 {
    text-align: center;
}
.top-kake rt {
    font-size: 0.4em; /* ルビのサイズを小さく */
}
/* 雲ボタン */
.top-kake a.more2 {
	bottom: -2em;
	right: 0;
}
.top-kake a.more2:hover {
	right: -5%;
}
@media screen and (max-width: 768px) {
	.top-kake {
    background: url(img/top-kake-sp.png) top left / 90% no-repeat;
	}
	.top-kake-content {
    width: 80%;
    padding: 60% 0 0 0;
	}
	.top-kake a.more2 {
		bottom: -4em;
		right: -1em;
	}
}
