/* Main CSS File */
:root {
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 10px;
}

/* ヘッダーをビューポート最上に密着（添付画像どおり隙間なし） */
header.fixed.top-0 {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  z-index: 50;
}

/* ヘッダー：ホバー時にスカイブルー（#00AEEF） */
header.fixed.top-0 a:hover,
header.fixed.top-0 a:hover span {
  color: #00AEEF !important;
}

header.fixed.top-0 button:hover,
header.fixed.top-0 button:hover span {
  color: #00AEEF !important;
}

header.fixed.top-0 button:hover div span {
  background-color: #00AEEF !important;
}

/* テンプレートパートのラッパーが上方向の余白を持たないように */
.wp-block-template-part.contents,
.wp-block-template-part.content,
.wp-block-template-part:first-child,
body .wp-block-group:has(.wp-block-template-part.contents):first-child,
body .wp-block-group:has(.wp-block-template-part.content):first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* サイトルートのブロック余白を先頭のみ打ち消し */
.wp-block-group.alignfull:first-child .wp-block-template-part.contents {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body .wp-block-template-part.contents {
  display: block;
}

/* ヘッダー直下の隙間をなくす：テンプレートパートの下余白と、次のブロックの上余白をゼロに */
.wp-block-template-part.contents,
.wp-block-template-part.content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

/* ヘッダー直後のブロック（メイン／ヒーロー）の上余白をゼロに */
.wp-block-template-part.contents+*,
.wp-block-template-part.content+* {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ブロックテーマの blockGap がヘッダーとメインの間に効かないように */
.wp-block-group>.wp-block-template-part.contents:first-child+* {
  margin-top: 0 !important;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* Header Glass Effect */
.header-glass {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Button Hover Animations */
.wp-block-button__link {
  transition: all 0.3s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* Card Hover Animations */
.wp-block-column,
.wp-block-post-template .wp-block-group {
  transition: all 0.3s ease;
}

.wp-block-column:hover,
.wp-block-post-template .wp-block-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ニュース一覧：タイトルリンクのホバー時はスカイブルー（theme.jsonのリンクhoverオレンジを上書き） */
.wp-block-post-template .wp-block-group.group:hover .wp-block-post-title a {
  color: var(--wp--preset--color--main);
}

/* Hero Text Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wp-block-cover__inner-container>* {
  animation: fadeInUp 0.8s ease-out forwards;
}

.wp-block-cover__inner-container>*:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0;
}

.wp-block-cover__inner-container>*:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 0;
}

/* オーバーレイメニュー右側：連絡先・住所の情報ボックスを常に表示 */
#skybear-mobile-menu .skybear-menu-info-box {
  min-width: 0;
}
@media (min-width: 768px) {
  #skybear-mobile-menu .md\:w-1\/3 {
    display: flex !important;
  }
}

/* Overlay Menu Styling for Dynamic Navigation Block */
.skybear-overlay-menu ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: menu-counter;
}

.skybear-overlay-menu li {
  overflow: visible;
}

/* サブメニュー：親子関係を視覚的に明確に */
.skybear-overlay-menu ul.sub-menu {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  margin-left: 0;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  gap: 0.25rem;
  counter-reset: none;
}
.skybear-overlay-menu .sub-menu a {
  font-size: 1.125rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
}
.skybear-overlay-menu .sub-menu a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}
@media (min-width: 768px) {
  .skybear-overlay-menu .sub-menu {
    padding-left: 2rem;
  }
  .skybear-overlay-menu .sub-menu a {
    font-size: 1.5rem !important;
  }
}
@media (min-width: 1024px) {
  .skybear-overlay-menu .sub-menu a {
    font-size: 1.75rem !important;
  }
}
/* サブメニューでは番号（01, 02...）を表示しない */
.skybear-overlay-menu .sub-menu a::before {
  display: none;
}

.skybear-overlay-menu a {
  display: flex !important;
  align-items: baseline;
  gap: 1rem;
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  font-size: 1.5rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  transition: color 0.5s ease;
  text-decoration: none !important;
  line-height: 1.2;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  white-space: nowrap;
  overflow: visible;
}

@media (min-width: 768px) {
  .skybear-overlay-menu a {
    font-size: 2.25rem !important;
  }
}

@media (min-width: 1024px) {
  .skybear-overlay-menu a {
    font-size: 2.75rem !important;
  }
}

.skybear-overlay-menu a:hover {
  color: #ffffff !important;
}

.skybear-overlay-menu a::before {
  counter-increment: menu-counter;
  content: "0" counter(menu-counter);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateX(-1rem);
  transition: all 0.5s ease;
  margin-right: 0rem;
  color: #ffffff;
}

.skybear-overlay-menu a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Submenu Styling */
.skybear-overlay-menu .wp-block-navigation__submenu-container {
  padding-left: 4rem;
  /* Indent children */
  gap: 0;
}

.skybear-overlay-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-size: 1.5rem !important;
  /* Smaller font for children */
  opacity: 0.7;
  margin-bottom: 0;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .skybear-overlay-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size: 2rem !important;
  }
}

