:root {
  --ink: #24242a;
  --ink-soft: #5b5b63;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --line: #d9d7d0;
  --line-strong: #b8b5ab;
  --primary: #35315f;
  --primary-dark: #1e1c34;
  --accent: #65618e;
  --max-width: 1180px;
  --reading-width: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--primary);
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--primary-dark);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--primary);
}

.header-inner,
.wrap {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  background: transparent;
}

.brand-link:hover {
  opacity: 0.84;
}

.brand-link img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.site-nav ul,
.footer-links,
.service-list,
.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-header :focus-visible {
  outline-color: #ffffff;
}

main {
  min-width: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100svh - 80px));
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  top: 0;
  right: max(24px, calc((100% - var(--max-width)) / 2));
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
  content: "";
}

.home-page .hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  gap: clamp(56px, 9vw, 128px);
  padding-block: 112px;
}

.hero-weave {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -5vw;
  width: min(82vw, 1180px);
  height: auto;
  max-width: none;
  opacity: 0.82;
  pointer-events: none;
  transform: translateY(-50%);
  user-select: none;
}

.hero-grid--single {
  grid-template-columns: minmax(0, 920px);
}

.eyebrow,
.section-index,
.page-kicker,
.status-label {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.7rem, 7vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.hero h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5.2vw, 5rem);
}

.hero-copy-line {
  display: block;
}

.hero-copy-line:last-child {
  white-space: nowrap;
}

.hero-lead {
  max-width: 640px;
  margin: 40px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  color: #fff;
  background: var(--primary-dark);
}

.button-link.secondary {
  color: var(--primary);
  background: transparent;
}

.button-link.secondary:hover {
  color: #fff;
  background: var(--primary);
}

.hero-aside {
  align-self: end;
  padding: 30px 0 30px 32px;
  border-left: 1px solid var(--line-strong);
}

.hero-aside p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 650;
  line-height: 1.5;
}

.hero-aside p + p {
  margin-top: 16px;
}

.hero-aside small {
  display: block;
  margin-top: 24px;
  color: var(--ink-soft);
}

.section {
  padding-block: clamp(88px, 12vw, 152px);
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
}

.section h2,
.content-block h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.section-copy {
  max-width: var(--reading-width);
}

.section-copy > p:first-child,
.lead-copy {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.7;
}

.section-copy p {
  margin-bottom: 0;
}

.section-copy p + p {
  margin-top: 24px;
}

.about-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 36px 0 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.about-process li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-inline: 18px;
  border-left: 1px solid var(--line);
  font-size: 0.94rem;
  font-weight: 650;
}

.about-process-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-page .about-process-icon {
  width: 60px;
  height: 60px;
}

.about-process li:first-child {
  padding-left: 0;
  border-left: 0;
}

.principle-list {
  border-top: 1px solid var(--line-strong);
}

