@charset "UTF-8";

/* View Grant ESTA guide — responsive shared stylesheet */
:root {
  --vg-navy: #123b68;
  --vg-blue: #1769aa;
  --vg-blue-light: #eaf3fb;
  --vg-red: #b20d19;
  --vg-ink: #1c2938;
  --vg-muted: #5c6b7a;
  --vg-border: #dce5ee;
  --vg-bg: #f5f8fb;
  --vg-white: #fff;
  --vg-radius: 14px;
  --vg-shadow: 0 8px 28px rgba(18, 59, 104, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vg-ink);
  background: var(--vg-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic",
    YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  text-align: left;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--vg-blue); text-underline-offset: .18em; }
a:visited { color: #5a4a8a; }
a:hover { color: var(--vg-red); }
a:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; }

#wrapper {
  width: min(1200px, calc(100% - 40px));
  margin: 24px auto;
  background: var(--vg-white);
  border: 1px solid var(--vg-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--vg-shadow);
}
#header {
  padding: 22px 30px 0;
  background: var(--vg-white);
  border-bottom: 1px solid var(--vg-border);
}
#header h1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 0 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vg-muted);
}
#header h1 a { display: inline-flex; flex: 0 1 340px; min-width: 0; }
#header h1 img { display: block; width: 100%; max-width: 340px; margin: 0; }
#header h1 span { text-align: right; }
#navi { clear: both; width: 100%; }
#navi ul {
  display: flex;
  align-items: stretch;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--vg-border);
}
#navi li { margin: 0; padding: 0; }
#navi a {
  display: block;
  padding: 13px 16px;
  color: var(--vg-navy);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
#navi a:hover { color: var(--vg-blue); background: var(--vg-blue-light); border-bottom-color: var(--vg-blue); }

p.resizeimage { margin: 0; line-height: 0; background: var(--vg-navy); }
p.resizeimage img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
p.logo { margin: 0; padding: 18px 30px 0; font-size: clamp(22px, 3vw, 34px); font-weight: 750; line-height: 1.35; color: var(--vg-navy); }
p.logo a { color: inherit; text-decoration: none; }
.description { margin: 0; padding: 4px 30px 22px; color: var(--vg-muted); font-size: 15px; }

#container {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  display: block;
}
#contents {
  float: none;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px 34px 42px;
  border-right: 0;
}
#sidebar {
  float: none;
  width: auto;
  padding: 28px 30px;
  background: #f4f8fc;
  border-top: 1px solid var(--vg-border);
}
.topic-path {
  margin: 0 0 28px;
  color: var(--vg-muted);
  font-size: 12px;
  line-height: 1.7;
}
.topic-path a { color: var(--vg-muted); }
h2 {
  margin: 0 0 26px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid var(--vg-border);
  color: var(--vg-navy);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 750;
  line-height: 1.5;
}
h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 14px;
  background: var(--vg-red);
  border-radius: 99px;
}
h3, h4, h5, h6 {
  margin: 34px 0 12px;
  padding: 0 0 0 13px;
  color: var(--vg-navy);
  border-left: 4px solid var(--vg-blue);
  font-size: 19px;
  font-weight: 720;
  line-height: 1.55;
}
#contents p { margin: 0 0 1.15em; line-height: 1.9; }
#contents ul, #contents ol { margin: 12px 0 22px 1.5em; }
#contents li { margin-bottom: .55em; }
#contents dl { margin: 1.2em 0; }
#contents dt { margin-bottom: .5em; padding-bottom: .35em; font-weight: 700; border-bottom: 1px solid var(--vg-border); }
#contents dd { margin: 0 0 1.5em; }
#contents strong { color: var(--vg-navy); }
.table3 { width: 100%; border-collapse: collapse; border: 1px solid var(--vg-border); }
.table3 td, .table3 th { padding: 10px 12px; border: 1px solid var(--vg-border); text-align: left; }
.table3 th { background: var(--vg-blue-light); color: var(--vg-navy); }

.sidetitle {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--vg-border);
  color: var(--vg-navy);
  font-size: 16px;
  line-height: 1.5;
}
#sidebar > a img { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 10px; }
.localnavi { list-style: none; margin: 0 0 26px; padding: 0; }
.localnavi li { display: block; margin: 0; }
.localnavi a {
  display: block;
  width: auto;
  padding: 10px 12px;
  color: var(--vg-ink);
  background: var(--vg-white);
  border-bottom: 1px solid var(--vg-border);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}
