/* WAII
   haze #E4EBF0  paper #F7F9FA  ink #1C3144
   indigo #1F4E73  cedar #6B3320  line #C5D0D8
   Two bars: the II in the name, and the two services. */

:root {
  --haze: #e4ebf0;
  --paper: #f7f9fa;
  --ink: #1c3144;
  --indigo: #1f4e73;
  --indigo-deep: #16324c;
  --cedar: #6b3320;
  --cedar-deep: #4e2416;
  --line: #c5d0d8;
  --sans: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --serif: "Shippori Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  --wrap: 68rem;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--haze);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  font-feature-settings: "palt";
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }

h1, h2, h3, .footer-org, .pole-name, .email-link, .steps li::marker {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.28;
}

h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin-bottom: 1.2rem; }

h3 { font-size: 1.28rem; }

a { color: var(--indigo); text-underline-offset: 0.18em; }
a:visited { color: var(--indigo); }

:focus { outline: 2px solid var(--cedar); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; }

main[tabindex="-1"]:focus { outline: none; }

::selection { background: #c5d7e6; color: var(--ink); }

img { max-width: 100%; }

button, summary { font: inherit; color: inherit; border-radius: 0; }

html:not(.lang-en) .t-en { display: none; }
html.lang-en .t-ja { display: none; }

.show-in-en { display: none; }
html.lang-en .show-in-ja { display: none; }
html.lang-en .show-in-en { display: inline; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.skip:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

[id] { scroll-margin-top: 5.25rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.bar {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
}

.logo:visited { color: var(--ink); }

.logo-word { letter-spacing: 0.14em; }

.mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.05rem;
}

.mark i { display: block; width: 3px; background: var(--indigo); }
.mark i:first-child { height: 100%; }
.mark i:last-child { height: 68%; }

.tools { display: flex; align-items: center; gap: 0.5rem; }

.lang-toggle,
.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.9375rem;
}

.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }

@media (max-width: 759px) {
  .menu { position: relative; }
  .menu[open] > .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 15rem;
    padding: 0.3rem 0;
    background: var(--paper);
    border: 1px solid var(--line);
    z-index: 30;
  }
  .menu[open] > .nav a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--ink);
    text-decoration: none;
  }
  .menu[open] > .nav a:hover { background: var(--haze); }
}

/* Author display wins over the UA rule that hides closed details, so wide screens keep the nav visible. */
@media (min-width: 760px) {
  .menu { position: static; }
  .menu > summary { display: none; }
  .menu > .nav {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 0.35rem 0;
  }
  .nav a:hover { text-decoration: underline; text-underline-offset: 0.32em; }
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--indigo);
  text-underline-offset: 0.32em;
}

.hero { padding: 2.6rem 0 3rem; }

.hero-grid { display: grid; gap: 2.25rem; align-items: center; }

.hero .lead { max-width: 38rem; }

.actions { margin-top: 1.45rem; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.15rem;
  background: var(--cedar);
  border: 1px solid var(--cedar);
  border-radius: 0;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.btn:visited { color: #fff; }
.btn:hover { background: var(--cedar-deep); border-color: var(--cedar-deep); color: #fff; }

.poles { display: grid; gap: 1.35rem; }

.pole {
  display: grid;
  grid-template-columns: 0.75rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: stretch;
  min-height: 7.75rem;
  color: inherit;
  text-decoration: none;
}

.pole:visited { color: inherit; }

.pole-bar { background: var(--indigo); min-height: 7.75rem; }
.pole-bar-short { height: 72%; min-height: 5.4rem; align-self: end; }
.pole-text { align-self: center; }
.pole-name { display: block; font-size: 1.4rem; }
.pole-note { display: block; margin-top: 0.3rem; line-height: 1.55; }

.pole:hover .pole-name,
.pole:focus-visible .pole-name { text-decoration: underline; text-underline-offset: 0.14em; }

.pole:hover .pole-bar,
.pole:focus-visible .pole-bar { background: var(--indigo-deep); }

.block { padding: 3.15rem 0; }
.band { background: var(--paper); }

.service + .service { margin-top: 2.6rem; }

.service {
  display: grid;
  grid-template-columns: 0.4rem minmax(0, 1fr);
  column-gap: 1.2rem;
}

.service-bar { background: var(--indigo); }
.service h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); margin-bottom: 0.45rem; }
.service p { max-width: 40rem; }

.bar-list { list-style: none; padding: 0; margin: 0.9rem 0 0; }
.bar-list li { position: relative; padding: 0.28rem 0 0.28rem 1rem; }
.bar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.55rem;
  height: 2px;
  background: var(--indigo);
}

