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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.grecaptcha-badge { visibility: hidden; }


/************************************
** 背景色設定
************************************/
.widget_recent_entries ul li a:hover,
.widget_categories ul li a:hover,
.widget_archive ul li a:hover,
.widget_pages ul li a:hover,
.widget_meta ul li a:hover,
.widget_rss ul li a:hover,
.widget_nav_menu ul li a:hover,
.navi-in a:hover,
.navi-footer-in a:hover,
.a-wrap:hover,
.comment-reply-link:hover,
.recent-comments .a-wrap:hover .recent-comment-content,
.pagination a:hover,
.pagination-next-link:hover, .comment-btn:hover,
.pager-links a:hover span,
.mobile-menu-buttons .menu-button:hover,
.menu-drawer a:hover,
.bp-login-widget-register-link a:hover{
background-color: #f0fbf5; /*背景色*/
color: #000000; /*フォントカラー*/
transition: all 0.5s ease;
}


/* サムネイル（ギャラリー） */
.wp-block-gallery .wp-block-image img {
  border: 1px solid #eee;     /* 画像枠 */
}

/* タイトル */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  background: none;           /* タイトル背景の影を消す */
  color: #333;                /* 文字色 */
  position: relative;          /* テキストを画像と重ねない */
}


/************************************
** 見出しカスタマイズ（美幌運送様仕様）
************************************/
/* H1（記事タイトル） */
.page .entry-title,
.single .entry-title {
    text-align: center;
}
.article h1 {
    padding: 22px 20px;
    background: #f0fbf5;  /* ナビ等と合わせた薄緑の背景 */
    border-top: 2px solid #009650;    /* 上の緑線 */
    border-bottom: 2px solid #009650; /* 下の緑線 */
    color: #333333;
    border-radius: 4px;   /* 角をほんの少しだけ丸くして優しく */
}

/* H2：左縦線＋薄緑背景 */
.article h2 {
    background: #f0fbf5; /* 薄い緑色の背景 */
    padding: 15px 20px;
    border-left: 8px solid #009650; /* 美幌運送様メインカラーの太い縦線 */
    color: #333333;
    font-size: 22px;
    line-height: 1.4;
}
 
/* H3：左縦線のみ */
.article h3 {
    background: none;
    padding: 10px 0 10px 15px;
    border-top: none;
    border-bottom: none;
    border-left: 5px solid #009650; /* メインカラーの縦線 */
    border-right: none;
    color: #333333;
    font-size: 20px;
}
 
/* H4：パステルグリーンに馴染む斜めカット背景（スマホ対策版） */
.article h4 {
    border: none;
    font-size: 18px;
    padding: 10px 15px;
    color: #ffffff;                    /* 文字はくっきり白抜き */
    /* 【パソコン用】70%の位置から斜めカット */
    background: linear-gradient(135deg, #1aa362 0%, #1aa362 70%, transparent 70%); 
    background-size: 100% 100%;
}
.article h4::before { display: none; }

/* 📱スマホ表示（画面幅が狭いとき）の自動調整 */
@media screen and (max-width: 767px) {
    .article h4 {
        /* スマホでは文字が2行になって右側にはみ出しやすいため、
           斜めカットの開始位置を「88%」まで大きく右に寄せて文字被りを防ぎます */
        background: linear-gradient(135deg, #1aa362 0%, #1aa362 88%, transparent 88%);
    }
}

/* H5：同系色のバイカラー・アンダーライン */
.article h5 {
    padding: 5px 0;
    border-bottom: 2px solid #cbdad0;  /* ベースはナビ等に合わせた薄緑グレー */
    color: #333333;
    font-size: 16px;
    position: relative;
}
/* 左側のアクセント線を「美幌グリーン」にして統一 */
.article h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 4px;
    background: #009650;               /* 美幌グリーン */
}

/* H6：優しいグリーンの左細線 */
.article h6 { padding: 3px 0 3px 10px; border-left: 3px solid #1aa362; color: #333333; font-size: 15px; }


/*サイドバー見出し：美幌運送様仕様（信頼と清潔感）*/
.sidebar h3 {
    margin: 1.2em -12px 1em;
    padding: 12px 15px 12px 35px; /* 上下の余白を調整 */
    border-radius: 0px;            /* 角をシャープな四角形にして信頼感をアップ */
    font-size: 18px;
    position: relative;
    background: #f0fbf5;          /* 清潔感のある薄緑の背景に変えました */
    color: #333333;               /* 文字をクッキリ見やすく */
    font-weight: 700;
    letter-spacing: 0;
    border-bottom: 2px solid #009650; /* 下部にもグリーンの線を引いて引き締めました */
}

.sidebar h3::before {
    position: absolute;
    top: 20%;
    left: 15px;
    width: 6px;
    height: 60%;
    content: '';
    border-radius: 0px;            /* 縦線も角を丸めずシャープに */
    background: #009650;          /* ロゴカラーの緑の縦線 */
}

/* サイドバーウィジェット下線追加：点線から引き締まった実線へ */
.widget-entry-card-link,
.popular-entry-card-link,
.widget-sidebar li {
    margin-top: -4px;
    padding-bottom: 8px;          /* 少しだけ余白を作って見やすく */
    border-bottom: solid 1px #cbdad0; /* 濃すぎない上品な薄緑の線で区切ります */
}

/*通知*/
.notice-area {
text-align: center;
padding: 0.2em;
font-size:1.0em;
font-weight: bold;
}


/* — コンタクトフォーム7 送信ボタンのカスタマイズ — */
input.wpcf7-submit {
padding:1em !important;/* ボタン内の余白 */
margin:2em 0em !important;/* ボタンの上下の余白 */
background-color: #eaffea !important;/* 背景の色 */
border-radius: 5px !important;/* 角を丸く*/
color: #000000 !important;/* 文字の色*/
font-size: 18px !important;/* 文字の大きさ */
font-weight: bold !important;/* 文字の太さ*/
width: 50%;/* ボタンの横幅*/
transition:0.5s;/* 背景色が変わるまでの時間*/
box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.10);/* 薄っすらとボタンにドロップシャドウをかける*/
}

input.wpcf7-submit:hover {
background-color:#93ff93 !important;/* マウスを乗せたときの背景色 */
color: #fff !important;/* マウスを乗せたときの文字の色 */
}

.btn-submit {
    width: 100%;
    text-align: center;
}

/*グローバルメニュー高さ*/
#navi .navi-in > ul li{
    height: 40px;
    line-height: 40px;
}

