/*
Theme Name: xeory_base-child
Version: 1.0
Template: xeory_base
by Yuriko.Seo
*/

/* 背景色 */
html body {
background: #ffffff !important; 
}

/* 基本 */
html body {
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;/*フォントの指定*/
  font-size: 1.125rem;/*文字の大きさ*/
  line-height: 1.4;/*行間の指定*/
  margin: 0;
  padding: 0;
  color: #000;/*サイトのデフォルトとなる文字の色を指定*/
}

/* 画像 */
.wp-block-image img {
  box-sizing: border-box;
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
  padding-bottom: 20px;
}

/* PCとモバイル表示切替 */
.pc {
  display: block;
}
.sp {
  display: none;
} 



/* ヘッダー部分の高さ */
#header{
  min-height: 400px;
}

/* ヘッダーとコンテンツの間のスペース削除 */
.home #content {
  padding-top:10px !important;
}

/* コンテンツを囲う枠線を消す */
.cat-content,
article.post,
article.page,
article.wp101,
article.seo101 {
  border: 0 !important;
}

/* スライドショー */
#photo img {
width: 200px;
height:120px;
}

.post-content ul {
  list-style: none !important;
}


/* 見出し */
#mainvisual {
  text-align: center;
}

h1#mainvisual{
  position: absolute;
  font-size: clamp(1.453em, 1.453rem + ((1vw - 0.2em) * 1.722), 2.4em);
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap; /* 折り返しを無効化 */
  top: 13%;
  left: 18%;
  display: inline-block;
  background: rgba(255,255,255,.8);
  padding: .5em
}

body h2.midashi_sapuli {
  font-size: 1.68rem;
  padding: 0.5em 1em;
  border-bottom: solid 5px #ff7600;
}

body h3.heading_shousai{
  font-size: 1.2rem;
  font-weight: 400;
  margin:20px 0 0 0;
  border-left: unset;
  padding: 0 1rem;
}

.heading_shousai_midashi{
  border-top: solid 3px #D6D6D6;
  border-bottom: solid 1px #d6d6d6;
}

.heading_shousai_line{
  margin-right: 20px; /* 画像と線の間の余白 */
  border-right: 0.13em solid #ccc; /* 線の色と太さを指定 */
  padding-right: 20px; /* 線の内側に余白を設定 */
  height: 80px;
}


/* 段落 */
p {
margin: 20px 10px 10px;
}

p.heading_shousai{
  padding: 0 1rem;
}

/* 目次 */
.ark-block-toc {
  background-image: repeating-linear-gradient(-45deg, rgba(255, 230, 232, 0.2), rgba(255, 230, 232, 0.2) 1px, rgba(255, 230, 232, 0.1) 0, rgba(240, 161, 194, 0.1) 3px);
  border-bottom: 3px double #f0a1c2;
  border-top: 3px double #f0a1c2;
}