.skybear-overlay-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
  content: "—";
  /* Replace number with dash for children */
  font-size: 1rem;
  margin-right: 0.5rem;
  opacity: 0.5;
  transform: none;
}

.skybear-overlay-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  opacity: 1;
  color: #ffffff !important;
}

.skybear-overlay-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover::before {
  opacity: 1;
  color: #00AEEF;
  /* Sky Main for dash on hover */
}

/* Contact section: circular text animation (design: READY TO FLY WITH US?) */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* FAQ Accordion (details/summary) - なめらかに開閉 */
.skybear-faq details summary::-webkit-details-marker {
  display: none;
}

.skybear-faq details summary::marker {
  display: none;
}

.skybear-faq .skybear-faq-icon {
  transition: transform 0.25s ease-out;
}

.skybear-faq details[open] .skybear-faq-icon {
  transform: rotate(45deg);
}

/* 開閉の高さアニメーション（grid 0fr → 1fr） */
.skybear-faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
}

.skybear-faq details[open] .skybear-faq-content {
  grid-template-rows: 1fr;
}

.skybear-faq-content-inner {
  min-height: 0;
  overflow: hidden;
}

/* Contact Form 7：資料ダウンロード・お問い合わせフォームのテーマ統一 */
.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1rem;
}
.wpcf7 label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #051125;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: rgba(243, 244, 246, 0.5);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: #00AEEF;
  background-color: #fff;
}
/* ご相談内容（select）の枠を確実に表示 */
.wpcf7 .wpcf7-form-control-wrap select,
.wpcf7-select-wrap select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: rgba(243, 244, 246, 0.5);
  font-size: 1rem;
  appearance: auto;
}
.wpcf7 .wpcf7-form-control-wrap select:focus,
.wpcf7-select-wrap select:focus {
  outline: none;
  border-color: #00AEEF;
  background-color: #fff;
}
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}
.wpcf7 input[type="submit"] {
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  background-color: #00AEEF;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.wpcf7 input[type="submit"]:hover {
  background-color: #051125;
  color: #fff;
}
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: #00AEEF;
  color: #051125;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* ========================================
   投稿ページ（NEWS）フルリニューアル（実績と被らない明るいエディトリアル）
   ======================================== */
