/*
Theme Name:RIKYU child
Theme URI:https://tcd-theme.com/tcd067
Description:WordPressテーマ「RIKYU」の子テーマ
Template:rikyu_tcd104
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0
*/

/*
  ここから下にCSSを追記してください。
*/

/* アカウント削除ボタンをすべてのデバイスで非表示 */
.woocommerce-account .delete-account,
.woocommerce-account form[action*="delete-account"] {
  //display: none !important;
}

body,.l-header,.p-news-ticker__inner,
.p-wc-dropdown__item-field-inner, #review_form_wrapper,
.p-archive03-sort-filter, .p-author-profile--archive,
:is(.tcdce-body, .editor-styles-wrapper) :is(th, td),
.p-loading-screen__inner,
.p-body .p-faq-list__desc,
.woocommerce ul.order_details{
  background-image: url('https://and-ehon.jp/wp-content/uploads/2025/11/bg.jpg');
  background-repeat: repeat;
  background-size: 100px;
}

.p-archive--post-item__link, .p-toc, .p-author-profile,
.is-header-type--light .p-megamenu, .tcdce-tab__field,
.is-header-type--light .p-global__nav .sub-menu,
.l-header__search-form input{
  background-image: url('https://and-ehon.jp/wp-content/uploads/2025/11/flow_bg.jpg');
  background-repeat: repeat;
  background-size: 100px;
}

.box-867, .box-439,
.p-body :not(.wp-block-table) > table th{
  background-image: url('https://and-ehon.jp/wp-content/uploads/2025/11/flow_bg.jpg') !important;
  background-repeat: repeat!important;
  background-size: 100px!important;
}

.woocommerce-info,
.woocommerce-message,
.p-wc-single-bottom-headline{
  background-color: transparent;
  margin: 0 0 3em;
}

.cf-turnstile {
display: block;
text-align: center;
margin-top: 20px;
}

/* ===== USPカード（上2つ 横並び／下1つワイド） ===== */

:root{
  --usp-bg: url('https://and-ehon.jp/wp-content/uploads/2025/11/bg.jpg');
  --usp-card-bg: #fff;
  --usp-card-radius: 16px;        /* 角丸 */
  --usp-card-shadow: 0 8px 24px rgba(0,0,0,.06);
  --usp-border: 1px solid rgba(0,0,0,.06);
  --usp-gap: 16px;
  --usp-text: #333;
}

.usp{
  background: var(--usp-bg);
  background-repeat: repeat;
  background-size: 100px;
  padding: 0;
}
//@media (min-width: 768px){ .usp{ padding: 0; } }

/* ← 横並びを強制。テーマの干渉を避けるため !important 付き */
.usp__grid{
  //max-width: 980px;
  margin: 0 auto;
  display: flex !important;
  flex-wrap: wrap;
  gap: var(--usp-gap);
}

/* カード共通 */
.usp-card{
  background: var(--usp-card-bg);
  border: var(--usp-border);
  border-radius: var(--usp-card-radius);
  box-shadow: var(--usp-card-shadow);
  padding: 10px 20px 0;
  width: 100%;                   /* SPは縦積み */
}

@media (min-width: 768px){
  /* md以上で上の2枚を50%幅に */
  .usp-card{ width: calc(50% - var(--usp-gap)/2); }
  /* 下段ワイドは横幅100% */
  .usp-card--wide{ width: 100%; }
}

