
/* 最勝寺について画像 */

.content{
  width: 90%;
  margin: 0px auto;
  padding-top: 90px;
}

.content_img{
  background-image: url(../img/home007.png);
  background-size: cover;
  background-position: bottom;
  position: relative;
  background-attachment: fixed;
  width: 100%;
  height: 60vh;
  margin: auto auto 60px auto;
}

@media only screen and (max-width:900px) {
  .content{
    padding-top: 60px;
    width: 100%;
  }
  .content_img{
    height: 40vh;
    margin: auto auto 60px auto;
    background-attachment:local;
  }
}



.content_title {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 250%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  width: 350px;
  height: 70px;
  line-height: 70px;
 
 

  padding: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: bold;
  text-align: center; 
}


/* 最勝寺の始まり */
.headline{
  width: 100%;
  padding: 80px;
  
}
.headline_main{
  margin: auto auto 40px auto;
  font-size: 200%;
  letter-spacing:10px;

  padding: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: bold;
  text-align: center;  
 
}
.headline span {
  background: linear-gradient(transparent 60%, #f4f5b2 60%);
}

.headline_sub{
  font-size: 25px;
  margin-top: 40px;
  text-align: center;
  line-height: 50px;
}

@media only screen and (max-width:900px) {
  .headline_sub{ 
  text-align: left;
  font-size: 20px;
  line-height: 25px;
  }
  .headline{
    padding: 30px;
  }
}

/* アニメーション */

.headline {
  -webkit-transition: 0.8s ease-in-out;
  -moz-transition: 0.8s ease-in-out;
  -o-transition: 0.8s ease-in-out;
  transition: 0.8s ease-in-out;
  transform: translateX(0px);
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-opacity: 0;
}
.headline.on {
  opacity: 1.0;
  filter: alpha(opacity=100);
  -moz-opacity: 1.0;
  transform: translateX(0);
}

/* 遺書 */

.history{
  width: 100%;
  padding: 50px;
  text-align: center;
}

.history_main{
  font-size: 180%;
  padding: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: bold;
  text-align: center;  
}

.history_img{
  width: 100%; 
  margin-top: 40px;
  max-width: 700px;
}

.history_sub{
  font-size: 20px;
  margin-top: 40px;
  text-align: center;
  line-height: 30px;
}

@media only screen and (max-width:450px) {
  .history_main{
    font-size: 19px;
  }
  .history_sub{
  font-size: 16px;
  }
}

/* ほとけ */
.hotoke{
  padding: 100px 100px 30px 100px; 
}
@media only screen and (max-width:900px) {
  .hotoke{
  padding: 15px;
  }
}

.hotoke_item{
  display: flex;
  justify-content: space-between;
}

.hotoke_item:not(:last-child){
  margin-bottom: 50px;
}

.hotoke_item:nth-child(odd){
  flex-direction: row-reverse;
}


.hotoke_img {
  width: 100%;
  align-items: center;
}

.hotoke_img img{
  width:  90%;
  object-fit: cover;
  text-align: center;
  margin: 10px;
  display: block; 
  margin: auto;
}

.hotoke_block{
  width: 100%;
  padding: 20px;
 
}

.hotoke_main{
  font-size: 200%;
  margin: 10px auto 30px auto;
  text-align: center;

  padding: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: bold;
  text-align: center;  
}

.hotoke_main span{
  background: linear-gradient(transparent 60%, #ffd3df 60%);
}

.hotoke_sub{
  color: rgb(0, 0, 0);
  margin: 25px auto auto auto;
  line-height: 30px;
  font-size: 28px;
  line-height: 1.5;
}

@media screen and (max-width: 900px) {
  .hotoke_item{
    flex-direction: column;
    align-items: center;
  }

  .hotoke_item:nth-child(odd) {
    flex-direction: column;
  }

  .hotoke_img {
    width: 100%;
    height:auto;
    max-width: 520px;
  }

  .hotoke_block{
    width: 100%;
    padding: 15px;
    
  }
  .hotoke_main {
    font-size: 24px;
  }
  .hotoke_sub{
    font-size: 18px;
  }
  
}


/* 花 */
.flower{
  padding: 100px 100px 100px 100px; 
}
@media only screen and (max-width:900px) {
  .flower{
  padding: 15px;
  }
}

.flower_item{
  display: flex;
  justify-content: space-between;
}

.flower_item:not(:last-child){
  margin-bottom: 50px;
}

.flower_item:nth-child(even){
  flex-direction: row-reverse;
}

.flower_img {
  width: 100%;
  align-items: center;
}

.flower_img img{
  width:  90%;
  object-fit: cover;
  text-align: center;
  margin: 10px;
  display: block; 
  margin: auto;
}

.flower_block{
  width: 100%;
  padding: 20px;
}

.flower_main{
  font-size: 200%;
  margin: 10px auto 30px auto;
  text-align: center;

  padding: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: bold;
  text-align: center;  
}

.flower_main span{
  background: linear-gradient(transparent 60%, #ffd3df 60%);
}

.flower_sub{
  color: rgb(0, 0, 0);
  margin: 25px auto auto auto;
  line-height: 30px;
  font-size: 28px;
  line-height: 1.5;
}

@media screen and (max-width: 900px) {
  .flower_item{
    flex-direction: column;
    align-items: center;
  }

  .flower_item:nth-child(odd) {
    flex-direction: column;
  }

  .flower_img {
    width: 100%;
    height:auto;
    max-width: 520px;
  }

  .flower_block{
    width: 100%;
    padding: 15px;
    
  }
  .flower_main {
    font-size: 24px;
  }
  .flower_sub{
    font-size: 18px;
  }
  
}

/* 石 */
.stone{
  padding: 30px 100px 100px 100px; 
}
@media only screen and (max-width:900px) {
  .stone{
  padding: 15px;
  }
}
.stone_item{
  display: flex;
  justify-content: space-between;
}

.stone_item:not(:last-child){
  margin-bottom: 50px;
}

.stone_item:nth-child(odd){
  flex-direction: row-reverse;
}

.stone_img {
  width: 100%;
  align-items: center;
}

.stone_img img{
  width:  90%;
  object-fit: cover;
  text-align: center;
  margin: 10px;
  display: block; 
  margin: auto;
}

.stone_block{
  width: 100%;
  padding: 20px;
}

.stone_main{
  font-size: 200%;
  margin: 10px auto 30px auto;
  text-align: center;

  padding: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: bold;
  text-align: center;  
}

.stone_main span{
  background: linear-gradient(transparent 60%, #ffd3df 60%);
}

.stone_sub{
  color: rgb(0, 0, 0);
  margin: 25px auto auto auto;
  line-height: 30px;
  font-size: 28px;
  line-height: 1.5;
}

@media screen and (max-width: 900px) {
  .stone_item{
    flex-direction: column;
    align-items: center;
  }

  .stone_item:nth-child(odd) {
    flex-direction: column;
  }

  .stone_img {
    width: 100%;
    height:auto;
    max-width: 520px;
  }

  .stone_block{
    width: 100%;
    padding: 15px;
    
  }
  .stone_main {
    font-size: 24px;
  }
  .stone_sub{
    font-size: 18px;
  }
  
}

