@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){
  /*必要ならばここにコードを書く*/
}





/*---------------------------------
 ◆各ページタイトルの表示調整　見出し1

---------------------------------*/
/* 1. 投稿・固定ページのタイトルをグレーにして消しておく */
.entry-title, 
h1.entry-title,
.archive-title {
    color: #999 !important;         /* グレーに設定 */
    opacity: 0;                     /* 最初は透明 */
    animation: titleFadeIn 1.2s ease-out forwards; /* 1.2秒でフェードイン */
}

/* 2. フェードインのアニメーション（ふわっと浮き上がる） */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px); /* 10px下から開始 */
    }
    100% {
        opacity: 1;
        transform: translateY(0);    /* 定位置へ */
    }
}

/* 3. タイトル周りの不要な装飾（下線など）があれば消す */
.entry-title::after,
.entry-title::before {
    display: none !important;
}



/*-----------------------------------
 ◆見出し

---------------------------------*/
/* 中見出し（h2）のデザインカスタマイズ */
.article h2 {
    background-color: transparent !important; /* 背景のグレーや青を消す */
    border-left: none !important;            /* 左側の太線を消す */
    border-bottom: 2px solid #67a67d !important; /* 下線を緑にする */
    padding: 0 0 10px 5px !important;        /* 文字の下に少し余白を作る */
    color: #333 !important;                  /* 文字の色を濃くする */
    font-weight: bold;                        /* 文字を太くする */
}


/*---------------------------------
 ◆見出し2+アイコン カスタムh2（カラム色連動版）

---------------------------------*/

/* 1. 見出し自体の装飾を完全に消す */
.article h2.custom-h2-style {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    /* カラムで設定した色を、中の文字や太字(strong)に強制的に引き継がせる */
    color: inherit !important; 
}

/* 2. 中にstrong（太字）が入っていても色を引き継ぐ */
.article h2.custom-h2-style strong {
    color: inherit !important;
    font-weight: bold !important;
}

/* 3. カラム全体のレイアウト（横並び・中央揃え） */
.wp-block-columns:has(.custom-h2-style) {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* 4. 左側（アイコン側）のカラム設定 */
.wp-block-columns:has(.custom-h2-style) > .wp-block-column:first-child {
    flex: 0 0 auto !important;
}

/* 5. アイコン画像のサイズ */
.h2-icon-img img {
    width: 50px !important;
    height: auto !important;
    display: block !important;
}

/* 6. スマホ対応 */
@media screen and (max-width: 768px) {
    .h2-icon-img img { width: 38px !important; }
    .wp-block-columns:has(.custom-h2-style) { flex-wrap: nowrap !important; }
}


/*---------------------------------
 ◆見出し2　会社概要
　my-company-h2 is-visible
---------------------------------*/

/* 「.article」の中にある「my-company-h2」を特定して上書き */
.article h2.my-company-h2 {
    /* 既存の長い下線と装飾を完全にリセット */
    border-bottom: none !important;
    border-left: none !important;
    background: none !important;
    padding: 0 0 15px 0 !important;
    margin-left: 0 !important;
    text-align: left !important; /* 左寄せを強制 */
    
    /* テキスト設定 */
    color: #333 !important;
    font-size: 24px; /* モバイルサイズ */
    display: block;
    position: relative;
    
    /* アニメーション：左からスッと出てくる */
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 1.0s ease forwards;
}

/* 独自の短い下線を作成 */
.article h2.my-company-h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0; /* 左寄せに合わせて線の起点も左に */
    width: 40px; /* 線の長さ */
    height: 4px; /* 線の太さ */
    background-color: #67a67d !important; /* 指定の緑 */
    border-radius: 2px;
}

/* PC版のサイズ調整 */
@media (min-width: 768px) {
    .article h2.my-company-h2 {
        font-size: 40px !important; /* PCでは大きく */
        padding-bottom: 20px !important;
    }
    .article h2.my-company-h2::after {
        width: 60px; /* PCでは線を少し長く */
    }
}

/* アニメーションの定義（左からスライド） */
@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* カテゴリー一覧の見出しのみ非表示 */
.archive-title {
    display: none !important;
}





