@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

footer{
	padding-bottom:40px !important;
}
article h2 {
  margin-bottom: 0 !important;
}
/* SlickのデフォルトCSS */
.slick-slider {
	margin-top:40px;
  position: relative;
  display: block;
  box-sizing: border-box;
}

.slick-slide {
  display: none;
  float: left;
  height: auto; /* 高さを自動調整 */
}
/* 画像を中央寄せ */
.talent-slider .slick-slide img {
    display: block;
    margin: 0 auto;  /* 横方向に中央寄せ */
    max-width: 100%; /* 横幅を100%に制限 */
    height: auto;    /* 高さは自動で調整 */
}
.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5) !important; /* !important を追加 */
  color: white;
  border: none;
  cursor: pointer;
}

/* 左右の位置 */
.slick-prev {
  left: 10px;
}

.slick-next {
  right: 10px;
}
/* トップタレント*/
.talent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 1200px;
}

.talent-item {
    width: calc(25% - 20px); /* 4列 */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.talent-item:hover {
    transform: translateY(-5px);
}

.talent-item img {
    width: 100%;
    height: auto;
    display: block;
}

.talent-item h4 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}

.talent-sns a {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.talent-sns a:hover {
    background: #005177;
}

.talent-more {
    text-align: center;
    margin-top: 20px;
}

.talent-more .button {
    padding: 10px 20px;
    background: #f15a24;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.talent-more .button:hover {
    background: #d0491d;
}


/* もっと見るボタン */
.more-button {
  text-align: center;
  margin: 30px 0;
}

.more-button a {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}

.more-button a:hover {
  background: #005177;
}
/* タレント名の表示をTOPと揃える */
.talent-item h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 12px 0 8px;
    color: #222;
    line-height: 1.4;
}

/* SNSボタンの間隔をTOPに寄せる */
.talent-sns {
    margin-bottom: 12px;
}

.talent-sns a {
    margin: 0 4px;
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
}

.talent-sns a:hover {
    background: #005177;
}
  /* その他のスタイル */



#slide_images_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

#slide_images_preview li {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    position: relative;
    width: 100px;
    height: auto;
    background: #fff;
}
.talent-item .talent-thumb {
  width: 100%;
  height: 250px; /* 好みの高さに調整 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.talent-item .talent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}







}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	  .talent-item {
        width: 100%; /* 1列 */
    }
	.talent-item h4 {
        font-size: 14px;
    }
  main.main {
    padding: 0 16px !important;
    margin: 12px 0;
    border-width: 0;
  }
	.has-bottom-margin.is-style-bottom-margin-8em,
	.has-bottom-margin.is-style-bottom-margin-9em {
  margin-bottom: 4em !important;
}
	.has-text-align-center{
		text-align:left !important;
	}
	body{
		font-size:14px !important;
	}
	.btn.cocoon-block-button__width-50{
		width:100%;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
