@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を書く
************************************/

/* =========================================
   ▼ ガス会社一覧・エリアページ用のデザイン
========================================= */

/* 地方・都道府県・市区町村のリンク一覧 */
.area-list-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0 30px;
}
.area-list-wrap a {
  display: block;
  padding: 10px 14px;
  background: #f5f5f5;
  border-radius: 6px;
  text-align: center;
  font-size: 15px;
  transition: 0.2s;
}
.area-list-wrap a:hover {
  background: #e6f0ff;
}

/* ガス会社一覧カード */
.company-card {
  padding: 16px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: 0.2s;
}
.company-card:hover {
  background: #fafafa;
}

/* =========================================
   ▼ シングル投稿（会社詳細ページ）
========================================= */

.company-info-box {
  padding: 20px;
  margin: 25px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fcfcfc;
}
.company-info-box .label {
  display: inline-block;
  width: 90px;
  background: #eee;
  padding: 5px 8px;
  font-size: 13px;
  text-align: center;
  border-radius: 5px;
  margin-right: 10px;
}
.company-info-box p {
  margin-bottom: 10px;
}

/************************************
** ▼ レスポンシブ（スマホ対応）
************************************/

/*1030px以下*/
@media screen and (max-width: 1030px){
  .area-list-wrap {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/*768px以下（タブレット）*/
@media screen and (max-width: 768px){
  .company-card {
    padding: 14px 16px;
  }
}

/*480px以下（スマホ）*/
@media screen and (max-width: 480px){
  .area-list-wrap {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
/* LPガス会社一覧デザイン調整 */
.lp-gas-archive .wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* リストの余白とポチ消す */
.lp-gas-archive .company-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 1社ごとのカード */
.lp-gas-archive .company-card {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  background: #fff;
  max-width: 520px;   /* ← ここで横幅を制限して「びよーん」を防ぐ */
}

/* 会社名 */
.lp-gas-archive .company-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

/* 行ごとのラベル＋値 */
.lp-gas-archive .company-card__row {
  display: flex;
  gap: 8px;
  margin: 4px 0;
  font-size: 14px;
}

.lp-gas-archive .company-card__row .label {
  display: inline-block;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f3f3f3;
  font-size: 12px;
  color: #555;
  text-align: center;
}

.lp-gas-archive .company-card__row .value {
  padding: 4px 0;
}

.lp-gas-archive .company-card__row .value a {
  text-decoration: none;
}
.lp-gas-archive .company-card__row .value a:hover {
  text-decoration: underline;
}

/* ========== 八王子記事・固定ページ テキスト強制表示修正 ========== */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.article-body h2,
.article-body h3,
.article-body h4,
.singular-article h2,
.singular-article h3,
.page-template-default h2,
.page-template-default h3 {
  color: #1a1a2e !important;
  background: none !important;
  border-left: 4px solid #0f3460 !important;
  padding: 8px 12px !important;
  margin: 28px 0 14px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.entry-content h3,
.article-body h3,
.singular-article h3 {
  font-size: 17px !important;
  border-left: 3px solid #e94560 !important;
  border-bottom: none !important;
}

.entry-content p,
.entry-content li,
.entry-content strong,
.article-body p,
.article-body li {
  color: #333 !important;
}

.entry-content ul,
.entry-content ol,
.article-body ul,
.article-body ol {
  padding-left: 24px !important;
  margin: 12px 0 !important;
}

.entry-content li,
.article-body li {
  margin-bottom: 6px !important;
  line-height: 1.8 !important;
}


/* ===== 会社一覧ページ：地域記事リンクボックス ===== */
.la-article-links { margin-bottom: 32px !important; }
.la-article-links__inner {
  background: #f8faff;
  border: 1px solid #dde3f5;
  border-radius: 12px;
  padding: 22px 24px;
}
.la-article-links__head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5eaf5;
}
.la-article-links__title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f3460 !important;
  margin: 0 0 4px !important;
}
.la-article-links__desc {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin: 0 !important;
}
.la-article-links__list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 4px 16px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.la-article-links__item { margin: 0 !important; padding: 0 !important; }
.la-article-links__item a {
  display: block;
  font-size: 13px !important;
  color: #374151 !important;
  text-decoration: none !important;
  padding: 7px 0 7px 12px;
  border-left: 2px solid #c7d2fe;
  transition: color 0.15s, border-color 0.15s;
}
.la-article-links__item a:hover { color: #0f3460 !important; border-left-color: #0f3460; }
@media (max-width: 600px) {
  .la-article-links__list { grid-template-columns: 1fr !important; }
}

/* ===== 記事サイドバー：会社一覧リンク ===== */
.la-side-company-link {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
  gap: 10px;
  transition: border-color 0.2s;
}
.la-side-company-link:hover { border-color: #0f3460; }
.la-side-company-link__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f3460;
}
.la-side-company-link__sub {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.la-side-company-link__arrow { font-size: 18px; color: #c7d2fe; margin-left: auto; }
