:root {
  color-scheme: light;
  --ink: #17102f;
  --ink-2: #25184f;
  --paper: #fbfaf6;
  --paper-2: #f1edf8;
  --text: #201b2f;
  --muted: #625d70;
  --line: #d9d2e3;
  --gold: #edbd3f;
  --gold-dark: #9a6b00;
  --coral: #e75f5a;
  --green: #26a96c;
  --sky: #378ed1;
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(23, 16, 47, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sky);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: var(--white);
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
}

.site-header__inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 7px;
}

.brand span {
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 13px;
  font-weight: 800;
}

.site-nav a {
  color: #f8f4ff;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffe18a;
}

.site-nav .nav-play {
  padding: 8px 14px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid #ffe18a;
  border-radius: 5px;
}

.hero {
  position: relative;
  min-height: clamp(520px, 68svh, 690px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background-color: var(--ink);
  background-image: url("/assets/domitoria-hero-v2.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: min(58%, 760px);
  content: "";
  background: var(--ink);
  border-right: 1px solid rgba(255, 225, 138, 0.34);
}

.hero__content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 68px;
}

.hero__copy {
  width: min(540px, 48%);
}

.hero__label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 9px;
  color: #ffe18a;
  border: 1px solid rgba(255, 225, 138, 0.68);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  color: #ffe07a;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.05;
  font-weight: 700;
}

.hero__lead {
  margin: 18px 0 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.45;
  font-weight: 900;
}

.hero__sub {
  max-width: 480px;
  margin: 14px 0 0;
  color: #e6e0f2;
  font-size: 15px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button--primary {
  color: var(--ink);
  background: var(--gold);
  border-color: #ffe18a;
  box-shadow: 0 5px 0 #8a5a00;
}

.button--primary:hover {
  color: var(--ink);
  transform: translateY(1px);
  box-shadow: 0 4px 0 #8a5a00;
}

.button--secondary {
  color: var(--white);
  background: rgba(23, 16, 47, 0.88);
  border-color: rgba(255, 255, 255, 0.58);
}

.button--secondary:hover {
  color: #ffe18a;
  border-color: #ffe18a;
}

.button--dark {
  color: var(--white);
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.section {
  padding: 76px 0;
}

.section--compact {
  padding: 54px 0;
}

.section--dark {
  color: var(--white);
  background: var(--ink-2);
}

.section--soft {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin: 0 0 32px;
}

.section-heading__label {
  margin: 0 0 4px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.section--dark .section-heading__label {
  color: #ffe18a;
}

.section--dark .section-heading p {
  color: #d5cee5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature:nth-child(2) {
  border-top-color: var(--coral);
}

.feature:nth-child(3) {
  border-top-color: var(--green);
}

.feature__number {
  display: block;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.feature h3 {
  margin: 8px 0 10px;
  font-size: 21px;
  line-height: 1.4;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.flow li {
  position: relative;
  min-height: 180px;
  padding: 26px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.flow li:last-child {
  border-right: 0;
}

.flow strong {
  display: block;
  margin-bottom: 9px;
  color: #ffe18a;
  font-size: 18px;
}

.flow span {
  color: #d5cee5;
  font-size: 14px;
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.support-band h2 {
  margin: 0 0 6px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.35;
}

.support-band p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 58px 0 52px;
  color: var(--white);
  background: var(--ink-2);
  border-bottom: 5px solid var(--gold);
}

.page-hero__inner {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero__label {
  margin: 0 0 5px;
  color: #ffe18a;
  font-size: 12px;
  font-weight: 900;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.3;
}

.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #d5cee5;
}

.document {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 78px;
}

.document__meta {
  margin: 0 0 34px;
  padding: 12px 16px;
  color: var(--muted);
  background: var(--paper-2);
  border-left: 4px solid var(--gold);
  font-size: 13px;
}

.document section {
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

.document section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.document h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.5;
}

.document h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.document p,
.document ul,
.document ol {
  margin-top: 0;
}

.document li + li {
  margin-top: 7px;
}

.document a {
  overflow-wrap: anywhere;
}

.notice {
  margin: 26px 0;
  padding: 18px 20px;
  background: #fff6d9;
  border: 1px solid #dfbd56;
  border-radius: 6px;
}

.notice--danger {
  background: #fff0ef;
  border-color: #dd8a86;
}

.contact-panel {
  margin: 26px 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sky);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel h2,
.contact-panel h3 {
  margin-top: 0;
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  margin: 26px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps li {
  position: relative;
  min-height: 56px;
  padding: 14px 16px 14px 58px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.steps li::before {
  position: absolute;
  top: 13px;
  left: 15px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  counter-increment: step;
  content: counter(step);
  color: var(--white);
  background: var(--ink-2);
  border-radius: 50%;
  font-weight: 900;
  line-height: 1;
}

.site-footer {
  color: #ddd6eb;
  background: var(--ink);
  border-top: 2px solid var(--gold);
}

.site-footer__inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 30px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.site-footer__brand {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  font-size: 13px;
}

.site-footer a {
  color: #eee8f8;
}

.site-footer__copy {
  margin: 24px 0 0;
  padding-top: 20px;
  color: #a9a1ba;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .site-header__inner {
    padding: 10px 0;
    align-items: flex-start;
  }

  .site-nav {
    max-width: 390px;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .hero {
    align-items: end;
    background-position: center top;
    background-size: 100% auto;
  }

  .hero::before {
    inset: min(56.25vw, 461px) 0 0;
    width: 100%;
    height: auto;
    border-top: 1px solid rgba(255, 225, 138, 0.34);
    border-right: 0;
  }

  .hero__content {
    padding-top: calc(min(56.25vw, 461px) + 36px);
    padding-bottom: 46px;
  }

  .hero__copy {
    width: min(620px, 100%);
  }

  .feature-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .flow li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .flow li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    min-height: 58px;
    align-items: center;
  }

  .brand span {
    font-size: 16px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .site-nav a:not(.nav-play) {
    display: none;
  }

  .site-nav .nav-play {
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    background-position: center top;
    background-size: 100% auto;
  }

  .hero::before {
    inset: 56.25vw 0 0;
    height: auto;
  }

  .hero__content {
    padding-top: calc(56.25vw + 28px);
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero__lead {
    font-size: 21px;
  }

  .hero__sub {
    font-size: 14px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section--compact {
    padding: 42px 0;
  }

  .support-band {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-hero {
    padding: 42px 0 38px;
  }

  .document {
    padding: 38px 0 58px;
  }

  .document section {
    padding: 23px 0;
  }

  .document h2 {
    font-size: 20px;
  }

  .contact-panel {
    padding: 20px;
  }

  .site-footer__top {
    display: block;
  }

  .site-footer nav {
    margin-top: 18px;
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
