.shell {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
:root {
  --section-links-spacing: 32px;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}
@media (max-width: 680px) {
  :root {
    scroll-padding-top: 62px;
  }
}
.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.header-inner {
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font:
    700 29px/1 Arial,
    sans-serif;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.header nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.45vw, 25px);
  font-size: 14px;
  font-weight: 700;
}
.header nav a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.menu-toggle {
  display: none;
}
.header .button,
.contact .button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 21px;
  background: var(--orange);
  color: #241800;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}
.header .button:hover,
.contact .button:hover {
  background: #ffca9f;
}
.header .button.compact,
.contact .button.compact {
  min-height: 44px;
  background: var(--navy);
  color: #fff;
}
.header .button.compact:hover,
.contact .button.compact:hover {
  background: #30495e;
}
.header .button.outline,
.contact .button.outline {
  border-color: #a8b8c7;
  background: transparent;
  color: #fff;
}
.header .button.outline:hover,
.contact .button.outline:hover {
  background: #263e52;
}
.header .button-icon,
.contact .button-icon {
  display: block;
  flex: 0 0 18px;
}
.header .actions,
.contact .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.contact {
  background: var(--navy);
  color: #fff;
  padding-block: 52px;
}
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.contact h2 {
  font-size: clamp(26px, 3.2vw, 42px);
}
.contact p {
  margin-top: 10px;
  color: #d5dee6;
  line-height: 1.8;
}
.footer {
  background: var(--paper);
  padding-block: 25px;
}
.footer a:not(.brand),
.footer small {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .shell {
    width: calc(100% - 48px);
  }
  .header nav {
    gap: 13px;
    font-size: 13px;
  }
  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 680px) {
  .shell {
    width: calc(100% - 36px);
  }
  .header-inner {
    min-height: 62px;
  }
  .header nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 14px 18px 22px;
    background: #fff;
    box-shadow: 0 10px 15px #0002;
  }
  .header nav.is-open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }
  .header nav a:not(.button) {
    padding: 8px 0;
  }
  .contact .button {
    min-height: 48px;
    padding-inline: 12px;
    gap: 8px;
    white-space: nowrap;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 15px;
  }
}
.contact-phone span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.contact-inner {
  align-items: end;
  gap: 18px;
}
.contact-inner .actions {
  flex: none;
  justify-content: flex-end;
  gap: 12px;
}
.footer-main {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand nav" "description copyright";
  align-items: center;
  gap: 18px 28px;
}
.footer-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-description {
  grid-area: description;
  color: var(--muted);
  font-size: 14px;
}
.footer-main nav {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.footer-main small {
  grid-area: copyright;
  justify-self: end;
}
@media (max-width: 900px) {
  .contact-inner {
    align-items: stretch;
    gap: 28px;
  }
}
@media (max-width: 680px) {
  .footer-main {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "description" "nav" "copyright";
    gap: 16px;
  }
  .footer-main nav {
    justify-content: flex-start;
  }
  .footer-main small {
    justify-self: center;
  }
}
.header nav a[aria-current="page"] {
  color: #a35326;
}
.footer-main nav a:hover,
.footer-main nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header,
.footer,
.contact {
  --paper: #f6f4ef;
  --orange: #ffb077;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: normal;
}
.header .brand img,
.footer .brand img {
  display: block;
  width: auto;
  height: var(--brand-logo-height);
}
.header {
  --brand-logo-height: 48px;
}
.footer {
  --brand-logo-height: 29px;
}
.header a:focus-visible,
.header button:focus-visible,
.footer a:focus-visible,
.contact a:focus-visible {
  outline: 3px solid #b86022;
  outline-offset: 4px;
}
.contact h2,
.footer-description {
  margin: 0;
}
.contact p {
  margin-bottom: 0;
}

@media (681px <= width <= 820px) {
  :root {
    scroll-padding-top: 62px;
  }
  .header .header-inner {
    min-height: 62px;
  }
  .header nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 14px 18px 22px;
    background: #fff;
    box-shadow: 0 10px 15px #0002;
  }
  .header nav.is-open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .header {
    --brand-logo-height: 40px;
  }
  .header .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
}

/* Shared heading styles for the homepage and product pages. */
:root {
  --site-heading-font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --site-hero-heading-size: clamp(40px, 5.3vw, 76px);
  --site-section-heading-size: clamp(28px, 3.5vw, 48px);
}

.hero-copy h1,
.touch-design .hero-copy h1,
.detail-title h1,
.epos-hero h1 {
  font-family: var(--site-heading-font);
  font-size: var(--site-hero-heading-size);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.045em;
}

.section-title,
#self h2,
.contact h2,
.epos-stack h2,
.touch-design :is(.section-heading, .tool-copy) h2 {
  font-family: var(--site-heading-font);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.epos-stack h2,
.touch-design :is(.section-heading, .tool-copy) h2 {
  font-size: var(--site-section-heading-size);
}

.detail-hero-lead,
.epos-hero .epos-hero-tagline {
  font-family: var(--site-heading-font);
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.45;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-family: var(--site-heading-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.section-links a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-main:has(.footer-identity) {
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  grid-template-areas: "brand nav" "copyright copyright";
  align-items: start;
  gap: 30px 44px;
}

.footer-identity {
  grid-area: brand;
  display: grid;
  gap: 14px;
}

.footer-identity > :is(.footer-brand, .footer-description) {
  grid-area: auto;
}

.footer-main .footer-identity + nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  gap: 24px;
}

.footer-nav-heading {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.footer-nav-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav-group a {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-main:has(.footer-identity) small {
  justify-self: start;
}

@media (max-width: 1050px) {
  .footer-main:has(.footer-identity) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "nav" "copyright";
  }
}

@media (max-width: 680px) {
  .footer-main .footer-identity + nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
}

body:has(> .footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body:has(> .footer) > main {
  flex: 1 0 auto;
  min-width: 0;
}

.card-link:is(:hover, :focus-within) {
  border-color: #a26b45;
}

article.card-link {
  position: relative;
}

article.card-link .card-detail-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

article.card-link:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
