@charset "UTF-8";
/*!
Theme Name: Cocoon Child for TAIKI WEB
Description: TAIKIWEB向けCocoon用子テーマ
Author: WAP
Template:   cocoon-master
Version:   1.0
*/

/*
メディアクエリ分岐は1023px以下
たまに834pxもあるけれど
その辺は体裁確認しながら選択してください
*/

/************************************
** 目次

** 全体の処理
** header処理
** navi処理
** footer処理
** サイト全体の見出しを整える
** 投稿ページ・固定ページ調整 
** 固定ページ共通
** ページ送りナビ
** アイキャッチ
** pagenation
** 固定ページやカテゴリページ上部に時々存在するメニュー
** スマホのScrollTableの色味とか

** ここからページ固有の内容 **************
** TOPページ
** TOPページ/メインビジュアル
** TOPページ/新着情報
** TOPページ/下のエリア
** 所属馬募集馬のページ
** 所属馬レース画像ページ
** 所属馬移動情報ページ
** 所属馬調教時計ページ
** 所属馬戦績ページ
** 出走予定
** 出走結果
** 競馬番組
** 電子カタログ
** プライバシーポリシー
** 入会案内とクラブ案内
** クラブサービス_よくある質問
** 活躍馬ページ
** 活躍馬ページ_子ページ


** マイページ関係 ***********************
** マイページ
** 会員証
** 口取り

** 汎用 ***********************
** ショートコード対応
** アイコン呼び出し用

** youtube/instagramFeed
** コンタクトフォーム用（プラグイン）
** 会員限定記事のログイン関係

************************************/

/************************************
** 全体のカラー設定
************************************/

:root {
  /* 大樹さまよりご提案カラー */
  --basecolor: #76a8b2;
  --accent1: #477079;
  --accent2: #b1d5dc;
  --accent3: #f0f7f8;
  --accent4: #e6725b;
  --accent5: #a8b276;

  /* --bgcolor: #fafafa; */
  --bgcolor: #efefef;
  --hover: #a7cbd3;
}

/************************************
** 全体の処理
************************************/

html {
  scroll-behavior: smooth;
  scroll-padding-top: 180px;
}

a {
  transition: all 0.15s ease-in;
  color: var(--basecolor);
}

a:hover {
  color: var(--accent4);
}

hr {
  border-top: dotted 1px var(--accent2);
}

h1 {
  font-size: 150% !important;
}

h2 {
  font-size: 130% !important;
}

h3 {
  font-size: 120% !important;
}

h4 {
  font-size: 110% !important;
}

h5 {
  font-size: 100% !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-green {
  color: var(--accent1);
}

.text-red {
  color: var(--accent4);
}

.text-muted {
  color: #666;
}

.text-bold {
  font-weight: bold;
}

.under {
  text-decoration: underline;
}

.btn {
  font-weight: normal !important;
}

.btn-basecolor {
  background-color: var(--basecolor) !important;
}

.btn-accent1 {
  background-color: var(--accent1) !important;
}

.btn-accent2 {
  background-color: var(--accent2) !important;
  color: var(--accent1) !important;
}

.btn-accent3 {
  background-color: var(--accent3) !important;
  color: var(--accent1) !important;
}

.btn-accent2:hover,
.btn-accent3:hover {
  background-color: var(--hover) !important;
}

.btn-accent4 {
  background-color: var(--accent4) !important;
}

.btn-accent5 {
  background-color: var(--accent5) !important;
}

.btn-disabled {
  background-color: var(--bgcolor) !important;
  color: #666;
  cursor: default;
}

.btn-disabled:hover {
  opacity: 1;
  color: #666;
}

table th,
.scrollable-table th,
table tr:nth-of-type(2n + 1) {
  background: var(--accent3);
}

.wp-caption,
.a-wrap:hover {
  background-color: var(--accent3);
}

@media screen and (max-width: 834px) {

  table th,
  table td {
    font-size: 100%;
  }
}

/************************************
** header処理
************************************/
div#header {
  display: flex;
  justify-content: space-between;
  height: 120px;
  position: sticky;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  flex: 1;
  background-color: #fff;
}

div.header_left {
  flex-grow: 1;
}

div.header_left_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 200px);
}

@media screen and (max-width: 1038px) {
  div.header_left_top {
    width: 100%;
  }
}

/* logo */
div#header header {
  height: 70px;
  padding: 0;
}

div#header header .logo {
  text-align: left;
  height: 60px;
  padding: 5px 0;
  align-content: center;
}

div#header header .logo a.site-name-text-link {
  padding-left: 0.5rem;
}

div#header header img {
  max-height: 60px;
  height: auto;
  vertical-align: middle;
}

/* sns */

div.sns {
  margin: 0 10px;
}

div.sns.sns_mobile {
  display: none;
  text-align: center;
}

div.sns a {
  padding: 0 10px;
  font-size: 30px;
}

div.sns.sns_mobile a {
  color: #fff;
}

/* マイページログイン・電子カタログ */

.header_right {
  z-index: 101;
  position: fixed;
  top: 0;
  right: 0;
}

.header_login_mobile {
  display: none;
}

.header_right>div {
  height: 70px;
  width: 200px;
  background-color: var(--accent1);
}

.header_right>div:nth-child(1) {
  background-color: var(--accent3);
  order: 2;
}

.header_right>div:nth-child(2) {
  height: 50px;
}

.header_right>div:hover {
  background-color: var(--accent2);
  transition: 0.7s;
}

.header_right>div a {
  display: inline-block;
  width: 100%;
  height: 100%;
  line-height: 70px;
  text-decoration: none;
  text-align: center;
}

.header_right>div:nth-child(2) a {
  line-height: 50px;
}

.header_right>div:nth-child(1) a:hover,
.header_right>div:nth-child(2) a {
  color: #fff;
}

.header_right>div a i {
  margin: 0 5px;
}

/*mobile処理1038px以下*/
@media screen and (max-width: 1038px) {

  div#header,
  div#header header {
    height: 60px;
  }

  div#header {
    border-bottom: solid 1px var(--accent3);
  }

  div.header_left_top {
    align-items: flex-start;
  }

  .header_right {
    display: none;
  }

  div#header header img {
    max-height: 40px;
  }

  div#header div.sns {
    display: none;
  }

  div#header div.sns.sns_mobile {
    display: block;
  }

  .header_login_mobile {
    display: block;
    padding: 0;
    line-height: 100%;
    height: 60px;
    line-height: 60px;
    font-size: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .header_login_mobile div {
    background: var(--accent3);
    padding: 0 0.5rem;
    height: 100%;
  }

  .header_login_mobile div:nth-child(1) {
    background-color: var(--accent1);
  }

  .header_login_mobile div:hover {
    background-color: var(--accent2);
  }

  .header_login_mobile a {
    color: var(--basecolor);
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
  }

  .header_login_mobile div:nth-child(1) a {
    color: #fff;
  }

  .header_login_mobile div:hover a {
    color: #fff;
  }
}

@media screen and (max-width: 399px) {
  .header_login_mobile {
    font-size: 65%;
  }
}

/************************************
** navi処理
************************************/

nav.navi {
  background-color: var(--basecolor);
}

.navi-in>ul {
  justify-content: space-around;
  flex-wrap: nowrap;
}

div#navi {
  width: 1256px;
  margin: auto;
}

@media screen and (max-width: 1600px) {
  div#navi {
    width: calc(100% - 200px);
    margin-left: 0;
  }
}

.navi-in>ul li {
  /* width: auto; */
  padding: 0;
  height: 50px;
  line-height: 50px;
  width: auto;
  background-color: var(--basecolor);
}

.navi-in>ul li a {
  padding: 0rem 1.5rem;
  color: #fff;
}

.navi-in>ul li a:hover {
  background-color: transparent;
  color: #fff;
  opacity: 0.7;
}

.navBtn {
  display: none;
}

#navi_menu .has-sub {
  display: none;
}

