/*
Theme Name: QuadCom
Description: Quad Competence LLC custom theme（2026-10-18 に子テーマから独自テーマへ。土台は css/base.css・inc/base-theme.php）
Author: Quad Competence LLC
Version: 2026.10.18.1
Text Domain: quadcom
*/

/* === 横スクロール防止 === */
html,
body {
  overflow-x: clip;
  max-width: 100vw;
  touch-action: pan-y;
}

#sp-tips-popover {
  position: fixed;
  contain: layout;
}

/* ============================
   モダン化ページ共通: site-header マージンリセット
   (CSS分割で個別に書かれていたものを集約)
   ============================ */
.page-id-10457 .site-header,
.page-id-9901 .site-header,
.page-id-17512 .site-header,
.page-id-10403 .site-header,
.page-id-12774 .site-header,
.page-id-15555 .site-header,
.page-id-10948 .site-header,
.page-id-12730 .site-header,
.page-id-426 .site-header,
.page-id-9900 .site-header,
.page-id-15297 .site-header,
.page-id-3639 .site-header,
.page-id-4713 .site-header,
body.single-post .site-header {
  margin-bottom: 0 !important;
}

/* ============================
   モバイルメニュー修正（ドロワー対応）
   ============================ */

@media (max-width: 1100px) {

  /* ヘッダーのメイン部分にあるデスクトップ用メニューのみ非表示 
     （ドロワー内のメニューは表示したままにする） */
  .main-header-content .main-navigation,
  .main-header-original>.main-header-content nav.main-navigation {
    display: none !important;
  }

  /* ドロワー内のメニューは強制表示 */
  .drawer-navigation-content,
  .drawer-navigation-content nav,
  .drawer-navigation-content .main-navigation,
  .drawer-navigation-content .menu-main-container,
  .drawer-navigation-content ul.menu,
  .drawer-navigation-content .menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* ドロワー内のul（メニュー本体）は縦並び */
  .drawer-navigation-content ul.menu,
  .drawer-navigation-content .menu-main-container>ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  /* ドロワー内メニュー項目のデザイン */
  .drawer-navigation-content ul.menu>li,
  .drawer-navigation-content ul.menu .menu-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    position: relative;
  }

  .drawer-navigation-content ul.menu>li:last-child {
    border-bottom: none;
  }

  .drawer-navigation-content ul.menu>li>a,
  .drawer-navigation-content ul.menu .menu-item>a {
    display: block !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: transparent !important;
    text-decoration: none !important;
    white-space: normal !important;
    letter-spacing: .02em !important;
    line-height: 1.5 !important;
  }

  .drawer-navigation-content ul.menu>li>a::after,
  .drawer-navigation-content ul.menu>li>a::before {
    display: none !important;
  }

  .drawer-navigation-content ul.menu>li>a:hover {
    background: rgba(29, 67, 130, .06) !important;
    color: #1D4382 !important;
  }

  /* 現在のページ */
  .drawer-navigation-content ul.menu>li.current-menu-item>a,
  .drawer-navigation-content ul.menu>li.current_page_item>a,
  .drawer-navigation-content ul.menu>li.current-menu-parent>a {
    color: #1D4382 !important;
    background: rgba(29, 67, 130, .04) !important;
  }

  /* サブメニューはインライン展開（ドロップダウンではない） */
  .drawer-navigation-content ul.menu .sub-menu {
    /* display: block !important; */
    position: static !important;
    /* opacity: 1 !important; */
    /* visibility: visible !important; */
    transform: none !important;
    /* pointer-events: auto !important; */
    box-shadow: none !important;
    border: none !important;
    background: rgba(29, 67, 130, .03) !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    list-style: none !important;
  }

  .drawer-navigation-content ul.menu .sub-menu>li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, .04);
  }

  .drawer-navigation-content ul.menu .sub-menu>li:last-child {
    border-bottom: none;
  }

  .drawer-navigation-content ul.menu .sub-menu>li>a {
    display: block !important;
    padding: 10px 32px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    background: transparent !important;
  }

  .drawer-navigation-content ul.menu .sub-menu>li>a:hover {
    background: rgba(29, 67, 130, .04) !important;
    color: #1D4382 !important;
  }

  /* ドロップダウン矢印（親項目の）を右に寄せる */
  .drawer-navigation-content ul.menu .dropdown-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 10px !important;
    background: transparent !important;
    border: none !important;
    padding: 4px 10px !important;
    cursor: pointer;
  }
}

/* ============================
   共通: qc-hero セクション (About Us / Corporate 共通)
   ============================ */

.qc-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  min-height: 85vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: #ffffff;
  margin: 0;
}

.qc-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 80%, rgba(29, 67, 130, .35) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(59, 130, 246, .2) 0%, transparent 50%),
    linear-gradient(180deg,
      #ffffff 0%,
      #f8fafc 15%,
      #dbeafe 35%,
      #60a5fa 60%,
      #1D4382 80%,
      #0a1532 100%);
  z-index: 0;
}

.qc-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: linear-gradient(180deg, transparent 40%, black 65%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 40%, black 65%, black 95%, transparent 100%);
}

.qc-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 100px;
  width: 100%;
}

.qc-hero__eyebrow {
  font-size: .85em;
  letter-spacing: .4em;
  font-weight: 700;
  color: #1D4382;
  margin-bottom: 32px;
  padding-left: 60px;
  position: relative;
}

.qc-hero__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 44px;
  height: 1px;
  background: #1D4382;
}

.qc-hero__title {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 40px;
  font-family: 'Helvetica Neue', 'Arial Black', sans-serif;
  color: #0f172a;
  border: none !important;
  padding: 0 !important;
}

.qc-hero__title-accent {
  background: linear-gradient(135deg, #1D4382 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /*  font-style: italic; */
}

.qc-hero__lead {
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.8;
  color: #1D4382;
  max-width: 600px;
  margin: 0;
  font-weight: 600;
  text-shadow: none;
}


@media (max-width: 900px) {
  .qc-hero {
    min-height: 75vh;
  }

  .qc-hero__inner {
    padding: 40px 24px 80px;
  }
}

@media (max-width: 600px) {
  .qc-hero__eyebrow {
    padding-left: 40px;
  }

  .qc-hero__eyebrow::before {
    width: 28px;
  }
}

/* アイキャッチのサブタイトル */
.jumbotron-content .subheader {
  color: #b0c4de;
}

/* サブタイトル */
.sub_title {
  font-weight: 800;
  color: #696969;
}

.qc-home-hero__bgimage-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* フェードインアニメーション */
.jumbotron-overlay,
.slick-slider,
.home-header-overlay,
.concept,
.wp-block-latest-posts__featured-image {
  animation: fadeIn 1.8s cubic-bezier(0.33, 1, 0.68, 1) 1 forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ヘッダーカラー */
.home-header-overlay {
  background-color: rgba(0, 0, 0, .2) !important;
}

/* ヘッダーとヒーローの間隔：全ページで TOP にそろえる
   - 親テーマの .site-header の border-bottom（1px #eee）は消す
   - 固定ページのヒーローは、ヘッダーから 28px（幅900px以下は18px）離す。
     .entry-content > :first-child { margin-top: 0 } に負けないよう .entry-content から指定する
   - 手術室DX（page-or-dx.php）はテンプレート内の .hero
   - QuadWAN は本文の #quadwan-page の中に .qw-hero がある */
.site-header {
  border-bottom: 0;
}

.entry-content > :is(.qc-service-hero, .qc-hero),
.entry-content > #quadwan-page > .qw-hero,
.page-template-page-or-dx .hero {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .entry-content > :is(.qc-service-hero, .qc-hero),
  .entry-content > #quadwan-page > .qw-hero,
  .page-template-page-or-dx .hero {
    margin-top: 18px;
  }
}

/* 1カラムのページ幅を調整 */
.site-content {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 1em;
}

/* ロゴの位置を調整 */
@media screen and (min-width: 980px) {
  .site-logo img {
    margin-bottom: 0;
  }
}

/* ヘッダー透かし */
.main-header {
  background-color: rgba(255, 255, 255, 0.5);
  padding-top: 20px;
  padding-bottom: 5px;
}

/* TOPナビゲーション */
@media screen and (min-width: 782px) {
  .main-navigation {
    position: relative;
    left: .5em;
    right: 1em;
    padding-top: 40px;
  }
}

.main-navigation a:hover {
  background: linear-gradient(transparent 95%, #4e454a 0%);
}

/* ============================
   ヘッダー全体の余白調整
   （ロゴ〜ナビ間の間隔を詰める）
   ============================ */

/* PCサイズ：ヘッダー内の縦方向余白を縮める */
@media screen and (min-width: 980px) {

  /* ヘッダー全体の上下パディングを抑える */
  .site-header,
  header.site-header {
    padding-top: 20px !important;
    padding-bottom: 0 !important;
  }

  /* サイトブランディング（ロゴエリア）の下余白をリセット */
  .site-branding,
  .site-logo,
  .custom-logo-link {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* ロゴ画像自体の下余白を再度確実にリセット */
  .site-logo img,
  .custom-logo,
  .site-branding img,
  .custom-logo-link img {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: block;
    vertical-align: middle;
  }

  /* ナビゲーション上の余白を縮める */
  .main-navigation,
  nav.main-navigation,
  #site-navigation,
  .primary-navigation {
    margin-top: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 16px !important;
  }
}

/* 2カラムのメインページ幅を調整 */
@media screen and (min-width: 782px) {
  .has-sidebar .content-area {
    width: 70%;
  }
}

@media screen and (min-width: 782px) {
  .has-sidebar .sidebar-area {
    width: 25%;
  }
}

/* モバイル時にヘッダータイトルの改行を削除 */
@media screen and (max-width: 782px) {
  h2.home-header-title br {
    display: none;
  }
}

/* PC時にヘッダーテキストの改行を追加 */
@media screen and (min-width: 782px) {
  h2.has-text-align-center br {
    display: none;
  }
}

/* カバーデザイン */
.cover-overray::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: url("/wp-content/uploads/2023/01/bg-s.png") repeat;
}

/* お問い合わせボタン*/
.top-bar {
  /*position: absolute;
	right: 0px;
	padding: 10px 20px;*/
  background-color: #4e454a !important;
  padding: 20px;
}

/*.top-bar-main li:before {
	color: #fff;
	font-weight: bold;
}*/
/* ハンバーガーボタン位置 */
.drawer-hamburger {
  margin-top: 30px;
  width: 30px !important;
}

.drawer-hamburger:after {
  display: block;
  content: "MENU";
  width: 60px;
  margin-top: 15px;
  margin-left: -15px;
  font-size: 1.1rem;
  color: #000;
}

/* メッセージ文字 */
.message {
  font-size: 1.5rem;
}

.page-title {
  position: relative;
  padding: 2px 9px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, .1) !important;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: .02em;
}

.page-title:before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, #1D4382 0%, #60a5fa 100%);
  border-radius: 2px;
}

/* 全ページ共通のフッター（inc/site-footer.php・2026-10-16 無印良品を手本に小さくシンプルに） */
.site-footer .qc-footer {
  background: #f3f3f3;
  color: #333;
  font-size: 13px;
  line-height: 1.6;
}

.qc-footer__main,
.qc-footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.qc-footer__main {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.qc-footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.qc-footer__logo img {
  display: block;
  width: 150px;
  height: auto;
}

.qc-footer__sns,
.qc-footer__cols,
.qc-footer__cols .sub-menu,
.qc-footer__legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qc-footer__sns {
  display: flex;
  gap: 16px;
}

.qc-footer__sns a {
  display: block;
  width: 24px;
  height: 24px;
  color: #222;
  transition: opacity .2s ease;
}

.qc-footer__sns svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.qc-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
}

.qc-footer__heading {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #888;
}

.qc-footer__cols .sub-menu li + li {
  margin-top: 12px;
}

.qc-footer a {
  color: #333;
  text-decoration: none;
}

.qc-footer a:hover,
.qc-footer__sns a:hover {
  color: #1D4382;
  opacity: .8;
}

.qc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 40px;
  font-size: 12px;
}

