/*
 Theme Name: ELMAPA
 Template: x-t9
 Version: 0.0.4
 Author: ELMAPA
 Description: X-T9ベースの子テーマ。theme.json主導で色・余白・タイポを管理。
*/



/* =========================================================
   01. HEADER
   --------------------------------------------------------- */

.wp-block-site-logo.auto-size img.custom-logo {
  width: 240px;
  height: auto;
}

.is-style-scrolled-header-fixed .wp-block-site-logo.auto-size img.custom-logo {
  width: 320px;
  height: auto;
}

  /* PCサイズ：ナビ全部を青いピルにする */
  @media (min-width: 960px) {
    .cii-header-nav {
      background: #0092d4;
      border-radius: 999px;
      padding: 0.1rem 1.8rem;
      display: inline-flex;
      align-items: center;
      color: #fff;
    }

    .cii-header-nav .wp-block-navigation__container a {
      color: #fff;
    }

    .cii-header-nav .wp-block-navigation__container a:hover {
      text-decoration: underline;
    }
  }

/* スマホサイズ：背景も角丸もなし（帯を消す） */
@media (max-width: 959px) {
  .cii-header-nav {
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;              /* ハンバーガーを右寄せしたいなら flex-end なども可 */
    justify-content: flex-end;
  }
}


/* =========================================================
   00. BASE SETTINGS & UTILITIES
   --------------------------------------------------------- */
