/*
Theme Name: Kadence Child
Theme URI: https://example.com
Description: Kadence テーマの子テーマ
Author: Tohru Wakabayashi
Template: kadence
Version: 1.0
*/
/* トップメニュー直下の波帯 */

/* 器：投稿2カラム総幅に合わせて中央寄せ（親がgridでも効く） */
.cpo-container{
  max-width: var(--global-content-width, 1040px);
  width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
  justify-self: center; /* grid親で中央寄せ */
}

/* 上部の説明ボックス（CPO-JPの概要説明） */
.site-desc-box{
  background: linear-gradient(to bottom, rgba(255, 255, 240,0.1) 0%, rgba(255, 255, 240,0.8) 100%);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.site-desc-box {
  margin-top: 94px;
}
/* お知らせ見出しと投稿一覧の隙間を20pxに */
.home-banners-heading {
  margin-bottom: 20px;
}
/* バナーカルーセルの見た目 */
.home-banner-carousel .swiper-slide {
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);

  /* 枠サイズを統一 */
  width: 100%;       /* 親要素幅に応じる */
  height: 200px;     /* 高さを固定（任意で調整） */

  /* 中央揃え */
  display: flex;
  align-items: center;    /* 縦の中央揃え */
  justify-content: center; /* 横の中央揃え */
}

.home-banner-carousel img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
}

.cpo-container{
  max-width: var(--global-content-width, 1140px);
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
  justify-self: center; /* 親がgridでも中央 */
}
.home-banners-heading{ margin: 0 0 12px; }
.home-banner-carousel{ margin-top: 8px; }

/* タイトル自体の下マージン（お好みで 12〜20px） */
.home-archive-title--tight { margin: 0 0 12px; }

/* タイトル直後のアーカイブ塊の “上” 余白を相殺（この場所だけ） */
.cpo-archive-head + #primary { margin-top: 0 !important; }
.cpo-archive-head + #primary .content-container { margin-top: 0 !important; padding-top: 0 !important; }
.cpo-archive-head + #primary #main { margin-top: 0 !important; padding-top: 0 !important; }

/* 決定打：ULのデフォルト margin を潰す（この場所だけ） */
.cpo-archive-head + #primary #archive-container {
  margin-top: 0 !important;
  padding-left: 0;    /* ULの左インデントも消す（不要なら削除可） */
  list-style: none;   /* 箇条書きマーカー非表示（念のため） */
}
/* タイトル直後に来る「Kadence の投稿グリッド」側の上マージン/パディングをゼロに */
.home .home-archive-title--tight + .kt-post-wrap { margin-top: 0 !important; padding-top: 0 !important; }

/* 念のための互換セレクタ（レイアウト違いに備えて代表的なラッパを列挙） */
.home .home-archive-title--tight + .archive-grid,
.home .home-archive-title--tight + .blog .content-area .site-main .posts,
.home .home-archive-title--tight + .entry-content-wrap .kt-post-wrap { 
  margin-top: 0 !important; padding-top: 0 !important;
}

/* 固定・投稿ページの見出しの裏に top-wave.svg を敷く */
body:not(.home) h1.entry-title,
body:not(.home) .wp-block-post-title { /* ブロックテーマのH1にも対応 */
  position: relative;
  padding: 22px 0 34px; /* 背景が見えるよう下側を広めに */
  /*background-image: url('/assets/img/top-wave.svg');*/
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 115%; /* 高さ方向にフィット。数値で調整可 */
  border-bottom: 1px solid rgba(0,0,0,.06); /* なくてもOK（見切れの安定） */
}

.bordered-image {
  border: 1px solid black; /* 太さ1px、実線、黒色のボーダー */
}

/*トップページのアーカイブタイトル*/
.home-archive-title {
  font-size: 1.5rem;
  margin: 40px 0 20px; /* 上下の余白を調整 */
  font-weight: bold;
}

/* 役員人事一覧(お知らせ投稿) */
.human-resources-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 列を3等分 */
  border: 1px solid #ccc;            /* PC：外枠のみ */
  border-radius: 12px;                /* 任意：角丸 */
  overflow: hidden;                   /* 任意：角丸に沿ってはみ出し防止 */
}
.human-resources-row {
  display: contents; /* PC：子要素だけをGridに流す */
}
.human-resources-row > div {
  border: 0;         /* PC：内側の罫線なし＝外枠のみ */
  padding: 8px;
}

