/* ===== ESPシリーズ共通 ===== */
/* ===== 読了バー ===== */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 101; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gradient-accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ===== ヘッダー ===== */
.header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 24px 0; pointer-events: none; transition: padding .45s var(--ease-out); }
.header.is-scrolled { padding: 12px 0; }
.navbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; pointer-events: auto; border: 1px solid transparent; border-radius: 0; transition: background-color .45s var(--ease-out), border-color .45s var(--ease-out), border-radius .45s var(--ease-out), box-shadow .45s var(--ease-out), padding .45s var(--ease-out), min-height .45s var(--ease-out), backdrop-filter .45s var(--ease-out); }
.is-scrolled .navbar { min-height: 56px; padding: 6px 8px 6px 20px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .58); border-color: rgba(255, 255, 255, .75); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 16px 36px rgba(0, 20, 60, .08), inset 0 1px 1px rgba(255, 255, 255, .9); }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 40px; height: 33px; fill: var(--color-brand); }
.logo__text { display: grid; line-height: 1.15; color: var(--color-brand); }
.logo__text small { font-size: 11px; font-weight: 700; }
.logo__text b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a { padding: 6px 12px; border-radius: var(--radius-full); font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; transition: color var(--transition-fast), background-color var(--transition-fast); }
.nav a:hover { color: var(--color-brand); background: var(--color-brand-light); }
.header__cta { min-width: 124px; padding-inline: 20px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--color-dark); }
@media (max-width: 1180px) { .nav a { padding-inline: 9px; font-size: 14px; } }
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: grid; }
  .logo__mark { width: 34px; height: 28px; }
  .logo__text b { font-size: 17px; }
}

