/* ヘッダー用トークン（base.css のみのページ向け。index-inline の :root と値が違う場合はそちらが優先） */
:root {
  --accent-soft: #5a6ba8;
  --accent-text: #45508a;
  --line-strong: #c5cadf;
}

/* ===== サイト共通ヘッダー（TOP index-inline と同一） ===== */
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px 32px;
  position: relative;
}

header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 31, 59, 0.14);
  box-shadow: 0 1px 0 rgba(30, 31, 59, 0.06);
}

header::before {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent-soft);
  opacity: 0.95;
}

.logo-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
  color: #0a0a0a;
  transition: opacity 0.2s ease;
}

.logo-box:hover { opacity: 0.82; }

.logo-img {
  display: block;
  height: 64px;
  width: auto;
}

.logo-tagline {
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 6px 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-item {
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
  white-space: nowrap;
  padding: 10px 11px;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
  /* body の letter-spacing: 0.02em などを継承させない（他サブページと同じ見え方に揃える） */
  letter-spacing: normal;
  /* TOP / patrol 等で body に antialiased があるとメニューだけ細く見えるのを防ぐ */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 1px;
  background: var(--accent-soft);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item:hover::after,
.nav-item:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-item:hover {
  color: #252a4a;
  background: rgba(90, 107, 168, 0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-left: 14px;
  padding: 13px 24px 13px 26px;
  color: #fff;
  background: linear-gradient(165deg, #ff5c5c 0%, #f13c3c 58%, #c92828 100%);
  border: 1px solid #a82020;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 22px rgba(241, 60, 60, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.nav-cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 220, 220, 0.9);
}

.nav-cta:hover {
  color: #fff;
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 10px 28px rgba(241, 60, 60, 0.36);
}

.nav-cta:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.sp-only { display: none; }

.hamburger { display: none; }

@media (max-width: 1024px) {
  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 64px;
    padding: 6px 16px;
    gap: 10px;
  }

  .logo-box {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-img { height: 44px; }

  .logo-tagline {
    font-size: 11px;
    white-space: nowrap;
    line-height: 1.1;
    max-width: none;
    letter-spacing: 0.08em;
  }

  .nav-items {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    margin-left: 0;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    background: #fff;
    box-shadow: 0 10px 28px rgba(30, 31, 59, 0.16);
    z-index: 130;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.24s ease, transform 0.32s ease, padding 0.24s ease;
  }

  .nav-items.is-open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 10px 12px 12px;
  }

  .nav-items.is-open .nav-item {
    display: block;
    width: 100%;
    padding: 12px 6px;
  }

  .nav-items.is-open .nav-cta {
    margin: 8px 0 0;
    width: 100%;
    min-height: 46px;
  }

  .sp-only { display: block; }

  .hamburger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(90, 107, 168, 0.35);
    border-radius: 999px;
    background: #fff;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 21px;
    line-height: 1;
    font-weight: 700;
    color: var(--accent-text);
    box-shadow: 0 4px 14px rgba(30, 31, 59, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
  }

  .hamburger:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(30, 31, 59, 0.18);
  }

  .hamburger[aria-expanded="true"] {
    background: rgba(90, 107, 168, 0.12);
    border-color: rgba(90, 107, 168, 0.55);
  }
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  transition: .2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 9px 18px rgba(143, 75, 56, 0.25);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid #e2c8bd;
}

.btn-secondary:hover { background: #fbf2ed; }

a.btn-primary,
a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.section-heading { text-align: center; margin-bottom: 38px; }

.section-heading .label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f8eee9;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.4;
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
  margin: 0 auto;
  font-weight: 600;
}

footer {
  background: #0f1d2e;
  color: #d7e4f5;
  margin-bottom: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #f2f7ff;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: #e3edfb;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer-link:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 12px;
  color: #95abc5;
  padding: 15px 24px 20px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 98;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #e6d5cd;
  backdrop-filter: blur(8px);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.28s ease, opacity 0.22s ease, visibility 0.28s step-end;
}

.sticky-cta.is-concealed {
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.22s ease, visibility 0.28s step-start;
}

.sticky-cta .btn-primary,
.sticky-cta .btn-secondary {
  padding: 11px 16px;
  font-size: 13px;
}

.sticky-cta .sticky-cta-solo {
  width: min(100%, 440px);
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

@media (min-width: 769px) {
  /* PCではフッター直前CTAを非表示にして、右下固定ボタンへ統一 */
  #cta.cta-solo {
    display: none;
  }

  .sticky-cta {
    left: auto;
    right: 20px;
    bottom: 20px;
    padding: 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .sticky-cta .sticky-cta-solo {
    width: auto;
    min-width: 180px;
    padding: 13px 20px;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(143, 75, 56, 0.22);
    border-radius: 999px;
  }
}

/* 明朗会計・サービス範囲の明確化（トップ／特設ページなどで共用） */
.brand-pillars {
  background: #fbf4f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.brand-pillars .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.brand-pillars-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.brand-pillars-lead {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.75;
}
.brand-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.brand-pillar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 6px 16px rgba(16, 55, 96, 0.04);
}
.brand-pillar-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.brand-pillar-card p {
  font-size: 14px;
  color: #334155;
  line-height: 1.75;
  font-weight: 600;
}

/* 野球応援ティーザー（ヒーロー直下など） */
.baseball-teaser {
  background: linear-gradient(135deg, #3f241f 0%, #6b3b30 55%, #4b2b24 100%);
  color: #f4e9e4;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.baseball-teaser .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.baseball-teaser-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f2c7b7;
  margin-bottom: 10px;
}
.baseball-teaser h2 {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 14px;
  color: #fff;
}
.baseball-teaser p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 720px;
  font-weight: 600;
  margin-bottom: 14px;
}
.baseball-teaser p:last-of-type {
  margin-bottom: 18px;
}
.baseball-teaser a.baseball-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.baseball-teaser a.baseball-teaser-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  .sticky-cta { padding: 8px 10px; }
  .brand-pillars-grid { grid-template-columns: 1fr; }
}

/* ===== AI補助金 共通ヘッダー/フッター（Smarty動的ページ + 静的ページ向け） ===== */
body.site-page {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: #152033;
  background: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e4e8ee;
}

.site-header__bar,
.site-nav,
.site-footer .wrap {
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
}

.site-header__bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand:hover { opacity: 1; }

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #1a3a6e;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.brand__logo {
  display: block;
  width: min(260px, 52vw);
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand__name {
  font-size: 18px;
  font-weight: 900;
  color: #152033;
  white-space: nowrap;
}

.brand__sub {
  font-size: 13px;
  font-weight: 500;
  color: #5c6775;
  white-space: nowrap;
}

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: #1a3a6e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}

.header-cta:hover { opacity: 0.88; }

.header-cta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #1a3a6e;
  font-size: 11px;
}

.site-header .hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header .hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #152033;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #5c6775;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: #1a3a6e;
  opacity: 1;
}

.site-header__note {
  width: min(100% - 48px, 1360px);
  margin: 0 auto 12px;
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #748092;
}

.site-footer {
  padding: 64px 0 36px;
  background: #101826;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  opacity: 1;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer__brand {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.site-footer__logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
}

.site-footer__desc {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.site-footer__disclaimer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__copy {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1023px) {
  .site-header .sp-only,
  .site-header .hamburger { display: flex; }
  .site-header .header-cta { display: none; }
  .site-header .brand__sub { display: none; }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 12px 0;
    border-top: 1px solid #e4e8ee;
  }
}

@media (max-width: 700px) {
  .site-header__bar,
  .site-nav,
  .site-header__note,
  .site-footer .wrap {
    width: min(100% - 32px, 1360px);
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .brand__name {
    font-size: 16px;
    white-space: normal;
  }
}