.navi-in>ul .sub-menu li {
  background-color: #fff;
  color: var(--basecolor);
  border-bottom: solid 1px var(--basecolor);
}

.navi-in>ul .sub-menu li:last-child {
  border: 0;
}

.navi-in>ul .sub-menu li a {
  color: var(--basecolor);
}

/*mobile処理1038px以下*/
@media screen and (max-width: 1038px) {
  div#navi {
    width: 100%;
  }

  #navi_menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--basecolor);
    z-index: 100;
    padding-bottom: 10px;
    width: 100%;
    height: calc(100vh - 60px);
    padding: 45px 0 80px;
  }

  #navi_menu ul {
    list-style: none;
    padding-left: 0;
    flex-direction: column;
    height: auto;
  }

  #navi_menu ul li {
    margin-top: 0px;
    height: auto;
    width: auto;
    min-height: 45px;
    line-height: 45px;
    text-align: left;
  }

  #navi_menu ul li.menu-open {
    text-indent: 1rem;
    background-color: #fff;
  }

  #navi_menu ul li.menu-open a {
    color: var(--basecolor);
  }

  #navi_menu ul li ul {
    border-top: solid 1px var(--basecolor);
  }

  #navi_menu ul li ul li,
  #navi_menu ul li ul li:hover {
    text-indent: 2rem;
  }

  #navi_menu ul li a {
    padding: 0 16px;
  }

  #navi_menu ul li ul.sub-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  /* #navi_menu ul li:hover ul.sub-menu {
    display: block;
  } */

  .navi-in>ul .sub-menu {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
  }

  /* navButton */

  .navBtn {
    display: block;
    width: 50px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    background-color: transparent;
  }

  .navBtn_Bar {
    position: relative;
    display: block;
    width: 26px;
    height: 4px;
    transition: all 0.15s ease-in;
  }

  .navBtn_Bar_b {
    transform: translateY(-9px) rotate(0deg);
  }

  .navBtn_Bar_c {
    transform: translateY(9px) rotate(0deg);
  }

  .navBtn_Bar_a,
  .navBtn_Bar_b,
  .navBtn_Bar_c {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    transition: all 0.15s linear;
    background-color: var(--basecolor);
  }

  .open .navBtn_Bar_a {
    opacity: 0;
  }

  .open .navBtn_Bar_b {
    transform: translateY(0) rotate(45deg);
  }

  .open .navBtn_Bar_c {
    transform: translateY(0) rotate(-45deg);
  }
}

/* タッチデバイス上での処理 */
@media (hover: hover) and (pointer: fine) {
  #navi_menu ul li:hover>ul.sub-menu {
    max-height: 1000px;
  }
}

#navi ul li.menu-open>ul.sub-menu {
  max-height: 1000px;
}

/************************************
** footer処理
************************************/
body {
  background-color: var(--basecolor);
}

main {
  z-index: 2;
  position: relative;
}

.content {
  margin-top: 0px;
}

#content {
  z-index: 2;
  position: relative;
  padding: 20px 0;
  background-color: var(--bgcolor);
}

.footer {
  margin-top: 0;
}

footer#footer {
  background-color: var(--basecolor);
  color: #fff;
}

footer#footer a {
  color: #fff;
}

/*footerbottom*/
.footer-bottom-logo,
.footer-bottom-content {
  float: none;
  position: static;
  text-align: center;
}

/* footerlink */
.navi-footer-in>.menu-footer {
  justify-content: center;
}

.navi-footer-in a:hover {
  background-color: transparent;
}

.navi-footer-in>.menu-footer li:first-child {
  border: 0;
}

.navi-footer-in>.menu-footer li:last-child {
  border-right: 0;
}

@media screen and (max-width: 834px) {
  .navi-footer-in>.menu-footer {
    display: block;
  }

  .navi-footer-in>.menu-footer li.menu-item {
    width: auto;
  }
}


/************************************
** サイト全体の見出しを整える
************************************/

h1.entry-title,
h1.archive-title {
  border-bottom: solid 5px var(--accent2);
  padding-bottom: 6px;
  position: relative;
  margin-bottom: 20px;
}

h1.entry-title::before,
h1.archive-title::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 70%;
  height: 5px;
  background: var(--basecolor);
}

.article h2,
.horse_list h2 {
  background-color: var(--basecolor);
  color: #fff;
  margin: 5px 0 15px;
  padding: 10px;
  line-height: 1.25;
}

.horse_list h2 a {
  display: inline-block;
  width: 100%;
  color: #fff;
  text-decoration: none;
}

.horse_list h2 a:hover {
  text-decoration: underline;
}


.article h3 {
  padding: 5px 10px;
  border: 0;
  border-left: solid 5px var(--basecolor);
}

.article h3 a {
  display: inline-block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #333;
}

/* 募集馬・所属馬のみ利用 */
.horse_list_title h3 {
  font-size: 100% !important;
  border: 0;
  margin: 0;
  background-color: var(--accent3);
  padding: 10px;
  line-height: 1.25;
}

.article h4 {
  padding: 3px 0;
  border: 0;
}

.article h4:before {
  content: "◆";
  color: var(--basecolor);
  margin-right: 8px;
}

.article h5 {
  padding: 10px 5px;
  border: 0;
  color: var(--basecolor);
}

/* アイコンを出さない */
h1 .fa-tags,
h1 .fa-folder-open,
h2 .fa-folder-open,
.entry-categories .fa-folder,
.horse_move .fa-folder-open,
#breadcrumb .fa-folder,
#breadcrumb .fa-file {
  display: none;
}

/************************************
** 投稿ページ・固定ページ調整 
************************************/
/*834px以下*/
@media screen and (max-width: 834px) {

  main.main,
  div.sidebar {
    padding: 10px 16px;
    padding-bottom: 20px;
  }
}

/************************************
** 固定ページ共通
************************************/
/*日付は不要でしょう*/
.page .date-tags {
  display: none;
}

/************************************
** ページ送りナビ
************************************/
/* 横並びにする */
.pager-post-navi {
  flex-direction: row;
  justify-content: space-between;
}

.pager-post-navi a {
  width: 100%;
}

/* サムネイル削除 */
.prev-post-thumb,
.next-post-thumb {
  display: none;
}

/* 所属馬募集馬カテゴリには表示させない */
.tagid-31 #pager-post-navi,
.tagid-35 #pager-post-navi,
.tagid-61 #pager-post-navi {
  display: none;
}

/* 次のページへのボタンも不要 */
.pagination-next {
  display: none;
}

/* 馬カテゴリのみカテゴリリンク */
.category-link {
  color: var(--cocoon-white-color);
  text-decoration: none;
  display: inline-block;
  margin-right: 5px;
  padding: 2px 6px;
  font-size: 90%;
  background-color: var(--basecolor);
  border-radius: var(--cocoon-badge-border-radius);
  word-break: break-all;
}

.category-link a {
  color: #fff;
  text-decoration: none;
}

/* カテゴリリンク削除 */
.no_category-link {
  color: var(--cocoon-white-color);
  text-decoration: none;
  display: inline-block;
  margin-right: 5px;
  padding: 2px 6px;
  font-size: 90%;
  background-color: var(--basecolor);
  border-radius: var(--cocoon-badge-border-radius);
  word-break: break-all;
}

/* タグへのリンクも排除 */
.no_tag-link {
  color: var(--cocoon-text-color);
  text-decoration: none;
  display: inline-block;
  margin-right: 5px;
  padding: 1px 5px;
  font-size: 90%;
  border: 1px solid var(--cocoon-x-pallid-text-color);
  border-radius: var(--cocoon-badge-border-radius);
  word-break: break-all;
}

/* 日付 */
.post-date {
  font-size: 100%;
}

/************************************
** アイキャッチ
************************************/
.eye-catch-wrap span.cat-label,
.entry-card-thumb span.cat-label {
  display: none;
}

/************************************
** pagenation
************************************/
.page-numbers {
  border: 0;
  border-radius: 0;
  background-color: var(--basecolor);
  color: #fff;
}