body.single .single-post-page {
  background-color: #f8fafc;
  min-height: 100vh;
  padding-top: 150px;
}
body.single .single-post-article__inner {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.single-post-back {
  margin: 0 0 2rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.single-post-back a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}
.single-post-back a:hover {
  color: var(--wp--preset--color--main, #00AEEF);
}
.single-post-header {
  padding-left: 1.25rem;
  border-left: 4px solid var(--wp--preset--color--main, #00AEEF);
}
.single-post-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.single-post-category a,
.single-post-header .wp-block-post-terms a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--wp--preset--color--main, #00AEEF);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.single-post-category a:hover,
.single-post-header .wp-block-post-terms a:hover {
  background: #0099d6;
  color: #fff;
}
.single-post-date,
.single-post-header .wp-block-post-date,
.single-post-header .wp-block-post-date time {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}
.single-post-title,
.single-post-header .wp-block-post-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0;
}
.single-post-visual {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}
@media (min-width: 782px) {
  body.single .single-post-article__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .single-post-visual {
    margin-left: 0;
    margin-right: 0;
  }
}
.single-post-visual .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}
.single-post-visual .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.single-post-content .wp-block-post-content {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.single-post-footer__terms,
.single-post-footer .wp-block-post-terms {
  font-size: 0.875rem;
  color: #64748b;
}
.single-post-footer .wp-block-post-terms a {
  color: var(--wp--preset--color--main, #00AEEF);
  text-decoration: none;
}
.single-post-footer .wp-block-post-terms a:hover {
  text-decoration: underline;
}
.single-post-nav .wp-block-post-navigation-link {
  margin: 0;
  flex: 1;
  min-width: 0;
  max-width: 48%;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.single-post-nav .wp-block-post-navigation-link:hover {
  border-color: var(--wp--preset--color--main, #00AEEF);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.1);
}
.single-post-nav .post-navigation-link__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--main, #00AEEF);
  margin-bottom: 0.25rem;
}
.single-post-nav .wp-block-post-navigation-link a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}
.single-post-nav .wp-block-post-navigation-link a:hover {
  color: var(--wp--preset--color--main, #00AEEF);
}
.single-post-nav .wp-block-post-navigation-link-next {
  margin-left: auto;
  text-align: right;
}
.single-post-nav .wp-block-post-navigation-link-next .post-navigation-link__label::after {
  content: ' →';
  font-size: 0.75em;
  opacity: 0.8;
}
.single-post-nav .wp-block-post-navigation-link-previous .post-navigation-link__label::before {
  content: '← ';
  font-size: 0.75em;
  opacity: 0.8;
}

/* ========================================
   お知らせ投稿・固定ページ：見出し H1〜H6 と箇条書き
   ======================================== */
.skybear-single-post .wp-block-post-content,
.skybear-single-post .entry-content,
body.single .single-post-content .wp-block-post-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.skybear-post-content,
body.single main .wp-block-post-content,
body.single main .entry-content,
body.page main .wp-block-post-content,
body.page main .entry-content {
  font-family: "Noto Sans JP", sans-serif;
  color: #111827;
  line-height: 1.8;
}

.skybear-post-content h1,
body.single main .wp-block-post-content h1,
body.single main .entry-content h1,
body.page main .wp-block-post-content h1,
body.page main .entry-content h1 {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #051125;
  letter-spacing: -0.05em;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #00AEEF;
}

.skybear-post-content h2,
body.single main .wp-block-post-content h2,
body.single main .entry-content h2,
body.page main .wp-block-post-content h2,
body.page main .entry-content h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #051125;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid #00AEEF;
}

.skybear-post-content h3,
body.single main .wp-block-post-content h3,
body.single main .entry-content h3,
body.page main .wp-block-post-content h3,
body.page main .entry-content h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #051125;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.skybear-post-content h4,
body.single main .wp-block-post-content h4,
body.single main .entry-content h4,
body.page main .wp-block-post-content h4,
body.page main .entry-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #051125;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.skybear-post-content h5,
body.single main .wp-block-post-content h5,
body.single main .entry-content h5,
body.page main .wp-block-post-content h5,
body.page main .entry-content h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #051125;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.skybear-post-content h6,
body.single main .wp-block-post-content h6,
body.single main .entry-content h6,
body.page main .wp-block-post-content h6,
body.page main .entry-content h6 {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.skybear-post-content p,
body.single main .wp-block-post-content p,
body.single main .entry-content p,
body.page main .wp-block-post-content p,
body.page main .entry-content p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #374151;
}

/* 箇条書き（ul / ol） */
.skybear-post-content ul,
body.single main .wp-block-post-content ul,
body.single main .entry-content ul,
body.page main .wp-block-post-content ul,
body.page main .entry-content ul {
  margin: 1rem 0 1.25rem 0;
  padding-left: 1.5rem;
  list-style: none;
}

.skybear-post-content ul li,
body.single main .wp-block-post-content ul li,
body.single main .entry-content ul li,
body.page main .wp-block-post-content ul li,
body.page main .entry-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.skybear-post-content ul li::before,
body.single main .wp-block-post-content ul li::before,
body.single main .entry-content ul li::before,
body.page main .wp-block-post-content ul li::before,
body.page main .entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: #00AEEF;
  border-radius: 50%;
}

.skybear-post-content ol,
body.single main .wp-block-post-content ol,
body.single main .entry-content ol,
body.page main .wp-block-post-content ol,
body.page main .entry-content ol {
  margin: 1rem 0 1.25rem 0;
  padding-left: 1.75rem;
  list-style: none;
  counter-reset: list-counter;
}

.skybear-post-content ol li,
body.single main .wp-block-post-content ol li,
body.single main .entry-content ol li,
body.page main .wp-block-post-content ol li,
body.page main .entry-content ol li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  color: #374151;
  counter-increment: list-counter;
}

.skybear-post-content ol li::before,
body.single main .wp-block-post-content ol li::before,
body.single main .entry-content ol li::before,
body.page main .wp-block-post-content ol li::before,
body.page main .entry-content ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: -1.75rem;
  font-weight: 700;
  color: #00AEEF;
  font-size: 0.95em;
}