.qc-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.qc-footer__copy {
  margin: 0;
  color: #333;
}

@media (max-width: 767px) {
  .qc-footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .qc-footer__brand {
    flex-direction: row;
    align-items: center;
  }

  .qc-footer__cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }

  .qc-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 100px; /* 画面下の固定メニューに隠れないように */
  }
}

/* フッタークレジット消す */
.site-credit {
  display: none !important;
}

/* フッターメニュー色変更 */
.site-copyright,
.site-bottom a {
  color: #000;
}

/* TOP最新記事サムネイル */
.wp-block-latest-posts__featured-image {
  width: 100%;
  display: block;
  transition: .5s ease-in-out;
}

.wp-block-latest-posts__featured-image:hover {
  transform: scale(1.1, 1.1);
}

/* サイト説明 */
.site-description {
  text-align: center;
  font-size: 0.7em;
}



/* スマホ・タブレット（サイドバーが記事の下に回る 979px 以下）：記事を読み終えた人が次に読む記事を先に（2026-10-16）
   記事の下の「おすすめ記事」は出さず、サイドバーの関連記事を一番上に。続けて人気・ニュース・製品、
   そのあとに検索・カテゴリー・キーワード、最後に Created by と X。
   見出しだけのブロック（カテゴリー #block-13・キーワード #block-7）は、それぞれの本体の直前に並べる */
@media (max-width: 979px) {
  .single-post .qc-related {
    display: none;
  }

  #secondary .normal-sidebar {
    display: flex;
    flex-direction: column;
  }

  #secondary .normal-sidebar > * {
    order: 50;
  }

  #secondary .qc-side-list--related { order: 1; }
  #secondary .qc-side-list--ranking { order: 2; }
  #secondary .qc-side-list--news { order: 3; }
  #secondary .qc-side-banners { order: 4; }
  #secondary .widget_search { order: 5; }
  #secondary #block-13 { order: 6; }
  #secondary .widget_categories { order: 7; }
  #secondary #block-7 { order: 8; }
  #secondary .widget_tag_cloud { order: 9; }
  #secondary .qc-created-by { order: 60; }
  #secondary .qc-x-side { order: 70; }

  /* 余白だけのブロック（空の段落・スペーサー）は並べ替えると間が空くので出さない */
  #secondary #block-34,
  #secondary #block-36 {
    display: none;
  }

  /* カテゴリーのタイルは横長にして縦の長さを抑える */
  .qc-cat-tile a {
    aspect-ratio: 16 / 9;
  }
}

/* サイドバーのカテゴリー：写真付きのタイル 2列（inc/sidebar-terms.php・2026-10-16） */
.qc-cat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.qc-cat-tiles .qc-cat-tile {
  margin: 0;
  padding: 0;
}

/* 親テーマの .widget ul の margin に負けないよう、サイドバーの中では指定を強める（下のキーワードとの間を空ける） */
#secondary ul.qc-cat-tiles {
  margin: 0 0 32px;
}

.qc-cat-tile a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 10px;
  background-color: #1D4382;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* 写真の下側を暗くして文字を読みやすく。押すときは紺に寄せる */
.qc-cat-tile a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, .05) 30%, rgba(15, 23, 42, .75) 100%);
  content: '';
  transition: background .3s ease;
}

.qc-cat-tile a:hover,
.qc-cat-tile a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .2);
}

.qc-cat-tile a:hover::before,
.qc-cat-tile a:focus-visible::before {
  background: linear-gradient(180deg, rgba(29, 67, 130, .35) 0%, rgba(29, 67, 130, .85) 100%);
}

.qc-cat-tile__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.qc-cat-tile__count {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .06em;
  opacity: .85;
}

.qc-cat-tile.is-current a {
  outline: 3px solid #1D4382;
  outline-offset: 2px;
}

/* サイト内検索の結果ページ（search.php・inc/search.php・2026-10-16） */
.qc-search__header {
  margin-bottom: 28px;
}

.qc-search__count {
  margin: 8px 0 16px;
  font-size: 14px;
  color: #64748b;
}

.qc-search__form {
  display: flex;
  max-width: 560px;
  margin: 0 0 18px;
  background: #fff;
  border: 2px solid #1D4382;
  border-radius: 999px;
  overflow: hidden;
}

.qc-search__form:focus-within {
  box-shadow: 0 0 0 4px rgba(29, 67, 130, .2);
}

.qc-search__form input[type="search"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 11px 18px;
  font-size: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.qc-search__form button {
  flex: none;
  margin: 0;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: #1D4382;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.qc-search__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qc-search__tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid #c9d6ec;
  border-radius: 999px;
  background: #fff;
  color: #1D4382;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.qc-search__tabs a span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3fb;
  font-size: 12px;
}

.qc-search__tabs a.is-current,
.qc-search__tabs a:hover {
  background: #1D4382;
  border-color: #1D4382;
  color: #fff;
}

.qc-search__tabs a.is-current span,
.qc-search__tabs a:hover span {
  background: rgba(255, 255, 255, .2);
}

.qc-search__section {
  margin-bottom: 40px;
}

.qc-search__heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, .1);
  font-size: 1.2em;
}

.qc-search__heading span {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

#main ul.qc-search-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main .qc-search-terms li {
  margin: 0;
  padding: 0;
  border: 0;
}

/* 検索結果のページでは、上に検索欄があるのでサイドバーの検索は出さない */
.search #secondary .widget_search {
  display: none;
}

.qc-search-term {
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid #c9d6ec;
  border-left: 4px solid #1D4382;
  border-radius: 8px;
  background: #f5f8fd;
  color: #0f172a;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.qc-search-term:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(29, 67, 130, .14);
}

.qc-search-term__label {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 4px;
  background: #1D4382;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.qc-search-term__name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.qc-search-term__desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.qc-search__more {
  margin: 14px 0 0;
  text-align: right;
}

.qc-search__more a {
  font-size: 14px;
  font-weight: 700;
  color: #1D4382;
}

.qc-search__more a::after {
  content: ' →';
}

mark.qc-search-mark {
  padding: 0 2px;
  background: linear-gradient(transparent 55%, #fde68a 55%);
  color: inherit;
}

@media (max-width: 767px) {
  #main ul.qc-search-terms {
    grid-template-columns: 1fr;
  }
}

/* ブログのサイドバーの記事の一覧（人気の記事・関連記事・ニュース）と製品のバナー（inc/sidebar-posts.php・2026-10-16） */
.qc-side-list {
  margin-bottom: 32px;
}

#secondary ul.qc-side-list__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qc-side-list__items li {
  margin: 0;
  padding: 0;
}

.qc-side-list__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #0f172a;
  text-decoration: none;
}

.qc-side-list__thumb {
  position: relative;
  flex: none;
  width: 76px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #eef3fb;
}

.qc-side-list__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.qc-side-list__item:hover .qc-side-list__thumb img {
  transform: scale(1.08);
}

.qc-side-list__rank {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 22px;
  padding: 3px 0;
  border-radius: 0 0 8px 0;
  background: #1D4382;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.qc-side-list__items.is-ranked li:nth-child(1) .qc-side-list__rank {
  background: #D4A017;
}

.qc-side-list__items.is-ranked li:nth-child(2) .qc-side-list__rank {
  background: #9AA5B1;
}

.qc-side-list__items.is-ranked li:nth-child(3) .qc-side-list__rank {
  background: #B87333;
}

.qc-side-list__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.qc-side-list__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: color .2s ease;
}

.qc-side-list__item:hover .qc-side-list__name {
  color: #1D4382;
}

.qc-side-list__date {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: .04em;
}

#secondary .qc-side-banners ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qc-side-banners li {
  margin: 0;
  padding: 0;
}

.qc-side-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 84px;
  padding: 0 18px;
  overflow: hidden;
  border-radius: 10px;
  background-color: #1D4382;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}

.qc-side-banner::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 23, 42, .8) 0%, rgba(15, 23, 42, .35) 70%, rgba(15, 23, 42, .1) 100%);
  content: '';
}

.qc-side-banner::after {
  position: absolute;
  right: 16px;
  bottom: 12px;
  content: '→';
  font-weight: 700;
}

.qc-side-banner:hover,
.qc-side-banner:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .2);
}

/* サイドバーの a の文字色の指定に負けないよう、文字は白で指定し直す */
#secondary a.qc-side-banner,
#secondary a.qc-side-banner span {
  color: #ffffff;
  opacity: 1;
}

.qc-side-banner__name {
  padding-right: 24px;
}

.qc-side-banner__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  opacity: .8;
}

.qc-side-banner__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

/* カテゴリーウィジェット */
ul.wp-block-categories a,
.menu-blog-menu-container a {
  display: inline-block;
  padding: .3em 1em;
  line-height: 1;
  background-color: #e0ffff;
  border-radius: .8em;
  font-size: 0.9em;
}

ul.wp-block-categories :hover,
.menu-blog-menu-container :hover {
  text-decoration: underline;
  text-decoration-color: #6a5acd;
}

ul.wp-block-categories a:before,
.menu-blog-menu-container a:before {
  font-family: 'Material Icons';
  content: '\e8b6';
  vertical-align: middle;
  padding-right: 3px;
}

/* 3ポイントタイトル */
h3.mpoint {
  padding: 0.5em 1em;
  margin: 2em 0;
  font-weight: bold;
  color: #808080;
  background: #FFF;
  border: solid 3px #808080;
  border-radius: 10px;
}

h3.mpoint p {
  margin: 0;
  padding: 0;
}

/* ランキングタイトル */
.post_body h2,
.widget h2 {
  font-size: large;
  padding: 0.5em 0;
  color: #010101;
  border-bottom: solid 3px #516ab6;
}

/* モバイル用トグルメニュー */
.navbar-toggler:after {
  content: "MENU";
  font-size: 10px;
  font-family: Verdana, sans-serif;
  position: absolute;
  bottom: -10px;
  right: 8px;
}

/*ブログスライドタイトル配置*/
.featured-entry-title {
  text-align: left;
}

/*アーカイブH1*/
.archive .ttl_h1,
.search .ttl_h1 {
  position: relative;
  padding: 1rem 2rem 1.2rem;
  border-bottom: 1px solid rgba(15, 23, 42, .1);
  color: #0f172a;
  font-weight: 800;
  letter-spacing: .02em;
}

.archive .ttl_h1:before,
.search .ttl_h1:before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, #1D4382 0%, #60a5fa 100%);
  border-radius: 2px;
}

/*ウィジェットタイトル*/
.widget_block h2,
.widget .ttl span,
.widget-title {
  position: relative;
  padding: 2px 9px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .1) !important;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: .02em;
}

.widget_block h2:before,
.widget .ttl span:before,
.widget-title:before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, #1D4382 0%, #60a5fa 100%);
  border-radius: 2px;
}

/*吹き出し見出し*/
.sh06 {
  position: relative;
  padding: .5em .7em;
  border-radius: 10px;
  background-color: #2589d0;
  color: #fff;
}

.sh06::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 30px;
  width: 0;
  height: 0;
  border: 11px solid transparent;
  border-top: 11px solid #2589d0;
}

/*シンプルアンダーライン見出し*/
.sh05 {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0 .4em .2em;
  border-bottom: 3px solid #2589d0;
  background-color: #ffffff;
  color: #333333;
}

/*背景文字見出し1*/
.sh04 {
  position: relative;
  padding-top: 30px;
  font-size: 26px;
  color: #4e454a;
  border-bottom: 1px solid #4e454a;
}

.sh04 span {
  position: relative;
  z-index: 2;
}

.sh04::before {
  content: attr(data-en);
  position: absolute;
  top: 0px;
  left: 0;
  color: #dcdcdc;
  font-size: 40px;
  text-transform: uppercase;
  z-index: 1;
}

