/* ---- 旧テーマ残骸 h1/h2/h3 装飾を完全リセット ---- */
#site-content .entry-content h1,
#site-content .entry-content h2,
#site-content .entry-content h3,
#site-content .entry-content h4 {
  background-image: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
}

/* body/コンテナ背景の強制白 */
body,
#site-content,
.singular .entry-content,
.page .entry-content {
  background-color: #ffffff !important;
}

/* ================================================================
   3DPcoLab Design — v20260705b
   重要な色は CSS変数に頼らずハードコード。tokens.css 必須。
   ================================================================ */

/* ---- Page-level resets ---- */
.page .entry-content,
.home .entry-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- ホームのエントリーヘッダー非表示 ---- */
.home .entry-header { display: none !important; }

/* ---- 全体のテキスト色強制 ---- */
body,
.singular .entry-content,
.page .entry-content {
  color: #14161a !important;
}

/* ---- Inner container ---- */
.lab-section__inner,
.lab-hero__inner,
.lab-cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

/* ---- Section ---- */
.lab-section {
  padding: var(--space-6) 0;
  background: transparent;
}

.lab-section__heading {
  font-family: var(--font-tech);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #00c896 !important;
  margin: 0 0 var(--space-4);
}

.lab-section__sub {
  color: #4a5060 !important;
  max-width: 560px;
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.lab-section h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #14161a !important;
  margin: 0 0 var(--space-4) !important;
  letter-spacing: -.01em !important;
}

/* ---- Hero ---- */
.lab-hero {
  padding: 112px 0 88px;
  border-bottom: 1px solid #c2c8d3;
  background: #ffffff;
}

.lab-hero__eyebrow {
  font-family: var(--font-tech);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #00c896 !important;
  margin: 0 0 var(--space-3);
}

.lab-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  color: #14161a !important;
  margin: 0 0 var(--space-4) !important;
}

.lab-hero__sub {
  font-size: 1.0625rem;
  color: #4a5060 !important;
  max-width: 560px;
  line-height: 1.75;
  margin: 0 0 var(--space-5);
}

.lab-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---- Buttons ---- */
.lab-btn {
  display: inline-block;
  padding: .75em 1.5em;
  border-radius: var(--radius-m);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity .15s, border-color .15s;
  line-height: 1.4;
}

.lab-btn--primary {
  background: #00c896 !important;
  color: #ffffff !important;
  border: 1.5px solid transparent;
}
.lab-btn--primary:hover { opacity: .88; }

.lab-btn--ghost {
  background: transparent !important;
  color: #14161a !important;
  border: 1.5px solid #c2c8d3 !important;
}
.lab-btn--ghost:hover { border-color: #4a5060 !important; }

/* ---- Services grid ---- */
.lab-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (max-width: 760px) {
  .lab-service-grid { grid-template-columns: 1fr; }
}

.lab-service-card {
  padding: var(--space-4);
  border: 1px solid #c2c8d3;
  border-radius: var(--radius-m);
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
}

.lab-service-card__no {
  font-family: var(--font-tech);
  font-size: .75rem;
  letter-spacing: .1em;
  color: #00c896 !important;
  margin: 0 0 var(--space-2);
  font-style: normal;
}

.lab-service-card h3 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: #14161a !important;
  margin: 0 0 var(--space-2) !important;
  line-height: 1.35 !important;
  background: transparent !important;
}

.lab-service-card p {
  color: #4a5060 !important;
  font-size: .9375rem;
  line-height: 1.6;
  margin: 0 0 var(--space-3);
  flex: 1;
  background: transparent !important;
}

.lab-service-card > a,
.lab-service-card a {
  font-size: .875rem;
  font-weight: 600;
  color: #007a5a !important;
  text-decoration: none !important;
  margin-top: auto;
}

/* ---- Lab Notes teaser ---- */
.lab-labnotes-teaser {
  background: #f4f5f7 !important;
  border-top: 1px solid #c2c8d3;
  border-bottom: 1px solid #c2c8d3;
}

