/*
 Theme Name:   Kadence Child
 Theme URI:    https://example.com
 Description:  Kadence の子テーマ
 Author:       あなたの名前
 Author URI:   https://example.com
 Template:     kadence
 Version:      1.0.0
*/

@font-face{
  font-family: "gidoleregular";
  src: url("fonts/gidole-regular.woff2") format("woff2"),
       url("fonts/gidole-regular.woff") format("woff"),
       url("fonts/Gidole-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500;700;900&display=swap');

/* 全体に適用 */
:root {
  --global-body-font-family: "gidoleregular", "Noto Sans JP", YuGothic, "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --global-heading-font-family: "gidoleregular", "Noto Sans JP", YuGothic, "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}


.font-tsukushi {
  font-family: "fot-tsukuardgothic-std", sans-serif;
  font-style: normal;
  font-weight: 400;
}

.font-tsukushi_l {
  font-family: "fot-tsukuardgothic-std", sans-serif;
  font-style: normal;
  font-weight: 200;
}

/* 文字装飾 */
.headline-underline{
  position: relative;
  display: inline-block;    /* ← テキスト幅だけに収める */
}

.headline-underline::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;                 /* = width:100% */
  bottom: 0.12em;           /* 位置の微調整。0～0.2emで好み調整 */
  height: 0.42em;           /* 帯の太さ。0.3〜0.6em目安 */
  background: #cfd5d6;      /* 帯の色 */
  z-index: -1;              /* 文字の下に潜らせる */
  border-radius: .06em;     /* 角丸（任意） */
}

/* table */
/* ==== Kadence のテーブル既定を完全にリセット ==== */
.wp-block-kadence-table .kb-table,
.wp-block-kadence-table .kb-table .kb-table-row,
.wp-block-kadence-table .kb-table .kb-table-data {
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 変数（色は後で変えてOK） */
:root {
    --tbl-head-bg: #f5f5f5; /* ヘッダー/左列の背景 = 罫線色 */
    --tbl-side-bg: #f5f5f5;
    --tbl-grid: #f5f5f5;
    --tbl-head-txt: #3f4a54;
    --tbl-body-txt: #5a6570;
    --tbl-pad-y: 10px;
    --tbl-pad-x: 16px;
}


/* ヘッダー行（背景と枠を同色に） */
.wp-block-kadence-table .kb-table thead .kb-table-data {
    background: var(--tbl-head-bg) !important;
    color: var(--tbl-head-txt) !important;
    font-size: .8rem;
    font-weight: 600 !important;
    text-align: center !important;
    padding: var(--tbl-pad-y) var(--tbl-pad-x) !important;
    border-top: 1px solid var(--tbl-grid) !important;
    border-right: 1px solid var(--tbl-grid) !important;
    border-bottom: 1px solid var(--tbl-grid) !important;
    border-left: 0 !important;
}

/* ヘッダー左端だけ左線を入れて外周をつなぐ */
.wp-block-kadence-table .kb-table thead .kb-table-row .kb-table-data:first-child {
    border-left: 1px solid var(--tbl-grid) !important;
}

/* ボディ：基本セル */
.wp-block-kadence-table .kb-table tbody .kb-table-data {
    color: var(--tbl-body-txt) !important;
    background: #fff !important;
    text-align: center !important;
    padding: var(--tbl-pad-y) var(--tbl-pad-x) !important;
    border-top: 1px solid var(--tbl-grid) !important;
    border-right: 1px solid var(--tbl-grid) !important;
}

/* 左列（見出し列）だけ背景＆左線 */
.wp-block-kadence-table .kb-table tbody .kb-table-row .kb-table-data:first-child {
    background: var(--tbl-side-bg) !important;
    font-size: .8rem;
    font-weight: 600 !important;
    text-align: left !important;
    border-left: 1px solid var(--tbl-grid) !important;
    border-top: 1px solid var(--tbl-grid) !important;
    border-right: 1px solid var(--tbl-grid) !important;
    border-bottom: 1px solid #ffffff !important;
}

/* リンクの見た目 */
.wp-block-kadence-table .kb-table a {
    color: inherit !important;
    text-decoration: underline !important;
}

/* テーブル内の画像スタイリング */
.wp-block-kadence-table .kb-table .table_img01 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0.5rem auto 0 auto;
}

/* テーブル内のpタグのマージンを調整 */
.wp-block-kadence-table .kb-table .kb-table-data p {
    margin: 0 !important;
    margin-bottom: 0 !important; /* .full-width-content p の margin-bottom: 1.5rem を打ち消し */
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    line-height: 1.4;
}

/* 特定の画像ブロックにクラスを追加した場合 */
.hover-color img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.hover-color img:hover {
    filter: grayscale(0%);
}

/* 子テーマ専用のカスタマイズCSS */
/* =========================================
 * Pure CSS Sticky Header（JS不使用版）
 * ========================================= */

.site-header {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
z-index: 9999 !important;
transition: all 0.3s ease !important;
background: transparent !important;
border-bottom: .5px solid #ddd;
}

body.home .site-header,
body.front-page .site-header,
body.archive .site-header {
  border-bottom: none !important;
}

.scrolled.transparent-header .site-header {
background: rgba(255, 255, 255, 0.9) !important;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

/* カスタムポストタイプ用を追加 */
.scrolled.non-transparent-header .site-header,
.scrolled.single-products .site-header {
background: rgba(255, 255, 255, 0.9) !important;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

/* さらに安全策として */
.scrolled.single .site-header {
background: rgba(255, 255, 255, 0.9) !important;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

.transparent-header .site-header {
background: transparent !important;
}

/* ヘッダーをホバーしたときは常に白背景 */
.transparent-header .site-header:hover,
.non-transparent-header .site-header:hover {
  background: rgba(255, 255, 255, 0.691) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
}

/* =========================================
   slidk slider
   ========================================= */

/* ドットを横バーに変更（角丸なし・中央寄せ） */
.slick-hero .slick-dots {
  position: absolute;
  bottom: 20px;                 /* スライダー内の下から20px */
  left: 50%;
  transform: translateX(-50%);  /* 横中央寄せ */
  display: flex !important;     /* 横並び */
  gap: 8px;                     /* 棒同士の間隔 */
  z-index: 20;
  justify-content: center;      /* 中央寄せ */
  width: 100%;                  /* スライダー幅いっぱいを基準に */
}

.slick-hero .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.slick-hero .slick-dots li button {
  padding: 0;
  width: 25px;                  /* 棒の長さ */
  height: 3px;                  /* 棒の太さ */
}

.slick-hero .slick-dots li button:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.5); /* 非アクティブ時の色 */
  border-radius: 0;                  /* ←角丸なし */
  opacity: 1;
}

.slick-hero .slick-dots li.slick-active button:before {
  background: #fff;                  /* アクティブ時 */
}

.slick-dotted.slick-slider {
margin-bottom: 0px !important;
}

/* product archiveヘッダ画像設定： */
.yw-archive-hero{width:100%;background-size:cover;background-position:center center;display:flex;align-items:center;justify-content:center}
.yw-archive-hero__inner{background:rgba(255,255,255,.7);padding:1rem 2rem;border-radius:.25rem}
.yw-archive-hero__title{margin:0;font-size:clamp(1.4rem,3vw,2rem);color:#222}
/* 高さを固定してトリミングしたいなら： */
/* .archive-hero { height: 400px; } 
.archive-hero img { height:100%; object-fit:cover; } */


/* 全幅ページリセット */
body.content-width-fullwidth .wp-site-blocks .post-thumbnail:not(.kadence-thumbnail-ratio-inherit) img {
height: auto;
width: 100%;
}
body.content-width-fullwidth .entry-header {margin:0 30px;}