/*スタイリッシュ見出し（ribbon進化形）*/
h2.ribbon {
  position: relative;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  color: #0f172a;
  text-align: left;
  padding: 0 0 20px;
  margin: 2.5em 0 1.2em;
  border-bottom: 1px solid rgba(15, 23, 42, .1);
  letter-spacing: .02em;
  line-height: 1.4;
}

h2.ribbon::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, #1D4382 0%, #60a5fa 100%);
  border-radius: 2px;
}

/*背景文字見出し2*/
h2.sh02 {
  position: relative;
  padding-top: 50px;
  padding-left: 30px;
  font-size: 26px;
}

h2.sh02 span {
  position: relative;
  z-index: 2;
}

h2.sh02::before {
  content: attr(data-en);
  position: absolute;
  transform: rotate(-5deg);
  top: -20px;
  left: 0;
  color: rgba(101, 175, 198, 0.6);
  font-size: 80px;
  font-weight: 400;
  font-family: luxus-brut, cursive;
  font-style: italic;
}

/* 数字見出し */
h2.sh03,
h3.sh03 {
  position: relative;
  font-size: 26px;
  text-align: center;
}

h2.sh03::before,
h3.sh03::before {
  content: attr(data-number);
  display: block;
  margin-bottom: 30px;
  color: #fc5185;
  font-size: 30px;
}

h2.sh03::after,
h3.sh03::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 20px;
  background-color: #fc5185;
}

/* 角くるん h2 */
h2.gb {
  position: relative;
  padding: 0.25em 1em;
  text-align: center;
  border: solid 2px black;
  border-radius: 3px 0 3px 0;
}

h2.gb:before,
h2.gb:after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: solid 2px black;
  border-radius: 50%;
}

h2.gb:after {
  top: -12px;
  left: -12px;
}

h2.gb:before {
  bottom: -12px;
  right: -12px;
}

/* チェック付き h3 */
h3.check {
  position: relative;
  padding-left: 1.2em;
  line-height: 1.4;
  font-size: 1.4em;
}

h3.check:before {
  content: '\e86c';
  font-family: 'Material Icons';
  font-weight: 900;
  position: absolute;
  font-size: 1em;
  left: 0;
  top: 0;
  color: #5ab9ff;
  font-weight: 900;
}

/* ポイント付き h3 */
h3.point {
  position: relative;
  padding: 1rem 3rem;
  border: 3px solid #00aeef;
  font-size: 23px !important;
  color: #5371CD;
}

h3.point:after {
  content: '\e79a';
  font-family: 'Material Icons';
  position: absolute;
  top: -1.6rem;
  left: .5rem;
  background: #fff;
  font-size: 30px;
  color: #00aeef;
  margin: 4px 0px;
  display: inline-block;
}

/* カテゴリー用h3 / h4 */
h3.cate,
h4.cate {
  position: relative;
  padding: 0 0 10px;
  margin: 2em 0 1em;
  font-size: clamp(18px, 1.8vw, 22px) !important;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  letter-spacing: .02em;
  line-height: 1.5;
  text-align: left;
}

h3.cate:after,
h4.cate:after {
  position: absolute;
  content: '';
  display: block;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #1D4382 0%, #60a5fa 100%);
  border-radius: 2px;
  border-bottom: none;
}

/* 見出し重要POINT */
h2.assima,
h3.assima {
  position: relative;
  line-height: 1.4;
  margin: 2em 0 0.5em;
  font-size: 26px;
  font-weight: 900;
  color: #EA526A;
  padding: 2px 5px 3px 70px;
  border-bottom: solid 3px #EA526A;
}

h2.assima:before,
h3.assima:before {
  content: '';
  display: inline-block;
  background-image: url(/wp-content/uploads/2023/02/point_mark2.png);
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  width: 63px;
  height: 52px;
  left: 0.2em;
  top: 32%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* ウィジェットタイトル配置変更 */
.widget {
  margin-top: -5px;
  margin-bottom: 1rem !important;
}

/* ウィジェットテキスト */
.recent-posts-text {
  font-size: 0.8em;
}

/* タグクラウドデザイン */
/* 2026-10-16 押したくなる見た目に：白地に紺の線の札・頭に「#」・記事数は右の小さな丸。押すと紺地に白文字 */
.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wp-block-tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 8px 7px 12px;
  line-height: 1;
  text-decoration: none;
  color: #1D4382 !important;
  background: #ffffff;
  border: 1px solid #c9d6ec;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wp-block-tag-cloud a::before {
  content: '#';
  color: #7a93c2;
  font-weight: 700;
}

.wp-block-tag-cloud .tag-link-count {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef3fb;
  color: #1D4382;
  font-size: 11px;
  text-align: center;
}

.wp-block-tag-cloud a:hover,
.wp-block-tag-cloud a:focus-visible {
  color: #ffffff !important;
  background: #1D4382;
  border-color: #1D4382;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(29, 67, 130, .22);
}

.wp-block-tag-cloud a:hover::before,
.wp-block-tag-cloud a:focus-visible::before {
  color: #c9d6ec;
}

.wp-block-tag-cloud a:hover .tag-link-count,
.wp-block-tag-cloud a:focus-visible .tag-link-count {
  background: rgba(255, 255, 255, .2);
  color: #ffffff;
}

/* 記事下タグクラウドデザイン*/
.list-inline a:before {
  font-family: 'Material Icons';
  content: '\e8b6';
  vertical-align: middle;
  padding-right: 3px;
}

ul.tag a {
  display: inline-block;
  margin: 0 .1em .6em 0;
  padding: .6em;
  line-height: 1;
  text-decoration: none;
  color: #000 !important;
  background-color: #e0ffff;
  border-radius: .8em;
  font-size: .8em !important;
}

/* 箇条書きデザインb */
ul.listb,
ol.listb {
  padding: 0;
  position: relative;
}

ul.listb li,
ol.listb li {
  color: #077bbb;
  border-left: solid 6px #077bbb;
  background: #f1f8ff;
  margin-bottom: 10px;
  line-height: 1.5;
  padding: 0.5em;
  list-style-type: none !important;
}

/* プロフィールリスト */
ul.prof {
  padding: 0.3em 1em;
  position: relative;
}

ul.prof li {
  line-height: 1.5;
  padding: 0.5em 0;
  list-style-type: none;
}

ul.prof li:before {
  content: '\e86c';
  font-family: 'Material Icons';
  position: absolute;
  color: skyblue;
  left: -0.5em;
}

/* 箇条書きデザインc */
ol.listc {
  counter-reset: number;
  list-style-type: none !important;
  padding: 0;
}

ol.listc li {
  position: relative;
  padding: 0.5em;
  line-height: 1.5em;
  background: #f1f8ff;
  border-left: solid 35px #5371CD;
  margin-bottom: 5px;
}

ol.listc li:before {
  position: absolute;
  counter-increment: number;
  content: counter(number);
  display: inline-block;
  color: white;
  font-family: 'Avenir', 'Arial Black', 'Arial', sans-serif;
  font-weight: bold;
  font-size: 15px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  left: -35px;
  width: 35px;
  height: 1em;
  line-height: 1;
  text-align: center;
}

/* 箇条書きデザインkakoi */
ul.kakoi,
ol.kakoi {
  border-top: solid #1e366a 1px;
  border-bottom: solid #1e366a 1px;
  padding: 0.5em 0 0.5em 1.5em;
}

ul.kakoi li,
ol.kakoi li {
  line-height: 1.5;
  padding: 0.5em 0;
}

/*箇条書きデザインa*/
ul.lista {
  border: solid 2px skyblue;
  border-radius: 5px;
  padding: 0.5em 1em 0.5em 2.3em;
  position: relative;
}

ul.lista li {
  line-height: 1.5;
  padding: 0.5em 0;
  list-style-type: none;
}

ul.lista li:before {
  content: '\e7cd';
  font-family: 'Material Icons';
  position: absolute;
  left: 1em;
  color: skyblue;
}

/*箇条書きデザイン-チェック*/
ul.check {
  border: none;
  padding: 0.5em 1em 0.5em 2.3em;
  position: relative;
}

ul.check li {
  line-height: 1.5;
  padding: 0.5em 0;
  list-style-type: none !important;
  font-weight: bold;
}

ul.check li:before {
  font-family: 'Material Icons';
  content: "\e876";
  position: absolute;
  left: 1em;
  color: #ffb03f;
}

/*箇条書きデザインd*/
ol.listd li {
  line-height: 1.5;
  padding: 0.3em 1em;
  list-style-type: none !important;
  counter-increment: cnt;
}

ol.listd li::before {
  content: "(" counter(cnt) ") ";
}

ol.listd li {
  list-style-type: none;
  counter-increment: cnt;
}

ol.listd li::before {
  content: "(" counter(cnt) ")";
  display: inline-block;
  margin-left: -3em;
  width: 3em;
}

/* 箇条書きデザイン注釈リスト */
ul.asterisk li {
  list-style-type: none;
  text-indent: -1em;
  font-size: 12px;
}

ul.asterisk li:before {
  display: inline;
  content: "※";
}

/* インサイトポイントボックス*/
.box26 {
  position: relative;
  margin: 2em 0;
  padding: 0.9em 1em;
  border: solid 3px #5371CD;
  border-radius: 8px;
}

.box26:after {
  content: '\e87c';
  font-family: 'Material Icons';
  position: absolute;
  display: inline-block;
  top: -18px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  font-size: 30px;
  background: #FFF;
  color: #5371CD;
  font-weight: bold;
}

.box26 p {
  margin: 0;
  padding: 0;
}

/* クエッションボックス*/
.box262 {
  position: relative;
  margin: 2em 0;
  padding: 1em 1em;
  border: solid 3px #63B0C7;
  border-radius: 8px;
}

.box262:after {
  content: '\e8fd';
  font-family: 'Material Icons';
  position: absolute;
  display: inline-block;
  top: -18px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  font-size: 30px;
  background: #FFF;
  color: #63B0C7;
  font-weight: bold;
}

.box262 p {
  margin: 0;
  padding: 0;
}

/* カギカッコボックス*/
.box19 {
  position: relative;
  padding: 0.25em 1em;
}

.box19:before,
.box19:after {
  content: '';
  width: 20px;
  height: 30px;
  position: absolute;
  display: inline-block;
}

.box19:before {
  border-left: solid 1px #5767bf;
  border-top: solid 1px #5767bf;
  top: 0;
  left: 0;
}

.box19:after {
  border-right: solid 1px #5767bf;
  border-bottom: solid 1px #5767bf;
  bottom: 0;
  right: 0;
}

.box19 p {
  margin: 0;
  padding: 0;
}

/* イメージボックス*/
.box23 {
  position: relative;
  margin: 2em 0 2em 40px;
  padding: 8px 15px;
  background: #fff0c6;
  border-radius: 30px;
}

.box23:before {
  content: '\ef4a';
  font-family: 'Material Icons';
  position: absolute;
  font-size: 15px;
  left: -40px;
  bottom: 0;
  color: #fff0c6;
}

.box23:after {
  content: '\ef4a';
  font-family: 'Material Icons';
  position: absolute;
  font-size: 23px;
  left: -23px;
  bottom: 0;
  color: #fff0c6;
}

.box23 p {
  margin: 0;
  padding: 0;
}

/* 下吹き出しボックス*/
.box24 {
  position: relative;
  padding: 0.5em 0.7em;
  margin: 2em 0;
  background: #dcdcdc;
  color: #696969;
  font-weight: bold;
}

.box24:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 30px;
  border: 15px solid transparent;
  border-top: 15px solid #dcdcdc;
  width: 0;
  height: 0;
}

.box24 p {
  margin: 0;
  padding: 0;
}

/* タイムライン作成*/
.timeline>li {
  overflow: hidden;
  margin: 0;
  position: relative;
}

.timeline-date {
  width: 110px;
  float: left;
  margin-top: 3px;
  font-weight: bold;
  color: #077BBB;
}

