@charset "UTF-8";

/* --- Fab CSS / 
 * File: assets/css/fab.css / 
 * Description: 固定ページ「fab」専用スタイルシート
 *  --- */

/* =====================================================
□ 変数定義（カラー・デザインルールの統一）
===================================================== */
:root {
  --fab-primary-gray: #dddde6;
  --fab-accent-yellow: #fef46e;
  --fab-accent-yellow-hover: #fce83a;
  --fab-text-color: #333333;
  --fab-bg-gray: #f4f6f8;
  --fab-border-color: rgba(0, 0, 0, 0.08);
  --fab-radius-handwriting: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --fab-grid-pattern: 
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
}

/* =====================================================
□ 共通（PC・スマホ共通）
===================================================== */
body {
	font-family: "BIZ UDPGothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif !important;
	color: var(--fab-text-color);
	line-height: 1.7;
	overflow-x: hidden !important;
}

h1, h2, h3 {
  font-family: "Zen Maru Gothic", "BIZ UDPGothic", sans-serif !important;
  font-weight: 700;
}

.site-footer,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer a {
  font-family: "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
}

.section-heading {
  width: 100%;
  max-width: 600px;
  margin: 0 auto; 
  text-align: center;
}

.section-heading img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

/* スクロールボタン */
.generate-back-to-top {
  z-index: 99999 !important;
  border-radius: var(--fab-radius-handwriting) !important;
  background-color: #cccccc !important;
  background: #cccccc !important;
  border: 1px solid var(--fab-border-color) !important;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05), inset 0px 0px 8px rgba(255, 255, 255, 0.5) !important;
}

.generate-back-to-top,
.generate-back-to-top svg,
.generate-back-to-top i {
  color: var(--fab-text-color) !important;
  fill: var(--fab-text-color) !important;
}

.generate-back-to-top:hover {
  background-color: #dddddd !important;
  background: #dddddd !important;
  transform: translateY(-3px) !important;
  box-shadow: 2px 4px 0px rgba(0, 0, 0, 0.08) !important;
}

/* 背景 */
.fab-lp__content,
.l-grid-bg-container {
  background-color: #dddddd !important;
  background-image: var(--fab-grid-pattern) !important;
  background-size: 35px 35px !important;
  background-attachment: fixed !important;
}

/* ボタン */
.page-id-9972 .wp-block-button__link.wp-element-button {
  all: unset !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: inline-block !important;
  padding: 10px 30px !important;
  border-radius: var(--fab-radius-handwriting) !important;
  background-color: var(--fab-accent-yellow) !important;
  background: var(--fab-accent-yellow) !important;
  color: var(--fab-text-color) !important;
  font-weight: bold !important;
  text-decoration: none !important;
  text-align: center !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 
    2px 2px 0px rgba(0, 0, 0, 0.03), 
    inset 0px 0px 10px rgba(255, 255, 255, 0.5) !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* ホバー時（色と影の変化のみに絞り、周囲を巻き込んで動く原因を排除） */
.page-id-9972 .wp-block-button__link.wp-element-button:hover,
.page-id-9972 .wp-block-button .wp-block-button__link.wp-element-button:hover {
  background-color: var(--fab-accent-yellow-hover) !important;
  background: var(--fab-accent-yellow-hover) !important;
  color: var(--fab-text-color) !important;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.03) !important;
  transform: none !important;
}

/* ボタン内の丸い背景（白 #fff）を、マーカーに映える濃い色に変更 */
.page-id-9972 .wp-block-button__link.wp-element-button .button__wrapper::before,
.page-id-9972 .wp-block-button__link.wp-element-button.button--default .button__wrapper::before {
  background: #dddddd !important;
}

/* 1. 矢印の色を指定する変数自体を上書きする */
.page-id-9972 .wp-block-button__link.wp-element-button,
.page-id-9ny72 .wp-block-button__link.wp-element-button.button--default {
  --arrow-color: #000000 !important;
}

/* テーマのグレーの円形エフェクトや疑似要素の完全消去 */
.page-id-9972 .wp-block-button__link.wp-element-button::before,
.page-id-9972 .wp-block-button__link.wp-element-button::after,
.page-id-9972 .wp-block-button__link.wp-element-button .button__spotlight {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* 1. 各セクション（背景色 ＋ 透過グリッド線を直接敷く） */
.p-color-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  position: relative !important;
  box-sizing: border-box !important;
  background-image: var(--fab-grid-pattern) !important;
  background-size: 35px 35px !important;
  background-attachment: fixed !important;
  transition: background-color 0.8s ease !important;
}

/* 2. セクションごとの背景色指定 */
.p-color-section--gray {
  background-color: var(--fab-bg-gray) !important;
}

.p-color-section--blue {
  background-color: var(--fab-primary-blue) !important;
}

.p-color-section--yellow {
  background-color: var(--fab-accent-yellow) !important;
}

/* 3. 中身のインナーコンテナ（幅制限 ＋ 中央寄せ） */
.p-color-section__inner,
.p-color-section__inner > .wp-block-group__inner-container {
	max-width: 1200px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-top: 60px !important;
	padding-left: 10px !important;
	padding-right: 10px !important;
	padding-bottom: 60px !important;
	box-sizing: border-box !important;
}

/* 4. 不要になった画面全体覆い（::after）を打ち消し */
.l-grid-bg-container::after {
	display: none !important;
}

.price-note {
	color:white;
}


/* =====================================================
   FVを最奥に固定 ＆ 02〜07を上に覆いかぶせる設定
   ===================================================== */
body, .fab-lp__content, .section-fv {
  margin-top: 0 !important;
}

.section-fv {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  min-height: 100vh !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 300px !important; 
  box-sizing: border-box !important;
  background-color: var(--fab-primary-gray) !important;
  background-image:
		radial-gradient(
			circle at 10% 20%,
			rgba(102, 189, 243, .18) 0,
			rgba(102, 189, 243, .18) 300px,
			transparent 301px
		),
		radial-gradient(
			circle at 85% 70%,
			rgba(102, 189, 243, .15) 0,
			rgba(102, 189, 243, .15) 180px,
			transparent 181px
		),
		radial-gradient(
			circle at 75% 25%,
			rgba(102, 189, 243, .12) 0,
			rgba(102, 189, 243, .12) 80px,
			transparent 81px
		),
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 35px 35px, 35px 35px !important;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0 !important;
  background-attachment: fixed !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow: hidden !important;
}

.section-fv::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 70% !important;
  background-color: rgba(0, 0, 0, 0.10) !important;
  clip-path: polygon(0 25vh, 100% 0, 100% 100%, 0 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}



.wb-home-img {
    position: relative !important;
    margin-left: calc((90vw - 100%) / -2) !important; 
    z-index: 10 !important;
    width: auto !important;
    max-width: none !important;
}