body {
  font-family: var(--wp--preset--font-family--zen-kaku-gothic-new, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

/* ブラウザデフォルトの余白をリセット (Theme.json管理のため) */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}


/* =========================================================
   01. COMPONENT: HERO SLIDER
   ※トップページのスライダー内テキスト用
   --------------------------------------------------------- */
.em-hero {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  margin: 0;
}

/* 日本語テキスト */
.em-hero.ja {
  font-weight: 400;
  line-height: 1.2;
  border: 1px solid var(--wp--preset--color--paper);
  display: inline-block;
  color: #fff;
  padding: .5em;
}

/* 英語テキスト */
.em-hero.en {
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  margin-top: .45em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* カテゴリ別カラーモディファイア */
.em-hero.ja.car { background-color: rgba(0, 49, 66, 0.8); }
.em-hero.ja.food { background-color: rgba(255, 132, 0, 0.8); }
.em-hero.ja.medical { background-color: rgba(0, 115, 203, 0.8); }
.em-hero.ja.laboratory { background-color: rgba(0, 125, 27, 0.8); }

.em-hero.en.car { color: #fff; }
.em-hero.en.food { color: #fff8e6e4; }
.em-hero.en.medical { color: #210085; }
.em-hero.en.laboratory { color: #003e32; }


/* =========================================================
   02. COMPONENT: PAGE HEADER
   ※固定ページのH1エリア装飾
   --------------------------------------------------------- */
.em-heading-page {
  margin: 0 0;
}

.em-heading-page__eyebrow {
  display: inline-block;
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brand-3);
  margin-bottom: 0.3rem;
}

.em-heading-page__title {
  margin: 0;
  color: var(--wp--preset--color--ink);
}

.em-heading-page__eyebrow--placeholder {
  opacity: 0.5;
  font-style: italic;
}

/* =========================================================
   03. COMPONENT: FRONT PAGE SECTION HEADER
   ※トップページ汎用セクション見出し（センター配置）
   --------------------------------------------------------- */
/* 親グループ：全体の中央揃え */
.home .em-section-header {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 50px;
}

/* 英語部分（段落ブロック） */
.home .em-section-header .em-section-title-en {
  display: block;
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--wp--preset--color--gold, #e0a800); /* デフォルトはゴールド */
  letter-spacing: 0.15em;
  margin-bottom: 5px;
  margin-top: 0;
  text-transform: uppercase;
  line-height: 1.2;
}

/* 日本語部分（H2ブロック） */
.home .em-section-header .em-section-title-ja {
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  padding-bottom: 25px;
  margin-top: 0;
  position: relative;
  line-height: 1.4;
}

/* 下の装飾線 */
.home .em-section-header .em-section-title-ja::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--wp--preset--color--gold), var(--wp--preset--color--primary));
  border-radius: 3px;
}

/* --- カラーバリエーション（必要なら追加） --- */
/* 例: お知らせ(NEWS)だけ青にしたい場合、
   段落ブロックに `em-section-title-en is-blue` と書いて以下を追加 */
.home .em-section-header .em-section-title-en.is-blue {
  color: var(--wp--preset--color--primary);
}




/* =========================================================
   04. COMPONENT: NEWS LIST
   ※お知らせ一覧リスト（トップ・一覧ページ共通）
   --------------------------------------------------------- */
.news-list-row {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  align-items: center;
  width: 100%;
}

.news-list-row:hover {
  background-color: #fafafa;
}

.news-meta {
  width: 260px;
  flex-shrink: 0;
  margin-right: 20px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.news-meta time {
  font-size: 14px;
  color: #777;
  font-family: 'Roboto', sans-serif;
  font-variant-numeric: tabular-nums;
  margin-right: 12px;
}

/* タイトルエリア
   詳細度を確保して、汎用H2スタイルの干渉を防ぐ */
.news-list-row .news-title {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  flex-grow: 1;
  min-width: 0;
}

.news-list-row:hover .news-title a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
}


/* =========================================================
   05. ARTICLE TYPOGRAPHY (Sub Pages & Posts)
   ※下層ページの「記事本文」見出しデザイン
   --------------------------------------------------------- */
/* ★重要: スコープ定義
   1. body.page:not(.home) -> トップ以外の固定ページ
   2. body.single -> 投稿詳細ページ
   
   さらに、意図しない場所への干渉を防ぐために :not() で除外
*/

/* --- H2 --- */
body.page:not(.home) .wp-block-post-content h2:not(.news-title):not(.em-heading-page__title),
body.single .wp-block-post-content h2:not(.news-title):not(.em-heading-page__title),
body.page:not(.home) .related-pages-heading,
body.single .related-pages-heading {
  position: relative;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
  letter-spacing: 0.03em;
  padding-top: 25px;
  margin-top: 100px;
  margin-bottom: 30px;
  
  /* 上書き防止のため明示的に設定 */
  border-top: none; 
  border-bottom: none;
  border-left: none;
}

/* H2 上部のグラデーションバー */
body.page:not(.home) .wp-block-post-content h2:not(.news-title):not(.em-heading-page__title)::before,
body.single .wp-block-post-content h2:not(.news-title):not(.em-heading-page__title)::before,
body.page:not(.home) .related-pages-heading::before,
body.single .related-pages-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--wp--preset--color--brand-1) 0%, var(--wp--preset--color--brand-3) 100%);
  border-radius: 2px;
}

/* --- H3 --- */
body.page:not(.home) .wp-block-post-content h3,
body.single .wp-block-post-content h3 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 20px;
  border-left: 5px solid #d65a31; /* テラコッタ/オレンジ系 */
  padding-left: 18px;
  line-height: 1.4;
}

/* --- H4 --- */
body.page:not(.home) .wp-block-post-content h4,
body.single .wp-block-post-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #444;
}


/* =========================================================
   99. RESPONSIVE SETTINGS
   --------------------------------------------------------- */