/* ---- Highlight band ---- */
.lab-highlight-band {
  background: #f4f5f7 !important;
  border-top: 1px solid #c2c8d3;
  border-bottom: 1px solid #c2c8d3;
}

/* ---- Price table ---- */
.lab-price-table {
  border: 1px solid #c2c8d3;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-top: var(--space-4);
}

.lab-price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid #c2c8d3;
  background: #ffffff;
}
.lab-price-row:last-child { border-bottom: none; }
.lab-price-row--featured { background: #f4f5f7 !important; }

.lab-price-row__name {
  font-weight: 600;
  color: #14161a !important;
  grid-row: 1; grid-column: 1;
  margin: 0; padding: 0;
}

.lab-price-row__price {
  font-family: var(--font-tech);
  font-size: 1.0625rem;
  color: #007a5a !important;
  font-weight: 700;
  grid-row: 1; grid-column: 2;
  white-space: nowrap;
  margin: 0; padding: 0;
}

.lab-price-row__note {
  font-size: .875rem;
  color: #4a5060 !important;
  grid-row: 2; grid-column: 1 / 3;
  margin: 4px 0 0; padding: 0;
}

.lab-note {
  font-size: .875rem;
  color: #4a5060 !important;
  margin-top: var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid #c2c8d3;
}

/* ---- Checklist ---- */
.lab-checklist ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-5);
}

@media (max-width: 600px) {
  .lab-checklist ul { grid-template-columns: 1fr; }
}

.lab-checklist li {
  padding-left: 1.75em !important;
  position: relative;
  color: #4a5060 !important;
  font-size: .9375rem;
  line-height: 1.55;
  background: transparent !important;
}

.lab-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00c896 !important;
  font-weight: 700;
}

/* ---- CTA band ---- */
.lab-cta {
  background: #f4f5f7 !important;
  border-top: 1px solid #c2c8d3;
  border-bottom: 1px solid #c2c8d3;
  text-align: center;
  padding: var(--space-6) 0;
}

.lab-cta__lead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem) !important;
  font-weight: 700 !important;
  color: #14161a !important;
  margin: 0 0 var(--space-4) !important;
  line-height: 1.55 !important;
}

/* ---- Contact form ---- */
.lab-contact-wrap { max-width: 640px; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  border: 1px solid #c2c8d3 !important;
  border-radius: var(--radius-s) !important;
  background: #ffffff !important;
  color: #14161a !important;
  padding: .75em 1em !important;
  font-size: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wpcf7 input[type="submit"] {
  background: #00c896 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-m) !important;
  padding: .75em 2em !important;
  font-size: .9375rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-top: var(--space-2) !important;
}

/* ---- Site header ---- */
#site-header {
  background: #14161a !important;
  border-bottom: none !important;
}

.header-inner {
  max-width: calc(var(--max-w) + 48px) !important;
}