.usp-card__inner{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* アイコン画像を丸く見せる（うっすらグレー背景） */
.usp-card__icon{
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* タイトル＋説明を縦積みにするラッパ */
.usp-card__body{
  display: flex;
  flex-direction: column;
  gap: 4px;          /* タイトルと説明の間隔 */
  min-width: 0;      /* 右側の折り返し安定 */
}

/* タイトル：上余白はゼロに（← 既存の margin-top:35px は削除） */
p.usp-card__title{
  color: var(--usp-text);
  font-weight: 700;
  line-height: 1.35;
  font-size: clamp(15px, 1rem + 0.6vw, 19px);
  margin: 25px 0 10px 0;
}

/* 説明文（小さめ・やや淡色） */
.usp-card__desc{
  margin: 0;
  color: rgba(31,35,40,.7);
  font-size: clamp(12px, 0.85rem + 0.1vw, 14px);
  line-height: 2.0;
}

@media (max-width: 767px) {
.usp-card{
  padding: 0 10px;
}
}

/* ==============================================
   共通
=================================================*/
h3.typesquare_option {
  font-weight: 600 !important;
  font-size:20px !important;
  line-height: 1.6 !important;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
  bottom: -35px;
  left: -15px;
}
.p-plink-info{
  background: #fff;
  border-color: #f5f5f5;
}
img.radius{
  border-radius: 30px;
}

.woocommerce-error {
  //color: #eb5e1b!important;
  //background: #FEF6F0!important;
  //border-color: #eb5e1b!important;
}

.wc-block-cart__main table.wc-block-cart-items
.wc-block-cart-items__row .wc-block-cart-item__image img{
  height: auto;
}

/* ==============================================
   マイページ
=================================================*/

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{
  background-image: url('https://and-ehon.jp/wp-content/uploads/2025/11/flow_bg.jpg');
  background-repeat: repeat;
  background-size: 100px;
}

/* 共通のボタンスタイル */
body.woocommerce-account table.shop_table a.button {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  height: auto;
  text-align: center;
  color: #fff;
  background: var(--tcd-accent-color) !important;
  padding: 10px !important;
  border-radius: 3px;
  margin: 5px 0;
}

/* スマホ時：操作セルをフレックスにしてボタンを横並び */
@media (max-width: 767px) {
  body.woocommerce-account table.shop_table
  td.woocommerce-orders-table__cell-order-actions {
    display: flex;
    justify-content: flex-start;  /* 必要なら flex-end に変更可 */
    align-items: center;
    gap: 6px;                     /* ボタン同士のすき間 */
  }

  body.woocommerce-account table.shop_table
  td.woocommerce-orders-table__cell-order-actions a.button {
    display: block;               /* ★ inline-flex は使わない */
    margin: 0;
    min-width: 60px;
    text-align: center;
  }
}

/* 表示ボタンの矢印アイコンを消して中央寄せを安定させる */
body.woocommerce-account table.shop_table a.button.view::after {
  content: none !important;
  margin: 0 !important;
}

/* ==============================================
   flow04 セクション（フロー）
=================================================*/
.flow_design04{
  margin-bottom: 100px;
}
.flow04 {
  margin: 40px 0 0 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 70px;
}
.flow_design04>p{
  font-size: 15px;
  text-align: center;
}
.flow04>li {
  list-style-type: none;
  width: 20%;
  max-width: 400px;
  display: flex;
}
.flow04>li .icon04 {
  line-height: 2;
  width: 2em;
  height: 2em;
  text-align: center;
  color: #fff;
  background: #eb5e1b;
  margin: 0 auto 10px;
  display: block;
  border-radius: 100vh;
  position: relative;
}
.flow04>li .icon04::before {
  content: "";
  border: solid transparent;
  border-width: 7px;
  border-top-color: #eb5e1b;
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
.flow04>li dl {
  padding: 30px;
  margin: 0;
  background: #fff;
  background-repeat: repeat;
  background-size: 100px;
  position: relative;
  border-radius: 10px;
}
.flow04>li:not(:first-child) dl::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 10px;
  display: inline-block;
  border-top: 4px solid #535353;
  border-right: 4px solid #535353;
  position: absolute;
  top: calc(50% - 14px);
  left: -45px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.flow04>li dl dt {
  font-size: 20px;
  font-weight: 600;
  -ms-flex-preferred-size: 20%;
  flex-basis: 20%;
  margin-bottom:  20px;
  text-align: center;
}
.flow04>li dl dt img {
  width: 60%;
}
 .flow04>li dl dd p{
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 2.0;
}
.flow04>li dl dd h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 550;
  line-height: 1.8;
}

@media(max-width: 767px){
.flow04 {
  gap:10px;
  margin: 20px 0 0 0 !important;
 }
.flow_design04>p{
  text-align: left;
  margin:0 10px 20px;
}
.flow04>li dl {
  padding: 30px 20px;
}
.flow04>li dl dt img {
  width: 100%;
}
.flow04>li dl dt {
  font-size: 17px;
}
.flow04>li { 
    width: 48%;
  }
.flow04>li dl dd p{
  font-size: 14px;
}
.flow04>li:not(:first-child) dl::before {
    display: none;
  }
.flow04>li dl dd h3 {
  font-size: 17px;
}
.flow04>li dl dd h3 br {
    //display: none;
}}

/* ==============================================
   qa-6 セクション（よくあるご質問）
=================================================*/
.qa-6 {
    width: 100%;
    margin-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.qa-6 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 0 1em 2em;
    color: #333;
    font-weight: 550;
    cursor: pointer;
    line-height: 1.5;
}

.qa-6 summary::before,
.qa-6 p::before {
    position: absolute;
    left: 0;
    font-weight: 550;
    font-size: 20px;
}

.qa-6 summary::before {
    color: #eb5e1b;
    content: "Q";
}

.qa-6 summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 2px solid #535353;
    border-right: 2px solid #535353;
    content: '';
    transition: transform .5s;
}

.qa-6[open] summary::after {
    transform: rotate(225deg);
}

.qa-6 p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 2em 1.5em;
    color: #333;
    transition: transform .5s, opacity .5s;
}

