/**
 * Streamlit streamlit_app._top_immersive_css_block() からの移植（変更禁止・数値そのまま）
 * 参照: libralys-api streamlit_app.py
 */

.lib-sh-root {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -2rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
  min-height: 88vh;
  min-height: 88dvh;
  background-color: #0b1628;
  background-image: var(--lib-sh-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  font-family:
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo,
    "Noto Sans JP", system-ui, sans-serif;
  display: block;
}
.lib-sh-root::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 100%);
}
.lib-sh-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: inherit;
  width: 100%;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 40px) clamp(72px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lib-sh-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 20px;
  border: 1px solid rgba(201, 162, 77, 0.28);
  background: rgba(15, 28, 46, 0.55);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  -webkit-font-smoothing: antialiased;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .lib-sh-card {
    background: linear-gradient(
      155deg,
      rgba(15, 28, 46, 0.5) 0%,
      rgba(15, 28, 46, 0.36) 55%,
      rgba(24, 40, 62, 0.42) 100%
    );
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
  }
}
.lib-sh-kicker {
  margin: 0 0 12px 0;
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lib-sh-title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem) 0;
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
h1.lib-sh-title {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-shadow: inherit;
}
h1.lib-sh-title.lib-sh-title--h1seo {
  margin: 0 0 clamp(0.5rem, 1.5vw, 0.85rem) 0;
}
.lib-sh-sub {
  margin: 0 0 clamp(1rem, 2.5vw, 1.35rem) 0;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.86rem, 2vw, 1.02rem);
  line-height: 1.7;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}
.lib-sh-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}
.lib-sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 60px;
  padding: 0 clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 12px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.lib-sh-btn--primary {
  color: #fff;
  background: #43a047;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
.lib-sh-btn--primary:hover { background: #4caf50; }
.lib-sh-btn--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.lib-sh-btn--secondary:hover { background: rgba(255, 255, 255, 0.12); }
.lib-sh-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vh, 28px);
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  animation: lib-sh-scroll-bounce 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lib-sh-scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
@media (prefers-reduced-motion: reduce) {
  .lib-sh-scroll { animation: none !important; }
}
.lib-top-svc-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 0;
  box-sizing: border-box;
}
.lib-top-svc-heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0F1C2E;
  margin: 0 0 8px 0;
  letter-spacing: 0.02em;
}
.lib-top-svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.lib-top-svc-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
  color: #111827;
  box-sizing: border-box;
}
.lib-top-svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}
.lib-top-svc-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0F1C2E;
}
.lib-top-svc-card-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .lib-top-svc-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lib-top-svc-card { transition: none; }
  .lib-top-svc-card:hover { transform: none; }
}
#app .lib-top-html-embed {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
#app .lib-top-html-embed p {
  margin: 0 !important;
}
#app .lib-top-section--hero .st-section__inner {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
#app .lib-top-section--hero .st-section__inner > .lib-top-html-embed p {
  margin: 0 !important;
}
