/*
* ShowKase custom styles
* 配置先：lightning-child/assets/css/style.css
* 子テーマ直下のstyle.cssとは別ファイルです。
* WordPress「追加CSS」と既存の演出CSSを統合。
* イントロ初期描画用の最小CSSはPHP側に残します。
*/

/* ==================================================
01. サイト共通設定
================================================== */

/* ブランドカラー：今後の色変更はここだけ */
:root {
  --showkase-color-01: #f04ec2;
  --showkase-color-02: #0e7dd3;

  --showkase-key-color: var(--showkase-color-01);
  --showkase-accent-color: var(--showkase-color-02);

  /* 背景色 */
  --showkase-bg: #111;

  /* フォント ※フォントの読み込み設定は別途必要 */
  --showkase-font-ja: "IBM Plex Sans JP", sans-serif;
  --showkase-font-en: "Poppins", "IBM Plex Sans JP", sans-serif;

  /* PCの左右余白 */
  --showkase-header-padding-pc: 60px;
  --showkase-hero-padding-pc: 64px;

  /* 本文の基本サイズ・行間 */
  --vk-size-text: 17px;
  --vk-size-text-sm: 0.95rem;
  --vk-line-height: 2.2em;
  --vk-line-height-low: 1.6em;

  /* 基本文字色 */
  --vk-color-text-body: #fff;
  --vk-color-text-light: #ccc;
  --vk-color-text-meta: #ccc;
  --vk-color-text-link: #fff;
  --vk-color-text-link-hover: #ddd;

  /* 基本罫線色 */
  --vk-color-border: rgba(255, 255, 255, 0.25);
  --vk-color-border-hr: rgba(255, 255, 255, 0.2);

  --showkase-logo-pc: 80px;
  --showkase-logo-scrolled: 40px; /* 現行の後勝ち指定40pxを維持 */
  --showkase-logo-mobile: 42px;
}

/* ブロック単位でキーカラーを切り替える */
.showkase-theme-01 {
  --showkase-key-color: var(--showkase-color-01);
  --showkase-accent-color: var(--showkase-color-02);
}

.showkase-theme-02 {
  --showkase-key-color: var(--showkase-color-02);
  --showkase-accent-color: var(--showkase-color-01);
}

/* 文字色 */
.showkase-text-01 {
  color: var(--showkase-color-01) !important;
}

.showkase-text-02 {
  color: var(--showkase-color-02) !important;
}

/* 背景色 */
.showkase-bg-01 {
  background-color: var(--showkase-color-01) !important;
}

.showkase-bg-02 {
  background-color: var(--showkase-color-02) !important;
}

/* ボタン：左上のカラー01 → 右下のカラー02 */
.showkase-btn-gradient .vk_button_link,
.showkase-btn-gradient .wp-block-button__link {
  background: linear-gradient(
  135deg,
  var(--showkase-color-01),
  var(--showkase-color-02)
  ) !important;

  color: #fff !important;
  border: none !important;
}


/* サイト全体の背景：WordPress側の背景色指定より優先 */
html,
body,
body.custom-background {
  background-color: var(--showkase-bg, #111) !important;
  color: var(--vk-color-text-body);
}

body {
  font-family: var(--showkase-font-ja);
}

/* Evergreenの欧文フォント指定を上書き */
body .vk-font-family-en,
body .vk-heading-subtext-border.vk-heading-subtext-en .vk_heading_subtext,
body .vk-contact-txt-tel,
body .vk-contact-txt-tel .vk_heading_title,
body .vk_step .vk_step_item .vk_step_item_dot {
  font-family: var(--showkase-font-en);
}

/* ヘッダーロゴ（サイズは冒頭の変数で管理） */


/* PC：通常時 */
@media (min-width: 992px) {
  body:not(.scrolled) #site-header .site-header-logo img {
    width: auto !important;
    height: var(--showkase-logo-pc) !important;
    max-height: var(--showkase-logo-pc) !important;
  }

  /* PC通常時：ロゴ上下の余白を縮小 */
  body:not(.scrolled):not(.header_scrolled)
  #site-header .site-header-logo {
    padding-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

}