/* スマホ表示 */
@media (max-width: 768px) {
  .human-resources-table {
    /* スマホは1行＝1カード化のため block へ */
    display: block;
    border: 0;                 /* 外枠は消して、行ごとに枠/余白を付ける場合はここで外す */
    border-radius: 0;
    overflow: visible;
  }

  .human-resources-row.header {
    display: none; /* ヘッダー非表示（ラベルは data-label で補う） */
  }

  /* スマホ時は display: contents を解除して行をカード化 */
  .human-resources-row {
    display: grid;
    grid-template-columns: 1fr;   /* カード本体は縦並び */
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;       /* 行ごとに枠線（不要なら削除） */
    border-radius: 10px;
    background: #fff;
  }

  /* ★スマホ限定：行間の“空白行”（＝行と行の間の余白） */
  .human-resources-row:not(:last-child) {
    margin-bottom: 12px;          /* ここがご希望の「空白行」 */
  }

  /* 各セルは「ラベル: 値」の2列で表示 */
  .human-resources-row > div {
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 8.5em 1fr;  /* ラベル / 値 */
    align-items: start;
  }

  .human-resources-row > div::before {
    content: attr(data-label);     /* 疑似要素でラベルを表示 */
    font-weight: bold;
    color: #666;
    padding-right: 8px;
    white-space: nowrap;
  }
}

/* 会費（固定ページ） */
.membership-fee-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 列を3等分 */
  border: 1px solid #ccc;
}
.membership-fee-row-header > div {
  background:#00A896;
  color:#fff;
  font-weight:bold;
}
.membership-fee-row {
  display: contents; /* PC：子要素だけをGridに流す */
}
.membership-fee-row > div {
  border: 1px solid #ccc;
  padding: 8px;
}

.membership-fee-right {
  text-align: right;

}
.membership-fee-center {
  text-align: center;
  vertical-align:middle;
}

/* 数字の途中改行を防ぐ */
.nowrap{ white-space: nowrap; }

/* PCでは改行を使う／スマホでは改行を消す */
.br-desktop{ display: inline; }
@media (max-width: 768px){
  .br-desktop{ display: none; }

  /* スマホのカード内：注記を“値”の下（2列目）に並べる */
  .fee-note{
    display: block;
    grid-column: 2;       /* 左のラベル列を避けて値の列に配置 */
    margin-top: 4px;
  }
}
/* スマホ表示 */
@media (max-width: 768px) {

  /* PCでの右/中央寄せを左寄せに戻す */
  .membership-fee-right,
  .membership-fee-center {
    text-align: start !important;    /* start は左寄せの論理プロパティ */
  }

  /* セル内にネストされた要素のインライン指定も上書き */
  .membership-fee-row > div > * {
    text-align: inherit !important;  /* 親セルの左寄せを継承 */
  }

  /* 賛助会員セルのように更にネストされた div の対策 */
  .membership-fee-row > div > div {
    text-align: inherit !important;
  }

  /* “ヘッダーだけ”隠す。データは隠さない */
  .membership-fee-row.header .hide-on-mobile {
    display: none;
  }
  /* 既存の .hide-on-mobile { display:none; } は削除か、上書きしてください */

  .membership-fee-table {
    /* スマホは1行＝1カード化のため block へ */
    display: block;
    border: 0;                 /* 外枠は消して、行ごとに枠/余白を付ける場合はここで外す */
    border-radius: 0;
    overflow: visible;
  }

  .membership-fee-row.header {
    display: none; /* ヘッダー非表示（ラベルは data-label で補う） */
  }

  /* スマホ時は display: contents を解除して行をカード化 */
  .membership-fee-row {
    display: grid;
    grid-template-columns: 1fr;   /* カード本体は縦並び */
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;       /* 行ごとに枠線（不要なら削除） */
    border-radius: 10px;
    background: #fff;
  }

  /* ★スマホ限定：行間の“空白行”（＝行と行の間の余白） */
  .membership-fee-row:not(:last-child) {
    margin-bottom: 12px;          /* ここがご希望の「空白行」 */
  }

  /* 各セルは「ラベル: 値」の2列で表示 */
  .membership-fee-row > div {
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 8.5em 1fr;  /* ラベル / 値 */
    align-items: start;
  }

  .membership-fee-row > div::before {
    content: attr(data-label);     /* 疑似要素でラベルを表示 */
    font-weight: bold;
    color: #666;
    padding-right: 8px;
    white-space: nowrap;
  }
}