.pagination .current,
.page-numbers.dots {
  color: var(--basecolor);
  background-color: var(--accent3);
}

.pagination a:hover {
  background-color: var(--accent2);
  color: #fff;
}

/************************************
** 固定ページやカテゴリページ上部に時々存在するメニュー
** 個数などの調整についてはXXX_menuというClass名で分岐してます
************************************/
/* メニュー */
.head_menu {
  width: 100%;
  margin-bottom: 20px;
}

.head_menu ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  background-color: var(--basecolor);
}

.head_menu.club_menu ul {
  justify-content: space-around;
}

.head_menu ul li {
  margin: 0;
  border-right: 1px solid #fff;
  width: calc(100% / 6);
  background-color: var(--basecolor);
}

.head_menu.club_menu ul li {
  text-align: center;
}

.head_menu.privacypolicy_menu ul li {
  width: auto;
  text-align: center;
}

.head_menu.belong_menu ul li:nth-child(6) {
  border-right-width: 0;
}

.head_menu a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 5px;
  height: 100%;
}

.head_menu.club_menu a,
.head_menu.mypage_menu a,
.head_menu.head_menu.privacypolicy_menu a {
  justify-content: center;
}

.head_menu li:hover {
  background-color: var(--bgcolor);
}

.head_menu li:hover a {
  color: var(--basecolor);
}

.head_menu a i {
  font-size: 150%;
  padding-right: 5px;
}

@media screen and (max-width: 1038px) {
  .head_menu ul {
    flex-wrap: wrap;
  }

  .head_menu.privacypolicy_menu ul {
    align-items: stretch;
  }

  .head_menu ul li {
    width: calc(100% / 3);
    border-bottom: 1px solid #fff;
  }

  .head_menu.belong_menu ul li,
  .head_menu.recruitment_menu_detail ul li {
    width: calc(100% / 2);
  }

  .head_menu.recruitment_menu_detail ul li:nth-child(n+3) {
    border-bottom: 0px;
  }

  .head_menu ul li:last-child {
    border-right-width: 1px;
  }

  .head_menu.recruitment_menu ul li:nth-child(3n),
  .head_menu.recruitment_menu_detail li:nth-child(2n),
  .head_menu.club_menu ul li:nth-child(3n),
  .head_menu.belong_menu ul li:nth-child(2n) {
    border-right: 0;
  }


  .head_menu.club_menu a {
    padding: 10px 0;
  }
}

@media screen and (max-width: 520px) {
  .head_menu a {
    font-size: 70%;
  }
}

/* mypageは折りたたみになるのでちょっと運用変更 */
.mypage_menu li {
  position: relative;
}

.mypage_menu>ul .sub-menu {
  display: none;
  position: absolute;
  margin: 0;
  width: 100%;
  list-style: none;
  padding: 0;
  background-color: var(--cocoon-xxx-thin-color);
  z-index: 99;
  flex-direction: column;
}

.mypage_menu>ul .sub-menu li {
  background-color: #fff;
  color: var(--basecolor);
  border-bottom: solid 1px var(--basecolor);
  display: block;
  position: relative;
  width: 100%;
  height: 50px;
  line-height: 50px;
  font-size: 85%;
}

.mypage_menu>ul .sub-menu li:last-child {
  border: 0;
}

.mypage_menu>ul .sub-menu li a {
  color: var(--basecolor);
}

.mypage_menu>ul .sub-menu li a br {
  display: none;
}

.mypage_menu .sub-menu li a:hover {
  opacity: 0.7;
}

@media screen and (max-width: 768px) {
  .mypage_menu ul {
    background: transparent;
    align-items: flex-start;
  }

  /* .mypage_menu > ul .sub-menu {
    position: static;
  } */
  .mypage_menu>ul .sub-menu li {
    border-left: solid 1px var(--basecolor);
    border-right: solid 1px var(--basecolor);
    height: auto;
    line-height: normal;
    text-align: center;
  }

  .mypage_menu>ul .sub-menu li a br {
    display: block;
  }

  .mypage_menu>ul .sub-menu li:last-child {
    border: solid 1px var(--basecolor);
    border-top: 0;
  }
}

/************************************
** スマホのScrollTableの色味とか
************************************/

.scroll-hint.is-left-scrollable.is-right-scrollable,
.scroll-hint.is-right-scrollable.is-left-scrollable,
.scroll-hint.is-left-scrollable,
.scroll-hint.is-right-scrollable {
  background: transparent;
}

/************************************
** TOPページ
** Frontはpage-id-742 
************************************/

.page-id-742 .main {
  padding: 0;
}

.page-id-742 .entry-content {
  margin: 0;
}


/************************************
** TOPページ/メインビジュアル（meta-slider）
************************************/
.topimg {
  text-align: center;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media screen and (max-width: 1023px) {
  .topimg {
    margin-bottom: 36px;
  }
}

/*SNSアイコン*/
div.sns.front_slider_sns {
  display: none;
}

@media screen and (max-width: 1023px) {
  div.sns.front_slider_sns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    top: -20px;
    height: 0;
    padding: 0 !important;
  }
}


/************************************
** TOPページ/新着情報
************************************/

/* 枠 */
.information_wrap {
  padding-top: 0 !important;
  max-width: 960px;
  margin: auto;
}

