/* Works */
.npc-works__grid{gap:16px;}
.npc-works__thumb{border-radius:calc(var(--npc-radius) - 6px);overflow:hidden;}
.npc-works__title{margin-top:12px;margin-bottom:6px;}
.npc-works__excerpt{color:var(--npc-muted);line-height:1.7;}

/* Flow */
.npc-flow__row{gap:16px;}
.npc-step__title{margin:0 0 8px;}


/* ----------------------------------------
 * Equal height + grid helpers (NPC v1)
 *
 * Use cases:
 * - Columns layout: add class "npc-eq" to wp:columns.
 * - Query loop / custom grid: add class "npc-eq" to wp:post-template (UL).
 *
 * Rule:
 * - We NEVER force grid on wp-block-columns.
 * - We DO force grid on post-template UL/OL and non-columns containers.
 * ---------------------------------------- */

/* A) Columns: stretch cards to equal height */
.wp-block-columns.npc-eq,
.npc-cards{ /* backward-compatible alias */
  align-items: stretch;
}
.wp-block-columns.npc-eq > .wp-block-column,
.npc-cards > .wp-block-column{
  display: flex;
}
.wp-block-columns.npc-eq > .wp-block-column > .wp-block-group.npc-card,
.npc-cards > .wp-block-column > .wp-block-group.npc-card{
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wp-block-columns.npc-eq > .wp-block-column > .wp-block-group.npc-card .wp-block-buttons,
.npc-cards > .wp-block-column > .wp-block-group.npc-card .wp-block-buttons{
  margin-top: auto;
}
.wp-block-columns.npc-eq > .wp-block-column > .wp-block-group.npc-card > *:last-child,
.npc-cards > .wp-block-column > .wp-block-group.npc-card > *:last-child{
  margin-bottom: 0;
}

/* B) Post template / grid lists */
.wp-block-post-template.npc-eq,
ul.npc-eq,
ol.npc-eq,
.wp-block-group.npc-eq:not(.wp-block-columns){
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding-left: 0;
  list-style: none;
}
@media (min-width: 980px){
  .wp-block-post-template.npc-eq.npc-eq--3,
  ul.npc-eq.npc-eq--3,
  ol.npc-eq.npc-eq--3,
  .wp-block-group.npc-eq.npc-eq--3:not(.wp-block-columns){
    grid-template-columns: repeat(3, 1fr);
  }
}

/* C) Grid item helper */
.npc-eq__item{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.npc-eq__item .wp-block-buttons{ margin-top: auto; }


/* Header / Footer */
.npc-header{
  padding: 14px 0;
  border-bottom: 1px solid var(--npc-border);
}
.npc-header.npc-header--03,
.npc-header.npc-header--04 {
  padding: 0;
  border-bottom: none;
}

/* Vertical header (off-canvas rail) */
.npc-header--vertical{
  padding: 0;
  border-bottom: none;
  width: 0;
  max-width: 0;
  height: 0;
  min-height: 0;
  overflow: visible;
}
.npc-header__brand{
  gap: 10px;
  align-items: center;
}
.npc-header__title{
  font-weight: 800;
}
.npc-header__tagline{
  margin: 2px 0 0;
  color: var(--npc-muted);
  font-size: 0.92em;
}
.npc-header__nav{ gap: 10px; }

/* Header responsive core (logo left / hamburger right) */
.npc-header__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.npc-header__brand{ min-width: 0; }
.npc-site-header-root .wp-block-site-logo img{
  height: var(--npc-header-logo-h, 44px);
  width: auto;
  max-width: 220px;
  display:block;
}
/* If a logo exists, hide the text title; if no logo, title remains visible */
.npc-site-header-root.has-logo .npc-header__title{ display:none !important; }
.npc-header__title{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Core/navigation: push hamburger to the right */
.npc-header__nav .wp-block-navigation{
  display:flex;
  justify-content:flex-end;
}
.npc-header__nav .wp-block-navigation__responsive-container-open{
  margin-left:auto;
}

@media (max-width: 959px){
  /* Simple header: keep single row */
  .npc-header--simple .npc-header__bar{ flex-wrap: nowrap; }

  /* Mobile rule (unified): show Brand + CTA + Hamburger only */
  /* 1) Hide everything in actions except CTA buttons */
  .npc-site-header-root .npc-header__actions .wp-block-search,
  .npc-site-header-root .npc-header__actions .wp-block-loginout{
    display:none !important;
  }
  /* Keep CTA */
  .npc-site-header-root .npc-header__actions .wp-block-buttons{
    display:flex !important;
  }

  /* 2) Navigation: hide the inline menu list, keep hamburger */
  .npc-site-header-root .npc-header__nav .wp-block-navigation > .wp-block-navigation__container,
  .npc-site-header-root .wp-block-navigation > .wp-block-navigation__container{
    display:none !important;
  }

  /* 3) Prevent the responsive container from affecting header height when closed */
  .npc-site-header-root .npc-header__nav .wp-block-navigation__responsive-container,
  .npc-site-header-root .wp-block-navigation__responsive-container{
    display:none;
  }
  .npc-site-header-root .npc-header__nav .wp-block-navigation__responsive-container.is-menu-open,
  .npc-site-header-root .wp-block-navigation__responsive-container.is-menu-open{
    display:block;
    opacity:0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .npc-site-header-root.npc-header--menu-open .npc-header__nav .wp-block-navigation__responsive-container.is-menu-open,
  .npc-site-header-root.npc-header--menu-open .wp-block-navigation__responsive-container.is-menu-open{
    opacity:1;
    transform: translateY(0);
  }

  /* 4) Place hamburger at the far right / vertically centered */
  .npc-site-header-root .npc-header{
    position:relative;
  }
  .npc-site-header-root .npc-header__nav{
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
  }
  .npc-site-header-root .npc-header__nav .wp-block-navigation__responsive-container-open{
    display:flex !important;
    margin-left:auto;
  }
  .npc-site-header-root .wp-block-navigation__responsive-container-open{
    display:flex !important;
  }
}

/* 1200px以下で左右が端に張り付かないように（PCでもタブレットでも） */
@media (max-width: 1200px){
  .npc-site-header-root .npc-header{
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ============================================================
   NPC Header Block Styles (Desktop variants)
   - Use block style selector: Simple / Header 01..05
   ============================================================ */

@media (min-width: 960px){
  /* Simple: brand left, nav right, no actions */
  .npc-site-header-root.is-style-simple .npc-header__actions{ display:none !important; }
  .npc-site-header-root.is-style-simple .wp-block-navigation > .wp-block-navigation__container{ display:flex !important; }

  /* Header 01: brand + actions top, nav under */
  .npc-site-header-root.is-style-header-01 .npc-header__bar{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items:center;
    row-gap: 10px;
  }
  .npc-site-header-root.is-style-header-01 .npc-header__brand{ grid-area: brand; }
  .npc-site-header-root.is-style-header-01 .npc-header__actions{ grid-area: actions; justify-content:flex-end; }
  .npc-site-header-root.is-style-header-01 .npc-header__nav{ grid-area: nav; }
  .npc-site-header-root.is-style-header-01 .wp-block-navigation > .wp-block-navigation__container{ justify-content:flex-start; }

  /* Header 02: brand centered top, nav left + actions right under */
  .npc-site-header-root.is-style-header-02 .npc-header__bar{
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "nav actions";
    align-items:center;
    row-gap: 10px;
  }
  .npc-site-header-root.is-style-header-02 .npc-header__brand{ grid-area: brand; justify-content:center; }
  .npc-site-header-root.is-style-header-02 .npc-header__nav{ grid-area: nav; }
  .npc-site-header-root.is-style-header-02 .npc-header__actions{ grid-area: actions; justify-content:flex-end; }
  .npc-site-header-root.is-style-header-02 .wp-block-navigation > .wp-block-navigation__container{ justify-content:flex-start; }

  /* Header 03: brand left, nav centered, actions right (3-column) */
  .npc-site-header-root.is-style-header-03 .npc-header__bar{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand nav actions";
    align-items:center;
  }
  .npc-site-header-root.is-style-header-03 .npc-header__brand{ grid-area: brand; }
  .npc-site-header-root.is-style-header-03 .npc-header__nav{ grid-area: nav; }
  .npc-site-header-root.is-style-header-03 .npc-header__actions{ grid-area: actions; justify-content:flex-end; }
  .npc-site-header-root.is-style-header-03 .wp-block-navigation > .wp-block-navigation__container{ justify-content:center; }

  /* Header 04: brand left, nav right, actions hidden (clean) */
  .npc-site-header-root.is-style-header-04 .npc-header__actions{ display:none !important; }
  .npc-site-header-root.is-style-header-04 .wp-block-navigation > .wp-block-navigation__container{ justify-content:flex-end; }

  /* Header 05: brand left, nav under, actions right under (compact) */
  .npc-site-header-root.is-style-header-05 .npc-header__bar{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand brand"
      "nav actions";
    align-items:center;
    row-gap: 10px;
  }
  .npc-site-header-root.is-style-header-05 .npc-header__brand{ grid-area: brand; }
  .npc-site-header-root.is-style-header-05 .npc-header__nav{ grid-area: nav; }
  .npc-site-header-root.is-style-header-05 .npc-header__actions{ grid-area: actions; justify-content:flex-end; }
  .npc-site-header-root.is-style-header-05 .wp-block-navigation > .wp-block-navigation__container{ justify-content:flex-start; }
}

.npc-footer{
  padding: clamp(28px,4vw,56px) 0;
  border-top: 1px solid var(--npc-border);
}
.npc-footer__row{ gap: 16px; }
.npc-footer__title{ font-weight: 800; }
.npc-footer__desc{ color: var(--npc-muted); line-height: 1.8; }
.npc-footer__links p{ margin: 0; }
.npc-footer__links a{ text-decoration: none; }
.npc-footer__sep{ margin: 22px 0; opacity: .6; }
.npc-footer__copy{ color: var(--npc-muted); font-size: 0.92em; }
.npc-footer__list{ margin: 0; padding-left: 1.2em; }
.npc-footer__social{ margin-top: 10px; }


/* Horizontal scroll "slide" (no JS) */
.npc-hscroll{
  display:flex;
  gap:16px;
  overflow:auto;
  padding: 6px 2px 12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
}
.npc-hscroll__item{
  min-width: 280px;
  scroll-snap-align:start;
}
.npc-hscroll--images .npc-hscroll__img{
  min-width: 320px;
  scroll-snap-align:start;
}


/* Header variants */
.npc-header--transparent{background: transparent;}
.npc-header--sticky{position: sticky; top:0; z-index:999; backdrop-filter: blur(8px);}


/* FAQ spacing (when same content continues vertically) */
.npc-faq .wp-block-details,
.npc-faq .wp-block-group,
.npc-faq .wp-block-columns{
  margin-bottom: 14px;
}
.npc-faq .wp-block-details:last-child,
.npc-faq .wp-block-group:last-child,
.npc-faq .wp-block-columns:last-child{
  margin-bottom: 0;
}


/* Works by category spacing */
.npc-works__group{
  margin-top: 22px;
}
.npc-works__group:first-child{
  margin-top: 0;
}


/* Fix: Group block inner container for horizontal scroll */
.npc-hscroll{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.npc-hscroll > .wp-block-group__inner-container{
  display:flex;
  gap:16px;
  padding: 6px 2px 12px;
  scroll-snap-type:x mandatory;
}
.npc-hscroll__item{
  flex: 0 0 auto;
  min-width: 280px;
  scroll-snap-align:start;
}
.npc-hscroll--images .npc-hscroll__img{
  flex: 0 0 auto;
  min-width: 320px;
  scroll-snap-align:start;
}


.npc-media iframe[src*="youtube.com"],
.npc-media iframe[src*="youtu.be"],
.npc-media iframe[src*="vimeo.com"]{
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}


/* Pricing */
.npc-price{font-size:1.6em;margin:.4em 0 0}
.npc-card--highlight{outline:2px solid currentColor;}

/* Badge */
.npc-badge{display:inline-block;padding:.2em .6em;border-radius:var(--npc-radius-btn, 999px);font-size:.85em;margin:0 0 .4em}

/* Steps */
.npc-step__no{font-size:2.2em;line-height:1;margin:0 0 .2em;opacity:.6}

/* Video wrapper already handled by fallback; keep consistent block display */


/* Link cards */
.npc-linkcard{border-radius:var(--npc-radius);overflow:hidden}
.npc-linkcard .wp-block-image img{width:100%;height:auto;display:block;border-radius:calc(var(--npc-radius) - 4px)}
.npc-linktile .wp-block-image img{aspect-ratio: 16/10; object-fit: cover; border-radius:calc(var(--npc-radius) - 4px)}

/* News list */
.npc-newsitem{gap:12px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.npc-newsitem .wp-block-post-title{margin:0}
.npc-newsitem time{white-space:nowrap}


/* Works by category sections */
.npc-works-cat{margin-top:28px}
.npc-works-cat:first-of-type{margin-top:18px}


/* Works featured layout */
.npc-feature{gap:18px;padding:16px;border-radius:var(--npc-radius);background:rgba(0,0,0,.03)}
.npc-works--tabs .wp-block-buttons{gap:10px}


/* Works tabs: show only active */
.npc-works--tabs .npc-works-cat{display:none}
.npc-works--tabs .npc-works-cat.is-active{display:block}


/* (FAQ Accordion styles are defined later as: .npc-faq-acc .wp-block-details ...) */

/* ------------------------------
 * Hero full slider (scroll-snap)
 * ------------------------------ */
.npc-hero--full-slider{
  position:relative;
  min-height:100vh;
  overflow:hidden;
}
.npc-hero--full-slider .npc-hero__slides{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  height:100vh;
  overscroll-behavior-x:contain;
}
.npc-hero--full-slider .npc-hero__slide{
  flex:0 0 100%;
  margin:0;
  scroll-snap-align:start;
}
.npc-hero--full-slider .npc-hero__slide img{
  width:100%;
  height:100vh;
  object-fit:cover;
  display:block;
}
.npc-hero--full-slider .npc-hero__overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  padding:clamp(24px, 4vw, 56px);
  max-width:980px;
}
.npc-hero--full-slider .npc-hero__overlay :is(h1,h2,h3,p,a):empty{ display:none; }

/* ------------------------------
 * Hero full video
 * ------------------------------ */
.npc-hero--full-video{
  position:relative;
  min-height:100vh;
  overflow:hidden;
}
.npc-hero--full-video .npc-hero__video,
.npc-hero--full-video .npc-hero__video-el{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.npc-hero--full-video .npc-hero__video-el{
  object-fit:cover;
}
.npc-hero--full-video .npc-hero__overlay{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  padding:clamp(24px, 4vw, 56px);
  max-width:980px;
}
.npc-hero--full-video:before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:1;
}
.npc-hero--full-video .npc-hero__overlay :is(h1,h2,h3,p,a):empty{ display:none; }

/* ------------------------------
 * Header vertical off-canvas (details)
 * ------------------------------ */
.npc-vnav{
  position:relative;
}
.npc-vnav summary{
  list-style:none;
}
.npc-vnav summary::-webkit-details-marker{display:none;}
.npc-vnav__toggle{
  width:52px;
  height:52px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:#fff;
}
.npc-vnav__toggle span,
.npc-vnav__toggle span:before,
.npc-vnav__toggle span:after{
  content:"";
  display:block;
  width:22px;
  height:2px;
  background:currentColor;
  position:relative;
}
.npc-vnav__toggle span:before{ position:absolute; top:-7px; left:0; }
.npc-vnav__toggle span:after{ position:absolute; top:7px; left:0; }

.npc-vnav__panel{
  position:fixed;
  top:0;
  bottom:0;
  width:min(360px, 88vw);
  background:#fff;
  box-shadow:0 24px 80px rgba(0,0,0,.18);
  z-index:10060;
  padding:22px;
  transform:translateX(-105%);
  transition:transform .25s ease;
}
.npc-vnav--right .npc-vnav__panel{ right:0; transform:translateX(105%); }
.npc-vnav--left .npc-vnav__panel{ left:0; }

.npc-vnav[open].npc-vnav--left .npc-vnav__panel{ transform:translateX(0); }
.npc-vnav[open].npc-vnav--right .npc-vnav__panel{ transform:translateX(0); }

.npc-vnav__backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:10040;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.npc-vnav[open] .npc-vnav__backdrop{
  opacity:1;
  pointer-events:auto;
}
.npc-vnav__brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.npc-vnav__sitename{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  letter-spacing:.12em;
  opacity:.8;
}
.npc-vnav__links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}
.npc-vnav__links a{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  text-decoration:none;
}


/* ========= FAQ Accordion (v1) ========= */
/*
  - Uses core/details block (<details>) as accordion
  - Adds "Q" badge on summary and optional "A" badge on first answer line
  - Supports tone variants: .npc-faq-tone-a (default) / -b / -c
*/

.wp-block-details.npc-faq-acc{
  width:100%;
  --npc-faq-q-bg: var(--npc-support, var(--npc-accent));
  --npc-faq-q-fg: var(--npc-base, #fff);
  --npc-faq-a-bg: transparent;
  --npc-faq-a-fg: var(--npc-muted);
  --npc-faq-a-border: var(--npc-border);

  border: 1px solid var(--npc-border);
  border-radius: var(--npc-radius, 16px);
  overflow: hidden;
  background: var(--npc-card);
  margin: .75rem 0;
  box-shadow: var(--npc-shadow-card, 0 10px 30px rgba(17,24,39,.06));
}

.wp-block-details.npc-faq-acc.npc-faq-tone-b{
  --npc-faq-q-bg: var(--npc-accent);
  --npc-faq-q-fg: var(--npc-base, #fff);
}
.wp-block-details.npc-faq-acc.npc-faq-tone-c{
  --npc-faq-q-bg: var(--npc-muted);
  --npc-faq-q-fg: var(--npc-base, #fff);
}

.wp-block-details.npc-faq-acc summary{
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 64px 16px 56px; /* left includes Q badge */
  font-weight: 700;
  line-height: 1.35;

  /* one-line (ellipsis) */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-block-details.npc-faq-acc summary::-webkit-details-marker{ display:none; }

/* Q badge */
.wp-block-details.npc-faq-acc summary::before{
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  background: var(--npc-faq-q-bg);
  color: var(--npc-faq-q-fg);
}

/* + button (rotates when open) */
.wp-block-details.npc-faq-acc summary::after{
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .2s ease;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--npc-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.wp-block-details.npc-faq-acc[open] summary::after{
  transform: translateY(-50%) rotate(45deg);
}

/* separator line between summary and body */
.wp-block-details.npc-faq-acc summary{
  border-bottom: 1px solid transparent;
}
.wp-block-details.npc-faq-acc[open] summary{
  border-bottom-color: var(--npc-border);
}

/* answer area */
.wp-block-details.npc-faq-acc > :where(p,div,ul,ol){
  padding: 14px 16px 16px;
  margin: 0;
  color: var(--npc-muted);
  line-height: 1.8;
}

/* A badge on first answer line (works for <p>, <div>, <ul>, <ol>) */
.wp-block-details.npc-faq-acc > :where(p,div,ul,ol):first-of-type{
  position: relative;
  padding-left: 56px;
}
.wp-block-details.npc-faq-acc > :where(p,div,ul,ol):first-of-type::before{
  content: "A";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  background: var(--npc-faq-a-bg);
  color: var(--npc-faq-a-fg);
  border: 1px solid var(--npc-faq-a-border);
}

/* If WP adds a wrapper (newer markup), support it too */
.wp-block-details.npc-faq-acc .wp-block-details__content{
  padding: 14px 16px 16px;
}
.wp-block-details.npc-faq-acc .wp-block-details__content > :first-child{
  position: relative;
  padding-left: 56px;
  margin-top: 0;
}
.wp-block-details.npc-faq-acc .wp-block-details__content > :first-child::before{
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  background: var(--npc-faq-a-bg);
  color: var(--npc-faq-a-fg);
  border: 1px solid var(--npc-faq-a-border);
}


/* ========= Hero Fullscreen Slider ========= */
/*
 * NOTE:
 * Avoid 100vw-based centering in WP because 100vw includes scrollbar width
 * and can cause horizontal overflow/shift.
 *
 * Use root padding variables so "alignfull" spans the viewport content area
 * without causing overflow.
 */
.alignfull.npc-hero,
.alignfull.npc-hero--slider,
.alignfull.npc-hero--full-video{
  max-width: none;
  width: calc(100% + var(--wp--style--root--padding-left, 0px) + var(--wp--style--root--padding-right, 0px));
  margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px));
  margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px));
}
.has-npc-side-header-left .alignfull.npc-hero,
.has-npc-side-header-right .alignfull.npc-hero,
.has-npc-side-header-left .alignfull.npc-hero--slider,
.has-npc-side-header-right .alignfull.npc-hero--slider,
.has-npc-side-header-left .alignfull.npc-hero--full-video,
.has-npc-side-header-right .alignfull.npc-hero--full-video {
  max-width: none;
  width: calc(100% - 150px);
  margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px));
  margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px));
}



.npc-hero--slider{
  position: relative;
  width: 100%;
}
.npc-hero--slider .npc-hero-slide{ display: block; width: 100%; max-width: 100%; flex:0 0 auto; }
.npc-hero--slider .npc-hero-slide.is-active{ display: block; }

/* Legacy: core/cover based slide */
.npc-hero--slider .wp-block-cover{
  min-height: 100vh !important;
  width: 100vw;
  max-width: 100vw;
}
.npc-hero--slider .wp-block-cover__image-background,
.npc-hero--slider .wp-block-cover__video-background{
  object-fit: cover;
}

/* New: npc/hero-slide block */
.npc-hero--slider .npc-hero-slide{ display: block; width: 100%; max-width: 100%; flex:0 0 auto; }
.npc-hero--slider .npc-hero-slide__image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.npc-hero--slider .npc-hero-slide__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.npc-hero--slider .npc-hero-slide__inner{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 18px;
  text-align: center;
}
.npc-hero--slider .npc-hero__controls{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.npc-hero--slider .npc-hero__controls button{
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========= Hero Fullscreen Video ========= */
.npc-hero--full-video{
  position: relative;
  min-height: 100vh;
}
.npc-hero--full-video .npc-hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.npc-hero--full-video .npc-hero__video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.npc-hero--full-video .npc-hero__content{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 18px;
  text-align: center;
}

/* ========= Offcanvas (vertical / header) ========= */
.npc-no-scroll{ overflow: hidden !important; }

details.npc-vnav summary,
details.npc-hnav summary{ list-style:none; }
details.npc-vnav summary::-webkit-details-marker,
details.npc-hnav summary::-webkit-details-marker{ display:none; }

.npc-vnav__toggle,
.npc-hnav__toggle{
  position: fixed;
  top: 16px;
  z-index: 10002;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--npc-border);
  background: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
details.npc-vnav.is-right .npc-vnav__toggle{ right: 16px; }
details.npc-vnav.is-left .npc-vnav__toggle{ left: 16px; }
details.npc-hnav .npc-hnav__toggle{ right: 16px; }

.npc-vnav__panel,
.npc-hnav__panel{
  position: fixed;
  top: 0;
  height: 100vh;
  width: 320px;
  max-width: 88vw;
  z-index: 10003;
  background: #fff;
  border-right: 1px solid var(--npc-border);
  padding: 18px;
  overflow: auto;
  transform: translateX(-100%);
  transition: transform .25s ease;
}
details.npc-vnav.is-right .npc-vnav__panel{
  right: 0;
  left: auto;
  border-right: none;
  border-left: 1px solid var(--npc-border);
  transform: translateX(100%);
}
details[open].npc-vnav.is-left .npc-vnav__panel{ transform: translateX(0); left: 0; }
details[open].npc-vnav.is-right .npc-vnav__panel{ transform: translateX(0); }

details.npc-hnav .npc-hnav__panel{
  right: 0;
  left: auto;
  border-right: none;
  border-left: 1px solid var(--npc-border);
  transform: translateX(100%);
}
details[open].npc-hnav .npc-hnav__panel{ transform: translateX(0); }

.npc-vnav__backdrop,
.npc-hnav__backdrop{
  position: fixed;
  inset: 0;
  z-index: 10049;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
details[open] .npc-vnav__backdrop,
details[open] .npc-hnav__backdrop{
  opacity: 1;
  pointer-events: auto;
}

/* ========= Vertical Offcanvas Header: fixed rail ========= */
.npc-vnav__toggle{
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 0;
}
.npc-vnav.is-right .npc-vnav__toggle{ left: auto; right: 0; }

.npc-vnav__rail-logo,
.npc-vnav__rail-name{
  position: fixed;
  z-index: 10049;
  width: 64px;
  left: 0;
  text-align: center;
}
.npc-vnav.is-right .npc-vnav__rail-logo,
.npc-vnav.is-right .npc-vnav__rail-name{ left: auto; right: 0; }

.npc-vnav__rail-logo{
  top: 72px;
  padding: 6px 8px;
  font-size: 12px;
  opacity: 0.9;
}

.npc-vnav__rail-name{
  top: 50vh;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.75;
  pointer-events: none;
}


/* 固定高さの地図埋め込み（columns内など） */
.npc-map-embed--fixed{
  padding-top: 0;
  height: 360px;
}


/* FAQ 2 columns: keep columns natural (do NOT use .npc-eq here) */
.npc-faq__cols{
  align-items: flex-start;
  gap: 16px;
}
/* Ensure gutters even on themes that don't output inner container wrappers */
.npc-section.alignfull > :where(.wp-block-columns,.wp-block-group,.wp-block-buttons,.wp-block-heading,p,ul,ol,details){
  max-width: var(--npc-container);
  margin-left: auto;
  margin-right: auto;
  /* padding-left: var(--npc-gutter);
  padding-right: var(--npc-gutter); */
}




/* FAQ Cards: tone variations (applied to the section wrapper) */
.npc-faq-tone-b .npc-card{
  background: var(--npc-cat-neutral-bg);
}
.npc-faq-tone-c .npc-card{
  border-color: var(--npc-support, var(--npc-border));
  box-shadow: var(--npc-shadow-card, 0 10px 30px rgba(17,24,39,.06));
}


/* =========================
   Header / Footer (Sections)
   ========================= */
.npc-header__nav{margin-top: clamp(10px, 1.6vw, 16px);}

.npc-header--03 .npc-header__side,
.npc-header--04 .npc-header__side{
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(150px, 88vw);
  padding: 10px;
  overflow: auto;
  z-index: 50;
  background: var(--npc-base, #fff);
  border-right: 1px solid var(--npc-border);
}
.npc-header--03 .npc-header__side{left:0; right:auto;}
.npc-header--04 .npc-header__side{right:0; left:auto; border-right:0; border-left:1px solid var(--npc-border);}

/* keep page usable in editor preview (avoid fixed sidebar covering everything) */
.editor-styles-wrapper .npc-header--03 .npc-header__side,
.editor-styles-wrapper .npc-header--04 .npc-header__side{
  position: relative;
  width: 100%;
  border-left: 0;
  border-right: 0;
}


/* =========================
   Hero Blocks (Slider/Video/Embed)
   ========================= */
.npc-hero-block{
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.npc-hero-block{
  /* Height control (clamp) */
  /* NOTE: use height (not only min-height) so media (absolute) doesn't collapse to 0 when text is empty */
  height: clamp(var(--npc-hero-min, 360px), var(--npc-hero-pref, 70vh), calc(var(--npc-hero-max, 100vh) - (var(--npc-hero-subtract-header, 0) * var(--npc-header-h, 0px))));
  min-height: clamp(var(--npc-hero-min, 360px), var(--npc-hero-pref, 70vh), calc(var(--npc-hero-max, 100vh) - (var(--npc-hero-subtract-header, 0) * var(--npc-header-h, 0px))));
}

/* Height mode: aspect-ratio preset (16:9 / 21:9 / 4:3) */
.npc-hero-block.is-height-aspect{
  height: auto !important;
  aspect-ratio: var(--npc-hero-aspect, 16/9);
  /* cap height by preferred vh (and optionally subtract header) */
  max-height: calc(var(--npc-hero-pref, 70vh) - (var(--npc-hero-subtract-header, 0) * var(--npc-header-h, 0px)));
  min-height: 0 !important;
}

/* Height mode: full viewport (100vh) */
.npc-hero-block.is-height-full{
  height: calc(100svh - (var(--npc-hero-subtract-header, 0) * var(--npc-header-h, 0px)));
  min-height: var(--npc-hero-min, 360px);
}

.npc-hero-block__media{position:absolute; inset:0; overflow:hidden; z-index:1;}
/* Overlay must sit ABOVE slides but BELOW text UI */
.npc-hero-block__overlay{position:absolute; inset:0; background: rgba(0,0,0,var(--npc-hero-overlay, .35)); pointer-events:none !important; z-index:2;}

.npc-hero-block__inner{
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.npc-hero-block__content{
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(22px, 4vw, 56px) 0;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.npc-hero-block.is-content-center .npc-hero-block__content{ text-align:center; }

.npc-hero-block__title{
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.08;
  margin: 0 0 12px;
}
.npc-hero-block__text{font-size: clamp(14px, 1.6vw, 18px); margin:0 0 18px; max-width: 60ch;}
.npc-hero-block.is-content-center .npc-hero-block__text{ margin-inline: auto; }

/* Hero buttons: spacing + wrap for long labels (2 buttons => side-by-side when possible, stack when tight) */
.npc-hero-block__buttons.wp-block-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.npc-hero-block.is-content-center .npc-hero-block__buttons.wp-block-buttons{justify-content: center;}
.npc-hero-block__buttons.wp-block-buttons .wp-block-button{margin: 0 !important; flex: 0 1 auto;}
.npc-hero-block__buttons.wp-block-buttons .wp-block-button__link{white-space: nowrap; max-width: 100%;}

/* Desktop tuning: more breathing room */
@media (min-width: 782px){
  .npc-hero-block__buttons.wp-block-buttons{gap: 20px;}
}

/* 2 buttons: keep visual balance (same width) + cap width on desktop */
.npc-hero-block__buttons.wp-block-buttons.is-two .wp-block-button__link{width: 100%; text-align: center;}
@media (min-width: 782px){
  .npc-hero-block__buttons.wp-block-buttons.is-two{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 20px;
    align-items: center;
    justify-content: start;
  }
  .npc-hero-block.is-content-center .npc-hero-block__buttons.wp-block-buttons.is-two{justify-content: center;}
  .npc-hero-block__buttons.wp-block-buttons.is-two .wp-block-button{margin: 0 !important;}
}

/* Slider */
.npc-hero-block-slider{position:absolute; inset:0; display:flex; will-change: transform; transition: transform .45s ease; z-index:1;}
.npc-hero-block-slider.is-fade{display:block; transition:none;}
.npc-hero-block-slide{position:relative; height:100%; flex: 0 0 auto;}
.npc-hero-block-slide__img{width:100%; height:100%; object-fit:cover; display:block;}
.npc-hero-block-slider.is-fade .npc-hero-block-slide{position:absolute; inset:0; opacity:0; transition: opacity .35s ease;}
.npc-hero-block-slider.is-fade .npc-hero-block-slide.is-active{opacity:1;}

.npc-hero-block__arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 4;
}
.npc-hero-block__arrow--prev{left: 14px;}
.npc-hero-block__arrow--next{right: 14px;}
.npc-hero-block__arrow::before{
  content: '';
  position:absolute;
  inset: 0;
  margin:auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}
.npc-hero-block__arrow--prev::before{transform: rotate(-135deg);}

.npc-hero-block__dots{
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display:flex;
  gap: 8px;
  z-index: 4;
}
.npc-hero-block__dot{
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.npc-hero-block__dot[aria-current="true"]{ background: rgba(255,255,255,.95); }

/* Video */
.npc-hero-block-video{position:absolute; inset:0; width:100%; height:100%; object-fit: cover; object-position: var(--npc-hero-object-pos, 50% 50%); display:block;}

/* Embed */
.npc-hero-block-embed{position:absolute; inset:0;}
.npc-hero-block-embed__frame, .npc-hero-block-embed__frame iframe{width:100%; height:100%;}
.npc-hero-block-embed__frame{position:absolute; inset:0; z-index:1;}
.npc-hero-block-embed__frame iframe{border:0; display:block;}
.npc-hero-block-embed__placeholder{position:absolute; inset:0; background: rgba(0,0,0,.15);}

/* Editor preview helpers */
.editor-styles-wrapper .npc-hero-block--editor{min-height: clamp(var(--npc-hero-min, 360px), var(--npc-hero-pref, 70vh), var(--npc-hero-max, 100vh));}
.editor-styles-wrapper .npc-hero-block--editor{
  /* Editor canvas should not be forced to 100vw (it can break selection and layout). */
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: relative;
}
/*
 * Editor: keep selection stable for the slider preview (avoid grabbing clicks),
 * but allow video/embed controls to be clickable in the canvas stage.
 */
.editor-styles-wrapper .npc-hero-block--editor.npc-hero-block--slider .npc-hero-block__media,
.editor-styles-wrapper .npc-hero-block--editor.npc-hero-block--slider .npc-hero-block__media-img{
  pointer-events: none;
}
.editor-styles-wrapper .npc-hero-block--editor .npc-hero-block__overlay{
  pointer-events: none;
}
.editor-styles-wrapper .npc-hero-block__media-img{width:100%; height:100%; object-fit:cover; display:block; position:absolute; inset:0;}
.editor-styles-wrapper .npc-hero-block__media-placeholder{position:absolute; inset:0; background: rgba(0,0,0,.08);}

/* slider already defined above; keep rules minimal */


/* ----------------------------------------
 * NPC Hero full-bleed: force true viewport width
 * Notes:
 * - Some themes keep alignfull inside a max-width wrapper. This breaks out safely.
 * - Use dvw to reduce scrollbar-induced horizontal shift.
 * ---------------------------------------- */
.wp-site-blocks .alignfull.npc-hero-block,
.wp-site-blocks .alignfull.npc-hero-block--slider,
.wp-site-blocks .alignfull.npc-hero-block--video,
.wp-site-blocks .alignfull.npc-hero-block--embed {
  width: 100dvw;
  max-width: 100dvw;
  margin-left: calc(50% - 50dvw);
  margin-right: calc(50% - 50dvw);
}


/* (Removed) slider-specific overrides & inspector thumbnail grid
 * - Slider sizing is controlled by inline styles from JS (width: count*100%, per-slide width).
 * - Inspector thumbnail grid was removed in favor of the in-canvas tab editor UI.
 */

/* Slider editor UI (tab-like) */
.npc-hero-block__editor-ui{margin-top:12px;}
.npc-hero-block__tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px;}
.npc-hero-block__tab{border-radius:8px;}
.npc-hero-block__tab.is-active{box-shadow: inset 0 0 0 2px rgba(0,0,0,.18);}
.npc-hero-block__tab--add{margin-left:auto;}
.npc-hero-block__stage{border:1px solid rgba(0,0,0,.12);border-radius:10px;background:#fff;overflow:hidden;}
.npc-hero-block__stage-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.08);}
.npc-hero-block__stage-actions{display:flex;gap:10px;}
.npc-hero-block__stage-body{padding:12px;}
.npc-hero-block__stage-preview{position:relative;overflow:hidden;border-radius:8px;height:clamp(var(--npc-hero-min,360px),var(--npc-hero-pref,70vh),var(--npc-hero-max,100vh));background:rgba(0,0,0,.08);}
.npc-hero-block__stage-preview.is-height-aspect{height:auto;aspect-ratio:var(--npc-hero-aspect,16/9);max-height:var(--npc-hero-pref,70vh);min-height:var(--npc-hero-min,360px);}
.npc-hero-block__stage-preview.is-height-full{height:calc(100svh - 160px);min-height:var(--npc-hero-min,360px);}
.npc-hero-block__stage-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.npc-hero-block__stage-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.npc-hero-block__stage-iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
.npc-hero-block__stage-overlay{position:absolute;inset:0;background:rgba(0,0,0,var(--npc-hero-overlay,.35));pointer-events:none;}

/* Embed thumb preview (editor only) */
.npc-hero-block__stage-embed-thumb{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:flex-start;overflow:hidden;}
.npc-hero-block__stage-embed-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.95) contrast(.95);}
.npc-hero-block__stage-embed-badge{position:absolute;top:12px;left:12px;padding:4px 10px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;}
.npc-hero-block__stage-embed-link{position:absolute;left:12px;bottom:12px;display:inline-flex;gap:8px;align-items:center;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.92);color:#111;text-decoration:none;font-size:13px;}
.npc-hero-block__stage-embed-thumb.is-vimeo{background:rgba(0,0,0,.12);}
.npc-hero-block__stage-embed-vimeo{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:28px;color:rgba(0,0,0,.55);}
.npc-hero-block__stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px;text-align:center;color:rgba(0,0,0,.6);}
.npc-hero-block__stage-empty-title{font-weight:600;}
.npc-hero-block__stage-empty-desc{font-size:12px;}
.npc-hero-block__stage-change{position:absolute;left:12px;bottom:12px;z-index:3;}

.npc-hero-block__tab{cursor:grab;}
.npc-hero-block__tab.is-dragging{opacity:.6;cursor:grabbing;}
.npc-hero-block__stage-fields{margin-top:12px;display:grid;gap:10px;}
.npc-hero-block__stage-fields .components-base-control{margin:0;}
.npc-hero-block__focal-row{display:grid;grid-template-columns: 1fr 120px;gap:10px;align-items:end;}
.npc-hero-block__focal-row .components-range-control{margin:0;}
.npc-hero-block__focal-row .components-text-control__input{width:100%;}





/* Play button UI is not used (autoplay only). Keep it hidden for safety. */
.npc-hero-block__play{display:none !important;}


/* ---- Hero Block: Background media should not block page interaction ---- */
.npc-hero-block__overlay{pointer-events:none !important;}
.npc-hero-block--video .npc-hero-block__media,
.npc-hero-block--embed .npc-hero-block__media{pointer-events:auto;}
.npc-hero-block--video .npc-hero-block__media video{pointer-events:none;}
.npc-hero-block--embed .npc-hero-block__media iframe{pointer-events:none;}
/* ensure embedded iframe fits */
.npc-hero-block--embed iframe{width:100%;height:100%;border:0;display:block;}


/* === NPC Hero Block: media cover helpers (fix16) === */
.npc-hero-block__media img,
.npc-hero-block__media video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: var(--npc-hero-object-pos,50% 50%);
  display:block;
}

/* Embed (iframe) needs JS-driven sizing; position it like background */

.npc-hero-block-embed__poster{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  display:block;
}

.npc-hero-block--embed .npc-hero-block-embed__frame{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.npc-hero-block--embed .npc-hero-block-embed__frame iframe{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  border:0;
}




/* =========================
   Header: padding + hamburger + overlay animation (NPC)
   Paste at END of sections.css
   ========================= */

/* 1200px以下：左右が端にくっつくのを防ぐ（上下と同じ量に寄せる） */
@media (max-width: 1200px) {

  .npc-header,
  .npc-section--header {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* “ヘッダー内のnavが下段に居ても”右上に寄せられるように基準を作る */
.npc-header {
  position: relative;
}

/* 既存CSSで mobile 時に .wp-block-navigation__container を丸ごと消していて、
   オーバーレイの中のメニューまで消えるので、消す範囲を限定する */
@media (max-width: 959px) {

  /* PC用の横並びメニューだけ隠す（オーバーレイ内のメニューは残す） */
  .npc-header__nav .wp-block-navigation>.wp-block-navigation__container {
    display: none !important;
  }

  /* オーバーレイ内のメニューは表示させる */
  .npc-header__nav .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    display: block !important;
  }
}

/* ハンバーガー位置：simple以外も “ロゴ反対側の右端/上下中央” に統一 */
@media (max-width: 959px) {
  .npc-header__nav .wp-block-navigation__responsive-container-open {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    margin: 0 !important;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 60;
  }

  /* closeボタンも右上に（オーバーレイ内） */
  .npc-header .wp-block-navigation__responsive-container-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 3本線→×（WP標準SVGは使わず、疑似要素で描画） */
@media (max-width: 959px) {

  .npc-header .wp-block-navigation__responsive-container-open svg,
  .npc-header .wp-block-navigation__responsive-container-close svg {
    display: none !important;
  }

  /* open = 3本線（背景グラデで“3本”を作る） */
  .npc-header .wp-block-navigation__responsive-container-open {
    background:
      linear-gradient(currentColor, currentColor) 50% 32%/22px 2px no-repeat,
      linear-gradient(currentColor, currentColor) 50% 50%/22px 2px no-repeat,
      linear-gradient(currentColor, currentColor) 50% 68%/22px 2px no-repeat;
    border-radius: 12px;
  }

  /* close = ×（疑似要素2本を回転） */
  .npc-header .wp-block-navigation__responsive-container-close {
    background: transparent;
    border-radius: 12px;
  }

  .npc-header .wp-block-navigation__responsive-container-close::before,
  .npc-header .wp-block-navigation__responsive-container-close::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease;
  }

  .npc-header .wp-block-navigation__responsive-container-close::before {
    transform: rotate(45deg);
  }

  .npc-header .wp-block-navigation__responsive-container-close::after {
    transform: rotate(-45deg);
  }

  /* くるっと回る（開いた状態で close ボタンを回転） */
  .npc-header.npc-header--menu-open .wp-block-navigation__responsive-container-close {
    transform: rotate(180deg);
    transition: transform .25s ease;
  }
}

/* メニューが “ふわっと開く” */
@media (max-width: 959px) {
  .npc-header .wp-block-navigation__responsive-container {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
  }

  .npc-header .wp-block-navigation__responsive-container.is-menu-open {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 開いた時：メニュー下に “検索/ログアウト/CTA” も出す（下固定） */
@media (max-width: 959px) {
  .npc-header__actions {
    display: none !important;
  }

  .npc-header.npc-header--menu-open .npc-header__actions {
    display: flex !important;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 100000;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* 検索だけ横幅を稼ぐ */
  .npc-header.npc-header--menu-open .npc-header__actions .wp-block-search {
    flex: 1 1 240px;
  }
}

/* ============================================================
   NPC Site Header Block (npc/site-header)
   - mobile: brand + hamburger only
   - desktop: show nav/actions as authored
   ============================================================ */

.npc-site-header-root .npc-header__bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.npc-site-header-root .npc-header__brand{ min-width:0; display:flex; align-items:center; gap:10px; flex-wrap:nowrap; }
.npc-site-header-root .npc-header__title{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* brand position swap */
.npc-site-header-root.is-brand-right .npc-header__bar{ flex-direction: row-reverse; }
.npc-site-header-root.is-brand-right .npc-header__actions{ flex-direction: row-reverse; }

/* mobile rules */
@media (max-width: 959px){
  /* keep bar padded */
  .npc-site-header-root .npc-header{ padding-left:14px; padding-right:14px; }

  /* hide actions and desktop menu items */
  .npc-site-header-root .npc-header__actions{ display:none !important; }
  .npc-site-header-root .wp-block-navigation > .wp-block-navigation__container{ display:none !important; }

  /* hamburger button at far edge */
  .npc-site-header-root .wp-block-navigation__responsive-container-open{
    width:44px; height:44px;
    display:flex; align-items:center; justify-content:center;
    margin:0; padding:0;
    position:relative;
    border-radius:12px;
  }

  /* hide WP default icon and draw our 3 lines */
  .npc-site-header-root .wp-block-navigation__responsive-container-open svg,
  .npc-site-header-root .wp-block-navigation__responsive-container-close svg{ display:none !important; }

  .npc-site-header-root .wp-block-navigation__responsive-container-open::before,
  .npc-site-header-root .wp-block-navigation__responsive-container-open::after,
  .npc-site-header-root .wp-block-navigation__responsive-container-open .npc-burger__mid{
    content:"";
    position:absolute;
    width:22px; height:2px;
    border-radius:2px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
    left:50%;
    transform: translateX(-50%);
  }
  .npc-site-header-root .wp-block-navigation__responsive-container-open::before{ top:16px; }
  .npc-site-header-root .wp-block-navigation__responsive-container-open .npc-burger__mid{ top:50%; transform: translate(-50%,-50%); }
  .npc-site-header-root .wp-block-navigation__responsive-container-open::after{ bottom:16px; }

  /* overlay fade */
  .npc-site-header-root .wp-block-navigation__responsive-container{
    opacity:0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .npc-site-header-root .wp-block-navigation__responsive-container.is-menu-open{
    opacity:1;
    transform: translateY(0);
  }

  /* close button = X */
  .npc-site-header-root .wp-block-navigation__responsive-container-close{
    width:44px;height:44px;
    display:flex;align-items:center;justify-content:center;
    border-radius:12px;
    position:relative;
  }
  .npc-site-header-root .wp-block-navigation__responsive-container-close::before,
  .npc-site-header-root .wp-block-navigation__responsive-container-close::after{
    content:"";
    position:absolute;
    width:22px;height:2px;border-radius:2px;
    background: currentColor;
    transition: transform .25s ease;
  }
  .npc-site-header-root .wp-block-navigation__responsive-container-close::before{ transform: rotate(45deg); }
  .npc-site-header-root .wp-block-navigation__responsive-container-close::after{ transform: rotate(-45deg); }

  /* animate burger -> X on open */
  .npc-site-header-root.npc-header--menu-open .wp-block-navigation__responsive-container-open{
    transform: rotate(180deg);
    transition: transform .25s ease;
  }
  .npc-site-header-root.npc-header--menu-open .wp-block-navigation__responsive-container-open::before{
    top:50%;
    transform: translate(-50%,-50%) rotate(45deg);
    left:50%;
  }
  .npc-site-header-root.npc-header--menu-open .wp-block-navigation__responsive-container-open::after{
    bottom:auto;
    top:50%;
    transform: translate(-50%,-50%) rotate(-45deg);
    left:50%;
  }
  .npc-site-header-root.npc-header--menu-open .wp-block-navigation__responsive-container-open .npc-burger__mid{
    opacity:0;
  }
}
