/*
Theme Name:   BASARA Child
Theme URI:    https://www.kahori.biz/
Description:  自家焙煎珈琲専門店 かほり 子テーマ
Author:       DAINO
Template:     basara_tcd100
Version:      1.0.0
*/

/* 親テーマのスタイルシートを強制的に読み込む */
@import url("../basara_tcd100/style.css");

/* ==========================================================================
   これ以降にカスタムCSSを追記
   ========================================================================== */
.p-wc-headline{font-family: var(--tcd-single-title-font-type)!important;}
.styled_h2_daino{font-family: var(--tcd-single-title-font-type); text-align:left!important; color:#42210b; font-size:25px!important;}
.roast { width:100%; margin-bottom:50px; background:#fff; padding:50px;}
.styled_h2_daino1 { font-size:27px!important;}
.styled_h2_daino1 {
    position: relative;
    padding: .5em .7em;
    border-radius: 25px;
    background-color: #f2e7e2;
    color: #42210b; font-family: var(--tcd-single-title-font-type);
}

.styled_h2_daino1::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%; transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 11px solid transparent;
    border-top: 11px solid #f2e7e2;
}
li.active {background:#42210b!important; color:#fff;}
body .wc-tab table.shop_attributes th{background:#f4f4f4!important;}
.p-cb-item-tab_carousel .p-cb-item-content{ background:#f9f5f2;}
.p-cb-item-tab_carousel .p-article-excerpt, .p-cb-item-tab_carousel .p-article-meta, .p-cb-item-tab_carousel .p-article-price, .p-cb-item-tab_carousel .p-article-rating {
    color: #333;
}
.p-cb-item-tab_carousel .p-article-title{ color:#42210b; font-family: var(--tcd-single-title-font-type);}
.p-archive03-item-title {font-family: var(--tcd-single-title-font-type);}
.p-entry-product-related-headline {font-family: var(--tcd-single-title-font-type);}
.p-recentry-viewed-products-headline {font-family: var(--tcd-single-title-font-type);}
.woocommerce-products-header-title {font-family: var(--tcd-single-title-font-type);}
.styled_h3_daino {
    display: flex;
    align-items: center;
    padding: .5em .7em;
    background-color: #f2f2f2;
    color: #333333; font-size:25px!important;
}

.styled_h3_daino::before {
    display: inline-block;
    width: 5px;
    height: 1.5em;
    margin-right: .5em;
    background-color: #42210b;
    content: '';
}
/**
 * WooCommerce：バリエーション選択後の「クリア」リンクを非表示にする
 */
.reset_variations {
    display: none !important;
}
/**
 * WooCommerce：商品仕様タブから「重さ」の行だけを非表示にする
 */
.woocommerce-product-attributes-item--weight {
    display: none !important;
}
/* お問い合わせフォーム全体のスタイリング */
.kahori-form-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 10px;
}

.kahori-form-group {
    margin-bottom: 24px;
}

.kahori-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #4a3b32;
}

/* 必須・任意ラベル */
.kahori-form-group .required {
    background-color: #a83232;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 3px;
}

.kahori-form-group .optional {
    background-color: #888;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 3px;
}

/* 入力フィールド */
.kahori-form-group input[type="text"],
.kahori-form-group input[type="email"],
.kahori-form-group input[type="tel"],
.kahori-form-group select,
.kahori-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.kahori-form-group input:focus,
.kahori-form-group select:focus,
.kahori-form-group textarea:focus {
    border-color: #5c4636;
    outline: none;
}

/* 送信ボタン */
.kahori-form-submit {
    text-align: center;
    margin-top: 32px;
}

.kahori-form-submit input[type="submit"] {
    background-color: #5c4636;
    color: #fff;
    padding: 14px 48px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.kahori-form-submit input[type="submit"]:hover {
    background-color: #3d2e23;
}
.grecaptcha-badge { visibility: hidden; }
.reCAPTCHA { font-size: 14px; margin-top: 25px; line-height: 1.5; }

/* 3D横回転（正面で3秒停止ループ）初期状態 */
.wp-image-183 {
  display: inline-block !important;
  transform-style: preserve-3d !important;
  animation: spin3d-pause 5s ease-in-out infinite !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
}

@keyframes spin3d-pause {
  0%, 60% {
    transform: perspective(600px) rotateY(0deg);
  }
  100% {
    transform: perspective(600px) rotateY(360deg);
  }
}

@keyframes spin3d-pause {
  0%, 60% {
    transform: perspective(600px) rotateY(0deg);
  }
  100% {
    transform: perspective(600px) rotateY(360deg);
  }
}

.p-header-content-catch-block,
.p-header-content-catch-block * {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}





/* ===================================================
   デザインコンテンツ：背景色（#faf7f5）＆スタイル調整
   =================================================== */

/* #cb-3 と #cb-5 の背景色・上下余白 */
#cb-3,
#cb-5 {
  background-color: #faf7f5 !important;
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

/* タイトル（見出し）の色 */
.p-cb-item-design_content .p-cb-item-headline {
  color: #42210b !important;
  position: relative;
  display: block;
}

/* 英語サブタイトル（タイトルの下・14px） */
.p-cb-item-design_content .p-cb-item-headline::after {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #8c705f;
  margin-top: 10px;
  margin-bottom: 22px;
}

#cb-3 .p-cb-item-headline::after {
  content: "LOW TEMPERATURE ROAST";
}

#cb-4 .p-cb-item-headline::after {
  content: "WHITE COFFEE";
}

#cb-5 .p-cb-item-headline::after {
  content: "HAND PICK";
}

/* ボタン：指定色 #42210b */
.p-cb-item-design_content .p-button-wrapper a {
  background-color: #42210b !important;
  border-color: #42210b !important;
  color: #ffffff !important;
}

.p-cb-item-design_content .p-button-wrapper a:hover {
  background-color: #5c2f10 !important;
  border-color: #5c2f10 !important;
  opacity: 0.9;
}

/* スマホ表示時の上下余白 */
@media screen and (max-width: 768px) {
  #cb-3,
  #cb-5 {
    padding-top: 45px !important;
    padding-bottom: 45px !important;
  }
}

