/* support modern layout aligned with develop look and shared footer */
:root {
  --sp-blue: #003087;
  --sp-blue-strong: #00266d;
  --sp-blue-soft: #0055c8;
  --sp-bg: #f4f7fb;
  --sp-text: #153055;
  --sp-line: #c4d1e6;
  --sp-card: #ffffff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% -20%, #e9f1ff 0%, var(--sp-bg) 46%, #edf2fa 100%);
  color: var(--sp-text);
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.6;
}
a { color: #003ea8; }
a:hover { color: #0e63d8; }
#sp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--sp-blue);
  box-shadow: 0 2px 10px rgba(0, 34, 90, 0.13);
}
.sp-header-inner { max-width: 1200px; margin: 0 auto; padding: 8px 16px 10px; }
.sp-logo { display: block; text-align: center; margin-bottom: 8px; }
.sp-logo img { max-width: 100%; height: auto; }
.sp-nav-wrap { display: flex; justify-content: center; }
.sp-fallback-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.sp-fallback-nav a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #9ab3db;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #eff4ff);
  text-decoration: none;
  font-size: 13px;
}
.sp-main { max-width: 1120px; margin: 18px auto 48px; padding: 0 14px; }
.sp-lang-switch { text-align: right; margin-bottom: 6px; font-size: 13px; }
.sp-breadcrumb {
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--sp-line);
  background: #fff;
  border-radius: 10px;
  font-size: 13px;
}
.sp-intro {
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #cfdaee;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
}
.sp-intro h1 {
  margin: 0 0 8px;
  color: var(--sp-blue-strong);
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
}
.sp-content {
  background: var(--sp-card);
  border: 1px solid #d4dff1;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(24, 49, 89, 0.08);
  overflow-x: auto;
}
.legacy-content table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  background: #fff;
}
.legacy-content table[border="1"] td,
.legacy-content table[border="1"] th,
.legacy-content td,
.legacy-content th {
  border: 1px solid var(--sp-line) !important;
  padding: 8px;
  vertical-align: top;
}
.legacy-content tr[bgcolor="#0033CC"] td,
.legacy-content tr[bgcolor="#0033cc"] td {
  background: linear-gradient(90deg, var(--sp-blue), var(--sp-blue-soft));
  color: #fff;
}
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content font { color: inherit !important; }
#sp-footer { margin-top: 24px; }
#sp-footer article { background: linear-gradient(135deg, var(--sp-blue) 0%, var(--sp-blue-soft) 100%) !important; }
#sp-footer footer, #sp-footer address, #sp-footer a, #sp-footer h3, #sp-footer li { color: #fff !important; }
.sp-backtotop { position: fixed; right: 16px; bottom: 18px; z-index: 1200; }
.sp-backtotop a {
  display: inline-block;
  text-align: center;
  padding: 9px 10px;
  min-width: 52px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.25;
  background: rgba(0, 48, 135, 0.92);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .sp-header-inner { padding: 8px 10px; }
  .sp-main { margin-top: 12px; padding: 0 8px; }
  .sp-content { padding: 8px; }
  .legacy-content td, .legacy-content th { font-size: 13px; }
  .sp-backtotop a { min-width: 48px; font-size: 11px; }
}