.information_tab {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* 上のピックアップとか募集馬とか書いてあるところ */
.information_tab>label {
  flex: 1 1;
  order: -1;
  /* min-width: 70px; */
  padding: 15px 0px 10px;
  border: none;
  border-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #666;
  color: #fff;
  font-size: 120%;
  text-align: center;
  cursor: pointer;
}

.information_tab>label:nth-child(1) {
  /*新着*/
  background-color: var(--accent1);
}

.information_tab>label:nth-child(3) {
  /*募集馬*/
  background-color: var(--accent5);
}

.information_tab>label:nth-child(5) {
  /*所属馬*/
  background-color: var(--accent4);
}

.information_tab>label:nth-child(7) {
  /*レース関係*/
  background-color: var(--basecolor);
}

.information_tab>label:first-child {
  border-top-left-radius: 5px;
}

.information_tab>label:nth-last-child(-n + 2) {
  border-top-right-radius: 5px;
}

.information_tab>label:hover {
  opacity: 0.8;
}

.information_tab input {
  display: none;
}

/* 下の記事一覧が出るところ */
.information_tab>div {
  display: none;
  width: 100%;
  padding: 0.5em 1em;
  background-color: #fff;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: solid 10px #fff;
  /* 非アクティブ時の挙動 */
  overflow-y: visible;
  max-height: none;
}

/* アクティブ時の見た目 */
.information_tab label:has(:checked) {
  background-color: #fff;
  border-top: #666 solid 4px;
  padding: 11px 5px 10px;
  color: var(--cocoon-text-color);
}

.information_tab>label:nth-child(1):has(:checked) {
  /*新着*/
  border-top-color: var(--accent1);
}

.information_tab>label:nth-child(3):has(:checked) {
  /*募集馬*/
  border-top-color: var(--accent5);
}

.information_tab>label:nth-child(5):has(:checked) {
  /*所属馬*/
  border-top-color: var(--accent4);
}

.information_tab>label:nth-child(7):has(:checked) {
  /*レース関係*/
  border-top-color: var(--basecolor);
}

/* アクティブ時の挙動 */
.information_tab label:has(:checked)+div {
  display: block;
  max-height: 20rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: auto;
  touch-action: pan-y;
}

.information_tab ul {
  list-style: none;
  padding: 0;
}

.information_tab ul li {
  border-bottom: dotted 1px #ccc;
  padding: 5px 0;
  font-size: 120%;
}

.information_tab ul li a {
  text-decoration: none;
}

.information_tab ul li a:hover {
  text-decoration: underline;
}

.information_tab ul li br {
  display: none;
}

@media screen and (max-width: 1023px) {
  .information_tab>label {
    font-size: 90%;
  }

  .information_tab ul li {
    padding: 0;
    font-size: 80%;
  }

  .information_tab ul li br {
    display: block;
  }
}

/* 記事タイトルのところについているタグ */
.tag {
  margin: 0 5px;
  padding: 0px;
  color: #fff;
  font-size: 70%;
  background: gray;
  border-radius: 10px;
  width: 100px;
  display: inline-block;
  text-align: center;
}

@media screen and (max-width: 560px) {

  /* スマホでは表示させないらしい */
  .information_tab div:nth-child(n+3) ul li .tag {
    display: none;
  }
}


/************************************
** TOPページ/下のエリア
************************************/
.page-id-742 .main {
  background-color: transparent;
}

.page-id-742 .entry-content>div {
  color: var(--accent1);
  padding: 36px 0;
}

.page-id-742 h3 {
  border: 0;
  padding: 0;
  text-align: center;
  font-size: 200% !important;
}

.page-id-742 .top_sns_area {
  background: var(--basecolor);
  padding: 36px 0;
}

.page-id-742 .top_sns_area>h3 {
  color: #fff;
  margin-bottom: 0;
}


.page-id-742 .top_sns_area .top_sns {
  display: flex;
  gap: 10px;
  padding: 36px 29px;
}

.page-id-742 .top_sns>div {
  background-color: var(--cocoon-white-color);
  width: 50%;
  padding: 20px;
}

@media screen and (max-width: 1023px) {
  .page-id-742 .top_sns {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .page-id-742 .top_sns>div {
    width: 100%;
  }
}

.page-id-742 .top_sns span.fa-external-link-alt {
  display: none;
}

.page-id-742 .top_link {}

@media screen and (max-width: 1256px) {
  .page-id-742 .top_link {
    padding: 0 10px;
  }
}

.page-id-742 .top_link ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.page-id-742 .top_link ul li {
  width: calc(50% - 5px);
  margin: 0;
}

.page-id-742 .top_link ul li a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 20px;
  background-color: var(--accent1);
}

.page-id-742 .top_link ul li a:hover {
  opacity: 0.7;
}

/************************************
** 所属馬募集馬のページ
************************************/
/*一覧ページ_募集馬*/
.horse_index.recruitment td:nth-child(1) {
  text-align: center;
  width: 8rem;
}

.horse_index.recruitment td:nth-child(2) {
  min-width: 16rem;
}

.horse_index.recruitment td:nth-child(3) {
  text-align: center;
  width: 4rem;
}

.horse_index.recruitment td:nth-child(4) {
  width: 13rem;
}

.horse_index.recruitment td:nth-child(5) {
  text-align: right;
  width: 7rem;
}

.horse_index.recruitment td:nth-child(6) {
  text-align: right;
  width: 7rem;
}

.horse_index.recruitment td:nth-child(7) {
  width: 11rem;
}

.horse_index.recruitment td:nth-child(8) {
  text-align: center;
  width: 5rem;
}

/*一覧ページ_所属馬*/
.horse_index.belong td:nth-child(1) {}

.horse_index.belong td:nth-child(2) {
  text-align: center;
}

.horse_index.belong td:nth-child(3) {
  text-align: center;
}

.horse_index.belong td:nth-child(4) {}

.horse_index.belong td:nth-child(5) {}

.horse_index.belong td:nth-child(6) {}

/* 募集馬も所属馬も一覧ページはスマホだとむりやり表示する */
@media screen and (max-width: 834px) {

  .horse_index th,
  .horse_index tr:first-child {
    display: none;
  }

  .horse_index tr {
    display: flex;
    border: 1px solid var(--basecolor);
    margin: 10px 0;
    padding: 10px;
    align-content: flex-start;
    flex-wrap: wrap;
  }

  .horse_index td {
    border-width: 0 !important;
    width: auto;
    text-align: left;
  }

  /* 募集馬 */
  .horse_index.recruitment td:nth-child(1) {
    order: 2;
    width: 100%;
    text-align: left;
  }

  .horse_index.recruitment td:nth-child(1):before {
    content: "募集状況：";
  }

  .horse_index.recruitment td:nth-child(2) {
    order: 0;
    width: calc(100% - 3rem);
    min-width: auto;
  }

  .horse_index.recruitment td:nth-child(3) {
    order: 1;
    text-align: left;
    width: 3rem;
  }

  .horse_index.recruitment td:nth-child(4):before {
    content: "父：";
  }

  .horse_index.recruitment td:nth-child(4) {
    order: 3;
    width: 100%;
  }

  .horse_index.recruitment td:nth-child(5):before {
    content: "募集総額：";
  }

  .horse_index.recruitment td:nth-child(5) {
    order: 4;
    width: auto;
  }

  .horse_index.recruitment td:nth-child(6):before {
    content: "一口出資金：";
  }

  .horse_index.recruitment td:nth-child(6) {
    order: 5;
    width: auto;
  }

  .horse_index.recruitment td:nth-child(7):before {
    content: "所属（予定）：";
  }

  .horse_index.recruitment td:nth-child(7) {
    order: 6;
    width: 100%;
    text-align: left;
  }

  .horse_index.recruitment td:nth-child(8):before {
    content: "動画：";
  }

  .horse_index.recruitment td:nth-child(8) {
    width: 100%;
    text-align: left;
    order: 7;
  }

  /* 所属馬 */
  .horse_index.belong td:nth-child(1) {
    width: calc(100% - 4rem);
    order: 0;
  }

  .horse_index.belong td:nth-child(2) {
    width: 2rem;
    order: 2;
    text-align: center;
  }

  .horse_index.belong td:nth-child(3) {
    width: 2rem;
    order: 1;
    text-align: left;
  }

  .horse_index.belong td:nth-child(3):after {
    content: "歳";
  }

  .horse_index.belong td:nth-child(4) {
    order: 3;
  }

  .horse_index.belong td:nth-child(4):before {
    content: "父：";
  }

  .horse_index.belong td:nth-child(5) {
    order: 4;
  }

  .horse_index.belong td:nth-child(5):before {
    content: "母：";
  }

  .horse_index.belong td:nth-child(6) {
    order: 5;
  }

  .horse_index.belong td:nth-child(6):before {
    content: "所属：";
  }

}

/* 馬紹介部分 */
.horse_recruitment {
  display: flex;
}

.horse_recruitment .horsephoto {
  width: 320px;
}

.horse_recruitment .horseinfo ul li p,
.horsehead p {
  margin-bottom: 0.25em;
  display: inline;
}

div.horse_introduction {
  margin-bottom: 30px;
}

.horse_introduction a {
  text-decoration: none;
}


/* 親カテゴリ内で処理 */
@media screen and (min-width: 1024px) {

  /* PCサイト以上って書き方 */
  div.horse_introduction {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  div.horse_introduction>div {
    width: 50%;
  }

  div.horse_introduction>div:nth-child(1) {
    margin-right: 40px;
  }

  div.horse_introduction table {
    margin-bottom: 15px;
  }
}

/* アイキャッチ下にある馬のサムネイル部分 */
div.horse_thumb {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

div.horse_thumb img {
  aspect-ratio: 4/3;
  max-width: 150px;
}

div.horse_thumb .wp-caption {
  margin: 0;
  flex: 0 0 150px;
  border: 0;
}

/* 右側にある馬情報詳細 */
.horse_introduction table {
  margin: 0;
}

.horse_introduction table * {
  background-color: var(--accent3);
  text-wrap: wrap;
  border: 0;
}

.horse_introduction table th {
  width: 10rem;
  background-color: var(--basecolor);
  color: #fff;

  border-right: solid 5px #fff;
  border-bottom: solid 5px #fff;
}

.horse_introduction table td {
  border-bottom: solid 5px #fff;
}

/* 全体の近況一覧にちょっとmarginつけたい */
h1.recent_list {
  padding-top: 100px;
}

/* 画面下部に表示する近況一覧埋め込み */
.horse_list {
  margin-bottom: 20px;
}

.horse_child {
  border-bottom: dotted 1px var(--basecolor);
  margin-bottom: 20px;
}

/* 移動情報のときはいらないとおもう */
.horse_child.scrollable-table {
  border-bottom: 0;
}

.horse_recent .horse_list_body {
  margin: 10px;
}

/************************************
** 所属馬レース画像ページ
************************************/
.horse_list .horse_photo .horse_list_body br,
.horse_list .horse_photo .horse_list_body p:empty {
  display: none;
}

.horse_list .horse_photo .horse_list_body {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  /* 間隔を調整 */
}

.horse_list .horse_photo .horse_list_body figure,
.horse_list .horse_photo .horse_list_body p {
  margin: 0;
  width: calc(100% / 4);
  display: inline;
}

@media screen and (max-width: 1023px) {

  .horse_list .horse_photo .horse_list_body figure,
  .horse_list .horse_photo .horse_list_body p {
    width: 100%;
  }
}

/************************************
** 所属馬移動情報ページ
************************************/

table.horse_move td:nth-child(1),
table.horse_move th:nth-child(1) {
  width: 8rem;
  text-align: center;
}

table.horse_move td:nth-child(2),
table.horse_move th:nth-child(2) {
  width: 14rem;
}

table.horse_move td p {
  margin-bottom: 0;
}

/************************************
** 所属馬調教時計ページ
************************************/
.horse_time table {
  table-layout: auto !important;
  width: 100% !important;
}

.horse_time table td,
.horse_time table th {
  white-space: nowrap !important;
}

/************************************
** 所属馬戦績ページ
************************************/
.horse_record figure.wp-block-table {
  width: 100%;
}

.horse_record table {
  width: 100% !important;
  table-layout: auto !important;
}

.horse_record table td,
.horse_record table th {
  width: auto;
  white-space: nowrap !important;
}

/************************************
** 出走予定
** pageid-113
************************************/
.race_index.race_entry table {
  table-layout: auto;
}

.race_index.race_entry a {
  text-decoration: none;
}

.race_index.race_entry table th,
.race_index.race_entry table td {
  white-space: nowrap;
}

.race_index.race_entry table td:nth-child(1) {
  width: 11rem;
}

.race_index.race_entry table td:nth-child(2) {
  width: 6rem;
  text-align: center;
}

.race_index.race_entry table td:nth-child(3) {
  width: 5rem;
  text-align: center;
}

.race_index.race_entry table td:nth-child(4) {
  width: 4rem;
  text-align: center;
}

.race_index.race_entry table td:nth-child(5) {}

.race_index.race_entry table td:nth-child(6) {
  width: 6rem;
}

.race_index.race_entry table td:nth-child(7) {
  width: 6rem;
}

.race_index.race_entry table td:nth-child(8) {
  width: 4rem;
  text-align: center;
}

.race_index.race_entry table td:nth-child(9) {
  width: 4rem;
  text-align: center;
}


/* 出走予定も出走結果も一覧ページはスマホだとむりやり表示する */
@media screen and (max-width: 834px) {

  .race_index th,
  .race_index tr:first-child {
    display: none;
  }

  .race_index tr {
    display: flex;
    border: 1px solid var(--basecolor);
    margin: 10px 0;
    padding: 10px;
    align-content: flex-start;
    flex-wrap: wrap;
  }

  .race_index td {
    border-width: 0 !important;
    width: auto !important;
    text-align: left;
  }

  /* 出走予定 */
  .race_index.race_entry td:nth-child(1) {
    width: 100% !important;
  }

  .race_index.race_entry td:nth-child(2):before {
    content: "開催日：";
    text-align: left;
  }

  .race_index.race_entry td:nth-child(3):before {
    content: "競馬場：";
    text-align: left;
  }

  .race_index.race_entry td:nth-child(4):before {
    content: "レース番号：";
    text-align: left;
  }

  .race_index.race_entry td:nth-child(5):before {
    content: "レース名：";
    text-align: left;
  }

  .race_index.race_entry td:nth-child(6):before {
    content: "距離：";
    text-align: left;
  }

  .race_index.race_entry td:nth-child(7):before {
    content: "騎手：";
    text-align: left;
  }

  .race_index.race_entry td:nth-child(8):before {
    content: "斤量：";
    text-align: left;
  }

  .race_index.race_entry td:nth-child(9):before {
    content: "発走時刻：";
    text-align: left;
  }

  /* 出走結果 */
  .race_index.race_result td:nth-child(1) {
    width: 100% !important;
  }

  .race_index.race_result td:nth-child(2):before {
    content: "開催日：";
    text-align: left;
  }

  .race_index.race_result td:nth-child(3):before {
    content: "競馬場：";
    text-align: left;
  }

  .race_index.race_result td:nth-child(4):before {
    content: "レース番号：";
    text-align: left;
  }

  .race_index.race_result td:nth-child(5):before {
    content: "レース名：";
    text-align: left;
  }

  .race_index.race_result td:nth-child(6):before {
    content: "距離・馬場：";
    text-align: left;
  }

  .race_index.race_result td:nth-child(7):before {
    content: "騎手：";
    text-align: left;
  }

  .race_index.race_result td:nth-child(8):before {
    content: "斤量：";
    text-align: left;
  }

  .race_index.race_result td:nth-child(9):before {
    content: "着順：";
    text-align: left;
  }
}


/************************************
** 出走結果
** pageid-92
************************************/
.race_index.race_result table {
  table-layout: auto;
}

.race_index.race_result table a {
  text-decoration: none;
}

.race_index.race_result table th,
.race_index.race_result table td {
  white-space: nowrap;
}

.race_index.race_result table td:nth-child(1) {
  width: 11rem;
}

.race_index.race_result table td:nth-child(2) {
  width: 6rem;
  text-align: center;
}

.race_index.race_result table td:nth-child(3) {
  width: 5rem;
  text-align: center;
}

.race_index.race_result table td:nth-child(4) {
  width: 4rem;
  text-align: center;
}

.race_index.race_result table td:nth-child(5) {
  width: auto;
}

.race_index.race_result table td:nth-child(6) {
  width: 6rem;
}

.race_index.race_result table td:nth-child(7) {
  width: 6rem;
}

.race_index.race_result table td:nth-child(8) {
  width: 4rem;
  text-align: center;
}

.race_index.race_result table td:nth-child(9) {
  width: 4rem;
  text-align: center;
}

/************************************
** 競馬番組
************************************/
.raceprogram_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 1%;
}

.raceprogram_wrap br {
  display: none;
}

.raceprogram_wrap>div {
  width: calc((100% - 3%) / 4);
  text-align: left;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media screen and (max-width: 834px) {
  .raceprogram_wrap {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 0;
  }

  .raceprogram_wrap>div {
    width: calc(50% - 10px);
  }
}

/************************************
** 電子カタログ
************************************/
div.catalog_wrap {
  display: flex;
  justify-content: center;
}

div.catalog_wrap>div {
  margin: 0 10px;
  text-align: center;
  flex-basis: auto !important;
  flex-grow: inherit !important;
}

div.catalog_wrap img {
  border: solid 1px #ccc;
  max-width: fit-content;
}

div.catalog_wrap a {
  text-decoration: none;
}

/************************************
** プライバシーポリシー
************************************/
div.privacypolicy {
  margin-bottom: 1rem;
}

/************************************
** 入会案内とクラブ案内（体裁似てるので使いまわし）
************************************/
.step_block {
  border: 0 !important;
  position: relative;
  display: inline-block;
  padding: 30px;
  border-radius: 0;
  margin-bottom: 0 !important;
  margin-left: -30px;
  margin-right: -30px;
  width: calc(100% + 60px);
}

@media screen and (max-width: 834px) {
  .step_block {
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px);
  }
}

.step_block.bg1 {
  padding-top: 60px;
  background: var(--accent3);
  padding-top: 80px;
}

.step_block.bg2 {
  margin-top: 50px;
  background: #fff;
}

/* 白背景が最初の時もmarginつけない */
.step_block.bg2.first {
  margin-top: 0;
}


/* 矢印をつける */
.step_block.bg1::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-top: 50px solid #fff;
}

.step_block.bg1::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -50px;
  border: 50px solid transparent;
  border-top: 50px solid var(--accent3);
}