.menu { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.menu[hidden] { display: none; }
.menu__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.menu__panel { position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 28px; background: rgba(255, 255, 255, .98); box-shadow: 0 25px 60px rgba(0, 0, 0, .22); animation: menuIn .35s var(--ease-out); }
.menu__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--color-bg-alt); font-size: 16px; font-weight: 800; }
.menu__close { flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 0; background: var(--color-bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 7 10 10M17 7 7 17' stroke='%23111827' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.menu__list { display: grid; gap: 4px; margin-bottom: 16px; }
.menu__list a { padding: 12px 14px; border-radius: var(--radius-md); font-size: 16px; font-weight: 700; }
@media (hover: hover) { .menu__list a:hover { color: var(--color-brand); background: var(--color-brand-light); } }
@media (min-width: 641px) { .menu { align-items: flex-start; padding-top: 88px; } .menu__panel { max-width: 580px; border-radius: 24px; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
/* ===== フッター ===== */
.footer { padding: 96px 0 40px; background: var(--color-brand); color: var(--color-white); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; margin-bottom: 64px; }
.footer__company { margin-bottom: 16px; font-family: var(--font-heading); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.footer__desc { max-width: 460px; margin-bottom: 24px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .75); }
.footer__services { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.footer__services li { position: relative; padding-left: 22px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.footer__services li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-white); opacity: .6; }
.footer__services a:hover { text-decoration: underline; }
.footer__heading { margin-bottom: 20px; font-family: var(--font-heading); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.footer__contacts { display: flex; flex-direction: column; gap: 18px; }
.footer__contact { display: flex; align-items: flex-start; gap: 14px; }
.footer__contact > span:last-child { display: grid; }
.footer__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background-color .2s, color .2s; }
.footer__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__contact:hover .footer__icon { background: var(--color-white); color: var(--color-brand); }
.footer__contact:hover b { text-decoration: underline; }
.footer__contact small { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.footer__contact small:last-child { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .65); }
.footer__contact b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.footer__products li { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer__products li:last-child { border-bottom: 0; }
.footer__products a, .footer__products div { display: block; padding: 20px 0; }
.footer__product { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-heading); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.footer__product i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); font-style: normal; font-size: 16px; transition: background-color .2s, color .2s, transform .2s; }
.footer__products a:hover i { background: var(--color-white); color: var(--color-brand); transform: translate(2px, -2px); }
.footer__products small { display: block; max-width: 480px; margin-top: 8px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.footer__bottom { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: rgba(255, 255, 255, .6); text-align: center; }
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); margin-bottom: 48px; }
  .footer__services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 0; }
  .footer__services li { font-size: 17px; }
}
@media (max-width: 400px) { .footer__product { font-size: 20px; } }
.header__cta-sp { display: none; }
@media (max-width: 1024px) {
  .header__cta-sp { display: inline-flex; align-items: center; flex: none; margin-left: auto; padding: 8px 14px; white-space: nowrap; border-radius: var(--radius-full); background: var(--color-brand); color: var(--color-white); font-size: 13px; font-weight: 700; }
}
@media (max-width: 400px) { .logo__text small { font-size: 10px; } .logo__text b { font-size: 15px; } .logo__mark { width: 28px; height: 23px; } }
.is-scrolled .navbar { background: rgba(255, 255, 255, .9); }
@media (max-width: 440px) { .header__cta-sp { display: none; } }
.menu__list { margin-inline: -14px; }
/* ===== フッター下部 ===== */
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 0 0 14px; }
.footer__legal a, .footer__legal button { position: relative; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; line-height: inherit; color: rgba(255, 255, 255, .78); cursor: pointer; transition: color var(--transition-fast); }
.footer__legal a:hover, .footer__legal button:hover { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:focus-visible, .footer__legal button:focus-visible { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: 3px; border-radius: 3px; }
.footer__legal li + li > ::before { content: ""; position: absolute; left: -10px; top: 50%; width: 1px; height: 12px; background: rgba(255, 255, 255, .25); transform: translateY(-50%); }
.footer__bottom p { margin: 0; }

/* ===== Cookie 同意バナー ===== */
.cookie { position: fixed; left: 0; right: 0; bottom: 20px; z-index: 1500; display: flex; align-items: center; gap: 24px; width: min(960px, calc(100% - 40px)); margin-inline: auto; padding: 20px 24px; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-white); box-shadow: 0 20px 48px -12px rgba(10, 20, 40, .28); opacity: 0; transform: translateY(24px); transition: opacity .25s ease-out, transform .25s ease-out; }
.cookie.is-visible { opacity: 1; transform: none; }
.cookie:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.cookie__text { flex: 1; min-width: 0; }
.cookie__title { margin: 0 0 6px; font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--color-dark); }
.cookie__body { margin: 0; font-size: 13px; line-height: 1.7; color: var(--color-text-muted); }
.cookie__body a { font-weight: 700; color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }
.cookie__body a:hover { color: var(--color-brand-hover); }
.cookie__current { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--color-text-subtle); }
.cookie__actions { flex-shrink: 0; display: flex; gap: 10px; }
.cookie__btn { min-width: 120px; min-height: 42px; padding: 10px 20px; font-size: 14px; }
@media (max-width: 760px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie__btn { flex: 1; min-width: 0; }
}
@media (max-width: 640px) {
  .cookie { bottom: 12px; width: calc(100% - 24px); padding: 18px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie { transform: none; transition: opacity .2s; }
}

.header__cta { min-height: 46px; padding: 12px 20px; font-size: 15px; font-weight: 700; }
.btn--outline { background: rgba(255, 255, 255, .7); border-color: var(--color-brand); color: var(--color-brand); }
.btn--outline:hover { background: var(--color-brand-light); }
.cookie__btn { font-weight: 700; }
:where(.footer) :where(ul) { list-style: none; margin: 0; padding: 0; }
:where(.footer) :where(p) { margin: 0; }
:where(.footer) :where(a) { text-decoration: none; }
.menu__panel .btn { min-height: 46px; padding: 12px 32px; font-size: 15px; font-weight: 700; }
.header a, .menu a { text-decoration: none; }
.burger { border: 0; background: none; padding: 0; }
.menu__close { border: 0; padding: 0; }

html { scrollbar-width: thin; scrollbar-color: rgba(33, 99, 160, .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: linear-gradient(180deg, #3a8ad0, var(--color-brand)) padding-box; }
::-webkit-scrollbar-thumb:hover { border-width: 2px; background: linear-gradient(180deg, #2f7cc4, var(--color-brand-hover)) padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
