
span.wpcf7-list-item {
    display: block;
}

.site-heading {
  white-space: nowrap;	/* 改行を防ぐ */
  flex-shrink: 0;				/* 縮小させない */
  margin-right: 100px;   /* 右に余白 */
}

.site-heading {
  display: flex;
  justify-content: space-between; /* 均等配置 */
  flex-wrap: wrap; /* 6個目以降は折り返す */
  gap: 1rem; /* 項目間の余白 */
}E

.site-heading > * {
  flex: 1 1 calc(20% - 1rem); /* 最大5個で均等幅 */
  box-sizing: border-box;
}

/* スマホだけ適用 */
@media (max-width: 768px) {

  /* ヘッダー内レイアウトを安定させる */
  .site-header .inner,
  .site-branding {
    display: flex;
    align-items: center;
  }

  /* flex 子要素が縮められるように（超重要） */
  .site-branding > * {
    min-width: 0;
  }

  /* タイトル本体：はみ出さない計算にする */
  .site-title,
  .site-title a {
    box-sizing: border-box;   /* padding を幅に含める＝オーバー幅防止 */
    width: 100%;
    max-width: 100%;
    padding-right: clamp(12px, 4.6vw, 31px); /* 右に少し余裕、%やpxでもOK */

    white-space: nowrap;      /* 1行表示 */
    overflow: visible;        /* 省略記号は使わない */

    /* 画面に合わせてフォント縮小（最小14px〜最大32px 例） */
    font-size: clamp(11px, 4.5vw, 24px);
    line-height: 1.1;
    margin: 0;
    text-align: left;
  }
}

/* ===== Footer：常に1行に収める（クレジット帯のページ一覧） ===== */
#colophon .footer-credits-text .list-inline{
  display: flex;
  flex-wrap: nowrap;          /* 折り返さない */
  gap: .75rem;                /* 項目間隔 */
  align-items: center;
  justify-content: center;    /* 中央寄せ（必要に応じて left/right に） */
  white-space: nowrap;        /* 各リンクも改行しない */
  font-size: clamp(9px, 0.9vw, 12px); /* 基本スケール */
  margin: 0; padding: 0;
}

/* li内リンクの体裁微調整 */
#colophon .footer-credits-text .list-inline > li{
  display: inline-block; 
  margin: 0; padding: 0;
}
#colophon .footer-credits-text .list-inline > li > a{
  display: inline-block;
  text-decoration: none;      /* 必要なら下線消し */
}

/* ===== 項目数が増えたら段階的にフォント縮小（CSSだけで実現） ===== */
/* 8個以上 */
#colophon .footer-credits-text .list-inline:has(> li:nth-child(8)){
  font-size: clamp(9px, 0.8vw, 12px);
}
/* 12個以上 */
#colophon .footer-credits-text .list-inline:has(> li:nth-child(12)){
  font-size: clamp(9px, 0.7vw, 11px);
}
/* 16個以上 */
#colophon .footer-credits-text .list-inline:has(> li:nth-child(16)){
  font-size: clamp(8px, 0.7vw, 10px);
}
/* 20個以上 */
#colophon .footer-credits-text .list-inline:has(> li:nth-child(20)){
  font-size: clamp(7px, 0.6vw, 9px);
}

/* 最終手段：超過時は横スクロールで崩れ回避（任意） */
#colophon .footer-credits-text{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* モバイルは隙間を少し詰める（任意） */
@media (max-width: 480px){
  #colophon .footer-credits-text .list-inline{ gap: .5rem; }
}

/* 共通 */
.kv {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: "Hiragino Kaku Gothic ProN","Noto Sans JP",system-ui,sans-serif;
  color: #0a0a0a;
}

/* 見出し */
.kv .title {
  font-weight: 800;
  font-size: clamp(22px, 3.9vw, 45px);
  line-height: 1.25;
  margin: 0 0 12px;
}
.kv .subtitle {
  font-weight: 800;
  font-size: clamp(19px, 2.8vw, 31px);
  line-height: 1.3;
  margin: 0 0 28px;
}

/* 上段リボン */
.kv .ribbon {
  display: inline-block;
  background: #CB8080;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: clamp(17px, 2.3vw, 28px);
  line-height: 1.25;
  position: relative;
}
.kv .ribbon::after{
  content:"";
  position:absolute;
  right:-18px;
  top:50%;
  transform:translateY(-50%);
  width:0;height:0;
  border-left:18px solid #CB8080;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
}