/* 最初と最後はつけない */
.step_block.first::before,
.step_block.finish::after {
  display: none !important;
}

/* 見出しstep */
h2.step {
  background-color: transparent;
  color: var(--accent1);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
}

h2.step:not(.step_last)::before {
  content: "";
  background-repeat: no-repeat;
  background-size: contain;
  line-height: 100px;
  height: 80px;
  padding-left: 90px;
}

@media screen and (max-width: 768px) {
  h2.step:not(.step_last)::before {
    height: 60px;
    padding-left: 65px;
  }
}

h2.step1::before {
  background-image: url("/wp-content/uploads/step01.png");
}

h2.step2::before {
  background-image: url("/wp-content/uploads/step02.png");
}

h2.step3::before {
  background-image: url("/wp-content/uploads/step03.png");
}

h2.step4::before {
  background-image: url("/wp-content/uploads/step04.png");
}

h2.step5::before {
  background-image: url("/wp-content/uploads/step05.png");
}

h2.step_last {
  justify-content: center;
}

h2.step_last span {
  position: relative;
}

h2.step_last span::before,
h2.step_last span::after {
  content: "";
  width: 50px;
  height: 50px;
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
}

h2.step_last span::before {
  left: -60px;
  background: url("/wp-content/uploads/last_left.png") no-repeat center/contain;
}