@media (max-width: 768px) {
  
.home .em-section-header {
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .home .em-section-header .em-section-title-en { 
    font-size: 14px; 
    letter-spacing: 0.1em; 
  }
  .home .em-section-header .em-section-title-ja { 
    font-size: 24px; 
    padding-bottom: 15px; 
  }
  .home .em-section-header .em-section-title-ja::after { 
    width: 60px; 
    height: 4px; 
  }

  /* --- Article Headings --- */
  body.page:not(.home) .wp-block-post-content h2:not(.news-title):not(.em-heading-page__title),
  body.single .wp-block-post-content h2:not(.news-title):not(.em-heading-page__title) {
    font-size: 22px;
    padding-top: 20px;
    margin-top: 60px;
  }
  body.page:not(.home) .wp-block-post-content h2:not(.news-title):not(.em-heading-page__title)::before,
  body.single .wp-block-post-content h2:not(.news-title):not(.em-heading-page__title)::before {
    height: 3px; 
  }
  
  body.page:not(.home) .wp-block-post-content h3,
  body.single .wp-block-post-content h3 {
    font-size: 19px;
    margin-top: 40px;
  }


  /* --- News List --- */
  .news-list-row {
    flex-direction: column; 
    align-items: flex-start;
    padding: 15px 0;
    gap: 8px; 
  }
  .news-meta {
    width: 100%;
    margin-right: 0;
    margin-bottom: 5px;
    white-space: normal;
  }
  .news-title {
    font-size: 15px;
    width: 100%;
  }
  
  /* --- Layout Reset --- */
  body { padding: 0; }
}





/* ===========================
   ページ上部のキャッチ画像（ヒーロー）
   どの画像でも同じ比率・サイズ感で見せる
   =========================== */

/* Featured Image ブロックの「EMヒーロー画像」スタイル */
.wp-block-post-featured-image.is-style-em-hero {
  max-width: 1120px;
  margin: 0 auto;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  position: relative;
}

.wp-block-post-featured-image.is-style-em-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}







/* =========================================
 * メインリード / サブリード（装飾）
 * ※ typographic な数値は theme.json 側
 * ======================================= */

/* メインリード（Paragraphスタイル：lead-main） */
.is-style-lead-main {
  font-family: var(--wp--preset--font-family--zen-old-mincho);
  font-weight: 800;
  font-size: var(--wp--preset--font-size--lead);
  max-width: 64rem;
  color: #004f8a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* サブリード（Paragraphスタイル：lead-sub） */
.is-style-lead-sub {
  max-width: 72rem;
  color: #444;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

/* About Us ページなどで中央寄せにしたい場合の補助クラス例 */
.page-aboutus-lead {
  margin-bottom: 2.5rem;
}


@media (max-width: 600px){
  .em-hero.en-split{
    flex-direction: column; align-items:left; gap:.1em;
    font-weight:400; line-height:1.2; letter-spacing:.05em;
    color:var(--wp--preset--color--paper);
    font-size: clamp(20px, 3.6vw, 52px);
  }
}
@media (min-width: 740px) and (max-width: 760px){
  .em-hero.ja{ font-size: clamp(14px, 2.6vw, 24px); }
  .em-hero.en{ font-size: clamp(18px, 3.2vw, 48px); font-weight:800; }
}
@media (min-width: 1024px){
  .em-hero.ja{ font-size: clamp(14px, 2.6vw, 24px); }
  .em-hero.en{ font-size: clamp(18px, 3.2vw, 48px); }
}
@media (min-width: 1024px) and (max-width: 1366px){
  .em-hero.ja{ font-size: clamp(14px, 2.6vw, 24px); }
  .em-hero.en{ font-size: clamp(18px, 3.2vw, 48px); }
}


/* --------------------------------------------------
   ACF関連ページ カードデザイン (Stretched Link版)
-------------------------------------------------- */

/* --- コンテナ --- */
.related-cards-container {
  margin-top: 50px;
  width: 100%;
}

/* --- カード本体 --- */
.related-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  
  /* ★重要：リンクを絶対配置するための基準点 */
  position: relative; 
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #0066b3;
}

/* ★重要：透明なリンクをカード全体に広げる魔法 */
.related-card-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* 最前面に持ってくる */
  text-decoration: none; /* 下線などを消す */
  background: transparent; /* 透明 */
}

/* 画像エリア */
.related-card-image {
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストエリア */
.related-card-content {
  padding: 20px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.4;
  color: #003366;
}

.related-card-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.related-card-footer {
  margin-top: auto;
  text-align: right;
}

.related-card-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #e0a800;
  transition: transform 0.2s;
}

/* ホバー時の矢印移動（カード全体ホバーで発火させる） */
.related-card:hover .related-card-more {
  transform: translateX(5px);
}


/* =========================================
   パターンA：1件のみ（横長）
   ========================================= */