.timeline-content {
  width: 60%;
  float: left;
  border-left: 3px #e5e5d1 solid;
  padding-left: 30px;
}

.timeline-content:before {
  content: "";
  width: 12px;
  height: 12px;
  background: #3cb371;
  position: absolute;
  left: 106px;
  top: 10px;
  border-radius: 100%;
}

.timeline-content span {
  font-weight: bold;
  color: #077BBB;
}

@media screen and (max-width: 440px) {
  .timeline-content {
    border: none;
  }

  .timeline-date {
    width: auto;
  }

  .timeline-content:before {
    display: none;
  }
}

/***　CJテーブル　***/
.table-responsive {
  overflow-x: scroll;
  width: 100%;
}

table.cj {
  border-collapse: collapse;
  margin: 0 auto;
  padding: 0;
  table-layout: fixed;
}

table.cj tr {
  background-color: #e6f2f5;
  padding: .35em;
  border-bottom: 2px solid #fff;
  text-align: center;
}

table.table.cj thead th {
  border: 1px solid !important;
  text-align: center;
  color: #fff;
  background-color: #167F92;
}

table.table.cj thead td {
  background-color: #fff;
  border: none;
}

table.cj th,
table.cj td {
  padding: 1em 10px 1em 1em;
  border-right: 2px solid #fff;
}

table.cj th.cj {
  font-size: .85em;
}

table.cj tbody th {
  background: #78bbc7;
  color: #fff;
}

.txt {
  text-align: left;
  font-size: .85em;
}

.txt_f {
  text-align: center;
  font-weight: bold;
  font-size: 1em;
}

@media screen and (max-width: 782px) {
  table.cj {
    border: 0;
    width: 100%;
  }

  table.cj th {
    background-color: #167F92;
    display: block;
    border-right: none;
  }

  table.cj thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table.cj tr {
    display: block;
    margin-bottom: .625em;
  }

  table.cj td {
    border-bottom: 1px solid #bbb;
    display: block;
    font-size: .8em;
    text-align: right;
    position: relative;
    padding: .625em .625em .625em 4em;
    border-right: none;
  }

  table.cj td::before {
    content: attr(data-label);
    font-weight: bold;
    position: absolute;
    left: 10px;
    color: #167F92;
  }

  table.cj td:last-child {
    border-bottom: 0;
  }

  table.cj tbody th {
    color: #fff;
  }
}

/* 投稿サムネイルエフェクト*/
.list .post_links {
  border: 1px solid #dcdcdc;
}

.attachment-quadcom-post-thumbnail-medium {
  display: block;
  transition: 0.5s;
}

.attachment-quadcom-post-thumbnail-medium:hover {
  transform: scale(1.1, 1.1);
}

.list .post_ttl {
  font-size: 1em;
}

/* 3pointサムネイルエフェクト*/
.top_point {
  display: block;
  transition: 0.5s;
}

.top_point:hover {
  transform: scale(1.1, 1.1);
}

/* ダウンロード、MemberでAuthorを表示しない  */
.hentry.category-freedl.post .author-profile,
.single-wpdmpro .author-profile,
.hentry.category-member.post .author-profile {
  display: none;
}

/* 用語集でAuthorを表示しない  */
.glossary.type-glossary.status-publish .author-profile {
  display: none;
}

/* アーカイブタイトル*/
.archive .ttl_h1 {
  font-size: 1.5em;
}

/* Q-オフィスウォッチの一覧のヒーロー：左にこころと吹き出し、右に少し小さめのオフィス画面（inc/office-watch-hero.php） */
.qc-ow-hero {
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  margin: 0 0 28px;
}
.qc-ow-hero__kokoro {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qc-ow-hero__bubble {
  position: relative;
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: #101a2b;
  background: #fff7fa;
  border: 2px solid #f4b6c9;
  border-radius: 16px;
}
.qc-ow-hero__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 18px;
  height: 18px;
  background: #fff7fa;
  border-right: 2px solid #f4b6c9;
  border-bottom: 2px solid #f4b6c9;
  transform: translateX(-50%) rotate(45deg);
}
.qc-ow-hero .qc-ow-hero__face {
  display: block;
  width: 78%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 18px rgba(224, 69, 123, .2);
}
.qc-ow-hero__office img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
/* ヒーローの下の社員の一覧（顔・名前・役割）。顔はマウスを乗せると大きくなる。パートナーは点線の枠と印 */
.qc-ow-staff {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 20px 4px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.qc-ow-staff .qc-ow-staff__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.4;
}
.qc-ow-staff .qc-ow-staff__item::before {
  display: none;
}
.qc-ow-staff .qc-ow-staff__face {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 8px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
  transform-origin: center bottom;  /* 上へ大きくし、下の名前に重ねない */
  transition: transform .25s ease, box-shadow .25s ease;
}
.qc-ow-staff .qc-ow-staff__face:hover {
  z-index: 2;
  transform: scale(1.6);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
}
.qc-ow-staff .qc-ow-staff__item--partner .qc-ow-staff__face {
  border: 2px dashed #7aa7d8;
}
.qc-ow-staff__name {
  font-size: 14px;
  font-weight: 700;
  color: #101a2b;
}
.qc-ow-staff__role {
  font-size: 11px;
  color: #5b6b80;
  word-break: keep-all;  /* 折り返すのは役割の <wbr>（「ネットワーク／担当」など）だけ */
}
.qc-ow-staff__partner {
  margin-top: 4px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #2f6cb3;
  background: #eaf2fc;
  border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
  .qc-ow-staff .qc-ow-staff__face {
    transition: none;
  }
}
@media screen and (max-width: 900px) {
  .qc-ow-staff {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }
}
@media screen and (max-width: 600px) {
  .qc-ow-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .qc-ow-staff {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* スマホ：こころと吹き出しを横に並べ、オフィス画面はその下 */
  .qc-ow-hero__kokoro {
    flex-direction: row-reverse;
    align-items: center;
    gap: 16px;
  }
  .qc-ow-hero .qc-ow-hero__face {
    flex: 0 0 auto;
    width: 92px;
  }
  .qc-ow-hero__bubble {
    margin: 0;
    font-size: 13px;
  }
  .qc-ow-hero__bubble::after {
    left: -11px;
    bottom: auto;
    top: 50%;
    border-right: 0;
    border-bottom: 2px solid #f4b6c9;
    border-left: 2px solid #f4b6c9;
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ヘッダーカラー*/
.logo_text .ttl,
.logo_text .subttl {
  background-color: #63B0C7;
  color: #fff;
}

/* イメージキャプション*/
.wp-block-image {
  font-size: small;
}

/* ブルー装飾*/
.under_blue {
  background: linear-gradient(transparent 70%, #a7d6ff 70%);
}

/* シンプルボックス*/
.box17 {
  margin: 2em 0;
  position: relative;
  padding: 0.5em 1.5em;
  border-top: solid 2px black;
  border-bottom: solid 2px black;
}

.box17:before,
.box17:after {
  content: '';
  position: absolute;
  top: -10px;
  width: 2px;
  height: -webkit-calc(100% + 20px);
  height: calc(100% + 20px);
  background-color: black;
}

.box17:before {
  left: 10px;
}

.box17:after {
  right: 10px;
}

.box17 p {
  margin: 0;
  padding: 0;
}

/*会社概要デザイン*/
table.corpo {
  width: 100%;
  border-collapse: collapse;
}

table tr.corpo {
  border-bottom: solid 2px white;
}

table tr.corpo:last-child {
  border-bottom: none;
}

table th.corpo {
  position: relative;
  text-align: left;
  width: 30%;
  background-color: #63b0c7;
  color: white;
  text-align: center;
  padding: 10px 0;
}

table th.corpo:after {
  display: block;
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  top: calc(50% - 10px);
  right: -10px;
  border-left: 10px solid #63b0c7;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

table td.corpo {
  text-align: left;
  width: 75%;
  text-align: left;
  background-color: #eee;
  padding: 10px 0;
}

/*パンくずリスト*/
.breadcrumbs {
  font-size: 14px;
}

/* 記事ページ（位置は pages/single-post.css）とカテゴリー・タグの一覧（archive.php・2026-10-18）：小さな灰色の文字・下線なし */
body.single-post .breadcrumbs,
body.archive .breadcrumbs {
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: .04em;
}
body.archive .breadcrumbs {
  margin: 0 0 16px;
}
body.single-post .breadcrumbs a,
body.archive .breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color .2s ease;
}
body.single-post .breadcrumbs a:hover,
body.archive .breadcrumbs a:hover {
  color: #1D4382;
}

.qc-breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.qc-breadcrumb__item + .qc-breadcrumb__item::before {
  content: ">";
  margin: 0 .5em;
  color: inherit;
  opacity: .7;
}

.cat-links a {
  background: #63b0c7;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
}



/* ============================
   Modern Card Design
   (What's New & Business TIPs 共通)
   ============================ */

@media (max-width: 860px) {

  ul.qc-whatsnew.wp-block-latest-posts,
  .qc-whatsnew .wp-block-latest-posts,
  .qc-whatsnew .wp-block-post-template,
  .qc-whatsnew ul {
    grid-template-columns: 1fr;
  }
}

/* --- レイアウト：.qc-card 専用（縦積み） --- */
.qc-card ul.wp-block-latest-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- カード共通：ビジュアル --- */
ul.qc-whatsnew.wp-block-latest-posts>li,
.qc-card ul.wp-block-latest-posts>li,
.qc-whatsnew li,
.qc-card li {
  position: relative;
  width: auto;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  /* 親テーマの#eee線を打消 */
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 6px 16px rgba(15, 23, 42, .06);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1),
    box-shadow .4s cubic-bezier(.4, 0, .2, 1);
  isolation: isolate;
}

.qc-whatsnew li:hover,
.qc-card li:hover {
  transform: translateY(-8px);
  box-shadow:
    0 14px 28px rgba(15, 23, 42, .08),
    0 32px 56px rgba(29, 67, 130, .18);
}

/* サムネイル画像コンテナ */
.qc-whatsnew .wp-block-latest-posts__featured-image,
.qc-card .wp-block-latest-posts__featured-image {
  float: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.qc-whatsnew .wp-block-latest-posts__featured-image a,
.qc-card .wp-block-latest-posts__featured-image a {
  display: block;
  padding: 0;
  margin: 0;
  position: relative;
}

/* 画像本体（Business TIPsの max-width:225px インラインstyleを打消） */
.qc-whatsnew img,
.qc-card img {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: none;
  transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}

.qc-whatsnew li:hover img,
.qc-card li:hover img {
  transform: scale(1.08);
}

/* グラデーションオーバーレイ */
.qc-whatsnew .wp-block-latest-posts__featured-image::after,
.qc-card .wp-block-latest-posts__featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(15, 23, 42, 0) 35%,
      rgba(15, 23, 42, .18) 70%,
      rgba(15, 23, 42, .55) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .4s ease;
}

/* フロートタグ（What's New は "NEWS"、Business TIPs は "TIPS"、TOKYO POP STUDIO のブログは "BLOG"） */
.qc-whatsnew .wp-block-latest-posts__featured-image::before,
.qc-card .wp-block-latest-posts__featured-image::before {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  font-size: .68em;
  font-weight: 700;
  letter-spacing: .14em;
  color: #1D4382;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}

.qc-whatsnew .wp-block-latest-posts__featured-image::before {
  content: 'NEWS';
}

.qc-card .wp-block-latest-posts__featured-image::before {
  content: 'TIPS';
}

.qc-card--tps .wp-block-latest-posts__featured-image::before {
  content: 'BLOG';
}

/* TOKYO POP STUDIO 欄：見出しの背景文字（data-en）はカードの幅に合わせて縮め、1行に収める（2026-10-02）
   「SINGER / SONGWRITER」が 40px では2行になるため。上限は .sh04::before と同じ 40px */
.qc-card--tps {
  container-type: inline-size;
}

.qc-card--tps .sh04::before {
  white-space: nowrap;
  font-size: min(40px, 7.5cqi);
}

/* 記事一覧（/blog/・カテゴリー・タグ・検索）：カードの抜粋は出さない（親テーマ content-2-column.php の .entry-summary・2026-10-16） */
.loop-wrapper .entry-summary {
  display: none;
}

/* Q-Tips のページ（inc/qtips.php・2026-10-16）：ヘッダーのロゴを Q-Tips に、ブログのサイドバーの一番上に「Created by」と会社のロゴ */
.site-logo--qtips img {
  display: block;
  width: 150px;
  height: auto;
}

.qc-created-by {
  margin-bottom: 32px;
  padding: 18px 20px;
  background: #f5f7fa;
  border-radius: 12px;
}

.qc-created-by__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #64748b;
}

.qc-created-by img {
  display: block;
  width: 140px;
  height: auto;
}

@media (max-width: 767px) {
  .site-logo--qtips img {
    width: 110px;
  }
}

/* サイドバーのサイト内検索：用語集のキーワード検索（pages/glossary.css）と同じ見た目を、サイドバーの幅に合わせて小さく（2026-10-16） */
#secondary .wp-block-search {
  padding: 16px;
  background: #eef3fb;
  border: 1px solid #c9d6ec;
  border-radius: 8px;
}

#secondary .wp-block-search__inside-wrapper {
  display: flex;
  align-items: stretch;
  padding: 0;
  background: #ffffff;
  border: 2px solid #1D4382;
  border-radius: 999px;
  overflow: hidden;
}

#secondary .wp-block-search__inside-wrapper:focus-within {
  box-shadow: 0 0 0 4px rgba(29, 67, 130, .2);
}

