/*
 * K3 shared presentation primitives.
 * Loaded only for SpotBundle-derived layouts.
 */

:root {
  --k3-bg: #fff;
  --k3-surface: #fff;
  --k3-accent: #f0a11a;
  --k3-border: rgba(0, 0, 0, 0);
  --k3-text: #111827;
  --k3-muted: #666;
  --k3-link: #2b6cb0;
  --k3-shell-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  --k3-shell-width: 1100px;
  --k3-header-z-index: 1000;
  --k3-header-inline-padding: 16px;
  --k3-content-font-size: 14px;
  --k3-content-font-size-mobile: 13px;
  --k3-content-line-height: 1.9;
}

body.k3-layout-spot {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--k3-bg) !important;
  color: var(--k3-text);
  font-family: "Helvetica Neue", Helvetica, Arial, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
}

body.k3-layout-spot .wp-site-blocks,
body.k3-layout-top .k3-page {
  max-width: var(--k3-shell-width);
  margin: 0 auto;
  background: var(--k3-surface);
  box-shadow: var(--k3-shell-shadow);
}

body.k3-layout-spot .wp-site-blocks > header,
body.k3-layout-spot .wp-site-blocks > footer,
body.k3-layout-spot .wp-site-blocks > .wp-block-template-part {
  padding-inline: 0 !important;
}

body.k3-layout-spot .k3-body,
body.k3-layout-top .k3-page__body {
  padding: 18px 16px 24px;
}

