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

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

/* h2: 大見出し */
h2 {
  border-left: 5px solid #FF669A;
  padding-left: 12px;
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
}

/* h3: 中見出し */
h3 {
  border-bottom: 2px solid #FF99B8;
  padding-bottom: 6px;
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.3rem;
  font-weight: bold;
  color: #444;
}

/* h4: 小見出し */
h4 {
  border-left: 3px solid #FFB6CC;
  padding-left: 10px;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-size: 1.1rem;
  font-weight: bold;
  color: #555;
}

/* strong: マーカー風太字（背景色） */
strong {
  background: linear-gradient(transparent 60%, #ffff88 60%);
  font-weight: bold;
  padding: 0 2px;
}

/* 商品一覧に戻るCSS */

.back-to-list-wrapper {
  text-align: right;
  margin-top: 10px;
}

.back-to-list {
  color: #0073aa;
  font-size: 0.95rem;
  text-decoration: none;
}
.back-to-list:hover {
  text-decoration: underline;
}

.product-spec-table {
  margin-top: 30px;
}
.product-spec-table h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.product-spec-table table {
  width: 100%;
  border-collapse: collapse;
}
.product-spec-table th,
.product-spec-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.product-spec-table th {
  background-color: #f4f4f4;
  width: 30%;
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  padding-bottom: 0; /* 常に0 */
}
.faq-content.open {
  /* paddingを使わない（干渉回避） */
}
.faq-content p {
  margin-bottom: 1rem; /* 自然な余白 */
}

.faq-icon {
  transition: transform 0.3s ease;
}
.rotate-180 {
  transform: rotate(180deg);
}


/* =========================================
  検索フォームのリセットスタイル
  （青背景・×ボタンを非表示に）
========================================= */

/* 入力中の青い背景を消す・見た目を統一 */
input[type="search"] {
  -webkit-appearance: none; /* Safari独自装飾を無効化 */
  appearance: none;
  background-color: transparent; /* フォーカス時も白背景のまま */
  outline: none;
  box-shadow: none;
  border: none;
}

/* Safariのデフォルト「×」ボタンを非表示にする */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* 入力時も白背景を維持（ブラウザ依存対策） */
input[type="search"]:focus {
  background-color: #fff;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/* 1023px以下（タブレット含む） */
@media screen and (max-width: 1023px) {
  h2 {
    font-size: 1.4rem;
    padding-left: 10px;
  }
  h3 {
    font-size: 1.2rem;
  }
  h4 {
    font-size: 1.05rem;
  }

  .product-container {
    flex-direction: column;
    gap: 10px;
  }

  .product-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .affiliate-links .btn {
    display: inline-block;
    width: auto;
    padding: 8px 16px;
    margin-bottom: 5px;
  }

  .related-cards {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .card {
    width: calc(50% - 10px);
    margin-bottom: 20px;
  }
}

/* 834px以下（縦長タブレット・小型デバイス） */
@media screen and (max-width: 834px) {
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  h4 {
    font-size: 1rem;
  }

  .card {
    width: 100%;
  }
}

/* 480px以下（スマホ） */
@media screen and (max-width: 480px) {
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
  h4 {
    font-size: 0.95rem;
  }

  .affiliate-links .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .related-cards {
    flex-direction: column;
  }

  .card {
    width: 100%;
    margin-bottom: 16px;
  }
}
