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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ===== 暮らしの防犯研究所：デザインB（クリーム×ネイビー）2026/10/16 ===== */
/* 色：ネイビー #1f3a5f／クリーム #faf8f2・#fdfbf6／アクセントのゴールド #c8a96a／薄いネイビー #eef2f7 */

/* ヘッダー */
.header-container { border-bottom: 1px solid #ece6d6; }
.site-name-text { font-weight: 700; letter-spacing: .08em; color: #1f3a5f; }
.navi { border-bottom: 3px solid #c8a96a; }
.navi-in a { font-weight: 600; letter-spacing: .05em; }

/* ヘッダー：左にタイトル、右にリンクと検証バッジ（2026/10/16） */
.header-in { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px; padding: 18px 0; }
.header-in::before, .header-in::after { display: none; }
.header-in .tagline { grid-column: 1; grid-row: 1; text-align: left; margin: 0; padding: 0; border: none; background: none; color: #5b6b80; font-size: 13px; letter-spacing: .05em; }
.header-in .logo { grid-column: 1; grid-row: 2; text-align: left; padding: 4px 0 0; }
.site-name-text { font-size: 30px; }
.header-sub { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.header-sub-links { list-style: none; margin: 0 0 10px; padding: 0; display: flex; justify-content: flex-end; }
.header-sub-links li + li { border-left: 1px solid #9aa6b5; }
.header-sub-links a { color: #1f3a5f; font-size: 13px; padding: 0 14px; text-decoration: none; }
.header-sub-links a:hover { text-decoration: underline; }
.header-sub-badge { background: #fff; border: 1px solid #e6dcc4; border-radius: 4px; padding: 8px 28px; font-size: 13px; font-weight: 600; color: #1f3a5f; text-align: center; letter-spacing: .05em; }
@media screen and (max-width: 834px) {
  .header-in { grid-template-columns: 1fr; padding: 12px 16px; }
  .header-in .tagline, .header-in .logo { text-align: center; }
  .header-sub { grid-column: 1; grid-row: 3; text-align: center; margin-top: 10px; }
  .header-sub-links { justify-content: center; margin-bottom: 6px; }
  .header-sub-links a { padding: 0 8px; font-size: 12px; }
  .header-sub-badge { padding: 6px 12px; font-size: 12px; }
  .site-name-text { font-size: 24px; }
}

/* 本文エリアとサイドバー */
.main, .sidebar { border-radius: 8px; }
.sidebar h3, .sidebar .widget-sidebar-title, .sidebar .wp-block-heading {
  background: #eef2f7; color: #1f3a5f; border-left: 5px solid #1f3a5f; border-radius: 4px; padding: 10px 14px; font-size: 16px;
}
.search-submit { background: #1f3a5f; }

/* 記事の見出し */
.article h2 { background: #1f3a5f; color: #fff; border-radius: 6px; padding: 14px 18px; border-left: 6px solid #c8a96a; }
.article h3 { border-left: 6px solid #1f3a5f; border-bottom: 1px solid #d9dee6; padding: 8px 14px; background: none; }
.article h4 { border-bottom: 2px dotted #c8a96a; padding-bottom: 6px; }


/* 固定ページの日付を非表示・検索ボタンの色（2026/10/16） */
.page .date-tags { display: none; }
.wp-block-search__button, .search-edit + .search-submit, .search-box .search-submit { background: #1f3a5f; color: #fff; border-color: #1f3a5f; }


/* お問い合わせフォーム：同意チェック前はグレー、チェック後にネイビー（2026/10/16） */
.article .wpcf7 input.wpcf7-submit { display: block; margin: 20px auto 0; min-width: 240px; padding: 14px 32px; border: none; border-radius: 999px; background: #1f3a5f; color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s, opacity .2s; }
.article .wpcf7 input.wpcf7-submit:hover { background: #2a4d7a; }
.article .wpcf7 input.wpcf7-submit:disabled, .article .wpcf7 input.wpcf7-submit:disabled:hover { background: #c9ced6; color: #fff; cursor: not-allowed; opacity: .9; }
.wpcf7-acceptance { display: block; text-align: center; margin-top: 16px; }


/* 記事の日付：更新アイコン＋「2026年4月27日」の形で左寄せ。更新日があるときは更新日だけ表示（2026/10/18） */
.article .date-tags { text-align: left; margin: 10px 0 18px; }
.article .date-tags .post-date, .article .date-tags .post-update { font-size: 15px; color: #666; }
.date-tags .post-date .fa, .date-tags .post-update .fa { margin-right: 6px; }
.date-tags .post-date .fa:before, .date-tags .post-update .fa:before { content: "\f021"; }
.date-tags:has(.post-update) .post-date { display: none; }


/* 記事一覧のカテゴリラベル：画像に重ねず、画像の上に表示。色は元のまま（2026/10/18） */
.entry-card-thumb { display: flex; flex-direction: column; align-items: flex-start; }
.entry-card-thumb .cat-label { position: static; order: -1; margin-bottom: 4px; }


/* サイドバーの新着記事：大きい画像のカード（2026/10/18） */
.sidebar .widget-entry-cards.large-thumb .widget-entry-card-link { background: #fdfbf6; border: 1px solid #ece6d6; border-radius: 6px; padding: 10px; margin-bottom: 14px; }
.sidebar .widget-entry-cards.large-thumb .widget-entry-card-link:hover { background: #f5f1e6; }
.sidebar .widget-entry-cards.large-thumb .widget-entry-card-title { font-size: 15px; line-height: 1.6; color: #1f3a5f; margin-top: 8px; }


/* サイドバーの検索窓：丸いベージュの枠に虫めがねアイコン（2026/10/18） */
.sidebar .bouhan-search .wp-block-search__inside-wrapper { background: #efe7d3; border: none; border-radius: 999px; padding: 4px 8px 4px 24px; }
.sidebar .bouhan-search .wp-block-search__input { background: transparent; border: none; box-shadow: none; font-size: 16px; color: #333; padding: 12px 0; }
.sidebar .bouhan-search .wp-block-search__input::placeholder { color: #a8987a; }
.sidebar .bouhan-search .wp-block-search__input:focus { outline: none; }
.sidebar .bouhan-search .wp-block-search__button { background: transparent !important; border: none; color: #1f3a5f; padding: 0 12px; margin: 0; }
.sidebar .bouhan-search .wp-block-search__button svg { width: 26px; height: 26px; fill: #1f3a5f; }


/* トップページのバナー（ヘッダーとメニューの間）（2026/10/18） */
.top-banner { background: #faf8f2; line-height: 0; }
.top-banner img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; object-position: center; }
@media screen and (max-width: 834px) { .top-banner img { max-height: 180px; } }


/* スマホの見た目の調整（2026/10/18）：一覧のカテゴリラベルを省略しない、PR表記に余白、フッターのロゴの大きさ */
.entry-card-thumb .cat-label { max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
.footer .logo-image, .footer .site-logo-image { max-width: 280px; height: auto; }
@media screen and (max-width: 834px) {
  .entry-card-thumb .cat-label { font-size: 10px; padding: 2px 5px; }
  .pr-label-s { margin: 8px 12px 0; }
}

/* リンク・ボタン */
.btn, .wp-block-button__link { border-radius: 999px; }


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

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

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