@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400..800&display=swap");

:root {
  color-scheme: light;
  --ink: #102b4a;
  --muted: #405b76;
  --blue: #075aaa;
  --hero-blue: #0d5e9c;
  --sky: #eaf6ff;
  --line: #cfdfed;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDPMincho", "MS PMincho", serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-weight: 500; line-height: 1.8; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
p, td, th, a { overflow-wrap: anywhere; }
a { color: var(--blue); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.reading-width { max-width: 57rem; }
.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

.skip-link {
  position: absolute;
  z-index: 5;
  top: .75rem;
  left: var(--gutter);
  padding: .5rem 1rem;
  background: #fff;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-layout { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 auto;
  width: 2.25rem;
  aspect-ratio: 1;
  background: url("brand-assets/tts-128.png") center / contain no-repeat;
}

.primary-nav { display: flex; gap: clamp(.9rem, 2.3vw, 2rem); align-items: stretch; }
.primary-nav a {
  display: grid;
  align-items: center;
  min-height: 4.55rem;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--blue); border-color: #328ad0; }
.menu-toggle { display: none; }
.menu-icon { width: 1rem; height: .75rem; border-block: 2px solid; }
.menu-icon::after { display: block; content: ""; border-top: 2px solid; margin-top: .25rem; }

.hero { color: #fff; background: var(--hero-blue); overflow: hidden; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  min-height: clamp(29rem, 46vw, 39rem);
}

.hero-copy { padding-block: clamp(3.75rem, 8vw, 7rem); z-index: 1; }
.eyebrow {
  color: var(--blue);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow, .page-hero .eyebrow { color: #c6ebff; }
.hero h1 {
  margin-block: .65rem .9rem;
  font-size: clamp(2.45rem, 5.8vw, 5rem);
  font-weight: 800;
  letter-spacing: .045em;
}

.hero-lead { font-size: clamp(1.25rem, 2.5vw, 2.15rem); font-weight: 650; line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.85rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .55rem 1.25rem;
  border: 1px solid #afd8f2;
  border-radius: .18rem;
  font-size: .9375rem;
  font-weight: 750;
  text-decoration: none;
}

.button-primary { color: #104379; background: #fff; }
.button-primary:hover { background: #dcefff; }
.button-outline { color: #fff; }
.button-outline:hover { background: #074a83; }

.hero-graphic {
  position: relative;
  isolation: isolate;
  width: min(100%, 31rem);
  aspect-ratio: 1.15;
  justify-self: end;
}

.graphic-axis, .graphic-orbit, .graphic-tile, .graphic-core { position: absolute; }
.graphic-axis { inset: 9% 3%; border: 1px solid #5aa5d2; }
.graphic-axis::before, .graphic-axis::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
}

.graphic-axis::before { left: 50%; border-left: 1px solid #5aa5d2; }
.graphic-axis::after { top: 50%; border-top: 1px solid #5aa5d2; }
.graphic-orbit { inset: 16% 20%; border: 1px solid #84c9eb; border-radius: 50%; }
.graphic-tile, .graphic-core {
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg) skew(-12deg, -12deg);
}

.graphic-tile-south { margin-top: 12%; background: #147cb8; border: 1px solid #60b4dc; }
.graphic-tile-north { margin-top: -12%; background: #227fb5; border: 1px solid #a7dcf5; }
.graphic-core { width: 28%; margin-top: -12%; background: #9edcf3; border: 1px solid #e3f7ff; }
.graphic-core::after { content: ""; position: absolute; inset: 19%; border: 1px solid #377da7; }

.greeting-layout { display: grid; grid-template-columns: minmax(11rem, 1fr) 2.4fr; gap: 2rem; align-items: start; }
.band h2 { margin-top: .3rem; font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
.greeting-layout > p { max-width: 47rem; color: var(--muted); line-height: 2; }
.services-band { background: var(--sky); }
.services-band h2 { margin-bottom: 1.65rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  border-top: 3px solid #328ad0;
  background: #fff;
}

.service-card:target { outline: 2px solid var(--blue); outline-offset: 2px; }
.service-card h2, .service-card h3 { margin: .35rem 0 .7rem; font-size: clamp(1.2rem, 2.3vw, 1.55rem); }
.service-card h3 a { color: inherit; }
.service-card h3 a:hover { color: var(--blue); }
.service-card p:last-child { color: var(--muted); }

.page-hero {
  padding-block: clamp(2.8rem, 7vw, 5.3rem);
  color: #fff;
  background: var(--hero-blue);
  border-bottom: .3rem solid #80c9ee;
}

.page-hero h1 {
  margin-top: .4rem;
  font-size: clamp(1.85rem, 5vw, 3.7rem);
  letter-spacing: .025em;
  text-wrap: balance;
}
.detail-table { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 1px solid var(--line); }
.detail-table th, .detail-table td {
  padding: 1rem clamp(.8rem, 2.6vw, 1.55rem);
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.detail-table th { width: 31%; background: var(--sky); }
.policy-section + .policy-section { margin-top: 2.5rem; }
.policy-section h2 { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid #328ad0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.policy-section h3 { margin: 1.45rem 0 .45rem; font-size: 1.1rem; }
.policy-section p, .policy-section li { color: var(--muted); }
.policy-section ul { padding-inline-start: 1.35rem; }
.policy-section li + li { margin-top: .25rem; }

.site-footer { padding-block: 2.3rem; color: #fff; background: var(--hero-blue); }
.site-footer .brand-mark { background-image: url("brand-assets/tts-white-512.png"); }
.footer-layout { display: grid; grid-template-columns: auto 1fr; gap: .65rem 2rem; align-items: center; }
.footer-layout nav { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; justify-content: end; }
.footer-layout nav a { color: #e1f1fc; font-size: .875rem; }
.footer-layout small { grid-column: 1 / -1; color: #c6ddef; }

@media (max-width: 52rem) {
  .header-layout { flex-wrap: wrap; gap: 0; padding-block: .8rem; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .35rem .65rem;
    border: 1px solid var(--line);
    border-radius: .18rem;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
  }
  .primary-nav { width: 100%; flex-direction: column; gap: 0; padding-top: .55rem; }
  .primary-nav a { min-height: 2.75rem; padding: .25rem .45rem; border-bottom-width: 1px; }
}

@media (max-width: 43rem) {
  .hero-layout { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-block: 3.4rem .5rem; }
  .hero-graphic { width: min(78%, 21rem); justify-self: center; margin-bottom: 1.2rem; }
  .greeting-layout, .service-grid, .footer-layout { grid-template-columns: 1fr; }
  .greeting-layout { gap: .85rem; }
  .footer-layout nav { justify-content: start; }
  .detail-table th { width: 38%; }
  .detail-table th, .detail-table td { padding-inline: .6rem; }
}
