/*
Theme Name:   Neve Child
Theme URI:    https://themeisle.com/themes/neve/
Description:  3PAC株式会社 公式サイト用 Neve 子テーマ
Author:       3PAC
Template:     neve
Version:      1.0.0
Text Domain:  neve-child
*/

/* =============================================
   CSS カスタムプロパティ（変数）
   ============================================= */
:root {
  --color-black:       #111111;
  --color-dark:        #333333;
  --color-mid:         #666666;
  --color-light:       #999999;
  --color-border:      #dddddd;
  --color-bg-light:    #f5f5f5;
  --color-white:       #ffffff;

  --color-primary:     #111111; /* メインアクセント（黒） */
  --color-accent:      #444444; /* ボタン等のホバー色 */

  --font-base:         'Noto Sans JP', sans-serif;
  --font-en:           'Inter', sans-serif;

  --radius:            4px;
  --transition:        0.2s ease;
}

/* =============================================
   ベーススタイル
   ============================================= */
body {
  font-family: var(--font-base);
  color: var(--color-dark);
  background-color: var(--color-white);
}

a {
  color: var(--color-primary);
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* =============================================
   最新ニュース
   ============================================= */
.wp-block-query-loop {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

/* 各投稿アイテム（外枠 ul にクラスがついているため、直下の li をターゲットに指定） */
.my-query-item > li.wp-block-post {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    gap: 24px;           /* 画像とテキストの間のスキマ */
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border-bottom: 1px solid #e2e8f0;
    list-style: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* ホバー時に背景を少しグレーにし、少しだけ右に動かす上品なエフェクト */
.my-query-item > li.wp-block-post:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
}

/* アイキャッチ画像 */
.my-query-item > li.wp-block-post .wp-block-post-featured-image {
    margin: 0;
    flex-shrink: 0;
    width: 150px;   /* きれいな横長に収まるサイズ */
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.my-query-item > li.wp-block-post .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 日付とタイトルをまとめているグループ */
.my-query-item > li.wp-block-post .wp-block-group {
    display: flex;
    flex-direction: column;
    gap: 6px; /* 日付とタイトルの間のスキマ */
    margin: 0;
    padding: 0;
}

/* 日付の設定 */
.my-query-date {
    font-size: 0.85rem;
    color: #718096; /* 落ち着いたグレー */
    font-family: sans-serif;
    font-weight: 500;
}

/* 投稿タイトル */
.my-query-item > li.wp-block-post .wp-block-post-title {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.my-query-item > li.wp-block-post .wp-block-post-title a {
    color: #1a202c;
    text-decoration: none;
}

.my-query-item > li.wp-block-post .wp-block-post-title a:hover {
    color: #0066cc; /* タイトルホバー時の色 */
}

/* スマホ表示（画面幅768px以下）の調整 */
@media (max-width: 768px) {
    .my-query-item > li.wp-block-post {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }
    
    .my-query-item > li.wp-block-post .wp-block-post-featured-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* スマホでは画像を横いっぱいに広げる */
    }
    
    .my-query-item > li.wp-block-post .wp-block-group {
        gap: 4px;
    }
    
    .my-query-item > li.wp-block-post:hover {
        transform: none; /* スマホでは横移動をオフに */
    }
}

/* =============================================
   ボタン
   ============================================= */
.button,
.wp-block-button__link,
.nv-btn {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background-color var(--transition), color var(--transition);
}

.button:hover,
.wp-block-button__link:hover,
.nv-btn:hover {
  background-color: var(--color-white);
  color: var(--color-primary) !important;
}

/* アウトライン（白抜き）ボタン */
.button-outline {
  background-color: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 12px 28px;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
}

.button-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
}

/* =============================================
   ヘッダー
   ※ Neve Customizer（外観 → カスタマイズ）で色・フォントを設定する。
     ここではDevToolsでクラスを確認してから追記すること。
   ============================================= */

/* =============================================
   ヒーローセクション
   ============================================= */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero-section .hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-light);
  margin-bottom: 40px;
}

