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

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

/* 出勤スケジュール - 高画質カード型表示css */
.staff_block { display:flex; flex-wrap:wrap; gap:20px; padding:20px 0; }
.staff_block li { flex:0 0 calc(33.333% - 14px); background:#fff; border-radius:8px; overflow:hidden; }
.staff_block li .thumb img { width:100%; height:auto; object-fit:contain; }




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

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

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

/* セラピスト一覧 */
.therapist-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px 40px;
}

.therapist-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.therapist-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.therapist-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.therapist-thumb img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom:10px;
}

.therapist-info {
  padding: 12px;
  text-align: center;
}

.therapist-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.therapist-profile {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.7rem;
}

.x-icon-image {
    width: 30px;
    height: 30px;
	margin-top: 10px;
    /* 必要に応じて、垂直方向の位置を調整するCSS（例：vertical-align: middle;）を追加 */
}

/* ▼ スマホだけ2列レイアウト調整（文字サイズはそのまま） */
@media screen and (max-width: 600px) {
  .therapist-list ul.staff_block {
    display: flex;
    flex-wrap: wrap;              /* ← 折り返しを有効に */
    justify-content: center;      /* ← 2人以下のとき中央寄せ */
    gap: 8px;                     /* ← カードの間隔 */
    margin: 0 auto;
    padding: 0;
    font-size: 0.6rem;
  }

  .therapist-list ul.staff_block li {
    flex: 0 1 calc(48% - 5px);    /* ← 2列基準 */
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 3px;
    margin: 0;                    /* ← margin: 10; を修正 */
    min-height: 100px;            /* 高さを揃える基準（必要に応じて調整） */
  }

  /* 1人だけのときは少し広めにして中央配置 */
  .therapist-list ul.staff_block li:only-child {
    flex: 0 1 80%;
  }

  .therapist-list ul.staff_block .thumb {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
  }

  .therapist-list ul.staff_block .thumb img {
    width: 100%;
    margin-bottom: 10px;
  }

  /* BWHのサイズ小さめ */
  .therapist-list .cf-sizes {
    font-size: 0.50rem !important;
    letter-spacing: 0.02em;
  }
}
ruby rt {
  font-size: 0.55em;
  color: #888;
  font-weight: normal;
}


/* ▼ PC版レイアウト調整 */
@media screen and (min-width: 1200px) {
  .therapist-list ul.staff_block {
  display: flex;
  flex-wrap: wrap; /* ← 折り返しを許可する */
  justify-content: center;
  gap: 20px; /* カードの間隔 */
  max-width: 1200px; /* 全体幅を制限（好みで調整） */
  margin: 0 auto; /* 中央寄せ */
  }

  .therapist-list ul.staff_block li {
    flex: 0 0 200px; /* ✅ 幅200px固定 */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .therapist-list ul.staff_block li:hover {
    transform: translateY(-5px);
  }

  .therapist-list ul.staff_block .thumb {
    width: 100%;
    overflow: hidden;
  }

  .therapist-list ul.staff_block .thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
  }

  .therapist-list .cf-sizes {
    font-size: 0.7rem !important;
    letter-spacing: 0.02em;
  }
  .therapist-list .cf-height {
    font-size: 0.7rem !important;
    letter-spacing: 0.02em;
  }
}


/* ▼ スマホだけ2列レイアウト調整（文字サイズはそのまま） */
@media screen and (max-width: 600px) {
  .therapist-list {
    display: flex;
    flex-wrap: wrap;              /* 折り返し */
    justify-content: center;      /* 中央寄せ */
    gap: 8px;
    margin: 0 auto;
    padding: 0;
    font-size: 0.6rem;
  }

  .therapist-list .therapist-card {
    flex: 0 1 calc(48% - 5px);    /* 2列配置 */
    background: #fff;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 3px;
    margin: 0;
    min-height: 100px;
  }

  /* 1人だけのとき中央で広め */
  .therapist-list .therapist-card:only-child {
    flex: 0 1 80%;
  }

  .therapist-list .therapist-thumb {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
  }

  .therapist-list .therapist-thumb img {
    width: 100%;
    margin-bottom: 10px;
  }

  /* BWHのサイズ小さめ */
  .therapist-list .cf-sizes {
    font-size: 0.50rem !important;
    letter-spacing: 0.02em;
  }
  .therapist-list .cf-height {
    font-size: 0.5rem !important;
    letter-spacing: 0.02em;
  }
}

.x-icon-image {
    width: 20px;
    height: 20px;
	margin-top: 10px;
    /* 必要に応じて、垂直方向の位置を調整するCSS（例：vertical-align: middle;）を追加 */
}