/* ネストしたリスト */
.skybear-post-content ul ul,
.skybear-post-content ol ul,
body.single main .wp-block-post-content ul ul,
body.single main .wp-block-post-content ol ul,
body.single main .entry-content ul ul,
body.single main .entry-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.skybear-post-content ul ul li::before,
body.single main .wp-block-post-content ul ul li::before,
body.single main .entry-content ul ul li::before {
  width: 4px;
  height: 4px;
  top: 0.65em;
}

/* 引用・リンク・コード（任意） */
.skybear-post-content blockquote,
body.single main .wp-block-post-content blockquote,
body.single main .entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem 1rem 1.25rem;
  border-left: 4px solid #00AEEF;
  background-color: rgba(0, 174, 239, 0.06);
  color: #374151;
  font-style: normal;
  border-radius: 0 0.5rem 0.5rem 0;
}

.skybear-post-content a,
body.single main .wp-block-post-content a,
body.single main .entry-content a {
  color: #00AEEF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.skybear-post-content a:hover,
body.single main .wp-block-post-content a:hover,
body.single main .entry-content a:hover {
  color: #051125;
}

/* 投稿・固定ページ：テーブルデザイン */
.skybear-post-content table,
body.single main .wp-block-post-content table,
body.single main .entry-content table,
body.page main .wp-block-post-content table,
body.page main .entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.skybear-post-content .wp-block-table,
body.single main .wp-block-post-content .wp-block-table,
body.single main .entry-content .wp-block-table,
body.page main .wp-block-post-content .wp-block-table,
body.page main .entry-content .wp-block-table {
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.skybear-post-content .wp-block-table table,
body.single main .wp-block-post-content .wp-block-table table,
body.single main .entry-content .wp-block-table table,
body.page main .wp-block-post-content .wp-block-table table,
body.page main .entry-content .wp-block-table table {
  margin: 0;
  box-shadow: none;
}
.skybear-post-content thead th,
body.single main .wp-block-post-content thead th,
body.single main .entry-content thead th,
body.page main .wp-block-post-content thead th,
body.page main .entry-content thead th,
.wp-block-table thead th {
  background: var(--wp--preset--color--main-2, #0f172a);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}
.skybear-post-content tbody td,
body.single main .wp-block-post-content tbody td,
body.single main .entry-content tbody td,
body.page main .wp-block-post-content tbody td,
body.page main .entry-content tbody td,
.wp-block-table tbody td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}
.skybear-post-content tbody tr:last-child td,
body.single main .wp-block-post-content tbody tr:last-child td,
body.single main .entry-content tbody tr:last-child td,
body.page main .wp-block-post-content tbody tr:last-child td,
body.page main .entry-content tbody tr:last-child td,
.wp-block-table tbody tr:last-child td {
  border-bottom: none;
}
.skybear-post-content tbody tr:hover td,
body.single main .wp-block-post-content tbody tr:hover td,
body.single main .entry-content tbody tr:hover td,
body.page main .wp-block-post-content tbody tr:hover td,
body.page main .entry-content tbody tr:hover td,
.wp-block-table tbody tr:hover td {
  background-color: #f8fafc;
}
.skybear-post-content tbody td:first-child,
body.single main .wp-block-post-content tbody td:first-child,
body.single main .entry-content tbody td:first-child,
.wp-block-table tbody td:first-child {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .skybear-post-content thead th,
  .skybear-post-content tbody td,
  body.single main .wp-block-post-content thead th,
  body.single main .wp-block-post-content tbody td,
  body.single main .entry-content thead th,
  body.single main .entry-content tbody td,
  .wp-block-table thead th,
  .wp-block-table tbody td {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }
  .skybear-post-content tbody td:first-child,
  body.single main .wp-block-post-content tbody td:first-child,
  body.single main .entry-content tbody td:first-child,
  .wp-block-table tbody td:first-child {
    white-space: normal;
  }
}

/* 採用詳細ページ（single job） */
.skybear-single-job .wp-block-post-title {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #051125;
  letter-spacing: -0.05em;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.skybear-single-job .wp-block-post-content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.skybear-single-job .skybear-job-employment {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.skybear-single-job {
  background-color: #F3F4F6;
}

/* クエリページネーション（NEWS・一覧ページ） */
.wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 4rem;
  padding: 1rem 0;
}
.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0B1C33;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover {
  color: #fff;
  background-color: #0B1C33;
  border-color: #0B1C33;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers a,
.wp-block-query-pagination .wp-block-query-pagination-numbers span,
.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0B1C33;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination .page-numbers:not(.current):not(.dots):hover {
  color: #fff;
  background-color: #00AEEF;
  border-color: #00AEEF;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .current,
.wp-block-query-pagination .page-numbers.current {
  color: #fff;
  background-color: #0B1C33;
  border-color: #0B1C33;
  pointer-events: none;
}
.wp-block-query-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
  cursor: default;
}

/* 投稿カテゴリー：複数選択時は複数バッジ表示 */
.wp-block-post-terms.taxonomy-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  background: none !important;
  padding: 0;
}
.wp-block-post-terms.taxonomy-category a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background-color: #0B1C33;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.wp-block-post-terms.taxonomy-category a:hover {
  opacity: 0.9;
}
.wp-block-post-terms.taxonomy-category.has-background.has-main-2-background-color a {
  background-color: var(--wp--preset--color--main-2, #0B1C33);
  color: var(--wp--preset--color--base, #fff);
}
.wp-block-post-terms__separator {
  display: none;
}

/* ========== 実績詳細（single works）全面改修 ========== */
body.single-works .single-work-hero {
  margin-top: 150px !important;
}
.single-work-hero .single-work-breadcrumb {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  line-height: 1;
}
.single-work-hero .single-work-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: #f1f5f9;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.single-work-hero .single-work-breadcrumb a:hover {
  color: #fff;
  border-bottom-color: var(--wp--preset--color--main, #00AEEF);
}
.single-work-back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  flex-shrink: 0;
  margin-right: 0.5rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.95em;
}
.single-work-breadcrumb p {
  margin: 0;
}
.single-work-hero {
  color: #fff;
}
.single-work-hero .wp-block-post-title,
.single-work-hero .wp-block-post-title a {
  color: #fff !important;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 0;
}
@media (min-width: 782px) {
  .single-work-hero .wp-block-post-title,
  .single-work-hero .wp-block-post-title a {
    font-size: 1.75rem;
  }
}
.single-work-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.single-work-hero .wp-block-post-date,
.single-work-hero .wp-block-post-date a,
.single-work-hero .wp-block-post-date time {
  color: #e2e8f0 !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.single-work-hero .wp-block-post-terms {
  margin: 0;
}
.single-work-hero .wp-block-post-terms a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background-color: var(--wp--preset--color--main, #00AEEF);
  border: none !important;
  outline: none;
  box-shadow: none;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.2s;
}
.single-work-hero .wp-block-post-terms.has-border-color,
.single-work-hero .wp-block-post-terms .has-border-color {
  border: none !important;
}
.single-work-hero .wp-block-post-terms a:hover {
  background-color: #0099d6;
  color: #fff;
  transform: translateY(-1px);
}
/* 実績一覧に戻る（ページ下部） */
.single-work-back-bottom {
  margin: 2rem 0 0 0 !important;
}
.single-work-back-bottom a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wp--preset--color--main, #00AEEF);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.single-work-back-bottom .single-work-back-arrow {
  border-color: var(--wp--preset--color--main, #00AEEF);
}
.single-work-back-bottom a:hover {
  color: #0099d6;
  border-bottom-color: currentColor;
}
.single-work-back-bottom a:hover .single-work-back-arrow {
  border-color: #0099d6;
}
.single-work-visual .wp-block-post-featured-image {
  margin: 0;
}
.single-work-visual .wp-block-post-featured-image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}
.single-work-overview-title {
  font-size: 1.25rem !important;
  color: var(--wp--preset--color--main-2, #051125) !important;
  border-left: 4px solid var(--wp--preset--color--main, #00AEEF);
  padding-left: 1rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}
/* DATA サイドバー：デザイン・レイアウト */
.single-work-data {
  margin: 0;
}
.single-work-data__title {
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--wp--preset--color--main-2, #051125);
  border-bottom: 2px solid var(--wp--preset--color--main, #00AEEF);
}
.single-work-data__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.single-work-data__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(5, 17, 37, 0.08);
}
.single-work-data__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.single-work-data__label {
  margin: 0;
  min-width: 5.5em;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--contrast, #111827);
  opacity: 0.7;
}
.single-work-data__value {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--contrast, #111827);
  line-height: 1.5;
}
.single-work-sidebar h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.single-work-sidebar p {
  margin-bottom: 0.75rem;
}
.single-work-sidebar p:last-child {
  margin-bottom: 0;
}
body.single-works .single-work-content .wp-block-column,
body.single-works .single-work-content .single-work-sidebar {
  transition: none;
}
body.single-works .single-work-content .wp-block-column:hover,
body.single-works .single-work-content .single-work-sidebar:hover {
  transform: none;
  box-shadow: none;
}
.single-work-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--wp--preset--color--base-2, #f3f4f6);
  padding-top: var(--wp--preset--spacing--30, 1.5rem);
  padding-bottom: var(--wp--preset--spacing--30, 1.5rem);
  margin-top: var(--wp--preset--spacing--50, 2.5rem);
}
.single-work-nav .wp-block-post-navigation-link {
  margin: 0;
  flex: 1;
  min-width: 0;
  max-width: 48%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--wp--preset--color--base-2, #e2e8f0);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.single-work-nav .wp-block-post-navigation-link:hover {
  border-color: var(--wp--preset--color--main, #00AEEF);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.12);
}
.single-work-nav .wp-block-post-navigation-link > a {
  display: block;
  text-decoration: none;
  transition: color 0.2s ease;
}
.single-work-nav .wp-block-post-navigation-link > a:hover {
  color: var(--wp--preset--color--main, #00AEEF);
}
.single-work-nav .post-navigation-link__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--main, #00AEEF);
  margin-bottom: 0.375rem;
}
.single-work-nav .wp-block-post-navigation-link a {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--wp--preset--color--contrast, #0f172a);
}
.single-work-nav .wp-block-post-navigation-link a:hover {
  color: var(--wp--preset--color--main, #00AEEF);
}
.single-work-nav .wp-block-post-navigation-link__title,
.single-work-nav .wp-block-post-navigation-link a span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 600px) {
  .single-work-nav .wp-block-post-navigation-link__title,
  .single-work-nav .wp-block-post-navigation-link a span {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
  }
}
.single-work-nav .wp-block-post-navigation-link-next {
  margin-left: auto;
  text-align: right;
}
.single-work-nav .wp-block-post-navigation-link-next .post-navigation-link__label {
  text-align: right;
}
.single-work-nav .wp-block-post-navigation-link-previous .post-navigation-link__label::before {
  content: '← ';
  font-size: 0.75em;
  opacity: 0.8;
}
.single-work-nav .wp-block-post-navigation-link-next .post-navigation-link__label::after {
  content: ' →';
  font-size: 0.75em;
  opacity: 0.8;
}

/* ========== 実績一覧：AJAX カテゴリ切り替えのローディング（白系背景用） ========== */
.works-archive-content {
  transition: opacity 0.3s ease-out;
}
.works-archive-content.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.works-archive-content.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(0, 174, 239, 0.2);
  border-top-color: #00AEEF;
  border-radius: 50%;
  animation: skybear-works-spin 0.7s linear infinite;
}
#works-archive .container {
  position: relative;
}
#works-archive-content {
  position: relative;
  min-height: 120px;
}
@keyframes skybear-works-spin {
  to {
    transform: rotate(360deg);
  }
}