/* 下段吹き出し */
.kv .balloon{
  display:inline-block;
  background:#CB8080;
  padding:20px 26px;
  border-radius:14px;
  font-weight:800;
  font-size:clamp(19px, 2.6vw, 34px);
  line-height:1.25;
  position:relative;
  margin-top:16px;
}

/* ▼の形を菱形で作り、境界が目立たないようにする */
.kv .balloon::before{
  content:"";
  position:absolute;
  left:96px;           /* ここで左右位置を微調整 */
  top:-10px;
  width:22px;
  height:22px;
  background:#CB8080;
  transform:rotate(45deg);
  border-radius:2px;
  box-shadow: 0 0 0 1px #CB8080; /* 滲み防止 */
}

/* 余白 */
.kv .spacer-lg{height:clamp(19px, 4.6vw, 50px);}
.kv .spacer-md{height:clamp(9px, 2.3vw, 22px);}

@media (max-width:520px){
  .kv .ribbon::after{right:-14px;border-left-width:14px;border-top-width:10px;border-bottom-width:10px;}
  .kv .balloon::before{left:64px; width:18px; height:18px; top:-9px;}
}

/* ====================================================
   Paddy & Water — ページコンテンツ用CSS (pnw-*)
   ==================================================== */

.pnw-cases *,
.pnw-cases *::before,
.pnw-cases *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.pnw-cases {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  color: #111827;
  line-height: 1.7;
  font-size: 13.1px;
  background: #ffffff;
}
.pnw-cases a {
  color: #780000;
  text-decoration: none;
}
.pnw-cases a:hover {
  text-decoration: underline;
}

