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


/****************************************************
  全体
****************************************************/
/* 明朝系フォント（class入れる）*/
.mincho {
	font-family: "Hiragino Mincho ProN", "游明朝", "Yu Mincho", "MS Mincho", serif;
}

/* リンク画像のホーバー視覚効果  */
.animated-link img {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.animated-link:hover img {
	transform: scale(1.03);
	opacity: 0.8; 
}

/* PC 上に戻るボタン サイズ調整 */
.go-to-top-button {
    width: 55px;
    height: 55px;
    border-radius: 88px;
    background-color: #11111142;
    color: #fff;
}




/****************************************************
  ヘッダー設定
****************************************************/

/* =========================================
   PCだけ：ヘッダーを左右いっぱいに広げる
   ※全ページ共通
========================================= */
@media screen and (min-width: 1023px) {

  /* ヘッダー全体 */
#header-container,.header-container {
    width: 100% !important;
    max-width: none !important;
    background: #fff !important; /* 必要に応じて transparent に変更 */
}
/* ロゴ＋メニューの内側 */
#header-container .header-container-in,
.header-container .header-container-in {
  	width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 24px !important;
    display: flex !important;
    flex-wrap: nowrap;
    column-gap: 24px;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
/* ロゴ側 */
.header-logo,.logo-header,.header .logo {
    flex: 0 0 auto;
}
/* ナビ側を右まで使う */
#navi, .navi {
    flex: 1 1 auto;
    margin-left: 0;
    width: auto !important;
}
#navi .navi-in,.navi .navi-in,
#navi-in {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}
/* メニューを右寄せ */
#navi .navi-in > ul,.navi .navi-in > ul {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}
/* メニュー文字 */
#header-container #navi a,.header-container #navi a,
#header-container .navi a,.header-container .navi a {
    white-space: nowrap;
}
/* ロゴ画像 */
.custom-logo,.header-logo img,.logo-image img {
    max-width: 100%;
    height: auto;
}
} /* ← メディアスクリーン閉じる*/

/* スマホ・タブレット：ヘッダー非表示 */
@media screen and (max-width: 1023px) {
#header-container,  .header-container {
    display: none !important;
  }
}

/*----------------------------------------
 　PCグローバルナビ系
 -----------------------------------------*/

/* グローバルナビ */
#navi .navi-in>ul>li>a {
    padding: 0 1.3em;
}
.navi-in a {
	font-size: 0.95em;
}

/* グローバルナビ ホーバー色 */
#navi .navi-in a:hover {
	color: #FFA305;
}