/*---------------------------------
 ◆ 名前シール・バナーエリア（.series-container）
 PC: 横並び / スマホ: 縦並び
---------------------------------*/
/* 親要素（フレックスボックス） */
.series-container {
    display: flex !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 40px 10px !important;
}

/* 各カードのデザイン */
.horizontal-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.horizontal-card:hover {
    transform: translateY(-5px) !important;
}

.horizontal-card img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.border-blue {
    border: 4px solid #0068b7 !important;
    box-sizing: border-box !important;
}

/*---------------------------------
 ◆ レスポンシブ：601px以上（PC・タブレット）
---------------------------------*/
@media screen and (min-width: 601px) {
    /* バナーエリア：横並び */
    .series-container {
        flex-direction: row !important;
        gap: 20px !important;
    }

    /* 標準カラム：2カラムを横並びに固定 */
    .wp-block-columns {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 2% !important;
    }

    .wp-block-columns > .wp-block-column {
        flex-basis: 49% !important;
        width: 49% !important;
        margin: 0 !important;
    }
}

/*---------------------------------
 ◆ レスポンシブ：600px以下（スマホ）
---------------------------------*/
@media screen and (max-width: 600px) {
    /* バナーエリア：縦並び */
    .series-container {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 30px 15px !important;
    }

    .series-container > .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    /* 標準カラム：縦並び（ブロック解除） */
    .wp-block-columns {
        display: block !important;
    }

    .wp-block-columns > .wp-block-column {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* フレキシブルテーブル：thの線を消す */
    .wp-block-flexible-table-block-table th {
        border: none !important;
        padding-bottom: 0 !important;
    }
    
    .wp-block-flexible-table-block-table td {
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid #ccc !important;
    }
}



/*---------------------------------
 ◆会社概要テーブル　★モバイル
　thのみ下線消した

---------------------------------*/
@media screen and (max-width: 769px) {
    /* th（項目名）の線を消して、下の余白も詰める */
    .wp-block-flexible-table-block-table th {
        border: none !important;
        padding-bottom: 0 !important;
    }
}


/*---------------------------------
 ◆ニュース（最新投稿）リンクの調整

---------------------------------*/
/* 1. 通常時の色をグレーにして下線を消す */
.wp-block-latest-posts li a {
    color: #666 !important;         /* 濃いめのグレー（お好みで#888など） */
    text-decoration: none !important; /* 下線を消す */
    transition: opacity 0.3s ease;
}

/* 2. ホバーした時（少し透けさせる） */
.wp-block-latest-posts li a:hover {
    opacity: 0.7 !important;
    text-decoration: none !important; /* ホバー時も下線を出さない */
    background-color: transparent !important; /* 背景色が変わるのを防ぐ */
}

/* 3. 日付の色も少し薄くする場合（任意） */
.wp-block-latest-posts__post-date {
    color: #999 !important;
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
}











/*---------------------------------
 ◆フッター　デザインPC
　
---------------------------------*/
/* --- Cocoon親要素の制限解除 --- */
#footer-in, .footer-in, .footer-bottom-container, .footer-widgets, .footer-center {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- PC版設定 (769px以上) --- */
@media screen and (min-width: 769px) {
    .footer-mobile-box { display: none !important; }
    .footer-pc-box {
        background-color: #67a67d !important; /* ←背景色　ここを変更 */
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 60px 0 !important;
    }
    .pc-inner {
		max-width: 1140px !important;
		margin: 0 auto !important;
		padding: 0 20px !important; 
	}
    .footer-logo {
		margin-bottom: 40px;
	}
    .footer-logo img {
		max-width: 260px; 
	}
    .pc-columns {
		display: flex !important;
		justify-content: space-between !important;
		margin-bottom: 40px !important;
	
	}
    .col {
		flex: 1; border-left: 1px dotted rgba(255,255,255,0.5);
		padding-left: 20px; 
	}
    .col:first-child {
		border-left: none; 
	}
    .col h3 {
		color: #fff; font-size:
			17px; margin-bottom:
				15px; font-weight: bold;
	}
    .col ul {
		list-style: none; padding: 0;
	}
    .col li {
		font-size: 14px; margin-bottom: 8px;
		position: relative;
		padding-left: 15px;
	}
    .col li::before {
		content: '▶'; position: absolute;
		left: 0; font-size: 10px; top: 2px; 
	}
    .col a {
		color: #fff;
		text-decoration: none;
	}
    .pc-hr {
		border: none;
		border-top: 1px solid rgba(255,255,255,0.3);
		margin: 30px 0; 
	}
    .pc-bottom {
		display: flex !important;
		justify-content: space-between;
		align-items: center; 
	}
    .bottom-links a { 
		color: #fff;
		text-decoration: none;
		font-weight: bold;
		margin-right: 20px;
	}
    .bottom-btns {
		display: flex !important; gap: 15px; 
	}
}

/*---------------------------------
 ◆フッター　デザイン モバイル
---------------------------------*/
/* --- モバイル版設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    .footer-pc-box { display: none !important; }
    .footer-mobile-box {
		background-color: #67a67d !important; /* ←背景色　ここを変更 */
		padding: 30px 20px !important;
		width: 100% !important; 
	}
    .footer-logo img { max-width: 200px !important; margin-bottom: 20px !important; }
    .acc-item summary, .single-link a {
        padding: 15px 0 !important;
		font-weight: bold !important;
		color: #fff !important; 
        border-bottom: 1px solid rgba(255,255,255,0.4) !important;
		list-style: none !important;
    }
	
	
	/* アコーディオンの見出し（＋マーク追加） */
    .acc-item summary, .single-link a {
        padding: 15px 0 !important;
        font-weight: bold !important;
        color: #fff !important;
        list-style: none !important;
        text-decoration: none !important;
        display: block !important;
        position: relative !important;
    }
    .acc-item summary::-webkit-details-marker { display: none; } /* iPhoneの標準矢印を消去 */
	
	
	/* ★追加：右端に＋ボタン★ */
    .acc-item summary::after {
        content: '+';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
    }
    /* ★追加：開いたとき－ボタン★ */
    .acc-item[open] summary::after {
        content: '−';
    }

    /* ★追加：モバイルのリストの点（・）を消去★ */
    .acc-item ul {
        list-style: none !important;
        padding: 0 0 15px 15px !important;
        margin: 0 !important;
    }
		
	  .acc-item li a { 
        color: #fff !important; 
        text-decoration: none !important; /* ★通常時★ */
        border-bottom: none !important; /* ★Cocoonの点線対策★ */
        display: block !important; 
        padding: 8px 0 !important; 
        opacity: 0.9; 
    }
	
    .sub-links-grid {
		display: flex !important;
		flex-wrap: wrap !important;
		margin: 25px 0 !important; 
	}
    .sub-links-grid a { 
		width: 50% !important;
		color: #fff !important;
		text-decoration: none !important;
		margin-bottom: 15px;
		font-size: 14px; font-weight: bold;
	}
    .btn-wrap { display: flex !important; gap: 10px; }
}