.principle-list li {
  display: grid;
  grid-template-columns: 72px minmax(150px, 0.38fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.principle-number {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.principle-list h3,
.service-row h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.4;
}

.principle-list p,
.service-row p {
  margin: 0;
  color: var(--ink-soft);
}

.service-list {
  border-top: 1px solid var(--line-strong);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}

.service-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 4px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.service-action--secondary {
  color: var(--ink-soft);
  font-weight: 600;
}

.service-action--secondary:hover {
  color: var(--primary);
}

.service-status {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.news-strip {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.news-strip p {
  margin: 0;
  color: var(--ink-soft);
}

.home-page .hero {
  min-height: min(502px, calc(65svh - 65px));
}

.home-page .hero-grid {
  padding-block: clamp(52px, 6.5vw, 71px);
}

.home-page .hero-lead {
  margin-top: 28px;
}

.home-page .section {
  padding-block: clamp(52px, 6vw, 80px);
}

.home-page .section-grid {
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.home-page .section-index {
  margin-bottom: 10px;
}

.home-page .section h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.home-services {
  background: #f1f0eb;
}

.home-page .service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border-top: 0;
}

.home-page .service-row {
  position: relative;
  display: grid;
  min-height: 220px;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  align-items: start;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(30, 28, 52, 0.06);
}

.home-page .service-row:nth-child(even) {
  padding: 28px;
  border-left: 1px solid var(--line);
}

.home-page .service-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
}

.home-page .service-row p {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.home-page .service-actions,
.home-page .service-status {
  grid-column: 1;
  margin-top: 18px;
  justify-self: start;
}

.home-page .service-status {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.home-page .service-actions .service-action {
  margin-top: 0;
}

.home-about {
  background: var(--surface);
}

.home-about .section-copy > p:first-child {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.home-about .about-process {
  margin-top: 24px;
  padding-block: 18px;
}

.home-about .text-link {
  margin-top: 16px;
}

.home-page .home-news {
  padding-block: 36px;
}

.home-news .news-strip {
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.home-news .section-index {
  margin-bottom: 2px;
}

.home-news h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.news-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: baseline;
}

.news-item time,
.news-entry time {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-entry {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding-block: 26px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.news-entry p {
  margin: 0;
}

.home-news .text-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 24px;
  color: var(--primary);
  font-weight: 700;
}

.page-hero {
  padding-block: clamp(48px, 6vw, 72px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
  max-width: var(--reading-width);
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.page-hero .lead-copy {
  max-width: 760px;
  margin-top: 18px;
  color: var(--ink-soft);
}

.about-page .page-hero .lead-copy {
  font-size: clamp(0.9rem, 1.2vw, 0.96rem);
}

.commerce-page .page-hero h1 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.no-break {
  white-space: nowrap;
}

.content-section {
  padding-block: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.content-block {
  max-width: var(--reading-width);
  margin-inline: auto;
}

.content-block + .content-block {
  margin-top: 88px;
}

.content-block h2 {
  margin-bottom: 30px;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.content-block h3 {
  margin: 48px 0 14px;
  font-size: 1.25rem;
}

.content-block p,
.content-block li,
.legal-list dd {
  color: var(--ink-soft);
}

.content-block p + p {
  margin-top: 24px;
}

.statement {
  margin: 0;
  padding: 34px 0 34px 30px;
  border-left: 2px solid var(--primary);
  color: var(--ink);
  font-size: clamp(1.28rem, 2.7vw, 1.9rem);
  line-height: 1.65;
}

.notice {
  margin-bottom: 48px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 104px);
  align-items: start;
}

.contact-intro h2 {
  margin-top: 0;
}

.contact-intro p {
  color: var(--ink-soft);
}

.contact-form {
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field--full,
.form-privacy-note,
.form-actions {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 700;
}

.form-required {
  margin-left: 0.5em;
  color: var(--accent);
  font-size: 0.78rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  outline: 2px solid color-mix(in srgb, var(--accent) 36%, transparent);
  outline-offset: 1px;
}

.form-privacy-note {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact-submit {
  min-height: 52px;
  border: 0;
  padding-inline: 28px;
  color: #fff;
  background: var(--primary);
  font: inherit;
  font-weight: 700;
}

.contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.legal-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.legal-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-list dt {
  font-weight: 700;
}

.legal-list dd {
  margin: 0;
}

.legal-contact-image {
  width: min(100%, 600px);
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.legal-contact-note {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
}

.site-footer {
  padding-block: 56px 28px;
  color: #efeff4;
  background: var(--primary-dark);
}

.footer-top {
  display: flex;
  justify-content: flex-end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: flex-end;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #efeff4;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 72px;
  }

  .header-inner,
  .wrap {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-link {
    width: 60px;
    height: 60px;
  }

  .brand-link img {
    width: 51px;
    height: 51px;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .js .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--primary);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    width: min(calc(100% - 32px), var(--max-width));
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 10px 18px;
  }

  .site-nav a {
    min-height: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    display: none;
  }

  .hero-weave {
    right: -14vw;
    width: min(112vw, 1020px);
    opacity: 0.62;
  }

  .hero-grid,
  .section-grid,
  .news-strip,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 64px;
    padding-block: 88px;
  }

  .hero-aside {
    align-self: auto;
  }

  .section-grid,
  .news-strip {
    gap: 36px;
  }

  .home-page .hero-grid {
    padding-block: 52px;
  }

  .home-page .section {
    padding-block: 56px;
  }

  .home-page .section-grid,
  .home-news .news-strip {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-page .service-list {
    grid-template-columns: 1fr;
  }

  .home-page .service-row,
  .home-page .service-row:nth-child(even) {
    min-height: 0;
    padding: 24px;
    border: 1px solid var(--line);
  }

  .home-page .home-news {
    padding-block: 34px;
  }

  .contact-layout {
    gap: 40px;
  }

  .about-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .about-process li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .principle-list li {
    grid-template-columns: 52px minmax(140px, 0.4fr) minmax(0, 1fr);
  }

  .service-row {
    grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  }

  .service-action,
  .service-status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.7;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 8vw, 2.4rem);
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-link {
    width: 100%;
  }

  .home-page .hero-grid {
    padding-block: 42px;
  }

  .hero-weave {
    top: 52%;
    right: -490px;
    width: 820px;
    opacity: 0.42;
  }

  .home-page .section {
    padding-block: 48px;
  }

  .home-page .service-row,
  .home-page .service-row:nth-child(even) {
    padding: 22px;
  }

  .home-page .home-news {
    padding-block: 30px;
  }

  .news-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field--full,
  .form-privacy-note,
  .form-actions {
    grid-column: 1;
  }

  .principle-list li,
  .service-row,
  .legal-list div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-action,
  .service-status {
    grid-column: 1;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    display: grid;
  }
}

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