/*カレンダー設定*/
/*イベントが非表示*/
.xo-event-calendar .month-event,
.xo-event-calendar .month-event-space {
    display: none;
}
/*日付を中央揃えにする*/
.xo-event-calendar table.xo-month .month-dayname td div,
.xo-event-calendar table.xo-month .month-week {
    line-height: 2.5em;
    height: 2.5em;
}
.xo-event-calendar table.xo-month .month-dayname td div {
    padding: 0;
    text-align: center;
    font-size: 1em;
}
/*  前月や次月の日付を消したい */
.other-month {
    display:none;
}


/*グローバルナビメニュー マウスオーバーでアンダーライン*/
#navi .navi-in a:after{
position: absolute;/*線の位置を絶対配置に*/
content: "";/*文字はなし*/
left: 0px;/*線の位置*/
bottom: 2px;/*線の位置*/
height: 5px;/*線の高さ*/
width: 100%;/*幅いっぱいに線を引く*/
background: #009650;/*線の色*/
transform: scale(0,1);/*マウスオーバーの前は線を消す*/
transition: 0.3s;/*線が0→100%になるまでの秒数*/
}

#navi .navi-in a:hover:after{
transform: scale(1);/*マウスオーバー後、線を100%出す*/
}

/*グローバルメニュー色*/
#navi .navi-in a:hover{
    color: #009650!important;
    background: #f0fbf5;
    transition: all 0.5s ease;
}

/*blogカード*/
.blogcard-snippet{
display:none;
}

.internal-blogcard-footer{
    display: none; /* 内部ブログカードのアイコンとURLを非表示 */
}

/*ブログカードのラベルの色*/
.blogcard-type .blogcard-label{
  background-color: #f0fbf5; /* 薄緑色に変更 */
}

/*ブログカードの枠線*/
.a-wrap .blogcard {
  border-color: #ddd;
}

/*ブログカードにマウスオーバーした時に影を付ける*/
.a-wrap:hover {
background-color: #eaffff;
transform: translateY(-2px);
box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}

/* 画像をボタンにする共通スタイル */
.wp-block-image.image-button {
  display: block; /* リンク全体をブロック化 */
  position: relative; /* 子要素の位置基準 */
  border-radius: 0%; /* 円形にする（お好みで） */
  overflow: hidden; /* 枠からはみ出した部分を隠す */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* なめらかなアニメーション */
  cursor: pointer; /* マウスをポインターにする */
}

/* ホバー時の拡大効果 */
.wp-block-image.image-button:hover img {
  transform: scale(1.1); /* 画像を1.1倍に拡大 */
}

/* ホバー時の光る枠線（グリーン系で強めに光らせる） */
.wp-block-image.image-button:hover {
  box-shadow: 0 0 10px 3px rgba(0, 150, 100, 0.9);
}