/* スマホ・タブレット：通常時／スクロール時 */
@media (max-width: 991.98px) {
  body #site-header .site-header-logo img {
    width: auto !important;
    height: var(--showkase-logo-mobile) !important;
    max-height: var(--showkase-logo-mobile) !important;
  }
}

/* リンクの高さも画像に合わせる */
body #site-header .site-header-logo a,
body #site-header .site-header-logo a > span {
  height: auto !important;
}


/* ==================================================
02. 見出し・共通装飾
================================================== */

h2,
h3,
h4 {
  letter-spacing: 0.03em;
}

/* 任意の見出しを斜体に */
.showkase-italic {
  font-style: italic;
}

/* セクション見出し：日本語・英語を白文字に */
body .vk-heading-subtext-border .vk_heading_title,
body .vk-heading-subtext-border .vk_heading_subtext {
  color: #fff;
}

/* 英語見出しの左右の装飾線 */
body .vk-heading-subtext-border .vk_heading_subtext::before,
body .vk-heading-subtext-border .vk_heading_subtext::after {
  background-color: #fff;
}

/* 背景の左右のずらしを解除 */
.vk-bg-offset-bg.showkase-bg-no-offset {
  --vk-width-bg-offset: 0px;
}

/* グループの背景画像に #111・不透明度50％を重ねる */
.wp-block-group.showkase-bg-overlay {
  position: relative;
  isolation: isolate;
}

.wp-block-group.showkase-bg-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.5);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}


/* ==================================================
03. ヘッダー・グローバルメニュー
================================================== */

.global-nav-list > li .global-nav-name {
  font-size: 17px;
  letter-spacing: 0.05em;
}


/* ==================================================
04. キービジュアル
================================================== */

/* KVメインコピー */
.showkase-keyvisual h2.showkase-maincopy {
  font-style: italic;
  font-size: clamp(40px, 4.8vw, 80px) !important;
  line-height: 1.2em !important;
}

/* KV説明文 */
.showkase-keyvisual-bodycopy {
  font-size: clamp(16px, 1.3vw, 20px) !important;
  line-height: 1.7em !important;
}

/* KV文字の周囲に影を付ける */
.showkase-hero-shadow {
  text-shadow:
  0 0 10px rgba(0, 0, 0, 0.75),
  0 0 30px rgba(0, 0, 0, 0.75);
}


/* ==================================================
05. カード配色
================================================== */

/* 白背景カード：黒文字 */
.showkase-white-card {
  --vk-color-text-body: #222;
  --vk-color-text-light: #555;
  --vk-color-text-meta: #555;

  color: #222;
}

.showkase-white-card :is(h2, h3, h4, h5, h6, p, li) {
  color: #222;
}

/* カード02：課題カード */
.showkase-card-02 {
  --vk-color-text-body: var(--showkase-key-color);
  --vk-color-text-light: var(--showkase-key-color);
  --vk-color-text-meta: var(--showkase-key-color);

  color: var(--showkase-key-color);
}

/* 背景・枠線は内側に付け、カード間の余白を保つ */
.showkase-card-02 > .vk_gridColumn_item_inner {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid var(--showkase-key-color);
  border-radius: 6px;
}

/* カード03・04・プロフィール：共通の白文字設定 */
.showkase-card-03,
.showkase-card-04,
.showkase-profile {
  --vk-color-text-body: #fff;
  --vk-color-text-light: #fff;
  --vk-color-text-meta: #fff;
  --vk-color-text-link: #fff;
  --vk-color-text-link-hover: #fff;
}

/* カード03：企画カード */
.showkase-card-03 {
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  border: 2px solid var(--showkase-key-color);
}

.showkase-card-03 :is(h2, h3, h4, h5, h6, p, li, a) {
  color: #fff !important;
}

/* 企画カードの区切り線 */
.showkase-card-03 hr.wp-block-separator {
  color: var(--showkase-key-color) !important;
  border-color: var(--showkase-key-color) !important;
  background-color: var(--showkase-key-color) !important;
  opacity: 0.5;
}

