/* =====================================================
   ワークショップの素 導入事例 — 追加スタイル v2
   LPデザインB案（五感寄り）のテイスト:
   ライトグレーの方眼背景 / 黒吹き出しロゴ / 五感カラー
   （水色・ピンク・オレンジ・グリーン・イエロー）/ 丸ゴシック
   ===================================================== */

:root {
  --ws-base: #f4f4f2;
  --ws-surface: #ffffff;
  --ws-ink: #26282b;
  --ws-muted: #74797e;
  --ws-line: #e3e3df;
  --ws-primary: #3e96c6;
  --ws-primary-dark: #2b6d94;
  --ws-primary-pale: #eaf4fa;
  --ws-yellow: #f7d43f;
  --ws-pink: #e4799f;
  --ws-orange: #eda355;
  --ws-green: #7dbb69;
  --ws-red: #e85950;
  --ws-radius: 16px;
  --ws-shadow: 0 3px 14px rgba(38, 40, 43, 0.06);
  --ws-shadow-hover: 0 12px 28px rgba(38, 40, 43, 0.14);
}

/* --- 方眼背景 --- */
body {
  background-color: var(--ws-base);
  background-image:
    linear-gradient(rgba(38, 40, 43, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 40, 43, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* 五感カラーのドット（ブランドモチーフ） */
.ws-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.ws-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.ws-dots span:nth-child(1) { background: var(--ws-primary); }
.ws-dots span:nth-child(2) { background: var(--ws-pink); }
.ws-dots span:nth-child(3) { background: var(--ws-orange); }
.ws-dots span:nth-child(4) { background: var(--ws-green); }
.ws-dots span:nth-child(5) { background: var(--ws-yellow); }

/* =====================================================
   ヘッダー
   ===================================================== */
.ws-header {
  background: var(--ws-surface);
  box-shadow: 0 1px 0 var(--ws-line), var(--ws-shadow);
  position: sticky;
  top: 0;
  z-index: 90;
}

body.admin-bar .ws-header { top: 32px; }

.ws-header .wp-block-site-logo img {
  transition: transform 0.25s ease;
}

.ws-header .wp-block-site-logo a:hover img {
  transform: rotate(-4deg) scale(1.05);
}

.ws-header .wp-block-site-title a {
  text-decoration: none;
  font-family: var(--wp--preset--font-family--heading);
  letter-spacing: 0.02em;
}

.ws-header .wp-block-navigation a {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ws-ink);
  position: relative;
  padding: 0.35em 0.1em;
}

/* ホバー時の下線アニメーション */
.ws-header .wp-block-navigation .wp-block-navigation-item:not(.ws-nav-dl) > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--ws-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.ws-header .wp-block-navigation .wp-block-navigation-item:not(.ws-nav-dl) > a:hover::after {
  transform: scaleX(1);
}

/* ナビの「資料ダウンロード」ボタン */
.ws-header .wp-block-navigation .ws-nav-dl > a {
  background: var(--ws-primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.55em 1.5em;
  box-shadow: 0 2px 0 var(--ws-primary-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.ws-header .wp-block-navigation .ws-nav-dl > a:hover {
  background: var(--ws-primary-dark);
  color: var(--ws-yellow);
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--ws-primary-dark);
}

/* --- タブレット幅以下：ロゴ＋ナビの1行を維持（折り返しによる崩れ防止） --- */
@media (max-width: 1020px) {
  .ws-header .wp-block-site-title { display: none; }
  .ws-header > .wp-block-group,
  .ws-header .wp-block-group.alignwide { flex-wrap: nowrap; }
}

@media (max-width: 1020px) and (min-width: 600px) {
  .ws-header .wp-block-navigation { gap: 4px 14px; flex-wrap: nowrap; }
  .ws-header .wp-block-navigation a { font-size: 0.85rem; white-space: nowrap; }
  .ws-header .wp-block-navigation .ws-nav-dl > a { padding: 0.45em 1.1em; }
}

/* --- モバイル：ハンバーガーメニュー --- */
.wp-block-navigation__responsive-container-open {
  padding: 10px;
  border: 1px solid var(--ws-line);
  border-radius: 12px;
  background: var(--ws-surface);
  color: var(--ws-ink);
}

.wp-block-navigation__responsive-container-open svg {
  width: 26px;
  height: 26px;
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--ws-surface);
  padding: 84px 28px 32px;
  background-image:
    linear-gradient(rgba(38, 40, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 40, 43, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.wp-block-navigation__responsive-container-close {
  padding: 10px;
  border: 1px solid var(--ws-line);
  border-radius: 12px;
  top: 18px !important;
  right: 20px !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  padding-top: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 0;
  width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
  padding: 16px 4px;
  border-bottom: 1px dashed var(--ws-line);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
  font-size: 1.05rem;
  width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .ws-nav-dl {
  border-bottom: none;
  padding: 26px 0 0;
}

.wp-block-navigation__responsive-container.is-menu-open .ws-nav-dl > a {
  display: block;
  text-align: center;
  padding: 1em 1.5em;
  border-radius: 999px;
}

/* =====================================================
   ヒーロー（一覧ページ）
   ===================================================== */
.ws-hero {
  text-align: center;
}

.ws-hero__label {
  display: inline-block;
  background: var(--ws-ink);
  color: #fff;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  border-radius: 999px;
  padding: 0.4em 1.8em;
  margin-bottom: 1em;
}

.ws-hero h1 {
  margin: 0.1em 0 0.5em;
  letter-spacing: 0.08em;
}

.ws-hero .ws-dots {
  margin: 0 0 1.6em;
}

.ws-hero__lead {
  color: var(--ws-muted);
  font-size: 1rem;
  line-height: 2.1;
}

/* =====================================================
   事例カード（一覧）
   ===================================================== */
.wp-block-post-template.is-layout-grid {
  gap: 34px !important;
}

.ws-case-card {
  background: var(--ws-surface);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ws-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ws-shadow-hover);
}

.ws-case-card .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
}

.ws-case-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ws-case-card:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
}

.ws-case-card__body {
  padding: 26px 28px 28px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* constrainedレイアウトの margin:auto を打ち消し（中央寄せ崩れ防止） */
.ws-case-card__body > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: flex-start;
  width: 100%;
}

/* 業種（カテゴリー）バッジ：業種ごとに色分け */
.ws-case-card__cat {
  margin: 0 0 12px;
}

.ws-case-card__cat a {
  display: inline-block;
  background: var(--ws-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.28em 1.2em;
  text-decoration: none;
}

.ws-case-card__cat a[href*="/education"] { background: var(--ws-green); }
.ws-case-card__cat a[href*="/manufacturing"] { background: var(--ws-primary); }
.ws-case-card__cat a[href*="/service"] { background: var(--ws-orange); }

/* 社名（抜粋欄を利用） */
.ws-case-card__client p {
  margin: 0 0 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ws-muted);
  letter-spacing: 0.02em;
}

.ws-case-card .wp-block-post-title {
  margin: 0 0 16px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.ws-case-card .wp-block-post-title a {
  text-decoration: none;
  color: var(--ws-ink);
  transition: color 0.2s ease;
}

.ws-case-card:hover .wp-block-post-title a {
  color: var(--ws-primary-dark);
}

/* タグ */
.ws-case-card__tags {
  font-size: 0.72rem;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--ws-line);
}

.ws-case-card__tags a,
.ws-tags a {
  display: inline-block;
  background: var(--ws-base);
  border: 1px solid var(--ws-line);
  color: var(--ws-muted);
  border-radius: 999px;
  padding: 0.18em 1em;
  margin: 0 0.4em 0.5em 0;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ws-case-card__tags a:hover,
.ws-tags a:hover {
  border-color: var(--ws-primary);
  color: var(--ws-primary-dark);
}

.ws-case-card__tags .wp-block-post-terms__separator,
.ws-tags .wp-block-post-terms__separator {
  display: none;
}

/* =====================================================
   事例詳細（シングル）
   ===================================================== */
.ws-single-header {
  text-align: center;
}

.ws-single-header .ws-case-card__cat { margin-bottom: 4px; }

.ws-single-header .ws-case-card__cat a {
  font-size: 0.8rem;
  padding: 0.3em 1.5em;
}

.ws-single-header .wp-block-post-title {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  margin-top: 0.7em;
}

.ws-single-header .wp-block-post-date {
  color: var(--ws-muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.ws-single-featured img {
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
}

/* 記事本文エリア */
.ws-single-content {
  background: var(--ws-surface);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  padding: clamp(28px, 5.5vw, 64px) !important;
}

.entry-content p {
  margin-block-start: 1.4em;
  margin-block-end: 1.4em;
  line-height: 2.05;
}

/* クライアント名（記事冒頭） */
.entry-content .ws-case-client,
.ws-case-client {
  text-align: center;
  font-weight: 700;
  color: var(--ws-muted);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--ws-line);
  padding-bottom: 1.6em;
  margin-block-start: 0;
}

/* --- サマリーボックス --- */
.ws-summary {
  background: var(--ws-base);
  border-radius: var(--ws-radius);
  padding: 32px 32px 16px !important;
  margin-top: 2.4em;
}

.ws-summary__title {
  font-family: var(--wp--preset--font-family--heading);
  text-align: center;
  font-size: 1.05rem !important;
  letter-spacing: 0.28em;
  color: var(--ws-ink) !important;
  margin: 0 0 1.2em !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.ws-summary__title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: var(--ws-yellow);
  margin: 0.7em auto 0;
}

.ws-summary__item {
  background: var(--ws-surface);
  border-radius: 12px;
  padding: 22px 26px !important;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(38, 40, 43, 0.05);
}

.ws-summary__item h4 {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.7em;
}

.ws-summary__item h4::before {
  content: "";
  flex: 0 0 auto;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: var(--ws-primary);
  box-shadow: 0 0 0 4px var(--ws-primary-pale);
}

.ws-summary__item.is-challenge h4::before { background: var(--ws-pink); box-shadow: 0 0 0 4px #fbeef3; }
.ws-summary__item.is-reason  h4::before { background: var(--ws-orange); box-shadow: 0 0 0 4px #fdf3e7; }
.ws-summary__item.is-result  h4::before { background: var(--ws-green); box-shadow: 0 0 0 4px #eff7ec; }

.ws-summary__item p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.95;
}

/* --- 本文セクション見出し（黒吹き出し＝ロゴモチーフ） --- */
.entry-content h2 {
  position: relative;
  font-size: 1.25rem;
  background: var(--ws-ink);
  color: #fff;
  border-radius: 12px;
  padding: 0.7em 1.2em;
  margin-top: 3.2em;
  margin-bottom: 1.6em;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.entry-content h2::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  border-radius: 3px;
  background: var(--ws-yellow);
  transform: rotate(45deg);
}

/* 吹き出しのしっぽ */
.entry-content h2::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -9px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--ws-ink);
}

.entry-content h3 {
  font-size: 1.1rem;
  color: var(--ws-primary-dark);
  background: var(--ws-primary-pale);
  border-left: 5px solid var(--ws-primary);
  border-radius: 4px 12px 12px 4px;
  padding: 0.6em 1em;
  margin-top: 2.2em;
  line-height: 1.8;
}

.entry-content h4 {
  font-size: 1rem;
  margin-top: 2em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.entry-content h4::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--ws-yellow);
  flex: 0 0 auto;
}

/* アンケート引用 */
.entry-content blockquote {
  background: var(--ws-surface);
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  padding: 20px 24px 20px 58px;
  margin: 1.6em 0 0.8em;
  position: relative;
  font-style: normal;
  box-shadow: 0 1px 4px rgba(38, 40, 43, 0.04);
}

.entry-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 16px;
  font-size: 3em;
  line-height: 1;
  color: var(--ws-primary);
  font-family: Georgia, serif;
  opacity: 0.85;
}

.entry-content blockquote p {
  margin: 0 0 0.4em;
  line-height: 1.95;
}

/* 解説コメント（吹き出し風・POINTチップ付き） */
.entry-content .ws-note {
  position: relative;
  background: var(--ws-primary-pale);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.92rem;
  line-height: 1.95;
  margin: 0 0 2em;
}

.entry-content .ws-note::before {
  content: "POINT";
  display: inline-block;
  background: var(--ws-yellow);
  color: var(--ws-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 0.15em 1em;
  margin-right: 0.8em;
  vertical-align: 0.15em;
}

/* =====================================================
   CTA（資料請求・お問い合わせ）
   ===================================================== */
.ws-cta {
  position: relative;
  background: var(--ws-primary);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  text-align: center;
  color: #fff;
  padding: clamp(34px, 6vw, 52px) clamp(22px, 5vw, 48px) !important;
  overflow: hidden;
}

/* チケット風の内側破線 */
.ws-cta::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  pointer-events: none;
}

.ws-cta__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  color: var(--ws-yellow);
  letter-spacing: 0.16em;
  margin: 0 0 0.5em;
}

.ws-cta__lead {
  font-size: 0.96rem;
  line-height: 2;
  margin: 0 0 1.8em;
}

.ws-cta .wp-block-buttons {
  gap: 14px 18px;
}

.ws-cta .wp-block-button__link {
  font-size: 1rem;
  padding: 0.85em 2.8em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ws-cta .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.ws-btn-yellow .wp-block-button__link {
  background: var(--ws-yellow);
  color: var(--ws-ink);
  box-shadow: 0 3px 0 #d9b71e;
}

.ws-btn-yellow .wp-block-button__link:hover {
  background: #ffe36e;
}

.ws-btn-white .wp-block-button__link {
  background: #fff;
  color: var(--ws-primary-dark);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.ws-btn-white .wp-block-button__link:hover {
  background: var(--ws-base);
}

/* 一覧へ戻る */
.ws-backlink {
  text-align: center;
}

.ws-backlink a {
  display: inline-block;
  color: var(--ws-primary-dark);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ws-primary);
  border-radius: 999px;
  padding: 0.6em 2.6em;
  background: var(--ws-surface);
  transition: background 0.2s ease, color 0.2s ease;
}

.ws-backlink a::before {
  content: "\2190";
  margin-right: 0.5em;
}

.ws-backlink a:hover {
  background: var(--ws-primary);
  color: #fff;
}

/* =====================================================
   資料ダウンロード
   ===================================================== */
.ws-dl-lead {
  text-align: center;
  color: var(--ws-muted);
  line-height: 2.1;
}

/* 資料カード（media-textブロックを利用） */
.ws-dl-item {
  background: var(--ws-surface);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  overflow: hidden;
  margin-top: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ws-dl-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--ws-shadow-hover);
}

.ws-dl-item .wp-block-media-text__media {
  align-self: stretch;
}

.ws-dl-item .wp-block-media-text__media img {
  height: 100%;
  object-fit: cover;
}

.ws-dl-item .wp-block-media-text__content {
  padding: 28px 32px;
}

.ws-dl-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5em;
  line-height: 1.7;
}

.ws-dl-item p {
  font-size: 0.92rem;
  color: var(--ws-muted);
  line-height: 1.95;
  margin: 0 0 1.4em;
}

.ws-dl-item .wp-block-button__link {
  font-size: 0.92rem;
  padding: 0.6em 2.2em;
  box-shadow: 0 2px 0 var(--ws-primary-dark);
}

.ws-dl-item .wp-block-button__link::after {
  content: "\2193";
  margin-left: 0.6em;
}

/* 体験会・こんな方におすすめ */
.ws-check {
  list-style: none;
  padding-left: 0 !important;
}

.ws-check li {
  margin-bottom: 0.6em;
  line-height: 1.9;
}

.ws-reco {
  gap: 20px;
}

.ws-reco .wp-block-column {
  background: var(--ws-base);
  border-radius: 12px;
  padding: 22px 26px !important;
}

.ws-reco .wp-block-column h4 {
  margin-top: 0;
  color: var(--ws-primary-dark);
}

/* 体験会イメージ画像 */
.ws-zoo-image {
  margin-top: 2em;
}

.ws-zoo-image img {
  border-radius: 12px;
  box-shadow: var(--ws-shadow);
  max-width: 100%;
  height: auto;
}

/* 資料詳細（請求ページ） */
.ws-dl-detail {
  background: var(--ws-base);
  border-radius: var(--ws-radius);
  padding: 28px 30px !important;
}

.entry-content h2.ws-form-title,
.ws-form-title {
  display: block;
  text-align: center;
  background: none;
  color: var(--ws-ink);
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  padding: 0;
  margin-top: 2.2em;
  margin-bottom: 1em;
}

.entry-content h2.ws-form-title::before {
  display: none;
}

.entry-content h2.ws-form-title::after,
.ws-form-title::after {
  content: "";
  position: static;
  display: block;
  width: 46px;
  height: 4px;
  border: none;
  border-radius: 4px;
  background: var(--ws-yellow);
  margin: 0.7em auto 0;
}

/* =====================================================
   お問い合わせ / フォーム（Contact Form 7）
   ===================================================== */
.ws-page-content {
  background: var(--ws-surface);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  padding: clamp(28px, 5.5vw, 64px) !important;
}

.wpcf7 {
  margin-top: 1em;
}

.wpcf7 label {
  font-weight: 700;
  font-size: 0.93rem;
  display: block;
  margin-bottom: 1.5em;
}

.wpcf7 .ws-required {
  display: inline-block;
  background: var(--ws-red);
  color: #fff;
  font-size: 0.68rem;
  border-radius: 5px;
  padding: 0.1em 0.7em;
  margin-left: 0.6em;
  vertical-align: middle;
}

.wpcf7 .ws-optional {
  display: inline-block;
  background: #c8ccd0;
  color: #fff;
  font-size: 0.68rem;
  border-radius: 5px;
  padding: 0.1em 0.7em;
  margin-left: 0.6em;
  vertical-align: middle;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  background: var(--ws-base);
  padding: 0.75em 1em;
  font-size: 1rem;
  margin-top: 0.5em;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: 2px solid var(--ws-primary);
  background: #fff;
}

/* 個人情報の取り扱いについての案内（送信ボタンの直上） */
.wpcf7 .ws-privacy-note {
  background: var(--ws-primary-pale) !important;
  border: 1px solid #cfe4f0 !important;
  border-radius: 10px !important;
  padding: 1em 1.2em !important;
  margin: 2em 0 0 !important;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--ws-muted);
}

/* CF7 が自動で <p> を挿入するため余白を打ち消す */
.wpcf7 .ws-privacy-note p {
  margin: 0 !important;
}

.wpcf7 .ws-privacy-note a {
  color: var(--ws-primary-dark);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.wpcf7 .ws-privacy-note a:hover {
  color: var(--ws-ink);
}

/* 同意チェックボックス */
.wpcf7 .ws-consent {
  display: block;
  margin-top: 0.9em;
  padding-top: 0.9em;
  border-top: 1px solid #cfe4f0;
  text-align: center;
}

.wpcf7 .ws-consent .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .ws-consent label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ws-ink);
  cursor: pointer;
}