.wb-home-img img {
    display: block !important;
    width: 80px !important;
    height: auto !important;
    border-radius: 12px !important;
}

.c-fv-logo {
  position: relative !important;
  z-index: 2 !important;   
  transform: rotate(-8deg) translateY(25px) !important; 
  margin-bottom: 110px !important;
}

/*サブ */
.c-fv-logo-sub {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 40px !important;
}

.c-fv-logo-sub figure.aligncenter {
	margin: 0 auto !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
}

.c-fv-logo-sub img {
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 300px !important;
	height: auto !important;
}

.fv-catchphrase .c-fv-logo__sub {
	font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 12px;
}

.section-fv .p-fv-section__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 100px 20px !important;
  position: relative !important;
  z-index: 3 !important;
}

.section-fv .p-fv-section__inner > * {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 24px !important;
  text-align: center !important;
}

.section-fv .p-fv-section__inner > *:last-child {
  margin-bottom: 0 !important;
}

.fv-highlight {
  margin-bottom: 30px !important;
  color: #333333;
  font-size: 1.4em;
  line-height: 2 !important;
  text-decoration-line: underline !important;
  text-decoration-style: wavy !important;
  text-decoration-color: #333333 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 6px !important;
}

.fv-normal-text {
  color: #333333 !important;
	margin-bottom: 5px;
}

.section-fv .p-fv-section__inner .wp-block-buttons {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.section-fv .p-color-section__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative !important;
}

.l-scroll-overlay-group {
  position: relative !important;
  z-index: 100 !important;
  width: 100% !important;
  margin-top: -1px !important;
  box-shadow: none !important;
}

.l-scroll-overlay-group .p-color-section,
.l-scroll-overlay-group > .wp-block-group__inner-container > div,
.fab-lp__content > .wp-block-group.is-vertical,
.fab-lp__content > .wp-block-preformatted {
  position: relative !important;
  z-index: 10 !important;
  background-color: var(--fab-bg-gray) !important;
  background-image: var(--fab-grid-pattern) !important;
  background-size: 35px 35px !important;
  background-attachment: fixed !important;
  box-shadow: none !important;
}

.p-color-section.arch-section,
.p-color-section--blue {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
  padding-top: 120px !important;
  padding-bottom: 20px !important;
  z-index: 1 !important;
}

.arch-section > *,
.p-color-section--blue > * {
  position: relative !important;
  z-index: 2 !important;
}

.arch-section::before,
.p-color-section--blue::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 140vw !important;
  height: 85% !important; 
  border-radius: 50% !important;
  background-image: linear-gradient(
    to bottom,
    rgba(1, 162, 226, 0.85) 0%,
    rgba(1, 162, 226, 0.85) 35%,
    rgba(1, 162, 226, 0.3)  60%,
    rgba(1, 162, 226, 0)    80% 
  ) !important;
  transform: translate(-50%, 0) !important;
  transform-origin: top center !important;
  z-index: 0 !important;
}

/* ==================================================
   Gutenberg対応：7枚の画像を自動でランダム配置＆浮遊
   ================================================== */
.p-hero-floating-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 15px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important; 
  max-height: none !important;
  overflow: visible !important; 
}

.p-hero-floating-group .wp-block-image:hover {
  transform-origin: center bottom !important;
}

.p-hero-floating-group .wp-block-image {
  position: absolute !important;
  margin: 0 !important;
  z-index: 2;
  transition: transform 0.3s ease;
}

.p-hero-floating-group .wp-block-image img {
  width: 100% !important;
  height: auto !important;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.15)) !important;
}

.p-hero-floating-group .wp-block-image:hover {
  transform: scale(1.1) rotate(0deg) !important;
  z-index: 20;
}

.p-hero-floating-group .wp-block-image:nth-child(1) {
  top: 8%; left: 17%; width: 250px;
  animation: heroFloat1 6s ease-in-out infinite;
}

.p-hero-floating-group .wp-block-image:nth-child(2) {
  top: 3%; right: 19%; width: 160px;
  animation: heroFloat2 7.5s ease-in-out infinite;
}

.p-hero-floating-group .wp-block-image:nth-child(3) {
  top: 20%; left: 5%; width: 130px;
  animation: heroFloat3 5.5s ease-in-out infinite;
}

.p-hero-floating-group .wp-block-image:nth-child(4) {
  top: 13%; right: 4%; width: 150px;
  animation: heroFloat1 8s ease-in-out infinite -2s;
}

.p-hero-floating-group .wp-block-image:nth-child(5) {
  bottom: 40%; left: 80%; width: 160px;
  animation: heroFloat2 6.5s ease-in-out infinite -1s;
}

.p-hero-floating-group .wp-block-image:nth-child(6) {
  bottom: 30%; left: 6%; width: 120px;
  animation: heroFloat3 7s ease-in-out infinite -3s;
}

.p-hero-floating-group .wp-block-image:nth-child(7) {
  bottom: 29%; left: 22%; width: 120px;
  animation: heroFloat1 6s ease-in-out infinite -4s;
}
/*ギア①*/
.section-fv
.p-hero-floating-group
.wp-block-image:nth-child(8) {
	bottom: 60%; !important;
	right: 20%; !important;
	width: 50px; !important;
}
/*ギア②*/
.section-fv
.p-hero-floating-group
.wp-block-image:nth-child(9) {
	top: 25%; !important;
	left: 30%; !important;
	width: 35px; !important;
}
/*ギア③*/
.section-fv
.p-hero-floating-group
.wp-block-image:nth-child(10) {
	bottom: 35%; !important;
	right: 80%; !important;
	width: 30px; !important;
}
/*ギア④*/
.section-fv
.p-hero-floating-group
.wp-block-image:nth-child(11) {
	top: 8%; !important;
	right: 30%; !important;
	width: 60px; !important;
}
/*ギア⑤*/
.section-fv
.p-hero-floating-group
.wp-block-image:nth-child(12) {
	top: 8%; !important;
	left: 10%; !important;
	width: 60px; !important;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(5deg); }
  50%      { transform: translate(-8px, -20px) rotate(-2deg); }
}

@keyframes heroFloat3 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%      { transform: translateY(-12px) rotate(-5deg); }
}

/* ==================================================
   02
   ================================================== */
.custom-lineup-title {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	background-color: #01a2e2 !important; 
	color: #ffffff !important; 
	font-weight: bold !important;
	font-size: 1.15rem !important;
	padding: 12px 20px !important;
	border-radius: 0 !important; 
	border: none !important;
	border-left: 6px solid #4477aa !important;
	margin-bottom: 20px !important;
	text-align: left !important;
}


