:root {
  --bg: #ffffff;
  --paper: #f2eee9;
  --paper-2: #e6e0d9;
  --ink: #1a1a1a;
  --ink-2: #444;
  --muted: #777;
  --line: #e4ded8;
  --accent: #e47e00;
  --accent-ink: #b86500;
  --r: 60px;
  --r-s: 20px;
  --edge: 10px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --header-h: 80px;
  --gap: clamp(120px, 14vw, 200px);
  --font-latin: "Inter", system-ui, sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-latin), var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.edge {
  margin: 0 var(--edge);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand img {
  height: 18px;
  width: auto;
}

.gnav {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
}

.gnav a {
  position: relative;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--ink);
}

.gnav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease;
}

.gnav a:hover::after,
.gnav a.is-active::after {
  transform: translateX(-50%) scale(1);
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-link {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}

.lang-link:hover {
  color: var(--accent-ink);
}

.menu-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn svg {
  width: 16px;
  height: 16px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  overflow-y: auto;
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-close {
  position: absolute;
  top: 24px;
  right: 30px;
}

.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  border-top: 1px solid var(--paper-2);
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--paper-2);
  text-decoration: none;
  font-family: var(--font-ja);
  font-size: 22px;
}

.drawer-foot {
  max-width: 720px;
  width: 100%;
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
}

.drawer-foot a {
  color: var(--ink-2);
  text-decoration: none;
}

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.2s, transform 0.2s;
}

.arrow svg {
  width: 12px;
  height: 12px;
}

a:hover .arrow,
a:focus-visible .arrow {
  background: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  text-decoration: none;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.label::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--paper-2);
}

