/*
Theme Name: Lightning Child customize
Theme URI: https://tsunagu-mp.com/
Description: Lightning テーマのカスタマイズ用子テーマです。
Author: Tsunagu Marketing & Produce
Template: lightning
Version: 1.0
Text Domain: lightning-child
*/

/* -------------------------------------------------------------
   フォント設定
------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=EB+Garamond:wght@400;700&family=Cormorant+Garamond:wght@300;400;700&display=swap');

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

/* -------------------------------------------------------------
   フォント設定（About Usなどのタイトル部分）
------------------------------------------------------------- */
.font-mincho {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #000;
}

/* -------------------------------------------------------------
   共通ボタンカラーを変更
------------------------------------------------------------- */
a.btn,
button.btn,
input[type="submit"].btn {
  background-color: #330066;
  color: #fff;
  border: none;
}

a.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover {
  opacity: 0.5;
}

/* -------------------------------------------------------------
   ファーストビュー（トップページ）スタイル調整
------------------------------------------------------------- */
.hero-cover {
  height: 104vh !important;
  min-height: 104vh !important;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
}

body.home .wp-block-cover:first-of-type {
  margin-top: -80px;
  position: relative;
  z-index: 1;
}

/* PCサイズ（デフォルト） */
.hero-title {
  font-size: 3.4rem;
  font-weight: bold;
}

.wp-block-cover__inner-container {
  padding: 1.5rem;
}

/* タブレット向け */
@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

/* スマホ向け */
@media screen and (max-width: 767px) {
  .hero-title {
    font-size: 1.8rem;
  }
}

/* -------------------------------------------------------------
   ヘッダーのスタイル調整
------------------------------------------------------------- */
.site-header-logo {
  font-size: 1.4rem;
}

.site-header-logo a {
  color: #fff !important;
}

body.home .site-header {
  box-shadow: none !important;
  transition: none !important; /* transitionが影の表示を遅らせてしまう場合対策 */
}

body.home.header_scrolled .site-header,
body:not(.home) .site-header,
body:not(.home).header_scrolled .site-header {
  background-color: #330066 !important;
  transition: background-color 0.3s ease;
}

body.header_scrolled .site-header {
  padding-top: 0.7em;
  padding-bottom: 0.7em;
}