#secondary .wp-block-search__input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 6px 10px 16px;
  font-size: 16px; /* iOS で入力時に拡大されないよう 16px 以上 */
  color: #0f172a;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

#secondary .wp-block-search__button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  margin: 0;
  padding: 0;
  color: #ffffff;
  background: #1D4382;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

#secondary .wp-block-search__button:hover {
  background: #16346a;
}

#secondary .wp-block-search__button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* TOKYO POP STUDIO 欄・Q-Tips 欄：ロゴの行と説明文の行（TOP の本文の wp:html・2026-10-16。
   横並びだと窮屈なので 2026-10-18 に別の行へ。ロゴを上に置く） */
.qc-tps-intro,
.qc-section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 56px;
}

.qc-tps-intro p,
.qc-section-intro p {
  margin: 0;
}

.qc-tps-intro__logo,
.qc-section-intro__logo {
  order: -1;
  display: block;
  transition: opacity .25s ease;
}

.qc-tps-intro__logo:hover,
.qc-section-intro__logo:hover {
  opacity: .75;
}

.qc-tps-intro__logo img,
.qc-section-intro__logo img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .qc-tps-intro,
  .qc-section-intro {
    margin-bottom: 32px;
  }

  .qc-tps-intro__logo img,
  .qc-section-intro__logo img {
    width: 240px;
  }
}

/* Q-Tips 欄のロゴは控えめに（TOKYO POP STUDIO のロゴより小さく・2026-10-16 ひろゆきさん指示） */
.qc-section-intro .qc-section-intro__logo img {
  width: 160px;
}

@media (max-width: 767px) {
  .qc-section-intro .qc-section-intro__logo img {
    width: 120px;
  }
}

/* TOKYO POP STUDIO 欄：見出しの下の YouTube チャンネルのバナー（各チャンネルのバナーの中央・2026-10-16）。
   Q-オフィスウォッチ欄の頭のこころの X のバナー（.qc-tps-yt--x・2026-10-17）も同じ作り */
.qc-card--tps .qc-tps-yt,
.qc-card .qc-tps-yt--x {
  display: block;
  margin: 0 0 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 16px rgba(15, 23, 42, .08);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s cubic-bezier(.4, 0, .2, 1);
}

.qc-card--tps .qc-tps-yt:hover,
.qc-card .qc-tps-yt--x:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .1), 0 20px 40px rgba(29, 67, 130, .14);
}

.qc-card .qc-tps-yt img {
  aspect-ratio: 1100 / 301;
}

.qc-card .qc-tps-yt--x img {
  aspect-ratio: 1100 / 363;
}

.qc-card--tps .qc-tps-yt__label,
.qc-card .qc-tps-yt--x .qc-tps-yt__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

.qc-card--tps .qc-tps-yt__label::before,
.qc-card .qc-tps-yt--x .qc-tps-yt__label::before {
  content: '';
  flex: none;
  width: 18px;
  height: 13px;
  border-radius: 3px;
  background: #FF0000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M6.4 3.2v4.6l4-2.3z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

.qc-card .qc-tps-yt--x .qc-tps-yt__label::before {
  width: 16px;
  height: 16px;
  background: #0f1419 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z' fill='%23fff'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.qc-card--tps .qc-tps-yt__label::after,
.qc-card .qc-tps-yt--x .qc-tps-yt__label::after {
  content: '→';
  margin-left: auto;
  color: #1D4382;
}

/* TOP の Q-Tips のカテゴリーの列：見出しの横に「新着」のバッジ（新しい記事の一覧だと分かるように・2026-10-17）
   ランキング・用語集・TOKYO POP STUDIO の列には付けない */
.qc-card:not(.qc-card--rank):not(.qc-card--glossary):not(.qc-card--tps) .sh04 > span::after {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e0473e;
  color: #fff;
  content: '新着';
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  vertical-align: middle;
}

/* よく読まれている記事・用語集の新着（inc/top-cards.php・2026-10-16）
   ランキングは画像のタグを順位に、用語集は写真の下に画像なしの用語を並べる */
.qc-card--rank .wp-block-latest-posts__featured-image::before {
  content: attr(data-rank);
  top: 10px;
  left: 12px;
  width: 58px;
  height: 51px;
  padding: 15px 0 0;
  box-sizing: border-box;
  text-align: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Cpath d='M5 34 3 10l11 9L24 4l10 15 11-9-2 24z' fill='%23D4A017' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='5' y='34' width='38' height='6' rx='2' fill='%23D4A017' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='3' cy='9' r='2.6' fill='%23fff'/%3E%3Ccircle cx='24' cy='4' r='2.6' fill='%23fff'/%3E%3Ccircle cx='45' cy='9' r='2.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  border: none;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .35));
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .4);
}

.qc-card--rank li:nth-child(2) .wp-block-latest-posts__featured-image::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Cpath d='M5 34 3 10l11 9L24 4l10 15 11-9-2 24z' fill='%239AA5B1' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='5' y='34' width='38' height='6' rx='2' fill='%239AA5B1' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='3' cy='9' r='2.6' fill='%23fff'/%3E%3Ccircle cx='24' cy='4' r='2.6' fill='%23fff'/%3E%3Ccircle cx='45' cy='9' r='2.6' fill='%23fff'/%3E%3C/svg%3E");
}

.qc-card--rank li:nth-child(3) .wp-block-latest-posts__featured-image::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Cpath d='M5 34 3 10l11 9L24 4l10 15 11-9-2 24z' fill='%23B87333' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='5' y='34' width='38' height='6' rx='2' fill='%23B87333' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='3' cy='9' r='2.6' fill='%23fff'/%3E%3Ccircle cx='24' cy='4' r='2.6' fill='%23fff'/%3E%3Ccircle cx='45' cy='9' r='2.6' fill='%23fff'/%3E%3C/svg%3E");
}

.qc-card--glossary .wp-block-latest-posts__featured-image::before {
  content: 'LIBRARY';
}

/* li の下の余白（.qc-card li の padding-bottom は ul>li の padding:0 に負けるため、ここで指定） */
.qc-card--glossary ul.wp-block-latest-posts > li {
  padding-bottom: 22px;
}

.qc-card--glossary .qc-glossary-term {
  padding-top: 8px;
}

.qc-card--glossary .qc-glossary-term::after {
  content: none;
}

.qc-card--glossary p.qc-glossary-count,
.qc-card--glossary p.qc-glossary-summary {
  padding: 6px 22px 0;
}

.qc-card--glossary p.qc-glossary-summary {
  -webkit-line-clamp: 2;
}

.qc-card--glossary li > a.qc-glossary-more {
  padding: 8px 22px 0;
  font-size: .78em;
  font-weight: 700;
  color: #1D4382;
}

.qc-card--glossary li > a.qc-glossary-more::after {
  content: ' →';
}

/* 日付：エディトリアル風 */
.qc-whatsnew time,
.qc-card time,
.qc-whatsnew .wp-block-latest-posts__post-date,
.qc-card .wp-block-latest-posts__post-date {
  display: block;
  margin: 20px 22px 20px;
  padding: 0 0 0 28px;
  background: none;
  border-radius: 0;
  font-size: .7em;
  font-weight: 600;
  letter-spacing: .12em;
  /*  color: #94a3b8; */
  text-transform: uppercase;
  position: relative;
}

.wp-block-latest-posts.qc-whatsnew .wp-block-latest-posts__post-excerpt {
  display: none;
}

.qc-whatsnew time::before,
.qc-card time::before,
.qc-whatsnew .wp-block-latest-posts__post-date::before,
.qc-card .wp-block-latest-posts__post-date::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: #cbd5e1;
}

/* タイトル */
.qc-whatsnew li>a,
.qc-card li>a,
.qc-whatsnew article a,
.qc-card article a {
  display: block;
  padding: 10px 22px 0;
  font-weight: 700;
  font-size: 1em;
  line-height: 1.55;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .25s ease;
}

.qc-whatsnew a:hover,
.qc-card a:hover {
  color: #1D4382;
}

/* 抜粋文：3行クランプ（Business TIPsには抜粋が無いので実質What's New専用） */
.qc-whatsnew .wp-block-latest-posts__post-excerpt,
.qc-card .wp-block-latest-posts__post-excerpt {
  padding: 10px 22px 52px;
}

.qc-whatsnew p,
.qc-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
  font-size: .82em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Business TIPs（抜粋なし）の場合、タイトル下の余白を確保 */
.qc-card li {
  padding-bottom: 20px;
}

/* ホバー時の矢印（→） */
.qc-whatsnew li::after,
.qc-card li::after {
  content: '→';
  position: absolute;
  bottom: 18px;
  right: 22px;
  font-size: 1.2em;
  font-weight: 700;
  color: #1D4382;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  z-index: 3;
}

.qc-whatsnew li:hover::after,
.qc-card li:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* --- ベーススタイル --- */
.quad-corporate-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
}

.quad-section-title {
  font-size: 24px;
  border-bottom: 3px solid #0056b3;
  /* キーカラー */
  padding-bottom: 10px;
  margin-bottom: 40px;
  margin-top: 60px;
  letter-spacing: 0.1em;
}

.quad-sub-title {
  font-size: .7em;
  font-weight: normal;
  color: #666;
}

/* --- 代表挨拶セクション --- */
.quad-message-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.quad-message-image {
  flex: 1;
  max-width: 400px;
}

.quad-message-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quad-message-text {
  flex: 1.5;
}

.quad-tagline {
  font-family: 'Georgia', serif;
  color: #0056b3;
  !important;
  font-size: 22px !important;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4 !important;
  display: block;
}

.quad-message-heading {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 25px;
  font-weight: 700;
}

.quad-message-text p {
  line-height: 1.8;
  margin-bottom: 1.5em;
  font-size: 15px;
}

.quad-ceo-sign {
  margin-top: 30px;
  text-align: right;
}

.quad-company-name {
  font-size: 13px;
  margin-bottom: 5px;
  color: #666;
}

.quad-ceo-name {
  font-size: 18px;
}

/* --- 会社概要テーブル --- */
.quad-profile-list {
  border-top: 1px solid #eee;
}

