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

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

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

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

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

/************************************
** グローバルメニュー装飾
************************************/
/* グローバルメニューのフォントを装飾 */
ul li a {
  font-weight: 600;
}

/* グローバルメニューの選択時背景色 */
#navi a:hover {
  background-color: #000000;
  color: #ffffff !important;
}

/* 緑色の下線エフェクト */
#navi a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #339966; /* 緑（LINEカラーに近い） */
  transition: width 0.6s ease;
}

/* ホバー時に線が伸びる */
#navi a:hover::after {
  width: 80%;
}

/* header下部の線 */

.header-container {
  border-bottom: 10px solid #ccc;
}

/************************************
** プロフィールカスタマイズ
************************************/

/* プロフィールウィジェットの名前リンクを消す */

.author-name a {
  pointer-events: none;
  text-decoration: none;
  color: #333; /* 任意の色に調整 */
}

/* プロフィールウィジェットの文字サイズ変更 */

.author-content p {
  color: #333;
  font-size: 12.8px;
  text-align: center;
}

/* サイドバーに置いた「プロフィール」系ウィジェットのタイトル「プロイール」を完全非表示 */
.sidebar [id^="author_box"] > h3.widget-sidebar-title.widget-title,
.sidebar [id^="author_box"] > h3.widget-sidebar-title.widget-title::before,
.sidebar [id^="author_box"] > h3.widget-sidebar-title.widget-title::after {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* header下部の線 */

.header-container {
   border-bottom: 10px solid #333333;
}

/*検索フォーム*/
.search-edit {
  height: 50px;
  padding: 0 10px;
  border-radius: 25px !important;
  outline: 0;
  background: #fff;
}
[type="submit"].search-submit {
  height: 50px;
  width: 50px;
  top: 0;
  right: 0;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 0 25px 25px 0;
}
[type="submit"].search-submit:hover {
  color: #fff;
  background: #339966;
}

/* ==============================
   見出しカスタマイズ
============================== */

/* 全ページでh1スタイルを統一（自動出力も手動ブロックも含む） */
h1.archive-title,
h1.entry-title,
h1.page-title,
h1.wp-block-heading {
  font-size: 28.8px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  color: #333333;
  font-weight: bold;
  margin: 10px 0 10px;
  padding: 0;
  line-height: 1;
}

/*────────────────────────────
  H2／H3 シンプルカスタム（左寄せ調整）
────────────────────────────*/

/* 共通：縦ライン用の基本設定 */
.article h2,
.article h3 {
  position: relative; /* 疑似要素を置く土台 */
  padding-left: 1em; /* ラインと文字のあいだ */
  margin: 1rem 0; /* 上下だけ余白、左右は 0 で左寄せ */
  line-height: 1.4; /* 行送りを固定／高さが可変しない */
}

/* --- H2：大見出し --- */
.article h2 {
  font-size: 1.4rem;
  padding: 0.5em 1em 0.5em 0.9em; /* 上右下左 */
  border-left: 4px solid #333333; /* 左端ライン */
  background: #f5f5f5; /* 薄いグレー背景 */
}
/* --- H3：中見出し（左縦線＋下線） --- */
.article h3 {
  font-size: 1.2rem; /* 約 17px */
  margin: 1rem 0; /* 上下だけ余白 */
  line-height: 1.4; /* 行間固定 */
  padding: 0 0 0.25em 0.75em; /* 左に余白を追加（線と文字の間） */
  border: none; /* いったん全てリセット */
  border-bottom: 2px solid #339966; /* 下線 */
}

/************************************
** トップページカスタマイズ
************************************/

.home #main .large-thumb {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0.8em 0;
}
.home #main .large-thumb a {
  width: 50%;
  padding: 10px;
}
.home #main .large-thumb a:hover {
  background: unset;
}
.home #main .widget-entry-cards .e-card {
  font-size: 18px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  height: 100%;
}
.home #main .widget-entry-cards .e-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.08);
}
.home #main .widget-entry-cards figure {
  float: none;
  width: 100%;
}
.home #main .widget-entry-cards figure img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 210px;
}
.home #main .widget-entry-cards .card-content {
  margin: 0 0 0.5em;
  padding: 10px 15px;
  background: #fff;
}
.home #main .large-thumb .new-entry-card-title,
.home #main .large-thumb .popular-entry-card-title {
  font-size: 0.9em;
  line-height: 1.5;
  font-weight: 600;
  color: #555;
  margin-top: 3px;
}
/*(スマホ)480px以下*/
@media screen and (max-width: 480px) {
  .home #main .widget-entry-cards .e-card {
    margin: 0 5px;
  }
  .home #main .large-thumb a {
    width: 100%;
    padding: 0;
    margin: 0 0 15px;
  }
  .home .mobile-2 {
    justify-content: space-between;
  }
  .home .mobile-2 a {
    width: 48% !important;
  }
  .home .mobile-2 figure img {
    object-fit: unset !important;
    height: auto !important;
  }
  .home #main .large-thumb .new-entry-card-title {
    line-height: 1.3;
  }
}
/************************************
** ボタン
************************************/
.p-button {
  max-width: 300px;
  margin: 0 auto;
}
.p-button a {
  display: block;
  margin: 25px 0;
  padding: 0.8em 1em;
  border-radius: 2em;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: #000000;
  text-align: center;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  opacity: 1;
}
.p-button a:hover {
  box-shadow: none;
  transform: translateY(3px);
  opacity: 1;
}

