/*--- メインビジュアル ---*/
.main-visual{
  position: relative;
  color: #fdfdfd;

}

/* スライダー本体（画像領域） */
.main-slider{
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .main-slider{
    height: 70vh;
    aspect-ratio: 420 / 480;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .main-slider {
    height: 70vh;
    aspect-ratio: 768 / 545;
  }
}

.main-slider::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,var(--overlay-alpha));
  pointer-events: none;
  z-index: 1;
}

/* 各スライド */
.slide{
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  margin: 0;
  height: 100%;
}

/* 画像のフィット */
.slide img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: static;
}

.adjust-position img {
  object-position: 50% 80%;
}

.main-slider .slick-list,
.main-slider .slick-track,
.main-slider .slick-slide {
  height: 100% !important;
}

.main-slider .slick-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スライド内のリンクを全面クリック化 */
.slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-link:hover {
  opacity: .9;
}

/* picture も 100% フィット */
.slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* 既存の object-fit を picture 経由でも適用 */
.slide picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/*スライドdots*/
.main-slider .slick-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex!important;
  justify-content: center;
  gap: 12px;        /* 線の間隔 */
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 3;
}

.main-slider .slick-dots li {
  margin: 0;
  padding: 0;
  width: 80px;
}
@media screen and (max-width: 767px) {
  .main-slider .slick-dots li {
  width: 50px;
  }
}

.main-slider .slick-dots li button {
  font-size: 0;
  line-height: 0;
  width: 80px;
  height: 1px;
  background: #fdfdfd;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 2px;
}
@media screen and (max-width: 767px) {
  .main-slider .slick-dots li button {
  width: 50px;
  }
}

/* スライダーdotsアクティブな線 */
.main-slider .slick-dots li.slick-active button {
  background: #cbcbcb;
}


/*--- キャンペーンバナー ---*/
.top-banner {
  max-width: 680px;
}
@media screen and (max-width: 767px) {
  .top-banner {
  max-width: 95%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .top-banner {
    max-width: 60%;
  }
}

.top-banner .banner-contents a {
  display: inline-block;
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .top-banner .banner-contents a {
  margin-bottom: 20px;
  }
}

/*人と木について*/
.top-concept {
  position: relative;
  margin: 140px 0 80px auto;
}
@media screen and (max-width: 1024px) {
  .top-concept {
  margin: 50px auto;
  }
}

.top-concept::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: #f9f5ef;
  z-index: -1;
}
@media screen and (max-width: 767px) {
  .top-concept::before {
    content: none;
  }
}

.concept-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}
@media screen and (max-width: 1024px) {
  .concept-inner {
    flex-direction: column;
    gap: 0;
  }
}

.top-concept .concept-image {
  position: relative;
  left: 0;
  top: -80px;
  width: 45%;
}
@media screen and (max-width: 1024px) {
  .top-concept .concept-image {
    position: static;
    width: 100%;
  }
}

.top-concept .concept-image img {
  width: 100%;
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .concept-image img {
    height: 350px;
    object-fit: cover;
  }
}

.concept-text {
  width: 40%;
}
@media screen and (max-width: 1024px) {
  .concept-text {
    width: 100%;
    background: #f9f5ef;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .concept-text {
    width: 100%;
  }
}

.concept-text .section-title {
  font-size: 1.8rem;
}
@media screen and (max-width: 767px) {
  .concept-text .section-title {
  font-size: 1.1rem;
   max-width: 95%;
   margin: 20px auto;
    text-align: left;
  }
}

.concept-text .section-title span {
  font-size: 2.8rem;
}
@media screen and (max-width: 767px) {
  .concept-text .section-title span {
  font-size: 1.6rem;
  }
}

.concept-text-inner {
  text-align: center;
}
@media screen and (max-width: 767px) {
  .concept-text-inner {
    text-align: left;
    max-width: 95%;
    margin: 0 auto;
  }
}


.concept-text p {
  display: inline-block;
  text-align: left;
 line-height: 2rem;
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .concept-text p {
  	display: inline-block;
    text-align: left;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .top-concept .flex {
  	flex-direction: column;
  }
   .top-concept .flex figure {
  	width: 70%;
    margin: 30px auto;
  
  }
   .top-concept .flex .concept-text {
  	width: 100%
  }
}


/*--- カテゴリから探す ---*/
.category-slider .slick-slide {
  padding: 0 24px;
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  .category-slider .slick-slide {
  padding: 0 5px;
  }
}

.category-link {
  display: block;
  text-align: center;
  text-decoration: none;
}
.category-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

.top-category-contents {
  position: relative;
}


/* --- 矢印本体 --- */
.category-slider .slick-prev,
.category-slider .slick-next {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #F0F3F5;
}
@media screen and (max-width: 767px) {
 .category-slider .slick-prev,
.category-slider .slick-next {
  width: 42px;
  height: 42px;
  top: 33%;
  }
}


.category-slider .slick-prev { 
  left: -5px; 
}
  .category-slider .slick-next { 
    right: -5px; 
}


/* 矢印のベース（横線） */
.category-slider .slick-prev::after,
.category-slider .slick-next::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  position: relative;
}