.qa-6[open] p {
    transform: none;
    opacity: 1;
}

.qa-6 p::before {
    line-height: 1.5;
    content: "A";
}


/* ==============================================
   その他
=================================================*/
// 全ページで reCAPTCHA バッジを非表示にする
html body .grecaptcha-badge{display:none !important; visibility:hidden !important; pointer-events:none !important;}

.l-header__logo {
background:none;
}
.l-footer__bottom {
color: #333;
background:none;
}
@media (max-width: 767px){
.l-footer__bottom-inner {
height: auto;
}}

@media (min-width: 1025px){
  .single-product.postid-271 .l-container__inner,
  .single-product.postid-375 .l-container__inner,
  .single-product.postid-380 .l-container__inner {padding: 60px 0 150px !important; }
  .woocommerce-info{margin-bottom: 60px;}
}

.woocommerce .woocommerce-order table.shop_table{
margin-bottom: 40px;
}

.tcdce-sb-user-image {
  background-color: transparent !important;
}
.p-archive--post-item__link, .p-toc,.p-author-profile{
  background-color: #fff !important;
}
.p-entry-product-cart .woocommerce-variation-price {
margin: 0 0 20px 0;
}
.p-entry-product-cart .variations {
margin-bottom: 0;
}

.woocommerce-variation-description{
text-align: left !important;
}

@media (max-width: 767px) {
//.l-footer__bottom-inner { height: 100px; }
//.l-footer__bottom-inner { align-items: unset; }
// footer .c-logo__image { margin-bottom: 20px; }
//.l-footer__bottom-catch { display: block; margin-top: 20px; width: 100%; text-align: center; font-size: 12px; }
}

.red{
  color: #eb5e1b!important;
}
.c-sns-icons--type1 .c-sns-icons__link {
color: #aaa;
}
.qty::-webkit-inner-spin-button,.qty::-webkit-outer-spin-button {
-webkit-appearance: none!important;
margin: 0!important;
-moz-appearance:textfield!important;
}


.l-footer__message--demo {
display: flex;
align-items: center;
gap: 5px;
}
body, a{
  color: #333;
}
.p-news-ticker__button {
  background: #eb5e1b;
}
.p-news-ticker__button:hover{
background:#F37A2F;
color: #fff;
}

.p-body :not(.wp-block-table) > table th.wc-block-cart-items__header-image,
.p-body :not(.wp-block-table) > table th.wc-block-cart-items__header-total{
background-image: none!important;
}