.site-title a,
.site-title a:visited {
  font-family: var(--font-tech) !important;
  font-size: .9375rem !important;
  letter-spacing: .06em !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.site-description {
  color: rgba(255,255,255,.5) !important;
  font-size: .75rem !important;
  letter-spacing: .05em !important;
}

body:not(.overlay-header) .primary-menu > li > a {
  font-size: .875rem !important;
  color: rgba(255,255,255,.8) !important;
}

body:not(.overlay-header) .primary-menu > li > a:hover {
  color: #ffffff !important;
}

/* ハンバーガーとサーチのアイコン色 */
.toggle .toggle-text,
.toggle .icon { color: #ffffff !important; }
.toggle svg { fill: #ffffff !important; }

/* ---- Page entry-header ---- */
.page .entry-header {
  padding: 56px 0 40px !important;
  border-bottom: 1px solid #c2c8d3 !important;
  max-width: none !important;
  background: #ffffff !important;
}

.page .entry-header-inner {
  max-width: calc(var(--max-w) + 48px) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.page .entry-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important;
  font-weight: 700 !important;
  color: #14161a !important;
  letter-spacing: -.015em !important;
  margin: 0 !important;
}

/* ---- Entry content background ---- */
.page .entry-content > *,
.singular .entry-content > * {
  max-width: none !important;
}

/* ---- Footer ---- */
#site-footer {
  background: #ffffff !important;
  border-top: 1px solid #c2c8d3 !important;
  color: #4a5060 !important;
}

.footer-credits {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: var(--space-3) !important;
}

.footer-copyright {
  font-size: .875rem !important;
  color: #4a5060 !important;
  margin: 0 !important;
}

.footer-copyright a { color: #14161a !important; text-decoration: none !important; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .lab-hero { padding: 72px 0 56px; }
  .lab-hero__ctas { flex-direction: column; }
  .lab-btn { text-align: center; }
  .lab-price-row { grid-template-columns: 1fr; }
  .lab-price-row__price { grid-column: 1; margin-top: 4px; }
  .lab-price-row__note { grid-row: 3; }
}

/* ================================================================
   モーダルメニュー / TwentyTwenty デフォルト上書き
   ================================================================ */

/* 背景黒・ヘッダーと統一 */
.menu-modal,
.menu-modal-inner,
.search-modal-inner {
  background: #14161a !important;
}

/* 項目 */
.modal-menu a {
  color: rgba(255,255,255,.82) !important;
  font-size: .9375rem !important;
  font-weight: 400 !important;
  padding: .75rem 1.5rem !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  text-decoration: none !important;
}

.modal-menu a:hover,
.modal-menu a:focus,
.modal-menu li.current-menu-item > .ancestor-wrapper > a {
  color: #00c896 !important;
  text-decoration: none !important;
}

/* 上部ボーダー */
.menu-modal .modal-menu {
  border-top: 1px solid rgba(255,255,255,.07) !important;
}

/* Close Menu ボタン */
.close-modal-toggle,
.close-modal-toggle .toggle-text,
.toggle.close-nav-toggle {
  color: rgba(255,255,255,.7) !important;
}
.close-modal-toggle svg,
.toggle.close-nav-toggle svg {
  fill: rgba(255,255,255,.7) !important;
}

/* サブメニュートグル */
button.sub-menu-toggle {
  border-left-color: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.5) !important;
}

/* ヒーロー背景を強制ホワイト */
.lab-hero {
  background-color: #ffffff !important;
}

/* ghost ボタンテキストをより強く */
a.lab-btn--ghost,
.lab-btn--ghost {
  color: #14161a !important;
  background-color: #ffffff !important;
}

/* ヘッダーナビ不要な下線・装飾を消す */
body:not(.overlay-header) .primary-menu > li > a {
  text-decoration: none !important;
  letter-spacing: .02em !important;
}

/* 検索モーダル */
.search-modal-inner .search-field {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.2) !important;
  color: #ffffff !important;
}
.search-modal-inner .search-field::placeholder {
  color: rgba(255,255,255,.4) !important;
}

/* ================================================================
   TwentyTwenty 完全リセット — カスタマイザーCSS無効化後の補完
   ================================================================ */