/* -------------------------------------------------------------
   カバーブロックのズームイン表示（ゆっくり）
------------------------------------------------------------- */
.zoom-in-cover {
  opacity: 0;
  transform: scale(1.015);
  animation: zoomInFade 3s cubic-bezier(0.3, 0.5, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

@keyframes zoomInFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* -------------------------------------------------------------
   ヒーローテキスト
------------------------------------------------------------- */


/* -------------------------------------------------------------
   ヘッダー　お問い合わせボタンカスタマイズ（PC）
------------------------------------------------------------- */
/* PCメニュー用 */
.global-nav li.menu-contact a {
  background-color: #fff;
  color: #330066 !important;
  padding: 0.1em 1.5em;
  margin-left: 1.4em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center; /* 縦中央揃え */
  justify-content: center; /* 横中央揃え */
  line-height: 0.9;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.global-nav li.menu-text a {
  color: #fff !important;
  padding: 0.8em 1.4em 0.4em 1.4em; /* 上 右 下 左 */
  display: inline-block;
}

/* -------------------------------------------------------------
   navメニュー（タブレット・スマホ）
------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --vk-mobile-nav-menu-btn-bg-src: url('/wp-content/themes/lightning/_g3/inc/vk-mobile-nav/package/images/vk-menu-btn-white.svg') !important;
  }

  :root {
    --vk-mobile-nav-menu-btn-close-bg-src: url('/wp-content/themes/lightning/_g3/inc/vk-mobile-nav/package/images/vk-menu-close-white.svg') !important;
  }

  .vk-mobile-nav-menu-btn {
    border: none !important;
    border-radius: 0 !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    background-color: #330066 !important;
    top: 8px;
  }

  .mobile-nav-btn-right .vk-mobile-nav-menu-btn,
  .vk-mobile-nav-menu-btn.position-right {
    right: 0px;
  }

  .site-header {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    height: auto !important;
  }

  .site-header-logo {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    margin-bottom: 0 !important;
  }

  .site-header-logo span {
    font-size: 1.2rem !important;
  }
}

.vk-mobile-nav ul,
.vk-mobile-nav ul li,
.vk-mobile-nav ul li a {
  text-align: center !important;
}

/* -------------------------------------------------------------
   About Us部分の設定
------------------------------------------------------------- */
.text-narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
  line-height: 1.8;
  text-align: justify;
}

@media (max-width: 1024px) {
  .text-narrow {
    width: 80%;
  }
}

/* -------------------------------------------------------------
   Our Service部分の設定
------------------------------------------------------------- */
/* タブレット・スマホでは1列に */
@media (max-width: 1024px) {
  .full-width-columns {
    flex-wrap: wrap !important;
  }

  .full-width-columns .wp-block-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
}

/* -------------------------------------------------------------
   Our Service - マーケティングビジネス タイトル装飾
------------------------------------------------------------- */
.service-heading {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.service-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #fff; /* 線の色 */
  margin: 0.5em auto 0;
}

.font-cormorant-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  text-align: center;
}

.service-heading-reverse {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.service-heading-reverse::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #330066; /* 線の色 */
  margin: 0.5em auto 0;
}

/* -------------------------------------------------------------
   サービス項目ボックス（横幅固定・高さ可変）
------------------------------------------------------------- */
.service-box {
  width: 440px;
  padding: 0.5em;
  border: 1px solid #fff; /* 白い線の枠 */
  text-align: center;
  box-sizing: border-box;
  background-color: transparent; /* 背景なし（透明） */
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .service-box {
    width: 80%;
  }
}

.service-box-reverse {
  width: 440px;
  padding: 0.5em;
  border: 1.1px solid #330066;
  text-align: center;
  box-sizing: border-box;
  background-color: transparent;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .service-box-reverse {
    width: 80%;
  }
}


/* -------------------------------------------------------------
   「Powered by」表記のみ削除（著作権表記は残す）
------------------------------------------------------------- */
.site-footer-copyright p:last-child {
  display: none;
}

/* -------------------------------------------------------------
   スマホだけ改行
------------------------------------------------------------- */
.br-sp {
  display: none;
}

@media (max-width: 767.98px) {
  .br-sp {
    display: inline;
  }
}

/* -------------------------------------------------------------
   PC・タブレットだけ改行
------------------------------------------------------------- */
.br-pc {
  display: none;
}

@media (min-width: 768px) {
  .br-pc {
    display: inline;
  }
}

/* -------------------------------------------------------------
   お問い合わせボタン　常に表示
------------------------------------------------------------- */
.floating-contact-btn {
  position: fixed;
  bottom: 70px;
  right: 15px;
  width: 100px;
  height: 100px;
  background-color: #51b4b6; /* くすんだ黄色 */
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 0.5em;
}

/* お問い合わせ　の行間を狭くする */
.floating-contact-btn span {
  line-height: 1.2;
  display: inline-block;
  text-align: center;
}

/* アイコン画像のサイズと位置調整 */
.floating-contact-btn img {
  width: 28px;
  height: auto;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .floating-contact-btn {
    width: 95px;
    height: 95px;
    font-size: 0.6rem;
    bottom: 70px;
  }

  .floating-contact-btn img {
    width: 30px;
    margin-bottom: 2px;
  }
}

.floating-contact-btn a {
  all: unset; /* 一旦リセット */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  color: #fff !important; /* ← ここで明示的に白指定 */
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}


/* -------------------------------------------------------------
   トップへ戻るボタンのカスタマイズ
------------------------------------------------------------- */
.page_top_btn {
  right: 0px !important;
  box-shadow: none !important;
  background-color: #330066 !important;
  background-size: 80% !important;
  width: 40px !important;
  height: 40px !important;
}

/* -------------------------------------------------------------
   View More ボタンのカスタマイズ
------------------------------------------------------------- */
.view-more-btn {
  display: inline-block;
  width: 400px;
  background-color: #000;
  color: #fff;
  padding: 10px 40px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  border-radius: 0;
  transition: opacity 0.3s;
  background-image: url('images/arrow-right.png');
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1.2em auto;
}

.wp-block-button .wp-block-button__link {
  background-color: #000;
}

.view-more-btn:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .view-more-btn {
    width: 60%;
    padding: 0px 40px;
  }
}