h2.step_last span::after {
  background: url("/wp-content/uploads/last_right.png") no-repeat center/contain;
  right: -60px;
}

/* blankboxにボーダーがでるのでなおしたい */
.blank-box {
  border-width: 0;
}


/* 初めての方へ向けの項目だけどあちこちで使えるとおもう */

/* SNSプラグイン調整用 */
.welcome_sns .sb_youtube,
.welcome_sns #sb_instagram {
  padding: 20px !important;
}

.welcome_sns h3 {
  border-left: 0;
}

.welcome_sns .sb_youtube h3 {
  line-height: 2rem !important;
}

/* 見出し */
.article .header_welcome {
  background-color: transparent;
  color: var(--accent1);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  font-size: 150% !important;
}

.article .header_welcome::before {
  content: "";
  background-repeat: no-repeat;
  background-size: contain;
  height: 100px;
  line-height: 100px;
  padding-left: 110px;
  vertical-align: middle;
}


@media screen and (max-width: 768px) {
  .article .header_welcome::before {
    height: 60px;
    padding-left: 65px;
  }
}

.article .header_welcome_greeting::before {
  background-image: url("/wp-content/uploads/header_welcome_greeting.png");
}

.article .header_welcome_horse::before {
  background-image: url("/wp-content/uploads/header_welcome_horse.png");
}

.article .header_welcome_farmer::before {
  background-image: url("/wp-content/uploads/header_welcome_farmer.png");
}

.article .header_welcome_plane::before {
  background-image: url("/wp-content/uploads/header_welcome_plane.png");
}

.article .header_welcome_horseshoes::before {
  background-image: url("/wp-content/uploads/header_welcome_horseshoes.png");
}

.article .header_welcome_debut::before {
  background-image: url("/wp-content/uploads/header_welcome_debut.png");
}

.article .header_welcome_race::before {
  background-image: url("/wp-content/uploads/header_welcome_race.png");
}

.article .header_welcome_souvenir::before {
  background-image: url("/wp-content/uploads/header_welcome_souvenir.png");
}

.article .header_welcome_retire::before {
  background-image: url("/wp-content/uploads/header_welcome_retire.png");
}

/* 背景 */
.bg_welocme {
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: top;
  background-size: auto;
  min-height: 200px;
}

.bg_welcome_catalog {
  background-image: url("/wp-content/uploads/bg_welcome_catalog.png");
}

.bg_welcome_website {
  background-image: url("/wp-content/uploads/bg_welcome_website.png");
}

.bg_welcome_sns {
  background-image: url("/wp-content/uploads/bg_welcome_sns.png");
}

.bg_welcome_event {
  background-image: url("/wp-content/uploads/bg_welcome_event.png");
}

.bg_welcome_observe {
  background-image: url("/wp-content/uploads/bg_welcome_observe.png");
}

.bg_welcome_bouquet {
  background-image: url("/wp-content/uploads/bg_welcome_bouquet.png");
}

.bg_welcome_name {
  background-image: url("/wp-content/uploads/bg_welcome_name.png");
}

.bg_welcome_card {
  background-image: url("/wp-content/uploads/bg_welcome_card.png");
  background-size: 190px;
}

.bg_welcome_calendar {
  background-image: url("/wp-content/uploads/bg_welcome_calendar.png");
}

.bg_welcome_owner {
  background-image: url("/wp-content/uploads/bg_welcome_owner.png");
}

.bg_welcome_shop {
  background-image: url("/wp-content/uploads/bg_welcome_shop.png");
}

.bg_welcome_winner {
  background-image: url("/wp-content/uploads/bg_welcome_winner.png");
}

.bg_welcome_bib {
  background-image: url("/wp-content/uploads/bg_welcome_bib.png");
}

.bg_welcome_photo {
  background-image: url("/wp-content/uploads/bg_welcome_photo.png");
}

.bg_welcome_order {
  background-image: url("/wp-content/uploads/bg_welcome_order.png");
}

.bg_welcome_present {
  background-image: url("/wp-content/uploads/bg_welcome_present.png");
}

.bg_welcome_farm {
  background-image: url("/wp-content/uploads/bg_welcome_farm.png");
}

/************************************
** クラブサービス_よくある質問
固有IDは【page-id-492】
************************************/
/* 大枠 */
div#faq {
  display: flex;
  align-items: flex-start;
}

/* サイドメニュー */
div.faq_menu {
  width: 300px;
  position: sticky;
  top: 150px;
  order: 0;
}

div.faq_menu ul {
  list-style: none;
  padding-left: 50px;
}

div.faq_menu ul li {
  height: 3rem;
  line-height: 3rem;
}

div.faq_menu ul li a {
  display: inline-block;
  text-decoration: none;
  color: var(--cocoon-text-color);
}

div.faq_menu ul li a:hover {
  color: var(--accent2);
}

/* メイン */
div.faq_wrapper {
  width: calc(100% - 300px);
  order: 1;
}

div.faq_main {
  width: 100%;
  margin-bottom: 1.62em;
}

div.faq_main p:empty,
div.faq_area>br {
  display: none;
}

/*1023px以下は上に配置する*/
@media screen and (max-width: 1023px) {

  div#faq {
    flex-direction: column;
  }

  div.faq_menu {
    border: 1px solid var(--cocoon-basic-border-color);
    position: relative;
    top: 0;
    margin: auto;
    width: auto;
  }

  div.faq_menu ul {
    padding: 10px 20px;
    margin-bottom: 0;
  }

  div.faq_menu ul li {
    height: 2rem;
    line-height: 2rem;
  }

  div.faq_wrapper {
    width: 100%;
  }
}

/* FAQ本文 */
div.faq_main h2:nth-child(n + 2) {
  margin-top: 1.62em;
}

div.faq_area {
  border: solid 1px var(--accent2);
  border-top: 0;
}

div.faq_wrap .faq_title {
  padding: 20px 1rem 1rem 1rem;
  text-align: left;
  position: relative;
  margin: 0;
  border-bottom: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 110%;
}

div.faq_wrap:nth-child(n + 2) .faq_title {
  border-top: solid 1px var(--accent2);
}

