/* ===== 何かお困りですか？ 分岐パネル ===== */
:root {
  /* キーカラー（外観→カスタマイズ→Lightning デザイン設定）に連動 */
  --nkgw-main: var(--vk-color-primary, #64bfe3);
  --nkgw-main-dark: var(--vk-color-primary-dark, #3d9cc2);
  --nkgw-pale: color-mix(in srgb, var(--nkgw-main) 8%, #fff);
  /* サブカラー（カスタマイズ→カラーパレット設定→カスタムカラー1）に連動 */
  --nkgw-accent: var(--wp--preset--color--vk-color-custom-1, #ee819c);
}
/* モバイル固定ナビ：通常はキーカラー、表示中のページはサブカラー
   （モバイル固定ナビの「文字色」設定は空欄のままにしておくこと） */
.mobile-fix-nav .mobile-fix-nav-menu a,
.mobile-fix-nav .vk-mobile-nav-menu-btn { color: var(--nkgw-main) !important; }
.mobile-fix-nav .mobile-fix-nav-menu a[style]:not([style*="2e6da4" i]) { color: var(--nkgw-accent) !important; }

.nkgw-help[hidden] { display: none !important; }
.nkgw-help { position: fixed; left: 0; right: 0; top: 0; bottom: var(--nkgw-nav-h, 0px); z-index: 9990; overflow: hidden; }
.nkgw-help__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.nkgw-help__sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; max-height: calc(100% - 56px);
  transform: translateY(100%); transition: transform .25s ease;
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.nkgw-help__head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nkgw-main); color: #fff; padding: 10px 8px 10px 16px;
  border-radius: 12px 12px 0 0; font-weight: bold; font-size: 15px;
}
.nkgw-help__headTitle::before { content: "?"; display: inline-block; width: 22px; height: 22px; line-height: 22px; margin-right: 8px; border-radius: 50%; background: #fff; color: var(--nkgw-main); text-align: center; font-size: 14px; }
.nkgw-help__close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; padding: 0 10px; cursor: pointer; }
.nkgw-help__body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #fff; padding: 16px 16px 24px; box-sizing: border-box;
}
.nkgw-help.is-open .nkgw-help__overlay { opacity: 1; }
.nkgw-help.is-open .nkgw-help__sheet { transform: translateY(0); }

.nkgw-help__q { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid color-mix(in srgb, var(--nkgw-main) 20%, #fff); font-weight: bold; font-size: 16px; color: #222; }
.nkgw-help__list { display: flex; flex-direction: column; gap: 10px; }
.nkgw-help__item { margin: 0; }
.nkgw-help__btn {
  display: block; width: 100%; box-sizing: border-box; padding: 14px 40px 14px 16px; position: relative;
  border: 2px solid var(--nkgw-main); border-radius: 8px; background: #fff; color: var(--nkgw-main);
  font-size: 15px; font-weight: bold; text-align: left; text-decoration: none; cursor: pointer; line-height: 1.4;
}
.nkgw-help__btn::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.nkgw-help__btn:hover, .nkgw-help__btn:focus-visible { background: var(--nkgw-pale); color: var(--nkgw-main); text-decoration: none; }
.nkgw-help__btn--link { background: var(--nkgw-main); color: #fff; }
.nkgw-help__btn--link:hover, .nkgw-help__btn--link:focus-visible { background: var(--nkgw-main-dark); color: #fff; }
.nkgw-help__desc { margin: 6px 2px 4px; padding: 8px 10px; background: color-mix(in srgb, var(--nkgw-accent) 10%, #fff); border-radius: 6px; font-size: 13px; line-height: 1.6; color: #444; }
.nkgw-help__back {
  display: inline-block; margin-top: 18px; padding: 10px 18px 10px 30px; position: relative;
  border: 1px solid #888; border-radius: 6px; background: #fff; color: #333; font-size: 14px; cursor: pointer;
}
.nkgw-help__back::before { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; border-left: 2px solid #333; border-bottom: 2px solid #333; transform: translateY(-50%) rotate(45deg); }
html.nkgw-help-open, html.nkgw-help-open body { overflow: hidden; }
@media (min-width: 992px) { .nkgw-help { display: none !important; } }

/* ===== 会員事業所 カード一覧 ===== */
.nkgw-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 32px; }
@media (max-width: 575.98px) { .nkgw-cards { grid-template-columns: 1fr; gap: 18px; } }
.nkgw-card { display: flex; flex-direction: column; border: 1px solid #dfe5e1; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.nkgw-card__thumb { display: block; aspect-ratio: 16 / 9; background: var(--nkgw-pale); overflow: hidden; }
.nkgw-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nkgw-card__noimg { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; color: var(--nkgw-main); font-weight: bold; }
.nkgw-card__noimg small { font-weight: normal; margin-top: 2px; }
.nkgw-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 14px; }
.nkgw-card__title { margin: 0 0 4px !important; padding: 0 0 8px !important; border: 0 !important; border-bottom: 1px solid #e3e8e5 !important; background: none !important; font-size: 18px !important; line-height: 1.4; }
.nkgw-card__title::before, .nkgw-card__title::after { display: none !important; }
.nkgw-card__title a { color: #222; text-decoration: none; }
.nkgw-card__title a:hover { color: var(--nkgw-main); }
.nkgw-card__pr { margin: 8px 0 0; font-size: 13px; color: #555; line-height: 1.6; }
.nkgw-card__tags { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nkgw-tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--nkgw-main); border-radius: 3px; color: var(--nkgw-main); font-size: 12px; line-height: 1.6; }
.nkgw-tag--area { background: var(--nkgw-accent); border-color: var(--nkgw-accent); color: #fff; }
.nkgw-card__info { list-style: none; margin: 12px 0 0 !important; padding: 0 !important; font-size: 14px; line-height: 1.6; }
.nkgw-card__info li { display: flex; gap: 8px; margin: 0 0 4px !important; padding: 0 !important; border: 0 !important; }
.nkgw-card__info li::before { display: none !important; }
.nkgw-ico { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; }
.nkgw-ico svg { width: 16px; height: 16px; fill: var(--nkgw-accent); display: block; }
.nkgw-card__more { margin: auto 0 0 !important; padding-top: 12px; text-align: right; }
.nkgw-card__more a { font-size: 14px; font-weight: bold; color: var(--nkgw-main); text-decoration: none; }
.nkgw-card__more a::after { content: " ›"; }
.nkgw-card__more a:hover { text-decoration: underline; }

/* ===== 会員事業所 詳細 ===== */
.nkgw-single__pr { font-size: 1.05em; font-weight: bold; color: var(--nkgw-main); margin-bottom: 1em; }
.nkgw-single__table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.nkgw-single__table th, .nkgw-single__table td { border: 1px solid #dfe5e1; padding: 10px 14px; text-align: left; vertical-align: top; }
.nkgw-single__table th { width: 30%; background: var(--nkgw-pale); font-weight: bold; white-space: nowrap; }
.nkgw-maplink { margin-left: .5em; font-size: .9em; }
.nkgw-single__msg { margin-bottom: 1.5em; }
@media (max-width: 575.98px) { .nkgw-single__table th { width: 34%; white-space: normal; } }