/* カード04：会社概要 */
.showkase-card-04 {
  background-color: #333 !important;
  color: #fff !important;
}


/* ==================================================
06. プロフィール
================================================== */

.showkase-profile {
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: #fff;
}

/* 名前・本文・SNSリンク */
.showkase-profile :is(h2, h3, h4, p, li, a) {
  color: #fff !important;
}

.showkase-profile a {
  text-decoration: underline;
}


/* ==================================================
07. スライダー
================================================== */

/* 前後ボタン・ページ番号の背景 */
.vk_slider .swiper-button-next,
.vk_slider .swiper-button-prev,
.vk_post_list_slider .swiper-button-next,
.vk_post_list_slider .swiper-button-prev,
.swiper-pagination.swiper-pagination-fraction:not(.swiper-pagination-bullets) {
  background-color: rgba(255, 255, 255, 0.25);
}


/* ==================================================
08. 会社概要テーブル
================================================== */

.wp-block-table.showkase-company td,
.wp-block-table.showkase-company th {
  line-height: 1.6em;
  padding: 14px 16px;
  vertical-align: top;
}

.wp-block-table.showkase-company ul {
  margin: 0;
  padding-left: 1.6em;
}

.wp-block-table.showkase-company li {
  line-height: 1.6em;
  margin: 0;
}

.wp-block-table.showkase-company li + li {
  margin-top: 0.25em;
}


/* ==================================================
09. CTA・フッター
================================================== */

.vk-contact-txt-tel {
  font-weight: 600;
}

.footer-nav {
  padding-top: 4em;
  font-size: 17px;
  line-height: 1.4em;
  letter-spacing: 0.02em;
}

.site-footer {
  background-color: #111 !important;
  color: #fff;
}

/* メニュー・本文・SNSアイコン */
.site-footer a,
.site-footer p,
.site-footer .wp-social-link {
  color: #fff !important;
}

/* 内側の背景を透明にして、フッター背景に統一 */
.site-footer .footer-nav,
.site-footer .site-footer-content,
.site-footer .site-footer-copyright,
.site-footer .wp-block-group.has-background {
  background-color: transparent !important;
}

/* お問い合わせページ：CTAを非表示 */
body.page-id-1790 .showkase-cta,
body.page-id-1790 .mobile-fix-nav {
  display: none !important;
}

/* 固定CTA用に確保されているフッター下の余白を解除 */
body.page-id-1790.mobile-fix-nav_enable {
  --vk-mobile-fix-nav-height: 0px;
}

/* ページ上部へ戻るボタンの位置も下げる */
body.page-id-1790.mobile-fix-nav_enable .page_top_btn {
  bottom: 10px;
}


/* ==================================================
10. PC：992px以上
================================================== */

@media (min-width: 992px) {

  /* ヘッダー：全幅・左右60px */
  #site-header .site-header-container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-left: var(--showkase-header-padding-pc);
    padding-right: var(--showkase-header-padding-pc);
  }

  #site-header .global-nav {
    margin-left: auto;
  }

  #site-header .global-nav-list > li:last-child > a {
    padding-right: 0;
  }

  /* キービジュアル：表示領域いっぱい・コピーを下寄せ */
  .wp-block-cover.showkase-keyvisual {
    box-sizing: border-box;
    height: 100svh;
    min-height: 0 !important;
    padding: 160px var(--showkase-hero-padding-pc) 48px !important;
    align-items: flex-end;
  }

  /* 内側の幅制限を解除 */
  .showkase-keyvisual > .wp-block-cover__inner-container,
  .showkase-keyvisual > .wp-block-cover__inner-container
  > .wp-block-group {
    width: 100%;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  /* 左右余白はカバー側で管理 */
  .showkase-keyvisual > .wp-block-cover__inner-container
  > .wp-block-group > :is(h2, p) {
    max-width: none !important;
    margin-inline: 0 !important;
    text-align: left;
  }

  /* 上下の高さ調整用スペーサーを無効化 */
  .showkase-keyvisual > .wp-block-cover__inner-container
  > .wp-block-group > .vk_spacer:first-child,
  .showkase-keyvisual > .wp-block-cover__inner-container
  > .wp-block-group > .vk_spacer:last-child {
    display: none;
  }

  /* ログイン中は管理バーの高さを差し引く */
  body.admin-bar .wp-block-cover.showkase-keyvisual {
    height: calc(100svh - 32px);
  }
}