/* 背景動画 */
.hero-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 1;
}

/* =============================================
   数値インフォグラフィック（Stats Section）
   ============================================= */
.stats-section {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* セクションタイトル → eyebrow ラベル風 */
.stats-section > .wp-block-heading {
  font-size: 0.7rem !important;
  letter-spacing: 0.24em !important;
  opacity: 0.38;
  margin-bottom: 52px !important;
  position: relative;
}

.stats-section > .wp-block-heading::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 18px auto 0;
}

/* カラム幅を制限し中央揃え */
.stats-section .wp-block-columns {
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* カラム間 区切り線 */
.stats-section .wp-block-column + .wp-block-column {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* 数値 h3：英数字フォントで大きく */
.stats-section .wp-block-column h3 {
  font-family: var(--font-en) !important;
  font-size: clamp(3.5rem, 6vw, 5.5rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 14px !important;
  color: var(--color-white) !important;
}

/* ラベル（工期削減 etc）*/
.stats-section .wp-block-column p {
  font-size: 0.95rem !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.65) !important;
  margin: 12px 0 0 !important;
}

/* レガシークラス（stats-grid / stat-item）*/
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-en);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--color-light);
  margin-top: 8px;
}

/* =============================================
   セクション共通
   ============================================= */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 16px auto 0;
}

/* 背景色のバリエーション */
.bg-white  { background-color: var(--color-white); }
.bg-light  { background-color: var(--color-bg-light); }
.bg-dark   { background-color: var(--color-dark); color: var(--color-white); }
.bg-black  { background-color: var(--color-black); color: var(--color-white); }

/* =============================================
   サービスカード
   ============================================= */
.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  background-color: var(--color-white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
}

/* =============================================
   WORKSカードグリッド
   ============================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  transition: box-shadow var(--transition);
}

.work-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter var(--transition);
}

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

.work-card-body {
  padding: 16px;
}

.work-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 8px;
}

.work-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-mid);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 2px 8px;
}

/* =============================================
   フィルタータブ（WORKS用）
   ============================================= */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background-color: var(--color-white);
  color: var(--color-mid);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* =============================================
   比較表（TECHNOLOGY用）
   ============================================= */
.comparison-table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td,
.wp-block-table th,
.wp-block-table td {
  padding: 16px 20px;
  text-align: center;
  border: none;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  line-height: 1.5;
}

/* ヘッダー行：黒背景・白文字 */
.comparison-table thead th,
.wp-block-table thead th {
  background-color: var(--color-black);
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 18px 20px;
  border-bottom: none;
}

/* 項目列（1列目）：左寄せ・太字 */
.comparison-table tbody tr td:first-child,
.wp-block-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--color-black);
  text-align: left;
  border-right: 1px solid var(--color-border);
}

/* 1列目ヘッダー */
.comparison-table thead th:first-child,
.wp-block-table thead th:first-child {
  text-align: left;
}

/* 3DP工法列（3列目）：微妙なハイライト ― thead のある比較表のみ */
.comparison-table tbody tr td:nth-child(3),
.wp-block-table:has(thead) tbody tr td:nth-child(3) {
  background-color: rgba(17, 17, 17, 0.03);
  font-weight: 600;
  color: var(--color-black);
}

.comparison-table thead th:nth-child(3),
.wp-block-table:has(thead) thead th:nth-child(3) {
  background-color: var(--color-dark);
}

/* 削減率列（最終列）：数字を強調 ― thead のある比較表のみ */
.comparison-table tbody tr td:last-child,
.wp-block-table:has(thead) tbody tr td:last-child {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-black);
  letter-spacing: 0.02em;
}

/* 縞模様（偶数行） */
.comparison-table tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
  background-color: var(--color-bg-light);
}

/* 偶数行の3列目は少し濃く ― thead のある比較表のみ */
.comparison-table tbody tr:nth-child(even) td:nth-child(3),
.wp-block-table:has(thead) tbody tr:nth-child(even) td:nth-child(3) {
  background-color: rgba(17, 17, 17, 0.06);
}