/* リンク色（TwentyTwenty inline CSS が消えたので明示する） */
a { color: #007a5a !important; }
a:hover { color: #00c896 !important; }

/* body.custom-background の gray を白に上書き */
body,
body.custom-background {
  background-color: #ffffff !important;
  color: #14161a !important;
}

/* TwentyTwenty が出していたヘッダー/フッター背景 */
#site-header,
.header-footer-group {
  background: #14161a !important;
  color: #ffffff !important;
}

/* プライマリメニュー文字色 */
body:not(.overlay-header) .primary-menu > li > a,
body:not(.overlay-header) .toggle-inner .toggle-text {
  color: rgba(255,255,255,.8) !important;
}

/* ナビのドロップダウン背景 */
body:not(.overlay-header) .primary-menu ul {
  background-color: #14161a !important;
}

/* ハンバーガー / 検索アイコン */
.toggle .toggle-text,
.toggle .toggle-icon,
.toggle svg { color: #ffffff !important; fill: #ffffff !important; }

/* ================================================================
   モーダルメニュー 完全上書き（高特異度セレクタで確実に勝つ）
   ================================================================ */

.menu-modal,
.menu-modal-inner,
.search-modal-inner {
  background: #14161a !important;
  color: #ffffff !important;
}

/* 全レベルのリンク */
.modal-menu a,
.modal-menu > li > a,
.modal-menu > li > .ancestor-wrapper > a,
.modal-menu ul li a {
  color: rgba(255,255,255,.82) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  letter-spacing: .01em !important;
  padding: .75rem 1.5rem !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

/* ホバー / 現在地 */
.modal-menu a:hover,
.modal-menu a:focus,
.modal-menu > li > a:hover,
.modal-menu > li > .ancestor-wrapper > a:hover,
.modal-menu li.current-menu-item > .ancestor-wrapper > a,
.modal-menu li.current_page_ancestor > .ancestor-wrapper > a {
  color: #00c896 !important;
  text-decoration: none !important;
}

/* li の区切り線 */
.modal-menu li {
  border-color: rgba(255,255,255,.07) !important;
}

/* Close ボタン */
.close-modal-toggle,
.close-modal-toggle .toggle-text,
.toggle.close-nav-toggle,
button.close-nav-toggle {
  color: rgba(255,255,255,.7) !important;
}
.close-modal-toggle svg,
.toggle.close-nav-toggle svg {
  fill: rgba(255,255,255,.7) !important;
}

/* サブメニュートグル */
button.sub-menu-toggle {
  border-left-color: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.5) !important;
}
button.sub-menu-toggle svg { fill: rgba(255,255,255,.5) !important; }

/* 大画面でも font-size を統一 */
@media (min-width: 700px) {
  .modal-menu > li > a,
  .modal-menu > li > .ancestor-wrapper > a {
    font-size: 1rem !important;
    padding: .75rem 1.5rem !important;
  }
}

/* 検索モーダル */
.search-modal-inner .search-field {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.2) !important;
  color: #ffffff !important;
}
.search-modal-inner .search-field::placeholder {
  color: rgba(255,255,255,.4) !important;
}

/* ================================================================
   フッター
   ================================================================ */
#site-footer,
.footer-nav-widgets-wrapper {
  background-color: #ffffff !important;
  border-top: 1px solid #c2c8d3 !important;
  color: #4a5060 !important;
}
.footer-menu a,
.footer-widgets a {
  color: #4a5060 !important;
}


/* ================================================================
   ポータルホームページ追加スタイル
   ================================================================ */

/* ヒーロー accent span */
.lab-hero__accent {
  color: #00c896;
  font-style: normal;
}

/* tinted セクション（Lab Notes teaser 等） */
.lab-section--tinted {
  background: #f4f5f7 !important;
  border-top: 1px solid #c2c8d3;
  border-bottom: 1px solid #c2c8d3;
}

/* 3本柱グリッド */
.lab-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2rem;
  border: 1px solid #c2c8d3;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .lab-pillar-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.lab-pillar {
  padding: 2rem 1.75rem;
  background: #ffffff;
  border-right: 1px solid #c2c8d3;
  display: flex;
  flex-direction: column;
}

.lab-pillar:last-child {
  border-right: none;
}

@media (max-width: 760px) {
  .lab-pillar { border-right: none; border-bottom: 1px solid #c2c8d3; }
  .lab-pillar:last-child { border-bottom: none; }
}

.lab-pillar__no {
  font-family: var(--font-tech);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #00c896;
  margin: 0 0 1rem;
  display: block;
}

.lab-pillar h3 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: #14161a !important;
  margin: 0 0 .75rem !important;
  line-height: 1.3 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.lab-pillar p {
  font-size: .9375rem;
  color: #4a5060 !important;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex: 1;
}

.lab-pillar a {
  font-size: .875rem;
  font-weight: 600;
  color: #007a5a !important;
  text-decoration: none !important;
  margin-top: auto;
}

.lab-pillar a:hover { color: #00c896 !important; }

.lab-link--muted {
  color: #c2c8d3 !important;
  font-weight: 400 !important;
  cursor: default;
}


/* ================================================================
   旧テーマ h1/h2/h3/h4 装飾の完全リセット（更新版）
   ================================================================ */

/* entry-header の h1（page title）*/
#site-content .entry-header-inner h1,
.entry-header h1.entry-title,
h1.entry-title {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  line-height: 1.25 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  width: auto !important;
  color: #14161a !important;
  box-shadow: none !important;
}

/* entry-content h2/h3/h4 */
#site-content .entry-content h2,
#site-content .entry-content h3,
#site-content .entry-content h4,
.singular .entry-content h2,
.singular .entry-content h3,
.singular .entry-content h4 {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  line-height: 1.3 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  width: auto !important;
  margin-left: 0 !important;
  box-shadow: none !important;
}

/* entry-header エリア自体の背景 */
.page .entry-header,
.singular .entry-header {
  background: #ffffff !important;
}


/* ================================================================
   Lab Notes archive — タイトルサイズ修正
   TwentyTwenty の heading-size-1 (3.6rem) を一覧で抑制
   ================================================================ */
.archive h2.entry-title,
.archive h2.entry-title.heading-size-1,
.blog   h2.entry-title,
.blog   h2.entry-title.heading-size-1,
.home   h2.entry-title,
.home   h2.entry-title.heading-size-1 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -.01em !important;
  color: #14161a !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.archive h1.page-title,
h1.page-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #14161a !important;
  letter-spacing: -.015em !important;
}
.archive .entry-header,
.blog   .entry-header,
.home   .entry-header {
  text-align: left !important;
}

/* ================================================================
   記事本文 見出し — P3D スタイリング
   ================================================================ */
.singular .entry-content h2,
.single   .entry-content h2,
#site-content .entry-content h2 {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: #14161a !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
  margin: 2.75rem 0 1rem !important;
  padding-left: .875em !important;
  border: none !important;
  border-left: 3px solid #00c896 !important;
  background: none !important;
}
.singular .entry-content h3,
.single   .entry-content h3,
#site-content .entry-content h3 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: #14161a !important;
  line-height: 1.35 !important;
  letter-spacing: -.008em !important;
  margin: 2rem 0 .75rem !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
}
.singular .entry-content h4,
.single   .entry-content h4,
#site-content .entry-content h4 {
  font-family: "JetBrains Mono","IBM Plex Mono",ui-monospace,monospace !important;
  font-size: .8rem !important;
  font-weight: 700 !important;
  color: #007a5a !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  line-height: 1.4 !important;
  margin: 1.75rem 0 .5rem !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
}
.singular .entry-content p,
.single   .entry-content p {
  color: #14161a !important;
  line-height: 1.8 !important;
  font-size: 1rem !important;
}
.singular .entry-content li,
.single   .entry-content li {
  color: #14161a !important;
  line-height: 1.75 !important;
}
.singular .entry-content a,
.single   .entry-content a {
  color: #007a5a !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(0,200,150,.4) !important;
  text-underline-offset: .15em !important;
}
.singular .entry-content a:hover,
.single   .entry-content a:hover {
  color: #00c896 !important;
  text-decoration-color: #00c896 !important;
}

/* ================================================================
   記事タイトル font-size 抑制
   heading-size-1 の 3.6rem を上書き
   ================================================================ */
.singular .entry-header h1.entry-title,
.singular .entry-header h1.entry-title.heading-size-1,
.single   .entry-header h1.entry-title,
.single   .entry-header h1.entry-title.heading-size-1,
h1.entry-title.heading-size-1 {
  font-size: 1.875rem !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  line-height: 1.2 !important;
}