/* ひまわり：PCグローバルナビの子・孫メニュー */
@media screen and (min-width: 1023px) {
  #navi {
    visibility: visible !important;
    overflow: visible;
  }

  #navi .navi-in,
  #navi ul.menu-header.menu-pc {
    overflow: visible;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 {
    position: relative;
    z-index: 10000;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 182px;
    margin: 0;
    padding: 7px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 10001;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460:hover > ul.sub-menu,
  #navi ul.menu-header.menu-pc > li#menu-item-460:focus-within > ul.sub-menu {
    display: block;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 > ul.sub-menu > li {
    position: relative;
    display: block;
    float: none;
    width: 182px;
    height: 43px;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 ul.sub-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 43px;
    padding: 0 10px;
    border: 1px solid #e4e5e5;
    border-bottom: 0;
    background: #fff;
    color: #666;
    font-size: 12px;
    font-weight: 400;
    line-height: 30px;
    text-decoration: none;
    white-space: nowrap;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 ul.sub-menu > li:hover > a,
  #navi ul.menu-header.menu-pc > li#menu-item-460 ul.sub-menu > li:focus-within > a {
    color: #FFA305;
    border-bottom: 0;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 > ul.sub-menu > li > ul.sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: max-content;
    min-width: 182px;
    max-width: calc(100vw - 20px);
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 10002;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 > ul.sub-menu > li:hover > ul.sub-menu,
  #navi ul.menu-header.menu-pc > li#menu-item-460 > ul.sub-menu > li:focus-within > ul.sub-menu {
    display: block;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 > ul.sub-menu > li > ul.sub-menu > li {
    position: relative;
    display: block;
    float: none;
    width: 100%;
    min-width: 182px;
    height: 43px;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 > ul.sub-menu > li > ul.sub-menu > li > a {
    width: 100%;
    min-width: 182px;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 .sub-has-sub {
    right: 8px;
    color: #888;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 .sub-has-sub .fas {
    font-size: 12px;
    line-height: 11px;
    color: inherit;
  }

  #navi ul.menu-header.menu-pc > li#menu-item-460 ul.sub-menu > li:hover > a .sub-has-sub,
  #navi ul.menu-header.menu-pc > li#menu-item-460 ul.sub-menu > li:focus-within > a .sub-has-sub {
    color: #FFA305;
  }
}



/****************************************************
 本文エリア設定
****************************************************/

/*---------------------------*/
/* コンテンツエリアの余白 */
/*---------------------------*/
/* PC メインカラム 上下余白 */
.main {
	padding: 15px 15px!important;
}



/*---------------------------*/
/* サイト共通：本文の最大幅を1170pxに統一 */
/*---------------------------*/

.article .entry-content {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.article .entry-content > * {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

/*---------------------------*/
/* fullwide-coverを付けたCoverブロックだけ全幅にする */
/*---------------------------*/

.article .wp-block-cover.fullwide-cover {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
html:has(.article .wp-block-cover.fullwide-cover) {
  overflow-x: clip;
}

/*---------------------------*/
/* 本文の見出しデザイン */
/*---------------------------*/

/* 全ページ共通H2 */
.article h2:not(.has-custom-css) {
  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #444444 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  line-height: 26px !important;
  padding: 0 0 20px !important;
  text-align: left !important;
}

.article h2:not(.has-custom-css)::before {
  content: "";
  width: 65px;
  height: 4px;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  margin: 0;
  background: #FFA305;
}

/* 中央・右揃え */
.article h2.has-text-align-center:not(.has-custom-css) {
  text-align: center !important;
}
.article h2.has-text-align-right:not(.has-custom-css) {
  text-align: right !important;
}
.article h2.has-text-align-center:not(.has-custom-css)::before {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}
.article h2.has-text-align-right:not(.has-custom-css)::before {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}

/* H3のテーマ装飾を解除 */
.article h3:not(.himawari-support-badge) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
}

.article h3::before,
.article h3::after {
  content: none !important;
  display: none !important;
}

.article h3.has-custom-css:not(.himawari-support-badge) {
  color: inherit !important;
  width: auto !important;
  height: auto !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  margin: 0 0 1em !important;
}

/****************************************************
  モバイル設定
****************************************************/

/*--------------------------------*/
/* フッターモバイルボタン透明背景色 */
/*--------------------------------*/
.mobile-footer-menu-buttons {
	background: rgba(1,1,1,0.6); 
}
.mobile-footer-menu-buttons .menu-button,
.home-menu-button menu-button,
.mobile-menu-buttons .home-menu-button > a,
.mobile-menu-buttons .top-menu-button > a {
	color: #fff;
}


/*--------------------------------
　モバイル 左スライドメニュー デザイン
/*--------------------------------*/
.menu-close-button {
	display:none;
}
#navi-menu-content {
	background: rgba(35, 37, 46, 0.92);
}

ul.menu-drawer:before {
	content: "MENU"; 
	display: block;
	background-color: rgba(255, 255, 255, 0.16);
	color: #fff; 
	font-size: 1.1em;
	font-weight: bold;
	text-align: center;
	padding: 7px;
	margin: 15px 0;
}
ul.menu-drawer:after {
	background-color: #fff;
}
.menu-drawer a {
	color: #fff !important;/* 文字色 */
	font-size: 1em;
	font-weight: 600;
	padding: 0.9em 0 0.9em 0.7em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}
.menu-drawer a:hover {
	background-color: rgba(255, 255, 255, 0.12);
}
.menu-drawer a .fas, .menu-drawer a .far,.menu-drawer a .fa,.menu-drawer a .fab {
	margin-right: 7px;
	color:  #4f7fb5;
}
.sub-menu li {
	font-size: 0.8em;
}

/* 会員向け案内はスライドメニューにのみ表示 */
#navi .menu-header > li.himawari-member-link {
	display: none;
}

/* スライドメニュー上部の会員向け案内 */
#navi-menu-content .menu-drawer > li.himawari-member-link > a {
	position: relative;
	border-bottom: 0;
	padding: 7px 8px 7px 16px;
	font-size: 13px;
	font-weight: 400;
}
#navi-menu-content .menu-drawer > li.himawari-member-link > a::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 50%;
	width: 2px;
	height: 18px;
	background: #ee7900;
	transform: translateY(-50%);
}

#navi-menu-content .menu-drawer > li.himawari-association-link > a::before {
	background: #EABB00;
}

/* スライドメニューの孫項目は子項目と同じ文字サイズ */
#navi-menu-content .menu-drawer .sub-menu .sub-menu > li {
	font-size: 1em;
}

.fa-chevron-right:before {
    content: "\f054";
    color:  #4f7fb5;
    padding-right: 7px;
}


