/*
Theme Name: FRIZE Child
Theme URI: https://frize.jp/
Template: lightning
Description: 株式会社フライズ コーポレートサイト用子テーマ。トップページのカスタム演出と共通スタイルの上書きを管理します。
Author: FRIZE CORP.
Author URI: https://frize.jp/
Version: 1.13.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frize-child
*/

/* ============================================================
   共通スタイルの上書き（Lightning テーマベース）
   ============================================================ */

/* --- カラー変数 --- */
:root {
  --frize-primary: #0D47A1;
  --frize-primary-dark: #0A3A85;
  --frize-primary-light: #1565C0;
  --frize-accent: #E3F2FD;
  --frize-bg-gray: #F5F7FA;
  --frize-text: #333333;
  --frize-text-light: #666666;
  --frize-text-muted: #999999;
  --frize-border: #E0E0E0;
  --frize-dark-bg: #1A1A2E;
}

/* --- フォント --- */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: var(--frize-text);
  line-height: 1.7;
}

/* --- ヘッダー上書き --- */
.site-header,
.site-header-container,
header.site-header {
  position: relative;
  z-index: 999 !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Lightning ヘッダー固定時も最前面に */
.site-header-sub,
.vk-mobile-nav-menu-btn {
  z-index: 999 !important;
}

.site-header-logo img {
  max-height: 40px;
}

/* --- Lightning ヘッダー共通オーバーライド（TOP/下層統一） --- */
/* ヘッダー高さ統一 */
.site-header-container {
  display: flex;
  align-items: center;
  height: 64px;
}

/* Lightning のナビリンク: bold 解除・フォント統一 */
.global-nav-list > .menu-item > a,
.global-nav-list > .menu-item > a > strong,
.global-nav-list > .menu-item > a .global-nav-name {
  font-weight: 500 !important;
  font-size: 14px !important;
}

/* Lightning の acc-btn（▼ボタン）をデスクトップナビのみ非表示 */
/* モバイルナビ(.vk-mobile-nav)内の acc-btn は残す */
.site-header .global-nav-list > .menu-item > .acc-btn,
.site-header .global-nav .acc-btn,
#global-nav span.acc-btn {
  display: none !important;
}

/* ナビリンク: 横並びレイアウト */
.global-nav-list {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
}
.global-nav-list > .menu-item > a {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  white-space: nowrap;
  position: relative;
}

/* ホバーアンダーライン（::after を使用） */
.global-nav-list > .menu-item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--frize-primary);
  transition: width 0.3s;
}
.global-nav-list > .menu-item > a:hover::after,
.global-nav-list > .current-menu-item > a::after,
.global-nav-list > .current-menu-ancestor > a::after {
  width: 100%;
}

/* 親メニュー矢印インジケーター（▾ を文字の右に表示） */
/* 下層ページ: Lightning が <strong class="global-nav-name"> でラップ */
.global-nav-list > .menu-item-has-children > a .global-nav-name::after {
  content: " ▾";
  font-size: 10px;
  font-weight: 400;
}
/* TOPページ: フォールバックヘッダー（global-nav-name なし） */
.front-page-header .global-nav-list > .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 4px;
  font-size: 10px;
  width: auto;
  height: auto;
  background: none;
  position: static;
  bottom: auto;
}

/* グローバルナビ CTA ボタン（お問い合わせ） */
.global-nav .nav-cta,
.global-nav-list .menu-item-cta > a,
#global-nav .menu-item-cta > a,
.global-nav-list li[class*="cta"] > a {
  background: var(--frize-primary) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.3s;
}
.global-nav .nav-cta:hover,
.global-nav-list .menu-item-cta > a:hover {
  background: var(--frize-primary-light) !important;
}

