:root {
  --bg: #faf8f1;
  --bg-soft: #f3efe4;
  --paper: #fffdf8;
  --ink: #292622;
  --ink-soft: #5b564f;
  --gold: #d8c983;
  --gold-dark: #8b7937;
  --line: #d9d1bd;
  --danger: #8e2b2b;
  --success: #315d46;
  --shadow: 0 16px 42px rgba(41, 38, 34, 0.08);
  --radius: 18px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

::selection {
  color: var(--ink);
  background: rgba(216, 201, 131, 0.55);
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 241, 0.96);
  border-bottom: 1px solid rgba(139, 121, 55, 0.22);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  flex: 0 0 40px;
}

.brand-text {
  display: grid;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-en {
  display: none;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.header-nav {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 13px 24px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(41, 38, 34, 0.12);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.button:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  text-decoration: none;
}

.button-small {
  min-height: 46px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.header-cta {
  min-height: 44px;
  padding: 8px 15px;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 66px;
}

.hero::after {
  position: absolute;
  right: -150px;
  bottom: -150px;
  width: 360px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(216, 201, 131, 0.42);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero h1,
.section-heading h2,
.legal-card h2,
.confirm-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.45;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2.15rem, 11vw, 3.5rem);
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.95;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-art {
  display: none;
}

.section {
  padding: 72px 0;
}

.section-tint {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 7vw, 2.7rem);
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.service-grid {
  display: grid;
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-number {
  position: absolute;
  top: 16px;
  right: 20px;
  margin: 0;
  color: rgba(139, 121, 55, 0.28);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
}

.service-name,
.scope-label {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.service-summary {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.service-card h3,
.policy-grid h3,
.flow-list h3,
.scope-card h3,
.license-notice h3,
.cooperation-box h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.55;
  text-wrap: balance;
}

.check-list,
.plain-list,
.concern-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.concern-list li {
  position: relative;
  padding-left: 1.8em;
}

.check-list li + li,
.plain-list li + li,
.concern-list li + li {
  margin-top: 10px;
}

.check-list li::before,
.concern-list li::before {
  position: absolute;
  top: 0.05em;
  left: 0;
  color: var(--gold-dark);
  content: "○";
  font-weight: 900;
}

.plain-list li {
  position: relative;
  padding-left: 1.15em;
}

.plain-list li::before {
  position: absolute;
  left: 0;
  content: "・";
}

.simple-grid {
  display: grid;
  gap: 26px;
}

.concern-list {
  margin-top: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.concern-list li {
  font-weight: 700;
}

.policy-grid {
  display: grid;
  gap: 16px;
}

.policy-grid article {
  padding: 24px;
  background: var(--paper);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.policy-grid article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
}

.policy-grid p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.experience-note {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.experience-note p {
  margin: 0;
}

.experience-note p + p {
  margin-top: 6px;
}

.flow-section {
  background: var(--ink);
  color: var(--paper);
}

.flow-section .section-heading p {
  color: rgba(255, 253, 248, 0.78);
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.07);
  border: 1px solid rgba(216, 201, 131, 0.32);
  border-radius: 14px;
}

.flow-list li > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
}

.flow-list p {
  margin: 5px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.95rem;
}

.license-notice {
  padding: 24px;
  background: #fff8de;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.license-notice p {
  margin: 10px 0 0;
}

.scope-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.scope-card {
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-card-specialist {
  background: var(--bg-soft);
}

.cooperation-box {
  margin-top: 22px;
  padding: 26px 24px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

.cooperation-box h3 {
  color: var(--gold);
}

.cooperation-box ol {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.cooperation-box li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 12px;
}

.cooperation-box li span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
}

.cooperation-box p {
  margin: 0;
}

.scope-details {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.scope-details summary,
.faq-list summary {
  position: relative;
  padding: 20px 54px 20px 20px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.6;
  list-style: none;
}

.scope-details summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.scope-details summary::after,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "+";
  color: var(--gold-dark);
  font-size: 1.7rem;
  line-height: 1;
  transform: translateY(-50%);
}

.scope-details[open] summary::after,
.faq-list details[open] summary::after {
  content: "−";
}

.scope-details > div {
  padding: 0 22px 20px;
  border-top: 1px solid var(--line);
}

.scope-details ul {
  margin: 16px 0 0;
  padding-left: 1.3em;
}

.faq-layout {
  display: grid;
  gap: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-list details > div {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}

.faq-list p {
  margin: 16px 0 0;
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  position: absolute;
  top: -180px;
  left: -180px;
  width: 420px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(216, 201, 131, 0.38);
  border-radius: 50%;
}

.contact-layout {
  position: relative;
  display: grid;
  gap: 28px;
}

.direct-contact {
  display: grid;
  gap: 12px;
}

.direct-contact a {
  display: grid;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}

.direct-contact a:hover {
  border-color: var(--gold-dark);
}

.direct-contact span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.direct-contact strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.contact-form {
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field label:not(.check-label) {
  display: inline-block;
  margin-bottom: 7px;
  font-weight: 800;
}

.required,
.optional {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  vertical-align: 0.15em;
}

.required {
  color: #fff;
  background: var(--danger);
}

.optional {
  color: var(--ink-soft);
  background: var(--bg-soft);
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 2px solid #bdb5a4;
  border-radius: 10px;
}

input,
select {
  min-height: 56px;
  padding: 11px 13px;
}

textarea {
  min-height: 150px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-dark);
  outline: 2px solid rgba(216, 201, 131, 0.45);
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-help,
.field-error,
.form-note,
.form-status,
.noscript-note {
  margin: 7px 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.field-help,
.form-note {
  color: var(--ink-soft);
}

.field-error {
  min-height: 1.45em;
  color: var(--danger);
  font-weight: 700;
}

.field-consent {
  padding-top: 2px;
}

.check-label {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.check-label input {
  width: 26px;
  height: 26px;
  min-height: 0;
  margin: 4px 0 0;
  accent-color: var(--ink);
}

.form-submit {
  width: 100%;
  margin-top: 22px;
}

.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  color: var(--danger);
  background: #fff2f2;
  border: 1px solid #d9a3a3;
  border-radius: 10px;
  font-weight: 700;
}

.form-status {
  color: var(--success);
  font-weight: 700;
}

.company-section {
  background: var(--bg-soft);
}

.company-layout {
  display: grid;
  gap: 20px;
}

.company-table {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.company-table > div {
  display: grid;
  gap: 4px;
  padding: 17px 20px;
}

.company-table > div + div {
  border-top: 1px solid var(--line);
}

.company-table dt {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.company-table dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-section {
  padding: 56px 0 0;
  background: var(--bg-soft);
}

.legal-section-last {
  padding-bottom: 72px;
}

.legal-card {
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-card h2 {
  font-size: 1.55rem;
}

.legal-card ul {
  margin: 16px 0 0;
  padding-left: 1.25em;
}

.legal-card p {
  margin: 16px 0 0;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 253, 248, 0.84);
  background: var(--ink);
}

.footer-layout {
  display: grid;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 52px;
  opacity: 0.9;
}

.footer-brand div {
  display: grid;
}

.footer-brand strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.18rem;
}

.footer-brand span {
  font-size: 0.78rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.88rem;
}

.copyright {
  margin: 0;
  font-size: 0.82rem;
}

.confirm-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.confirm-dialog::backdrop {
  background: rgba(41, 38, 34, 0.72);
}

.confirm-card {
  max-height: calc(100vh - 24px);
  padding: 24px 20px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.confirm-card > p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.confirm-list {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.confirm-list > div {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
}

.confirm-list > div + div {
  border-top: 1px solid var(--line);
}

.confirm-list dt {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.confirm-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirm-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}



.confirm-actions .button {
  flex: 1 1 150px;
}

.dialog-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.dialog-status.is-error {
  color: var(--danger, #9d2d2d);
}

@media (min-width: 600px) {
  .brand-en {
    display: block;
  }

  .hero-actions,
  .confirm-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    min-width: 210px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .company-table > div {
    grid-template-columns: 150px 1fr;
    gap: 20px;
  }
}

@media (min-width: 780px) {
  body {
    font-size: 18px;
  }

  .container {
    width: min(1120px, calc(100% - 56px));
  }

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

  .brand-mark {
    width: 46px;
    flex-basis: 46px;
  }

  .brand-name {
    font-size: 1.14rem;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
    font-weight: 800;
  }

  .header-nav > a:not(.button) {
    text-decoration: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 82px 0 96px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: 48px;
  }

  .hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
  }

  .hero-art::before {
    position: absolute;
    width: 88%;
    aspect-ratio: 1;
    content: "";
    background: rgba(243, 239, 228, 0.7);
    border: 1px solid rgba(216, 201, 131, 0.5);
    border-radius: 50%;
  }

  .hero-art img {
    position: relative;
    width: min(100%, 390px);
    opacity: 0.84;
  }

  .section {
    padding: 92px 0;
  }

  .service-grid,
  .policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-grid {
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 54px;
  }

  .concern-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 30px;
    padding: 30px;
  }

  .concern-list li + li {
    margin-top: 0;
  }

  .flow-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .flow-list li {
    grid-template-columns: 1fr;
    min-height: 225px;
  }

  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cooperation-box ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .cooperation-box li {
    grid-template-columns: 42px 1fr;
  }

  .faq-layout {
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 54px;
  }

  .contact-layout {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 54px;
  }

  .contact-form {
    padding: 32px;
  }

  .company-layout {
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
    align-items: start;
    gap: 54px;
  }

  .legal-section {
    padding-top: 28px;
  }

  .legal-section-last {
    padding-bottom: 92px;
  }

  .legal-card {
    padding: 32px 36px;
  }

  .site-footer {
    padding: 48px 0;
  }

  .footer-layout {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }


  .confirm-card {
    padding: 32px;
  }

  .confirm-list > div {
    grid-template-columns: 145px 1fr;
    gap: 18px;
  }
}

@media (min-width: 1100px) {
  .hero h1 {
    font-size: 4.25rem;
  }

  .header-nav {
    gap: 30px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