/* ==================================================
11. 大画面：1440px以上
================================================== */

@media (min-width: 1440px) {
  .showkase-about-outer p {
    font-size: 19px !important;
  }
}


/* ==================================================
12. タブレット・スマホ：992px未満
================================================== */

@media (max-width: 991.98px) {
  html,
  body {
    font-size: 16px;
  }
}

/* 紹介セクション：1000px未満で「文章→画像」の縦並び */
@media (max-width: 999.98px) {

  /* 横並び・左右反転を解除 */
  .showkase-about-outer .wp-block-columns.vk-cols--reverse {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  /* 各カラムを全幅に */
  .showkase-about-outer .wp-block-columns.vk-cols--reverse
  > .wp-block-column {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  /* 文章側：横並び用の左余白を解除 */
  .showkase-about-outer .wp-block-columns.vk-cols--reverse
  > .wp-block-column:first-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 画像側：半画面幅・はみ出し配置を解除 */
  .showkase-about-outer .wp-block-columns.vk-cols--reverse
  > .wp-block-column:nth-child(2) > .wp-block-cover {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ==================================================
13. モバイル：767px以下
================================================== */

@media (max-width: 767px) {

  /* KVメインコピー */
  .showkase-keyvisual h2.showkase-maincopy {
    font-style: italic;
    font-size: clamp(36px, 4vw, 70px) !important;
    line-height: 1.2em !important;
  }

  /* 紹介文：Outerの幅制限解除・外側余白なし（現行値を維持） */
  .showkase-about-outer.vk_outer-width-full.vk_outer-paddingLR-none
  > div > .vk_outer_container {
    max-width: none !important;
    width: 100%;
    margin-left: 0% !important;
    margin-right: 0% !important;
  }

  /* 紹介文側の外側余白を解除 */
  .showkase-about-outer .showkase-about-text {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 新着情報：左右の内側余白 */
  .wp-block-group#top-news {
    max-width: none !important;
    width: 100%;
    box-sizing: border-box;
    padding-left: 2% !important;
    padding-right: 2% !important;
  }

  .wp-block-group#top-news .vk_posts {
    max-width: none !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 特色カード・課題カード：左右の内側余白 */
  .showkase-card-compact > .vk_gridColumn_item_inner,
  .showkase-card-02 > .vk_gridColumn_item_inner {
    padding-left: 3% !important;
    padding-right: 3% !important;
  }

  /* 課題カード：2列表示の中央の隙間を半分に */
  .showkase-card-02:nth-child(odd) {
    padding-right: 7.5px !important;
  }

  .showkase-card-02:nth-child(even) {
    padding-left: 7.5px !important;
  }

  /* 課題カード：見出し */
  .showkase-card-02 h4 {
    font-size: 17px !important;
    line-height: 1.5;
  }

  /* プロフィール：本文の左右余白 */
  .showkase-profile .wp-block-media-text__content,
  .wp-block-media-text__content.showkase-profile {
    padding-left: 2% !important;
    padding-right: 2% !important;
  }

  /* 事例スライダー：カード外側の左右余白 */
  .vk_slider .vk_slider_item_container.container {
    max-width: none !important;
    width: 100%;
    box-sizing: border-box;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  /* 事例カード・企画カード：内部の左右余白 */
  .vk_slider .wp-block-group.showkase-white-card,
  .wp-block-group.showkase-card-03 {
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  /* モバイル：企画を「画像→文章」の順に統一 */
  .showkase-card-03 > .wp-block-columns
  > .wp-block-column:has(> .wp-block-image) {
    order: -1;
  }

  /* 会社概要：グループ内の左右余白 */
  .wp-block-group.showkase-card-04 {
    padding-left: 3% !important;
    padding-right: 3% !important;
  }

  /* 会社概要：テーブルの列幅を自動調整 */
  .wp-block-table.showkase-company table {
    width: 100%;
    table-layout: auto;
  }

  /* 項目名は折り返さず横一行に */
  .wp-block-table.showkase-company tr > :first-child {
    width: 6em;
    white-space: nowrap;
  }

  /* 共通の左右16pxを、モバイルでは8pxに上書き */
  .wp-block-table.showkase-company th,
  .wp-block-table.showkase-company td {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* 右列の長い文字列は折り返す */
  .wp-block-table.showkase-company tr > :nth-child(2) {
    overflow-wrap: anywhere;
  }

  /* CTA：電話案内を中央揃え */
  .wp-block-column.showkase-contact-phone,
  .wp-block-column.showkase-contact-phone :is(p, h2, h3, h4, div) {
    text-align: center !important;
  }

  /* 電話番号を囲むFlexグループも中央寄せ */
  .showkase-contact-phone .wp-block-group.is-layout-flex {
    justify-content: center !important;
  }
}

/* モバイル：メニュー・下部CTAのアイコンを約20％拡大 */
@media (max-width: 991.98px) {

  /* 右上のハンバーガーメニュー */
  #vk-mobile-nav-menu-btn {
    transform: scale(1.2);
    transform-origin: top right;
  }

  /* モバイル：開いたメニューの文字・余白を約20％拡大 */
  #vk-mobile-nav {
    padding: 54px 12px;
  }

  #vk-mobile-nav .vk-mobile-nav-menu-outer > ul > li > a {
    font-size: 1.2rem;
    padding: 0.7em 0.5em;
  }

  /* 下部CTA：お問い合わせ・電話するのアイコン */
  .mobile-fix-nav .mobile-fix-nav-menu li a .link-icon i,
  .mobile-fix-nav .mobile-fix-nav-menu li a .link-icon svg {
    font-size: 26.4px !important;
  }
}


/* PC：ページ内リンク移動後も固定ヘッダーの形を統一 */
@media (min-width: 992px) {

  /* スクロール後のヘッダー */
  body.scrolled #site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px !important;
    min-height: 0 !important;
    background-color: #000 !important;
    z-index: 1000;
    animation: none !important;
  }

  /* ロゴとメニューを高さ60pxの中央に配置 */
  body.scrolled #site-header .site-header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 60px !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* ロゴの余白・サイズを固定 */
  body.scrolled #site-header .site-header-logo {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    width: auto !important;
    height: var(--showkase-logo-scrolled) !important;
    margin: 0 !important;
    padding: 0 !important;
    background-image: none !important;
  }

  body.scrolled #site-header .site-header-logo a,
  body.scrolled #site-header .site-header-logo a > span {
    display: block;
    line-height: 0;
  }

  body.scrolled #site-header .site-header-logo img {
    display: block;
    width: auto !important;
    height: var(--showkase-logo-scrolled) !important;
    max-height: var(--showkase-logo-scrolled) !important;
    opacity: 1 !important;
  }

  /* メニューも中央に揃える */
  body.scrolled #site-header .global-nav {
    display: flex !important;
    align-items: center;
    height: 100%;
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  body.scrolled #site-header .global-nav-list {
    height: 100%;
    align-items: center;
  }

  /* WordPressログイン中の管理バー */
  body.admin-bar.scrolled #site-header {
    top: 32px;
  }
}