/* --- ドロップダウンメニュー --- */
.global-nav-list .menu-item {
  position: relative;
}
.global-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  padding: 8px 0;
  list-style: none;
}
.global-nav-list .menu-item:hover > .sub-menu {
  display: block;
}
.global-nav-list .sub-menu .menu-item {
  width: 100%;
}
.global-nav-list .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--frize-text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.global-nav-list .sub-menu a:hover {
  background: var(--frize-bg-gray);
  color: var(--frize-primary);
}
/* サブメニュー先頭の「○○ 一覧」項目 */
.global-nav-list .sub-menu .menu-item-overview > a {
  font-weight: 600;
  border-bottom: 1px solid var(--frize-border, #e0e0e0);
}
/* モバイルメニューの「一覧」項目 */
.frize-mobile-nav__list .menu-item-overview > a {
  font-weight: 600;
  border-bottom: 1px solid var(--frize-border, #e0e0e0);
}

/* --- 全幅ブロック対応 --- */
body.page .alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* --- Lightning ページタイトル帯を非表示 --- */
body.page .page-header,
body.page .entry-header,
body.page .vk_page_header {
  display: none !important;
}

/* --- ヘッダー〜ヒーロー間の余白を詰める --- */
body.page .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page .main-section,
body.page #main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page .site-body {
  padding-top: 0 !important;
}

/* --- CTA セクションとフッター間の余白を詰める --- */
.frize-cta {
  margin-bottom: 0 !important;
}
.frize-cta + .wp-block-spacer {
  display: none;
}
body.page .entry-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
body.page .main-section,
body.page #main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
body.page .site-body {
  padding-bottom: 0 !important;
}
/* 最後のブロック（CTA等）の下マージンを消す */
body.page .entry-content > *:last-child {
  margin-bottom: 0 !important;
}

/* --- パンくずリスト（非表示だが定義は残す） --- */
.breadcrumb {
  padding: 12px 40px;
  font-size: 12px;
  background: #FAFAFA;
  border-bottom: 1px solid #f0f0f0;
}
.breadcrumb a {
  color: var(--frize-primary);
}

/* --- CTA セクション内ボタン（下層ページ） --- */
/* 白背景ボタンのテキストを確実に青に */
.frize-cta .wp-block-button__link,
.wp-block-cover.frize-cta .wp-block-button__link {
  color: var(--frize-primary) !important;
  background: #fff !important;
}
.frize-cta .wp-block-button__link:hover {
  background: var(--frize-accent) !important;
}
/* アウトラインボタン（実績・事例を見る等） */
.frize-cta .is-style-outline .wp-block-button__link {
  color: #fff !important;
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.7);
}
.frize-cta .is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* --- 下層ページヒーロー（カバーブロック共通） --- */
.page-hero-cover {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ヒーロー背景オーバーレイ: 淡い青のグラデーション */
.page-hero-cover .wp-block-cover__background {
  background: linear-gradient(135deg, rgba(13,71,161,0.45), rgba(26,35,126,0.40)) !important;
  opacity: 1 !important;
}
/* 動画帯（ビジョンバンド等）のオーバーレイ: 濃い青 */
.wp-block-cover.st-fadein .wp-block-cover__background {
  background: linear-gradient(135deg, rgba(13,71,161,0.85), rgba(26,35,126,0.80)) !important;
  opacity: 1 !important;
}
.page-hero-cover .wp-block-cover__inner-container {
  text-align: center;
  color: #fff;
}
.page-hero-cover h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --- バリューカードスタイル（実際のDOM: column > group.has-background） --- */
.wp-block-column.st-fadeup > .wp-block-group.has-background {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}
.wp-block-column.st-fadeup > .wp-block-group.has-background:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
  transform: translateY(-2px);
}

/* --- 下層ページ カードスタイル（カラム内のグループのみ対象） --- */
.wp-block-column > .st-fadeup.wp-block-group {
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.wp-block-column > .st-fadeup.wp-block-group:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
/* カード高さを揃える（行を跨いで統一） */
.wp-block-column > .st-fadeup.wp-block-group {
  min-height: 300px;
}

/* カード画像エリア: 中央切り抜き */
.wp-block-column > .st-fadeup.wp-block-group > .wp-block-image {
  margin: 0 !important;
  border-radius: 0 !important;
  position: relative;
  height: 160px;
  overflow: hidden;
}
.wp-block-column > .st-fadeup.wp-block-group > .wp-block-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}
.wp-block-column > .st-fadeup.wp-block-group > .wp-block-image figcaption {
  display: none;
}
/* 画像の上にグラデーションオーバーレイ（ブルーグレー） */
.wp-block-column > .st-fadeup.wp-block-group > .wp-block-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(55,65,81,0.75) 0%, rgba(55,65,81,0.1) 100%);
  pointer-events: none;
}
/* プレースホルダー（画像未設定時） */
.wp-block-column > .st-fadeup.wp-block-group > p[style*="background-color:#e0e0e0"] {
  margin: 0 !important;
  border-radius: 0 !important;
  max-height: 160px;
  overflow: hidden;
}

