    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif;
      color: #222;
      background: #daf2fb;
      box-shadow: 0px 5px 22px 0px rgb(0 0 0 / 25%);
      line-height: 1.5;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    .wrapper {
      max-width: 600px;
      margin: 0 auto;
      background: #fff;
      position: relative;
      overflow: hidden;
    }

    :root {
      --bg-offset: 0px;
    }

    /* 透かし背景（パララックス） */
    .wrapper::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: url(/works/wp-content/themes/gaiju-safeguard/assets/img/bg.png), url(../img/bg.png);
      background-repeat: no-repeat;
      background-position: center bottom;
      background-size: cover;
      opacity: 1;
      pointer-events: none;
      transform: translateY(var(--bg-offset));
      will-change: transform;
      z-index: 0; /* 背景として配置（コンテンツは後述の z-index:1 で前面に） */
    }

    /* コンテンツを前面に出す（背景擬似要素より上） */
    .wrapper > * {
      position: relative;
      z-index: 1;
    }

    /* ====== ヘッダー上部 ====== */
    .header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      background: #ffffff;
      border-bottom: 1px solid #e5e5e5;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 6px;
      width: 36%;
      max-width: 250px;
    }

    .logo-mark {
      width: 40px;
      height: 24px;
      background: #007bff;
      border-radius: 3px;
    }

    .logo-text {
      width: 140px;
      height: 18px;
      background: #007bff;
      border-radius: 2px;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .header-icon {
      width: 36px;
      height: 36px;
      border-radius: 6px;
      background: #007bff;
      display: flex;
      align-items: center;
    }

    .header-icon img {
      width: 60%;
      height: 60%;
      object-fit: contain;
      margin: 0 auto;
    }

    .header-tel img {
      height: 88%;
      object-fit: contain;
      margin: 0 auto;
    }

    .header-tel span {
      font-size: 12px;
      font-weight: 700;
      color: #fff;
    }

    .header-tel {
      display: flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 6px;
      background: #ff5a1f;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      gap: 2px;
      height: 36px;
    }

    .header-tel-icon {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: rgba(255,255,255,0.9);
    }

    .header-menu {
      width: 36px;
      height: 36px;
      border-radius: 6px;
      background: #555;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      cursor: pointer;
    }

    .header-menu span {
      position: relative;
      display: block;
      width: 18px;
      height: 2px;
      background: #fff;
    }

    .header-menu span::before,
    .header-menu span::after {
      content: "";
      position: absolute;
      left: 0;
      width: 18px;
      height: 2px;
      background: #fff;
    }

    .header-menu span::before {
      top: -5px;
    }

    .header-menu span::after {
      top: 5px;
    }

    /* ====== タイトルエリア ====== */
    .page-title-area {
      background: linear-gradient(310deg, #0b6dd2 0%, #00aaff 100%);
      padding: 18px 16px;
      text-align: center;
      color: #fff;
    }

    .page-title-area h1 {
      font-size: 26px;
      letter-spacing: 0.18em;
      font-weight: 700;
    }

    /* ====== パンくず ====== */
    .breadcrumb {
      padding: 12px 16px;
      font-size: 12px;
      color: #777;
      border-bottom: 1px solid #f1f1f1;
    }

    .breadcrumb a {
      color: #777;
    }

    .breadcrumb span {
      margin: 0 4px;
    }

    /* ====== 検索エリア ====== */
    .search-area {
      padding: 16px;
      background: #d9d9d9;
    }

    .search-tabs {
      display: flex;
      border: 1px solid #d6d6d6;
    }

    .search-tab-label {
      width: 32%;
      background: #f3f5f7;
      font-size: 14px;
      font-weight: 700;
      text-align: center;
      padding: 10px 4px;
    }

    .search-tab-label.is-active {
    background: none;
      border-right: 1px solid #d6d6d6;
    }

    .search-box {
      flex: 1;
      display: flex;
      align-items: center;
      background: #fff;
    }

    .search-input {
      flex: 1;
      padding: 10px 8px;
      border: none;
      font-size: 13px;
    }

    .search-input::placeholder {
      color: #aaa;
    }

    .search-button {
      width: 46px;
      height: 46px;
      border-left: 1px solid #d6d6d6;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f3f5f7;
    }

    .search-icon {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid #777;
      position: relative;
    }

    .search-icon::after {
      content: "";
      position: absolute;
      width: 10px;
      height: 2px;
      background: #777;
      transform: rotate(45deg);
      right: -5px;
      bottom: -1px;
    }

    /* ====== 見出し ====== */
    .section-head {
      padding: 24px 16px 8px;
      text-align: center;
    }

    .section-head h2 {
      font-size: 22px;
      letter-spacing: 0.12em;
      margin-bottom: 10px;
      font-weight: 700;
    }

    .section-head-line {
      margin: 0 auto;
      width: 70px;
      height: 3px;
      background: #007bff;
      border-radius: 999px;
    }

    /* 絞り込み表示 */
    .filter-note {
      margin-top: 8px;
      font-size: 12px;
      color: #555;
    }
    .filter-note .clear-filter {
      display: inline-flex;
      margin-left: 8px;
      padding: 3px 8px;
      border-radius: 14px;
      background: #e6f0ff;
      color: #0056b8;
      border: 1px solid #cfe0ff;
      font-weight: 700;
      font-size: 12px;
    }

/* TOP 導入テキスト */
.top-lead {
  padding: 0;
  background: none;
  border: none;
  margin: 8px 0 0;
}
.top-lead p { font-size: 14px; line-height: 1.8; color: #333; }
.top-lead .pc-only { display: none; }
.top-lead .sp-only { display: inline; }
@media (min-width: 768px) {
  .top-lead .pc-only { display: inline; }
  .top-lead .sp-only { display: none; }
}

    /* ====== 投稿リスト ====== */
    .posts {
      padding: 8px 16px 0px;
      background: #ffffffa3;
    }

    .post-card {
      padding: 20px 0;
      border-bottom: 1px solid #e5e5e5;
    }

    .post-title {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.5;
      margin-bottom: 12px;
    }

    .post-body {
      display: flex;
      gap: 12px;
    }

    .post-thumb {
      flex: 0 0 40%;
      max-width: 40%;
      border-radius: 8px;
      overflow: hidden;
      background: #ddd;
      height: 130px;
    }

    .post-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .post-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-size: 13px;
    }

    .post-date {
      font-size: 13px;
      color: #777;
      margin-bottom: 8px;
    }

    .post-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tag-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 70px;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid #007bff;
      font-size: 12px;
      color: #007bff;
      background: #fff;
      font-weight: 700;
    }

    .post-excerpt {
      color: #555;
      font-size: 13px;
      max-height: 3.1em;
      overflow: hidden;
    }

    .post-readmore {
      margin-top: 10px;
      font-size: 13px;
      text-align: right;
      color: #007bff;
      font-weight: 700;
    }

    .post-readmore span {
      font-size: 16px;
      margin-right: 4px;
    }

    /* ヒットなしメッセージ */
    .no-results {
      padding: 20px 16px 28px;
      text-align: center;
      color: #666;
      background: #ffffffa3;
      border-top: 1px solid #e5e5e5;
      border-bottom: 1px solid #e5e5e5;
    }
    .no-results .clear-filter {
      display: inline-block;
      margin-top: 8px;
      padding: 6px 12px;
      border-radius: 16px;
      background: #e6f0ff;
      color: #0056b8;
      border: 1px solid #cfe0ff;
      font-weight: 700;
      font-size: 12px;
    }

    /* ====== ページネーション ====== */
    .pagination {
      padding: 24px 16px 40px;
      text-align: center;
    }

    /* WordPress標準の the_posts_pagination を■ボタン風に */
    .pagination .nav-links {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .pagination .page-numbers {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      border-radius: 4px;
      background: #9b9b9b;
      color: #ffffff;
      font-weight: 700;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
    }

    .pagination a.page-numbers:hover {
      background: #007bff;
      border-color: #007bff;
      color: #fff;
      transform: translateY(-1px);
    }

    .pagination .page-numbers.current {
      background: #007bff;
      border-color: #007bff;
      color: #fff;
      cursor: default;
    }

    /* 「…」はボタンにしない */
    .pagination .page-numbers.dots {
      width: auto;
      height: auto;
      padding: 0 6px;
      background: none;
      border: none;
      color: #777;
      font-weight: 700;
    }

    /* 前へ/次へ も■ボタン化 */
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
      width: 46px;
      height: 46px;
      font-size: 18px;
      line-height: 1;
    }

    .pagination-list {
      display: inline-flex;
      gap: 10px;
    }

    .pagination-item {
      width: 46px;
      height: 46px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      font-size: 18px;
      font-weight: 700;
      background: #e6e6e6;
      color: #777;
    }

    .pagination-item.is-current {
      background: #007bff;
      color: #fff;
    }

    /* ====== フッター ====== */
    footer {
      background: #0062b6;
      color: #fff;
      padding: 32px 16px 40px;
      text-align: center;
      font-size: 13px;
      line-height: 1.8;
    }

    footer .footer-name {
      font-weight: 700;
    }

    footer .footer-tel {
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.08em;
    }


    /* ハンバーガー */
.hamburger {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: #555;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #fff;
  display: block;
}

/* オーバーレイメニュー */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(310deg, #0b6dd2 0%, #00aaff 100%);
  backdrop-filter: blur(3px);
  color: #fff;
  z-index: 1000;
  padding: 80px 20px 40px;
  overflow-y: auto;
  max-width: 600px;
  margin: auto;
  /* PCでスクロールバーを非表示（スクロールは可能） */
  -ms-overflow-style: none; /* IE/旧Edge */
  scrollbar-width: none;    /* Firefox */
  /* フェード＋スライドのアニメーション */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  pointer-events: none;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  pointer-events: auto;
}

/* WebKit系（Chrome/Safari等）でスクロールバー非表示 */
.menu-overlay::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
/* モーダル表示中は背景スクロール禁止 */
body.no-scroll {
  height: 100vh;
  overflow: hidden;
}

/* 閉じるボタン */
.menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: #555;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

/* セクション */
.menu-section {
  margin-top: 20px;
}

.menu-accordion {
  width: 100%;
  background: #fff;
  color: #0056b8;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-list {
  padding-left: 10px;
}

.menu-list li {
  padding: 6px 0;
  font-size: 16px;
}

/* サブメニュー（アコーディオン） */
.submenu {
  margin-top: 8px;
}

.submenu-accordion {
  width: 100%;
  background: none;
  color: #fff;
  padding: 0px 14px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
}

.submenu-accordion .acc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #0056b8;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.submenu-list {
  /* アニメーション用に高さと透明度をトランジション */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.22s ease;
  padding-left: 12px;
  margin-top: 8px;
}

