/* Shared header, navigation, and footer. */

/* =============== 3) Header / Nav / Footer（最小修正・no） =============== */

  /* 0) ヘッダーをフローティング（スクロールしても常に見える） */
  body{
    --iks-sticky-header-top: 0px;
    --iks-fixed-header-h: 56px; /* JSで実測して上書き */
  }
  body.admin-bar:is(.tax-location, .page-spots){
    --iks-sticky-header-top: 32px;
  }
  @media (max-width:782px){
    body.admin-bar:is(.tax-location, .page-spots){
      --iks-sticky-header-top: 46px;
    }
  }


  /* single-spot：ヘッダーの縦余白を圧縮（Custom CSSの後勝ち対策でshorthand指定） */
  body.single-spot #masthead,
  body.single-spot .site-header{
    padding: 0;
  }
  body.single-spot #masthead .inside-header,
  body.single-spot .site-header .inside-header{
    padding: 0 14px;
    min-height: 0;
  }
  body.single-spot #masthead .inside-navigation,
  body.single-spot .site-header .inside-navigation{
    padding: 0 14px;
    min-height: 0;
  }
  body.single-spot #masthead .main-navigation,
  body.single-spot .site-header .main-navigation{
    min-height: 0;
  }
  body.single-spot #masthead .main-navigation .main-nav > ul > li > a{
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.2;
  }
  /* single-spot：右上メニューボタンは “モバイルのみ” 極小化（PCで二重表示しない） */
  @media (max-width: 768px){
    body.single-spot #masthead button.menu-toggle,
    body.single-spot .site-header button.menu-toggle{
      padding: 0 12px;
      height: 28px;
      min-height: 0;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    body.single-spot #masthead .mobile-menu-control-wrapper,
    body.single-spot .site-header .mobile-menu-control-wrapper{
      padding: 0;
      min-height: 0;
      display: flex;
      align-items: center;
    }
    /* アイコン自体が縦に引き伸ばされないように保険 */
    body.single-spot #masthead button.menu-toggle .gp-icon,
    body.single-spot .site-header button.menu-toggle .gp-icon{
      height: 1em;
      width: 1em;
    }
  }

  /* PC：single-spot でもリンク一覧はドロップダウン化し、トグルだけ表示 */
  @media (min-width: 769px){
    body.single-spot #masthead button.menu-toggle,
    body.single-spot .site-header button.menu-toggle{
      padding: 0 12px;
      height: 30px;
      min-height: 0;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    body.single-spot #masthead .mobile-menu-control-wrapper,
    body.single-spot .site-header .mobile-menu-control-wrapper{
      display: flex;
      align-items: center;
      padding: 0;
      min-height: 0;
    }
    body.single-spot #masthead .inside-navigation,
    body.single-spot .site-header .inside-navigation{
      justify-content: flex-end;
      overflow: visible;
    }
    body.single-spot #masthead .main-navigation,
    body.single-spot .site-header .main-navigation{
      position: relative;
    }
    body.single-spot #masthead .main-navigation:not(.toggled) .main-nav > ul,
    body.single-spot .site-header .main-navigation:not(.toggled) .main-nav > ul{
      display: none;
    }
    body.single-spot #masthead .main-navigation.toggled .main-nav > ul,
    body.single-spot .site-header .main-navigation.toggled .main-nav > ul{
      position: absolute;
      top: calc(100% + 10px);
      right: 14px;
      left: auto;
      min-width: min(280px, calc(100vw - 28px));
      margin: 0;
      padding: 10px;
      display: grid;
      gap: 4px;
      list-style: none;
      border-radius: 16px;
      border: 1px solid rgba(15,23,42,.10);
      background: rgba(255,255,255,.98);
      backdrop-filter: blur(8px);
      box-shadow: 0 16px 34px rgba(15,23,42,.18);
      z-index: 1605;
    }
    body.single-spot #masthead .main-navigation.toggled .main-nav > ul > li,
    body.single-spot .site-header .main-navigation.toggled .main-nav > ul > li{
      margin: 0;
      width: 100%;
    }
    body.single-spot #masthead .main-navigation.toggled .main-nav > ul > li > a,
    body.single-spot .site-header .main-navigation.toggled .main-nav > ul > li > a{
      display: block;
      padding: 10px 12px;
      border-radius: 12px;
      line-height: 1.35;
    }
    body.single-spot #masthead .main-navigation.toggled .main-nav > ul > li > a:focus-visible,
    body.single-spot .site-header .main-navigation.toggled .main-nav > ul > li > a:focus-visible{
      outline: 2px solid rgba(59,130,246,.35);
      outline-offset: 2px;
    }
  }
  @media (min-width: 769px) and (hover:hover){
    body.single-spot #masthead .main-navigation.toggled .main-nav > ul > li > a:hover,
    body.single-spot .site-header .main-navigation.toggled .main-nav > ul > li > a:hover{
      background: #f8fafc;
    }
  }


  /* 1) tax-location（/ と /spots を含む）は標準ヘッダー中身を無効化 */
  body.tax-location header:not(.location-archive-topbar),
  body.tax-location #site-header,
  body.tax-location #masthead,
  body.tax-location .site-header{
    display: contents; /* ←コンテナだけ消し、子要素（パンくず等）は描画 */
  }

  /* 2) 余計なヘッダー要素は個別に隠す（パンくずは除外） */
  body.tax-location .inside-header,
  body.tax-location .site-branding,
  body.tax-location .top-bar,
  body.tax-location .main-navigation,
  body.tax-location .mobile-menu-control-wrapper{
    display: none;
  }

  /* 3) パンくずは表示を担保（代表的セレクタを網羅） */
  body.tax-location .breadcrumb,
  body.tax-location .breadcrumbs,
  body.tax-location #breadcrumbs,
  body.tax-location .rank-math-breadcrumbs,
  body.tax-location .yoast-breadcrumbs{
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    font-size: .875rem;
    margin: clamp(12px, 2vw, 18px) var(--card-pad, 16px) clamp(12px, 2vw, 18px);
  }

  /* 4) フッターは表示（taxonomy-location でも表示） */
  /* ※従来のフッター非表示ルールは削除 */


  /* 5) その他の固定系も従来通り */
  body.tax-location .back-to-top,
  body.tax-location .gp-back-to-top,
  body.tax-location .sticky-footer,
  body.tax-location .fixed-footer,
  body.tax-location [data-sticky="footer"]{
    display: none;
  }

  /* /spots /items /articles + single item/waza/aruaru: hide GeneratePress default header */
  body:is(.page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) #site-header,
  body:is(.page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) #masthead,
  body:is(.page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) .site-header,
  body:is(.page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) .inside-header,
  body:is(.page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) .site-branding,
  body:is(.page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) .top-bar,
  body:is(.page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) .main-navigation,
  body:is(.page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) .mobile-menu-control-wrapper{
    display: none;
  }

  /* Safety net: if unified header exists, always hide GeneratePress default header stack. */
  body:has(.iks-unified-header) #site-header,
  body:has(.iks-unified-header) #masthead,
  body:has(.iks-unified-header) .site-header,
  body:has(.iks-unified-header) .inside-header,
  body:has(.iks-unified-header) .site-branding,
  body:has(.iks-unified-header) .top-bar,
  body:has(.iks-unified-header) .main-navigation,
  body:has(.iks-unified-header) .mobile-menu-control-wrapper{
    display: none;
  }

  /* Shared header: /, /spots, /items, /articles */
  .iks-unified-header{
    position: sticky;
    top: var(--iks-sticky-header-top, 0px);
    z-index: 1400;
    margin: 0;
    background: #ffffff;
  }
  /* Keep unified header centered even when parent layout differs by template. */
  body:is(.tax-location, .page-spots, .page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) .iks-unified-header{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* Location/spots archive: keep the scroll-linked header out of document flow. */
  body.tax-location .iks-unified-header,
  body.page-spots .iks-unified-header:not([data-mobile-shell-spot-header]){
    position: fixed;
    top: var(--iks-sticky-header-top, 0px);
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    z-index: 1600;
  }
  /* フローティングヘッダー分だけコンテンツを下げる */
  body.tax-location #locationArchive{
    padding-top: var(--iks-unified-header-h, 56px);
  }
  body.tax-location:is(.home,.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]){
    background: #050505;
    color: #f8fafc;
    box-shadow: 0 14px 30px rgba(0,0,0,.26);
    transition: transform .22s ease, opacity .18s ease, visibility 0s linear 0s;
    will-change: transform, opacity;
  }
  body.tax-location:not(.home):not(.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]),
  body.page-spots:not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]){
    background: #ffffff;
    color: #0f172a;
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 1px 12px rgba(15,23,42,.08);
    transition: transform .22s ease, opacity .18s ease, visibility 0s linear 0s;
    will-change: transform, opacity;
  }
  body.tax-location:is(.home,.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]).is-scroll-hidden{
    transform: translateY(calc(-100% - var(--iks-sticky-header-top, 0px)));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 0s, .22s;
  }
  body.tax-location:not(.iks-detail-open) #locationArchive{
    transition: padding-top .22s ease;
  }
  body.tax-location:is(.home,.front-page):not(.iks-detail-open).iks-unified-header-scroll-hidden #locationArchive{
    padding-top: 0;
  }
  body.page-spots:not(.iks-detail-open) #locationArchive{
    padding-top: 0;
  }
  body.tax-location:is(.home,.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__brand,
  body.tax-location:is(.home,.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__link,
  body.tax-location:is(.home,.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle){
    color: #f8fafc;
  }
  body.tax-location:is(.home,.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):hover,
  body.tax-location:is(.home,.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):active{
    color: #ffffff;
  }
  body.tax-location:not(.home):not(.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__brand,
  body.tax-location:not(.home):not(.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__link,
  body.tax-location:not(.home):not(.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle),
  body.page-spots:not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__brand,
  body.page-spots:not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__link,
  body.page-spots:not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle){
    color: #0f172a;
  }
  body.tax-location:not(.home):not(.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):hover,
  body.tax-location:not(.home):not(.front-page):not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):active,
  body.page-spots:not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):hover,
  body.page-spots:not(.iks-detail-open) .iks-unified-header:not([data-mobile-shell-spot-header]) .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):active{
    color: #0f172a;
  }
  /* TOP: 先頭セクション（育あるある）が共通ヘッダーに近すぎるのを防ぐ */
  body.home.tax-location.iks-slider-mode #locationArchive > #aruaruCategoryHeading{
    padding-top: clamp(8px, 1.8vw, 14px);
  }
  /* page-items / page-articles keep WP admin-bar margin-top, so unified header top should stay 0. */
  body:is(.page-items, .page-waza, .page-aruaru, .page-articles, .single-item, .single-waza, .single-aruaru) .iks-unified-header{
    top: 0;
  }
  .iks-unified-header__inner{
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(12px, 2vw, 20px) clamp(10px, 2.8vw, 18px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(10px, 2vw, 20px);
    position: relative;
  }
  .iks-unified-header__brand{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-top: clamp(4px, .8vw, 8px);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
    font-family: "Mamelon", "Mamelon-3-Hi-Regular", "マメロン", "Noto Sans JP", sans-serif;
    font-size: clamp(0.9rem, 2.0vw, 1.15rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  @keyframes iksBrandReveal{
    0%  { opacity:0; transform: scale(.72) translateY(6px); }
    65% { opacity:1; transform: scale(1.06) translateY(-2px); }
    82% { transform: scale(.97) translateY(1px); }
    100%{ opacity:1; transform: scale(1) translateY(0); }
  }

  .iks-unified-header__brand-image{
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(152px, 20.8vw, 216px);
    animation: iksBrandReveal .72s cubic-bezier(.16,.84,.19,1) both;
  }
  @media (prefers-reduced-motion: reduce){
    .iks-unified-header__brand-image{ animation: none; }
  }

  /* TOP：セクション見出しに応じてブランド表示を切替（育スポット/育記事） */
  body.home.tax-location .iks-unified-header__brand.iks-unified-header__brand--section{
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
  }
  @media (hover:hover){
    .iks-unified-header__brand:hover{
      opacity: .84;
    }
  }
  .iks-unified-header__brand:focus-visible{
    outline: 3px solid rgba(59,130,246,.35);
    outline-offset: 2px;
  }
  .iks-unified-header__links{
    margin-left: auto;
    flex: 1 1 auto;
    min-width: 0;
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 2.6vw, 34px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0;
  }
  .iks-unified-header__links::-webkit-scrollbar{
    display: none;
  }
  .iks-unified-header__link{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    text-decoration: none;
    font-size: clamp(.94rem, 1.8vw, 1.24rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: color .15s ease, opacity .15s ease;
  }
  .iks-unified-header__text{
    text-decoration: none;
  }
  .iks-unified-header__icon{
    width: 1.55em;
    height: 1.55em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }
  .iks-unified-header__icon svg{
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .iks-unified-header__link--spots .iks-unified-header__icon{ color: #8edbc0; }
  .iks-unified-header__link--items .iks-unified-header__icon{ color: #f5a6bf; }
  .iks-unified-header__link--articles .iks-unified-header__icon{ color: #81cdef; }
  .iks-unified-header__link--aruaru .iks-unified-header__icon{ color: #f8b35e; }
  @media (hover:hover){
    .iks-unified-header__link:hover{
      color: #0f172a;
    }
  }
  .iks-unified-header__link:focus-visible{
    outline: 3px solid rgba(59,130,246,.35);
    outline-offset: 2px;
  }
  .iks-unified-header__link.is-active{
    color: #1f2937;
  }
  .iks-unified-header__link.is-active .iks-unified-header__text{
    text-decoration: none;
  }
  /* Unified header: Location picker (地方) */
  .iks-unified-header__loc{
    display: none;
    position: relative;
    flex: 0 0 auto;
  }
  /* /spots + /location/* は常時表示、TOPは「育スポット切替時のみ」表示 */
  body.tax-location:not(.home) .iks-unified-header__loc{
    display: inline-flex;
  }
  body.home.tax-location.iks-brand-spots-active .iks-unified-header__loc{
    display: inline-flex;
  }

  .iks-unified-header__loc-toggle{
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 38px;
    padding: 0 .88rem;
    border-radius: 999px;
    border: 1px solid #f0d1ca;
    background: #F9EBE8;
    color: #2B2B2B;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    gap: .42em;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 6px 16px rgba(43,43,43,.06);
    transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  }
  .iks-unified-header__loc-icon{
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }
  .iks-unified-header__loc-icon svg{
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .iks-unified-header__loc-text{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .iks-unified-header__loc-toggle::-webkit-details-marker{ display:none; }
  .iks-unified-header__loc-toggle::marker{ display:none; }
  .iks-unified-header__loc-toggle:focus-visible{
    outline: 2px solid rgba(43,43,43,.24);
    outline-offset: 2px;
  }
  @media (hover:hover){
    .iks-unified-header__loc-toggle:hover{
      background: #f4d9d3;
      border-color: #eac4bc;
      color: #2B2B2B;
      box-shadow: 0 8px 18px rgba(43,43,43,.08);
    }
  }

  .iks-unified-header__loc[open]{
    z-index: 1502;
  }
  .iks-unified-header.is-location-panel-open{
    z-index: 2147483646;
    pointer-events: none;
  }
  .iks-unified-header.is-location-panel-open .iks-unified-header__loc{
    pointer-events: auto;
  }
  .iks-location-panel-body-backdrop{
    position: fixed;
    inset: 0;
    z-index: 2147483645;
    display: none;
    background: transparent;
    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;
  }
  .iks-location-panel-body-backdrop.is-visible:not([hidden]){
    display: block;
  }
  body.is-location-panel-open #locationArchive :is(iframe, a, button, .spot-grid-card){
    pointer-events: none;
  }
  .iks-unified-header__loc-backdrop{
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    background: transparent;
    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;
  }
  .iks-unified-header__loc-backdrop.is-visible:not([hidden]){
    display: block;
  }
  .iks-unified-header__loc[open] .iks-unified-header__loc-toggle{
    position: relative;
    z-index: 3;
  }
  .iks-unified-header__loc-caret{
    display: inline-block;
    font-size: .72em;
    line-height: 1;
    transition: transform .18s ease;
  }
  .iks-unified-header__loc[open] .iks-unified-header__loc-caret{
    transform: rotate(180deg);
  }

  .iks-unified-header__loc-panel{
    position: absolute;
    z-index: 2;
    top: calc(100% + 10px);
    left: 0;
    --iks-loc-control-h: 44px;
    --iks-loc-control-px: 14px;
    --iks-loc-control-radius: 12px;
    --iks-loc-control-font-size: .92rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: min(92vw, 340px);
    max-width: calc(100vw - 16px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    border: 1px solid rgba(148,163,184,.35);
    padding: 12px;
    box-sizing: border-box;
    overflow: visible;
  }

  /* パネル内は縦並びにする（既存 .location-archive-header__selects は横並びなので上書き） */
  .iks-unified-header__loc-panel .location-archive-header__selects{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  body:is(.tax-location, .has-location-header) .iks-unified-header__loc-panel .location-archive-header__selects{
    align-items: stretch;
  }
  .iks-unified-header__loc-panel .location-archive-header__geo-actions,
  .iks-unified-header__loc-panel .location-archive-header__panel-actions{
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }
  .iks-unified-header__loc-panel .location-archive-header__geo-actions{
    display: flex;
    flex-direction: column;
  }
  .iks-unified-header__loc-panel .location-archive-header__selects .iks-fish-select{
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: stretch;
    margin: 0;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .iks-unified-header__loc-panel .location-archive-header__select-row{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }
  .iks-unified-header__loc-panel .location-archive-header__select-row .iks-fish-select{
    display: flex;
    grid-column: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }
  body:is(.tax-location, .has-location-header) .iks-unified-header__loc-panel .location-archive-header__select-row,
  body:is(.tax-location, .has-location-header) .iks-unified-header__loc-panel .location-archive-header__selects .iks-fish-select{
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  body:is(.tax-location, .has-location-header) .iks-unified-header__loc-panel .location-archive-header__selects .iks-fish-select{
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
  }
  body:is(.tax-location, .has-location-header) .iks-unified-header__loc-panel .location-archive-header__select-row .iks-fish-select{
    grid-column: 1;
  }
  .iks-unified-header__loc-panel .location-archive-header__level-clear-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin-left: 8px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(100,116,139,.28);
    background: rgba(248,250,252,.82);
    box-shadow: none;
    color: #64748b;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
  }
  .iks-unified-header__loc-panel .location-archive-header__level-clear-btn[hidden]{
    display: none;
  }
  .iks-unified-header__loc-panel .location-archive-header__level-clear-btn:hover,
  .iks-unified-header__loc-panel .location-archive-header__level-clear-btn:focus-visible{
    border-color: rgba(100,116,139,.48);
    background: #f8fafc;
    color: #334155;
    outline: none;
  }
  .iks-unified-header__loc-panel .location-archive-header__geo-btn,
  .iks-unified-header__loc-panel .location-archive-header__selects .iks-fish-select select,
  .iks-unified-header__loc-panel .location-archive-header__clear-btn,
  .iks-unified-header__loc-panel .location-archive-header__apply-btn{
    width: 100%;
    min-width: 0;
    min-height: var(--iks-loc-control-h);
    padding: 0 var(--iks-loc-control-px);
    border-radius: var(--iks-loc-control-radius);
    font-family: inherit;
    font-size: var(--iks-loc-control-font-size);
    line-height: 1.2;
    box-sizing: border-box;
  }
  .iks-unified-header__loc-panel .location-archive-header__geo-btn,
  .iks-unified-header__loc-panel .location-archive-header__selects .iks-fish-select select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  .iks-unified-header__loc-panel .location-archive-header__geo-btn{
    justify-content: flex-start;
    height: var(--iks-loc-control-h);
  }
  .iks-unified-header__loc-panel .location-archive-header__geo-actions{
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .iks-unified-header__loc-panel .location-archive-header__geo-btn{
    width: auto;
    min-width: 116px;
    flex: 0 0 auto;
  }
  .iks-unified-header__loc-panel .location-archive-header__geo-status--inline{
    flex: 1 1 auto;
  }
  .iks-unified-header__loc-panel .location-archive-header__selects .iks-fish-select select{
    display: block;
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    height: var(--iks-loc-control-h);
    padding-right: calc(var(--iks-loc-control-px) + 24px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 4.1 6 7.9l3.8-3.8' fill='none' stroke='%2364758b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--iks-loc-control-px) center;
    background-size: 12px 12px;
    field-sizing: fixed;
  }
  body:is(.tax-location, .has-location-header) .iks-unified-header__loc-panel .location-archive-header__selects .iks-fish-select select{
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
    box-sizing: border-box;
  }
  .iks-unified-header__loc-panel .location-archive-header__panel-actions{
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 0;
  }
  .iks-unified-header__loc-panel .location-archive-header__clear-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38%;
    width: auto;
    height: var(--iks-loc-control-h);
    border: 1px solid rgba(100,116,139,.36);
    background: rgba(248,250,252,.68);
    box-shadow: none;
    color: #64748b;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
  }
  .iks-unified-header__loc-panel .location-archive-header__clear-btn:hover,
  .iks-unified-header__loc-panel .location-archive-header__clear-btn:focus-visible{
    border-color: rgba(100,116,139,.56);
    background: #f8fafc;
    color: #334155;
    outline: none;
  }
  .iks-unified-header__loc-panel .location-archive-header__apply-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    width: auto;
    height: var(--iks-loc-control-h);
    border: 1px solid transparent;
    background: linear-gradient(180deg, #3dbcd2 0%, #1f9fb8 100%);
    box-shadow: 0 12px 24px rgba(31,159,184,.18);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
  }
  .iks-unified-header__loc-panel .location-archive-header__apply-btn:hover,
  .iks-unified-header__loc-panel .location-archive-header__apply-btn:focus-visible{
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(31,159,184,.22);
    outline: none;
  }
  .iks-unified-header__loc-panel .location-archive-header__apply-btn:disabled{
    opacity: .62;
    cursor: default;
    transform: none;
    box-shadow: none;
  }
  .iks-unified-header__actions{
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  .iks-unified-header__more{
    position: relative;
    flex: 0 0 auto;
    margin-left: 0;
  }
  .iks-unified-header__more-toggle.iks-unified-header__sort-toggle{
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: .38rem .82rem;
    border-radius: 999px;
    border: 1.5px solid #3dbcd2;
    background: transparent;
    color: #3dbcd2;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    gap: .38em;
    white-space: nowrap;
    box-shadow: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
  }
  body.tax-location:not(.home) .iks-unified-header__more-toggle.iks-unified-header__sort-toggle,
  body.home.tax-location.iks-brand-spots-active .iks-unified-header__more-toggle.iks-unified-header__sort-toggle{
    display: inline-flex;
  }
  .iks-unified-header__sort-toggle[hidden]{
    display: none;
  }
  .iks-unified-header__sort-toggle.is-active{
    background: #3dbcd2;
    border-color: #3dbcd2;
    color: #ffffff;
  }
  .iks-unified-header__sort-toggle:disabled{
    opacity: .45;
    cursor: not-allowed;
  }
  .iks-unified-header__sort-icon{
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
  }
  .iks-unified-header__sort-icon svg{
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    stroke: none;
  }
  .iks-unified-header__sort-text{
    display: inline-block;
    line-height: 1;
  }
  @media (hover:hover){
    .iks-unified-header__sort-toggle:not(:disabled):not(.is-active):hover{
      background: #3dbcd2;
      border-color: #3dbcd2;
      color: #ffffff;
    }
  }
  .iks-unified-header__sort-toggle:focus-visible{
    outline: 2px solid #3dbcd2;
    outline-offset: 2px;
  }
  .iks-unified-header__sort-toggle.is-loading::after{
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: iksSpin 0.8s linear infinite;
  }
  .iks-unified-header__sort-toggle.is-loading .iks-unified-header__sort-icon,
  .iks-unified-header__sort-toggle.is-loading .iks-unified-header__sort-text{
    opacity: 0;
  }
  .iks-unified-header__more[open]{
    z-index: 1502;
  }
  .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle){
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #334155;
    cursor: pointer;
    user-select: none;
    box-shadow: none;
    transition: none;
    -webkit-tap-highlight-color: transparent;
  }
  .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle)::-webkit-details-marker{
    display: none;
  }
  .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle)::marker{
    content: "";
  }
  .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):focus-visible{ outline: none; }
  .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):active{ background: transparent; color: #334155; }
  @media (hover:hover){
    .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle):hover{
      transform: none;
      background: transparent;
      color: #334155;
      box-shadow: none;
    }
  }
  .iks-unified-header__more-icon{
    position: relative;
    width: 17px;
    height: 2.2px;
    border-radius: 999px;
    background: currentColor;
    display: inline-block;
  }
  .iks-unified-header__more-icon::before,
  .iks-unified-header__more-icon::after{
    content: "";
    position: absolute;
    left: 0;
    width: 17px;
    height: 2.2px;
    border-radius: 999px;
    background: currentColor;
  }
  .iks-unified-header__more-icon::before{
    top: -5.5px;
  }
  .iks-unified-header__more-icon::after{
    top: 5.5px;
  }
  .iks-unified-header__more[open] .iks-unified-header__more-toggle{
    background: transparent;
    border-color: transparent;
    color: #334155;
    box-shadow: none;
  }
  .iks-unified-header__more[open] .iks-unified-header__more-icon{
    background: transparent;
  }
  .iks-unified-header__more[open] .iks-unified-header__more-icon::before{
    top: 0;
    transform: rotate(45deg);
  }
  .iks-unified-header__more[open] .iks-unified-header__more-icon::after{
    top: 0;
    transform: rotate(-45deg);
  }
  .iks-unified-header__more-panel{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: min(250px, 90vw);
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.1);
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 34px rgba(15,23,42,.18);
  }
  .iks-unified-header__more-link{
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #0f172a;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
  }
  @media (hover:hover){
    .iks-unified-header__more-link:hover{
      background: #f8fafc;
    }
  }
  .iks-unified-header__more-link:focus-visible{
    outline: 2px solid rgba(59,130,246,.35);
    outline-offset: 2px;
  }
  body:is(.tax-location, .page-spots).iks-detail-open .iks-unified-header{
    display: none;
  }
  @media (max-width: 768px){
    .iks-unified-header__sort-toggle{
      padding: .34rem .72rem;
      font-size: .74rem;
    }
    .iks-unified-header__inner{
      padding: 12px 10px 8px;
      gap: 8px;
    }
    .iks-unified-header__brand{
      padding-top: clamp(8px, 2.4vw, 12px);
      font-size: clamp(0.9rem, 5.2vw, 1.05rem);
    }
    .iks-unified-header__brand-image{
      height: clamp(136px, 36vw, 184px);
    }
    .iks-unified-header__links{
      gap: 12px;
    }
    .iks-unified-header__link{
      font-size: .96rem;
    }
    .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle){
      width: 30px;
      height: 30px;
    }
    .iks-unified-header__more-panel{
      min-width: min(220px, 92vw);
    }
  }

  @media (max-width: 600px){
    /* ヘッダー縦幅を最小化（文字・メニューにフィット） */
    .iks-unified-header__inner{
      padding: 10px 10px 8px;
      gap: 8px;
    }
    .iks-unified-header__more-toggle:not(.iks-unified-header__sort-toggle){
      width: 28px;
      height: 28px;
    }
  }
  /* =============== 3.2) /articles feature slider layout =============== */
  .iks-page-articles{
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(8px, 2vw, 16px) clamp(12px, 2vw, 18px) clamp(24px, 4vw, 36px);
  }
  .iks-page-articles .feature-slider[data-context="editorial"]{
    --feature-slide-size: clamp(220px, 36vw, 300px);
    --feature-slide-gap: clamp(8px, 3vw, 16px);
    --feature-slide-peek: clamp(10px, 5.6vw, 36px);
  }
  @media (max-width: 768px){
    .iks-page-articles .feature-slider[data-context="editorial"]{
      --feature-slide-size: clamp(180px, 92vw, 260px);
      --feature-slide-gap: clamp(6px, 4vw, 12px);
      --feature-slide-peek: clamp(8px, 10vw, 22px);
    }
  }