/* Hero */
.pnw-hero {
  background: linear-gradient(135deg, #EAF2FF 0%, #F3F8FF 60%, #FAFBFF 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 72px 24px 60px;
  text-align: center;
}
.pnw-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: #780000;
  border: 1px solid #CB8080;
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 18px;
}
.pnw-hero h1 {
  font-size: clamp(12px, 3.1vw, 20px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #111827;
}
.pnw-hero h1 em {
  font-style: normal;
  color: #780000;
}
.pnw-hero-sub {
  font-size: .95rem;
  color: #6b7280;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.8;
}
.pnw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pnw-badge {
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid #BFD9F5;
  border-radius: 6px;
  padding: 5px 12px;
  color: #780000;
  background: #EAF2FF;
}

/* Section */
.pnw-sec {
  padding: 64px 24px;
}
.pnw-sec-alt {
  background: #f9fafb;
}
.pnw-con {
  max-width: 1060px;
  margin: 0 auto;
}
.pnw-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: #780000;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pnw-title {
  font-size: clamp(10px, 2.3vw, 14px);
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.pnw-lead {
  color: #6b7280;
  font-size: .9rem;
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Stats */
.pnw-stat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 52px;
}
.pnw-sc {
  background: #ffffff;
  padding: 24px 12px;
  text-align: center;
}
.pnw-sv {
  font-size: 13.1px;
  font-weight: 800;
  color: #780000;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.pnw-sl {
  font-size: .72rem;
  color: #6b7280;
}

/* Strength Cards */
.pnw-sgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pnw-scard {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.pnw-scard:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.pnw-scard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
}
.pnw-scard.g::before { background: linear-gradient(90deg, #960000, #780000); }
.pnw-scard.b::before { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.pnw-scard.a::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.pnw-si {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  margin-bottom: 16px;
}
.pnw-scard.g .pnw-si { background: #E0B3B3; }
.pnw-scard.b .pnw-si { background: #dbeafe; }
.pnw-scard.a .pnw-si { background: #DCEEFF; }
.pnw-scard h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.pnw-scard p {
  font-size: .84rem;
  color: #6b7280;
  line-height: 1.75;
}

/* Case Cards */
.pnw-cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.pnw-cc {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.pnw-cc:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.pnw-ch {
  padding: 22px 22px 16px;
  border-bottom: 1px solid #f3f4f6;
}
.pnw-ct {
  display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px;
}
.pnw-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 4px;
  padding: 2px 8px;
}
.pnw-tg { background: #E0B3B3; color: #780000; }
.pnw-tb { background: #dbeafe; color: #1d4ed8; }
.pnw-ta { background: #DCEEFF; color: #1E3A5F; }
.pnw-tp { background: #ede9fe; color: #7c3aed; }
.pnw-ch h3 {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  margin-bottom: 6px;
}
.pnw-ind {
  font-size: .75rem;
  color: #9ca3af;
}
.pnw-cb {
  padding: 16px 22px 20px;
}
.pnw-cb p {
  font-size: .82rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 14px;
}
.pnw-kl {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.pnw-kl li {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .8rem;
  color: #374151;
}
.pnw-kl li::before {
  content: '▶';
  color: #960000;
  font-size: .58rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Timeline */
.pnw-timeline {
  position: relative;
  padding-left: 28px;
  display: flex; flex-direction: column;
}
.pnw-timeline::before {
  content: '';
  position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, #960000, #E0B3B3);
}
.pnw-ti {
  position: relative;
  padding: 0 0 32px 22px;
}
.pnw-ti:last-child { padding-bottom: 0; }
.pnw-dot {
  position: absolute; left: -22px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #960000;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #960000;
}
.pnw-phase {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #780000;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pnw-ti h4 {
  font-size: .92rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.pnw-ti p {
  font-size: .82rem;
  color: #6b7280;
  line-height: 1.75;
}

/* Tech Grid */
.pnw-tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.pnw-tc {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.pnw-tc:hover {
  border-color: #CB8080;
  box-shadow: 0 4px 12px rgba(249,115,22,.1);
}
.pnw-tn {
  font-size: .86rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.pnw-td {
  font-size: .72rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* CTA */
.pnw-cta {
  text-align: center;
  background: linear-gradient(135deg, #EAF2FF, #F3F8FF);
  border-top: 1px solid #DCE8F7;
  padding: 64px 24px;
}
.pnw-cta h2 {
  font-size: clamp(9px, 2vw, 13px);
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}
.pnw-cta p {
  color: #6b7280;
  font-size: .9rem;
  margin-bottom: 28px;
  line-height: 1.8;
}
.pnw-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.pnw-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 700;
  padding: 13px 28px; border-radius: 8px;
  transition: all .2s;
  text-decoration: none !important;
}
.pnw-bp {
  background: #780000;
  color: #ffffff !important;
}
.pnw-bp:hover {
  background: #780000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,120,48,.3);
}
.pnw-bo {
  border: 1px solid #d1d5db;
  color: #374151 !important;
  background: #ffffff;
}
.pnw-bo:hover {
  border-color: #780000;
  color: #780000 !important;
}
.pnw-hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .pnw-sec { padding: 48px 16px; }
  .pnw-hero { padding: 56px 16px 44px; }
  .pnw-stat-row { grid-template-columns: repeat(3, 1fr); }
  .pnw-cgrid { grid-template-columns: 1fr; }
  .pnw-tgrid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== 新デザインページ：テーマKV非表示 ===== */
.page-id-1147 .top-header,
.page-id-2852 .top-header,
.page-id-17 .top-header {
  display: none !important;
}

/* ===== フォントサイズ・レイアウト強化 ===== */
.pnw-cases {
  font-size: 12.3px;
}
.pnw-hero h1 {
  font-size: clamp(17px, 3.5vw, 26px);
  margin-bottom: 20px;
}
.pnw-hero-sub {
  font-size: 1.05rem;
  max-width: 640px;
}
.pnw-title {
  font-size: clamp(13px, 2.4vw, 20px);
  margin-bottom: 14px;
}
.pnw-lead {
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 48px;
}
.pnw-scard p, .pnw-cb p {
  font-size: .93rem;
}
.pnw-eyebrow {
  font-size: .84rem;
  padding: 5px 20px;
}
.pnw-sv {
  font-size: 16.2px;
}
.pnw-sl {
  font-size: .8rem;
}
.pnw-sc {
  padding: 28px 16px;
}
.pnw-cta h2 {
  font-size: clamp(12px, 2.3vw, 19px);
  margin-bottom: 16px;
}
.pnw-cta p {
  font-size: 1rem;
  margin-bottom: 36px;
}
.pnw-btn {
  font-size: .95rem;
  padding: 15px 32px;
}
.pnw-scard h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.pnw-ch h3 {
  font-size: .94rem;
}
.pnw-ti h4 {
  font-size: 1rem;
}
.pnw-ti p {
  font-size: .9rem;
}

/* 全幅ヒーロー・CTA（Bootstrapコンテナを突き破る） */
.pnw-hero,
.pnw-cta {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.pnw-sec-alt {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: max(24px, calc(50vw - 560px));
  padding-right: max(24px, calc(50vw - 560px));
}
.pnw-hero {
  padding-top: 70px;
  padding-bottom: 56px;
}
/* 気球ヒーロー非表示: 新デザインページ */
.page-id-1307 .top-header,
.page-id-2719 .top-header,
.page-id-2721 .top-header,
.page-id-2872 .top-header,
.page-id-2424 .top-header,
.page-id-2234 .top-header,
.page-id-23 .top-header {
  display: none !important;
}





/* ===== フォントサイズ拡大 (2026-06) ===== */
.pnw-eyebrow { font-size: 12px !important; letter-spacing: .12em !important; }
.pnw-hero h1 { font-size: clamp(28px, 5.4vw, 43px) !important; }
.pnw-hero-sub { font-size: 14.6px !important; line-height: 1.9 !important; }
.pnw-label { font-size: 9.2px !important; }
.pnw-title { font-size: clamp(23px, 4.3vw, 32px) !important; }
.pnw-lead { font-size: 13.9px !important; line-height: 1.9 !important; }
.pnw-sv { font-size: 30px !important; }
.pnw-sl { font-size: 11.6px !important; }
.pnw-badge { font-size: 9.2px !important; }
.pnw-scard h3 { font-size: 15.4px !important; }
.pnw-scard p { font-size: 12.3px !important; }
.pnw-cc h3 { font-size: 15.4px !important; }
.pnw-cb p { font-size: 12.3px !important; }
.pnw-ti h4 { font-size: 15.4px !important; }
.pnw-ti p { font-size: 12.3px !important; }
.pnw-phase { font-size: 10px !important; }
.pnw-tag { font-size: 10px !important; }
.pnw-ind { font-size: 10.8px !important; }
.pnw-kl li { font-size: 12.3px !important; }
.pnw-btn { font-size: 10.5px !important; padding: 1rem 2.2rem !important; }
.pnw-cta h2 { font-size: clamp(23px, 4.3vw, 32px) !important; }
.pnw-cta p { font-size: 13.9px !important; }
/* ===== /フォントサイズ拡大 ===== */
/* === Footer: Copyright only === */
#colophon .list-inline { display: none !important; }
#colophon .footer-credits-text::after {
  content: "\00a9 2026 Paddy & Water Inc. All Rights Reserved.";
  display: block;
  text-align: center;
  padding: 0.8rem 0;
  font-size: 10px;
  color: #666;
}

/* === WEB書籍 wb-* font size fix (inline style uses rem@16px but root=10px) === */
.wb-link { font-size: 13.9px !important; line-height: 1.5 !important; }
.wb-nolink { font-size: 13.9px !important; line-height: 1.5 !important; }
.wb-item p { font-size: 12.3px !important; line-height: 1.6 !important; }
.wb-tag { font-size: 9.2px !important; }
.wb-sub { font-size: 10.8px !important; }

/* === Contact form pages: hide header balloon image === */
.page-id-504 .top-header,
.page-id-580 .top-header { display: none !important; }


/* =============================================
   テスト環境専用ルール（本番には存在しない）
   ============================================= */

/* Neve テーマ：全ページのページタイトルを非表示
   （各ページはpnw-casesの中に独自ヒーローを持つ） */
.nv-page-title-wrap {
  display: none !important;
}

/* 診断ページ(page-id-3279)を全幅レイアウトに */
.page-id-3279 .container,
.page-id-3279 .container-fluid {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.page-id-3279 .nv-content-wrap {
  padding: 0 !important;
}
.page-id-3279 .nv-single-page-wrap {
  padding: 0 !important;
}

/* 気球画像エリアを非表示（Neve） */
.top-header.singular-heading,
.single-image,
.bg-single-image {
  display: none !important;
}


/* ===== Neve テーマ ヘッダー微調整 ===== */
/* タグライン（キャッチフレーズ）を非表示 */
.site-description {
  display: none !important;
}
/* サイトタイトルを本番に近いスタイルに */
.site-title a,
.site-title {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #111 !important;
}


/* =============================================
   簡易診断ページ(page-id-3279) トーン統一
   他ページのウォームオレンジ/ベージュ調に合わせる
   ============================================= */

/* ヒーローのネイビー背景 → ウォームクリーム */
.page-id-3279 .hero {
  background: linear-gradient(160deg, #EAF2FF 0%, #F3F8FF 60%, #FAFBFF 100%) !important;
  color: #1F2937 !important;
}
.page-id-3279 .hero h1 {
  color: #111827 !important;
}
.page-id-3279 .hero h1 em {
  color: #960000 !important;
}
.page-id-3279 .hero-eyebrow {
  color: #960000 !important;
}
.page-id-3279 .hero-sub {
  color: #6B7280 !important;
}
.page-id-3279 .badge {
  border: 1px solid rgba(150,0,0,.35) !important;
  color: #780000 !important;
  background: rgba(150,0,0,.07) !important;
}
.page-id-3279 .hero-note {
  color: #9CA3AF !important;
}

/* 軸ヘッダー・プレビュートップのネイビー → オレンジグラデ */
.page-id-3279 .axis-header {
  background: linear-gradient(135deg, #780000 0%, #960000 100%) !important;
}
.page-id-3279 .preview-top {
  background: linear-gradient(135deg, #780000 0%, #960000 100%) !important;
}

/* カスタムサイトヘッダー（ページ内）は非表示 */
.page-id-3279 .nv-content-wrap .site-header,
.page-id-3279 .entry-content .site-header {
  display: none !important;
}

/* 全体背景を他ページと統一 */
.page-id-3279 body,
.page-id-3279 .nv-content-wrap {
  background: #FAFAFA !important;
}

/* Neve: タグライン非表示 */
.nv-title-tagline-wrap small { display: none !important; }



/* nv-active nav link color override */
.nav-ul li.nv-active > .wrap > a {
  color: #272626 !important;
}
/* Neve header background override → white (match production) */
.hfg_header.site-header,
.hfg-wrap,
.header--row {
  background-color: #ffffff !important;
  background: #ffffff !important;
}
.nav-ul li a,
.nav-ul li.nv-active > .wrap > a {
  color: #272626 !important;
}

/* ロゴテキストサイズ調整 + ナビリンク折り返し防止 */
.nv-title-tagline-wrap p.site-title {
  font-size: 18px !important;
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.nav-ul li > a,
.nav-ul li > .wrap > a {
  white-space: nowrap !important;
}
/* 簡易診断ページのヘッダーを他ページと統一 */
.page-id-3279 .hfg_header.site-header {
  display: block !important;
}
.page-id-3279 .hfg_header .container,
.page-id-3279 .header--row .container {
  max-width: 1170px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ===== フォームページ デザイン改善 (応募採用/掲載内容お問い合わせ) ===== */

/* ページタイトルエリア - ダークグラデーション背景 */
.page-id-504 .nv-page-title-wrap,
.page-id-580 .nv-page-title-wrap {
  background: linear-gradient(135deg, #1b2a4a 0%, #0f3460 100%) !important;
  padding: 48px 0 52px;
  margin-bottom: 0;
}

.page-id-504 .nv-page-title h1,
.page-id-580 .nv-page-title h1 {
  color: #ffffff !important;
  position: relative;
  padding-bottom: 18px;
  font-size: 1.8rem;
}

.page-id-504 .nv-page-title h1::after,
.page-id-580 .nv-page-title h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: #960000;
  border-radius: 2px;
}

/* ページ背景 */
.page-id-504 .neve-main,
.page-id-580 .neve-main {
  background: #f2f4f7;
  padding-bottom: 60px;
}

/* フォームコンテンツエリア（白カード） */
.page-id-504 .entry-content,
.page-id-580 .entry-content {
  background: #ffffff;
  padding: 40px 48px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-top: 36px;
}

/* 導入テキスト */
.page-id-504 .entry-content > p,
.page-id-580 .entry-content > p {
  padding: 14px 18px;
  background: #F3F8FF;
  border-left: 4px solid #960000;
  border-radius: 0 6px 6px 0;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* フォームテーブル */
.page-id-504 table.recruit_form,
.page-id-580 table.recruit_form {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.page-id-504 table.recruit_form tr,
.page-id-580 table.recruit_form tr {
  border-bottom: 1px solid #eef0f2;
}

/* ラベルセル（th） */
.page-id-504 table.recruit_form th,
.page-id-580 table.recruit_form th {
  background: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
  min-width: 110px;
  border-right: 3px solid #960000;
  line-height: 1.4;
}

.page-id-504 table.recruit_form th p,
.page-id-580 table.recruit_form th p {
  margin: 0;
}

/* 入力セル（td） */
.page-id-504 table.recruit_form td,
.page-id-580 table.recruit_form td {
  padding: 12px 16px;
  vertical-align: middle;
}

.page-id-504 table.recruit_form td p,
.page-id-580 table.recruit_form td p {
  margin: 0;
}

/* インプット・テキストエリア */
.page-id-504 .wpcf7-form input[type="text"],
.page-id-504 .wpcf7-form input[type="email"],
.page-id-504 .wpcf7-form select,
.page-id-504 .wpcf7-form textarea,
.page-id-580 .wpcf7-form input[type="text"],
.page-id-580 .wpcf7-form input[type="email"],
.page-id-580 .wpcf7-form select,
.page-id-580 .wpcf7-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dde1e7 !important;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #333;
  background: #fdfdfe;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-id-504 .wpcf7-form input[type="text"]:focus,
.page-id-504 .wpcf7-form input[type="email"]:focus,
.page-id-504 .wpcf7-form textarea:focus,
.page-id-580 .wpcf7-form input[type="text"]:focus,
.page-id-580 .wpcf7-form input[type="email"]:focus,
.page-id-580 .wpcf7-form textarea:focus {
  outline: none;
  border-color: #e8632a !important;
  box-shadow: 0 0 0 3px rgba(232, 99, 42, 0.12);
  background: #fff;
}

/* チェックボックスリスト */
.page-id-504 .wpcf7-list-item,
.page-id-580 .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 16px 6px 0;
}

/* 送信ボタン */
.page-id-504 .wpcf7-form .wpcf7-submit,
.page-id-580 .wpcf7-form .wpcf7-submit {
  background: linear-gradient(135deg, #780000 0%, #960000 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 64px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  border-radius: 50px !important;
  cursor: pointer;
  display: block !important;
  margin: 40px auto 0 !important;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(150, 0, 0, 0.38) !important;
}

.page-id-504 .wpcf7-form .wpcf7-submit:hover,
.page-id-580 .wpcf7-form .wpcf7-submit:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 99, 42, 0.45) !important;
}

/* タイトルエリア表示修正 */
.page-id-504 .nv-page-title-wrap,
.page-id-580 .nv-page-title-wrap {
  display: block !important;
}

/* ===== タイトル中央揃え + フォームレイアウト追加スタイル ===== */

.page-id-504 .nv-page-title-wrap,
.page-id-580 .nv-page-title-wrap {
  text-align: center !important;
}

.page-id-504 .nv-page-title h1::after,
.page-id-580 .nv-page-title h1::after {
  left: 50% !important;
  transform: translateX(-50%);
}

/* 2カラム: th幅調整 */
.page-id-504 table.recruit_form th,
.page-id-580 table.recruit_form th {
  width: 22% !important;
  min-width: 120px !important;
}

/* th/tdパディングをコンパクトに */
.page-id-504 table.recruit_form th,
.page-id-504 table.recruit_form td,
.page-id-580 table.recruit_form th,
.page-id-580 table.recruit_form td {
  padding: 12px 16px !important;
}

/* smallサブラベル */
.page-id-504 table.recruit_form td small,
.page-id-580 table.recruit_form td small {
  display: block;
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 3px;
}

/* 横並び入力グループ */
.page-id-504 .form-inline,
.page-id-580 .form-inline {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.page-id-504 .form-inline-item,
.page-id-580 .form-inline-item {
  flex: 1;
}

.page-id-504 .form-inline-item input,
.page-id-580 .form-inline-item input {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ===== 修正: タイトル中央・生年月日セレクト ===== */

/* タイトルh1を中央に */
.page-id-504 .nv-page-title,
.page-id-580 .nv-page-title {
  text-align: center !important;
}

.page-id-504 .nv-page-title h1,
.page-id-580 .nv-page-title h1 {
  display: inline-block;
  text-align: left;
}

/* 生年月日セレクト：width:100%を上書きして横並びに */
.page-id-504 .wpcf7-form select.birth,
.page-id-580 .wpcf7-form select.birth {
  width: auto !important;
  display: inline-block !important;
}

/* 入力tdを縦ではなく通常フローに（生年月日行） */
.page-id-504 table.recruit_form td,
.page-id-580 table.recruit_form td {
  vertical-align: middle;
}
/* SAPかんたん診断ボタン (FV CTA) */
.pnw-btn.pnw-bd {
  background: #059669 !important;
  color: #fff !important;
  border: 2px solid #059669 !important;
}
.pnw-btn.pnw-bd:hover {
  background: #047857 !important;
  border-color: #047857 !important;
  color: #fff !important;
}

/* FOUC対策: header--row (デスクトップ/モバイルNav) の表示切替は外部CSS(style-main-new.min.css)に依存している。
   このファイルの読み込みが遅延・失敗すると、2つのNavが一瞬同時に無スタイルで表示される「二重ヘッダー」が発生する。
   HTML内にインラインで同じ表示切替ルールを埋め込み、外部CSSの読み込みタイミングに関係なく即座に適用されるようにする保険。
   参照元ルール: 6.2.4テーマ Neve の style-main-new.min.css 内定義と同一の閾値 */
@media (min-width:960px){ .hide-on-desktop{ display:none !important; } }
@media (max-width:959px){ .hide-on-tablet{ display:none !important; } }
@media (max-width:576px){ .hide-on-mobile{ display:none !important; } }


/* PNW-TABLE-BLOCKQUOTE-FIX: table cell blockquote decoration off for readable header */
.pnw-article table td blockquote,.pnw-article table th blockquote{background:transparent!important;border:0!important;padding:0!important;margin:0!important;border-radius:0!important;}
.pnw-article table td blockquote p,.pnw-article table th blockquote p{color:inherit!important;margin:0!important;}



/* PNW CONSOLIDATED VISUAL SYSTEM 2026-08-23 */
body.page-id-3527 main p{font-size:16px!important;line-height:1.8!important;color:#5d6874!important;}
body.page-id-2183 main p,body.page-id-2183 main li,body.page-id-3531 main p,body.page-id-3531 main li{font-size:16px!important;line-height:1.8!important;color:#5d6874!important;}
body.page-id-2183 main h1,body.page-id-2183 main h2,body.page-id-2183 main h3,body.page-id-3531 main h1,body.page-id-3531 main h2,body.page-id-3531 main h3{color:#132a44!important;}
body.page-id-2183 main a[class*=btn],body.page-id-2183 main .btn,body.page-id-3531 main a[class*=btn],body.page-id-3531 main .btn{font-size:15px!important;line-height:1.45!important;min-height:44px;background:#132a44!important;color:#fff!important;}
body.page-id-4619 .hero-title,body.page-id-4621 .hero-title,body.page-id-4623 .hero-title,body.page-id-4625 .hero-title,body.page-id-4638 .hero-title,body.page-id-4640 .hero-title,body.page-id-4642 .hero-title,body.page-id-4644 .hero-title{font-size:clamp(40px,4.1vw,48px)!important;line-height:1.22!important;font-weight:800!important;color:#132a44!important;letter-spacing:-.025em!important;max-width:980px;margin-left:auto;margin-right:auto;}
body.page-id-4619 .hero-subtitle,body.page-id-4621 .hero-subtitle,body.page-id-4623 .hero-subtitle,body.page-id-4625 .hero-subtitle,body.page-id-4638 .hero-subtitle,body.page-id-4640 .hero-subtitle,body.page-id-4642 .hero-subtitle,body.page-id-4644 .hero-subtitle{font-size:16px!important;line-height:1.8!important;color:#5d6874!important;max-width:920px;margin-left:auto;margin-right:auto;}
body.page-id-4619 main h2,body.page-id-4621 main h2,body.page-id-4623 main h2,body.page-id-4625 main h2{font-size:32px!important;line-height:1.3!important;}
body.page-id-3370 .entry-content p,body.page-id-504 .entry-content p,body.page-id-580 .entry-content p{font-size:16px!important;line-height:1.8!important;color:#5d6874!important;}
@media(max-width:767px){body.page-id-4619 .hero-title,body.page-id-4621 .hero-title,body.page-id-4623 .hero-title,body.page-id-4625 .hero-title,body.page-id-4638 .hero-title,body.page-id-4640 .hero-title,body.page-id-4642 .hero-title,body.page-id-4644 .hero-title{font-size:clamp(30px,9vw,38px)!important;line-height:1.25!important;letter-spacing:-.02em!important;}body.page-id-4619 .hero-subtitle,body.page-id-4621 .hero-subtitle,body.page-id-4623 .hero-subtitle,body.page-id-4625 .hero-subtitle,body.page-id-4638 .hero-subtitle,body.page-id-4640 .hero-subtitle,body.page-id-4642 .hero-subtitle,body.page-id-4644 .hero-subtitle{font-size:15px!important;line-height:1.75!important;}}


/* PNW-TYPO-SCALE: unify font sizes across custom blocks (html body = higher specificity than in-content styles) */
html body .pnw-article p,html body .pnw-article li,html body .pnw-cases p,html body .pnw-cases li,html body .single-entry-summary p,html body .single-entry-summary li{font-size:16px!important;line-height:1.9!important;}
html body .pnw-article td,html body .pnw-article th,html body .pnw-cases td,html body .pnw-cases th,html body .single-entry-summary td,html body .single-entry-summary th{font-size:15px!important;line-height:1.75!important;}
html body .pnw-article blockquote p{font-size:15.5px!important;}
html body .wb-item,html body .wb-item p{font-size:15px!important;line-height:1.8!important;}
html body .wb-link{font-size:17px!important;line-height:1.5!important;}
html body .wb-section-desc{font-size:14px!important;}
html body .pnw-byline,html body .pnw-author p,html body .pnw-fig figcaption,html body .wb-more a,html body .pnw-related a,html body .pnw-xlinks li a{font-size:14px!important;}
html body .pnw-related p,html body .pnw-xlinks p{font-size:15px!important;}
html body .wb-tag{font-size:12px!important;}
html body .pnw-cta p{font-size:16px!important;}
html body .pnw-cta a,html body .pnw-search button,html body .pnw-search input{font-size:15px!important;}
html body .pnw-search p{font-size:15px!important;}

/* PNW-TYPO-FIX2: byline/author/caption need to beat .pnw-article p rule */
html body .pnw-article p.pnw-byline{font-size:14px!important;line-height:1.7!important;}
html body .pnw-article .pnw-author p,html body .pnw-author p{font-size:14px!important;line-height:1.8!important;}
html body .pnw-article .pnw-fig figcaption,html body .pnw-fig figcaption{font-size:13.5px!important;}
html body .pnw-article .pnw-cta p{font-size:16px!important;}
html body .pnw-article .pnw-related p,html body .pnw-article .pnw-xlinks p{font-size:15px!important;}

/* PNW-BYLINE-HIDE */
html body.single-post .nv-meta-list li.meta.author,
html body.single-post .nv-meta-list li.author,
html body.single-post .nv-meta-list .author-name{display:none!important;}

/* PNW-H1-DEMOTE: 記事本文の章見出しをh1→h2に変更。見た目は従来のh1と同じに保つ */
.pnw-article h2.pnw-h1{font-size:1.85rem;font-weight:bold;color:#0d2553;border-left:6px solid #1e4a9e;border-bottom:2px solid #c4d9f0;padding:2px 0 10px 14px;margin:2.4em 0 .9em;line-height:1.35;}

/* PNW-CAT-TITLE: カテゴリ一覧ページでは見出し（h1）と説明文を表示する */
body.archive.category .nv-page-title-wrap{display:block !important;padding:2rem 0 .5rem;}
body.archive.category .nv-page-title h1{font-size:1.7rem;color:#0d2553;border-left:6px solid #780000;padding-left:12px;margin:0 0 .6rem;}
body.archive.category .nv-page-title p,body.archive.category .nv-page-title .archive-description{color:#555;font-size:.95rem;line-height:1.8;margin:0;}