div.faq_wrap .faq_title::after {
  display: inline-block;
  transform: translateY(-25%) rotate(-45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid var(--basecolor);
  border-right: 3px solid var(--basecolor);
  content: "";
  transition: transform 0.3s;
}

div.faq_wrap .faq_title.open::after {
  transform: rotate(45deg);
}

div.faq_wrap .faq_body {
  position: relative;
  text-align: left;
  padding: 15px 1rem 1rem 1rem;
  margin: 0;
  display: none;
  border-top: solid 1px var(--accent3);
  font-size: 85%;
  line-height: 1.5rem;
}

/* よくある質問ページのみ文字大きくしたい */
div#faq div.faq_wrap .faq_body {
  font-size: 16px;
}

/* その他調整 */
div#page-id-492 p span {
  font-weight: bold;
}

/************************************
** 活躍馬ページ
固有classは【page-id-549】
************************************/
.activity_horse_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 1%;
}

.activity_horse_list br {
  display: none;
}

.activity_horse_list a {
  display: block;
  text-decoration: none;
  text-align: center;
  margin: 0 !important;
  width: calc((100% - 3%) / 4);
}

.activity_horse_list a:hover {
  background-color: var(--accent3);
}

.activity_horse_list a img {
  display: block;
}

@media screen and (max-width: 1023px) {
  .activity_horse_list a {
    width: 49.5%;
  }
}

/************************************
** 活躍馬ページ_子ページ
.page-template-page-activity_child をつけてあげるとスムーズ
************************************/
.page-template-page-activity_child .article h3 {
  margin-bottom: 0;
}

.activity_horse_header figure {
  margin-bottom: 0 !important;
}

@media screen and (min-width: 1024px) {

  /* PCサイト以上って書き方 */
  div.activity_horse_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
  }

  div.activity_horse_header>div {
    width: 50%;
  }

  div.activity_horse_header>div:nth-child(1) {
    margin-right: 20px;
  }

}

/* horse_thumbでも同じ処理 */
.activity_horse_thumb {
  width: 100%;
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  margin-bottom: 0;
}

.activity_horse_thumb figure {
  margin: 0;
  flex: 0 0 160px;
  border: 0;
  text-align: left;
  padding-top: 0;
}

a.btn-cagalog {
  background-color: var(--basecolor);
  color: #fff;
  margin: 0 0 0 -2px;
}

/* horse_introductionでも同じ処理 */
.activity_horse_header table {
  margin: 0;
}

.activity_horse_header table * {
  border-top: 0;
  border-bottom: solid 5px #fff;
  border-right: 0;
  border-left: 0;
  background-color: var(--accent3);
  text-wrap: wrap;
}

.activity_horse_header table th {
  width: 12rem;
  background-color: var(--basecolor);
  color: #fff;
  border-right: solid 5px #fff;
}

figure.activity_horse_record table {
  width: 100%;
}


/************************************
** マイページ
************************************/
table.buyunit th {
  text-align: left;
}

table.buyunit th:last-child {
  text-align: center;
  font-size: 110%;
  width: 100px;
}

table.buyunit figure {
  margin: 0;
}

table.buyunit img {
  width: 240px;
  margin-right: 1rem;
}

table.buyunit br {
  /* display: none; */
}

table.buyunit td:first-child {
  width: 260px;
}

table.buyunit td:last-child {
  text-align: center;
  font-size: 110%;
}

@media screen and (max-width: 560px) {
  table.buyunit th {
    text-align: center;
  }

  table.buyunit td:first-child {
    width: 300px;
    text-align: center;
  }

  table.buyunit img {
    width: 100%;
    margin-right: 0;
  }

  table.buyunit br {
    display: block;
  }
}

div.mypage_button {
  text-align: center;
}

/* 画面サイドメニュー */
div.mypage_sidemenu {
  display: flex;
  flex-direction: column;
  position: fixed;
  justify-content: center;
  align-items: center;
  z-index: 100;
  margin: 0;
  top: 50%;
  transform: translateX(-0%) translateY(-50%);
  right: 0;
}

div.mypage_sidemenu a {
  height: 120px;
  text-decoration: none;
  background-color: var(--accent1);
  color: #fff;
  text-align: center;
  padding: 15px;
  writing-mode: vertical-rl;
  border-bottom: #fff solid 1px;
}

div.mypage_sidemenu a:last-child() {
  border-bottom: 0;
}

@media screen and (max-width: 1340px) {
  .page-id-1508 .go-to-top {
    display: none;
  }

  div.mypage_sidemenu {
    flex-direction: row;
    width: 100%;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
  }

  div.mypage_sidemenu a {
    height: auto;
    width: calc(100% / 3);
    writing-mode: lr;
    border-right: solid 1px #fff;
    border-bottom: 0;
  }

  div.mypage_sidemenu a:last-child() {
    border-right: 0;
  }

  #mypage_member_deta table th {
    width: 8rem;
  }
}

/* 愛馬近況 */

.horse_latest_wrap h3 {
  border: 0;
  margin-bottom: 0.5rem;
  background-color: var(--accent3);
  padding: 10px;
  line-height: 1.25;

}

.horse_latest_wrap .horse_list {
  border-bottom: dotted 1px var(--basecolor);
  margin-bottom: 20px;
}

.horse_latest_wrap .nodata {
  border: 1px solid var(--cocoon-x-thin-color);
  text-align: center;
  font-size: 110%;
  background: var(--accent3);
  padding: .5em;
}


/************************************
** 会員証
************************************/
.memberinfo table {
  width: 500px !important;
  max-width: 100%;
}

.memberinfo table td:nth-child(1) {
  font-size: 16px;
  font-weight: normal;
  background-color: var(--accent3);
  width: 5rem;
  text-align: center;
  padding: 0;
}

.memberinfo table td:nth-child(2) {
  background-color: #fff;
  font-size: 24px;
  /* font-weight: bold; */
  padding: 0.5rem;
}

/************************************
** 口取り
************************************/
.stable_guide {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stable_guide a {
  max-width: 20%;
}

/************************************
** ショートコード対応
************************************/
/* new_listに日付を表示させたい */
.new-entry-card-date {
  display: block;
}

.new-entry-card-update-date {
  display: none;
}

/************************************
** アイコン呼び出し用
************************************/

.icon {
  padding-right: 5px;
  padding-left: 3px;
  display: flex;
  align-items: center;
}

.icon.pdf::before {
  font: normal normal normal 14px/1 "Font Awesome 5 Free";
  content: "\f1c1";
  padding-right: 5px;
  font-size: 22px;
}

.icon.inline {
  display: inline-block;
  text-decoration: underline;
}

.icon.center {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.icon.center::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);/
}

/************************************
**  youtube/instagramFeed
************************************/
.sns_insert h3 {
  border: 0;
  font-size: 200% !important;
}

.sns_insert span {
  display: none;
  visibility: hidden;
}

/************************************
**  コンタクトフォーム用（プラグイン）
************************************/
/* reCAPTCHAのバッジ部分 */
.grecaptcha-badge {
  z-index: 10000;
}

/* フォーム全体 */
.wpcf7-previous {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--cocoon-thin-color);
  background-color: #f5f8fa;
  color: #333;
  padding: 11px;
  margin: 0;
  cursor: pointer;
}

form div.button_area {
  display: flex;
  justify-content: space-evenly;
}

div.button_area input {
  border: none;
  width: 45%;
  display: inline-block;
  color: var(--cocoon-white-color);
}

div.button_area *:disabled {
  cursor: no-drop;
}

div.button_area span.wpcf7-spinner {
  display: none;
}

.wpcf7 form .wpcf7-response-output {
  /*  display: none; */
  border: 0;
  color: #dc3232;
  text-align: center;
}

form .wpcf7-list-item {
  margin-right: 10px;
}

form .acceptance {
  font-size: 120%;
}

form dl {}

form dl * {
  margin: 0;
}

form dl dt,
form .midashi {
  margin-top: 10px;
  font-size: 110%;
  font-weight: bold;
  margin-bottom: 0;
}

form dl dt span,
form .midashi span {
  font-size: 80%;
  font-weight: normal;
}