/************************************
** Contact Form 7
************************************/

/* 必須マーク */
.must {
  color: #fff;
  margin-right: 10px;
  padding: 6px 10px;
  background: #f58694; /* 背景色 */
  border-radius: 5px;
}

/* 任意マーク */
.free {
  color: #fff;
  margin-right: 10px;
  padding: 6px 10px;
  background: #7fbfff; /* 背景色 */
  border-radius: 5px;
}

/* 項目名を太字にする */
form p {
  font-weight: 600;
}

/* 入力項目を見やすくする */
input.wpcf7-form-control.wpcf7-text,
textarea.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 8px 15px;
  margin-right: 10px;
  margin-top: 10px;
  border: 1px solid #d0d5d8; /* 枠線の色 */
  border-radius: 3px;
}
textarea.wpcf7-form-control.wpcf7-textarea {
  height: 200px;
}

/* 必須項目の入力欄を見やすくする */
input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
  background: #eff1f5; /* 背景色 */
}

/* 送信ボタンを見やすくする */
input.wpcf7-submit {
  width: 60%; /* 好みで60〜80%でもOK */
  margin: 0 auto;
  height: 60px;
  border-color: #none; /* 枠線の色 */
  background: #000000; /* ボタンの色 */
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  border-radius: 2em;
}

/* エラーメッセージを見やすくする */
span.wpcf7-not-valid-tip,
.wpcf7-response-output.wpcf7-validation-errors {
  color: red;
  font-weight: 600;
}
.wpcf7 input[type="submit"] {
  display: block;
  margin: 0 auto;
}

/************************************
** フッターメニュー：縦線カット＋ホバー下線のみ可動
************************************/
/* 1) 仕切り線（border／疑似要素）を完全にオフ */
#footer ul[id^="menu-"] li {
  border-left: none !important;
  border-right: none !important;
}
#footer ul[id^="menu-"] li::before,
#footer ul[id^="menu-"] li::after {
  content: none !important;
}

/* 2) aタグの見た目を白文字＋背景透過に固定 */
#footer ul[id^="menu-"] li a {
  position: relative;
  color: #fff;
  background: transparent !important;
  font-weight: 600;
  text-decoration: none;
}

/* 3) 緑（#339966）の下線エフェクト ─ ホバーした項目だけ伸びる */
#footer ul[id^="menu-"] li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* 下線位置を微調整 */
  width: 0%;
  height: 3px;
  background: #339966; /* ヘッダーと同じ緑 */
  transition: width 0.6s ease;
}
#footer ul[id^="menu-"] li a:hover::after,
#footer ul[id^="menu-"] li.current-menu-item > a::after {
  width: 80%;
}

/************************************
** フッターメニュー：スマホでは下線も縦線もオフ
************************************/
/* ▼ PC・スマホ共通 ─ 余計な縦線（border・疑似要素）を完全に消す */
#footer ul[id^="menu-"] li {
  border: none !important;
}
#footer ul[id^="menu-"] li::before,
#footer ul[id^="menu-"] li::after {
  content: none !important;
}

/* ▼ スマホ幅では下線エフェクトそのものを無効化 */
@media (max-width: 768px) {
  #footer ul[id^="menu-"] li a::after {
    display: none !important;
  }
}

/* 本文段落の読みやすさ改善（行間と段落余白） */
.article p {
  line-height: 1.8; /* 行間を広げて読みやすく */
  margin-bottom: 1.2em; /* 段落下に余白を追加 */
}

/* 見出し直下の詰まりを防ぐ：h2/h3 に段落との余白強化 */
.article h2,
.article h3 {
  margin-top: 2em; /* 見出し前の余白 */
  margin-bottom: 0.75em; /* 見出し後の余白 */
}
