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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/******************
表のデザインを変更
*******************/
/*--- 表全体(table) ---*/
.entry-content table {
    border-bottom: 1px solid #e6e6e6; /* 表の一番下の線 */
    border-top: none;
    border-left: none;
    border-right: none;
}
/*--- ヘッダーセル(th) ---*/
.entry-content th {
    border-radius: 10px 10px 0 0; /* 丸み（※ヘッダーセルが縦の場合は削除）*/
    padding: 0.8em .6em; /* 余白（上下　左右） */
    background-color: #cce7eb; /* 背景色 */
    color: #514a47; /* 文字の色 */
    letter-spacing: 0.1em; /* 文字の間隔 */
    text-align: center; /* 中央揃え */
    border: none; /* 線削除 */
}
.wp-block-table thead {
    border-bottom: none;
}
/*--- 行（横方向）(tr) ---*/
.entry-content tr {
    text-align:center; /* 中央揃え */
}
.entry-content tr:not(:last-child) { /* 最後の行以外に適用 */
    border-bottom: 1px solid #e6e6e6; /* 下線 */
}
/*--- ヘッダーセル以外のセル(td) ---*/
.entry-content td {
    padding: 0.8em 0.8em; /* 余白（上下　左右） */
    border:none; /* 線を削除 */
}
.entry-content td:last-child { /* 最後のセルのみ適用 */
    border-right: 1px solid #e6e6e6; /* 右線 */
}
.entry-content td:not(last-child) { /* 最後のセル以外に適用 */
    border-left: 1px solid #e6e6e6; /* 左線 */
}

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

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

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


/* Q&A全体を横並びにする枠 */
.faq-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

/* ラベル共通（QもAも） */
.faq-item-label {
  font-size: 16px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  min-width: 28px;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
}

/* QとAで色分け */
.faq-question-label {
  background-color: #ba7d8a !important;
}

.faq-answer-label {
  background-color: #9bb7d4 !important;
}

/* 質問・回答の本文側 */
.faq-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
}

@media screen and (max-width: 600px) {
  .faq-item {
    flex-direction: row; /* ← スマホでも横並び維持 */
    align-items: flex-start;
    flex-wrap: wrap;     /* 折り返し可能に */
    gap: 8px;
  }

  .faq-item-label {
    font-size: 15px !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    line-height: 1.4;
    flex: 0 0 auto;         /* ← ラベル幅を固定 */
    max-width: 40px;        /* Q/Aの幅を制限 */
    text-align: center;
  }

  .faq-text {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.7;
  }
}