@charset "utf-8";
/* CSS Document */

/* ---------- セクションタイトル ---------- */
.section-habitat__title {
  margin: 100px auto 0;
}
.section-variety__title {
  margin: 200px auto 0;
}
.section-habitat__title img, .section-variety__title img {
  position: relative;
  top: -50px;
}
.section-habitat__text, .section-variety__text {
  margin: 0 0 60px;
}
.section-habitat__text p:nth-child(2), .section-variety__text p:nth-child(2) {
  margin: 20px 0;
}
.section-variety__title {
  margin: 230px auto 0;
}
@media(max-width:1200px) {
  .section-habitat__title {
    margin: 50px auto 0;
  }
  .section-variety__title {
    margin: 250px auto 0;
  }
  .section-habitat__title img, .section-variety__title img {
    width: 200px;
    top: -40px;
  }
  .section-habitat__text, .section-variety__text {
    margin: 0 auto;
    width: 80%;
    box-sizing: border-box;
  }
}
/* ---------- 生息地　写真---------- */
.section-habitat__photo {
  margin: 80px auto 150px;
  display: flex;
  justify-content: center;
}
.section-habitat__photo img {
  height: 100%;
  object-fit: cover;
}
.section-habitat__photo img:first-child {
  width: 400px;
  position: relative;
  top: -30px;
  left: -50px;
}
.section-habitat__photo img:last-child {
  width: 300px;
  position: relative;
  top: 60px;
  left: 50px;
}
@media(max-width:800px) {
  .section-habitat__photo {
    width: 80%;
    box-sizing: border-box;
    margin: 80px auto 250px;
    display: block;
    max-width: 600px;
    max-height: 300px;
  }
  .section-habitat__photo img {
    width: 100%;
  }
  .section-habitat__photo img:first-child {
    width: 400px;
    position: relative;
    left: -100px;
  }
  .section-habitat__photo img:last-child {
    width: 300px;
    position: relative;
    top: -20px;
    left: 150px;
  }
}
/* ---------- 日本の生息地　背景・タイトル ---------- */
.section-Japan {
  background-color: #f6f8f3;
  height: 700px;
}
.section-Japan::after {
  content: "";
  display: block;
  background-image: url("../images/accent/wave_bg.png");
  background-size: contain;
  background-repeat: repeat-x;
  width: 100%;
  height: 200px;
  position: absolute;
}
.section-Japan h1 {
  padding: 100px 0 60px;
}
.section-Japan h1::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 30px;
  width: 20px;
  background-image: url("../images/accent/emphasis.png");
  background-repeat: no-repeat;
  margin-right: 20px;
}
.section-Japan h1::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 30px;
  width: 20px;
  background-image: url("../images/accent/emphasis.png");
  background-repeat: no-repeat;
  transform: scale(-1, 1);
  margin-left: 15px;
}
@media(max-width:800px) {
  .section-Japan {
    height: 100%;
  }
}
/* ---------- 日本の生息地　コンテンツ ---------- */
.section-Japan__map {
  display: flex;
  justify-content: center;
}
.section-Japan__map img {
  height: 400px;
  width: 400px;
  object-fit: contain;
}
.section-Japan__text {
  position: relative;
  left: 100px;
}
.section-Japan__text img {
  position: relative;
  height: 200px;
  width: 300px;
  top: -120px;
  left: -80px;
}
@media(max-width:800px) {
  .section-Japan__map {
    display: block;
  }
  .section-Japan__map img {
    height: 300px;
    width: 300px;
    position: relative;
    top: -60px;
    margin-bottom: -50px;
  }
  .section-Japan__text {
    position: static;
  }
  .section-Japan__text img {
    height: 200px;
    left: -20px;
    width: 300px;
    top: -120px;
  }
}
/* ---------- 種類　オカヤドカリリスト ---------- */
.section-variety {
  height: 1200px;
}
.section-variety__list-content {
  background-color: #f6f8f3;
  height: 400px;
  width: 350px;
  border-radius: 20px;
  padding: 40px;
  box-sizing: border-box;
}
.section-variety__list-content h1 {
  padding-top: 20px;
}
.section-variety__list a{
  text-decoration: none;
  color: #433b34;
}