form dl dd {
  margin-left: 0 !important;
}

form dl p {
  margin: 0 !important;
}

form dl label {
  margin: 0 5px;
}

form td p,
form th p {
  margin-bottom: 0;
}

form dl .zip {
  width: 5rem;
}

form dl .tel {
  width: 5rem;
}

form dl .age {
  width: 5rem;
}

/* errorメッセージ */
/* フォームの色変えておく */
.wpcf7 input.wpcf7-not-valid,
input.custom-error,
.input-color {
  background-color: #ffe6f2;
}

form div.form_error {

  /* 本来のバリデーションを非表示にします */
  & .wpcf7-not-valid-tip {
    display: none;
  }

  /* 手動で追加したエラーメッセージを本来のバリデーションと同じ見た目に装飾 */
  & p.error_msg {
    color: #dc3232;
    display: none;
    /*初期状態は非表示 */
  }

  /* //.error内に.wpcf7-not-valid-tipがあるときはエラーメッセージを表示 */
  &:has(.wpcf7-not-valid-tip) {
    & .error_msg {
      display: block;
    }
  }
}

/* 手動埋め込みのメッセージその2（こっちはtipsと関係ない位置で表示） */
p.check_error_msg {
  color: #dc3232;
  display: none;
  /*初期状態は非表示 */
}

p.check_error_msg.check_checknum,
p.check_error_msg.check_validation {
  font-weight: bold;
}

/* readonly風 */
input.readonly {
  background-color: #efefef;
}

/* 確認画面 */
.hidden_area {
  display: none;
}

.confirm table th,
table.confirm th {
  background: var(--basecolor);
  color: #fff;
  padding: 5px;
  width: 20rem;
}

table.confirm td {
  padding: 5px;
}

table.confirm td ul {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

table.confirm td pre {
  background-color: transparent;
  margin: 0;
  border: 0;
  padding: 0;
  line-height: 1.8;
  word-break: break-all;
  white-space: pre-wrap;
}

table.confirm p {
  margin: 0;
}

@media screen and (max-width: 834px) {
  table.confirm {
    width: 100%;
    margin: auto;
  }

  table.confirm th,
  table.confirm td {
    display: block;
    text-align: left;
    width: 100%;
  }

  table.confirm th {
    border: 0;
  }

  table.confirm td {
    border-top: 0;
    min-height: 1.8rem;
    background-color: #fff;
    text-wrap: wrap;
  }
}

/* 資料請求 */
form .other_club .wpcf7-list-item {
  margin: 0;
  width: 25%;
}

@media screen and (max-width: 1023px) {
  form .other_club .wpcf7-list-item {
    width: 50%;
  }
}

@media screen and (max-width: 480px) {
  form .other_club .wpcf7-list-item {
    width: 100%;
  }
}

/* 愛馬特典 */
.aiba_present td:nth-child(1) {
  text-align: center;
}

.aiba_present td div .date,
.aiba_present td div .error_msg {
  margin-left: 1rem;
}

.aiba_present td img {
  width: 480px;
}

@media screen and (max-width: 834px) {
  .scrollable-table .aiba_present td {
    white-space: normal;
  }
}

/* 優勝記念品 */
figure.souvenir table {
  width: 100%;
}

/* 牧場見学 */
.observe_time {
  width: 50%;
}

/* 馬名応募 */
form li p {
  margin: 0;
}

/* 住所口座情報変更 */
div.mypage_address {
  border: solid 1px var(--accent2);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 10px 20px;
}

/* 出資申込み */

form dl input.invitation {
  width: 15rem;
  margin-left: 0.25rem;
}

form .investment_horse_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
}

form .investment_horse_list dt {
  text-align: center;
  width: 400px;
  margin: 0;
}

form .investment_horse_list dt img {
  border: solid 1px var(--accent1);
  border-right: 0;
}

form .investment_horse_list dd {
  margin-left: 10px;
  padding: 10px;
  width: calc(100% - 410px);
  border: solid 1px var(--accent1);
}

form .investment_horse_list h4,
form .investment_horse_list dd p {
  margin-bottom: 0.5rem;
}

form .investment_horse_list .horse_check {
  font-size: 120%;
}

form .investment_horse_list .horse_check>span {
  margin-left: 0;
}

form .investment_horse_list .horse_check input[type="checkbox"] {
  transform: scale(1.5);
}

form .investment_horse_list .horse_apply {
  font-size: 120%;
}

form .investment_horse_list .investment_column {
  display: flex;
  flex-direction: column;
}

form .investment_horse_list .investment_column select {
  width: 10rem;
  margin-bottom: 0.5rem;
}

/* 
form .investment_horse_list .investment_column>p>span {
  display: inline-block;
} */

form div.item_list {
  display: none;
}

td.invenstment_list div.form_empty_check {
  border-bottom: solid 1px var(--basecolor);
  padding: 10px;
}

td.invenstment_list div.form_empty_check:last-child {
  border-bottom: 0;
}

form td.invenstment_estimate div.faq_wrap {
  border: solid 2px var(--basecolor);
}

form td.invenstment_estimate div.faq_wrap h4 {
  margin: 0;
}

form td.invenstment_estimate div.faq_wrap h4::before {
  display: none;
}

form td.invenstment_estimate div.faq_wrap h4:after {}

form td.invenstment_estimate div.faq_wrap .faq_body {
  border: 0;
  padding-top: 0;
}

form td.invenstment_estimate div.faq_wrap div.form_empty_check,
form td.invenstment_estimate .totalarea {
  border-top: solid 1px var(--basecolor);
}

form td.invenstment_estimate p.totalCost {
  display: inline-block;
}


@media screen and (max-width: 768px) {
  form .investment_horse_list {
    width: 100%;
    margin: auto;
    flex-direction: column;
    gap: 0;
  }

  form .investment_horse_list .investment_column select {
    width: 100%;
  }

  form .investment_horse_list dt {
    display: none;
  }

  form .investment_horse_list dd {
    display: block;
    text-align: left;
    width: 100%;
    margin: 10px 0;
    min-height: 1.5rem;
    background-color: #fff;
    text-wrap: wrap;
    padding: 10px;
  }

  form .investment_horse_list .investment_column>p>span {
    display: inline;
  }

  form dl input.invitation {
    display: block;
    width: 100%;
    margin-left: 0;
  }

  form dl dd.invitation br {
    display: none;
  }
}

/************************************
**  会員限定記事のログイン関係
************************************/
div.member_only {
  display: none;
}

div.button_area {
  text-align: center;
  margin: 1rem auto;
}

p#error-message {
  color: #dc3232;
  margin-bottom: 0;
}

div#modal_wrap {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 450px;
  background-color: #fff;
  border-radius: 5px;
  z-index: 2001;
  padding: 50px 2rem;
  border: solid 1px #333;
}

@media screen and (max-width: 834px) {
  div#modal_wrap {
    width: 100%;
  }
}

div#modal_wrap input {
  margin-bottom: 10px;
}

/* モーダルオーバーレイ */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100vw;
  height: 100vh;
  z-index: 1000;
}

/* 閉じる */
#modal_close {
  position: absolute;
  top: 10px;
  right: 13px;
  z-index: 1001;
  border: 0;
  font-size: 18pt;
  background-color: transparent;
  color: #666;
}

/* パスワード表示非表示 */
.pw-field {
  position: relative;
  display: grid;
}

.pw-field input {
  width: 100%;
  padding-right: 2.5rem;
}

.pw-toggle {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #666;
}

.pw-toggle:hover {
  color: #333;
}

.pw-toggle:focus-visible {
  outline: 2px solid #3aa;
  outline-offset: 2px;
  border-radius: .5rem;
}

.pw-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.pw-toggle .icon_off {
  display: none;
}

.pw-toggle[aria-pressed="true"] .icon_on {
  display: none;
}

.pw-toggle[aria-pressed="true"] .icon_off {
  display: inline;
}

/* 画面外では非表示（視覚的に隠すラベル用） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

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

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