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

/************************************
** 子テーマ用のスタイルを書く
************************************/
.custom-table th {
    width: 150px; /* 左側のセルの幅を指定 */
    background-color: #eff9f9;
    font-weight: bold;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.custom-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: left;
}

.custom-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.affiliate-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.affiliate-left {
    flex: 1; /* 左半分のエリア */
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #ffffff;
}

.affiliate-right {
    flex: 1; /* 右半分全体 */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.affiliate-top,
.affiliate-bottom {
    flex: 1; /* 上下のエリア */
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #eff9f9;
}
#category-menu ul {
    display: none;
    padding-left: 20px;
}
#category-menu .open > ul {
    display: block;
}

/* WEBサービス部分のデザイン */
.two-lines {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: space-between; /* 左右にきれいに分散配置 */
  gap: 12px 0; /* 上下の行間に適度な余白を設定 */
}

.two-lines li {
  flex: 0 0 49%; /* 幅を49%に固定し、伸縮を無効化 */
  box-sizing: border-box; /* パディングと枠線を幅に含める */
  padding: 10px 12px; /* 枠内の余白 */
  border: 1px solid #e0e0e0; /* 薄いグレーの枠線 */
  border-radius: 4px; /* 角を少し丸める */
  background-color: #ffffff; /* 背景色（白） */
  text-align: left; /* テキストを左寄せ */
  transition: background-color 0.2s ease; /* ホバー時のアニメーション */
}

/* マウスホバー時に少し背景色を変えてリンク感（クリックしやすさ）を演出 */
.two-lines li:hover {
  background-color: #eff9f9;
  border-color: #cccccc;
}
@media (max-width: 599px) {
  .two-lines li {
    flex: 0 0 100%; /* スマホでは1列1件にする */
  }
}

/* カスタムHTML用の強調スタイル */
.custom-highlight-center {
    text-align: center;
    margin: 2em auto;
    padding: 1.5em;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}

.custom-highlight-center .highlight-text {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #c0392b; /* 強調色 */
    line-height: 1.5;
}

/* 2列でバランス良く配置するナンバリング付きリスト */
.num-list-2col ol {
  margin: 0;
  padding-left: 1.5em;      /* 番号のインデント */
  list-style-position: outside;
  column-count: 2;          /* 2列に分割 */
  column-gap: 2rem;         /* 列間の余白 */
}

/* 各項目が列の途中で分割されないようにする */
.num-list-2col li {
  break-inside: avoid;      /* 標準 */
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 0.4em;
}

/* ==========================================================================
   楽天商品検索アプリ（ACF連動）専用スタイル
   ========================================================================== */
.rakuten-app-container { 
    margin: 40px 0; 
    padding-top: 30px; 
    border-top: 2px dashed #e0e0e0; 
}

.rk-app-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #bf0000;
}

.rk-item-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
}

.rk-item-card { 
    border: 1px solid #e0e0e0; 
    padding: 15px; 
    border-radius: 8px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.rk-item-card img { 
    max-width: 100%; 
    height: 160px; 
    object-fit: contain; 
    margin: 0 auto 10px; 
}

.rk-item-card h3 { 
    font-size: 13px; 
    line-height: 1.5; 
    height: 4.5em; 
    overflow: hidden; 
    margin: 10px 0; 
    text-align: left; 
    color: #333; 
}

.rk-price { 
    color: #bf0000; 
    font-weight: bold; 
    font-size: 16px; 
    margin: auto 0 15px; 
}

.rk-buy-btn { 
    background: #bf0000; 
    color: #fff !important; 
    text-decoration: none !important; 
    padding: 8px; 
    border-radius: 4px; 
    font-weight: bold; 
    display: block; 
    font-size: 13px; 
    transition: background 0.2s;
}

.rk-buy-btn:hover { 
    background: #990000; 
}

/* ページネーション */
.rk-pagination { 
    margin-top: 40px; 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    flex-wrap: wrap; 
}

.rk-page-btn { 
    padding: 6px 14px; 
    border: 1px solid #ccc; 
    background: #fff; 
    cursor: pointer; 
    border-radius: 4px; 
}

.rk-page-btn.active { 
    background: #bf0000; 
    color: #fff; 
    border-color: #bf0000; 
    pointer-events: none; 
}

.rk-page-btn:hover:not(.active) { 
    background: #f5f5f5; 
}

/* ステータス・エラーメッセージ */
.rk-status-msg { 
    text-align: center; 
    padding: 40px 20px; 
    font-size: 15px; 
    border: 1px dashed #ccc; 
    background: #fafafa; 
    border-radius: 6px; 
}

.rk-error-msg { 
    color: #bf0000; 
    background: #fff5f5; 
    border-color: #ffcccc; 
}

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

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

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