/* --- 右矢印（→） --- */
.category-slider .slick-next::before {
  content: "";
  position: absolute;
  right: 18px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(45deg);
  opacity: 1;
}
@media screen and (max-width: 767px) {
.category-slider .slick-next::before {
  right: 10px;
  }
}

/* --- 左矢印（←） --- */
.category-slider .slick-prev::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #333;
  border-left: 2px solid #333;
  transform: rotate(-45deg);
  opacity: 1;
}
@media screen and (max-width: 767px) {
 .category-slider .slick-prev::before {
  left: 10px;
  }
}


/*--- 価格から探す ---*/
.top-price-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
}
@media screen and (max-width: 767px) {
.top-price-list  {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  }
}

@media screen and (min-width: 767px) and (max-width: 1024px) {
.top-price-list  {
  grid-template-columns: 1fr 1fr;
  }
}

.top-price-list li {
  background-color: #F6F3EE;
  border: 1px solid #836545;
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}
@media screen and (max-width: 767px) {
.top-price-list li {
  padding: 10px 5px;
  }
}

.top-price-list li a {
  display: block;
}
@media screen and (max-width: 767px) {
.top-price-list li a {
  font-size: .85rem;
  }
}

/*--- お知らせ ---*/
#news-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 50px;
}
@media screen and (max-width: 767px) {
#news-list {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
#news-list {
  gap: 20px;
  }
}

#news-list .news-card a img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-meta {
  margin-top: 8px;
}


/*--- 読みもの ---*/
.reading-contents {
 display: grid;
 grid-template-columns: 1fr 1fr 1fr;
 gap: 30px; 
}
@media screen and (max-width: 767px) {
.reading-contents {
 grid-template-columns: 1fr 1fr;
 gap: 10px; 
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .reading-contents {
  gap: 20px;
  }
}

.reading-contents li {
  text-align: center;
  height: 180px;
  position: relative;
}
@media screen and (max-width: 767px) {
.reading-contents li {
 height: 120px;
  }
}

.reading-contents .back-image-1 {
  background-image: url('https://www.hito-to-ki.com/read/wp-content/uploads/2018/11/img_oshirase-315x200.jpg');
}

.reading-contents .back-image-2 {
  background-image: url('https://www.hito-to-ki.com/read/wp-content/uploads/2018/11/img_products-315x200.jpg');
}

.reading-contents .back-image-3 {
  background-image: url('https://www.hito-to-ki.com/read/wp-content/uploads/2018/11/img_voice-315x200.jpg');
}

.reading-contents .back-image-4 {
  background-image: url('https://www.hito-to-ki.com/read/wp-content/uploads/2018/11/img_ehon-315x200.jpg');
}

.reading-contents .back-image-5 {
  background-image: url('https://www.hito-to-ki.com/read/wp-content/uploads/2018/11/img_nurie-315x200.jpg');
}

.reading-contents .back-image-6 {
  background-image: url('https://www.hito-to-ki.com/read/wp-content/uploads/2018/11/img_tencho-315x200.jpg');
}

.reading-contents li a {
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.4);
}

.reading-contents li a p {
  font-size: 1.2rem;
  color: #fdfdfd;
 position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
  white-space: nowrap;
}


/*--- 人と木公式SNS ---*/
.sns-contents {
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .sns-contents {
    max-width: 95%;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .sns-contents {
    max-width: 60%;
  }
}

.fb-page {
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .fb-page {
    margin-bottom: 20px;
  }
  .fb-page span iframe {
    width: 100%!important;
  }
}

.sns-contents a {
  display: inline-block;
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .sns-contents a {
    margin-bottom: 20px;
  }
}

.sns-contents a img {
  width: 100%;
}


/*--- 新着商品・人気商品 ---*/
.product-list {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
}
@media screen and (max-width: 767px) { 
.product-list {
  grid-template-columns: 1fr 1fr;
  gap: 15px;
　}
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .product-list {
   grid-template-columns: 1fr 1fr 1fr;
  　}
  }

.product-item {
  margin: 0 auto 30px auto;
}

@media screen and (max-width: 767px) { 
 .product-item {
margin: 10px auto;
　}
}
@media screen and (min-width: 768px) and (max-width: 1024px) { 
 .product-item {
 margin: 10px auto;
　}
}

.item-image {
 width: 100%;
  display: block;
  margin: 10px auto;
}
@media screen and (max-width: 767px) { 
.item-image-h {

　}
}


.h-container {
 width: 100%;
}

.item-name {

}

.item-price {
  margin-top: 10px;
 text-align: right;
  font-weight: 400;
}

.soldout {
  text-align: right;
 color: red;
}