:root{
  --cpo-req-bg:#e02424;  /* 赤 */
  --cpo-req-fg:#fff;     /* 文字色 */
  --cpo-req-radius:.4rem;
  --cpo-req-size:.75rem; /* バッジの文字サイズ */
}
.cpo-badge-required{
  display:inline-flex;
  align-items:center;
  padding:.18em .55em;
  border-radius:var(--cpo-req-radius);
  background:var(--cpo-req-bg);
  color:var(--cpo-req-fg);
  font-size:var(--cpo-req-size);
  font-weight:700;
  line-height:1;          /* 行間で上下に広がらない */
  vertical-align:middle;  /* ラベル文字と高さを揃える */
  letter-spacing:.02em;
}
/* 注意文言 */
.cpo-required-note {
  font-size:var(--cpo-req-size);
  font-weight:600;       /* b/strong で少し強調 */
  color:#333;            /* 黒寄りの色。必要なら赤系に変更可 */
  margin-left:.3rem;     /* バッジとの間隔 */
}

/* 会報年 */
.cpo-report-year {
  font-weight:600;       /* b/strong で少し強調 */
  color:#333;            /* 黒寄りの色。必要なら赤系に変更可 */
  margin-bottom: 0;
  padding-bottom: 0;
  text-decoration: underline; /* 下線を表示 */
  text-decoration-color: #ADD8E6; /* 下線の色を青色に設定 */
  text-decoration-style: solid; /* 下線のスタイルを波線に設定 */
  text-decoration-thickness: 3px; /* 下線の太さを2pxに設定 */
  text-underline-offset: 1px; /* 下線とテキストの間のオフセットを5pxに設定 */
}
/* 会報リスト */
.cpo-report-list {
  margin-top: 0;
  margin-bottom: 20pt;
  padding-top: 0;
}
/* 会報リスト */
.cpo-report-list ul {
  margin-top: 0;
  padding-top: 0;
}

/* 活動内容年 */
.cpo-report-year {
  font-weight:600;       /* b/strong で少し強調 */
  color:#333;            /* 黒寄りの色。必要なら赤系に変更可 */
  margin-bottom: 0;
  padding-bottom: 0;
  text-decoration: underline; /* 下線を表示 */
  text-decoration-color: #ADD8E6; /* 下線の色を青色に設定 */
  text-decoration-style: solid; /* 下線のスタイルを波線に設定 */
  text-decoration-thickness: 3px; /* 下線の太さを2pxに設定 */
  text-underline-offset: 1px; /* 下線とテキストの間のオフセットを5pxに設定 */
}
/* 活動内容リスト */
.cpo-est-list {
  margin-top: 0;
  margin-bottom: 20pt;
  padding-top: 0;
}
/* 活動内容リスト */
.cpo-est-list ul {
  margin-top: 0;
  padding-top: 0;
}

/* 会員一覧の基本スタイル */
.cpo-member > dl {
  margin: 0 0 1.5em;   /* 下に余白 → dl同士を区切る */
  padding: 0;
}

.cpo-member > dt {
  font-weight: bold;   /* 見出しっぽく強調 */
  font-size: 1.1rem;   /* dd より一回り大きい */
  margin-bottom: 0.3em; /* dt と最初の dd の間 */
}

.cpo-member > dd {
  margin: 0 0 0.3em 0; /* dd 同士の隙間を最小限に */
  font-size: 1rem;     /* 基本文字サイズ */
  line-height: 1.6;    /* 行間で読みやすく */
}

/* 連続する dd の最後は下余白を消す */
.cpo-member > dd:last-of-type {
  margin-bottom: 0;
}
/* 体裁の初期化（任意） */
.cpo-members { margin: 0; }
.cpo-members dt { font-weight: 700; margin: 1rem 0 .25rem; }

/* PC/タブレット：横並び */
.cpo-members .member{
  display: grid;
  grid-template-columns: 16ch 1fr 18ch; /* 氏名/会社/役職 の幅感。chは文字数基準 */
  gap: .5rem 1rem;
  align-items: baseline;
  padding: .25rem 0;
  border-bottom: 1px dotted #e5e7eb;   /* 行の区切り（任意） */
}
.cpo-members .name{ font-weight: 600; }
.cpo-members .role{ justify-self: start; /* 必要なら end で右寄せ */ }

/* スマホ：2段構成（1段目=氏名、2段目=会社＋役職） */
@media (max-width: 768px){
  .cpo-members .member{
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "orgrole";
  }
  .cpo-members .name{ grid-area: name; }
  .cpo-members .org, .cpo-members .role{ grid-area: orgrole; }

  /* 会社名と役職を一行で続けて表示（区切り記号はお好みで） */
  .cpo-members .org{ display: inline; }
  .cpo-members .role{ display: inline; }
  .cpo-members .role::before{
    content: " ";
    margin: 0 .25em;
  }
}

