@charset "UTF-8";

a, a:visited, a:hover, a:active {
    text-decoration: none;
    color: inherit;
}

header,footer,nav,main,section,article,aside{
display:block;
}

html {
  font-size: 100%;
}
body {

}
a {
  text-decoration: none;
}
img {
  /* max-width: 100%; */
}

.boxr {
  position   : relative;
  height: 700px;
  min-height: 300px;
  margin     : auto;
  overflow   : hidden;
}

.boxr .bgImg {
  background-size: cover;
  background-position: center ;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position   : absolute;
  top        : 0;
  left       : 0;
  bottom     : 0;
  right      : 0;
  opacity    : 0;
  animation  : bgAnime 24s infinite;   /* 4画像 × 各8s = 32s */
}

/* --- 段差で背景画像のアニメーションを実行 ----------------- */
.boxr .src1 {
  background-image : url(../images/recommend/recommend-top2.jpeg);   /* 背景の画像を指定 */
}
.boxr .src2 {
  background-image : url(../images/home-top/home-top-nama.JPG);   /* 背景の画像を指定 */
  animation-delay  : 6s;
}
.boxr .src3 {
  background-image : url(../images/recommend/pasto-right.JPG);   /* 背景の画像を指定 */
  animation-delay  : 12s;
}
.boxr .src4 {
  background-image : url(../images/home-top/home-recommend.jpeg);   /* 背景の画像を指定 */
  animation-delay  : 18s;
}

@keyframes bgAnime {
   0% { opacity: 0; transform: scale(1.0, 1.0); }
   1% { opacity: 1; transform: scale(1.0, 1.0); }
   5% { opacity: 1; transform: scale(1.0, 1.0); }
  21% { opacity: 1; transform: scale(1.1, 1.1); }
  25% { opacity: 1; transform: scale(1.1, 1.1); }
  26% { opacity: 0; }
 100% { opacity: 0; }
}

.boxrString{
  position   : absolute;
  display    : inline-block;
}

/* MAIN */
.recommend-main {
  background-color: rgba(135,15,0,0.9);
  /* background-color: #871900; */
  /* height:1800px; */
}

.recommend-content-top {
  text-align:center;
  color: #fff;
  width: 900px;
  margin: 0 auto;
  padding-bottom: 85px;
}

.recommend-content-top h2 {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 5px;
  font-size: 1.5rem;
  color: #fff;
  font-family: "Comic Sans MS";
}

.recommend-content-top-text {
  padding-top: 40px;
  line-height: 2em;
  font-size: 1rem;
}

.border1 {
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  /* padding-top: 85px; */
  /* color: #fff; */
  width: 80%;
}

/* TAMA */
.tama-content {
  margin: 0 auto;
  display: flex;
  padding-top: 85px;
  padding-bottom: 80px;
  width: 75%;
}

.tama-text {
  width: 60%;
  color: #fff;
  padding-left: 15px;
}

.tama-img {
  width: 40%;
  text-align: center;
  padding-top: 25px;
}

.tama-content img {
  width: 85%;
  margin: 0 auto;
  border-radius: 5%;
  border: 0.4px solid rgba(255,255,255,0.4);
}

.tama-text-top {
  width: 80%;
  margin: 0 auto;
  line-height: 2em;
}

.tama-text-top h2 {
  text-align: center;
  font-size: 1.4rem;
  padding-top: 10px;
  padding-bottom: 20px;
}

.tama-text-top p {
  font-size: 0.9rem;
  line-height: 1.4rem;
  padding-bottom: 0.4rem;
  font-family: "Courier";
}

.tama-text-mid {
  margin: 0 auto;
  padding-top: 10px;
  width: 80%;
}

.tama-text-mid p {
  font-size: 1rem;
  line-height: 1.4rem;
  padding-bottom: 0.4rem;
}

.tamaimg1 {
  margin: 0 auto;
}

/* TAMAPHOTO */
.tama-photos {
  display: flex;
  width: 75%;
  margin: 0 auto;
  padding-bottom: 85px;
  /* height: 600px; */
  justify-content: space-around;
}