/* -------------------------------------------------------------
   View More ボタン小のカスタマイズ
------------------------------------------------------------- */
.view-more-small-btn {
  display: inline-block;
  width: auto;
  background-color: #000;
  color: #fff;
  padding: 1px 2.4em 3px 1em; /* 上 右 下 左 */
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  border-radius: 0;
  transition: opacity 0.3s;
  background-image: url('images/arrow-right.png');
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1.2em auto;
}

.view-more-small-btn a {
  line-height: 1;
}

.wp-block-button .wp-block-button__link {
  background-color: #000;
}

.view-more-small-btn:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .view-more-btn {
    width: 60%;
    padding: 0px 40px;
  }
}

/* -------------------------------------------------------------
   View More ボタン小　白　のカスタマイズ
------------------------------------------------------------- */
.view-more-small-btn-white {
  display: inline-block;
  width: auto;
  background-color: #fff; /* 白背景 */
  color: #000; /* 黒文字 */
  padding: 1px 2.4em 3px 1em; /* 上 右 下 左 */
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  border-radius: 0;
  transition: opacity 0.3s;
  background-image: url('images/arrow-right_white.png'); /* 黒矢印画像を使用 */
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1.2em auto;
}

.wp-block-button.view-more-small-btn-white .wp-block-button__link {
    background-color: #fff;
    color: #000;
}

.view-more-small-btn-white:hover {
  opacity: 0.7;
}

.view-more-small-btn-white a {
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------
   Partner部分のカスタマイズ
------------------------------------------------------------- */
.partner-subtitle {
  font-weight: 700;
  text-align: center;
  margin: 2em auto 1em auto;  /* ← 中央揃え */
  line-height: 1.4;
  font-family: 'Noto Sans JP', sans-serif;
  color: #330066;
  border: 1px solid #330066;
  padding: 0.6em 1.2em;
  display: block;  /* ← 中央揃えのためにブロック要素に */
  width: fit-content; /* 内容に合わせた幅 */
  border-radius: 999px;
}

/* -------------------------------------------------------------
   Company部分のカスタマイズ
------------------------------------------------------------- */
.company-description {
  max-width: 85%;
  margin: 0 auto;
  padding: 1em 0;
  line-height: 1.8;
  font-size: 1rem;
  box-sizing: border-box;
  text-align: justify;
}

@media (max-width: 768px) {
  .company-description {
    max-width: 80%;
  }
}

/* -------------------------------------------------------------
   お問い合わせボタンのカスタマイズ
------------------------------------------------------------- */
.contact-btn {
  display: inline-block;
  width: 400px;
  background-color: #330066;
  color: #fff;
  padding: 10px 40px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  background-image: url('images/arrow-right.png'); /* メールアイコン */
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1.2em auto;
  font-size: 1rem;
}

.wp-block-button.contact-btn .wp-block-button__link {
  background-color: transparent;
  color: #fff;
}

.contact-btn:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .contact-btn {
    width: 60%;
    padding: 0px 40px;
  }
}


/* -------------------------------------------------------------
   リンクは透過
------------------------------------------------------------- */
a:hover {
  opacity: 0.7 !important;
  transition: opacity 0.3s;
}

.custom-has-link:hover {
  transition: opacity 0.3s;
  opacity: 0.5;
}

/* -------------------------------------------------------------
   フッター
------------------------------------------------------------- */
.site-body-bottom,
.site-footer {
  background-color: #f6f4f8;
}

/* -------------------------------------------------------------
   フォーム用（Contact Form 7）
------------------------------------------------------------- */

/* フォーム全体のスタイル */
.contact-intro,
.wpcf7,
.wpcf7-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
  box-sizing: border-box;
}

/* ラベルのスタイル */
.wpcf7-form label {
  display: block;
  font-weight: bold;
  margin: 1em 0 0.3em;
}

/* 入力欄・セレクト・テキストエリア共通スタイル */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

/* セレクトボックスの矢印カスタム */
.wpcf7-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 1em center;
  background-size: 2em;
  padding-right: 2.5em;
}

/* 必須マーク */
.required {
  color: red;
  font-size: 0.9em;
  margin-left: 0.5em;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
  display: block;
  margin: 2em auto 0.5em;
  background-color: #000;
  color: #fff;
  border: none;
  padding: 0.8em 2em;
  font-size: 1em;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
  opacity: 0.5;
}