/* --- ボタン共通 --- */
.btn-white {
    background: #fff !important;
    color: #67a67d !important;
    padding: 12px 10px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 13px !important;
    flex: 1 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

/* --- ボタン共通 (白丸リンク) --- */
.btn-white {
    background: #fff !important;
    color: #67a67d !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important; /* アニメーションを滑らかに */
    flex: 1 !important;
    white-space: nowrap !important;
}

/* ホバー時の設定：透明度ではなく色を少し暗くする */
.btn-white:hover {
    background-color: #f0f0f0 !important; /* 真っ白から薄いグレーへ */
    color: #67a67d !important; /* 文字色は変えない */
    opacity: 1 !important; /* 透明度を固定 */
    text-decoration: none !important;
}

/* クリックした瞬間の感触（おまけ） */
.btn-white:active {
    transform: scale(0.97) !important; /* わずかに小さくなって押した感を出す */
}


/* --- ★追加：スマホ最小サイズ(480px以下)の時だけボタンを縦並びにする --- */
@media screen and (max-width: 480px) {
    .btn-wrap {
        flex-direction: column !important; /* 縦に並べる */
        gap: 12px !important; /* ボタン同士の上下の間隔 */
    }
    .btn-white {
        width: 100% !important; /* 横幅いっぱいに広げる */
        padding: 15px 10px !important; /* 少し高さを出す */
    }
}



/*---------------------------------
 ◆フッター　お問い合わせボタン

---------------------------------*/
/* 1. フッター全体の背景を透明にする（右寄せ設定） */
.mobile-footer-menu-buttons {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* 2. ボタンの土台（オレンジ背景・幅・上だけ角丸） */
.mobile-footer-menu-buttons .navi-menu-button {
    background-color: #ff9900 !important; /* オレンジ */
    width: 180px !important; 
    min-width: 180px !important; 
    flex: 0 0 180px !important;
    margin-left: auto !important; 
    border: none !important;
    list-style: none !important;
    border-radius: 10px 10px 10px 10px !important; 
	/* 上上下下角丸 */
    overflow: hidden !important;
    transition: background-color 0.3s ease !important; /* ふわっと変化用 */
}

/* 3. 元々の中身（星・文字・アイコン等）を完全に消去 */
.mobile-footer-menu-buttons .navi-menu-button a span,
.mobile-footer-menu-buttons .navi-menu-button a i,
.mobile-footer-menu-buttons .navi-menu-button a .menu-caption,
.mobile-footer-menu-buttons .navi-menu-button a .custom-menu-icon {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
}

/* 4. ボタンの中身を自作（アイコンと文字を横並び） */
.mobile-footer-menu-buttons .navi-menu-button a {
    display: flex !important;
    flex-direction: row !important; /* 横並び */
    align-items: center !important;
    justify-content: center !important;
    height: 60px !important;
    width: 100% !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 5. 電話アイコンを強制表示 */
.mobile-footer-menu-buttons .navi-menu-button a::before {
    content: "\f095" !important; /* 電話アイコン */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    color: #fff !important;
    margin-right: 8px !important; /* 文字との隙間 */
    visibility: visible !important;
    display: block !important;
}

/* 6. 「お問い合わせ」文字を強制表示 */
.mobile-footer-menu-buttons .navi-menu-button a::after {
    content: "お問い合わせ" !important;
    font-size: 14px !important;
    color: #fff !important;
    font-weight: bold !important;
    visibility: visible !important;
    display: block !important;
    line-height: 1 !important;
}

/* 7. マウスを当てた時の反応（背景だけ薄く、文字はそのまま） */
.mobile-footer-menu-buttons .navi-menu-button:hover {
    background-color: #ffb84d !important; /* 少し明るいオレンジ */
    cursor: pointer !important;
}

.mobile-footer-menu-buttons .navi-menu-button a:hover {
    opacity: 1 !important; /* 文字が薄くなるのを防止 */
}





/*---------------------------------
 ◆ 1. 共通設定（アイコン・段落）
　インラインアイコン
---------------------------------*/
.inline-title-icon img {
    height: 1.2em !important;
    width: auto !important;
    vertical-align: -0.25em !important;
    margin-right: 0.5em !important;
    display: inline-block !important;
}

.title-flex-unit p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
}

/*---------------------------------
 ◆ 2. PC版（831px以上：横並び＋位置修正）
---------------------------------*/
@media screen and (min-width: 831px) {
    .title-flex-unit {
        display: flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 15px !important;
        width: 100% !important;
        margin-bottom: 25px !important;

        /* ★ここが調整のキモです */
        /* コンテンツ幅を「1150px」と想定して、その左端に合わせる計算 */
        padding-left: calc((100% - 1150px) / 2) !important;
        padding-right: 20px !important;
        
        /* 余計な余白や最大幅の設定をクリア */
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/*---------------------------------
 ◆ 3. 830px以下（タブレット・スマホ共通）
---------------------------------*/
@media screen and (max-width: 830px) {
    .title-flex-unit {
        display: flex !important;
        width: 100% !important;
        padding-top: 30px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-bottom: 20px !important;
    }
}

/* 600px〜830pxの間は「横並び」 */
@media screen and (max-width: 830px) and (min-width: 600px) {
    .title-flex-unit {
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 15px !important;
    }
}

/* 599px以下（モバイル：縦並び） */
@media screen and (max-width: 599px) {
    .title-flex-unit {
        flex-direction: column !important; /* スマホだけ縦 */
        align-items: flex-start !important;
        padding-top: 25px !important;
        gap: 8px !important;
    }
}








/*---------------------------------
 ◆PC版 ヘッダーメニュー（ナビゲーション）

---------------------------------*/
/* メニュー全体の背景を透明にして、上下の境界線を整える */
#navi-in {
    background-color: transparent !important;

}

/* メニュー項目（リンク）のデザイン */
.menu-header .menu-item a {
    color: #444 !important;           /* 濃いグレー */
    font-size: 15px !important;       /* 読みやすいサイズ */
    font-weight: bold !important;
    padding: 15px 25px !important;    /* 左右のゆとり */
    text-decoration: none !important;
    position: relative !important;     /* 線の起点にする */
    transition: color 0.3s ease !important;
}

/* ホバー時に文字を緑にする */
.menu-header .menu-item a:hover {
    color: #67a67d !important;
    background-color: transparent !important; /* 背景は変えない */
}

/* ホバー時に下から緑の線がスッと伸びる演出 */
.menu-header .menu-item a::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;             /* 一番下に配置 */
    left: 50% !important;             /* 中央から */
    width: 0 !important;              /* 最初は幅ゼロ */
    height: 2px !important;           /* 線の太さ */
    background-color: #67a67d !important;
    transition: all 0.3s ease !important;
    transform: translateX(-50%) !important;
}

.menu-header .menu-item a:hover::after {
    width: 60% !important;            /* ホバー時に60%まで広がる */
}

/* 現在表示しているページのメニューを緑にする */
.menu-header .current-menu-item a {
    color: #67a67d !important;
}
.menu-header .current-menu-item a::after {
    width: 60% !important;
    content: "" !important;
}

/* サブメニュー（ドロップダウン）がある場合のデザイン */
.menu-header .sub-menu {
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    border-top: 2px solid #67a67d !important; /* 上部に緑のアクセント */
}

.menu-header .sub-menu a {
    font-size: 14px !important;
    padding: 10px 20px !important;
}


/*---------------------------------
 ◆スライドインメニュー全体

---------------------------------*/
/* メニューの背景（引き出し部分） */
.navi-menu-content {
    background-color: rgba(255, 255, 255, 0.98) !important; /* 真っ白に近い透過 */
    width: 80% !important;        /* 横幅を少し抑える */
    max-width: 320px !important;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05); /* 軽い影で立体感を出す */
}

/* メニュー内のリスト項目 */
.navi-menu-content ul li a {
    color: #444 !important;       /* 文字は濃いグレー */
    font-size: 16px !important;
    font-weight: bold;
    padding: 15px 20px !important;
    border-bottom: 1px solid #eee !important; /* 項目間の細い線 */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* リンクの左側に緑のアクセントを入れる（ホバー時） */
.navi-menu-content ul li a:hover {
    color: #67a67d !important;    /* 文字を緑に */
    background-color: #f9fbf9 !important; /* ほんのり緑背景 */
    padding-left: 25px !important; /* 少し右にスライドさせる演出 */
}

/* メニューの背景（暗くなる部分） */
.menu-overlay {
    background-color: rgba(0, 0, 0, 0.4) !important; /* 背景を少し暗く */
}


/*---------------------------------
 ◆スライドインメニュー（右から出す設定）
---------------------------------*/
/* メニュー本体を右側に固定 */
.navi-menu-content {
    left: auto !important;        /* 左固定を解除 */
    right: 0 !important;         /* 右に固定 */
    transform: translateX(100%); /* 最初は右側に隠しておく */
    transition: transform 0.4s ease-in-out !important;
}

/* メニューが開いている時の状態 */
.menu-open .navi-menu-content {
    transform: translateX(0) !important; /* 右からスライドして戻ってくる */
}

/* 閉じるボタン（✕）をメニュー内の左上に配置（右メニューなので左側にあった方が押しやすい） */
.navi-menu-close-button {
    justify-content: flex-start !important;
    padding-left: 20px !important;
}


/*---------------------------------
 ◆メニュー内のサブ見出し（あれば）
---------------------------------*/
.navi-menu-content .menu-caption {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    display: block;
}

/* スマホ版の高さ調整（画面いっぱいに広げる） */
@media screen and (max-width: 480px) {
    .navi-menu-content {
        padding-top: 60px !important; /* 閉じるボタンと重ならないように調整 */
    }
}



/*---------------------------------
 ◆ハンバーガーボタン（ヘッダーのみに限定）

---------------------------------*/
/* ヘッダーのボタンだけを対象にするため .mobile-header-menu-buttons を前につける */

.mobile-header-menu-buttons .navi-menu-button .menu-caption {
    display: none !important;
}

.mobile-header-menu-buttons .navi-menu-button {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
}

.mobile-header-menu-buttons .navi-menu-button .menu-icon {
    font-size: 0 !important;
    position: relative !important;
    width: 25px !important;
    height: 20px !important;
    display: block !important;
    margin: 0 auto !important;
}

.mobile-header-menu-buttons .navi-menu-button .menu-icon::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background-color: #333 !important;
    transform: translateY(-50%) !important;
    opacity: 0.5 !important;
    box-shadow: 
        0 -10px 0 0 #333, 
        0 10px 0 0 #333;
}


/*-----------------------------------
 ◆✕ボタン：極細・中央配置・アニメーション
-----------------------------------*/

/* 1. ボタン全体の配置：中央に寄せて上下に余白を作る */
.navi-menu-close-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 20px !important;    /* 上のマージン */
    padding-bottom: 20px !important; /* 下のマージン */
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
}

