/*
Theme Name: Hestia Child
Theme URI: https://www.themeisle.com/
Description: This is a custom child theme I have created.
Author: ThemeIsle
URI: https://www.themeisle.com/
Template: hestia
Version: 0.1
*/

/* ナビゲーション */
.navbar {
  background-color: rgb(46, 45, 45);
	color: white;
	font-weight: bold;
}

/* 透明化解除（上から色で塗りつぶし） */
.navbar.navbar-transparent {
	background-color: rgb(46, 45, 45);
}

/* 最大幅を2560pxに指定 */
body {
  max-width: 2560px;
}

/* スクロールしても同じ高さにする */
body .admin-bar .navbar {
  margin-top: 17px;
}

/* .containerで100%にしないとトップ画像が画面いっぱいに広がらない（containerクラス内に画像があるため） */
.container {
  width: 100%;
}

/* コンテンツの最大幅を指定して中央に配置 */
.content {
  max-width: 1280px;
  margin: 0 auto;
}

/* ヘッダー画像の透明化を解除して明るくする */
.header-filter::before {
	background-color: rgba(0, 0, 0, 0);
}

/* メディアとテキストのポジション（before用）、高さを指定 */
.add {
	position: relative;
	height: 500px;
}

/* テキスト部分の高さ指定 */
.wp-block-media-text__content {
	height: 500px;
}

/* テキストを中央近くに配置 */
.add .wp-block-media-text__content {
	padding-top: 50px;
}

/* テキスト部分の背景色を変更 */
.add .wp-block-media-text__content {
	background-color:#F2F2F2;
}

/* 写真を下にずらす */
.add .wp-block-media-text__media {
	margin-top: 60px;
}

/* タイトルの横にオレンジの縦線配置 */
.add h3::before {
  content: "";
  position: absolute;
  top: 85px;
  left: 10px;
  background-color: #f15a4e;
  width: 5px;
	height: 30px;
}

/* slickを実装するとコンテンツ上部に余白ができるため対処 */
.hestia-about {
  padding-top: 0;
}

/* スライダー */

/* タイトルと説明文 */
.top {
  position: relative;
}

.shop-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.shop-title h1 {
  color: white;
  font-size: 5.3rem;
}

.shop-title p {
  color: white;
  font-size: 1.9rem;
  font-weight: bold;
}

/* 画像が右にずれるため設定 */
.slider {
  padding-left: 0;
  width: 100%;
}

.slick-slide {
  height: auto;
}

.slick-next {
  right: 10%;
}

.slick-prev {
  left: 10%;
}

.slick-arrow {
  width: 50px;
  height: auto;
  z-index: 2;
}

.slick-arrow:before{
  font-size: 40px;
}


/* サービス */
.value_item {
  margin-bottom: 100px;
}

dl {
  display: flex;
}

dl:hover {
  background-color: gray;
  transition: .4s ease-in-out;
  cursor: pointer;
}

dd {
  align-items: center;
}

dl:hover dd h5,
dl:hover dd p {
  color: white;
}

dt img {
  width: 100%;
}

dd {
  width: 100%;
  margin: 30px 0 0 50px;
}

dd h5 {
  font-size: 3rem;
  font-weight: bold;
}

dd p {
  font-size: 2rem ;
  color: black;
}

/* フッター */
.footer-container h3 {
  color: white;
  font-size: 4rem;
}

.footer-info {
  display: flex;
  margin: 50px auto 0;
  max-width: 1180px;
  justify-content: space-around;
}

.info {
  font-size: 2rem;
  text-align: left;
  max-width: 400px;
  margin-top: 50px;
  margin-left: 50px;
}

.info p {
  color: white;
}

#copyright {
  color: white;
  margin-top: 50px;
}

/* タブレットサイズ */
@media screen and (max-width:768px) {

	/* 	隙間ができるので詰める	 */
	.page-header {
		min-height: 550px ;
	}
}

/* スマートフォンサイズ */	
@media screen and (max-width:600px) {
	  
  /* タイトルと注釈 */
  .shop-title h1 {
    font-size: 3rem;
  }
  
  .shop-title p {
    font-size: 1.5rem;
  }

	/* 	画像を変更すると隙間があるので詰める	 */
	.page-header {
		min-height: 410px ;
	}
	
	/* メディアとテキストの配置変更（テキストを上、メディアを下に配置）	 */
	.wp-block-media-text__content {
    grid-row: 1  ;
	}
	
	.wp-block-media-text__media {
		grid-row: 2 ;
		margin-top: 0 ;
	}
	
	/* 2つ目から4つ目のメディアとテキストのみ下にずらす（重なり除去）	 */
	.add-second, .add-third, .add-fourth {
		margin-top: 200px;
	}

  /* 「当店で扱っている自転車から～」の文 */
  .introduction {
    font-size: 3rem !important;
  }

  /* タイトル横のオレンジの縦線除去（画像に配置されるため） */
  .add h3::before {
    content: none;
  }

  /* スペーサーを高さを縮小 */
  .spacer {
    height: 100px !important;
  }

  .spacer-bicycle {
    height: 0px !important;
  }

  .spacer-service {
    height: 70px !important;
  }

  /* メディアとテキストのテキストの高さ */
  .add .wp-block-media-text__content {
    height: 400px;
  }

  /* スライダー */

  /* 画像の一部をアップにして高さ指定 */
  .slick-slide img {
    object-fit: cover;
    height: 600px;
  }
  
  /* サービス */
  
  /* タイトル */
  .service {
    margin-top: 200px;
  }

  dl {
    display: initial;
    text-align: center;
    margin: 0 auto;
  }

  dt img {
    width: 100%;
  }
  
  dd {
    margin-left: 0;
  }

  dd h5 {
    margin-top: 20px;
  }

  /* フッター */
  .footer-container h3 {
    font-size: 2.5rem;
  }

  .footer-info {
    display: initial;
  }

  .info {
    margin: 20px auto;
  }

  .info p {
    font-size: 1.7rem;
  }
}