/* アコーディオンメニュー */
.ark-block-accordion{
  margin-top: 20px;
  margin-bottom:20px;
}
.ark-block-accordion__title {
    background: var(--ark-color--gray,#FEF5F7);
}

.ark-block-accordion__body {
  height: auto;
  opacity: 1;
  overflow: hidden;
  padding: 1em;
  position: relative;
  transition: padding .25s,height .25s,opacity .25s,visibility .25s;
  border: 1px solid #aaa;
  padding: 1em;
}


/* 検索エリア　アコーディオンメニュー */
.is-style-box-group{
  border: 2px solid #ccc; /* 枠線の色と太さ */

}
.is-style-box{
    border-radius: 5px; /* 角を丸める場合 */
    padding: 10px;
    margin: 15px 0 0 0;
}

.ark-block-accordion.is-style-box .ark-block-accordion__title {
  background: #f0f0f0;
}

.ark-block-accordion.is-style-box .ark-block-accordion__body {
  border-top:1px dashed var(--ark-color--border,#aaa);
}

.select{
  padding: 8px 30px 8px 10px;
}

.select_area{
  padding: 10px;
  border: solid 1px #f0f0f0;
}

.ark-keep-mt--s>:not(:first-child) {
  --ark-mt--inner:var(--ark-mt--s,0rem);
}

[class*=ark-keep-mt]>* {
  margin-bottom: 0;
  margin-top: var(--ark-mt--inner,0rem)
}

.button_area{
  text-align: center;
}

.button-start{
  height: 50px;
  line-height: 46px;
  font-size: 14px;
  width: 80%;
  background: #fff;
  border: 2px solid #333;
  transition: color .3s;
  margin-bottom: 15px;
}

.button-reset{
  width: 70%;
  border: 1px solid #777;
  color: #777 !important;
  font-size: 11px;
  height: 40px;
  line-height: 36px;
  margin-bottom: 15px;
}

/* 成分比較表 */
figure.seibun_hikaku table,
table.seibun_hikaku {
    background-color: #FFF !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background-color: #FFF4F9;
    table-layout: fixed;
    width: 100%;
}

figure.seibun_hikaku td, 
figure.seibun_hikaku th {
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word; /* 追加：単語の途中でも折り返し可能 */
    padding: 10px; /* 余白を追加して見やすく */
}

/* プラセンタ比較表 */
.placenta_hikaku{
	background-image: url(http://placenta.xin-bc.com/test-konenki/wp-content/uploads/2025/02/placenta_hikaku_bg01.png);
	background-repeat:  no-repeat;
	width:100%;
	height:451px;
	padding-top:23px;
	padding-left:300px;
}

/* 目的別サプリメント比較表 */
figure.hikakuhyou table {
    border-collapse: separate !important;
    border-spacing: 10px !important;
	background-color: #FFF4F9;
}

figure.hikakuhyou td, 
figure.hikakuhyou th {
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word; /* 追加：単語の途中でも折り返し可能 */
	min-width: 200px; /* 最小幅を指定 */
}



table a.button {
width: 100%;
text-align: center;
}

a.button {
background: #6ECD3C
}

a.button {
display: inline-block;
text-decoration: none;
color: var(--wp--preset--color--white);
margin-top: 10px;
border-radius: 6px;
font-weight: 600;
font-size: 1em;
padding: 6px 14px;
transition: all ease .2s
}

table a.button.official {
background: #F8909E !important
}

/* ◎ */
.hyoka1{
  background-image: url('https://placenta.xin-bc.com/menopausal_supplements/wp-content/uploads/2024/12/hyoka_img01_2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-size: 175px 75px;
}

/* × */
.hyoka2{
  background-image: url('https://placenta.xin-bc.com/menopausal_supplements/wp-content/uploads/2024/12/hyoka_img02_2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-size: 175px 75px;
}

/* △ */
.hyoka3{
  background-image: url('https://placenta.xin-bc.com/menopausal_supplements/wp-content/uploads/2024/12/hyoka_img03.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-size: 175px 75px;
}

/* 〇 */
.hyoka4{
  background-image: url('https://placenta.xin-bc.com/menopausal_supplements/wp-content/uploads/2024/12/hyoka_img04.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-size: 175px 75px;
}




/* 商品詳細 */
:where(.wp-block-columns.is-layout-flex) {
  gap: 1em;
}

.syousai_box{
  padding-top: 20px;
  padding-bottom: 30px;
}

.sapuli_hyoka{
  padding: .8rem;
  border-top: solid 1px #d6d6d6;
  border-bottom: solid 1px #d6d6d6;
}

.syousai_gazou{
  border: 1px solid #D6D6D6;
}

.SapuliDesc{
  padding: 0 .8rem .4rem .8rem;
}

.Sapuli_riyuu{
  padding: .8rem;
  border-top: solid 1px #d6d6d6;
  border-bottom: solid 1px #d6d6d6;
}

.ark-block-button__link{
  line-height: 1.0;
}

.ark-block-button__link .ark-block-button__text {
  font-size: 16px;
}

.Sapuli_riyuu_box{
  margin-bottom: 100px !important;
}

/* サプリの飲み方 */
.attention_box{
  background-image: url('https://placenta.xin-bc.com/menopausal_supplements/wp-content/uploads/2024/12/attention_box_1.png');
  background-repeat: no-repeat;
  background-position: left;
  background-size: contain;
  width: 720px;
  height: 220px;
  padding-left: 230px;
  padding-top: 50px;
  padding-right: 40px;
}

.attention_box p {
  margin-bottom: 10px !important;
}

/* 検索エリア */
/* 親カテゴリのチェックボックスを非表示 */
.cat-item-28 > label > input[type="checkbox"] {
  display: none !important; /* 親カテゴリのチェックボックスを非表示 */
}

.cat-item-29 > label > input[type="checkbox"] {
  display: none !important; /* 親カテゴリのチェックボックスを非表示 */
}

/* 「お悩み・目的を選択」のラジオボタンを非表示にする */
.searchandfilter input[type="radio"][value="28"] {
  display: none !important;
}



/* チェックボックスラベルに対してのスタイル */
.searchandfilter .cat-item label {
  display: block; /* 改行を挿入 */
  padding: 10px; /* 内側の余白 */
  background-color: #fff; /* 背景色を白に設定 */
  border: 1px solid #ccc; /* 四角形の枠線 */
  border-radius: 5px; /* 四角の角を丸くする */
  box-sizing: border-box; /* パディングとボーダーを含めたサイズ計算 */
}

.side-widget ul li {
  padding: 0 !important;
  border-bottom: 0 !important;
  width: 100%;
}

.cat-item-29{
  margin-top: 30px;
}

/* 親カテゴリのラベルに背景色を適用（子カテゴリがある場合のみ） */
.searchandfilter .cat-item > label {
  background-color: #f0f0f0; /* 親カテゴリの背景色を薄いグレーに変更 */
  padding: 13px;
  border-radius: 5px;
  font-weight: bold; /* 親カテゴリのラベルを太字に */
}

.searchandfilter .cat-item ul.children label {
  font-weight: normal; /* 子カテゴリのラベルは通常の太さに */
}

/* 子カテゴリが存在する親カテゴリにのみ背景色を適用 */
.searchandfilter .cat-item > ul.children {
  display: block; /* 子カテゴリを表示 */
}

/* 親カテゴリのラベルの背景色を薄いグレーに変更（子カテゴリを持つカテゴリにのみ適用） */
.searchandfilter .cat-item > ul.children > li > label {
  background-color: transparent; /* 子カテゴリの背景色は透明 */
}


/* 親カテゴリのラベルにホバー時の背景色変更 */
.searchandfilter .cat-item > label:hover {
  background-color: #dcdcdc; /* ホバー時に少し濃いグレーに変更 */
}

/* フォーム内の要素は左寄せのまま */
.searchandfilter {
  display: block; /* フォーム自体は通常のブロックレベル要素 */
  padding: 10px;
}

/* 検索するボタンだけを中央に配置 */
.searchandfilter input[type="submit"] {
  display: block; /* ボタンをブロック要素にして横幅いっぱいに広げる */
  margin: 20px auto 0; /* 上部に余白を追加し、左右を自動的に中央寄せ */
  background-color: #4CAF50; /* 背景色を緑に設定 */
  color: white; /* 文字色を白に設定 */
  font-size: 16px; /* フォントサイズを設定 */
  padding: 10px 50px; /* ボタンの内側に余白を設定 */
  border: none; /* 枠線を削除 */
  border-radius: 5px; /* ボタンの角を丸くする */
  cursor: pointer; /* ボタンにマウスカーソルを合わせたときに指のアイコンに */
  transition: background-color 0.3s ease; /* 背景色が変わる時のスムーズなトランジション */
}

/* ホバー時のスタイル */
.searchandfilter input[type="submit"]:hover {
  background-color: #45a049; /* ホバー時に背景色を少し濃く */
}

/* フォーカス時のスタイル */
.searchandfilter input[type="submit"]:focus {
  outline: none; /* フォーカス時のアウトラインを削除 */
  box-shadow: 0 0 5px rgba(72, 183, 83, 0.8); /* フォーカス時にボックスシャドウを追加 */
}

/* ボタンが無効のときのスタイル */
.searchandfilter input[type="submit"]:disabled {
  background-color: #cccccc; /* ボタンが無効な時の背景色 */
  cursor: not-allowed; /* 無効時にカーソルを変更 */
}

/* リセットボタン */
.reset-button-area{
  text-align: center;
}

.reset-button{
  width: 40%;
  border: 1px solid #777;
  color: #777 !important;
  font-size: 11px;
  height: 40px;
  line-height: 36px;
  margin-bottom: 15px;
}
/* 検索結果ページ（アーカイブ） */
.post-loop-wrap article {
  margin-bottom: 0px !important;
}

/* ホームへ戻る */
.backhome_area {
  text-align: center;
  background: #7bdcb5;
  color: #000;
  padding: 0.5em 1em; /* パディングを調整して幅を小さく */
  max-width: 300px;
  margin: 0 auto;
  border-radius: 30px;
}

.backhome_area a {
  color: #000; /* リンク文字を黒に */
  text-decoration: none; /* 下線を消す */
}

.backhome_area a:hover {
  color: #333; /* ホバー時のリンク色を少し濃くする */
}

/*空白の調整*/
.cat-content,
article.page {
  margin-bottom: 0px !important;
}

.side-widget {
  margin-bottom: 5px !important;
  padding-bottom: 5px !important;
}

/* ポイント説明 */
h2.pointh2 {
  position: relative;
  padding: 1.5rem !important;
  text-align: center;
  border: 2px solid #1c1c1c !important;
  background: #fff;
	color: #1c1c1c;
}

h2.pointh2::before,
h2.pointh2::after {
  position: absolute;
  content: '';
}

h2.pointh2::before {
  top: -40px;
  left: calc(50% - 40px);
  width: 80px;
  height: 80px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
}

h2.pointh2::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
}

h2.pointh2 i {
  font-size: 30px;
  font-size: 3rem;
  line-height: 60px;
  position: absolute;
  z-index: 1;
  top: -40px;
  left: calc(50% - 40px);
  width: 80px;
  height: 60px;
  text-align: center;
}

h2.pointh2 span {
  position: relative;
  z-index: 1;
}

.is-style-sme-speech-top {
  display: block; /* ブロック要素にする */
  width: fit-content; /* 吹き出しの幅を内容に合わせる */
  margin: 0 auto; /* 中央寄せ */
}

.speech-container { /* 親要素に適用 */
  display: flex;
  justify-content: center; /* 水平方向に中央寄せ */
  align-items: center; /* 必要なら垂直方向にも調整 */
}

/* プラセンタ選びここが重要 */
        .placenta-container {
            max-width: 800px;
            margin: 0 auto;
            background: linear-gradient(to right, #fff5f8, #ffe0e6);
            padding: 20px;
            border-radius: 10px;
            border: 3px solid #df909e;
        }
        .placenta-header {
            background: #df909e;
            color: white;
            text-align: center;
            padding: 15px;
            font-weight: bold;
            border-radius: 5px;
            border: 2px solid #df909e;
        }
        .placenta-section {
            background: white;
            padding: 50px 15px 15px;
            margin-top: 35px;
            border-radius: 5px;
            border: 2px solid #df909e;
            position: relative;
        }
        .placenta-section h3 {
            color: white;
            background: #df909e;
            display: inline-block;
            padding: 5px 10px !important;
            border: 2px solid #df909e !important;
            border-radius: 5px;
            position: absolute;
            top: -15px;
            left: 15px;
            font-size: 16px;
            font-weight: bold;
            margin: 0 !important;
            line-height: 1;
        }
        .placenta-list {
            background: #f0d7db;
            padding: 15px;
            margin-top: 15px;
            border-radius: 5px;
            border: 2px solid #df909e;
        }
        .placenta-list h3 {
            margin: 0 0 10px !important;
            font-size: 20px !important;
            border-left: none !important;
            padding: 5px 10px !important;
            text-align: center !important;
        }
        .placenta-list ul {
            list-style: none;
            padding: 0;
        }
        .placenta-list ul li {
            padding: 5px 0;
        }





@media (max-width: 767px) {
  .pc {
      display:none;
  }

  .sp {
      display: block;
  }

/* トップ画像 */
#header {
	min-height: 320px !important;
}
	
h1#mainvisual {
  white-space: normal;
  top: 10%;
  left: 8%;
  margin-right: 10px;
}

}

@media screen and (max-width: 767px) {
	/* 基本 */
	html body {
		font-size: 17px;/*文字の大きさ*/
	}

	/* padding */
	.post-content{
    padding: 2px !important;
	  }
	
	/* チェックリスト */
	.check_list{
		padding: 20px 5px;
		line-height: 32px !important;
	}
	
  /* トグルメニュー関連 */
  #gnav {
      display: none; /* 初期状態では非表示 */
      position: fixed; /* 画面上部に固定 */
      top: 0; /* 上部からの距離を0に */
      left: 0; /* 左端に配置 */
      right: 0; /* 右端に配置 */
      background-color: #fff; /* 背景色を指定 */
      z-index: 9999; /* メニューを最前面に */
      height: 50%; /* メニュー全体を画面全体に広げる場合（必要に応じて調整） */
      overflow-y: auto; /* コンテンツが多い場合にスクロール可能に */
      transition: transform 0.3s ease-in-out; /* スムーズなアニメーション */
      transform: translateY(-1%); /* 初期位置は画面の外 */
  }
  /* メニューが開いたとき */
  body.menu-open #gnav {
      display: block;
      transform: translateY(0); /* メニューを画面内にスライド */
  }

  /* トグルボタンのスタイル */
  #header-menu-tog {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 10000; /* ボタンを最前面に配置 */
  }

  #gnav ul li a {
    font-size: 1.3em;
    font-weight: 1000;
  }

  #gnav ul li .sub-menu li a {
    font-size: 1.2em;
  }

	/* プラセンタ比較表 */
	.placenta_hikaku{
		background-image: url(https://www.bestchoice-products.com/konenki/wp-content/uploads/2025/02/sp_placenta_hikaku_bg01.png);
		background-repeat:  no-repeat;
		width:100%;
		height:781px;
		padding-top:26px;
		padding-left:210px;
		background-size: cover;
	}
	
  /* サプリの飲み方 */
  .attention_box{
    background-image: url('https://placenta.xin-bc.com/menopausal_supplements/wp-content/uploads/2024/12/attention_box2.png');
    background-repeat: no-repeat;
    background-position: left;
    background-size: 100%;
    width: 100%;
    height: 350px;
    padding-top: 23px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .attention_box .attention_box_point {
    padding-left: 55px;
  }

  /* 検索ボックス */
  #gnav.active{
    height: revert;
  }

  #gnav ul li {
    width: 100%;
  }

  /* トップへボタン */
  .pagetop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    bottom: 38px !important;
    background-color: #2b2b2b;
    border-radius: 50%;
    box-sizing: border-box; /* 寸法計算を含める */
    -webkit-transform: translateZ(0); /* iOSでのレンダリングバグを防ぐ */
    transform: translateZ(0);
  }

  /* アイコン全体の背景色 */
  .pagetop span {
    background: #2b2b2b !important;
  }

  /* アイコンのスタイル */
  .pagetop i {
    font-size: 24px;
    color: #fff;
    margin: 0;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  /* アイコンの擬似要素のリセット */
  .fa-angle-up:before {
    color: #fff;
    position: static !important;
  }

  /*追従バー*/
  .BottomBar {
    width: 100%;
    height: 60px;
    background: #F6FBE1;
    display: flex;
    position: fixed;
    bottom: 0;
    border-top: 1px solid #D6EAA8;
    z-index: 100
  }

  .BottomBar a {
      display: block;
      width: 33%;
      font-size: .85rem;
      color: #4e4e4e;
      font-weight: 700;
      text-align: center;
      line-height: 60px;
      text-decoration: none;
      border-right: 1px solid #D6EAA8
  }

  .BottomBar a:nth-child(3) {
      border-right: none
  }

  .BottomBar a:visited {
    color: #000 !important; /* 訪問済みリンクの色 */
    text-decoration: none !important;
  }

  .BottomBar a:active {
    color: #000 !important; /* クリック中のリンク色 */
    text-decoration: none !important;
  }




}