body.k3-layout-spot img,
body.k3-layout-spot iframe,
body.k3-layout-spot video,
body.k3-layout-spot embed,
body.k3-layout-spot object {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
 * Header shell
 * ----------------------------------------------------------------------- */

body.k3-layout-spot .k3-header {
  position: relative;
  background: var(--k3-surface);
  border-bottom: 1px solid var(--k3-border);
}

body.k3-layout-spot .k3-header--desktop {
  display: block;
  position: sticky;
  top: 0;
  z-index: var(--k3-header-z-index);
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  box-sizing: border-box;
}

body.k3-layout-spot .k3-header--mobile,
body.k3-layout-spot .k3-header__info--mobile {
  display: none;
}

body.k3-layout-spot .k3-header--desktop .k3-header__top,
body.k3-layout-spot .k3-header--desktop .k3-header__nav-wrap {
  max-width: var(--k3-shell-width);
  margin-inline: auto;
  background: var(--k3-surface);
  box-sizing: border-box;
}

body.k3-layout-spot .k3-header--desktop .k3-header__top {
  padding: 12px var(--k3-header-inline-padding) 0;
}

body.k3-layout-spot .k3-header--desktop .k3-header__nav-wrap {
  padding: 12px var(--k3-header-inline-padding) 0;
}

body.k3-layout-spot .k3-header__top-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

body.k3-layout-spot .k3-header__brand-block {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

body.k3-layout-spot .k3-header__logo-block,
body.k3-layout-spot .k3-header__logo {
  display: block;
  flex: 0 0 auto;
}

body.k3-layout-spot .k3-header__logo {
  text-decoration: none;
}

body.k3-layout-spot .k3-header__logo img {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 72px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

body.k3-layout-spot .k3-header__info-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

body.k3-layout-spot .k3-header__brand-text {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  margin: auto 0;
}

body.k3-layout-spot .k3-header__brand-block > p,
body.k3-layout-spot .k3-header__brand-text > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.k3-layout-spot .k3-header__brand {
  display: block;
  max-width: 100%;
  margin: 0;
  color: var(--k3-text) !important;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
}

body.k3-layout-spot .k3-header__brand a {
  color: inherit;
  text-decoration: none;
}

body.k3-layout-spot .k3-header__description {
  max-width: 920px;
  margin-top: 6px;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

body.k3-layout-spot .k3-header__actions,
body.k3-layout-spot .k3-header__right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-height: 72px;
  margin-left: auto;
}

body.k3-layout-spot .k3-header__phone {
  display: block;
  margin: 0;
  color: #6c8f1a;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

body.k3-layout-spot .k3-header__phone a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

body.k3-layout-spot .k3-header__phone-label {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

body.k3-layout-spot .k3-header__phone-number {
  color: inherit;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
 * Placement navigation
 * ----------------------------------------------------------------------- */

.placement-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.placement-nav__item {
  margin: 0;
  padding: 0;
}

.placement-nav__link {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--k3-text);
  line-height: 1.1;
  text-decoration: none;
}

.placement-nav__item.is-current .placement-nav__link {
  background: #fff;
  font-weight: 700;
}

body.k3-layout-spot .k3-header__nav {
  position: relative;
  padding: 8px 16px;
  border: 0;
  background: #fff;
  color: #000;
}

body.k3-layout-spot .k3-header__nav::before,
body.k3-layout-spot .k3-header__nav::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

body.k3-layout-spot .k3-header__nav::before {
  top: 0;
}

body.k3-layout-spot .k3-header__nav::after {
  bottom: 0;
}

body.k3-layout-spot .k3-header__nav .placement-nav__list {
  justify-content: center;
  gap: 0;
}

body.k3-layout-spot .k3-header__nav .placement-nav__item {
  display: flex;
  align-items: center;
}

body.k3-layout-spot .k3-header__nav .placement-nav__item:not(:last-child)::after {
  content: "|";
  display: block;
  padding: 0 2px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 14px;
  line-height: 1;
}

body.k3-layout-spot .k3-header__nav .placement-nav__link {
  display: inline-block;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  line-height: 1.1;
  text-decoration: none;
}

body.k3-layout-spot .k3-header__nav .placement-nav__item.is-current .placement-nav__link {
  color: #111;
  font-weight: 800;
  text-decoration: underline;
}

body.k3-layout-spot .k3-header__menu-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
 * Footer
 * ----------------------------------------------------------------------- */

body.k3-layout-spot .k3-footer {
  margin-top: 0;
  border-top: 1px solid var(--k3-border);
  background: var(--k3-surface);
}

body.k3-layout-spot .k3-footer__inner {
  padding: 14px 16px;
}

body.k3-layout-spot .k3-footer__meta {
  margin: 0;
  color: var(--k3-muted);
  font-size: 12px;
}

body.k3-layout-spot .k3-footer__brand,
body.k3-layout-spot .k3-footer__brand a {
  color: var(--k3-text);
  font-weight: 700;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
 * Shared cards and sidebar primitives
 * ----------------------------------------------------------------------- */

body.k3-layout-spot .sb-card,
body.k3-layout-spot .sb-single-article,
body.k3-layout-spot .sb-single-section,
body.k3-layout-spot .sb-side-card,
body.k3-layout-spot .sb-widget {
  border: 1px solid var(--k3-border);
  background: #fff;
  overflow: hidden;
}

body.k3-layout-spot :is(.entry-title, .sb-side-card__title) {
  font-family: "Noto Serif JP", "Noto Serif JP Regular", "Noto Serif JP", "Times New Roman", serif;
}

body.k3-layout-spot .sb-card > .entry-title,
body.k3-layout-spot .sb-side-card > .entry-title,
body.k3-layout-spot .sb-side-card__title,
body.k3-layout-spot .sb-widget > .entry-title,
body.k3-layout-spot .sb-single-section > .entry-title {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #000;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

body.k3-layout-spot .sb-content {
  min-width: 0;
}

body.k3-layout-spot .sb-side-card .sb-content,
body.k3-layout-spot .sb-widget .sb-content {
  padding: 12px 14px 16px;
}

body.k3-layout-spot .sb-spot-sidebar,
body.k3-layout-spot .sb-placement-sidebar {
  display: grid;
  gap: 16px;
}

body.k3-layout-spot .sb-side-image {
  margin: 0 0 12px;
}

body.k3-layout-spot .sb-side-image img,
body.k3-layout-spot .sb-side-banner img,
body.k3-layout-spot .sb-sidebar-html img {
  display: block;
  width: 100%;
  height: auto;
}

body.k3-layout-spot .sb-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.k3-layout-spot .sb-info-table {
  margin: 0;
  padding: 0;
}

body.k3-layout-spot .sb-info-table__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.k3-layout-spot .sb-info-table__row:first-child {
  padding-top: 0;
  border-top: 0;
}

body.k3-layout-spot .sb-info-table dt,
body.k3-layout-spot .sb-info-table dd {
  margin: 0;
  font-size: 12px;
}

body.k3-layout-spot .sb-info-table dt {
  color: #222;
  font-weight: 700;
}

body.k3-layout-spot .sb-info-table dd {
  color: #444;
  line-height: 1.7;
}

body.k3-layout-spot .sb-info-table dd a {
  word-break: break-word;
}

body.k3-layout-spot .sb-sidebar-html p {
  margin: 0 0 10px;
}

body.k3-layout-spot .sb-sidebar-html p:last-child {
  margin-bottom: 0;
}

body.k3-layout-spot .sb-map {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

body.k3-layout-spot .sb-map iframe {
  display: block;
  width: 100%;
  min-height: 250px;
  border: 0;
}

body.k3-layout-spot .sb-banner-stack {
  display: grid;
  gap: 10px;
}

/* --------------------------------------------------------------------------
 * Responsive shared header
 * ----------------------------------------------------------------------- */

@media (max-width: 900px) {
  body.k3-layout-spot .k3-header__top-inner {
    display: block;
  }

  body.k3-layout-spot .k3-header__actions,
  body.k3-layout-spot .k3-header__right {
    min-height: 0;
    margin-top: 8px;
    justify-content: flex-start;
  }

  body.k3-layout-spot .k3-header__phone {
    font-size: 20px;
  }

  body.k3-layout-spot .k3-header__nav .placement-nav__item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  body.k3-layout-spot .k3-header--desktop {
    display: none !important;
  }

  body.k3-layout-spot .k3-header--mobile,
  body.k3-layout-spot .k3-header__info--mobile {
    display: block !important;
  }

  body.k3-layout-spot .k3-header--mobile {
    position: sticky;
    top: 0;
    z-index: var(--k3-header-z-index);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  body.admin-bar.k3-layout-spot .k3-header--mobile {
    top: 46px;
  }

  body.k3-layout-spot .k3-header--mobile .k3-header__top {
    padding: 0;
    background: #fff;
  }

  body.k3-layout-spot .k3-header--mobile .k3-header__top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
  }

  body.k3-layout-spot .k3-header--mobile .k3-header__nav-wrap {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1;
  }

  body.k3-layout-spot .k3-header--mobile .k3-header__nav {
    display: none;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  body.k3-layout-spot .k3-header--mobile.is-menu-open .k3-header__nav {
    display: block;
  }

  body.k3-layout-spot .k3-header--mobile .k3-header__right {
    display: none !important;
  }

  body.k3-layout-spot .k3-header__info--mobile {
    position: relative;
    z-index: 0;
    padding: 10px 12px;
    background: #fff;
  }

  body.k3-layout-spot .k3-header__info--mobile .k3-header__info-inner {
    display: block;
  }

  body.k3-layout-spot .k3-header__info--mobile .k3-header__right {
    display: flex;
    min-height: 0;
    margin: 8px 0 0;
    justify-content: flex-start;
  }

  body.k3-layout-spot .k3-header__brand-block {
    flex-direction: column;
    gap: 4px;
  }

  body.k3-layout-spot .k3-header__logo img {
    max-width: 88px;
    max-height: 56px;
  }

  body.k3-layout-spot .k3-header__brand {
    font-size: 22px;
    line-height: 1.2;
  }

  body.k3-layout-spot .k3-header__description {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.6;
  }

  body.k3-layout-spot .k3-header__menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin: 0 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
  }

  body.k3-layout-spot .k3-header__menu-toggle-box {
    display: inline-grid;
    gap: 3px;
  }

  body.k3-layout-spot .k3-header__menu-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    background: #111;
  }

  body.k3-layout-spot .k3-header__nav::before,
  body.k3-layout-spot .k3-header__nav::after {
    display: none;
  }

  body.k3-layout-spot .k3-header__nav .placement-nav {
    padding: 6px 0;
  }

  body.k3-layout-spot .k3-header__nav .placement-nav__list {
    display: block;
    margin: 0;
    padding: 0;
  }

  body.k3-layout-spot .k3-header__nav .placement-nav__item {
    display: block;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  body.k3-layout-spot .k3-header__nav .placement-nav__item:first-child {
    border-top: 0;
  }

  body.k3-layout-spot .k3-header__nav .placement-nav__item::after {
    display: none !important;
    content: none !important;
  }

  body.k3-layout-spot .k3-header__nav .placement-nav__link {
    display: block;
    padding: 12px 16px;
    background: #fff;
    color: #111;
    font-size: 14px;
    text-decoration: none;
  }

  body.k3-layout-spot .k3-header__nav .placement-nav__item.is-current .placement-nav__link {
    background: #f7f7f7;
    color: #111;
    font-weight: 700;
    text-decoration: none;
  }

  body.k3-layout-spot .sb-card > .entry-title,
  body.k3-layout-spot .sb-side-card > .entry-title,
  body.k3-layout-spot .sb-side-card__title,
  body.k3-layout-spot .sb-widget > .entry-title,
  body.k3-layout-spot .sb-single-section > .entry-title {
    background: #fff;
    color: #111;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
    font-size: 18px;
    text-align: center;
  }
}

@media (min-width: 721px) {
  body.k3-layout-spot .k3-header__nav {
    display: block !important;
  }

  body.k3-layout-spot .k3-header__menu-toggle {
    display: none !important;
  }
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.sb-single-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sb-single-share-actions__official-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 0;
}

.sb-single-share-actions__official-button iframe,
.sb-single-share-actions__official-button .twitter-share-button,
.sb-single-share-actions__official-button .fb-share-button,
.sb-single-share-actions__official-button .fb_iframe_widget,
.sb-single-share-actions__official-button .fb_iframe_widget span {
  vertical-align: top !important;
}

.sb-single-share-actions__official-button .fb_iframe_widget {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0 !important;
}

.sb-single-share-actions__button--print {
  box-sizing: border-box;
  height: 20px;
  padding-block: 0;
  line-height: 18px;
}