.layout-single {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Flexboxをカード本体に適用 */
.layout-single .related-card {
  display: flex;
  flex-direction: row; 
  align-items: stretch;
}

.layout-single .related-card-image {
  width: 45%;
  min-height: 200px;
}

.layout-single .related-card-content {
  width: 55%;
}


/* =========================================
   パターンB：複数件（グリッド・縦長）
   ========================================= */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.layout-grid .related-card {
  display: flex;
  flex-direction: column; /* 縦積み */
}

.layout-grid .related-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
}


/* =========================================
   スマホ対応（共通）
   ========================================= */
@media (max-width: 768px) {
  
  .layout-single .related-card {
    flex-direction: column; /* スマホは縦積み */
  }
  
  .layout-single .related-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: auto;
  }
  
  .layout-single .related-card-content {
    width: 100%;
  }

  .layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --------------------------------------------------
   お知らせ一覧（WP標準Row活用・スマート版）v2
   ※横幅調整済み
-------------------------------------------------- */

/* 【親】行ブロック (news-list-row) */
.news-list-row {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  align-items: center; /* 垂直方向の中央揃え */
  width: 100%;
}

/* ホバー時の背景 */
.news-list-row:hover {
  background-color: #fafafa;
}

/* 【子1】メタ情報エリア (news-meta) */
.news-meta {
  /* ★変更点：幅を180pxから260pxに拡大 */
  width: 260px;    
  flex-shrink: 0;  /* 画面が狭くなっても縮ませない */
  margin-right: 20px; /* タイトルとの余白 */
  
  display: flex;
  align-items: center;
  
  /* ★変更点：日付とラベルが縦にならないように強制 */
  white-space: nowrap; 
}

/* 日付の調整 */
.news-meta time {
  font-size: 14px;
  color: #777;
  font-family: 'Roboto', sans-serif;
  margin-right: 12px; /* ラベルとの隙間 */
  white-space: nowrap;
}

/* 【子2】タイトル (news-title) */
.news-title {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  
  /* 残りの幅を全部使う */
  flex-grow: 1; 
  min-width: 0; /* フレックスアイテムのはみ出し防止 */
}

.news-title a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.news-list-row:hover .news-title a {
  color: #0066b3;
  text-decoration: underline;
}


/* --------------------------------------------------
   スマホ対応 (768px以下)
-------------------------------------------------- */
@media (max-width: 768px) {
  /* 親の向きを縦に変える */
  .news-list-row {
    flex-direction: column; 
    align-items: flex-start; /* 左揃え */
    padding: 15px 0;
    gap: 8px; 
  }
  
  /* メタ情報の幅制限を解除 */
  .news-meta {
    width: 100%; /* ここで固定幅を解除 */
    margin-right: 0;
    margin-bottom: 5px;
    white-space: normal; /* スマホなら必要に応じて折り返し許可（基本は1行ですが） */
  }
  
  /* タイトルの文字サイズ微調整 */
  .news-title {
    font-size: 15px;
    width: 100%;
  }
}


/* =========================================================
   15. お知らせラベル（ニュースカテゴリーラベル）
   --------------------------------------------------------- */
/* 万能カテゴリラベル（サイズ調整版） */
.universal-badge {
  display: inline-block;
  font-size: 16px; /* 11px -> 13px にアップ */
  font-weight: 400;
  line-height: 1;
  padding: 6px 12px 5px; /* 余白も少し広げて窮屈さを解消 */
  border-radius: 8px;
  letter-spacing: 0.05em;
  
  /* 位置調整 */
  vertical-align: middle;
  margin-left: 12px;
  position: relative;
  top: -2px;
  
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1); 
}




/* ===========================
   対応規格一覧カード
   （/covered-standards/ 内の Query Loop 想定）
   =========================== */