/************************************
** ボタンブロックのカスタマイズ（美幌グリーン仕様）
************************************/
/* ボタン全体の背景色と文字色 */
.wp-block-buttons .wp-block-button__link {
    background-color: #009650 !important; /* 美幌グリーンに強制変更 */
    color: #ffffff !important;             /* 文字色はクッキリ白 */
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;             /* 変化をなめらかに */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ほんの少し立体感を出す影 */
}

/* マウスを乗せたとき（ホバー時）の行動喚起エフェクト */
.wp-block-buttons .wp-block-button__link:hover {
    background-color: #1aa362 !important; /* 少しだけ明るいグリーンに変化 */
    color: #ffffff !important;
    transform: translateY(-3px);           /* ボタンが上に3ピクセルふわっと浮き上がる */
    box-shadow: 0 8px 15px rgba(0, 150, 80, 0.3); /* グリーンの柔らかな影が広がってクリック感を演出 */
    text-decoration: none !important;
}

/* クリックした瞬間（押し込んだとき）の演出 */
.wp-block-buttons .wp-block-button__link:active {
    transform: translateY(-1px);           /* 少し沈む */
    box-shadow: 0 4px 8px rgba(0, 150, 80, 0.2);
}

/************************************
** ブロック間の下余白（マージンボトム）の調整
************************************/
/* 見出し（H4〜H6）の下の余白を詰める */
.article h4, 
.article h5, 
.article h6 {
    margin-bottom: 15px !important; 
}

/* 段落（文章）の下の余白を詰める */
.article p {
    margin-bottom: 15px !important;
}

/* 動画ブロック・埋め込みブロックの下の余白を詰める */
.article .wp-block-video,
.article .wp-block-embed,
.article .wp-block-image {
    margin-bottom: 20px !important; /* 映像や画像の下は少しだけ余裕を持たせる */
}

/* ボタンブロックの下の余白を詰める */
.article .wp-block-buttons {
    margin-bottom: 20px !important;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/************************************
** アイコンボックスの完全オリジナル化（美幌運送様用）
************************************/
/* ボックス全体の枠と背景を上品に */
.wp-block-cocoon-blocks-icon-box.icon-box.bc-009650 {
    border: 2px solid #009650 !important;   /* 太い安っぽい枠を、シャープな2pxのロゴカラーに */
    background-color: #f7fdfa !important;   /* 内側をさらに清潔感のある極薄の緑に */
    border-radius: 4px !important;          /* 四角形をベースに、角をほんの少しだけ優しく */
    padding: 30px 25px 25px 25px !important;/* 文字のまわりに高級感のある余白を持たせる */
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 150, 80, 0.05) !important; /* ほんのりと上品な影を敷く */
    margin-top: 2em !important;
}

/* 左上のアイコンを浮き立つバッジ風に */
.wp-block-cocoon-blocks-icon-box.icon-box.bc-009650::before {
    position: absolute;
    top: -18px !important;                  /* ボックスの枠線の上に少しはみ出させて立体的に */
    left: 20px !important;
    width: 36px !important;
    height: 36px !important;
    background-color: #009650 !important;   /* 美幌グリーンの背景 */
    color: #ffffff !important;              /* マークは白 */
    border-radius: 50% !important;          /* 完全な丸型に */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* ボックス内のお悩みリスト（箇条書き）のデザイン調整 */
.wp-block-cocoon-blocks-icon-box.icon-box.bc-009650 ul {
    margin: 0 !important;
    padding-left: 5px !important;
    list-style: none !important;            /* 標準のポチ丸（・）を消す */
}

/* リストの一項目ずつに、丁寧なチェックマークやドットをあしらう */
.wp-block-cocoon-blocks-icon-box.icon-box.bc-009650 ul li {
    position: relative;
    padding-left: 25px !important;          /* 左側にマークが入るスペースを空ける */
    margin-bottom: 12px !important;          /* お悩み同士の間隔を少し空けて読みやすく */
    font-size: 16px !important;              /* スマホでもパソコンでも見やすい文字サイズ */
    color: #333333 !important;
    line-height: 1.5 !important;
}

.wp-block-cocoon-blocks-icon-box.icon-box.bc-009650 ul li:last-child {
    margin-bottom: 0 !important;            /* 最後の一行は下の余白をゼロに */
}

/* お悩みの先頭につくオリジナルマーク（グリーンの四角ドット） */
.wp-block-cocoon-blocks-icon-box.icon-box.bc-009650 ul li::before {
    content: "■" !important;                /* 運送業・コンテナなどを連想させるシャープな四角 */
    position: absolute;
    left: 0;
    top: 0px;
    color: #009650 !important;              /* ロゴカラー */
    font-size: 12px !important;
}
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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