@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
*/

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

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

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

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

/* ========================================
   Creator Page
   ======================================== */

/* プロフィール画像 */
.creator-profile-image {
  text-align: center;
  margin: 0 auto 30px;
}

.creator-profile-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}


/* クリエイターページのセクション */
.creator-section {
  margin-top: 40px;
}


/* Cocoonの見出しに合わせたH2 */
.creator-section-title {
  position: relative;
  margin: 0 0 25px;
  padding: 12px 15px;
  border-left: 5px solid #333;
  background: #f7f7f7;
  font-size: 1.4em;
  line-height: 1.4;
}


/* 作品 */
.creator-works-list {
  width: 100%;
}

.creator-work {
  margin-bottom: 35px;
}

.creator-work-title {
  margin: 0 0 15px;
  font-size: 1.15em;
}

.creator-work-images {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.creator-work-image {
  flex: 0 0 auto;
}

.creator-work-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* スマートフォン */
@media screen and (max-width: 768px) {

.creator-work-images {
  width: 100%;
  max-width: 100%;
}

.creator-work-image {
  flex: 0 0 100%;
  width: 100%;
}

  .creator-work-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
  }

}


/* 作品リンク */
.creator-work-link {
  margin-top: 10px;
}

.creator-work-link a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
}


/* プラン */
.creator-plans-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.creator-plan {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

.creator-plan-title {
  margin: 0 0 12px;
  font-size: 1.1em;
}

.creator-plan-title a {
  text-decoration: none;
}

.creator-plan-description {
  line-height: 1.8;
}


/* 編集部から一言 */
.creator-editor-comment {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  line-height: 1.8;
}


/* ランキング */
.creator-ranking-list {
  line-height: 1.8;
}


/* スマートフォン */
@media screen and (max-width: 768px) {

  .creator-section {
    margin-top: 30px;
  }

  .creator-section-title {
    font-size: 1.25em;
    padding: 10px 12px;
  }

  .creator-plan {
    padding: 15px;
  }

  .creator-editor-comment {
    padding: 15px;
  }

}