/* UL の素のリスト感を消す */
.page .wp-block-post-content .wp-block-post-template {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* li 自体は高さ100%にしてカードを伸ばせるように */
.page .wp-block-post-content .wp-block-post-template > li.wp-block-post {
  height: 100%;
}

/* カード本体 */
.page .wp-block-post-content .em-standard-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;

  /* inline の padding:30px はそのまま生かす想定 */
  border-radius: 18px;
  background-color: #ffffff;

  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* hover でカード全体をほんの少し浮かせる */
.page .wp-block-post-content .em-standard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

/* タイトル（デフォルトクラスのまま） */
.page .wp-block-post-content .em-standard-card .wp-block-post-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.05rem, 1.02rem + 0.3vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
}

/* タイトルリンク：通常時 */
.page .wp-block-post-content .em-standard-card .wp-block-post-title a {
  display: inline-block;
  text-decoration: none;
  color: var(--wp--preset--color--brand-1);
  transition: color 0.2s ease, transform 0.2s ease;
}

/* hover 時：タイトルを少しだけ持ち上げ＋色変更 */
.page .wp-block-post-content .em-standard-card:hover .wp-block-post-title a {
  color: var(--wp--preset--color--primary-hover);
  transform: translateY(-1px);
}

/* 画像まわり：比率を揃えて今っぽく見せる */
.page .wp-block-post-content .em-standard-card .wp-block-post-featured-image {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}

/* img 自体：aspect-ratio と object-fit で揃える */
.page .wp-block-post-content .em-standard-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* hover 時：画像をふわっと拡大 */
.page .wp-block-post-content .em-standard-card:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

/* 抜粋テキスト */
.page .wp-block-post-content .em-standard-card .wp-block-post-excerpt__excerpt {
  margin: 0.5rem 0 0.8rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--wp--preset--color--text-secondary, rgba(0, 0, 0, 0.7));
}

/* 「規格詳細へ」テキストは既存デザインを尊重。
   位置だけ少し余白を取る */
.page .wp-block-post-content .em-standard-card .wp-block-post-excerpt__more-text {
  margin: 0.2rem 0 0;
}

/* カード下寄せにしたい場合はこれをONにする
.page .wp-block-post-content .em-standard-card .wp-block-post-excerpt {
  margin-top: auto;
}
*/

/* スマホ向けの軽い調整 */
@media (max-width: 599px) {
  .page .wp-block-post-content .em-standard-card {
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  }

  .page .wp-block-post-content .em-standard-card .wp-block-post-title {
    font-size: clamp(1.05rem, 1.02rem + 0.2vw, 1.2rem);
  }
}













/* =========================================================
   16. CTA
   --------------------------------------------------------- */
/* =========================
   CII CTA エリア
   ========================= */

.cta-cii {
  background: #4b9bb4; /* 外側のカラーエリア */
  padding: clamp(2.2rem, 3.5vw, 3rem) 1.25rem;
  display: flex;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "YuGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    "Meiryo", sans-serif;
}

.cta-cii__inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff; /* 内側カードは白 */
  border-radius: 1.4rem;
  padding: clamp(2rem, 3.3vw, 2.6rem); /* 余白少し控えめ */
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

/* 見出しテキスト（pタグ） */
.cta-cii__heading {
  text-align: center;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 2.1rem;
}

/* カード3列レイアウト */
.cta-cii__grid {
  gap: clamp(1.3rem, 1.8vw, 1.8rem);
}

.cta-cii__grid > .wp-block-column {
  display: flex;
}

.cta-cii__item {
  background: #ffffff;
  border:1px solid #d8d8d8;
  border-radius: 1.4rem;
  /* padding: 2.1rem 1.8rem 2rem; */
  padding: 1.2rem 0.8rem 1.1rem;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.05);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* アイコン（円＋PNG画像） */
.cta-cii__icon {
  width: 92px;            /* ひとまわり大きく */
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景色を濃いめに調整（白抜きでも見えるように） */
.icon-plan {
  background: #2f6f8e; /* 濃いブルー */
}
.icon-standards {
  background: #d8961b; /* 濃い黄色 */
}

.icon-contact {
  background: #c5435a; /* 濃いピンク */
}

.icon-phone {
  background: #247055; /* 濃いグリーン */
}

/* 256pxアイコンを○にフィットさせる（余白少なめ） */
.cta-cii__icon img {
  width: 82% !important;  /* アイコン自体も大きく */
  height: auto !important;
  max-width: 100%;
  display: block;
}

/* タイトル・本文 */
.cta-cii__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.cta-cii__text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555555;
  margin: 0 0 0.2rem;
}

