:root {
  --sx-ink: #29272a;
  --sx-muted: #6d676c;
  --sx-line: #ded7da;
  --sx-soft: #f7eef1;
  --sx-rose: #a33f60;
  --sx-rose-dark: #7e2947;
  --sx-green: #47715d;
  --sx-green-soft: #eaf2ed;
  --sx-gold: #b98b4c;
  --sx-white: #ffffff;
  --sx-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.sx-site {
  margin: 0;
  background: var(--sx-white);
  color: var(--sx-ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.sx-site a {
  color: var(--sx-rose-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.sx-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--sx-line);
  background: rgba(255, 255, 255, 0.97);
}

.sx-header__inner {
  display: flex;
  min-height: 70px;
  max-width: var(--sx-width);
  margin: 0 auto;
  padding: 0 22px;
  align-items: center;
  gap: 28px;
}

.sx-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--sx-ink) !important;
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

.sx-brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--sx-rose);
  border-radius: 6px;
  color: var(--sx-rose);
  place-items: center;
  font-family: Georgia, serif;
  font-size: 20px;
}

.sx-topnav {
  display: flex;
  min-width: 0;
  margin-left: auto;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sx-topnav::-webkit-scrollbar {
  display: none;
}

.sx-topnav a {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 11px;
  align-items: center;
  color: var(--sx-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sx-topnav a:hover,
.sx-topnav a:focus-visible {
  color: var(--sx-rose-dark);
  background: var(--sx-soft);
  outline: none;
}

.sx-topnav__cta {
  border: 1px solid var(--sx-rose) !important;
  border-radius: 5px;
  color: var(--sx-rose-dark) !important;
}

.sx-home-hero,
.sx-child-visual {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #eef2ef;
}

.sx-home-hero {
  height: min(560px, calc(100vh - 115px));
  min-height: 430px;
}

.sx-home-hero img,
.sx-child-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sx-home-hero__copy {
  position: absolute;
  inset: 0;
  display: flex;
  width: min(58%, 700px);
  padding: 58px max(28px, calc((100vw - var(--sx-width)) / 2 + 28px));
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.sx-eyebrow {
  margin: 0 0 12px;
  color: var(--sx-rose-dark);
  font-size: 14px;
  font-weight: 800;
}

.sx-home-hero h1 {
  max-width: 580px;
  margin: 0;
  color: #29272a;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 48px;
  line-height: 1.35;
  letter-spacing: 0;
}

.sx-home-hero__lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: #403b3e;
  font-size: 18px;
  font-weight: 600;
}

.sx-actions {
  display: flex;
  margin-top: 26px;
  flex-wrap: wrap;
  gap: 10px;
}

.sx-button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--sx-rose);
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  background: var(--sx-rose);
  color: var(--sx-white) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.sx-button:hover,
.sx-button:focus-visible {
  border-color: var(--sx-rose-dark);
  background: var(--sx-rose-dark);
  outline: none;
}

.sx-button--quiet {
  background: rgba(255, 255, 255, 0.9);
  color: var(--sx-rose-dark) !important;
}

.sx-trust-strip {
  border-top: 1px solid var(--sx-line);
  border-bottom: 1px solid var(--sx-line);
  background: var(--sx-white);
}

.sx-trust-strip ul {
  display: grid;
  max-width: var(--sx-width);
  margin: 0 auto;
  padding: 15px 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
}

.sx-trust-strip li {
  padding: 5px 14px;
  border-right: 1px solid var(--sx-line);
  color: var(--sx-green);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.sx-trust-strip li:last-child {
  border-right: 0;
}

.sx-site main.sx-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.sx-layout {
  display: grid;
  width: 100%;
  max-width: var(--sx-width);
  margin: 0 auto;
  grid-template-columns: 190px minmax(0, 1fr) 260px;
  align-items: start;
}

.sx-sidebar,
.sx-rail {
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 70px);
  padding: 28px 20px;
  overflow-y: auto;
}

.sx-sidebar {
  border-right: 1px solid var(--sx-line);
}

.sx-rail {
  border-left: 1px solid var(--sx-line);
}

.sx-sidebar h2,
.sx-rail h2 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
}

.sx-sidebar nav {
  display: grid;
  gap: 2px;
}

.sx-sidebar a {
  display: block;
  padding: 8px 4px;
  border-bottom: 1px solid #eee9eb;
  color: var(--sx-ink);
  font-size: 14px;
  text-decoration: none;
}

.sx-sidebar a:hover,
.sx-sidebar a:focus-visible {
  color: var(--sx-rose-dark);
  outline: none;
}

.sx-article {
  min-width: 0;
  padding: 38px 42px 64px;
}

.sx-article > :first-child {
  margin-top: 0;
}

.sx-child-visual {
  height: 190px;
  margin: 0 0 26px;
  border-radius: 6px;
}

.sx-child-visual img {
  object-position: 65% 38%;
}

.sx-site .sx-article .wrap,
.sx-site .sx-article .container {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.sx-site .sx-article .hero,
.sx-site .sx-article .content,
.sx-site .sx-article .panel,
.sx-site .sx-article .related,
.sx-site .sx-article .cta-band {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid var(--sx-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sx-site .sx-article .hero {
  padding-top: 0;
}

.sx-site .sx-article h1 {
  margin: 0 0 18px;
  color: var(--sx-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 34px;
  line-height: 1.45;
  letter-spacing: 0;
}

.sx-site .sx-article h2 {
  margin: 0 0 16px;
  color: var(--sx-ink);
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: 0;
}

.sx-site .sx-article h3 {
  margin: 22px 0 10px;
  color: var(--sx-green);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
}

.sx-site .sx-article p,
.sx-site .sx-article li {
  color: #494448;
}

.sx-site .sx-article .link-grid,
.sx-card-grid,
.sx-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sx-site .sx-article .link-card,
.sx-card,
.sx-step {
  display: block;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--sx-line);
  border-radius: 6px;
  background: var(--sx-white);
  color: var(--sx-ink);
  text-decoration: none;
}

.sx-site .sx-article .link-card:hover,
.sx-card:hover {
  border-color: var(--sx-rose);
}

.sx-site .sx-article .link-card span,
.sx-card strong,
.sx-step strong {
  display: block;
  color: var(--sx-ink);
  font-weight: 800;
}

.sx-site .sx-article .link-card small,
.sx-card span,
.sx-step p {
  display: block;
  margin-top: 6px;
  color: var(--sx-muted);
  font-size: 13px;
  line-height: 1.65;
}

.sx-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--sx-line);
}

.sx-section__label {
  margin: 0 0 8px;
  color: var(--sx-rose-dark);
  font-size: 13px;
  font-weight: 800;
}

.sx-section h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.5;
}

.sx-step-grid {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sx-step__number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--sx-rose);
  color: var(--sx-white);
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.sx-notice {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--sx-green);
  background: var(--sx-green-soft);
  color: #334b3f;
}