.comparison-table .highlight {
  color: var(--color-black);
  font-weight: 700;
}

/* テーブル外枠：thead のある比較表のみ角丸 */
.wp-block-table:has(thead) {
  border-radius: var(--radius);
  overflow: hidden;
}

/* =============================================
   お問い合わせフォーム（Contact Form 7）
   ============================================= */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-base);
  color: var(--color-dark);
  background-color: var(--color-white);
  transition: border-color var(--transition);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.wpcf7 input[type="submit"] {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition);
}

.wpcf7 input[type="submit"]:hover {
  background-color: var(--color-dark);
}

/* =============================================
   フッター
   ※ ヘッダー同様、Neve Customizer または DevToolsで
     クラス確認後に追記すること。
   ============================================= */

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-section .wp-block-column + .wp-block-column {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 28px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .filter-tabs {
    justify-content: center;
  }
}

/* =============================================
   箇条書き インデント修正（PC左貼り付き対策）
   ============================================= */
.entry-content ul,
.entry-content ol,
.wp-block-list {
  padding-left: 1.75em;
  margin-left: 0;
}

.entry-content ul li,
.entry-content ol li,
.wp-block-list li {
  margin-bottom: 0.45em;
  line-height: 1.85;
}

/*
 * PC: alignfull グループ直下の単独リスト
 * 「製作の流れ」の alignwide グループと同等の
 * 幅制限＋中央寄せを適用して左右の余白を確保する
 */
@media (min-width: 769px) {
  .wp-block-group.alignfull > .wp-block-list,
  .wp-block-group.alignfull > div > .wp-block-list {
    max-width: 840px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 3em;
    padding-right: 2em;
  }
}

/* =============================================
   スクロールリビール アニメーション基盤
   ============================================= */
[data-pac-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-pac-reveal].pac-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ボタンリップル */
@keyframes pac-ripple-anim {
  to { transform: scale(1); opacity: 0; }
}

/* =============================================
   セクションタイトル ライン アニメーション
   ============================================= */
.section-title::after {
  width: 0;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.section-title.pac-visible::after,
.section-title:not([data-pac-reveal])::after {
  width: 40px;
}

/* =============================================
   カード ホバー強化（上部アクセントライン）
   ============================================= */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--color-black);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* =============================================
   ボタン フィルエフェクト強化
   ============================================= */
.wp-block-button__link,
.button,
.nv-btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.wp-block-button__link::after,
.button::after,
.nv-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.wp-block-button__link:hover::after,
.button:hover::after,
.nv-btn:hover::after {
  transform: translateX(0);
}

/* =============================================
   セクション区切り デコレーションライン
   ============================================= */
.entry-content h2,
.entry-content h3 {
  position: relative;
}


/* =============================================
   数値インフォグラフィック 区切り線
   ============================================= */
.stats-grid .stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .stats-grid .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
  }
}

/* =============================================
   フォーカス アウトライン（アクセシビリティ）
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

/* =============================================
   トップページ・各固定ページのタイトル非表示
   ============================================= */
.home .entry-header,
.home .page-header,
.page .entry-header .entry-title {
  display: none;
}

/* =============================================
   白背景ボタンの文字色を黒に強制
   ============================================= */
.wp-block-button__link.has-white-background-color {
  color: #111111 !important;
}

/* =============================================
   アウトラインボタン 可視性修正
   is-style-outline--2 等の WordPress 生成バリアントも含めて対応
   ============================================= */
.wp-block-button[class*="is-style-outline"] .wp-block-button__link {
  color: var(--color-black) !important;
  border-color: var(--color-black) !important;
  background-color: transparent !important;
  border-style: solid !important;
  border-width: 2px !important;
}

.wp-block-button[class*="is-style-outline"] .wp-block-button__link:hover {
  background-color: var(--color-black) !important;
  color: var(--color-white) !important;
  border-color: var(--color-black) !important;
}