/* 下色付き線 */
.cpo-under_color {
  text-decoration: underline; /* 下線を表示 */
  text-decoration-color: #7FFFD4; /* 下線の色を青色に設定 */
  text-decoration-style: solid; /* 下線のスタイルを波線に設定 */
  text-decoration-thickness: 3px; /* 下線の太さを2pxに設定 */
  text-underline-offset: 1px; /* 下線とテキストの間のオフセットを5pxに設定 */
}

/* 点線 */
.cpo-est-hr1 {
  margin-top: 20px;
  border-top: 1px dotted #aaa;
}

/* PCだけ表示 */
.pc-only {
  display: block;
}
@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }
}

/* スマホだけ表示 */
.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
}

/* =========================
   申込フロー（CPO-JP）
   ========================= */
.cpo-flow{
  /* テーマ色 */
  --flow-bg: #eef6ff;
  --flow-border: #c9dfff;
  --card-bg: #fff;
  --text: #123;
  --accent-blue: #1e56d8;
  --accent-orange: #ff7a00;

  /* 矢印色（.arrow--orange / .arrow--blue で切替可） */
  --arrow-color: var(--accent-orange);

  /* 調整トークン（ここを触るだけで全体調整） */
  --flow-content-width: 680px;   /* カードの最大幅（中央寄せ） */
  --row-gap: 16px;               /* ステップ間の基本ギャップ */
  --card-pad-y: 10px;            /* カード上下の内側余白（控えめ） */
  --card-pad-x: 16px;            /* カード左右の内側余白 */
  --arrow-length: 20px;          /* 矢印の縦線の長さ（短く） */
  --arrow-thickness: 6px;        /* 矢印の線の太さ（太く） */
  --arrow-gap: 0px;              /* カードと矢印の隙間（詰める） */

  background: var(--flow-bg);
  border: 1px solid var(--flow-border);
  border-radius: 12px;
  padding: clamp(16px, 3vw, 28px);
}
.cpo-flow.arrow--orange{ --arrow-color: var(--accent-orange); }
.cpo-flow.arrow--blue{   --arrow-color: var(--accent-blue);   }

.cpo-flow__list{
  list-style: none;
  margin: 0;
  padding: 0;

  /* ① カード中央寄せ＆縦方向の間隔 */
  display: grid;
  justify-items: center;
  row-gap: var(--row-gap);
}

/* 並び順を固定：1行目=縦線, 2行目=▽, 3行目=カード */
.cpo-flow__item{
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
}
.cpo-flow__card{ grid-row: 3; }

/* カード本体（白枠） */
.cpo-flow__card{
  background: var(--card-bg);
  border: 2px solid var(--flow-border);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  margin-bottom: 0px;
 /* width: min(var(--flow-content-width), 100%);*/
  width:480px;
  margin: 0 auto;
  padding-block: var(--card-pad-y);
  padding-inline: var(--card-pad-x);
}

/* デフォルト（PC用） */
.cpo-flow__card {
  width: 480px;
  margin: 0 auto;
}

/* スマホ時は 360px に固定 */
@media (max-width: 768px) {
  .cpo-flow__card {
    width: 360px;
  }
}

/* カードは常に3行目（▽の下） */
.cpo-flow__card{ grid-row: 3; }

.cpo-flow__head{ display: grid; gap: 4px; }
.cpo-flow__stepno{
  font-weight: 700;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  color: var(--accent-blue);
  line-height: 1.1;
}
.cpo-flow__title{
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  line-height: 1.5;
}

/* ② CSS矢印：文字は使わず「短い縦線＋三角」を中央に描画 */
.cpo-flow__item:not(:last-child){
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0;
}
/* 縦線（太く・短く） */
/* ▼ ここから矢印（2個目以降だけに出す） */
  /* 1行目：縦線（太さ/長さはカスタムプロパティで） */
.cpo-flow__item:not(:first-child)::after{
  grid-row: 1;                /* 1行目：縦線 */
  content: "";
  display: block;
  width: var(--arrow-thickness, 6px);
  height: var(--arrow-length, 20px);
  background: var(--arrow-color, #ff7a00);
  margin: var(--arrow-gap, 8px) auto 0;  /* 下マージン0＝▽に密着 */
  margin-top:0px;
}
/* 三角（先端） */
.cpo-flow__item:not(:first-child)::before{
  grid-row: 2;                /* 2行目：▽ */
  content: "";
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 10px solid var(--arrow-color, #ff7a00);
  margin: 0px;                   /* 余白をゼロに */
  margin-bottom: 12px;
  transform: translateY(-1px); /* 線とピタッと接続（微調整） */
}