@import url("./fonts.css");

:root {
  --unit: min(1px, 0.0520833333vw);
  --navy: #002c5e;
  --blue: #0068a9;
  --gold: #ba921e;
  --pale: #f8fafc;
  --green: #008c26;
  --orange: #e45b00;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(130 * var(--unit)); }
body { margin: 0; color: var(--navy); background: #fff; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif; font-size: calc(18 * var(--unit)); font-weight: 500; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
h1,h2,h3,h4,p,figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button,input,textarea,select { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img,svg { display: block; max-width: 100%; }
img { height: auto; }
button { color: inherit; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid #d4ac35; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 10px 20px; background: white; border: 2px solid var(--navy); }
.skip-link:focus { top: 12px; }
.site-header { height: calc(116 * var(--unit)); padding: 0 calc(40 * var(--unit)); display: flex; align-items: center; justify-content: space-between; color: #2a2e35; background: #fff; position: relative; z-index: 5; }
.site-brand { display: block; flex: 0 0 auto; position: relative; width: calc(360 * var(--unit)); height: 100%; font-feature-settings: "palt"; }
.site-brand-top { display: block; }
.site-logo { position: absolute; left: 0; top: calc(28 * var(--unit)); width: calc(150.5556 * var(--unit)); height: calc(30 * var(--unit)); object-fit: contain; }
.site-brand small { position: absolute; left: calc(163.99 * var(--unit)); top: calc(38.26 * var(--unit)); font-size: calc(13 * var(--unit)); line-height: 1.25; letter-spacing: .05em; color: #6e6e6e; }
.site-brand strong { color: #2e3133; position: absolute; left: calc(-2.24 * var(--unit)); top: calc(61.77 * var(--unit)); display: flex; align-items: baseline; font-size: calc(26 * var(--unit)); line-height: 1; white-space: nowrap; letter-spacing: 0; }
.brand-particle { font-size: .8em; position: relative; left: .01731em; top: .02356em; -webkit-text-stroke: calc(.1 * var(--unit)) currentColor; }
.site-brand strong>span:last-child { position: relative; left: .00865em; }
.site-nav { display: flex; align-items: center; gap: calc(28 * var(--unit)); font-size: calc(16 * var(--unit)); font-weight: 700; line-height: 1.25; font-feature-settings: "palt"; }
.site-nav a:not(.header-contact):hover { color: var(--blue); }
.header-contact { display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--unit)); border-radius: 999px; width: calc(240 * var(--unit)); height: calc(60 * var(--unit)); background: linear-gradient(90deg,#0060a3,#0092d0); color: #fff; font-size: calc(24 * var(--unit)); }
.header-contact :is(img,svg) { width: calc(20.67439 * var(--unit)); height: calc(26 * var(--unit)); }
.menu-toggle { display: none; }
.mobile-header-contact { display: none; }
body[data-page="top"] .site-header { position: absolute; top: 0; left: 0; height: calc(85 * var(--unit)); width: 100%; background: transparent; border: 0; align-items: flex-start; }
body[data-page="top"] .site-logo { top: calc(38 * var(--unit)); width: calc(200.7407 * var(--unit)); height: calc(40 * var(--unit)); }
body[data-page="top"] .site-brand small,body[data-page="top"] .site-brand strong,body[data-page="top"] .site-nav { display: none; }
@media (min-width: 768px) {
  /* Illustrator places each label separately; keep those text origins and
     baselines while the containing header scales with the desktop layout. */
  body[data-page="purchase"] .site-brand strong { color: #2a2e35; }
  .header-contact>span { transform: translateY(calc(-1.97 * var(--unit))); }
  .site-nav>a:not(.header-contact) { transform: translate(calc(var(--nav-x, 0) * var(--unit)), calc(-.94 * var(--unit))); }
  body[data-page="owner"] .site-nav>a:nth-child(1) { --nav-x: -4.51; }
  body[data-page="owner"] .site-nav>a:nth-child(2) { --nav-x: -1.769; }
  body[data-page="owner"] .site-nav>a:nth-child(3) { --nav-x: -2.132; }
  body[data-page="owner"] .site-nav>a:nth-child(4) { --nav-x: -.959; }
  body[data-page="owner"] .site-nav>a:nth-child(5) { --nav-x: -.931; }
  body[data-page="owner"] .site-nav>a:nth-child(6) { --nav-x: -1.101; }
  body[data-page="owner"] .site-nav>a:nth-child(7) { --nav-x: -.887; }
  body[data-page="purchase"] .site-nav>a:nth-child(1) { --nav-x: -1.272; }
  body[data-page="purchase"] .site-nav>a:nth-child(2) { --nav-x: -.189; }
  body[data-page="purchase"] .site-nav>a:nth-child(3) { --nav-x: -.161; }
  body[data-page="purchase"] .site-nav>a:nth-child(4) { --nav-x: -.331; }
  body[data-page="purchase"] .site-nav>a:nth-child(5) { --nav-x: -.787; }

  body:not([data-page="top"]) .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-.5 * var(--unit)); height: calc(1 * var(--unit)); background: rgb(221 221 221 / .8); pointer-events: none; }
}
.site-footer { position: relative; height: calc(100 * var(--unit)); padding: 0 calc(80 * var(--unit)); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: calc(16 * var(--unit)); font-weight: 400; line-height: 1.75; font-feature-settings: "palt"; color: #ccc; background: #0060a3; }
.site-footer::before { content: ""; position: absolute; top: calc(-.5 * var(--unit)); left: calc(80 * var(--unit)); right: calc(80 * var(--unit)); height: calc(1 * var(--unit)); background: rgb(221 221 221 / .3); pointer-events: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: calc(28 * var(--unit)); transform: translateY(calc(-2.4374 * var(--unit))); }
/* Preserve the original proportional-text spacing between footer links. */
.site-footer nav>a:nth-child(2) { --footer-x: .699; }
.site-footer nav>a:nth-child(3) { --footer-x: 1.262; }
.site-footer nav>a:nth-child(4) { --footer-x: 1.497; }
.site-footer nav>a:nth-child(5) { --footer-x: 2.176; }
.site-footer nav>a:nth-child(6) { --footer-x: 2.806; }
.site-footer nav>a:nth-child(7) { --footer-x: 3.285; }
.site-footer nav>a { transform: translateX(calc(var(--footer-x, 0) * var(--unit))); }
.site-footer nav a:first-child,.site-footer a:hover { text-decoration: underline; text-underline-offset: 1px; }
.site-footer small { white-space: nowrap; font-size: inherit; font-family: "Google Sans",sans-serif; font-feature-settings: "ss09"; line-height: 1; transform: translateY(calc(.5126 * var(--unit))); }
/* Illustrator optical kerning uses individual origins for this short label. */
.site-copyright { display: inline-block; position: relative; width: calc(147.50928 * var(--unit)); text-align: left; white-space: pre; font-kerning: none; }
.site-copyright>span:not(:first-child) { position: absolute; top: 0; left: calc(var(--glyph-x) * var(--unit)); }
.site-notice { width: min(480px, calc(100vw - 32px)); padding: 30px; color: var(--navy); border: 0; border-radius: 12px; box-shadow: 0 12px 70px #001d3d40; }
.site-notice::backdrop { background: #001d3d88; }
.site-notice h2 { font-size: 21px; margin-bottom: 12px; }
.site-notice p { font-size: 15px; line-height: 1.9; }
.site-notice button { display: block; margin: 24px 0 0 auto; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 9px 28px; }
@media (max-width: 767px) {
  :root { --unit: 1px; }
  html { scroll-padding-top: 80px; }
  body { font-size: 14px; }
  .site-header { height: 56px; padding: 0; justify-content: flex-start; }
  .site-brand { flex: 1; min-width: 0; padding: 0; }
  .site-logo { left: 12px; top: 10.5px; width: 90.3333px; height: 18px; }
  .site-brand small { left: 110.71px; top: 17.82px; white-space: nowrap; font-size: 9px; line-height: 1; }
  .site-brand strong { left: 12px; top: 30.64px; font-size: 15.6px; line-height: 1; letter-spacing: 0; color: #2e3133; }
  .mobile-header-contact { display: flex; align-items: center; justify-content: center; gap: 6px; align-self: stretch; flex: 0 0 110px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; background: linear-gradient(90deg,#0060a3,#0092d0); }
  .mobile-header-contact>span { transform: translateY(-.71px); }
  .mobile-header-contact :is(img,svg) { width: 15.90337px; height: 20px; }
  .menu-toggle { flex: 0 0 56px; width: 56px; height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 4.5px; background: var(--navy); border: 0; border-radius: 0; padding: 19px; }
  body[data-page="owner"] .menu-toggle { background: linear-gradient(90deg,#003e80,#002b5c); }
  .menu-toggle { position: relative; }
  .menu-toggle::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='M19 22H37M19 28H37M19 34H37' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 56px 56px no-repeat; }
  .menu-toggle span { visibility: hidden; display: block; height: 1.5px; width: 100%; background: #fff; border-radius: 2px; }
  .site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: white; padding: 16px 20px 24px; box-shadow: 0 14px 20px #002c5e16; font-size: 14px; }
  .site-nav.is-open { display: grid; gap: 0; }
  .site-nav a { padding: 14px 8px; }
  .site-nav .header-contact { justify-content: center; width: 100%; height: auto; font-size: 18px; margin-top: 8px; padding: 12px; }
  .header-contact :is(img,svg) { width: 18px; height: 24px; }
  body[data-page="top"] .site-header { height: 65px; padding: 0; }
  body[data-page="top"] .site-brand { padding: 0; }
  body[data-page="top"] .site-brand::before { content: ""; position: absolute; left: 7.7037px; top: 12.5px; width: 128px; height: 30px; background: #fff; }
  body[data-page="top"] .site-logo { width: 119.4074px; height: 23.7934px; top: 16.10332px; }
  body[data-page="top"] .menu-toggle { display: none; }
  .site-footer { height: auto; padding: 21.5px 20px 30.21px; display: block; font-size: 14px; line-height: 28px; }
  .site-footer::before { left: 0; right: 0; }
  .site-footer nav { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4,28px); grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 0; transform: translateY(.82px); }
  .site-footer nav>a { transform: none; }
  .site-footer small { display: block; text-align: center; font-size: 14px; line-height: 14px; margin-top: 20px; transform: translateY(1.985px); }
  .site-copyright { width: 129.17578px; }
  .site-copyright>span:not(:first-child) { left: calc(var(--glyph-sp-x) * 1px); }
}
@media (max-width: 359px) {
  .site-brand small { left: 99px; font-size: 7.5px; }
  .site-brand strong { left: 8px; font-size: 13px; }
  .site-logo { left: 8px; width: 80px; height: 18px; object-position: left top; }
  body[data-page="top"] .site-brand::before { left: 3.7037px; }
  .mobile-header-contact { flex-basis: 90px; font-size: 14px; gap: 4px; }
  .menu-toggle { flex-basis: 44px; width: 44px; padding-inline: 12px; }
  .site-footer { font-size: 12px; }
}
@media (min-width: 360px) and (max-width: 374px) {
  /* Keep the 375px brand area intact while the assessment button absorbs
     the small viewport difference. Its icon and label still fit at 360px. */
  .mobile-header-contact { flex-basis: calc(100vw - 265px); }
}
/* Applied by JavaScript only to offscreen content; no layout or transform changes. */
.is-scroll-pending { opacity: 0; }
@media print { .is-scroll-pending { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } .is-scroll-pending { opacity: 1; } }