/*---------------------------*/
/*モバイル ブログ記事一覧の文字サイズ*/
/*---------------------------*/
@media screen and (max-width: 834px){
.related-entry-card-title, .entry-card-title {
    font-size: 14px !important;
	font-weight: 500;
}

/*---------------------------*/
/*モバイル ブログページのタイトル余白 */
/*---------------------------*/
.entry-title {
	padding:0 0 10px;		
}
	}

/*----------------------------------
 フッターウィジェットのメニュー調整
-----------------------------------*/

/* フッターナビ 通常時／下線解除 */
#footer a:not(.sns-button), .footer-title {
	text-decoration: none;
}





/* ひまわり：Content Bottom CTAがある場合だけ、超広幅のCocoonラッパー固定幅を解除 */
#content-bottom-in.wrap:has(.himawari-content-bottom-cta) {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ページタイトル・日付・パンくず・フッターの幅 */
.article-header,
#breadcrumb,
#footer-in {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

/* スマートフォンのH2の行間 */
@media (max-width: 834px) {
  .article h2:not(.has-custom-css) {
    line-height: 1.4 !important;
  }
}

/* スマートフォンでは本文のボタンを中央に配置 */
@media (max-width: 834px) {
  .article .wp-block-buttons {
    justify-content: center !important;
  }
}

/* Cocoonの投稿サムネイル */
.card-thumb img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-thumb:hover img {
  transform: scale(1.03);
  opacity: 0.8;
}

/* 投稿ページの記事全体・関連記事の幅 */
.single-post .article,
.single-post .under-entry-content {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

/* 狭いPC画面では孫メニューを左側に表示 */
@media screen and (min-width: 1023px) and (max-width: 1040px) {
  #navi ul.menu-header.menu-pc > li#menu-item-460 > ul.sub-menu > li > ul.sub-menu {
    left: auto;
    right: 100%;
  }
}

/* PCナビ：お問い合わせ */
@media screen and (min-width: 1023px) {
  #navi #menu-item-1996 > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 18px !important;
    background: linear-gradient(135deg, #ffa305, #ee7900) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(238, 121, 0, .28);
    transition: transform .3s ease, box-shadow .3s ease;
  }
  #navi #menu-item-1996 .item-label::before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 7px;
  }
  #navi #menu-item-1996 > a:hover {
    background: linear-gradient(135deg, #ffbb42, #e87500) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(238, 121, 0, .36);
  }
}
@media screen and (min-width: 1023px) and (max-width: 1240px) {
  #header .logo-image img { width: 240px; height: auto; }
  #navi ul.menu-header.menu-pc > li > a { padding: 0 9px !important; }
}

/* PCヘッダー：ロゴとナビゲーションの高さ */
@media screen and (min-width: 1024px) {
  #header-container .header-container-in.hlt-top-menu .logo-header,
  #header-container .header-container-in.hlt-top-menu .logo-header img { max-height: 70px; }
  #header-container .header-container-in.hlt-top-menu .logo-header img { height: 70px; width: auto; }
  #navi, #navi-in, #navi ul.menu-header.menu-pc,
  #navi ul.menu-header.menu-pc > li { height: 70px; }
  #navi ul.menu-header.menu-pc > li > a { height: 70px; line-height: 70px; }
}
@media screen and (min-width: 1024px) and (max-width: 1240px) {
  #header-container .header-container-in.hlt-top-menu .logo-header img { width: 240px; height: auto; }
}
@media screen and (min-width: 1241px) and (max-width: 1400px) {
  #navi ul.menu-header.menu-pc > li > a { padding-left: 9px; padding-right: 9px; }
}

/* モバイル下部の電話・お問い合わせCTA */
@media screen and (max-width: 1023px) {
  .mobile-footer-menu-buttons {
    display: flex;
    background: transparent;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-footer-menu-buttons > li { flex: 1 1 50%; width: 50%; }
  .mobile-footer-menu-buttons > li > a.menu-button-in {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 56px; padding: 0 8px; box-sizing: border-box;
    text-decoration: none; color: #fff; font-weight: 700;
  }
  .mobile-footer-menu-buttons > li:first-child > a { background: #EE7900; }
  .mobile-footer-menu-buttons > li:last-child > a { background: #EABB00; }
  .mobile-footer-menu-buttons .custom-menu-icon { display: inline-flex; align-items: center; width: auto; flex: 0 0 auto; margin-right: 8px; font-size: 16px; line-height: 1; }
  .mobile-footer-menu-buttons .custom-menu-caption { width: auto; white-space: nowrap; font-size: 15px; line-height: 1.4; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
