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

/************************************
** 子テーマ用のスタイルを書く
************************************/
body {
	background: #fff8f9;
}

/* サイト名の横にロゴイメージ挿入 */
.logo.logo-header.logo-text a::before {
	content: "";
	display: inline-block;
	width: 5em;
	height: 5em;
	background: url(https://www.nubra.jp/nubra-communication/wp-content/uploads/2026/08/logo.png) no-repeat;
	background-size: 100% auto;
	vertical-align: middle;
	margin-right: 1em;
}

/* ------------------------
	サイドバー 
 ------------------------*/

/* サイドバーメニューをアコーディオン仕様に */
.widget_nav_menu .menu-item-has-children > .sub-menu {
  display: none;
}

.widget_nav_menu .menu {
	font-size: 16px;
}

.widget_nav_menu .sub-menu li a {
	font-size: 14px;
}

.menu li a:has(+ .sub-menu)::after {
	content: "\f107";
	display: inline-block;
	margin-left: 1em;
  font: normal normal normal 14px / 1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
}


/* ------------------------
	グローバルナビ 
 ------------------------*/
/* グローバルナビ：子メニューはJSで開閉 */
#navi .menu-item-has-children > .sub-menu {
  display: none;
	width: 350px;
}

/* JSで開いたときだけ表示 */
#navi .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

#navi .menu-pc > li {
	width: auto;
}

#navi .menu-pc > li:not(:last-child) {
	margin-right: 1em;
}

#navi .menu-top > li a {
	padding-right: 20px;
	padding-left: 20px;
}

#navi .menu-top > li a {
	align-items:center;
}

#navi .menu-top > li > a::before {
	content: "";
	display: block;
	width: 2.5em;
	height: 2.5em;
}

#navi .menu-top > li:nth-child(1) > a::before {
	background: url(https://nubra.itembox.cloud/item/top/header/nav_shop.svg) no-repeat;
	background-size: 100% auto;
}

#navi .menu-top > li:nth-child(2) > a::before {
	background: url(https://nubra.itembox.cloud/item/top/header/nav3.svg) no-repeat;
	background-size: 100% auto;
}

#navi .menu-top > li:nth-child(3) > a::before {
	background: url(https://nubra.itembox.cloud/item/top/header/nav8.svg) no-repeat;
	background-size: 100% auto;
}

#navi .menu-top > li:nth-child(4) > a::before {
	background: url(https://nubra.itembox.cloud/item/top/header/nav_my.svg) no-repeat;
	background-size: 100% auto;
}

#navi .menu-top > li:nth-child(5) > a::before {
	background: url(https://nubra.itembox.cloud/item/top/header/nav_cart.svg) no-repeat;
	background-size: 100% auto;
}

#navi .menu-pc .sub-menu li {
	height: 36px;
}

#navi .menu-mobile > li:first-child {
	width: 100%;
}

/* 子メニューの文字省略を解除 */
#navi .sub-menu .item-label {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  width: auto;
	line-height: 1.5;
	font-size: 12px;
}

/* モバイル子メニューのデフォルト設定変更 */
#navi .navi-in > .menu-mobile li ul li {
  width: 100%; 
  height: auto; 
  line-height: auto; 
  text-align: left;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}

/* 子メニューを左寄せに */
.navi-in > ul .caption-wrap {
  justify-content: flex-start;
}

/* ------------------------
	記事内 
 ------------------------*/
/* 商品紹介ブロック */
.product_link_block {
	background: #fffafa;
	padding: 1.6em;
	border: 1px solid #dcdcdc;
}

.product_link_block figure {
	margin-bottom: 1.6em;
}

.product_link_block table {
	background: #fff;
}

.product_link_block .paragraph {
	margin-bottom: 1em;
}

.product_link_block .btn_copy {
	font-size: 14pt; 
	color: #e0417e;
	text-align: center;
}

.product_link_block .note {
	font-size: 12px;
	color: #808080;
}

.product_link_block .cp_btn {
  display: block;
  position: relative;
  width: 300px;
	margin: 0 auto;
  padding: 0.8em 35px;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  background: #EC407A;
  color: #fff;
  transition: .4s;
	font-size: 14px;
}

.product_link_block .cp_btn::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  margin-top: -7px;
  right: 15px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* お客様の声などの囲み */
.box25 {
	background: #fff0cd;
	padding: 1.6em;
	border-radius: 10px;
}

/* QA吹き出し */
.cp_qa dt,
.cp_qa dd {
  padding: 1em;
  border-radius: 10px;
  position: relative;
	margin-bottom: 1em;
}
.cp_qa dt {
	background: #ffe0b2;
}
.cp_qa dd {
  background: #b2ebf2;
}
.cp_qa dt::before {
	content: "Q:";
	display: inline-block;
	margin-right: 0.5em;
	font-weight: bold;
}
.cp_qa dd::before {
	content: "A:";
	display: inline-block;
	margin-right: 0.5em;
	font-weight: bold;
}
.cp_qa dt::after {
	content: "";
	display: block;
	position: absolute;
	width: 0;
	height: 0;
  left: -0.4em;
	top: 0.7em;
	border-style: solid;
  border-width: 5px 8.7px 5px 0;
  border-color: transparent #ffe0b2 transparent transparent;
}
.cp_qa dd::after {
	content: "";
	display: block;
	position: absolute;
	width: 0;
	height: 0;
  right: -0.4em;
	top: 0.7em;
	border-style: solid;
  border-width: 5px 0 5px 8.7px;
  border-color: transparent transparent transparent #b2ebf2;
}

/* 商品3列リンクボックス */
.three_products {
  text-align: left; 
  padding: 20px; 
  width: 100%; 
  background: #fffafa; 
  border: 2px solid #fff0f5;
}
.three_products .products_list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
	padding: 0;
	margin: 0;
}
.three_products .products_list li {
	flex-basis: 31%;
	margin-bottom: 1em;
	font-size: 0.75em;
}

.three_products .products_list li:nth-last-child(-n+3) {
	margin-bottom: 0;
}

.three_products .products_list::after {
	content:"";
  display: block;
  width: calc(100% / 3 - 20px);
}

.three_products .products_list li a {
	display: block;
	margin-bottom: 0.6em;
}

.three_products .products_list li .product_price {
	color: #e0417e;
	display: block;
}

/* 段落中に入っている画像の下マージン */
.entry-content .wp-block-paragraph > img {
	margin-bottom: 1em;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /* 子メニューの幅を変更 */
	#navi .menu-item-has-children > .sub-menu {
		width: 200px;
	}
}

/*834px以下*/
@media screen and (max-width: 834px){
  /* 商品3列リンクボックス */
	.three_products .products_list {
		flex-direction: column;
	}
	.three_products .products_list li {
		flex-basis: auto;
	}
	.three_products .products_list li:nth-last-child(-n+3) {
		margin-bottom: 1em;
	}
}

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