/* ===================================================
   デザインコンテンツ：カラー調整（#42210b）
   =================================================== */

/* タイトル（見出し）の色 */
.p-cb-item-design_content .p-cb-item-headline {
  color: #42210b !important;
}

/* ボタンの背景色・境界線色 */
.p-cb-item-design_content .p-button-wrapper a {
  background-color: #42210b !important;
  border-color: #42210b !important;
  color: #ffffff !important;
}

/* ボタンホバー時 */
.p-cb-item-design_content .p-button-wrapper a:hover {
  background-color: #5c2f10 !important;
  border-color: #5c2f10 !important;
  opacity: 0.9;
}

/* ===================================================
   トップページ：デザインコンテンツ（英語サブタイトル）
   =================================================== */

/* 見出しのレイアウト調整 */
.p-cb-item-design_content .p-cb-item-headline {
  position: relative;
  display: block;
}

/* 英語サブタイトル共通（タイトルの下・14px） */
.p-cb-item-design_content .p-cb-item-headline::after {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #8c705f; /* コーヒーブラウン */
  margin-top: 10px;
  margin-bottom: 22px;
}

/* 01. 独自の低温焙煎 */
#cb-3 .p-cb-item-headline::after {
  content: "LOW TEMPERATURE ROAST";
}

/* 02. ホワイトコーヒー */
#cb-4 .p-cb-item-headline::after {
  content: "WHITE COFFEE";
}

/* 03. 徹底したハンドピック */
#cb-5 .p-cb-item-headline::after {
  content: "HAND PICK";
}

.box-017 {
    padding: .5em 1.5em 1em;
    border-top: 3px solid #42210b;
    border-radius: 3px;
    background-color: #faf7f5;
}

.box-017 > div {
    margin-bottom: .5em; font-family: var(--tcd-single-title-font-type); margin-top:1em; line-height:1.5;
    color: #42210b;
    font-weight: 700;
    font-size:20px;
}

.box-017 > p { font-size:14px; margin:0;
}

.styled_h2_daino2 {
    position: relative;
    text-align:left!important; padding-left:2.7em;
}

.styled_h2_daino2::before {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    color: #f7ede4;
    font-size: 2em;
    line-height: 1;
    content: attr(data-number);
    pointer-events: none;
}

/* スマホ（画面幅767px以下）のときだけ適用 */
@media screen and (max-width: 767px) {
  .roast {
    padding: 15px;
  }
	.styled_h3_daino {
    font-size:19px!important;
}
	.styled_h2_daino{font-size:19px!important;}
	.styled_h2_daino1 { font-size:21px!important;}

}

/* スマホのみ画像を約50%に縮小 */
@media screen and (max-width: 768px) {
  .wp-image-183 {
    max-width: 245px !important; /* 元幅360pxの50% */
    height: auto !important;
  }
}