.quad-profile-row {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.quad-profile-row dt {
  width: 30%;
  font-weight: bold;
  padding-left: 10px;
}

.quad-profile-row dd {
  width: 70%;
  margin: 0;
}

.en {
  display: block;
  font-size: 0.85em;
  color: #777;
  margin-top: 4px;
}

/* リストスタイル（点あり） */
.quad-list-bullet {
  padding-left: 20px;
  margin: 0;
}

.quad-list-bullet li {
  margin-bottom: 5px;
}

/* リストスタイル（点なし・シンプル） */
.quad-list-none {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.quad-list-none li {
  margin-bottom: 5px;
}

/* --- 主な実績セクション --- */
.quad-list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* PCでは2列表示 */
  gap: 15px 30px;
}

.quad-list-check li {
  position: relative;
  padding-left: 1.5em;
  line-height: 1.6;
}

.quad-list-check li::before {
  content: "\27A4";
  /* Unicode for Black Rightwards Arrowhead ➤ */
  color: #0056b3;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.8em;
}

.quad-note {
  font-size: 0.85em;
  color: #888;
  text-align: right;
  margin-top: 15px;
}

/* --- お問い合わせ注釈 --- */
.quad-contact-note {
  margin-top: 60px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9em;
}

/* --- スマホ用レスポンシブ --- */
@media screen and (max-width: 768px) {
  .quad-message-content {
    flex-direction: column;
    gap: 20px;
  }

  .quad-message-image {
    max-width: 100%;
  }

  .quad-message-heading {
    font-size: 22px;
  }

  .quad-profile-row {
    flex-direction: column;
  }

  .quad-profile-row dt {
    width: 100%;
    margin-bottom: 8px;
    color: #0056b3;
  }

  .quad-profile-row dd {
    width: 100%;
  }

  .quad-tagline {
    font-size: 20px !important;
  }

  /* スマホでは実績リストを1列に戻す */
  .quad-list-check {
    grid-template-columns: 1fr;
  }
}



/* ==============================
   お問い合わせフォーム
   ============================== */

.wpcf7 {
  margin: 0;
  padding: 0;
}

/* 各フィールドを「行」として区切り線で分ける */
.entry-form p,
.wpcf7 form>p {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  margin: 0;
}

.entry-form p:first-of-type,
.wpcf7 form>p:first-of-type {
  border-top: 1px solid #e5e7eb;
}

/* 入力フィールド共通 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  color: #374151;
  width: 100%;
  border: 1px solid #d1d5db;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

/* フォーカス時（ブランドカラーのリング） */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #1D4382;
  box-shadow: 0 0 0 3px rgba(29, 67, 130, 0.10);
}

/* テキストエリア */
.wpcf7 textarea {
  height: 150px;
  resize: vertical;
  font-family: inherit;
}

.wpcf7 textarea[name="textarea-915"] {
  height: 150px;
}

/* バリデーションエラー */
.wpcf7 .wpcf7-not-valid {
  border-color: #e74c3c !important;
  background: #fef9f9 !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08) !important;
}

.wpcf7 span.wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 6px;
  padding: 0;
  border: none;
  position: static;
}

/* 必須バッジ（赤→ブランドカラー寄りに変更） */
.form-label {
  display: inline-block !important;
  padding: 1px 7px;
  margin: 0 6px 0 0;
  background-color: #1D4382;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.6;
}

/* 任意バッジ */
.form-label_no {
  display: inline-block !important;
  padding: 1px 7px;
  margin: 0 6px 0 0;
  background-color: #f3f4f6;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 400;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.6;
}

/* チェックボックス・ラジオ */
span.checkbox-431 .wpcf7-list-item {
  display: inline-block;
  padding: 4px 12px 4px 0;
  margin: 0;
}

span.radio-883 .wpcf7-list-item {
  display: inline-block;
  padding: 4px 12px 4px 0;
  color: #374151;
}

/* チェックボックスのアクセントカラー */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  accent-color: #1D4382;
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-right: 4px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"],
.wpcf7-submit {
  display: block;
  width: auto !important;
  min-width: 200px;
  padding: 14px 40px;
  margin: 28px auto 0;
  border-radius: 6px;
  border: none;
  box-shadow: none;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  background: #1D4382;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: #2a5fba;
  box-shadow: none;
  transform: none;
}

.wpcf7 input[type="submit"]:active {
  transform: scale(0.98);
}

/* 送信完了・エラーメッセージ */
.wpcf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  text-shadow: none;
}

.wpcf7 .wpcf7-validation-errors {
  color: #c0392b;
  background-color: #fdecea;
  border: 1px solid #f5c6c6;
}

.wpcf7 .wpcf7-mail-sent-ok {
  color: #1a7a45;
  background-color: #edf7f1;
  border: 1px solid #a8dcbf;
}

/* formboxボタン */
.formbox {
  font-size: 1.2em;
  background-color: #1D4382;
  border: none !important;
  color: #fff !important;
  border-radius: 6px;
  transition: background 0.2s;
}

.formbox a {
  border: none !important;
  color: #fff !important;
}

.formbox:hover {
  background-color: #2a5fba !important;
  color: #fff !important;
}

/* confirmボタン */
.wpcf7 input[type="confirm"] {
  font-size: 100%;
  padding: 0.4em 0.8em;
  background: #f3f4f6;
  color: #374151;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #d1d5db;
  transition: background 0.2s;
}

.wpcf7 input[type="confirm"]:hover {
  background: #e5e7eb;
  box-shadow: none;
}

.entry-form {
  margin: 0 10px;
}

.sub {
  text-align: center;
}

/* reCAPTCHAバッジの位置を上にずらす */
.grecaptcha-badge {
  bottom: 80px !important;
  /* 数値を大きくするほど上に移動 */
}

/* モバイルのみさらに上に */
@media screen and (max-width: 768px) {
  .grecaptcha-badge {
    bottom: 120px !important;
  }
}



/* ============================
   モバイルフッター固定メニュー（5項目・アイコン付き）
   ============================ */

/* 固定メニューコンテナ */
#sp-fixed-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
  border-top: 1px solid rgba(15, 23, 42, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .96);
}

/* PC時は非表示 */
@media (min-width: 782px) {

  #sp-fixed-menu,
  .for-sp {
    display: none !important;
  }
}

/* ul リセット */
#sp-fixed-menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
}

/* 各項目 */
#sp-fixed-menu ul>li {
  flex: 1;
  margin: 0;
  padding: 0;
  border-right: none;
  background: transparent;
  position: relative;
  list-style: none;
}

#sp-fixed-menu ul>li:first-child,
#sp-fixed-menu ul>li:last-child {
  background: transparent;
}

/* リンク本体 */
#sp-fixed-menu ul>li>a,
#sp-fixed-menu ul>li>button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  color: #64748b;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: color .25s ease;
  -webkit-tap-highlight-color: transparent;
}

#sp-fixed-menu ul>li>a:hover,
#sp-fixed-menu ul>li>a:active,
#sp-fixed-menu ul>li>button:hover,
#sp-fixed-menu ul>li>button:active,
#sp-fixed-menu ul>li.active>a,
#sp-fixed-menu ul>li.active>button {
  color: #1D4382;
}

/* アイコン（SVG） */
#sp-fixed-menu ul>li>a svg,
#sp-fixed-menu ul>li>button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

#sp-fixed-menu ul>li>a:active svg,
#sp-fixed-menu ul>li>button:active svg,
#sp-fixed-menu ul>li.active>button svg {
  transform: scale(1.1);
}

/* 現在のページハイライト */
#sp-fixed-menu ul>li.current-page>a {
  color: #1D4382;
  position: relative;
}

#sp-fixed-menu ul>li.current-page>a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, #1D4382, #60a5fa);
  border-radius: 0 0 2px 2px;
}

/* === 共通ポップオーバー（サービス・About・TIPs） === */
.sp-popover {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 72px;
  z-index: 998;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, .06),
    0 20px 48px rgba(29, 67, 130, .18);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sp-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sp-popover .popover-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  color: #1D4382;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding: 0 4px;
}

.sp-popover ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sp-popover ul>li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-popover ul>li>a {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: rgba(29, 67, 130, .04);
  border-radius: 10px;
  line-height: 1.4;
  transition: all .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.sp-popover ul>li>a:hover,
.sp-popover ul>li>a:active {
  background: linear-gradient(135deg, rgba(29, 67, 130, .1), rgba(96, 165, 250, .1));
  color: #1D4382;
}

/* Aboutポップオーバーは「私たちについて」を全幅で先頭に、残り4項目を2列で */
#sp-about-popover ul>li:first-child {
  grid-column: 1 / -1;
}

/* TIPsポップオーバーは「すべての記事」を全幅で目立たせる */
#sp-tips-popover ul>li:first-child {
  grid-column: 1 / -1;
}

#sp-tips-popover ul>li:first-child>a {
  background: linear-gradient(135deg, rgba(29, 67, 130, .1), rgba(96, 165, 250, .08));
  color: #1D4382;
  font-weight: 700;
  text-align: center;
}

/* 共通オーバーレイ */
#sp-popover-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 997;
}

#sp-popover-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* トグルボタンがactive時（ポップオーバー開いている時）のハイライト */
#sp-fixed-menu ul>li>button.sp-popover-toggle.active {
  color: #1D4382;
}

#sp-fixed-menu ul>li>button.sp-popover-toggle.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, #1D4382, #60a5fa);
  border-radius: 0 0 2px 2px;
}

/* セーフエリア対応（iPhoneの下部バー） */
#sp-fixed-menu {
  padding-bottom: env(safe-area-inset-bottom);
}

/* バックトップボタンの位置調整 */
@media (max-width: 782px) {
  .back-to-top {
    bottom: 84px !important;
  }

  /* モバイル時、ページ下部に余白を追加（フッターメニューで隠れないように） */
  body {
    padding-bottom: 60px;
  }
}

/*タイトル付き囲いBOX*/
.box-ti {
  margin: 2em 0;
  background: #f1f1f1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.box-ti .box-title {
  font-size: 1.2em;
  background: #5fc2f5;
  padding: 4px;
  text-align: center;
  color: #FFF;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.box-ti p {
  padding: 15px 20px;
  margin: 0;
}

/*関連記事アイコン、投稿日非表示*/
.fa-calendar:before {
  display: none;
}

.media-date.published {
  display: none;
}

/*関連記事タイトル*/
.relatedPosts_title {
  font-size: 1.2em !important;
  position: relative;
  padding: 2px 9px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .1) !important;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: .02em;
}

.relatedPosts_title:before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, #1D4382 0%, #60a5fa 100%);
  border-radius: 2px;
}

/*ダウンロードボタン*/
a.wpdm-download-link.wpdm-download-locked.btn.btn-primary {
  display: inline-block;
  padding: 0.5em 1em;
  text-decoration: none;
  background: #668ad8;
  color: #FFF;
  border-bottom: solid 4px #627295;
  border-radius: 3px;
}

a.wpdm-download-link.wpdm-download-locked.btn.btn-primary:active {
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
  border-bottom: none;
}

/*サイトマップデザイン*/
.veu_sitemap li {
  background: url(/wp-content/uploads/2023/01/line_dotted_brown.png) repeat-x 0 1.8em;
  text-indent: 0;
  padding: 0 0 12px 0px;
  margin: 12px 0;
  list-style-type: none;
}

.veu_sitemap li a {
  color: #666;
  background: url(/wp-content/uploads/2023/01/ico_lv1.png) no-repeat left center;
  text-decoration: none;
  font-size: 1.1em;
  display: inline-block;
  padding-left: 25px;
  line-height: 32px;
}

.sitemap-term-list li a {
  background: url(/wp-content/uploads/2023/01/ico_lv2.png) no-repeat left center;
  padding-left: 15px;
  line-height: normal;
}

h4.sitemap-post-type-title {
  background: url(/wp-content/uploads/2023/01/line_dotted_brown.png) repeat-x 0 1.8em;
  text-indent: 0;
  padding: 0 0 12px 0px;
  margin: 12px 0;
  list-style-type: none;
}

h4.sitemap-post-type-title a {
  color: #666;
  background: url(/wp-content/uploads/2023/01/ico_lv1.png) no-repeat left center;
  text-decoration: none;
  font-size: 1em;
  display: inline-block;
  padding-left: 25px;
  line-height: 32px;
}