/* 電話番号のスタイル（リンクなし・大きく目立たせる） */
.cta-cii__tel {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
  color: #ff6900;
}

.cta-cii__tel-note {
  font-size: 1.2rem;
  color: #444444;
  margin: 0;
}

/* ボタン：core/button の上書き（1・2列目） */
.cta-cii__buttons {
  justify-content: center;
}

.cta-cii__button {
  margin: 0;
}

/* ボタン共通デザイン（影なし・文字大きめ・ゴシック） */
.cta-cii__button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2.2rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "YuGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    "Meiryo", sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: none;
  transition: transform 0.14s ease, background-color 0.14s ease,
    color 0.14s ease, border-color 0.14s ease;
  position: relative;
  overflow: hidden;
}

/* ボタン右側の矢印（CSSのみで追加） */
.cta-cii__button .wp-block-button__link::after {
  content: "›";
  margin-left: 0.5em;
  font-size: 1.1em;
  transform: translateX(0);
  transition: transform 0.18s ease;
}

/* プラン：ブルー */
.cta-cii__button--plan .wp-block-button__link {
  background: #236b91;
  color: #ffffff !important;
}

/* 対応可能規格：イエロー */
.cta-cii__button--standards .wp-block-button__link {
  background: #d8961b;
  color: #ffffff !important;
}


/* 無料相談：ピンク */
.cta-cii__button--contact .wp-block-button__link {
  background: #cf4d60;
  color: #ffffff !important;
}

/* ホバー共通（軽く浮かせ＆矢印がスッと動く） */
.cta-cii__button .wp-block-button__link:hover {
  transform: translateY(-1px);
}

.cta-cii__button .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

/* レスポンシブ調整 */

@media (max-width: 960px) {
  .cta-cii {
    padding-inline: 1rem;
  }

  .cta-cii__grid {
    gap: 1.4rem;
  }

  .cta-cii__item {
    padding: 2rem 1.6rem 1.9rem;
  }
}

@media (max-width: 720px) {
  .cta-cii {
    padding: 1.8rem 1rem 2.2rem;
  }

  .cta-cii__inner {
    padding: 1.9rem 1.4rem 2.1rem;
  }

  .cta-cii__heading {
    font-size: 1.25rem;
    margin-bottom: 1.7rem;
  }

  .cta-cii__grid {
    gap: 1.2rem;
  }

  /* スマホ時も中央寄せを維持 */
  .cta-cii__item {
    padding: 1.9rem 1.4rem 1.7rem;
    text-align: center;
    align-items: center;
  }

  .cta-cii__icon {
    margin: 0 0 1.1rem;
  }

  .cta-cii__buttons {
    justify-content: center;
  }

  .cta-cii__tel {
    font-size: 1.7rem;
  }
}





/* =========================================================
   17. CF7フォーム用スタイル
   --------------------------------------------------------- */

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: #fff;
  box-sizing: border-box;
  border: 1px solid #eee;
}

.form-item {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding: 24px 0;
}

.form-item:first-child {
  padding-top: 0;
}

.form-item:last-of-type {
  border-bottom: none;
}

/* ラベルエリア */
.form-label {
  width: 30%;
  padding-right: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}

.form-label label {
  font-weight: 700;
  color: #333;
  margin-bottom: 0; /* テーマの余白リセット */
}

/* バッジ */
.required-badge {
  background-color: #d32f2f;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.any-badge {
  background-color: #999;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 入力エリア */
.form-input {
  width: 70%;
  box-sizing: border-box;
}

/* CF7が出力するinput要素へのスタイル */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input select,
.form-input textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: #fdfdfd;
  box-sizing: border-box;
  max-width: 100%; /* はみ出し防止 */
}

/* プレースホルダー */
.form-input ::placeholder {
  color: #bbb;
}