.sx-rail-cta {
  padding: 20px;
  border: 1px solid var(--sx-line);
  border-top: 4px solid var(--sx-rose);
  border-radius: 6px;
  background: var(--sx-white);
}

.sx-rail-cta p {
  margin: 0 0 16px;
  color: var(--sx-muted);
  font-size: 13px;
}

.sx-rail-cta .sx-button {
  width: 100%;
}

.sx-rail-checks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.sx-rail-checks li {
  padding: 10px 0;
  border-bottom: 1px solid var(--sx-line);
  color: var(--sx-green);
  font-size: 13px;
  font-weight: 700;
}

.sx-footer {
  border-top: 1px solid var(--sx-line);
  background: #29272a;
  color: #f4f1f2;
}

.sx-footer__inner {
  display: grid;
  max-width: var(--sx-width);
  margin: 0 auto;
  padding: 38px 22px;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
}

.sx-footer a {
  color: #ffffff;
}

.sx-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.sx-footer small {
  display: block;
  margin-top: 18px;
  color: #c9c3c6;
  line-height: 1.7;
}

.sx-footer-contact {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sx-footer-contact .sx-footer-label {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.sx-footer-contact dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin: 0;
}

.sx-footer-contact dt {
  margin: 0 0 4px;
  color: #e3b7c4;
  font-size: 12px;
  font-weight: 700;
}

.sx-footer-contact dd {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.sx-footer-legal {
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #201e20;
  color: #bfb6bb;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 1020px) {
  .sx-header__inner {
    display: block;
    padding-top: 10px;
  }

  .sx-brand {
    margin-bottom: 6px;
  }

  .sx-topnav {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 8px;
  }

  .sx-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .sx-sidebar {
    display: none;
  }

  .sx-home-hero {
    height: 520px;
  }

  .sx-home-hero__copy {
    width: 65%;
    padding-left: 28px;
  }
}

@media (max-width: 760px) {
  .sx-home-hero {
    height: 560px;
    min-height: 0;
  }

  .sx-home-hero img {
    object-position: 67% center;
    opacity: 0.42;
  }

  .sx-home-hero__copy {
    width: 100%;
    padding: 40px 22px;
    justify-content: flex-end;
  }

  .sx-home-hero h1 {
    font-size: 34px;
  }

  .sx-home-hero__lead {
    font-size: 16px;
  }

  .sx-trust-strip ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-trust-strip li:nth-child(2) {
    border-right: 0;
  }

  .sx-trust-strip li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--sx-line);
  }

  .sx-layout {
    display: block;
  }

  .sx-article {
    padding: 26px 20px 42px;
  }

  .sx-rail {
    position: static;
    max-height: none;
    padding: 28px 20px 42px;
    border-top: 1px solid var(--sx-line);
    border-left: 0;
    overflow: visible;
  }

  .sx-child-visual {
    height: 150px;
  }

  .sx-site .sx-article h1 {
    font-size: 28px;
  }

  .sx-site .sx-article h2,
  .sx-section h2 {
    font-size: 21px;
  }

  .sx-site .sx-article .link-grid,
  .sx-card-grid,
  .sx-step-grid {
    grid-template-columns: 1fr;
  }

  .sx-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .sx-header__inner {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sx-brand {
    font-size: 19px;
  }

  .sx-home-hero h1 {
    font-size: 31px;
  }

  .sx-actions {
    display: grid;
    width: 100%;
  }

  .sx-button {
    width: 100%;
  }

  .sx-trust-strip ul {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sx-trust-strip li {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 12px;
  }
}