h5.sitemap-taxonomy-title {
  color: #666;
}

ul.link-list a:hover {
  color: #ff7043;
}

glay.ul {
  padding: 0;
}

glay.ul li {
  color: #404040;
  border-left: solid 6px #1fa67a;
  border-bottom: solid 2px #dadada;
  background: whitesmoke;
  margin-bottom: 5px;
  line-height: 1.5;
  padding: 0.5em;
  list-style-type: none !important;
  font-weight: bold;
}

.btn-stitch {
  display: inline-block;
  padding: 0.5em 1em;
  text-decoration: none;
  background: #668ad8;
  color: #FFF;
  border-radius: 4px;
  box-shadow: 0px 0px 0px 5px #668ad8;
  border: dashed 1px #FFF;
}

.btn-stitch:hover {
  border: dotted 1px #FFF;
}

blockquote.wp-embedded-content {
  display: none;
}

iframe.wp-embedded-content {
  position: relative !important;
}

ins.adsbygoogle {
  background: transparent !important;
}

/* 記事本文に入る自動広告：段落は下側にしか余白が無く、広告の下が次の段落に
   くっつくため、上下に余白を足す（広告は隠さない・2026-10-13） */
.entry-content .google-auto-placed {
  margin: 2em 0;
}

.text-nowrap {
  white-space: normal !important;
}

/* What's New */
.qc-whatsnew {
  --card: #ffffff;
  --card-hover: #fafafa;
  --text: #222;
  --muted: #666;
  --line: #e5e7eb;
  --radius: 15px;
  --shadow: 0 6px 16px rgba(0, 0, 0, .06);
  --shadow2: 0 10px 28px rgba(0, 0, 0, .08);

  padding: 22px 14px;
  background: transparent;
  color: var(--text);
}

/* 見出し */
.qc-whatsnew h2,
.qc-whatsnew h3 {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
}

.qc-whatsnew h2::before,
.qc-whatsnew h3::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

/* 投稿リスト（WPブロック差吸収） */
ul.qc-whatsnew.wp-block-latest-posts,
.qc-whatsnew .wp-block-latest-posts,
.qc-whatsnew .wp-block-post-template,
.qc-whatsnew ul {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ============================
   グローバルメニュー（FINDEX風シンプル）
   ============================ */

/* メインナビゲーション：横並びFlex */
.main-navigation ul,
.main-navigation .menu,
.primary-menu,
nav .menu,
#site-navigation ul,
.main-navigation>ul,
header ul.menu,
header nav ul {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* メニュー各項目 */
.main-navigation ul li,
.main-navigation .menu li,
.primary-menu>li,
nav .menu>li,
#site-navigation ul>li,
header ul.menu>li,
header nav ul>li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* メニューリンク本体（シンプル・ミニマル） */
.main-navigation ul li>a,
.main-navigation .menu li>a,
.primary-menu>li>a,
nav .menu>li>a,
#site-navigation ul>li>a,
header ul.menu>li>a,
header nav ul>li>a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  letter-spacing: .02em;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
  position: relative;
  background: transparent;
  border-radius: 999px;
}

/* ホバー時：文字色変化のみ（FINDEX風） */
.main-navigation ul li>a:hover,
.main-navigation .menu li>a:hover,
.primary-menu>li>a:hover,
nav .menu>li>a:hover,
#site-navigation ul>li>a:hover,
header ul.menu>li>a:hover,
header nav ul>li>a:hover {
  color: #1D4382;
  background: rgba(29, 67, 130, .08);
}

/* 現在のページ */
.main-navigation ul li.current-menu-item>a,
.main-navigation ul li.current_page_item>a,
.main-navigation ul li.current-menu-parent>a,
.main-navigation ul li.current-menu-ancestor>a,
nav .menu>li.current-menu-item>a,
nav .menu>li.current_page_item>a,
#site-navigation ul>li.current-menu-item>a,
header nav ul>li.current-menu-item>a {
  color: #ffffff;
  background: #1D4382;
}

/* 下線アクセント（ホバー・現在ページ） */
.main-navigation ul li>a::after,
nav .menu>li>a::after,
#site-navigation ul>li>a::after,
header nav ul>li>a::after {
  /* ピル型ボタンに変更したため下線は出さない（2026-09-23） */
  content: none;
}

.main-navigation ul li>a:hover::after,
.main-navigation ul li.current-menu-item>a::after,
.main-navigation ul li.current_page_item>a::after,
.main-navigation ul li.current-menu-parent>a::after,
.main-navigation ul li.current-menu-ancestor>a::after,
nav .menu>li>a:hover::after,
nav .menu>li.current-menu-item>a::after,
nav .menu>li.current_page_item>a::after,
#site-navigation ul>li>a:hover::after,
#site-navigation ul>li.current-menu-item>a::after,
header nav ul>li>a:hover::after {
  transform: scaleX(1);
}

/* ドロップダウン矢印 */
.main-navigation ul li.menu-item-has-children>a::before,
nav .menu>li.menu-item-has-children>a::before,
#site-navigation ul>li.menu-item-has-children>a::before,
header nav ul>li.menu-item-has-children>a::before {
  content: '';
  display: inline-block;
  order: 2;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .5;
  transition: transform .3s ease, opacity .3s ease;
}

.main-navigation ul li.menu-item-has-children:hover>a::before,
nav .menu>li.menu-item-has-children:hover>a::before,
#site-navigation ul>li.menu-item-has-children:hover>a::before,
header nav ul>li.menu-item-has-children:hover>a::before {
  transform: rotate(225deg) translateY(1px);
  opacity: 1;
}

/* === サブメニュー（ドロップダウン） === */
.main-navigation ul li ul.sub-menu,
.main-navigation ul li ul.children,
nav .menu>li>ul,
#site-navigation ul>li>ul,
header nav ul>li>ul {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 1000;
  min-width: 180px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, .06),
    0 20px 48px rgba(29, 67, 130, .12);
  opacity: 0;
  visibility: hidden;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  list-style: none;
  margin-top: 0;
  /* ← 8pxから0に変更 */
}

/* サブメニューと親メニューの間にホバー判定用の透明領域を追加 */
.main-navigation ul li ul.sub-menu::before,
.main-navigation ul li ul.children::before,
nav .menu>li>ul::before,
#site-navigation ul>li>ul::before,
header nav ul>li>ul::before {
  content: '';
  position: absolute;
  top: -16px;
  /* 親メニューに16px重なる */
  left: 0;
  right: 0;
  height: 16px;
  /* 透明な「橋」 */
  background: transparent;
}

/* 親メニューにもホバー判定領域を拡張 */
.main-navigation ul li.menu-item-has-children,
nav .menu>li.menu-item-has-children,
header nav ul>li.menu-item-has-children {
  position: relative;
  /* 念のため */
}

/* ホバー時のサブメニュー位置調整（隙間を維持しつつホバー判定はくっつける） */
.main-navigation ul li:hover>ul.sub-menu,
.main-navigation ul li:hover>ul.children,
nav .menu>li:hover>ul,
#site-navigation ul>li:hover>ul,
header nav ul>li:hover>ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
  /* 8px下に移動（見た目の隙間） */
  pointer-events: auto;
}

.main-navigation ul li:hover>ul.sub-menu,
.main-navigation ul li:hover>ul.children,
nav .menu>li:hover>ul,
#site-navigation ul>li:hover>ul,
header nav ul>li:hover>ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* サブメニューが右端近くにある場合 */
nav .menu>li:nth-last-child(1)>ul::before,
nav .menu>li:nth-last-child(2)>ul::before,
header nav ul>li:nth-last-child(1)>ul::before,
header nav ul>li:nth-last-child(2)>ul::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

nav .menu>li:nth-last-child(1):hover>ul,
nav .menu>li:nth-last-child(2):hover>ul,
header nav ul>li:nth-last-child(1):hover>ul,
header nav ul>li:nth-last-child(2):hover>ul {
  transform: translateX(0) translateY(8px);
}

/* サブメニュー項目 */
.main-navigation ul li ul.sub-menu>li,
.main-navigation ul li ul.children>li,
nav .menu>li>ul>li,
#site-navigation ul>li>ul>li,
header nav ul>li>ul>li {
  width: 100%;
  margin: 0;
  padding: 0;
}

.main-navigation ul li ul.sub-menu>li>a,
.main-navigation ul li ul.children>li>a,
nav .menu>li>ul>li>a,
#site-navigation ul>li>ul>li>a,
header nav ul>li>ul>li>a {
  display: block;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: .02em;
  transition: all .2s ease;
}

.main-navigation ul li ul.sub-menu>li>a:hover,
.main-navigation ul li ul.children>li>a:hover,
nav .menu>li>ul>li>a:hover,
#site-navigation ul>li>ul>li>a:hover,
header nav ul>li>ul>li>a:hover {
  background: rgba(29, 67, 130, .06);
  color: #1D4382;
  padding-left: 18px;
}

/* サブメニューの下線を非表示 */
.main-navigation ul li ul.sub-menu>li>a::after,
.main-navigation ul li ul.children>li>a::after,
nav .menu>li>ul>li>a::after,
#site-navigation ul>li>ul>li>a::after,
header nav ul>li>ul>li>a::after {
  display: none !important;
}

/* ============================
   Modernized Pages 共通余白リセット
   (About Us / Corporate / TOP)
   ============================ */

/* site-header の margin-bottom: 5rem を打ち消す */
.page-id-9901 .site-content,
.page-id-17512 .site-content,
.page-id-10457 .site-content,
.page-id-9901 .content-area,
.page-id-17512 .content-area,
.page-id-10457 .content-area,
.page-id-9901 #primary,
.page-id-17512 #primary,
.page-id-10457 #primary,
.page-id-9901 #content,
.page-id-17512 #content,
.page-id-10457 #content,
.page-id-9901 article.page,
.page-id-17512 article.page,
.page-id-10457 article.page,
.page-id-9901 .entry-content,
.page-id-17512 .entry-content,
.page-id-10457 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ============================
   サイトマップ・利用規約・プライバシーポリシー・用語集:
   親テーマのjumbotronとパンくずを非表示
   ============================ */
.page-id-4713 .jumbotron,
.page-id-9900 .jumbotron,
.page-id-15297 .jumbotron,
.page-id-3639 .jumbotron,
.page-id-4713 .breadcrumbs,
.page-id-9900 .breadcrumbs,
.page-id-15297 .breadcrumbs,
.page-id-3639 .breadcrumbs {
  display: none !important;
}

@media (max-width: 768px) {
  #menu-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    justify-items: start !important;
    width: fit-content !important;
    margin: 0 auto 1.5rem !important;
    gap: 0.8rem 2rem !important;
    padding: 0 !important;
  }

  .site-bottom-content {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
  }
}

/* ======================================
   フッターメニュー
   ====================================== */

/* トップレベル */
#menu-main-2>li>a,
.widget_nav_menu #menu-main-2>li>a {
  display: flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  background: #f7f7f7 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease !important;
  margin-bottom: 2px !important;
}

#menu-main-2>li>a:hover,
.widget_nav_menu #menu-main-2>li>a:hover {
  background: #e8f8f7 !important;
  color: #20b2aa !important;
}

/* サブメニュー */
#menu-main-2 .sub-menu,
.widget_nav_menu #menu-main-2 .sub-menu {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  border-left: none !important;
  margin: 0.4rem 0 0.6rem 0 !important;
  padding-left: 0 !important;
  gap: 0.3rem !important;
}

#menu-main-2 .sub-menu li,
.widget_nav_menu #menu-main-2 .sub-menu li {
  font-size: 13px !important;
  color: #444 !important;
  padding: 0 !important;
}

#menu-main-2 .sub-menu li a,
.widget_nav_menu #menu-main-2 .sub-menu li a {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 12px !important;
  background: #f7f7f7 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #444 !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease !important;
}