.points { display: grid; gap: 1.35rem; }
.point { border-left: 3px solid var(--indigo); padding-left: 0.95rem; }
.point h3 { margin-bottom: 0.35rem; }
.point p { max-width: 36rem; }

.subhead { margin: 2.5rem 0 0.85rem; font-size: 1.4rem; }

.steps { max-width: 38rem; padding-left: 1.55rem; }
.steps li { margin: 0 0 1.15rem; padding-left: 0.4rem; }
.steps li::marker { color: var(--indigo); font-size: 1.15rem; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; }
.step-copy { display: block; }

.intro { max-width: 40rem; margin-bottom: 1.2rem; }

.info { width: 100%; border-collapse: collapse; }
.company-table { max-width: 44rem; }
.info th,
.info td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.info tr:first-child th,
.info tr:first-child td { border-top: 1px solid var(--line); }
.info th {
  width: 14rem;
  padding-right: 1.25rem;
  color: var(--indigo);
  font-weight: 500;
}

.cta { padding: 3.15rem 0 3.6rem; }
.hint { max-width: 40rem; margin-top: 0.3rem; }
.email-line { margin: 1.1rem 0 0.9rem; }
.email-link {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cedar);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
}
.email-link:visited { color: var(--ink); }
.email-link:hover { color: var(--cedar); }

.page-head { padding: 2.4rem 0 1.15rem; }
.page-head h1 { max-width: 18em; }
.page-head .intro { margin-bottom: 0; }

.sheet {
  max-width: 42rem;
  margin-bottom: 3rem;
  padding: 1.3rem 1.15rem 1.5rem;
  background: var(--paper);
  border-left: 0.4rem solid var(--indigo);
}
.sheet.wide { max-width: 48rem; }

.prose h2 { font-size: 1.32rem; margin: 1.9rem 0 0.6rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 0.9rem; }
.prose ul, .prose ol { margin: 0 0 0.95rem; padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }
.prose li::marker { color: var(--indigo); }
.prose a { overflow-wrap: anywhere; }
.prose .bar-list { margin: 0.75rem 0 0; padding-left: 0; }
.prose > :last-child { margin-bottom: 0; }
.toc { margin-bottom: 1.35rem; }
.note { margin-top: 1rem; }

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 2.1rem 0 2.4rem;
  font-size: 0.975rem;
  line-height: 1.65;
}
.footer-org { font-size: 1.15rem; margin-bottom: 0.3rem; }
.site-footer p + p { margin-top: 0.2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; margin-top: 1rem; }
.copy { margin-top: 1.4rem; }

@media (max-width: 640px) {
  .info tr {
    display: block;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
  }
  .info tr:last-child { border-bottom: 1px solid var(--line); }
  .info th,
  .info td,
  .info tr:first-child th,
  .info tr:first-child td {
    display: block;
    width: auto;
    border: 0;
    padding: 0;
  }
  .info th { margin-bottom: 0.12rem; }
}

@media (min-width: 720px) {
  .sheet { padding: 1.7rem 1.9rem 2rem; }
}

@media (min-width: 800px) {
  .block { padding: 4.1rem 0; }
  .cta { padding: 4.1rem 0 4.5rem; }
}

@media (min-width: 960px) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
  .point p { max-width: none; }
}

@media (max-width: 520px) {
  .hero h1 br { display: none; }
}

@media (min-width: 860px) {
  .hero { padding: 4.2rem 0 4.4rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(14.5rem, 19rem);
    column-gap: 3.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pole-bar {
    transform-origin: bottom center;
    animation: rise 0.7s cubic-bezier(0.16, 0.84, 0.32, 1) both;
  }
  .pole:nth-child(2) .pole-bar { animation-delay: 0.12s; }
}

@keyframes rise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-contrast: more) {
  :root { --line: #1c3144; }
  .btn { border-width: 2px; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .mark i, .pole-bar, .service-bar { background: CanvasText; }
}

@media print {
  .site-header { position: static; }
  .lang-toggle, .menu > summary, .skip, .noscript-note { display: none !important; }
  .menu > .nav {
    display: flex !important;
    flex-direction: row;
    gap: 1rem;
    position: static;
    border: 0;
    background: transparent;
  }
  .btn { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .pole-bar, .service-bar, .mark i, .point { print-color-adjust: exact; }
  tr, .service, .point { break-inside: avoid; }
}

/* brand logo mark */
.logo-img { display: block; width: 36px; height: 36px; border-radius: 8px; flex: 0 0 auto; }
@media (max-width: 40rem) { .logo-img { width: 32px; height: 32px; } }