/* 2. 元のアイコンを透明にし、自作の線を置く土台を作る */
.navi-menu-close-button .fa-close,
.navi-menu-close-button .fa-times {
    color: transparent !important;
    position: relative !important;
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 auto !important;
    left: 0 !important;
    top: 0 !important;
    /* 登場アニメーション */
    animation: x-pop 0.5s ease-out forwards;
}

/* 3. 極細の線を2本作成（✕の形） */
.navi-menu-close-button .fa-close::before,
.navi-menu-close-button .fa-close::after,
.navi-menu-close-button .fa-times::before,
.navi-menu-close-button .fa-times::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 25px !important;      /* 線の長さ */
    height: 1px !important;      /* 線の太さ */
    background-color: #333 !important;
    opacity: 0.5 !important;     /* 線の薄さ */
    transition: all 0.3s ease !important;
}

/* 4. 2本の線を回転させて✕にする */
.navi-menu-close-button .fa-close::before,
.navi-menu-close-button .fa-times::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}
.navi-menu-close-button .fa-close::after,
.navi-menu-close-button .fa-times::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* 5. 登場アニメーション（回転しながらふわっと出る） */
@keyframes x-pop {
    0% {
        transform: scale(0) rotate(-90deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1; /* 親要素の透明度とは別に制御 */
    }
}

/* 6. タップ・ホバー時の反応 */
.navi-menu-close-button:active {
    transform: scale(0.9); /* タップした瞬間に少し縮む */
}
.navi-menu-close-button:hover .fa-close::before,
.navi-menu-close-button:hover .fa-close::after,
.navi-menu-close-button:hover .fa-times::before,
.navi-menu-close-button:hover .fa-times::after {
    opacity: 1 !important; /* ホバーで線をくっきりさせる */
}


/*---------------------------------
 ◆ヘッダー　上余白

---------------------------------*/
/* 画面幅1024px以上（PC版）だけに適用 */
@media screen and (min-width: 1024px) {
    /* ヘッダー全体の上の余白 */
    .header-container {
        padding-top: 25px !important; /* ★ここの数字でPC版の余白を調整 */
    }
}


/*---------------------------------
 ★モバイル　ヘッダーロゴ左寄せ
---------------------------------*/
@media screen and (max-width: 1023px) {
  /* 1. 親のリスト：ボタンを均等に並べる設定を完全に解除 */
  ul.mobile-header-menu-buttons {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 2. ロゴボタンの土台：幅を自由に、余白をゼロに */
  li.logo-menu-button {
    flex: 0 0 auto !important; /* 均等割りを解除 */
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. ボタンの内側の枠（ここが紫色の余白の正体です）：余白を完全に抹殺 */
  li.logo-menu-button .menu-button-in,
  li.logo-menu-button a {
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    display: block !important;
  }

  /* 4. ロゴ画像：左端に密着させ、サイズを固定 */
  li.logo-menu-button img {
    display: block !important;
    margin-left: 0 !important;
    height: 75px !important; /* ←ここで高さを指定（お好みで調整） */
    width: auto !important;
    max-width: none !important;
  }

  /* 5. 右側の三本線メニュー：右端へ追いやる */
  li.menu-button:not(.logo-menu-button) {
    margin-left: auto !important;
    flex: 0 0 60px !important;
  }
}

/*---------------------------------
★モバイル　メイン画像　削除
---------------------------------- モバイル（1023px以下）でロゴを完全に消す */
@media screen and (max-width: 1023px) {
    /* ロゴ画像そのものと、ロゴを囲むリンク・文字をすべて指定 */
    .header-logo, 
    .logo-header, 
    .site-name-text, 
    .logo-header img {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* ヘッダー内部の余白もリセット */
    .header-in {
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
/*-----------------------------------
★モバイル　メイン画像の下余白削除

-----------------------------------*/
@media screen and (max-width: 1023px) {
    /* アピールエリア全体の余白をゼロに */
    #appeal {
        margin: 0 !important;
        padding: 0 !important;
    }
    /* 中身のコンテンツの余白もゼロに */
    .appeal-in, .appeal-content {
        padding: 0 !important;
        min-height: 0 !important;
    }
}


/*---------------------------------
 ◆パンくずリストの表示制御

---------------------------------*/
/* 記事本文の下（フッター直前）にあるパンくずリストだけを消す */
.pbp-main-bottom {
    display: none !important;
}


/* 1. ページ上部のパンくずは表示する */
.breadcrumb {
    display: block !important;
}

/* 2. ページ下部（フッター直前）のパンくずだけをピンポイントで消す */
/* Cocoonの仕様に合わせた指定です */
.pbp-main-bottom,
.bread-bottom,
#main > div.breadcrumb.bread-bottom {
    display: none !important;
}

/* 3. もし記事一覧のカード内のアイコンを消したい場合はこれだけ残す */
.breadcrumb-item .fa, 
.breadcrumb-item .fas, 
.breadcrumb-item i,
.breadcrumb-item svg {
    display: none !important;
}


/*---------------------------------
 ◆ページ最下部の隙間・余白を完全削除

---------------------------------*/

/* 1. 記事コンテンツ・メインエリアの余白を強制ゼロ */
.article, 
.entry-content, 
#main, 
#content, 
#container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. 本文内の「最後に来る要素」の余白を抹殺 */
.entry-content > *:last-child {
    margin-bottom: 0 !important;
}

/* 3. カバーブロック（ニュース等）自体の下余白を消す */
.wp-block-cover.has-parallax.full-wide-screen {
    margin-bottom: 0 !important;
}

/* 4. ブロックの下に勝手に作られる「空の段落」を非表示にする */
.wp-block-cover__inner-container + p,
.wp-block-cover + p,
.entry-content > p:empty {
    display: none !important;
}

/* 5. テーマが自動挿入する擬似要素(::after)の隙間を消す */
.entry-content::after {
    display: none !important;
    content: none !important;
}

/* 6. フッターを隙間なく連結させる */
#footer {
    margin-top: 0 !important;
    border-top: none !important;
}

/* 7. コンテナの背景を透過して色の境目をなくす */
#container {
    background-color: transparent !important;
}


/*-----------------------------------
 ◆サイト一番下の隙間削除

-----------------------------------*/
.main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/*-----------------------------------
 ◆アピールエリア
---------------------------------*/
/* アピールエリアの背景色・透明度を無視して「透明」にする */
.appeal {
    background-color: transparent !important; /* 背景を透明に */
    background-image: none !important;        /* 背景画像を強制消去 */
}

/* スライダーを置く中身の余白もゼロにする */
.appeal-in {
    background-color: transparent !important;
    padding: 0 !important;
}

/* 指定したブロックだけを全幅にする魔法のコード */
.full-wide-screen {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}