.tama-photo img{
  width: 260px;
  height: 190px;
  border-radius: 3%;
}


@media screen and (max-width:480px) {

	/*　画面サイズが480px以下の場合ここの記述が適用される　*/
  .boxr {
    width: 100%;
    height: 250px;
    position   : relative;
    margin     : auto;
    overflow   : hidden;
  }

  .boxr .bgImg {
    background-size: cover;
    background-position: center ;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position   : absolute;
    top        : 0;
    left       : 0;
    bottom     : 0;
    right      : 0;
    opacity    : 0;
    animation  : bgAnime 24s infinite;   /* 4画像 × 各8s = 32s */
  }

  /* --- 段差で背景画像のアニメーションを実行 ----------------- */
  .boxr .src1 {
    background-image : url(../images/recommend/recommend-top2.jpeg);   /* 背景の画像を指定 */
  }
  .boxr .src2 {
    background-image : url(../images/home-top/home-top-nama.JPG);   /* 背景の画像を指定 */
    animation-delay  : 6s;
  }
  .boxr .src3 {
    background-image : url(../images/recommend/pasto-right.JPG);   /* 背景の画像を指定 */
    animation-delay  : 12s;
  }
  .boxr .src4 {
    background-image : url(../images/home-top/home-recommend.jpeg);   /* 背景の画像を指定 */
    animation-delay  : 18s;
  }

  @keyframes bgAnime {
     0% { opacity: 0; transform: scale(1.0, 1.0); }
     1% { opacity: 1; transform: scale(1.0, 1.0); }
     5% { opacity: 1; transform: scale(1.0, 1.0); }
    21% { opacity: 1; transform: scale(1.1, 1.1); }
    25% { opacity: 1; transform: scale(1.1, 1.1); }
    26% { opacity: 0; }
   100% { opacity: 0; }
  }

  .boxrString{
    position   : absolute;
    display    : inline-block;
  }

  .logo {
    width: 50%;
    height: 50%;
    margin-top: 20px;
    margin-left: 20px;
    border-radius: 7%;
  }


  .recommend-content-top {
    text-align:center;
    color: #fff;
    width: 80%;
    margin: 0 auto;
    padding-bottom: 5px;
  }

  .recommend-content-top h2 {
    text-align: center;
    padding-top: 40px;
    font-size: 1.4rem;
    color: #fff;
    font-family: "Comic Sans MS";
  }

  .recommend-content-top-text {
    padding-top: 20px;
    padding-bottom: 20px;
    line-height: 1.1rem;
    font-size: 0.55rem;
  }

  .tama-content {
    margin: 0 auto;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 25px;
    width: 90%;
  }

  .tama-text {
    width: 100%;
    color: #fff;
    padding-bottom: 10px;
  }

  .tama-img {
    width: 100%;
    text-align: center;
    padding-top: 10px;
  }

  .tama-content img {
    width: 55%;
    margin: 0 auto;
    border-radius: 5%;
    border: 0.4px solid rgba(255,255,255,0.4);
  }

  .tama-text-top {
    width: 77%;
    margin: 0 auto;
    line-height: 2em;
  }

  .tama-text-top h2 {
    text-align: center;
    font-size: 1.1rem;
    padding-top: 15px;
    padding-bottom: 10px;
  }

  .tama-text-top p {
    font-size: 0.65rem;
    line-height: 1rem;
    padding-bottom: 0.4rem;
    font-family: "Courier";
    color: rgba(255,255,255,0.85);
  }

  .tama-text-mid {
    width: 77%;
    margin: 0 auto;
    padding-top: 10px;
  }

  .tama-text-mid p {
    font-size: 0.65rem;
    line-height: 1rem;
    padding-bottom: 0.4rem;
    color: rgba(255,255,255,0.85);
  }

  /* TAMAPHOTO */
  .tama-photos {
    flex-direction: column;
    text-align: center;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 15px;
  }

  .tama-photo img{
    width: 50%;
    height: 50%;
    border-radius: 3%;
    padding: 5px;
  }

  .recommend-content {
    padding-bottom: 30px;
  }



}
