:root {
  --paper: #faf7f0;
  --paper-deep: #f3ede0;
  --cream-band: #f6edd5;
  --blush-soft: #f5dfd7;
  --surface: #ffffff;
  --ink: #1e2d29;
  --ink-soft: #4c5d57;
  --ink-mute: #798782;
  --brand: #244e45;
  --brand-dark: #193932;
  --plum: #522b50;
  --bar-green: #35755b;
  --bar-purple: #b69ed6;
  --rule: #ddd5c5;
  --rule-strong: #c8beaa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #e5dfd3;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

/* Local Preview Toolbar (not part of production) */
.preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #1e2d29;
  color: #faf7f0;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.pt-left { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-tag { background: #fae6ad; color: #1e2d29; padding: 2px 8px; border-radius: 4px; font-weight: 900; font-size: 11px; }
.pt-pages { display: flex; gap: 4px; flex-wrap: wrap; }
.pt-pages a {
  color: rgba(250,247,240,0.8);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
}
.pt-pages a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.pt-pages a.active { background: #fae6ad; color: #1e2d29; }
.pt-btns { display: flex; gap: 6px; }
.pt-btn {
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: #faf7f0;
  padding: 4px 11px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.pt-btn.active { background: #faf7f0; color: #1e2d29; border-color: #faf7f0; }

/* Page Shell (Desktop <-> 390px Mobile) */
.viewport-shell {
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  transition: max-width 0.25s ease;
  position: relative;
}
.viewport-shell.mode-desktop { max-width: 100%; }
.viewport-shell.mode-mobile {
  max-width: 390px;
  margin: 22px auto 48px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(24, 38, 34, 0.22), 0 0 0 8px #1e2d29;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}
.viewport-shell.mode-mobile .container { padding: 0 18px; }

/* Paper Textures (from sticker-ESTJ.png) */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(36, 78, 69, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 78, 69, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
}
.grid-cream {
  background-color: var(--cream-band);
  background-image:
    linear-gradient(to right, rgba(82, 43, 80, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(82, 43, 80, 0.065) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 247, 240, 0.96);
}
.header-in {
  max-width: 1060px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.site-nav a { color: inherit; text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.site-nav a.career-brand-pill,
.craft-mobile-menu nav a.career-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border-radius: 7px;
  background: #ffffff;
  border: 1.2px solid #c7d7fe;
  color: #0a1931;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(10, 25, 49, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.site-nav a.career-brand-pill:hover,
.craft-mobile-menu nav a.career-brand-pill:hover {
  background: #eaf0ff;
  border-color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  color: #0a1931;
  transform: translateY(-1px);
}
.career-pill-bar {
  width: 6px;
  height: 15px;
  border-radius: 2px;
  background: #1d4ed8;
  flex-shrink: 0;
  display: inline-block;
}
.career-pill-name {
  font-family: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: -0.015em;
  color: #0a1931;
}
.career-pill-arrow {
  font-size: 11.5px;
  font-weight: 800;
  color: #1d4ed8;
  margin-left: 1px;
}
.login-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  padding: 7px 14px;
  border: 1.5px solid var(--brand);
  border-radius: 6px;
  white-space: nowrap;
}
.viewport-shell.mode-mobile .site-nav { display: none; }

/* Breadcrumb */
.crumb {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crumb a { color: var(--brand); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* Shared Typography & Craft Elements */
.sec-band {
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
}
.sec-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sec-h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.32;
}
.sec-note { font-size: 13px; color: var(--ink-soft); }

.display-num {
  font-family: "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
  text-shadow: 3px 3px 0 #fae6ad;
  letter-spacing: -0.04em;
  display: inline-block;
  transform: rotate(-3deg);
}
.display-num.plum { color: var(--plum); text-shadow: 3px 3px 0 #f4d0c2; }

.stamp-ribbon {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  padding: 5px 14px;
  box-shadow: 3px 4px 0 #fae6ad;
  transform: rotate(-1.5deg);
}
.stamp-ribbon.cream {
  background: #fae6ad;
  color: #1e2d29;
  box-shadow: 4px 4px 0 #142c27;
}
.stamp-ribbon.plum {
  background: var(--plum);
  color: #ffffff;
  box-shadow: 3px 4px 0 #f4d0c2;
}

.cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 4px 5px 0 #152e29;
  transition: transform 0.12s ease;
}
.cta-main:hover { transform: translate(-1px, -1px); }
.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 10px;
  border: 2px solid var(--brand);
  cursor: pointer;
}

/* White-bordered arch character cutout (cleanly crops out top 4 letters!) */
.char-arch {
  border-radius: 999px 999px 12px 12px;
  background: #ffffff;
  border: 5px solid #ffffff;
  box-shadow: 5px 6px 0 var(--brand);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.char-arch.plum { box-shadow: 5px 6px 0 var(--plum); }
.char-arch.navy { box-shadow: 5px 6px 0 #214552; }
.char-arch img {
  width: 162%;
  height: auto;
  margin-left: -31%;
  margin-top: -54%;
  display: block;
}
.char-arch.balanced img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 15%;
}

/* Sticker canvas holder */
.sticker-pin {
  padding: 6px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 6px 8px 0 rgba(30, 45, 41, 0.16);
  border: 1px solid rgba(30, 45, 41, 0.12);
}
.sticker-pin canvas { width: 100%; height: auto; display: block; border-radius: 9px; }

/* Subpage Hero */
.sub-hero {
  padding: 40px 0 46px;
  border-bottom: 1px solid var(--rule);
}
.sub-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.sub-h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
}
.sub-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.sub-art-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

/* Adopted 4-Axis Bar Styles */
.axis-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.axis-row:last-child { border-bottom: none; }
.axis-letter {
  width: 46px; height: 46px; border-radius: 10px;
  background: #ece5f6; color: #4a2d5a;
  font-family: "Arial Black", system-ui, sans-serif;
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.axis-letter.tie {
  background: #e6f0ec; color: var(--brand); border: 1.5px dashed var(--brand);
}
.axis-head { font-size: 13px; font-weight: 800; color: var(--ink-soft); margin-bottom: 4px; }
.axis-vals { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.axis-vals strong { font-weight: 900; color: var(--ink); }
.bar-track {
  height: 11px; border-radius: 999px; overflow: hidden; display: flex;
  background: #e7e0d2; position: relative;
}
.bar-l { background: var(--bar-green); height: 100%; }
.bar-r { background: var(--bar-purple); height: 100%; }
.bar-tick {
  position: absolute; top: -2px; bottom: -2px; width: 3px;
  background: #1e2d29; box-shadow: 0 0 0 1.5px #ffffff;
}
.self-cmp {
  margin-top: 7px; font-size: 12px; color: var(--ink-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.gap-mark {
  font-size: 11px; font-weight: 900; color: var(--plum);
  background: #f1e6f8; padding: 2px 8px; border-radius: 4px;
}

/* Matte Deep Forest Paper Spread */
.matte-spread {
  background: var(--brand);
  color: #faf7f0;
  padding: 36px 34px 32px;
  position: relative;
  border: 2px solid #16322c;
  box-shadow: 8px 9px 0 #d9d0be;
}
.matte-spread::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.matte-spread > * { position: relative; z-index: 2; }

/* Editorial 2-Column Rule List / Table */
.rule-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}
.rule-col {
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
}
.rule-col:last-child { border-right: none; }

/* Book Colophon Band */
.colophon-sec {
  padding: 46px 0 42px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}
.colo-h {
  font-size: 16.5px; font-weight: 900; color: var(--ink);
  padding-bottom: 9px; border-bottom: 2px solid var(--ink); margin-bottom: 14px;
}
.colo-p { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 10px; }
.colo-small { font-size: 12px; line-height: 1.7; color: var(--ink-mute); }

/* Related Reading Strip */
.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}
.related-item {
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.related-item:last-child { border-right: none; }
.related-item:hover { background: #f4efe2; }
.related-title { font-size: 14.5px; font-weight: 900; color: var(--ink); line-height: 1.45; }
.related-arrow { font-size: 12.5px; font-weight: 800; color: var(--brand); }

/* Closing CTA Band */
.end-cta-sec { padding: 48px 0 64px; background: var(--paper); }
.end-cta-in {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: #ffffff; border: 2px solid var(--ink); box-shadow: 6px 7px 0 #fae6ad;
  padding: 26px 32px;
}
.end-left { display: flex; align-items: center; gap: 20px; }
.end-h { font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.end-p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 22px 0 34px;
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-mute);
}
.footer-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }

/* Mobile 390px Mode Overrides (both .mode-mobile simulator AND real <=760px viewports!) */
.viewport-shell.mode-mobile .brand { font-size: 14.5px; gap: 7px; }
.viewport-shell.mode-mobile .login-link { padding: 5px 10px; font-size: 12px; }
.viewport-shell.mode-mobile .mm-lang-select { padding: 5px 6px !important; font-size: 11.5px !important; }
.viewport-shell.mode-mobile .sec-band { padding: 34px 0; }
.viewport-shell.mode-mobile .sec-h2 { font-size: 20px; }
.viewport-shell.mode-mobile .sub-hero { padding: 24px 0 30px; }
.viewport-shell.mode-mobile .sub-hero-grid { grid-template-columns: 1fr; gap: 22px; }
.viewport-shell.mode-mobile .sub-h1 { font-size: 24px; }
.viewport-shell.mode-mobile .sub-lead { font-size: 13.5px; }
.viewport-shell.mode-mobile .rule-grid-2,
.viewport-shell.mode-mobile .related-list { grid-template-columns: 1fr; }
.viewport-shell.mode-mobile .rule-col,
.viewport-shell.mode-mobile .related-item { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px 4px; }
.viewport-shell.mode-mobile .rule-col:last-child,
.viewport-shell.mode-mobile .related-item:last-child { border-bottom: none; }
.viewport-shell.mode-mobile .matte-spread { padding: 24px 18px 22px; box-shadow: 5px 6px 0 #d9d0be; }
.viewport-shell.mode-mobile .end-cta-in { flex-direction: column; align-items: stretch; padding: 20px 18px; gap: 16px; }
.viewport-shell.mode-mobile .cta-main { width: 100%; }

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .brand { font-size: 14.5px; gap: 7px; }
  .login-link { padding: 5px 10px; font-size: 12px; white-space: nowrap; }
  .mm-lang-select { padding: 5px 6px !important; font-size: 11.5px !important; max-width: 100px; }
  .site-nav { display: none; }
  .sec-band { padding: 34px 0; }
  .sec-h2 { font-size: 20px; }
  .sub-hero { padding: 24px 0 30px; }
  .sub-hero-grid, .rule-grid-2, .related-list { grid-template-columns: 1fr; gap: 22px; }
  .sub-h1 { font-size: 24px; }
  .sub-lead { font-size: 13.5px; }
  .rule-col, .related-item { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px 4px; }
  .rule-col:last-child, .related-item:last-child { border-bottom: none; }
  .matte-spread { padding: 24px 18px 22px; box-shadow: 5px 6px 0 #d9d0be; }
  .end-cta-in { flex-direction: column; align-items: stretch; padding: 20px 18px; gap: 16px; }
  .cta-main { width: 100%; }
}

[hidden]{display:none!important}
.craft-header-tools{display:flex;align-items:center;gap:8px;min-width:0}
.craft-language{border:1px solid var(--ink);background:#fff;color:var(--ink);padding:5px;max-width:112px;font:inherit;font-size:12px}
.footer-links{flex-wrap:wrap}
.craft-public canvas{display:block;width:100%;height:auto}
.craft-public .floating-cta{z-index:5}
.craft-mobile-menu{display:none}
@media(max-width:900px){
 .site-nav{display:none}
 .craft-mobile-menu{display:block;position:relative}
 .craft-mobile-menu summary{list-style:none;cursor:pointer;padding:5px;color:var(--ink)}
 .craft-mobile-menu nav{position:absolute;z-index:10;right:0;top:100%;width:min(248px,82vw);background:white;border:2px solid var(--ink);box-shadow:4px 5px var(--cream);padding:8px}
 .craft-mobile-menu nav a{display:block;padding:7px;color:var(--ink);text-decoration:none;font-size:13.5px;font-weight:700}
 .craft-mobile-menu nav a.career-brand-pill{display:flex;margin-top:8px;padding:8px 10px;justify-content:flex-start}
}
@media(max-width:500px){.craft-header-tools{gap:5px}.brand{min-width:0}.login-link{padding-inline:6px;font-size:11px}.craft-language{max-width:92px}.header-in{gap:6px}}

[data-craft-style="0"]{width:72%;}
[data-craft-style="1"]{width:28%;}
[data-craft-style="2"]{left:44%;}
[data-craft-style="3"]{width:35%;}
[data-craft-style="4"]{width:65%;}
[data-craft-style="5"]{left:31%;}
[data-craft-style="6"]{width:118px;height:142px;transform:rotate(-3deg);}
[data-craft-style="7"]{width:118px;height:142px;transform:rotate(3deg);}
[data-craft-style="8"]{margin-bottom:14px;}
[data-craft-style="9"]{font-size:22px;margin-bottom:10px;}
[data-craft-style="10"]{font-size:17px;font-weight:900;margin-bottom:8px;}
[data-craft-style="11"]{width:66%;}
[data-craft-style="12"]{width:34%;}
[data-craft-style="13"]{width:42%;}
[data-craft-style="14"]{width:58%;}
[data-craft-style="15"]{width:50%;}
[data-craft-style="16"]{width:82px;height:98px;background:#c7f0d3;}
[data-craft-style="17"]{margin-bottom:0;}
[data-craft-style="18"]{margin-top:42px;}
[data-craft-style="19"]{font-size:16px;font-weight:900;margin-bottom:14px;}
[data-craft-style="20"]{font-size:12.5px;font-weight:800;color:var(--brand);margin-bottom:8px;}
[data-craft-style="21"]{display:flex;align-items:baseline;gap:14px;}
[data-craft-style="22"]{background:var(--bar-green);}
[data-craft-style="23"]{background:var(--bar-purple);margin-left:-4px;}
[data-craft-style="24"]{background:#e6f0ec;color:var(--brand);}
[data-craft-style="25"]{background:#f5ecd6;color:var(--ink);}
[data-craft-style="26"]{font-size:12px;font-weight:900;color:var(--brand);}
[data-craft-style="27"]{font-size:12px;font-weight:800;color:var(--ink-mute);}
[data-craft-style="28"]{font-size:18px;}
[data-craft-style="29"]{width:76px;height:92px;background:#c7f0d3;}
[data-craft-style="30"]{font-size:15px;line-height:1.9;color:var(--ink-soft);max-width:760px;}
[data-craft-style="31"]{margin-top:40px;}
[data-craft-style="32"]{padding-top:4px;}
[data-craft-style="33"]{margin-top:28px;}