/* フォーカス時 */
.form-input input:focus,
.form-input select:focus,
.form-input textarea:focus {
  outline: none;
  border-color: #0056b3;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

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

/* CF7の送信ボタンクラス */
.wpcf7-submit {
  background-color: #0056b3;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 15px 60px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  -webkit-appearance: none;
}

.wpcf7-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* レスポンシブ対応（768px以下） */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 20px;
    border: none;
  }

  .form-item {
    display: block;
    padding: 20px 0;
  }

  .form-label {
    width: 100%;
    margin-bottom: 10px;
    padding-right: 0;
  }

  .form-input {
    width: 100%;
  }
  
  .wpcf7-submit {
    width: 100%;
  }
}

/* CF7が自動挿入するbrタグやpタグの余白を打ち消す（レイアウト崩れ防止） */
.form-wrapper br {
    display: none;
}
.form-wrapper p {
    margin: 0;
    padding: 0;
}





/* =========================================================
   18. PASSWORD FORM
   --------------------------------------------------------- */
.post-password-form{
  background:#f9f9f9; border:1px solid #ddd; border-radius:8px; padding:2rem;
  box-shadow:0 4px 12px rgba(0,0,0,0.05); max-width:500px; margin:2rem auto;
}
.post-password-form label,
.post-password-form input[type="password"],
.post-password-form input[type="submit"]{ display:inline-block; vertical-align:middle; margin:0 .5rem 0 0; }
.post-password-form label{ font-weight:bold; }
.post-password-form input[type="password"]{ width:60%; padding:.5rem; font-size:1rem; border:1px solid #ccc; border-radius:4px; }
.post-password-form input[type="submit"]{ padding:.5rem 1rem; font-size:1rem; background-color:#0073aa; color:#fff; border:none; border-radius:4px; font-weight:bold; cursor:pointer; }
.post-password-form input[type="submit"]:hover{ background-color:#005e8a; }

/* =========================================================
   19. UTILITIES (width helpers)
   --------------------------------------------------------- */
@media screen and (min-width: 768px) {
  .pc-w100per{ width:100%!important; } .pc-w90per{ width:90%!important; } .pc-w80per{ width:80%!important; }
  .pc-w75per{ width:75%!important; } .pc-w70per{ width:70%!important; } .pc-w65per{ width:65%!important; }
  .pc-w60per{ width:60%!important; } .pc-w55per{ width:55%!important; } .pc-w50per{ width:50%!important; }
}
@media screen and (max-width: 768px) {
  .sp-w100per{ width:100%!important; } .sp-w95per{ width:95%!important; } .sp-w90per{ width:90%!important; }
  .sp-w85per{ width:85%!important; } .sp-w80per{ width:80%!important; } .sp-w75per{ width:75%!important; }
  .sp-w70per{ width:70%!important; } .sp-w65per{ width:65%!important; } .sp-w60per{ width:60%!important; }
  .sp-w55per{ width:55%!important; } .sp-w50per{ width:50%!important; } .sp-w45per{ width:45%!important; }
  .sp-w40per{ width:40%!important; } .sp-w35per{ width:35%!important; } .sp-w30per{ width:30%!important; }
  .sp-w25per{ width:25%!important; } .sp-w20per{ width:20%!important; } .sp-w18per{ width:18%!important; }
  .sp-w16per{ width:16%!important; } .sp-w15per{ width:15%!important; } .sp-w14per{ width:14%!important; }
  .sp-w12per{ width:12%!important; } .sp-w10per{ width:10%!important; }
  .sp-max-w180px{ max-width:180px; }
  .sp-max-w400px{ max-width:400px!important; } .sp-max-w450px{ max-width:450px!important; }
  .sp-max-w500px{ max-width:500px!important; } .sp-max-w550px{ max-width:550px!important; }
  .sp-max-w600px{ max-width:600px!important; } .sp-max-w650px{ max-width:650px!important; }
  .sp-max-w700px{ max-width:700px!important; } .sp-max-w750px{ max-width:750px!important; }
}