.localnavi li:first-child a { border-radius: 8px 8px 0 0; }
.localnavi li:last-child a { border-radius: 0 0 8px 8px; }
.localnavi a:hover { color: var(--vg-blue); background: var(--vg-blue-light); }

#footer {
  clear: both;
  padding: 24px 28px;
  background: var(--vg-navy);
  color: rgba(255,255,255,.85);
  border-top: 0;
}
#footer p { margin: 0; text-align: center; font-size: 12px; line-height: 1.8; }
#footer a { color: #fff; }

/* Compatibility with older template elements */
#main1 { max-width: 100%; }
#cds { display: none; }

@media (min-width: 920px) {
  #wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
  #header, #footer { grid-column: 1 / -1; }
  #container { grid-column: 1; grid-row: 2; }
  #sidebar { grid-column: 2; grid-row: 2; border-top: 0; border-left: 1px solid var(--vg-border); }
  #contents { padding: 34px 38px 48px; }
  #sidebar { padding: 32px 22px; }
}
@media (max-width: 919px) {
  #wrapper { width: min(100% - 24px, 760px); margin: 12px auto; border-radius: 14px; }
  #header { padding: 18px 18px 0; }
  #header h1 { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 14px; }
  #header h1 a { flex-basis: auto; width: min(100%, 300px); }
  #header h1 span { text-align: left; }
  #navi ul { flex-wrap: wrap; gap: 0; }
  #navi li { flex: 1 1 50%; }
  #navi a { padding: 12px 10px; text-align: center; font-size: 13px; border-bottom-width: 2px; }
  p.resizeimage img { max-height: 260px; }
  p.logo { padding: 18px 20px 0; }
  .description { padding: 4px 20px 20px; }
  #contents { padding: 24px 22px 34px; }
  #sidebar { padding: 24px 22px; }
}
@media (max-width: 520px) {
  body { font-size: 15px; line-height: 1.8; }
  #wrapper { width: 100%; margin: 0; border: 0; border-radius: 0; }
  #header { padding: 14px 16px 0; }
  #header h1 a { width: min(100%, 250px); }
  #header h1 span { font-size: 12px; }
  #navi li { flex-basis: 50%; }
  #navi a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  p.resizeimage img { max-height: 190px; }
  p.logo { padding: 15px 16px 0; font-size: 23px; }
  .description { padding: 4px 16px 18px; font-size: 14px; }
  #contents { padding: 22px 17px 30px; }
  #sidebar { padding: 22px 17px; }
  h2 { font-size: 22px; margin-bottom: 22px; }
  h3, h4, h5, h6 { margin-top: 28px; font-size: 17px; }
  .topic-path { margin-bottom: 22px; }
  .table3 { display: block; overflow-x: auto; }
  #footer { padding: 20px 16px; }
}


/* Homepage-only call-to-action section */
.home-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 30px 28px; padding: 24px 26px; color: #fff;
  background: linear-gradient(120deg, #123b68, #1769aa);
  border-radius: 14px; box-shadow: 0 8px 28px rgba(18,59,104,.08);
}
.home-cta__copy { flex: 1 1 420px; }
.home-cta__eyebrow { display:block; margin-bottom:5px; color:#c8e4ff; font-size:11px; font-weight:800; letter-spacing:.12em; }
.home-cta h2 { margin:0 0 8px; padding:0; color:#fff; border:0; font-size:clamp(20px,2.2vw,27px); }
.home-cta h2::after { display:none; }
.home-cta p { margin:0; color:rgba(255,255,255,.88); font-size:14px; line-height:1.7; }
.home-cta__actions { display:flex; flex:0 1 260px; flex-direction:column; gap:10px; }
.vg-button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:10px 16px; border:1px solid rgba(255,255,255,.8); border-radius:8px; font-size:14px; font-weight:750; line-height:1.4; text-align:center; text-decoration:none; }
.vg-button--primary { color:#123b68 !important; background:#fff; }
.vg-button--secondary { color:#fff !important; background:transparent; }
.vg-button:hover { opacity:.88; }
@media (max-width: 919px) { .home-cta { margin:0 20px 24px; padding:22px; } }
@media (max-width: 620px) {
  .home-cta { display:block; margin:0 16px 22px; padding:20px 18px; }
  .home-cta__actions { margin-top:18px; }
}