.wpcf7 .ws-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ws-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* 未同意で送信したときの案内を目立たせる */
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: var(--ws-orange);
  background: #fdf4e8;
}

.wpcf7 input[type="submit"] {
  display: block;
  margin: 1.8em auto 0;
  background: var(--ws-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 999px;
  padding: 0.9em 3.8em;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ws-primary-dark);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.15s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--ws-primary-dark);
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--ws-primary-dark);
}

.wpcf7 form .wpcf7-response-output {
  border-radius: 10px;
  padding: 0.9em 1.3em;
  margin: 1.6em 0 0;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--ws-green);
  background: #eff7ec;
}

.wpcf7-not-valid-tip {
  font-size: 0.8rem;
  margin-top: 0.3em;
}

/* =====================================================
   フッター
   ===================================================== */
.ws-footer {
  background: var(--ws-ink);
  color: #fff;
  margin-top: clamp(56px, 9vw, 96px);
}

.ws-footer a {
  color: #fff;
  text-decoration: none;
}

.ws-footer a:hover {
  color: var(--ws-yellow);
}

.ws-footer .ws-footer__nav {
  font-size: 0.85rem;
  font-weight: 700;
}

.ws-footer .ws-footer__nav a {
  margin: 0 1.1em 0 0;
}

.ws-footer .ws-footer__copy {
  font-size: 0.76rem;
  color: #c9cbce;
  line-height: 1.9;
}

/* =====================================================
   その他
   ===================================================== */
.wp-block-query-pagination {
  justify-content: center;
  margin-top: 2em;
}

.wp-block-query-pagination .page-numbers {
  display: inline-block;
  min-width: 2.4em;
  text-align: center;
  background: var(--ws-surface);
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  padding: 0.3em 0.6em;
  text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
  background: var(--ws-primary);
  border-color: var(--ws-primary);
  color: #fff;
}

@media (max-width: 781px) {
  .ws-single-content,
  .ws-page-content {
    padding: 26px 20px !important;
  }

  .ws-summary {
    padding: 24px 18px 10px !important;
  }

  .ws-summary__item {
    padding: 18px 20px !important;
  }

  .ws-case-card__body {
    padding: 22px 22px 24px !important;
  }

  .ws-dl-item .wp-block-media-text__content {
    padding: 20px 20px 24px;
  }

  .entry-content blockquote {
    padding: 18px 18px 18px 48px;
  }
}