.submenu-list.is-open {
  /* 十分大きい最大値で展開を演出（中身の高さにJSで合わせることも可能） */
  max-height: 1000px;
  opacity: 1;
}

.submenu-list li {
  padding: 6px 0;
  font-size: 15px;
}

/* サブメニューの各項目左にハイフンを表示 */
.menu-overlay .submenu-list li {
  position: relative;
  padding-left: 16px;
}
.menu-overlay .submenu-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* メニュー小見出し（リンク）色を白に */
.menu-overlay .submenu-list a {
  color: #fff;
}

/* 仕切り線 */
.menu-list hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 8px 0;
}

/* 検索部分 */
.menu-search {
  margin-bottom: 30px;
}

/* 検索ボックス再利用用 */
.search-tabs { display: flex;}
.search-tab-label {
  width: 80px;
  color: #2e2e2e;
  font-weight: 700;
  border-radius: 4px 0 0 4px;
}
.search-box {
  display: flex;
  background: #fff;
  border-radius: 0 4px 4px 0;
  flex: 1;
}
.search-box form {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}
.search-box .search-form {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}
.search-input {
  flex: 1;
  width: 100%;
  border: none;
  padding: 10px;
  font-size: 14px;
}
.search-button {
    background: #565656;
    width: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}
.search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: relative;
}
.search-icon::after {
  content: "";
  width: 8px;
  height: 2px;
  background: #fff;
  position: absolute;
    right: -6px;
    bottom: -3px;
  transform: rotate(45deg);
}