.title {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.sub {
  font-family: var(--font-ja);
  font-size: clamp(15px, 1.4vw, 20px);
  color: var(--muted);
}

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.section {
  margin-top: var(--gap);
}

.hero {
  position: relative;
  margin: var(--header-h) var(--edge) 0;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 640px;
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
  background: #2b2320;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

video.hero-bg:not([src]) {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 60px;
  bottom: 110px;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  margin-top: 28px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  position: absolute;
  right: 60px;
  bottom: 60px;
  z-index: 2;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s, color 0.3s;
}

.hero-cta svg {
  width: 22px;
  height: 22px;
}

.hero-cta:hover {
  background: #fff;
  color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.intro-title {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.intro-text {
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink-2);
  max-width: 34em;
}

.intro-photo {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 620 / 460;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

.panel {
  background: var(--paper);
  border-radius: var(--r);
  padding: 80px 56px;
}

.news {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 40px 64px;
}

.news .head,
.services .head,
.contact .head {
  display: block;
  margin-bottom: 0;
}

.news .sub,
.services .sub,
.contact .sub {
  margin-top: 12px;
  font-size: 16px;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list a {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-2);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.7;
}

.news-date {
  font-family: var(--font-latin);
  font-size: 14px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
  justify-self: start;
}

.services {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px 64px;
  align-items: start;
}

.services .head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rows li {
  display: grid;
  grid-template-columns: 56px 1fr 240px;
  align-items: start;
  gap: 4px 12px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.row-img {
  border-radius: var(--r-s);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-num {
  font-family: var(--font-latin);
  font-size: 14px;
  color: var(--accent-ink);
  padding-top: 8px;
}

.row-title {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.row-text {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 560px;
}

.flow-lead {
  max-width: 44em;
  margin: 0 0 64px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink-2);
}

.flow-visual {
  margin: 0 0 80px;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.flow-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step-num {
  font-family: var(--font-latin);
  font-weight: 200;
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.step-title {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 22px;
  margin: 20px 0 10px;
}

.step-text {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
}

.company {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.company-photo {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 640 / 800;
}

.company-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
}

.facts {
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 13px;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.message {
  margin: var(--gap) var(--edge) 0;
  background: #000;
  color: #fff;
  border-radius: var(--r);
  padding: 100px var(--gutter);
}

.message-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px 80px;
  align-items: end;
}

.message .label {
  color: #bbb;
}

.message .label::before {
  background: var(--accent);
}

.message-title {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.message-sign img {
  width: 300px;
  height: auto;
}

.message-sign figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #999;
}

.message-body {
  font-family: var(--font-ja);
  font-size: 18px;
  line-height: 2.2;
  color: #ddd;
  max-width: 34em;
}

.contact {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 40px 64px;
}

.form {
  display: grid;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
}

.field .req {
  color: var(--accent-ink);
  font-size: 12px;
  margin-left: 8px;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 18px;
  height: 56px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  height: auto;
  min-height: 180px;
  padding: 16px 18px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(228, 126, 0, 0.16);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 60px;
  padding: 0 34px;
  font: inherit;
  font-size: 15px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn:hover {
  background: var(--accent);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  font-size: 15px;
  line-height: 1.8;
}

.form-status.is-ok,
.form-status.is-ng {
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff;
}

.form-status.is-ok {
  border: 1px solid #b9d7b0;
}

.form-status.is-ng {
  border: 1px solid #e6b3a8;
}

dialog.policy {
  width: min(720px, calc(100% - 32px));
  max-height: min(80vh, 760px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
}

dialog.policy::backdrop {
  background: rgba(20, 16, 12, 0.5);
}

.policy-inner {
  padding: 36px 36px 28px;
  font-size: 14px;
  line-height: 1.9;
}

.policy-inner h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
}

.policy-inner h4 {
  font-size: 14px;
  margin: 18px 0 4px;
}

.policy-close {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.policy-close .btn {
  height: 48px;
}

.site-footer {
  margin: 16px var(--edge) var(--edge);
}

.footer-panel {
  background: var(--paper);
  border-radius: var(--r);
  padding: 80px 64px 48px;
}

.footer-info {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-company {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
}

.footer-company strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-nav,
.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 16px 40px;
}

.footer-legal {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-nav a,
.footer-legal a {
  text-decoration: none;
  color: #333;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--accent-ink);
}

.footer-sign {
  max-width: var(--max);
  margin: 64px auto 0;
}

.footer-sign p {
  font-family: var(--font-ja);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-sign img {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom small {
  font-family: var(--font-latin);
  font-size: 12px;
  color: #666;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
}

.to-top svg {
  color: var(--accent);
}

.article {
  padding: calc(var(--header-h) + 72px) 0 40px;
}

.article-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-latin);
  font-size: 14px;
  margin-bottom: 20px;
}

.article h1 {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.55;
  letter-spacing: 0.03em;
  margin-bottom: 40px;
}

.article-mark {
  background: var(--paper);
  border-radius: 40px;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.article-mark img {
  width: min(320px, 50%);
  height: auto;
}

.article-body p {
  font-size: 16px;
  line-height: 2.1;
  margin-bottom: 1.4em;
  color: var(--ink-2);
}

.article-body .lead {
  font-size: 22px;
  color: var(--ink);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-top: 40px;
}

html[lang="en"] .title,
html[lang="en"] .hero-title,
html[lang="en"] .hero-lead,
html[lang="en"] .intro-title,
html[lang="en"] .row-title,
html[lang="en"] .step-title,
html[lang="en"] .message-title,
html[lang="en"] .message-body,
html[lang="en"] .article h1,
html[lang="en"] .sub,
html[lang="en"] .footer-sign p {
  font-family: var(--font-latin);
  letter-spacing: -0.01em;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .site-header {
    position: static;
  }
}

@media (max-width: 1023px) {
  .footer-info {
    grid-template-columns: 1fr 1fr;
  }
  .footer-company {
    grid-column: 1 / -1;
  }
  .gnav {
    display: none;
  }
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .news,
  .services,
  .contact,
  .intro,
  .company {
    grid-template-columns: 1fr;
  }
  .services .head {
    position: static;
  }
  .message-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .footer-panel {
    padding: 48px 24px 32px;
  }
  .footer-info {
    grid-template-columns: 1fr;
  }
  .footer-sign p {
    font-size: 15px;
  }
  :root {
    --r: 32px;
    --edge: 8px;
    --gutter: 20px;
    --header-h: 60px;
    --gap: 120px;
  }
  body {
    font-size: 15px;
  }
  .site-header {
    padding: 0 16px;
  }
  .brand img {
    height: 15px;
  }
  .menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .drawer-close {
    top: 10px;
    right: 16px;
  }
  .hero {
    height: 88vh;
    height: 88svh;
    min-height: 560px;
  }
  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 150px;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-lead {
    font-size: 15px;
    margin-top: 18px;
  }
  .hero-cta {
    right: 20px;
    bottom: 24px;
    width: 110px;
    height: 110px;
    font-size: 13px;
  }
  .title {
    font-size: 30px;
  }
  .label {
    font-size: 12px;
  }
  .head {
    display: block;
    margin-bottom: 40px;
  }
  .head .sub {
    margin-top: 10px;
  }
  .intro-photo {
    order: -1;
  }
  .panel {
    padding: 48px 20px;
  }
  .news-list a {
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
  }
  .news-list .news-title {
    grid-column: 1 / -1;
  }
  .news-list .arrow {
    display: none;
  }
  .rows li {
    grid-template-columns: 40px 1fr;
    padding: 32px 0;
  }
  .row-img {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 16px;
  }
  .flow-visual {
    aspect-ratio: 4 / 3;
    margin-bottom: 48px;
  }
  .row-title {
    font-size: 22px;
  }
  .flow-lead {
    margin: 0 0 48px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .step-num {
    font-size: 64px;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .message {
    padding: 48px 24px;
  }
  .message-title {
    font-size: 26px;
    margin-bottom: 28px;
  }
  .message-body {
    font-size: 16px;
  }
  .message-sign {
    order: 2;
    text-align: center;
  }
  .message-sign img {
    width: 240px;
    margin: 0 auto;
  }
  .form-foot .btn {
    width: 100%;
  }
}