/* 最後の段落の余白調整 */
.wpcf7-form p:last-of-type {
  margin-bottom: -50px !important;
}

@media (max-width: 768px) {
  .wpcf7-form {
    width: 90%;
    padding: 0;
  }
}

/* 姓・名を横並びにする */
/* セイ・メイを横並びにする */
.cf7-row {
  display: flex;
  gap: 0.2em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.cf7-col {
  flex: 1;
  min-width: 100px;
  margin-bottom: 3.5em;
}

.contact-label {
  margin-bottom: 0.2em;
  font-weight: bold;
}

/* メールアドレス確認用のエラーメッセージの余白調整 */
p.cf7-email-error {
  margin-top: -20px;
}

/* -------------------------------------------------------------
   ページネーションの数字
------------------------------------------------------------- */
ul.page-numbers li span.page-numbers.current {
  color: #fff;
  background-color: #3f295a;
}

/* -------------------------------------------------------------
   次の記事・前の記事の矢印的なもの
------------------------------------------------------------- */
.next-prev-prev.card-horizontal .card-body {
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: flex-start;
}

.next-prev-prev.card-horizontal .card-body:before {
  font-family: "Font Awesome 5 Free";
  content: "\f053";
  font-weight: bold;
  position: absolute;
  font-size: 1.5rem;
  color: #ccc;
  top: calc(50% - 0.75rem);
  left: 1rem;
}

.next-prev-prev.card-horizontal.vk_post .card-body .vk_post_title a {
  display: block;
  padding: 1.5rem 1.0rem 1.5rem 3.5rem;
}

.next-prev-next.card-horizontal .card-body {
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}

.next-prev-next.card-horizontal .card-body:before {
  font-family: "Font Awesome 5 Free";
  content: "\f054";
  font-weight: bold;
  position: absolute;
  font-size: 1.5rem;
  color: #ccc;
  top: calc(50% - 0.75rem);
  right: 1rem;
}

.next-prev-next.card-horizontal.vk_post .card-body .vk_post_title a {
  display: block;
  padding: 1.5rem 3.5rem 1.5rem 1.0rem;
}

/* -------------------------------------------------------------
   投稿ページ・・・パートナー紹介のレイアウト設定
------------------------------------------------------------- */
/* グリッドレイアウト */
.post-type-archive-case .vk_posts,
.post-type-archive-partner .vk_posts,
.post-type-archive-blog .vk_posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  row-gap: 40px;
}

.post-type-archive-case .vk_post,
.post-type-archive-partner .vk_post,
.post-type-archive-blog .vk_post {
  background-color: #fff;
  border: none;
  padding: 10px;
  box-sizing: border-box;
}