#menu-main-2 .sub-menu li a::before,
.widget_nav_menu #menu-main-2 .sub-menu li a::before {
  content: '›' !important;
  color: #20b2aa !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

#menu-main-2 .sub-menu li a:hover,
.widget_nav_menu #menu-main-2 .sub-menu li a:hover {
  background: #e8f8f7 !important;
  color: #20b2aa !important;
}

/* メガメニュー用の見出し（qc-group・リンク先 #）はフッターでは出さない。
   その下のリンクはそのまま並べる（既存の .sub-menu li a より強い指定にする） */
#menu-main-2 .sub-menu li.qc-group > a,
.widget_nav_menu #menu-main-2 .sub-menu li.qc-group > a {
  display: none !important;
}

#menu-main-2 .sub-menu li.qc-group > .sub-menu,
.widget_nav_menu #menu-main-2 .sub-menu li.qc-group > .sub-menu {
  margin: 0 !important;
}

/* リンク先が # の入口（製品・サービス）は、押してもページ先頭へ飛ばない見出しにする */
#menu-main-2 > li > a[href="#"],
.widget_nav_menu #menu-main-2 > li > a[href="#"] {
  pointer-events: none !important;
  cursor: default !important;
}

/* 900px → 2列 */
@media (max-width: 900px) {

  ul.qc-whatsnew.wp-block-latest-posts,
  .qc-whatsnew .wp-block-latest-posts,
  .qc-whatsnew .wp-block-post-template,
  .qc-whatsnew ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 860px → 1列 */
@media (max-width: 860px) {

  ul.qc-whatsnew.wp-block-latest-posts,
  .qc-whatsnew .wp-block-latest-posts,
  .qc-whatsnew .wp-block-post-template,
  .qc-whatsnew ul {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
}

/* ツールチップ本文：文字数制限時の省略記号 */
.glossaryItemBody {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ツールチップ内「詳しく見る」リンク（スマホのみ表示） */
.cmtt-readmore {
  display: block;
  margin-top: 8px;
  padding: 6px 8px 2px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.75rem;
  color: #1d3f6e !important;
  text-decoration: none !important;
  text-align: right;
  font-weight: 600;
}

/* === YouTube チャンネル CTA === */
/* === YouTube チャンネル CTA === */
.qc-yt-cta {
  margin: 40px 0;
}

.qc-yt-cta__inner {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #e2ebf5;
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(29, 63, 110, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  max-height: 160px;
}

.qc-yt-cta__inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 63, 110, 0.13);
}

.qc-yt-cta__thumb {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background: #0f2044;
  overflow: hidden;
}

.qc-yt-cta__thumb img.qc-yt-cta__photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.qc-yt-cta__yt-logo {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.qc-yt-cta__yt-logo svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.qc-yt-cta__body {
  flex: 1;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.qc-yt-cta__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #FF0000;
  margin-bottom: 6px;
}

.qc-yt-cta__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d3f6e;
  margin-bottom: 8px;
  line-height: 1.4;
}

.qc-yt-cta__desc {
  font-size: 0.825rem;
  color: #4a6a96;
  line-height: 1.7;
  margin-bottom: 14px;
}

.qc-yt-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 700;
  color: #1d3f6e;
}

.qc-yt-cta__inner:hover .qc-yt-cta__btn {
  color: #FF0000;
}

/* X のプロフィール（YouTube と同じカードで、色とアイコンだけ替える） */
.qc-yt-cta--x .qc-yt-cta__thumb {
  background: #e8f1fb;
}

.qc-yt-cta--x .qc-yt-cta__yt-logo,
.qc-x-side__btn svg {
  fill: #fff;
}

.qc-yt-cta--x .qc-yt-cta__yt-logo {
  background: #0f1419;
  border-radius: 8px;
  padding: 7px;
}

.qc-yt-cta--x .qc-yt-cta__yt-logo svg {
  filter: none;
}

.qc-yt-cta--x .qc-yt-cta__label,
.qc-yt-cta--x .qc-yt-cta__inner:hover .qc-yt-cta__btn {
  color: #0f1419;
}

.qc-yt-cta__id,
.qc-x-side__id {
  font-size: 0.8rem;
  font-weight: 400;
  color: #4a6a96;
}

/* ブログサイドバーの X のカード */
.qc-x-side {
  text-align: center;
}

.qc-x-side__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
  margin: 4px auto 10px;
}

.qc-x-side__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d3f6e;
  line-height: 1.4;
}

.qc-x-side__id {
  margin-bottom: 10px;
}

.qc-x-side__desc {
  font-size: 0.8rem;
  color: #4a6a96;
  line-height: 1.7;
  text-align: left;
  margin: 0 0 14px;
}

.qc-x-side__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f1419;
  color: #fff !important;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: opacity 0.15s;
}

.qc-x-side__btn:hover {
  opacity: 0.85;
}

.qc-x-side__btn svg {
  width: 14px;
  height: 14px;
}

/* X の最近の投稿（サイドバーは縦1列、TOPページは幅に応じて横に並べる）と YouTube の最近のショート動画。見出しは h3.cate */
.qc-x-posts,
.qc-yt-shorts {
  margin: 0 0 40px;
  text-align: left;
}

.qc-yt-cta + .qc-x-posts h3.cate,
.qc-yt-cta + .qc-yt-shorts h3.cate {
  margin-top: 0;
}

.qc-x-side .qc-x-posts h3.cate {
  font-size: 16px !important;
  margin: 28px 0 14px;
}

.qc-x-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.qc-x-posts__list li,
.qc-yt-shorts__list li {
  margin: 0;
  padding: 0;
  border: 0;
}

.qc-x-posts__item,
.qc-yt-shorts__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e2ebf5;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(29, 63, 110, 0.07);
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.qc-x-posts__item:hover,
.qc-yt-shorts__item:hover {
  transform: translateY(-2px);
  border-color: #0f1419;
  box-shadow: 0 6px 20px rgba(29, 63, 110, 0.13);
}

/* ショートは縦長のサムネイルを上いっぱいに置き、題名と日付をその下に（再生マークは重ねない：サムネイルの文字を隠すため） */
/* 全部のショートを横1列に並べ、6本ずつ見せて横にスクロール（はみ出したら左右の送りボタンを出す・2026-10-15） */
.qc-yt-shorts__scroller {
  position: relative;
}

.qc-yt-shorts__list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 12px) / 6);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.qc-yt-shorts__list::-webkit-scrollbar {
  display: none;
}

.qc-yt-shorts__list li {
  scroll-snap-align: start;
}

/* 送りボタン：サムネイルの高さの中ほどに重ねる。端まで送ったら押せない表示に */
.qc-yt-shorts__nav {
  position: absolute;
  top: 34%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 1px solid #e2ebf5;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(29, 63, 110, 0.18);
  color: #0f1419;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.qc-yt-shorts__nav--prev {
  left: -14px;
}

.qc-yt-shorts__nav--next {
  right: -14px;
}

.qc-yt-shorts__nav:hover:not(:disabled),
.qc-yt-shorts__nav:focus-visible {
  border-color: #FF0000;
}

.qc-yt-shorts__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.qc-yt-shorts__item {
  gap: 6px;
  padding: 0 0 14px;
}

.qc-yt-shorts__item:hover {
  border-color: #FF0000;
}

.qc-yt-shorts__thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;   /* YouTube のショート一覧と同じ比率（サムネイルの上下を少し切る） */
  overflow: hidden;
  background: #0f1419;
}

/* 横長の画像（16:9）の中央に縦長（9:16）のサムネイルが入っているので、その幅を枠の幅に合わせ、左右のぼかしを出さない。
   16/9 ÷ 9/16 = 3.16 倍。予備の hqdefault（4:3）は 4/3 ÷ 9/16 = 2.37 倍 */
.qc-yt-shorts__thumb img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 316.05%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  display: block;
}

.qc-yt-shorts__thumb img.is-hq {
  width: 237.04%;
}

.qc-yt-shorts__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding: 6px 12px 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.6;
  color: #0f1419;
}

.qc-yt-shorts__date {
  margin-top: auto;
  padding: 0 12px;
  font-size: 0.75rem;
  color: #536471;
}

.qc-x-posts__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qc-x-posts__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e8f1fb;
}

.qc-x-posts__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.qc-x-posts__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f1419;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qc-x-posts__id,
.qc-x-posts__date {
  font-size: 0.75rem;
  color: #536471;
}

.qc-x-posts__logo {
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.qc-x-posts__logo svg {
  width: 100%;
  height: 100%;
  fill: #0f1419;
}

.qc-x-posts__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #0f1419;
  overflow-wrap: anywhere;
}

.qc-x-posts__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eff3f4;
}

.qc-x-posts__more {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f1419;
}

/* ショートを押したときのプレーヤー（縦長・画面の高さの85%まで） */
dialog.qc-yt-player {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}

dialog.qc-yt-player::backdrop {
  background: rgba(15, 20, 25, 0.85);
}

.qc-yt-player__frame {
  height: min(85vh, calc(90vw * 16 / 9));
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.qc-yt-player__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.qc-yt-player__close {
  position: absolute;
  top: -44px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f1419;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* タブレット幅：ショートは3本ずつ見せる */
@media (max-width: 900px) {
  .qc-yt-shorts__list {
    grid-auto-columns: calc((100% - 2 * 12px) / 3);
  }
}

/* モバイル */
@media (max-width: 600px) {
  .qc-yt-cta__inner {
    max-height: none;
    align-items: center;
  }

  /* スマホでも絵柄・顔を出し、ロゴは隅に小さく */
  .qc-yt-cta__thumb {
    width: 80px;
    min-height: 100px;
    align-self: stretch;
    margin: 0;
  }

  .qc-yt-cta__thumb img.qc-yt-cta__photo {
    width: 80px;
    height: 100%;
  }

  .qc-yt-cta__yt-logo {
    width: 24px;
    height: 24px;
    bottom: 6px;
    right: 6px;
  }

  .qc-yt-cta__body {
    padding: 16px;
  }

  .qc-yt-cta__title {
    font-size: 0.95rem;
  }

  .qc-yt-cta__desc {
    font-size: 0.8rem;
  }

  .qc-yt-cta--x .qc-yt-cta__yt-logo {
    padding: 5px;
  }

  /* スマホは1枚が画面幅の約4割 */
  .qc-yt-shorts__list {
    grid-auto-columns: 42%;
    gap: 10px;
  }

  .qc-yt-shorts__nav--prev {
    left: -6px;
  }

  .qc-yt-shorts__nav--next {
    right: -6px;
  }
}
/* TOCウィジェット：シングル記事以外＆モバイルでは非表示 */
body:not(.single-post) .widget.toc_widget {
  display: none !important;
}

@media (max-width: 782px) {
  body.single-post .widget.toc_widget {
    display: none !important;
  }
}
/* === グローバルメニュー：画面幅に応じて詰める（2026-09-23） ===
   ピル型にして横幅が増えたため、広くない画面では余白と字間を詰める */
@media screen and (min-width: 782px) and (max-width: 1500px) {
  .main-navigation ul,
  .main-navigation .menu,
  header nav ul {
    gap: 2px;
  }
  .main-navigation ul li>a,
  .main-navigation .menu li>a,
  header nav ul>li>a {
    padding: 9px 10px;
    font-size: 11.5px;
    letter-spacing: 0;
  }
}
@media screen and (min-width: 782px) and (max-width: 1280px) {
  .main-navigation ul li>a,
  .main-navigation .menu li>a,
  header nav ul>li>a {
    padding: 8px 8px;
    font-size: 11px;
  }
}
/* === ヒーローの背景動画：最初は透明で背後の静止画を見せ、再生が始まったらフェードで出す ===
   （components/hero-video.js が is-playing を付ける・サービスページと TOP で共通） */
.qc-delayed-video {
  opacity: 0;
  transition: opacity 1s ease;
}
.qc-delayed-video.is-playing {
  opacity: 1;
}