/* PC：メニュー下線を白に統一し、アニメーションを倍速に */
@media (min-width: 992px) {
  #site-header .global-nav-list > li::before {
    border-bottom-color: #fff !important;
    transition: width 0.25s ease-out !important;
  }
}

/* 紹介画像：横7：縦6（添付原稿どおり全画面幅で適用） */
.wp-block-cover.showkase-about-image {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 7 / 6 !important;
  padding: 0 !important;
}

.wp-block-cover.showkase-about-image > .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==================================================
14. イントロ・ページ切り替え
初期の幕の配置・非表示指定はPHP側のcritical CSSが担当
================================================== */

html.sk-transition-lock {
  overflow: hidden;
}

#sk-transition {
  box-sizing: border-box;
  will-change: transform;
}

#sk-transition.sk-intro #sk-intro-logo {
  display: block;
  object-fit: contain;
}

#sk-transition.sk-intro #sk-intro-skip {
  display: block;
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

#sk-intro-skip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  #sk-transition {
    display: none !important;
  }

  html.sk-transition-boot::before {
    display: none !important;
  }
}

/* ==================================================
15. 990px未満：KV画像切り替え・紹介背景を全幅に
================================================== */

@media (width < 990px) {
  .wp-block-cover.showkase-keyvisual {
    background-image: url("../img/hero_sp.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .wp-block-cover.showkase-keyvisual
  > img.wp-block-cover__image-background {
    display: none;
  }

  .vk-bg-offset:has(> .showkase-about-outer)
  > .vk-bg-offset-bg {
    --vk-width-bg-offset: 0px;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0;
    right: 0;
  }
}

/* フッターロゴ */
.logo_footer {
  display: block;
  width: 100%;
  margin-inline: auto;
  padding-top: 4em;
  text-align: center;
}

.logo_footer img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  margin-inline: auto;
}

/* フッター：SNSアイコンを拡大 */
.site-footer .wp-block-social-links .wp-social-link svg {
  width: 40px;
  height: 40px;
}

/* 紹介画像：元画像の比率で、端まで表示 */
.wp-block-cover.showkase-about-image {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 900 / 640 !important;
  padding: 0 !important;
}

.wp-block-cover.showkase-about-image
> img.wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

@media (max-width: 999px) {
  /* 紹介文：画像との間の下余白を解除 */
  .showkase-about-outer .wp-block-columns
  > .wp-block-column:first-child {
    padding-bottom: 0.5em !important;
  }

  /* 紹介画像：下に余白を追加 */
  .showkase-about-outer .showkase-about-image {
    margin-bottom: 3.0em !important;
  }
}

/* お問い合わせ：598px以下でラベルと入力欄の間を縮める */
@media (max-width: 599px) {
  /* ラベル側：下余白 */
  .page-id-1790 .wpcf7 .vk-table--mobile-block tr > td:first-child {
    padding-bottom: 4px !important;
  }

  /* 入力欄側：上余白 */
  .page-id-1790 .wpcf7 .vk-table--mobile-block tr > td:nth-child(2) {
    padding-top: 0 !important;
  }

  /* セル内の段落に付いている上下余白を解除 */
  .page-id-1790 .wpcf7 .vk-table--mobile-block td > p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* お問い合わせ：入力欄の文字を黒に */
.page-id-1790 .wpcf7 :is(
  input.wpcf7-text,
  input.wpcf7-number,
  input.wpcf7-date,
  textarea,
  select
) {
  color: #222 !important;
  -webkit-text-fill-color: #222 !important;
  caret-color: #222;
}

/* 投稿詳細：本文リンクの下線を常時表示 */
body.single-post .entry-body a,
body.single-post .entry-body a:hover,
body.single-post .entry-body a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* サイト全体：リンクの文字色変化を0.3秒でフェード */
a {
  transition: color 0.3s ease;
}

/* 動きを減らす設定ではフェードを省略 */
@media (prefers-reduced-motion: reduce) {
  a {
    transition-duration: 0s;
  }
}

/* TOP：指定した見出しを斜体に */
body.home .showkase-heading-italic {
  font-style: italic !important;
}

/* 投稿詳細：記事タイトルを斜体に */
body.single-post h1.entry-title {
  font-style: italic !important;
}

/* TOPキャスト紹介 タグ下のタイトル余白を調整 */
dl+h1, dl+h2, dl+h3, dl+h4, dl+h5, dl+h6, ol+h1, ol+h2, ol+h3, ol+h4, ol+h5, ol+h6, p+h1, p+h2, p+h3, p+h4, p+h5, p+h6, table+h1, table+h2, table+h3, table+h4, table+h5, table+h6, ul+h1, ul+h2, ul+h3, ul+h4, ul+h5, ul+h6{
  margin-top: 1em;
}