/* タブレット：2カラム */
@media (max-width: 1024px) {
  .post-type-archive-case .vk_posts,
  .post-type-archive-partner .vk_posts,
  .post-type-archive-blog .vk_posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ：1カラム */
@media (max-width: 600px) {
  .post-type-archive-case .vk_posts,
  .post-type-archive-partner .vk_posts,
  .post-type-archive-blog .vk_posts {
    grid-template-columns: 1fr;
  }
}

/* カード縦レイアウト */
.post-type-archive-case .vk_post,
.post-type-archive-partner .vk_post,
.post-type-archive-blog .vk_post {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  background-color: #fff;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* アイキャッチ */
.post-type-archive-case .vk_post .media-img,
.post-type-archive-partner .vk_post .media-img,
.post-type-archive-blog .vk_post .media-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: none;
}

/* テキストエリア */
.post-type-archive-case .vk_post .vk_post_body,
.post-type-archive-partner .vk_post .vk_post_body,
.post-type-archive-blog .vk_post .vk_post_body {
  padding: 1em;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-type-archive-case .vk_post .media-body,
.post-type-archive-partner .vk_post .media-body,
.post-type-archive-blog .vk_post .media-body {
  width: 100%;
}

.post-type-archive-case .vk_post_excerpt .media-text,
.post-type-archive-partner .vk_post_excerpt .media-text,
.post-type-archive-blog .vk_post_excerpt .media-text {
  text-align: justify;
}

.post-type-archive-case .vk_post-btn-display .vk_post_btnOuter,
.post-type-archive-partner .vk_post-btn-display .vk_post_btnOuter,
.post-type-archive-blog .vk_post-btn-display .vk_post_btnOuter {
  position: static;
  margin-top: 1em;
  text-align: right;
}

.post-type-archive-case .entry-body > .vk_posts > .media.vk_post-col-sm-12,
.post-type-archive-case .entry-body > .vk_posts > .media.vk_post-col-lg-12,
.post-type-archive-case .main-section > .vk_posts > .media.vk_post-col-sm-12,
.post-type-archive-case .main-section > .vk_posts > .media.vk_post-col-lg-12,
.post-type-archive-partner .entry-body > .vk_posts > .media.vk_post-col-sm-12,
.post-type-archive-partner .entry-body > .vk_posts > .media.vk_post-col-lg-12,
.post-type-archive-partner .main-section > .vk_posts > .media.vk_post-col-sm-12,
.post-type-archive-partner .main-section > .vk_posts > .media.vk_post-col-lg-12,
.post-type-archive-blog .entry-body > .vk_posts > .media.vk_post-col-sm-12,
.post-type-archive-blog .entry-body > .vk_posts > .media.vk_post-col-lg-12,
.post-type-archive-blog .main-section > .vk_posts > .media.vk_post-col-sm-12,
.post-type-archive-blog .main-section > .vk_posts > .media.vk_post-col-lg-12 {
  padding: 0 !important;
}

.post-type-case p,
.post-type-partner p,
.post-type-blog p {
  text-align: justify;
}

/* TOPページ用 最新事例カードグリッド */
.case-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .case-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 85%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .case-card-grid {
    grid-template-columns: 1fr;
    width: 85%;
  }
}

/* 各カード */
.case-card {
  background: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* アイキャッチ画像 */
.case-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .case-card-image img {
    height: 140px;
  }
}

@media (max-width: 768px) {
  .case-card-image img {
    height: 120px;
  }
}

/* 本文部分 */
.case-card-content {
  padding: 1em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-card-title {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 0.5em;
  line-height: 1.4;
}

.case-card-title a {
  text-decoration: none;
  color: #000;
}

.case-card-title a:hover {
  opacity: 0.6;
}

.case-card-excerpt {
  font-size: 0.9em;
  color: #000;
  margin-top: auto;
  text-align: justify;
}

/* -------------------------------------------------------------
   パートナー紹介ページの説明文用css
------------------------------------------------------------- */
.custom-partner-message {
  max-width: 700px;
  margin: 0 auto 3em auto;
  text-align: justify;
  font-weight: bold;
}

@media (max-width: 768px) {
  .custom-partner-message {
    width: 90%;
    max-width: 100%;
  }
}

/* -------------------------------------------------------------
   各ページ・お知らせ（news アーカイブ）
------------------------------------------------------------- */
.post-type-archive-news .vk_post_imgOuter.media-img {
  display: none;
}

.post-type-archive-news .vk_posts {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-type-news p {
  text-align: justify;
}

/* TOPに表示される最新お知らせ */
.latest-news li {
  border-bottom: 1px solid #ccc;
  padding: 1.2em 0;
  margin: 0;
  list-style: none;
}

.latest-news {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
}

.latest-news .news-date {
  display: inline-block;
  color: #000;
  font-size: 0.85em;
  padding: 3px 8px;
  margin-right: 0.1em;
  font-weight: 500;
}

.latest-news a {
  color: #000;
}

.news-category {
  display: inline-block;
  background-color: #330066;
  color: #fff;
  font-size: 0.75em;
  font-weight: 500;
  padding: 3px 8px 5px 8px; /* 上 右 下 左 */
  margin-right: 1em;
  line-height: 1;
  position: relative;
  top: -2px;
}

.news-title {
  display: inline;
}

@media (max-width: 768px) {
  .news-title {
    display: block;
    margin-left: 0.6em;
    margin-top: 0.3em;
  }
}

/* 更新日（Update）を非表示にする */
.entry-meta-item-updated {
  display: none !important;
}

/* カテゴリ「更新情報」の場合、写真を表示しない */
.tax-category-news.term-news-updates .vk_post_imgOuter.media-img {
  display: none;
}

.tax-category-news.term-news-updates .site-body-container.container {
  max-width: 700px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   View More ニュース用のボタンのカスタマイズ
------------------------------------------------------------- */
.view-more-news-btn {
  display: inline-block;
  width: auto;
  background-color: #fff; /* 白背景 */
  color: #000; /* 黒文字 */
  padding: 1px 2.4em 3px 1em; /* 上 右 下 左 */
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  border-radius: 0;
  transition: opacity 0.3s;
  background-image: url('images/arrow-right_white.png'); /* 黒矢印画像を使用 */
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1.2em auto;
}

.wp-block-button.view-more-news-btn .wp-block-button__link {
    background-color: #fff;
    color: #000;
}

.view-more-news-btn:hover {
  opacity: 0.7;
}

.view-more-news-btn a {
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------
   Contact部分の設定
------------------------------------------------------------- */
.contact-text-narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
  line-height: 1.8;
  text-align: justify;
}

@media (max-width: 1024px) {
  .contact-text-narrow {
    width: 80%;
  }
}

.contact-image-narrow {
  max-width: 700px;
  margin: 2em auto; /* 上下に少し余白を追加 */
  display: block;
  width: 100%;
  padding: 0 1em;
  height: auto;
}

@media (max-width: 1024px) {
  .contact-image-narrow {
    width: 75%;
  }
}

/* -------------------------------------------------------------
   会社案内ページのカスタマイズ
------------------------------------------------------------- */

/* ツナグのメッセージ */
.tsunagu-message {
  text-align: center;
  color: #330066;
  font-weight: 600;
  line-height: 2;
  font-size: 1.4rem;
  margin: 1em auto 3em auto;
}

/* リード文 */
.company-lead {
  max-width: 700px;
  margin: 0 auto 2em auto;
  font-size: 1rem;
  line-height: 2;
  text-align: justify;
  padding: 0 1em;
}

/* セクション見出し（下線付き） */
.company-subtitle {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
  margin: 3rem 0 1.5em 0;
}

.company-subtitle::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: #330066;
  margin: 0.8em auto 0 auto;
}

/* 会社概要表（カラム） */
.company-outline {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
}

/* カラムブロックの上下余白調整 */
.compact-columns {
  margin: 0.5em 0 !important;
}

.compact-columns.is-layout-flex {
  gap: 1px !important;
  margin-top: 0.8em !important;
  margin-bottom: 0.8em !important;
}

/* 代表プロフィールセクション */
.profile-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
}

.profile-section ul li,
.profile-section p {
  text-align: justify;
}

/* ---------------------
   レスポンシブ対応
---------------------- */
@media (max-width: 768px) {
  .tsunagu-message {
    font-size: 1.2rem;
  }

  .company-lead,
  .company-outline,
  .profile-section {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 0 1em;
  }

  .profile-section img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* -------------------------------------------------------------
   サービス紹介ページのカスタマイズ
------------------------------------------------------------- */
.business-subtitle {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.5em;
  margin-top: 3rem;
}

.business-subtitle::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: #330066;
  margin: 0.8em auto 0 auto;
}

.business-list {
  max-width: 400px;
  margin: 0 auto;
  padding: 0 1em;
}

@media (max-width: 768px) {
  .business-list {
    width: 90%;
    max-width: none;
  }
}

/* -------------------------------------------------------------
   フェードイン
------------------------------------------------------------- */
.fade-in-section {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

.fade-in-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   検索フォームのカスタマイズ
------------------------------------------------------------- */
/* 検索フォーム全体 */
.widget_search form,
.search-form {
  display: flex;
  gap: 0.5em;
  max-width: 500px;
  margin: 2em auto;
  justify-content: center;
}

/* 入力フィールド */
.search-form input[type="search"],
.widget_search input[type="search"] {
  flex: 1;
  padding: 0.8em;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* ボタン */
.search-form input[type="submit"],
.widget_search input[type="submit"] {
  background-color: #330066;
  color: #fff;
  border: none;
  padding: 0.8em 1.5em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* -------------------------------------------------------------
   reCAPTCHAバッジ表示位置を変更
------------------------------------------------------------- */
.grecaptcha-badge {
  width: 70px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  left: 0px !important;
  bottom: 0 !important;
}

.grecaptcha-badge:hover {
  width: 256px !important;
}