/* ---------- スライダー ---------- */
.slider {
  width: 80%;
  margin: 100px auto;
}
.slider img {
  width: 250px; 
  height: 250px;
  object-fit: cover;
  vertical-align: bottom;
  border-radius: 20px;
  margin: 0 auto;
}
.slider .slick-slide {
  transform: scale(0.8); /*左右の画像のサイズを80%に*/
  transition: all 2s; /*拡大や透過のアニメーションを0.5秒で行う*/
  opacity: 0.8; /*透過50%*/
}
.slider .slick-slide.slick-center {
  transform: scale(1); /*中央の画像のサイズだけ等倍に*/
  opacity: 1; /*透過なし*/
}
/*矢印の設定*/
/*戻る、次へ矢印の位置*/
.slick-prev, .slick-next {
  position: absolute; /*絶対配置にする*/
  top: 42%;
  cursor: pointer; /*マウスカーソルを指マークに*/
  outline: none; /*クリックをしたら出てくる枠線を消す*/
  border-top: 2px solid #53A6B8; /*矢印の色*/
  border-right: 2px solid #53A6B8; /*矢印の色*/
  border-width: thick;
  height: 15px;
  width: 15px;
}
.slick-prev { /*戻る矢印の位置と形状*/
  left: -5%;
  transform: rotate(-135deg);
}
.slick-next { /*次へ矢印の位置と形状*/
  right: -5%;
  transform: rotate(45deg);
}
/*ドットナビゲーションの設定*/
.slick-dots {
  text-align: center;
  margin: 20px 0 0 0;
}
.slick-dots li {
  display: inline-block;
  margin: 0 5px;
}
.slick-dots button {
  color: transparent;
  outline: none;
  width: 10px; /*ドットボタンのサイズ*/
  height: 10px; /*ドットボタンのサイズ*/
  display: block;
  border-radius: 50%;
  border: none;
  background: #c8bb9b; /*ドットボタンの色*/
}
.slick-dots .slick-active button {
  background: #53A6B8; /*ドットボタンの現在地表示の色*/
}





/* ---------- モーダル ---------- */

/*モーダルの横幅を変更したい場合*/
.modaal-container{
  padding:30px;
  overflow-y: auto;
  overflow-x: hidden;
}
.modaal-content-container{
  padding: 0;
  text-align: center;
}

.modaal-close:after, 
.modaal-close:before{
	background:#f6f8f3;	
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before{
	background:#f6f8f3;
}
.section-variety__detail-photo{
  display: inline-block;
}
.section-variety__detail-photo img{
  height: 470px;
  width: 440px;
  object-fit: cover;
  vertical-align: bottom;
}
.section-variety__detail-text{
  display: inline-block;
  width: 400px;
  height: 450px;
  vertical-align: top;
  margin-left: 30px;
  text-align: left;
}
.section-variety__detail-text h1 {
  padding-top: 20px;
  text-align: center;
  margin: 0 auto;
}
.section-variety__detail-text h2 {
  padding-bottom: 20px;
  text-align: center;
  margin: 0 auto 30px;
  border-bottom: solid #53A6B8 3px;
}
.section-variety__detail-text p {
  width: 360px;
  margin: 0 auto 50px;
}
.section-variety__detail-point {
  margin: 0 auto;
  display: flex;
  justify-content:center; 
  width: 360px;
  height: 160px;
}
.section-variety__detail-point-illust{
  width: 160px;
  height: 160px;
}
.section-variety__detail-point-illust img{
  width: 160px;
  height: 160px;
  border: #f6f8f3 solid 15px;
  border-radius: 100px;
  vertical-align: middle;
}
.section-variety__detail-point-text{
  width: 200px;
  margin-left: 30px;
}
.section-variety__detail-point-text h3{
  background-color: #53A6B8;
  color: #FFF;
  padding: 10px 20px;
  text-align: center;
  margin-bottom: 20px;
}

@media(max-width:650px){
  .modaal-container{
    padding: 0;
}
.modaal-content-container{
  padding: 0;
  text-align: center;
}
.section-variety__detail-photo img{
  height: 240px;
  width: 240px;
}
.section-variety__detail-text{
  width: 240px;
  height: 300px;
  margin-left: 0;
}

.section-variety__detail-text p {
  width: 240px;
  margin: 0 auto 30px;
}
.section-variety__detail-point {
  margin: 0 auto;
  display: flex;
  justify-content:center; 
  width: 240px;
  height: 200px;
}
.section-variety__detail-point-illust{
  width: 100px;
  height: 100px;
}
.section-variety__detail-point-illust img{
  width: 100px;
  height: 100px;
  border: #f6f8f3 solid 10px;
}
.section-variety__detail-point-text{
  width: 100px;
  margin-left: 20px;
}
.section-variety__detail-point-text h3{
  padding: 5px 20px;
  margin-bottom: 20px;
}
  .section-variety__detail-point-text p{
  width: 100px;
}
}