/* 黒背景グループ・カバーブロック内では白に戻す */
[style*="background-color:#111111"] .wp-block-button[class*="is-style-outline"] .wp-block-button__link,
.wp-block-cover .wp-block-button[class*="is-style-outline"] .wp-block-button__link {
  color: var(--color-white) !important;
  border-color: var(--color-white) !important;
  background-color: transparent !important;
}

[style*="background-color:#111111"] .wp-block-button[class*="is-style-outline"] .wp-block-button__link:hover,
.wp-block-cover .wp-block-button[class*="is-style-outline"] .wp-block-button__link:hover {
  background-color: var(--color-white) !important;
  color: var(--color-black) !important;
  border-color: var(--color-white) !important;
}


/* =============================================
   フッターメニューの文字色
   ============================================= */
.footer-bottom-inner a,
.footer-content-wrap a,
.footer--row-inner a {
  color: #cccccc !important;
}

.footer-bottom-inner a:hover,
.footer-content-wrap a:hover,
.footer--row-inner a:hover {
  color: #ffffff !important;
  opacity: 1;
}

/* ========================================
   製作の流れ — pac-flow
   (service/modeling/)
   ======================================== */
.pac-flow {
  max-width: 860px;
  margin: 0 auto 48px;
}

/* リードテキスト */
.pac-flow-lead {
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.85;
  color: #333;
  margin-bottom: 28px;
}
.pac-flow-lead strong { color: #111; }
.pac-flow-lead small {
  display: block;
  font-size: 0.82em;
  font-weight: 400;
  color: #888;
  margin-top: 4px;
}

/* 従前工法 比較バー */
.pac-flow-vs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.8rem;
}
.pac-flow-vs-label {
  flex-shrink: 0;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
}
.pac-flow-vs-bar {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 24px 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #bbb;
  color: #555;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

/* ステップフロー全体 */
.pac-flow-steps {
  display: flex;
  align-items: flex-end;
  margin-bottom: 20px;
}

/* フェーズ（ボックス2つ入り） */
.pac-flow-phase {
  flex: 1;
  min-width: 0;
}
.pac-flow-phase-time {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #999;
  text-align: center;
  margin: 0 0 6px;
}
.pac-flow-phase-boxes {
  display: flex;
}

/* ステップボックス */
.pac-flow-box {
  flex: 1;
  min-width: 0;
  background: #111;
  color: #fff;
  font-size: clamp(0.63rem, 1.05vw, 0.78rem);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  padding: 20px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.pac-flow-box--goal { background: #3a7d5a; }

/* フェーズ内の小矢印 */
.pac-flow-intra-arrow {
  flex: 0 0 14px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pac-flow-intra-arrow::after {
  content: '›';
  color: rgba(255,255,255,0.28);
  font-size: 0.9rem;
  line-height: 1;
}

/* フェーズ間の大矢印 */
.pac-flow-inter-arrow {
  flex: 0 0 28px;
  align-self: flex-end;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pac-flow-inter-arrow::after {
  content: '›';
  color: #ccc;
  font-size: 1.8rem;
  line-height: 1;
}

/* 注記 */
.pac-flow-notes {
  display: flex;
  gap: 16px;
}
.pac-flow-note {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #555;
}
.pac-flow-note-head {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.pac-flow-note--cta {
  border-color: #111;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
}
.pac-flow-note--cta strong { color: #111; font-size: 1rem; }

/* ── スマホ（〜640px）── */
@media (max-width: 640px) {
  .pac-flow-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .pac-flow-phase { flex: none; }

  .pac-flow-inter-arrow {
    flex: none;
    height: 30px;
    width: 100%;
  }
  .pac-flow-inter-arrow::after {
    content: '↓';
    font-size: 1.3rem;
  }

  .pac-flow-box {
    font-size: 0.8rem;
    padding: 16px 8px;
  }

  .pac-flow-vs {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .pac-flow-vs-bar { width: 100%; }

  .pac-flow-notes { flex-direction: column; }
}