.wp-block-columns.custom-lineup-text {
	padding: 20px !important;
    text-align: center !important;
    margin-top: 40px !important;
    gap: 20px !important; /* バッジ同士の隙間をスッキリさせる */
}

/* 個別のバッジ（カラム）のデザイン */
.wp-block-columns.custom-lineup-text .wp-block-column {
    background-color: #ffffff !important; /* 基本は清潔感のある白背景 */
    border: 2px solid #5588bb !important;  /* サイトに合わせた青系の枠線 */
    border-radius: 16px !important;       /* 丸みをつけて優しくポップな印象に */
    padding: 20px 15px !important;
    box-shadow: 0 4px 12px rgba(85, 136, 187, 0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* マウスホバー時に少しフワッと浮き上がる演出 */
.wp-block-columns.custom-lineup-text .wp-block-column:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(85, 136, 187, 0.2) !important;
}

/* バッジ内のテキスト調整 */
.wp-block-columns.custom-lineup-text .wp-block-column p {
    margin: 0 !important;
    font-weight: 700 !important;
    color: #333333 !important;
    font-size: 1.1em !important;
}





/* =====================================================
   03.
   ===================================================== */
.p-idea-section-box {
    position: relative !important; /* 絶対配置の基準点になります */
    overflow: visible !important;  /* はみ出した画像が隠れないようにする重要設定 */
}

/*.p-idea-section-box .idea-floating-icon {
    position: relative !important;
    z-index: 10 !important;
    width: 60% !important;
    max-width: 650px !important;
    margin-left: auto !important;
    margin-right: -350px !important;
    margin-top: -480px !important;
    margin-bottom: -15px !important;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) !important;
    box-shadow: none !important;
}*/

.p-idea-section-box > .wp-block-group__inner-container > h2.wp-block-heading:not(.flow-idea-box) {
    color: #ffffff !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}
.p-idea-section-box .p-section-lead {
	font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #ffffff !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
	 margin-top: 16px !important;
    margin-bottom: 40px !important;
    line-height: 1.6 !important;
    position: relative !important;
    letter-spacing: 0.08em !important;
}
.p-idea-section-box .p-section-lead::after {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    height: 2px !important;
    background-color: #ffffff !important;
    margin: 12px auto 0 auto !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.wp-block-group.p-idea-feature-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 30px !important;
    max-width: 1100px !important;
    margin: 0 auto 40px auto !important;
    background-color: transparent !important;
    border: none !important;  
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important; 
    box-sizing: border-box !important;
}

.wp-block-group.p-idea-feature-wrapper > .wp-block-group__inner-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    gap: 60px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.p-idea-feature-wrapper .flow-image-container {
    flex: 0 0 45% !important;
    max-width: 700px !important;
    margin-top: -300px !important; 
    
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.p-idea-feature-wrapper .flow-image-container img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) !important;
}

.p-idea-feature-wrapper .idea-text-content {
    flex: 1 !important;
    text-align: center !important;
    font-size: 1.2em !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    line-height: 2.2 !important;
    margin: 0 !important;
}

.p-idea-feature-wrapper .idea-text-content strong,
.p-idea-feature-wrapper .idea-text-content b {
    font-weight: 700 !important;      /* 確実に太字にする */
    color: #ffffff !important;        /* 必要に応じて色を維持 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}


/* 3. フロー画像直下の補足テキスト */
.flow-caption-text {
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin-top: 16px !important;
    margin-bottom: 40px !important;
    letter-spacing: 0.05em !important;
}


.p-price-card-wrapper {
   background-color: rgba(85, 136, 187, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 24px !important;
    padding: 30px 24px !important;
    margin-top: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
}


.p-price-card-wrapper h2 {
    color: #ffffff;
	padding-left: 40px;
}

.p-price-card-desc {
    color: #ffffff;
	padding-left: 40px;
	margin-top: 20px;
	margin-bottom: 0;
}

.price-note {
    font-size: 14px !important;
    color: #ffffff !important;
    margin-top: 6px !important;
    line-height: 1.4 !important;
	font-weight: 300 !important;
	padding-left: 40px;
}

/* 2. カスタムテーブル全体のベース（背景を白にする） */
.wp-block-table.p-custom-table {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 10px auto 0 auto !important;
}

.wp-block-table.p-custom-table table,
.wp-block-table.p-custom-table table th,
.wp-block-table.p-custom-table table td {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.wp-block-table.p-custom-table table {
    width: 100% !important;
    background-color: #ffffff !important; /* テーブルの中身を「白」ベースに */
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #e0e8f0 !important; 
}

/* 3. ヘッダー（見出し部分）の調整 */
.wp-block-table.p-custom-table th {
    background-color: #4477aa !important; /* 少し濃いめの青で引き締める */
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 14px 18px !important;
    text-align: left !important;
    border-bottom: 1px solid #336699 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top: none !important;
    border-left: none !important;
}

.wp-block-table.p-custom-table tr th:last-child {
    border-right: none !important;
}

/* 4. データセル（中身）の調整 */
.wp-block-table.p-custom-table td {
    padding: 14px 18px !important;
    color: #333333 !important; /* 白背景に合わせて文字色を濃いグレー（黒系）に */
    background-color: #ffffff !important;
    border-bottom: 2px solid #e0e8f0 !important;
    border-right: 2px solid #e0e8f0 !important;
    border-top: none !important;
    border-left: none !important;
}

.wp-block-table.p-custom-table tr td:last-child {
    border-right: none !important;
}

.wp-block-table.p-custom-table tr:last-child td {
    border-bottom: none !important;
}

/* 5. 偶数行をわずかに薄いグレーにして見やすくする（ストライプ） */
.wp-block-table.p-custom-table tr:nth-child(even) td {
    background-color: #f7fafe !important; 
}

.wp-block-table.p-custom-table tr:first-child td {
    background-color: #4477aa !important; /* 青背景に合わせたヘッダーカラー */
    color: #ffffff !important;
    font-weight: bold !important;
    border-bottom: 3px solid #336699 !important;
}

.wp-block-table.p-custom-table tr td:last-child {
    background-color: #fffdf0 !important; /* うっすら黄み掛かった高級感のある白（または #fef46e をごく薄く） */
    font-weight: bold !important;
}

.wp-block-table.p-custom-table tr:first-child td:last-child {
    background-color: #3b6d9d !important; /* 少しトーンを落としたアクセント青 */
    color: #fef46e !important;          /* 文字を黄色にして「お得感」を演出 */
}

.wp-block-table.p-custom-table td:nth-child(3),
.wp-block-table.p-custom-table td:nth-child(4) {
    font-size: 1.05em;
}

.wp-block-table.p-custom-table tr:not(:first-child) td:last-child {
    color: #d93838 !important; /* または引き締まる濃い色・アクセントカラーにしても◎ */
    font-size: 1.15em !important;
}

/* ==================================================
   04.設備
   ================================================== */
.machinery-section-wrapper {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.p-section-lead {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: var(--fab-text-color) !important;
    margin-top: 16px !important;
    margin-bottom: 40px !important;
    line-height: 1.6 !important;
    position: relative !important;
    letter-spacing: 0.08em !important;
}
.p-section-lead::after {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    height: 2px !important;
    background-color: #222222 !important;
    margin: 12px auto 0 auto !important;
}

/* カルーセル外枠 */
.machinery-carousel-wrapper {
  width: auto !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  overflow: hidden !important;
  padding: 30px 0 70px 0 !important;
  box-sizing: border-box;
}

/* カルーセル本体 */
.machinery-carousel {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  overflow-x: hidden !important; /* PCはスクロールバーを隠してアニメーションさせる */
  scrollbar-width: none !important;
  pointer-events: auto !important;
  height: 480px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  width: max-content !important;
  animation: infiniteScroll 35s linear infinite !important;
}

.machinery-carousel::-webkit-scrollbar {
  display: none !important;
}

/* 各カードの共通スタイル */
.machinery-item {
  flex: 0 0 300px !important;        
  height: 380px !important;        
  position: relative !important;
  border-radius: 8px !important; 
  overflow: hidden !important;
  border: 2px solid #222222 !important;
  box-shadow: 4px 4px 0px #222222 !important;
  background-color: #faf9f5 !important;
  box-sizing: border-box !important;
  margin-right: 24px !important; /* カード同士の間隔 */
}

.machinery-item:last-child {
  margin-right: 0 !important;
}

/* 画像スタイル */
.machinery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 設備名のラベル（グラデーション背景＋複数行対応） */
.machinery-label {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 20px 16px 16px 16px !important;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.75) 65%, transparent 100%) !important;
  color: #ffffff !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

/* 機械名・タイトル */
.machinery-title {
  font-size: 13px !important;
  font-weight: bold !important;
  color: #fef46e !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}

/* 一言説明文 */
.machinery-desc {
  font-size: 11px !important;
  color: #ffffff !important;
  line-height: 1.4 !important;
  opacity: 0.9 !important;
  margin: 0 !important;
}

/* 文字だけのカード専用のスタイル */
.machinery-item.machinery-text-item {
  background-color: #fffde6 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

.machinery-text-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  text-align: center !important;
}

/* タイトル部分：文字スペースの約7割 (flex: 7) */
.machinery-text-item .machinery-title {
  flex: 6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: bold !important;
  line-height: 1.6 !important;
  color: #222222 !important;
  border-bottom: 2px dashed #fef46e !important;
  padding-bottom: 8px !important;
  margin-bottom: 12px !important;
}

/* 説明文部分：文字スペースの約3割 (flex: 3) */
.machinery-text-item .machinery-desc {
  flex: 4 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  font-size: 14px !important;
  color: #444444 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
	padding-top: 20px;
}

.machinery-item:nth-child(2n) {
  margin-top: 60px !important;
}

.machinery-item:nth-child(2n+1) {
  margin-top: 0 !important;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
   transform: translateX(-1944px);
  }
}

/* =====================================================
   非対称アシンメトリーセクション（共通ベース）
   ===================================================== */
div.p-asymmetric-section.wp-block-group.alignfull {
  position: relative !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

div.p-asymmetric-section.wp-block-group.alignfull .wp-block-group__inner-container,
div.p-asymmetric-section.wp-block-group.alignfull .p-color-section__inner {
  max-width: 1000px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 40px !important;
  padding-bottom: 10px !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 2 !important;
}

/*div.p-asymmetric-section.is-right-bleed.wp-block-group.alignfull::before {
  content: "" !important;
  position: absolute !important;
  top: 80px !important;
  bottom: 0 !important;
  left: 60px !important; 
  right: 0 !important;   
  background-color: #ffffff !important;
  background-image: radial-gradient(rgba(102, 153, 204, 0.15) 2px, transparent 2px) !important;
  background-size: 35px 35px !important;
  border-top-left-radius: 30px !important;
  border-bottom-left-radius: 30px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  z-index: 1 !important;
}*/

div.p-asymmetric-section.is-left-bleed.wp-block-group.alignfull::before {
  content: "" !important;
  position: absolute !important;
  top: 80px !important;
  bottom: 0 !important;
  left: 0 !important;   
  right: 60px !important;  
  background-color: #f4f2ea !important;
  background-image: radial-gradient(rgba(102, 153, 204, 0.15) 2px, transparent 2px) !important;
  background-size: 35px 35px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 30px !important;
  border-bottom-right-radius: 30px !important;
  z-index: 1 !important;
}



/* ==================================================
   05
   ================================================== */
.custom-step-wrapper {
    max-width: 900px !important;
    margin: 30px auto !important;
}

/* 個別のステップカード */
.step-icon-box {
    background-color: #ffffff !important;
    border: 2px solid #5588bb !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 15px rgba(85, 136, 187, 0.1) !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.step-icon-box:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(85, 136, 187, 0.18) !important;
}


/* 1. STEP番号（ご要望に合わせて少し大きく＆すっきりと） */
.step-number {
    font-size: 0.85rem !important; /* 少し大きくしました */
    font-weight: bold !important;
    color: #4477aa !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

/* カラム内のレイアウト（アイコンとテキストの縦中央揃え） */
.custom-step-item {
    align-items: center !important;
}

/* アイコン画像のサイズ・収まり調整 */
.custom-step-item img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 2. ステップの見出し（h6 / .step-title のデザイン） */
h6.wp-block-heading.step-title {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    color: #224466 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
    border-bottom: 2px solid #f0f5fa !important; /* 下部にさりげないラインを入れる場合 */
    padding-bottom: 4px !important;
}

/* 3. 説明文（.step-desc）のデザイン */
.step-desc {
    font-size: 0.9rem !important;
    color: #555555 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* ステップ間の矢印（↓） */
.custom-step-arrow {
    color: #5588bb !important;
    font-size: 2.0rem !important;
    font-weight: bold !important;
    margin: 15px 0 !important;
    text-align: center !important;
}

.p-gallery-main-banner {
    background-color: #ffffff !important;
    border: 2px solid #5588bb !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin: 30px 0 20px 0 !important;
    box-shadow: 0 4px 15px rgba(85, 136, 187, 0.1) !important;
    box-sizing: border-box !important;
    
    /* 追加：内部全体をFlexboxにして、中身を縦・横ともに中央寄せにする */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* メイン画像の角丸と背景（Flexbox内で中央に収まるように幅を調整） */
.p-gallery-main-banner figure.wp-block-image {
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background-color: #f7fafe !important;
    width: 100% !important;
    
    /* 追加：figure内もFlexboxにして中央寄せを確実にする */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 1240×848の比率を保ったまま綺麗に収める設定 */
.p-gallery-main-banner img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px !important;
    
    /* 追加：万が一のズレを防ぐため左右のmarginをautoに */
    margin: 0 auto !important;
}

/* 写真下の添え字（キャプション） */
.p-gallery-main-caption {
    font-size: 0.9rem !important;
    font-weight: bold !important;
    color: #444444 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}


.js-scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              z-index 0.3s ease !important;
}

.js-scroll-fade.is-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 1. 全体を左右2カラムにする */
.p-gallery-wrapper > .wp-block-group__inner-container {
    display: flex !important;
    align-items: flex-start !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 0 !important;
    box-sizing: border-box !important;
}

/* 左側（メイン画像：55%） */
.p-gallery-wrapper .p-gallery-main-banner {
    flex: 0 0 55% !important;
    max-width: 55% !important;
    margin: 0 !important;
	display: flex !important;
	min-height: 500px !important;
}

/* 右側エリア全体（40%） */
.p-gallery-wrapper .wp-gallery-right-side {
    flex: 0 0 40% !important;
    max-width: 40% !important;
    margin: 0 !important;
}

.wp-gallery-right-side > .wp-block-group__inner-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0px !important;
    padding: 0 !important;
}

/* 2. 【最重要】4つのサムネイルの親グループを横並びにする */
.p-gallery-thumbnails-group > .wp-block-group__inner-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* 4つの小アイテムを均等に割る（25%ずつ） */
.p-gallery-thumbnails-group .p-gallery-item {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.p-gallery-thumbnails-group .p-gallery-item > .wp-block-group__inner-container {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

/* 3. サムネイルの丸みと縦長比率（3/4）の調整 */
.p-gallery-thumbnails-group .p-gallery-item__thumb,
.p-gallery-thumbnails-group .p-gallery-item__thumb > .wp-block-group__inner-container {
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    margin-bottom: 6px !important;
    position: relative !important;
    padding: 0 !important;
}

.p-gallery-thumbnails-group .p-gallery-item__img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    position: relative !important;
}

.p-gallery-thumbnails-group .p-gallery-item__img img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

/* サムネイル下のタイトル文字調整 */
.p-gallery-thumbnails-group .p-gallery-item__title {
    font-size: 11px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin: 0 !important;
    color: #222 !important;
}

.p-gallery-text-group p.wp-block-paragraph {
    margin-bottom: 12px !important; /* 段落ごとの隙間を狭くする */
    line-height: 1.6 !important;
}

/* もし見出しとテキストの隙間も気になれば調整 */
.p-gallery-text-group h2.wp-block-heading {
    font-size: 1.25rem !important; 
}

/* ==================================================
   06.
   ================================================== */
.consultation-section .p-section-lead {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.consultation-section .p-section-lead::after {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    height: 2px !important;
    background-color: #ffffff !important;
    margin: 20px auto 0 auto !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.consultation-text-white,
.consultation-text-white span,
.consultation-text-white h2,
.consultation-text-white h3 {
    color: #ffffff !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

p.consultation-text-white {
    font-size: 1.2em !important;
    line-height: 2.5 !important;
}

div.consultation-section.wp-block-group.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
  background-color: #6699CC !important;  
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 2px, transparent 2px) !important;
  background-size: 35px 35px !important;
  background-position: 0 0 !important;
  background-repeat: repeat !important;
  padding: 80px 20px !important;
}

div.consultation-section.wp-block-group.alignfull .wp-block-group__inner-container {
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.p-consultation-side .p-speech-zigzag {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.p-consultation-side.is-left-side .p-speech-zigzag::after {
    left: auto !important;
    right: -12px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    border-width: 10px 0 10px 12px !important;
    border-color: transparent transparent transparent #ffffff !important;
}


.p-speech-zigzag {
  position: relative !important;
  background-color: #ffffff !important;
  border-radius: 20px !important;
  padding: 20px 24px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  max-width: 330px !important;
  width: 85% !important;
  box-sizing: border-box !important;
  margin-bottom: 25px !important;
  z-index: 2 !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease !important;
}

.p-speech-zigzag:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
  z-index: 10 !important;
}

.p-speech-zigzag.is-left {
  margin-left: 5% !important;
  margin-right: auto !important;
  
}

.p-speech-zigzag.is-left::after {
  content: "" !important;
  position: absolute !important;
  left: 90px !important;
  bottom: -12px !important;
  border-width: 0 12px 12px 0 !important;
  border-style: solid !important;
  border-color: transparent #ffffff transparent transparent !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
}

.p-speech-zigzag.is-right {
  margin-left: auto !important;
  margin-right: 5% !important;
  
}

.p-speech-zigzag.is-right::after {
  content: "" !important;
	position: absolute !important;
	left: -12px !important;
	top: 70% !important;
	bottom: auto !important;
	right: auto !important;
	transform: translateY(-50%) !important;
	width: 14px !important;
	height: 14px !important;
	background-color: #ffffff !important;
	border-radius: 50% !important;
	border: none !important;
	display: block !important;
	z-index: 3 !important;
}
.p-speech-zigzag.is-right::before {
	content: "" !important;
	position: absolute !important;
	left: -21px !important;
	top: calc(70% + 4px) !important;
	bottom: auto !important;
	right: auto !important;
	transform: translateY(-50%) !important;
	width: 8px !important;
	height: 8px !important;
	background-color: #ffffff !important;
	border-radius: 50% !important;
	border: none !important;
	display: block !important;
	z-index: 3 !important;
}

.p-consultation-flex-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1000px !important;
    margin: 20px auto !important;
    gap: 20px !important;
}

.p-consultation-flex-wrapper > .wp-block-group__inner-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    gap: 40px !important;
}

.p-consultation-side {
    flex: 1 !important;
    max-width: 30% !important;
    margin: 0 !important;
}

.p-consultation-side > .wp-block-group__inner-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    gap: 60px !important;
    padding: 0 !important;
    width: 100% !important;
}

.p-consultation-img {
    flex: 0 0 auto !important;
    max-width: 380px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    z-index: 3 !important;
    position: relative !important;
}

.p-consultation-img img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.page-id-9972 .wpcf7-form .submit-area .button--submit {
  all: unset !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.page-id-9972 .wpcf7-form .submit-area .button__spotlight {
  display: none !important;
}

.page-id-9972 .wpcf7-form .submit-area input.button__wrapper.wpcf7-submit {
  all: unset !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 15px 30px !important;
  border-radius: var(--fab-radius-handwriting) !important;
  background-color: var(--fab-accent-yellow) !important;
  background: var(--fab-accent-yellow) !important;
  color: var(--fab-text-color) !important;
  font-family: sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.03), inset 0px 0px 10px rgba(255, 255, 255, 0.5) !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.page-id-9972 .wpcf7-form .submit-area input.button__wrapper.wpcf7-submit:hover {
  background-color: var(--fab-accent-yellow-hover) !important;
  background: var(--fab-accent-yellow-hover) !important;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.03) !important;
}

.wpcf7-form table {
    max-width: 100%;
    margin: 0 auto;
    padding: 96px 64px 96px 64px;
    background: var(--color-gray-100);
    border-radius: 56px;
    border: 4px solid #d0d0d0 !important;
}

.custom-form-area {
	padding-top: 70px !important;
}

.button__spotlight {
    pointer-events: none !important; /* マウスのクリックを透過させ、下のinputに直接届かせる */
}



/* =====================================================
□ PC（641px以上）
===================================================== */
@media screen and (min-width: 641px) {
.wp-block-columns.custom-lineup-image {
    display: flex !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wp-block-columns.custom-lineup-image > .wp-block-column {
    flex: 1 !important;
    min-width: 0 !important;
    
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.wp-block-columns.custom-lineup-image .wp-block-image {
    width: 100% !important;
    height: 280px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

.wp-block-columns.custom-lineup-image .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}


	
	
}

/* =====================================================
□ スマホ（640px以下）
===================================================== */
@media screen and (max-width: 640px) {

	.fab-lp__content,
	.l-grid-bg-container {
		background-attachment: scroll !important;
	}

	.page-id-9972 .wpcf7-form input[type="text"],
	.page-id-9972 .wpcf7-form input[type="email"],
	.page-id-9972 .wpcf7-form input[type="tel"],
	.page-id-9972 .wpcf7-form textarea {
		font-size: 16px !important;
	}
	body,
	p,
	.wp-block-paragraph {
		font-size: 14px !important;
		line-height: 1.6 !important;
	}

	h1,
	.wp-block-heading h1 {
		font-size: 24px !important;
		line-height: 1.3 !important;
	}

	h2,
	.wp-block-heading h2,
	.wp-block-heading { 
		font-size: 20px !important;
		line-height: 1.4 !important;
	}

	h3,
	.wp-block-heading h3 {
		font-size: 18px !important;
		line-height: 1.4 !important;
	}
	
	.wb-home-img {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;

		width: 80px !important;     
		max-width: 80px !important; 
		height: auto !important;

		margin-left: 10px !important;
		margin-right: auto !important;
		transform: none !important;
		display: block !important;
	}

	.wb-home-img img {
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
	}
	
	.section-heading {
    max-width: 95%;
    padding: 0 16px; 
  }

	.p-color-section__inner, .p-color-section__inner > .wp-block-group__inner-container {
		padding-top: 20px !important;
		padding-bottom: 20px !important;
	}

	.c-fv-logo {
		position: relative !important;
		z-index: 2 !important; 
		transform: none !important;
		margin-top: 50px !important; 
		margin-bottom: 30px !important;
	}

	.section-fv{
		padding-bottom: 5px !important;
		min-height: 70vh !important;
	}

	.section-fv .p-fv-section__inner{
		padding: 60px 50px 50px 50px !important;
	}
	
	.fv-highlight {
    margin-bottom: 30px !important;
    font-size: 1.1em;
    line-height: 1.8 !important;
    text-underline-offset: 4px !important; 
  }
	
	.fv-normal-text {
	margin-top: 20px;
	margin-bottom: 5px;
}
	
	.wp-block-image img {
    vertical-align: baseline !important;
	}

	.p-hero-floating-group {
		margin-top: 0 !important;
		padding-top: 0 !important;
		margin-bottom: 10px !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important; 
		max-height: none !important;
		overflow: visible !important; 
	}

	.section-fv .p-hero-floating-group .wp-block-image:nth-child(1) { top: 20% !important; left: 8% !important; right: auto !important; bottom: auto !important; width: 100px !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(2) { top: 60% !important; right: 1% !important; left: auto !important; bottom: auto !important; width: 70px !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(3) { display: none !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(4) { top: 15% !important; right: 8% !important; left: auto !important; bottom: auto !important; width: 70px !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(5) { display: none !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(6) { top: 70% !important; left: 5% !important; right: auto !important; bottom: auto !important; width: 50px !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(7) { display: none !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(8) { top: 33%; !important; left: 12%; !important; right: auto !important; bottom: auto !important; width: 15px; !important; width: 30px !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(9) { top: 10%; !important; right: 20%; !important; left: auto !important; bottom: auto !important; width: 15px; !important; width: 30px !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(10) { top: 40%; !important; right: 3%; !important; left: auto !important; bottom: auto !important; width: 15px; !important; width: 30px !important; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(11) { display: none; }
	.section-fv .p-hero-floating-group .wp-block-image:nth-child(12) { display: none; }

	.wp-block-columns.custom-lineup-text {
		flex-direction: column !important;
		gap: 12px !important;
		margin-top: 24px !important;
	}

	.page-id-9972 .wp-block-button__link.wp-element-button {
        display: block !important;
        width: 100% !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 10px 16px !important; /* スマホで窮屈にならない余白 */
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* 2. 内部ラッパーのテキストと矢印を自然に配置 */
    .page-id-9972 .button--default .button__wrapper,
    .page-id-9972 .wp-block-button__link.wp-element-button .button__wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;           /* テキストと矢印の間の隙間を確保 */
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. テキストが省略（...）されないようにする */
    .page-id-9972 .button--default .button__text,
    .page-id-9972 .wp-block-button__link.wp-element-button .button__text {
        white-space: normal !important; /* 折り返しを許可して見切れを防ぐ */
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 13px !important;     /* スマホで収まりやすいサイズに微調整 */
		white-space: nowrap !important; /* 2行への折り返しを禁止する */
    }
	/* 3. 矢印やスポットライトなどの余分な装飾をスマホのみ非表示にする */
    .page-id-9972 .button--default .button__spotlight,
    .page-id-9972 .wp-block-button__link.wp-element-button .button__wrapper::after,
    .page-id-9972 .wp-block-button__link.wp-element-button .button__wrapper::before {
        display: none !important;
    }

	.wp-block-columns.custom-lineup-text .wp-block-column {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding: 16px !important;
	}

	.wp-block-columns.custom-lineup-text .wp-block-column p {
		font-size: 1em !important;
	}

	.custom-lineup-title {
		font-size: 1rem !important;
		padding: 10px 16px !important;
	}


	.p-color-section.arch-section,
	.p-color-section--blue {
		padding-top: 80px !important;
		padding-bottom: 50px !important;
	}

	.arch-section::before,
	.p-color-section--blue::before {
		width: 330vw !important;
		height: 100% !important;
		background-image: linear-gradient(
			to bottom,
			rgba(1, 162, 226, 0.85) 0%,
			rgba(1, 162, 226, 0.85) 30%,
			rgba(1, 162, 226, 0.25) 55%,
			rgba(1, 162, 226, 0)    75%
		) !important;
	}

	.p-idea-section-box .idea-floating-icon {
		display: none !important;
	}

	.wp-block-group.p-idea-feature-wrapper,
	.wp-block-group.p-idea-feature-wrapper > .wp-block-group__inner-container {
		flex-direction: column !important;
		align-items: center !important; /* スマホでは中央に寄せる */
		gap: 20px !important;
		max-width: 100% !important;
		margin: 20px 16px !important;
		box-sizing: border-box !important;
	}

	/* 2. 画像コンテナを上に、幅いっぱいに広げる */
	.wp-block-group.p-idea-feature-wrapper .flow-image-container {
		width: 100% !important;
		max-width: 100% !important;
		margin-top: 0 !important; /* PC用のマイナスマージンをリセット */
		margin-bottom: 10px !important;
	}

	/* 3. テキストコンテナを下に、幅いっぱいに広げる */
	.wp-block-group.p-idea-feature-wrapper .idea-text-content {
		font-size: 16px !important;
		width: 100% !important;
		max-width: 100% !important;
		line-height: 1.6 !important;
	}
	
	.p-idea-section-box .p-section-lead {
    font-size: 14px !important;
    line-height: 1.6 !important;
}
	
	/* 1. 外側の青いカードの余白をスマホ用にスリム化 */
	.p-price-card-wrapper {
		padding: 20px 12px !important;
		border-radius: 16px !important;
		margin-top: 25px !important;
	}

	/* 2. カード内の見出し（h2）のインデントを調整 */
	.p-price-card-wrapper h2 {
		padding-left: 10px !important;
		font-size: 1.2rem !important;
	}
	.p-price-card-desc {
		padding-left: 10px !important;
	}
	
	.price-note {
    font-size: 11px !important;
    color: #ffffff !important;
    margin-top: 6px !important;
    line-height: 1.4 !important;
	font-weight: 300 !important;
	padding-left: 0 !important;
}

	/* 3. テーブル全体をスマホで横スクロールできるようにする（重要） */
	.wp-block-table.p-custom-table {
		width: 100% !important;
		overflow-x: auto !important; /* 画面からはみ出たときにスクロールさせる */
		-webkit-overflow-scrolling: touch;
		margin: 10px auto 0 auto !important;
	}

	/* テーブル本体が小さくなりすぎないように最小幅を確保 */
	.wp-block-table.p-custom-table table {
		min-width: 500px !important; /* スマホでもレイアウトが崩れない最低幅 */
	}

	/* 4. セルの余白や文字サイズを少しコンパクトにする */
	.wp-block-table.p-custom-table th,
	.wp-block-table.p-custom-table td {
		padding: 10px 12px !important;
		font-size: 0.9rem !important;
	}
	
	.wp-block-table.p-custom-table td {
      padding: 10px 8px !important;
      font-size: 12px !important;
  }
	
	.wp-block-table.p-custom-table tr:not(:first-child) td:last-child {
      font-size: 13px !important; /* スマホでも価格は潰れないように */
  }
	
	div.p-asymmetric-section.wp-block-group.alignfull .wp-block-group__inner-container,
	div.p-asymmetric-section.wp-block-group.alignfull .p-color-section__inner{
		padding-top: 10px !important;
	}

	div.consultation-section.wp-block-group.alignfull {
		padding: 50px 15px !important;
	}

	/*div.p-asymmetric-section.is-right-bleed.wp-block-group.alignfull::before {
	top: 50px !important;
	bottom: 0 !important;
	left: 20px !important;
	border-top-left-radius: 20px !important;
	border-bottom-left-radius: 20px !important;
}*/

	div.p-asymmetric-section.is-left-bleed.wp-block-group.alignfull::before {
		top: 50px !important;
		bottom: 0 !important;
		right: 20px !important;
		border-top-right-radius: 20px !important;
		border-bottom-right-radius: 20px !important;
	}

	div.consultation-section.wp-block-group.alignfull .wp-block-group__inner-container {
		max-width: 100% !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.step-icon-box {
		padding: 16px !important;
	}
	.custom-step-item img {
		width: 56px !important;
		height: 56px !important;
	}
	h6.wp-block-heading.step-title {
		font-size: 1rem !important;
	}
	.step-desc {
		font-size: 0.85rem !important;
	}
	
.machinery-section-wrapper {
    padding-bottom: 0 !important;
}
  .machinery-carousel-wrapper{
    padding: 30px 0 0 0 !important;
  }
.machinery-carousel {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    pointer-events: auto !important;
    animation: none !important; 
    width: auto !important;     
  }
.machinery-carousel::-webkit-scrollbar {
    display: none !important;
  }

  .machinery-item {
    flex: 0 0 220px;
    height: 300px !important;
  }
  .item-normal {
    height: 300px;
  }
  .item-low {
    height: 220px;
  }
  .machinery-item img {
     width: 100% !important;
     height: 100% !important;
     object-fit: cover !important;
  }
	.machinery-text-item .machinery-title {
    flex: 100% !important;           /* スマホで縦並びになる場合は幅をいっぱいに広げる（レイアウトに合わせて調整） */
    font-size: 18px !important;      /* スマホで収まりが良いサイズに縮小 */
    line-height: 1.5 !important;     /* 行間も少しだけコンパクトに */
    padding-bottom: 6px !important;  /* 余白を少し詰める */
    margin-bottom: 10px !important;
  }
	
	.machinery-text-item .machinery-desc {
    flex: 100% !important;          /* タイトルと同様にスマホで縦並びになる場合に対応 */
    font-size: 13px !important;     /* スマホで読みやすいサイズに微調整（12px〜13pxがおすすめ） */
    line-height: 1.5 !important;    /* 行間を少しコンパクトに */
    padding-top: 10px !important;   /* 上のタイトルとの余白を狭める */
  }

	
.p-gallery-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* 2. WordPressの内部コンテナの縛りをすべて強制的になくす */
    .p-gallery-wrapper *,
    .p-gallery-wrapper .wp-block-group__inner-container,
    .p-gallery-wrapper .is-layout-constrained {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    /* 3. 大元を縦並び（フレックス）にして順番を制御 */
    .p-gallery-wrapper > .wp-block-group__inner-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 !important;
    }

    /* 【順番①】メインバナー */
    .p-gallery-main-banner {
        order: 1 !important;
        background-color: #ffffff !important;
        border: 2px solid #5588bb !important;
        border-radius: 16px !important;
        padding: 16px !important;
        box-shadow: 0 4px 15px rgba(85, 136, 187, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .p-gallery-main-banner figure.wp-block-image {
        margin: 0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background-color: #f7fafe !important;
    }

    .p-gallery-main-banner img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }

    /* 【順番②】右側セクション全体をフレックスでさらにバラす */
    .p-gallery-section {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 !important;
    }

    .p-gallery-section > .wp-block-group__inner-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 !important;
    }

    /* テキストグループ（順番①） */
    .p-gallery-text-group {
        order: 1 !important;
    }

    /* サムネイルグループ（順番②）を2列グリッドに強制 */
    .p-gallery-thumbnails-group {
        order: 2 !important;
    }

    .p-gallery-thumbnails-group > .wp-block-group__inner-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    /* 各サムネイルアイテムの絶対配置を完全に無効化し、幅を100%に */
    .p-gallery-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .p-gallery-item__thumb {
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    
    .p-gallery-item__img img {
        border-radius: 16px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .p-gallery-item__title {
        font-size: 12px !important;
        text-align: center !important;
        margin-top: 6px !important;
    }
.p-gallery-wrapper .p-gallery-main-banner {
        flex: none !important;
        flex-direction: column !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important; /* スマホで必要以上に縦長になるのを防ぐ場合 */
        margin: 0 auto !important;
    }

    /* ついでに右側のセクション側のPC用flex指定もあればリセット */
    .p-gallery-wrapper .p-gallery-section {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }
	
	
	.p-consultation-flex-wrapper,
  .p-consultation-flex-wrapper > .wp-block-group__inner-container {
      flex-direction: column !important; /* 3カラムから縦並びに変更 */
      align-items: center !important;
      gap: 20px !important;
      margin-bottom: 5px !important; /* セクション下の余白 */
  }

  /* 左右の吹き出しエリアの幅と配置 */
  .p-consultation-side {
      max-width: 100% !important;
      width: 100% !important;
  }

  .p-consultation-side > .wp-block-group__inner-container {
      gap: 15px !important;
      align-items: center !important;
  }
/* =========================================
       1. ご相談セクション大元のフレックス縦並び設定
       ========================================= */
    .p-consultation-flex-wrapper,
    .p-consultation-flex-wrapper > .wp-block-group__inner-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    /* =========================================
       2. 各大枠ブロックの並び順（order）の指定
       ========================================= */

    /* ① 左側の吹き出し群：一番上 */
    .p-consultation-side.is-left-side {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* ② 右側の吹き出し群：2番目 */
    .p-consultation-side.is-right-side {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* ③ 中央のイラスト：一番下 */
    .p-consultation-img {
        order: 3 !important;
        width: 100% !important;
        max-width: 260px !important;
        margin: 10px auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* =========================================
       3. 吹き出し本体・しっぽ（下向き）の共通調整
       ========================================= */
    .p-speech-zigzag {
        max-width: 300px !important;
        width: 100% !important;
        margin: 0 auto 16px auto !important;
        padding: 14px 18px !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    /* スマホ時の「吹き出しのしっぽ」をすべて下向きにする */
    .p-consultation-side .p-speech-zigzag::after,
    .is-left-side .p-speech-zigzag::after,
    .is-right-side .p-speech-zigzag::after,
    .p-speech-zigzag::after {
        content: "" !important;
        position: absolute !important;
        
        /* 位置を完全にリセットして下部に固定 */
        top: auto !important;
        bottom: -10px !important; /* 吹き出しのすぐ下に配置 */
        left: 50% !important;
        right: auto !important;
        
        /* 左右中央にセンハリング */
        transform: translateX(-50%) !important;
        
        /* 下向きのとんがり（上辺に色がつき、左右・下が透明な三角形）にする */
        border-style: solid !important;
        border-width: 10px 8px 0 8px !important;
        border-color: #ffffff transparent transparent transparent !important; /* ※吹き出しの背景色が白の場合。背景色に合わせてください */
        
        /* PC版の向き指定をすべて無効化 */
        margin: 0 !important;
        z-index: 10 !important;
    }
	.p-consultation-side.is-left-side .p-speech-zigzag::before,
    .p-consultation-side.is-right-side .p-speech-zigzag::before {
        display: none !important;
	}
	.p-consultation-side.is-left-side .p-speech-zigzag::after {
        content: "" !important;
        position: absolute !important;
        /* 元の配置や形状に合わせて調整（以下は元の三角の指定の一例です） */
        top: 50% !important;
        right: -11px !important;
        left: auto !important;
        width: 0 !important;
        height: 0 !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        border-width: 10px 0 10px 12px !important;
        border-style: solid !important;
        border-color: transparent transparent transparent #ffffff !important;
        transform: translateY(-50%) !important;
    }

    /* 【右側】 */
    .p-consultation-side.is-right-side .p-speech-zigzag::after {
        content: "" !important;
        position: absolute !important;
        top: 50% !important;
        left: -11px !important;
        right: auto !important;
        width: 0 !important;
        height: 0 !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        border-width: 10px 12px 10px 0 !important;
        border-style: solid !important;
        border-color: transparent #ffffff transparent transparent !important;
        transform: translateY(-50%) !important;
    }
	
    /* イラスト内の画像調整 */
    .p-consultation-img figure.wp-block-image {
        margin: 0 !important;
        flex: 1 !important;
    }

    .p-consultation-img img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
	
	.p-speech-zigzag.is-left {
    margin-left: 0 !important;
    margin-right: auto !important;
}
	
	.page-id-9972 p.consultation-text-white {
		font-size: 0.9rem !important;
		line-height: 1.8 !important;
		margin-top: 10px;
	}

    .page-id-9972 .wpcf7-form table {
        padding: 30px 20px !important;
        border-radius: 24px !important;
        border-width: 2px !important;
        box-sizing: border-box !important;
    }

    .page-id-9972 .wpcf7-form th {
        text-align: left !important;
        padding-bottom: 4px !important;
    }

    .page-id-9972 .wpcf7-form tr,
    .page-id-9972 .wpcf7-form th,
    .page-id-9972 .wpcf7-form td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
		padding-top: 0;
    }

	.page-id-9972 .wpcf7-form p.form-description{
		margin: 10px 20px;
	}
	
	.page-id-9972 .wpcf7-form .submit-area input.button__wrapper.wpcf7-submit,
    .page-id-9972 .wpcf7-form .submit-area .wpcf7-submit {
        display: block !important;
        
        width: 60% !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        
        height: auto !important;
        min-height: 0 !important;
        white-space: normal !important;
        padding: 14px 16px !important;
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        box-sizing: border-box !important;
    }

    .page-id-9972 .wpcf7-form .submit-area {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
	
}