/* オーバーレイ内の検索UIのボーダーを無効化 */
.menu-overlay .search-tabs {
  border: none;
}
.menu-overlay .search-button {
  border: none;
  border-left: none;
}
.menu-overlay .search-tab-label {
    width: 80px;
    color: #ffffff;
    font-weight: 700;
    border-radius: 4px 0 0 4px;
}

/* 見出し（カテゴリー/エリア） */
.menu-overlay .menu-heading {
  background: #fff;
  color: #0056b8;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 14px;
  display: inline-block;
  width: -webkit-fill-available;
  margin-bottom: 4px;
}
/* ヘッダーをモーダルより上に表示 */
.header-top {
  position: relative;
  z-index: 1002;
}

/* ハンバーガーのリッチアニメーション */
.header-menu span,
.header-menu span::before,
.header-menu span::after {
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.header-menu.is-active span {
  background: transparent;
}

.header-menu.is-active span::before {
  transform: translateY(5px) rotate(45deg);
}

.header-menu.is-active span::after {
  transform: translateY(-5px) rotate(-45deg);
}


/* ====== 記事内装飾（ブロックエディタの色/マーカー） ====== */
.has-black-color{color:#222222 !important}
.has-gray-color{color:#777777 !important}
.has-brand-blue-color{color:#007bff !important}
.has-accent-orange-color{color:#ff5a1f !important}
.has-red-color{color:#d63638 !important}
.has-marker-yellow-background-color{
  background:#fff59d !important;
  padding:0 .15em;
  border-radius:.2em;
}

    /* ====== BEFORE / AFTER 縦長画像の横幅フィット ====== */
    .single-photo-block img {
      width: 100%;
      height: auto;
      object-fit: contain;
      display: block;
    }

    /* ====== スタッフコメント下 ギャラリー ====== */
    .staff-gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 0 16px 16px;
    }
    .staff-gallery-item {
      flex: 0 0 calc((100% - 16px) / 3);
      aspect-ratio: 1 / 1;
      border-radius: 8px;
      overflow: hidden;
      background: #eeeeee;
    }
    .staff-gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* 比率は維持して正方形に収める（必要に応じてトリミング） */
      display: block;
    }