/* タイトル(h3)を画像の上にオーバーレイ */
.wp-block-column > .st-fadeup.wp-block-group > .wp-block-heading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px !important;
  margin: 0;
  color: #fff !important;
  font-size: 18px !important;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* テキスト部分のパディング */
.wp-block-column > .st-fadeup.wp-block-group > p:not([style*="background-color:#e0e0e0"]) {
  padding-left: 20px;
  padding-right: 20px;
}
.wp-block-column > .st-fadeup.wp-block-group > p:last-child {
  padding-bottom: 20px;
}
/* Lightning デフォルトのh3/h4罫線をサイト全体で消す */
h3.wp-block-heading,
h4.wp-block-heading {
  border: none !important;
}
h3.wp-block-heading::after,
h4.wp-block-heading::after,
h3.wp-block-heading::before,
h4.wp-block-heading::before {
  display: none !important;
  content: none !important;
}
/* 画像直下の説明テキスト上部マージン */
.st-fadeup.wp-block-group .wp-block-heading + p {
  padding-top: 12px;
}

/* --- カスタムフッター（WF準拠4カラム） --- */
.frize-footer {
  background: var(--frize-dark-bg, #1A1A2E);
  color: #aaa;
  padding: 60px 40px 0;
}
.frize-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.frize-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.frize-footer__logo {
  max-height: 36px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(0.7);
}
.frize-footer__brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}
.frize-footer__company-info {
  font-size: 12px;
  line-height: 1.8;
  color: #888;
}
.frize-footer__nav-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  text-decoration: none;
}
a.frize-footer__nav-title:hover {
  color: #ccc;
}
.frize-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.frize-footer__links li { margin-bottom: 8px; }
.frize-footer__links a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.frize-footer__links a:hover { color: #fff; }
.frize-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.frize-footer__bottom small {
  font-size: 12px;
  color: #666;
}
.frize-footer__policy {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.frize-footer__policy a {
  font-size: 11px;
  color: #666;
  text-decoration: none;
}
.frize-footer__policy a:hover { color: #aaa; }

/* Lightning デフォルトフッターを非表示（子テーマ footer.php と重複防止） */
.site-footer:not(.frize-footer) {
  display: none !important;
}

@media (max-width: 900px) {
  .frize-footer { padding: 40px 20px 0; }
  .frize-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .frize-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .frize-footer__policy { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
  .frize-footer__grid { grid-template-columns: 1fr; }
}

/* --- フロントページ ヘッダーフォールバック（Lightning 未出力時） --- */
.front-page-header .site-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
}
.front-page-header .site-header-logo a {
  font-size: 18px;
  font-weight: 700;
  color: var(--frize-text);
  text-decoration: none;
}
.front-page-header .global-nav-list {
  display: flex !important;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.front-page-header .global-nav-list > .menu-item > a,
.front-page-header .global-nav-list > .menu-item > strong {
  display: block;
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--frize-text);
  text-decoration: none;
  white-space: nowrap;
}
.front-page-header .global-nav-list > .menu-item > strong > a {
  text-decoration: none;
  color: inherit;
}
/* フロントページ フッターフォールバック */
.front-page-footer {
  background: var(--frize-dark-bg, #1A1A2E);
  color: #aaa;
  padding: 60px 40px 30px;
}
.front-page-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.front-page-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.front-page-footer__nav a {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
}
.front-page-footer__nav a:hover { color: #fff; }
.front-page-footer__copy {
  font-size: 12px;
  color: #666;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- 共通モバイルメニュー (991px以下で表示) --- */
/* 「≡ メニュー」ボタン */
.frize-mobile-btn {
  display: none;
  align-items: center;
  gap: 6px;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  background: #fff;
  border: 1px solid var(--frize-border, #e0e0e0);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
/* WP管理バー表示時のオフセット（管理バーから常に16pxの間隔） */
.admin-bar .frize-mobile-btn { top: 48px; }  /* 32px(管理バー) + 16px */
@media (max-width: 782px) {
  .admin-bar .frize-mobile-btn { top: 62px; } /* 46px(管理バー) + 16px */
}
.frize-mobile-btn__icon {
  font-size: 18px;
  line-height: 1;
  color: var(--frize-text);
}
.frize-mobile-btn__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--frize-text);
  letter-spacing: 0.05em;
}
/* メニューオープン時はボタンを非表示（閉じるはパネル内で行う） */
.frize-mobile-btn.is-open {
  display: none !important;
}

/* オーバーレイ */
.frize-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}
.frize-mobile-overlay.is-open { display: block; }

/* スライドパネル */
.frize-mobile-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 16px 0 40px;
}
.frize-mobile-panel.is-open { right: 0; }
.admin-bar .frize-mobile-panel { top: 32px; height: calc(100vh - 32px); }
@media (max-width: 782px) {
  .admin-bar .frize-mobile-panel { top: 46px; height: calc(100vh - 46px); }
}

/* 閉じるバー（パネル最上部） */
.frize-mobile-panel__close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  background: var(--frize-bg-gray, #f5f7fa);
  border: none;
  border-bottom: 1px solid var(--frize-border, #e0e0e0);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--frize-text);
  padding: 12px 20px;
}

/* メニューリスト */
.frize-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.frize-mobile-nav__list > li {
  border-bottom: 1px solid var(--frize-border, #e0e0e0);
  position: relative;
}
.frize-mobile-nav__list > li > a {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--frize-text);
  text-decoration: none;
  font-weight: 500;
}
.frize-mobile-nav__list > li > a:hover {
  color: var(--frize-primary);
  background: var(--frize-bg-gray, #f5f7fa);
}

/* サブメニュートグル */
.frize-mobile-nav__toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  border-left: 1px solid var(--frize-border, #e0e0e0);
  font-size: 18px;
  color: var(--frize-text-light, #666);
  cursor: pointer;
}
.frize-mobile-nav__list > li.is-open > .frize-mobile-nav__toggle {
  content: "−";
}
.frize-mobile-nav__list > li.is-open > .frize-mobile-nav__toggle::after {
  content: "−";
}

/* サブメニュー */
.frize-mobile-nav__list .sub-menu {
  display: none;
  list-style: none;
  padding: 0 0 8px 16px;
  margin: 0;
}
.frize-mobile-nav__list > li.is-open > .sub-menu { display: block; }
.frize-mobile-nav__list .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--frize-text-light, #666);
  text-decoration: none;
}
.frize-mobile-nav__list .sub-menu a:hover { color: var(--frize-primary); }

/* Lightning のモバイルナビを非表示（統一のため） */
.vk-mobile-nav,
.vk-mobile-nav-menu-btn,
#vk-mobile-nav {
  display: none !important;
}

/* --- 固定ページ: サイドバー非表示・1カラム強制 --- */
body.page .sub-section,
body.page .vk_sidebar,
body.page aside.widget-area {
  display: none !important;
}
body.page .main-section {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
body.page .site-body-container {
  display: block !important;
}

/* --- セクション共通 --- */
.frize-section {
  padding: 80px 40px;
}
.frize-section:nth-child(even) {
  background: var(--frize-bg-gray);
}
.frize-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.frize-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--frize-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.frize-section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* --- CTA セクション --- */
.frize-cta {
  background: linear-gradient(135deg, var(--frize-primary), var(--frize-primary-light));
  color: #fff;
  text-align: center;
  padding: 60px 40px;
}
.frize-cta h2 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.frize-cta p { opacity: 0.85; margin-bottom: 24px; }
.frize-cta .btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--frize-primary);
  padding: 12px 36px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}
.frize-cta .btn-primary:hover { background: var(--frize-accent); }

/* --- フッター上書き --- */
.site-footer {
  background: var(--frize-dark-bg) !important;
  color: #aaa !important;
}
.site-footer a,
.site-footer .widget a,
.site-footer .footer-nav a,
.site-footer .vk_footer a,
.site-footer li a {
  color: #aaa !important;
}
.site-footer a:hover,
.site-footer .widget a:hover,
.site-footer li a:hover {
  color: #fff !important;
}
.footer-policy-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
}
.footer-policy-links a {
  font-size: 11px;
}

/* --- カラム（カード）のフェードアップ --- */
.wp-block-columns > .wp-block-column {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.wp-block-columns > .wp-block-column.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* カード間の時差アニメーション */
.wp-block-columns > .wp-block-column:nth-child(2) {
  transition-delay: 0.15s;
}
.wp-block-columns > .wp-block-column:nth-child(3) {
  transition-delay: 0.3s;
}
.wp-block-columns > .wp-block-column:nth-child(4) {
  transition-delay: 0.45s;
}

/* --- 数字で見るFRIZE（カウントアップ） --- */
.frize-numbers-section {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  margin-left: -50vw !important;
  margin-right: 0 !important;
}
.frize-count-suffix {
  font-size: 18px !important;
  font-weight: 400 !important;
}
/* CTAの前にマージン */
.frize-cta {
  margin-top: 60px !important;
}

/* --- 選考フロー --- */
.frize-flow-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}
/* ステップカード（frize-flow-section 内の columns） */
.frize-flow-section > .wp-block-columns {
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  max-width: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
  align-items: center;
  flex-wrap: nowrap !important;
}
/* STEPバッジのカラム: 丸の幅に固定 */
.frize-flow-section > .wp-block-columns > .wp-block-column:first-child {
  flex: 0 0 40px !important;
  max-width: 40px !important;
}
/* テキストカラム: 残りを使用 */
.frize-flow-section > .wp-block-columns > .wp-block-column:last-child {
  flex: 1 1 auto !important;
}
/* STEP バッジ（丸アイコン: ::beforeでSTEP、テキストで数字） */
.frize-flow-badge {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--frize-primary, #0D47A1);
  color: #fff !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}
.frize-flow-badge::before {
  content: "STEP";
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 1px;
}
/* "STEP" の文字を出さないバリアント（サービス詳細の開発フロー等で使用） */
.frize-flow-badge.is-nostep::before {
  content: none;
}

/* サービス詳細の開発フロー各ステップ（背景はセクションと同色／左の青アクセント） */
.frize-flow-step {
  background: transparent;
  border-left: 4px solid var(--frize-primary, #0D47A1);
  border-radius: 8px;
  padding: 20px 24px !important;
  align-items: center;
}

/* --- 1文字ずつフェードイン（st-fadeup-chars） --- */
.st-fadeup-chars .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.st-fadeup-chars.is-visible .char {
  opacity: 1;
  transform: translateY(0);
}

/* --- スクロールアニメーション（ゆっくりフワッと） --- */
.st-fadeup {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.st-fadeup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.st-fadein {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.st-fadein.is-visible {
  opacity: 1;
}

.st-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.st-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.st-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.st-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- レスポンシブ --- */
@media (max-width: 991px) {
  /* モバイルメニューボタン表示 */
  .frize-mobile-btn { display: flex; }

  /* デスクトップナビ非表示（TOP / 下層共通） */
  .front-page-header #global-nav,
  .site-header #global-nav,
  .site-header .global-nav {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .frize-section { padding: 60px 20px; }
  .page-hero-cover { min-height: 240px; }
  .page-hero-cover h1 { font-size: 28px; }
  .breadcrumb { padding: 10px 20px; }
}

@media (max-width: 600px) {
  .page-hero-cover h1 { font-size: 24px; }
  .frize-section-title { font-size: 22px; }
}

/* ============================================================
   画像セクション（案A）: 角丸＋柔らかなシャドウ
   採用ページ等の「画像＋テキスト」2カラムで、画像側のコラムに
   className="frize-media-image" を付与して使用する。
   ============================================================ */
.frize-media-image > p.has-background,
.frize-media-image > figure,
.frize-media-image > figure img,
.frize-media-image .wp-block-image,
.frize-media-image .wp-block-image img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.frize-media-image > p.has-background {
  background-color: #f3f5f8 !important;
  color: #999 !important;
}
