:root {
  --ink: #173452;
  --muted: #667d91;
  --blue: #4ea6df;
  --blue-dark: #287fbb;
  --line: #dbeaf5;
  --pale: #f4faff;
  --shadow: 0 16px 42px rgb(52 107 145 / 10%);
  --max: 1120px;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.is-cross-page-jump,
html.is-contact-return {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgb(78 166 223 / 35%);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-150%);
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(10px);
}

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

.brand img,
.foot-logo img {
  width: 148px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
}

.desktop-nav > a:not(.btn),
.foot-links a {
  text-underline-offset: 0.25em;
}

.desktop-nav > a:not(.btn):hover,
.foot-links a:hover {
  text-decoration: underline;
}

.mobile-nav {
  position: relative;
  display: none;
  margin: 0;
}

.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgb(52 107 145 / 8%);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::before {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink);
  content: "";
  transition: 0.2s ease;
}

.mobile-nav[open] summary::before {
  background: transparent;
  box-shadow: none;
}

.mobile-nav[open] summary::after {
  position: absolute;
  top: 5px;
  right: 10px;
  color: var(--ink);
  content: "×";
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.mobile-menu {
  display: none;
}

.mobile-nav[open] .mobile-menu {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-main {
  background: var(--blue);
  box-shadow: 0 9px 24px rgb(78 166 223 / 25%);
  color: #fff;
}

.btn-main:hover {
  border-color: var(--blue);
  background: #fff;
  color: var(--blue-dark);
}

.btn-sub {
  border-color: var(--line);
  background: #fff;
}

.btn-outline {
  border-color: #a8d3ef;
  background: #fff;
  color: var(--blue-dark);
}

.btn-outline:hover {
  background: #f7fbfe;
}

.btn-line {
  border-color: #087a3b;
  background: #087a3b;
  box-shadow: 0 9px 24px rgb(8 122 59 / 22%);
  color: #fff;
}

.btn-line:hover {
  border-color: #087a3b;
  background: #fff;
  color: #087a3b;
}

.btn.is-disabled {
  box-shadow: none;
  cursor: default;
  opacity: 0.62;
}

.btn.is-disabled:hover {
  transform: none;
}

.hero {
  padding: 68px 0;
  background: linear-gradient(180deg, #fcfeff, #f1f8fd);
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 46px;
}

.kicker {
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 8px 0 20px;
  font-size: clamp(2.55rem, 5.6vw, 4.7rem);
  letter-spacing: -0.045em;
  line-height: 1.13;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.2rem, 2vw, 1.58rem);
  font-weight: 700;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-img {
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

section {
  padding: 92px 0;
  scroll-margin-top: 72px;
}

.section-head {
  max-width: 800px;
  margin-bottom: 38px;
}

.about-copy {
  max-width: 800px;
}

.steps-title {
  margin: 48px 0 22px;
  font-size: 1.45rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.step,
.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.step-visual {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--pale);
}

.step-visual img,
.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-body {
  padding: 24px 26px 28px;
}

.step-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 800;
}

.step h3 {
  margin: 0;
  font-size: 1.42rem;
}

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

.vision {
  margin-top: 38px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef8ff, #fbfdff);
  font-size: 1.12rem;
  font-weight: 700;
}

.services {
  background: var(--pale);
}

.service-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-visual {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 28px;
}

.badge,
.status-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e8f5fd;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 10px 0 12px;
  font-size: 1.58rem;
  line-height: 1.35;
}

.quote {
  margin: 0 0 16px;
  padding-left: 1.1em;
  color: var(--ink);
}

.quote li {
  margin: 7px 0;
}

.service-action {
  margin-top: auto;
}

.profile-visual {
  overflow: hidden;
  margin: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-visual img {
  width: 100%;
  height: auto;
}

.profile-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
}

.profile-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pale);
}

.profile-card strong {
  font-size: 1.6rem;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 18px;
}

.profile-tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.operator {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.operator dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  margin: 0;
}
.operator dt {
  color: var(--muted);
  font-weight: 700;
}

.operator dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.operator a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact {
  background: linear-gradient(180deg, #f5fbff, #eaf6fd);
}

.contact-inner {
  max-width: 880px;
  margin: auto;
  text-align: center;
}

.line-card,
.form-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.line-card {
  max-width: 650px;
  margin: 34px auto;
}

.line-card h3 {
  margin-top: 12px;
}

.status-badge-line {
  background: #e9fbf0;
  color: #087a3b;
}

.line-qr-link {
  display: block;
  width: min(220px, 68vw);
  margin: 20px auto;
  border-radius: 18px;
}

.line-qr {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.line-add-button {
  display: inline-block;
  border-radius: 4px;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.line-add-button:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.line-add-button img {
  width: 232px;
  max-width: 100%;
  height: auto;
}

.line-id {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-card {
  max-width: 720px;
  margin: 42px auto 0;
  scroll-margin-top: 88px;
  text-align: left;
}

.form-card h3,
.form-intro {
  text-align: center;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.form-card label {
  display: block;
  margin: 17px 0 7px;
  font-weight: 700;
}

.field-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 22px;
  margin-right: 8px;
  padding: 2px 7px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.field-status-required {
  border-color: #d92d20;
  background: #fff2f1;
  color: #b42318;
}

.field-status-optional {
  border-color: #aebdca;
  background: #f6f8fa;
  color: #536574;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfdee8;
  border-radius: 14px;
  background: #fff;
}

.form-card textarea {
  min-height: 165px;
  resize: vertical;
}

.contact-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.form-card .contact-category {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.contact-category input {
  position: absolute;
  width: auto;
  opacity: 0;
  pointer-events: none;
}

.contact-category span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cfdee8;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  transition: 0.2s ease;
}

.contact-category span:hover {
  border-color: #9fcce8;
  background: #f8fcff;
}

.contact-category input:focus-visible + span {
  outline: 3px solid rgb(78 166 223 / 22%);
  outline-offset: 2px;
}

.contact-category input:checked + span {
  border-color: var(--blue);
  background: #eaf6fd;
  box-shadow: inset 0 0 0 1px var(--blue);
  color: var(--blue-dark);
}

.note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-policy {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form-policy a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-status {
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid #b9d9eb;
  border-radius: 12px;
  background: #eef8ff;
  color: var(--ink);
  font-weight: 700;
}

.form-status-success {
  border-color: #8bc9a8;
  background: #eefaf3;
  color: #17653a;
}

.form-status-preview {
  border-color: #b9d9eb;
  background: #eef8ff;
}

.form-errors {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid #e5a5a0;
  border-radius: 12px;
  background: #fff5f4;
  color: #8f1f17;
}

.form-errors p,
.form-errors ul {
  margin: 0;
}

.form-errors ul {
  margin-top: 8px;
  padding-left: 1.3em;
}

.form-card [aria-invalid="true"] {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgb(217 45 32 / 10%);
}

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

.form-action {
  margin-top: 23px;
  text-align: center;
}

.legal-ai-page .legal-hero h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.45rem);
  line-height: 1.14;
}

.legal-audience {
  margin-bottom: 8px;
}

.legal-ai-page .legal-hero-img img {
  aspect-ratio: 4 / 3;
}

.legal-section-head {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.legal-section-head p,
.legal-stage-copy p,
.legal-creation-copy p,
.legal-pricing-head p,
.legal-final-card > p {
  color: var(--muted);
}

.legal-stages {
  display: grid;
  gap: 26px;
}

.legal-stage {
  display: grid;
  align-items: center;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-stage:nth-child(even) {
  grid-template-columns: 0.98fr 1.02fr;
}

.legal-stage:nth-child(even) .legal-stage-media {
  order: 2;
}

.legal-stage:nth-child(even) .legal-stage-copy {
  order: 1;
}

.legal-stage-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--pale);
}

.legal-stage-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.legal-stage-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.legal-num {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 800;
}

.legal-stage h3 {
  margin: 0;
  font-size: 1.55rem;
}

.legal-stage-copy p {
  margin: 0;
}

.legal-note-card {
  margin-top: 26px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #eef8ff, #fbfdff);
  font-weight: 700;
}

.legal-work-scenes {
  background: #fff;
}

.legal-work-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.legal-work-media img {
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: contain;
}

.legal-safety {
  padding: 82px 0;
  background: linear-gradient(180deg, #f4faff, #eef8ff);
}

.legal-wide-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--pale);
  box-shadow: var(--shadow);
}

.legal-wide-visual img {
  width: 100%;
}

.legal-creation-copy {
  max-width: 820px;
  margin-bottom: 34px;
}

.legal-creation-copy h2 {
  margin-bottom: 16px;
}

.legal-creation-copy p {
  margin-bottom: 0;
  font-size: 1.06rem;
}

.legal-pricing {
  background: linear-gradient(180deg, #f6fbff, #eef8ff);
}

.legal-pricing-head {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.legal-pricing-head p,
.legal-price-label,
.legal-pricing-note,
.legal-claude-fee {
  margin-bottom: 0;
}

.legal-pricing-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 42px 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.legal-price-label {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.legal-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
  line-height: 1;
}

.legal-price-main strong {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  letter-spacing: -0.05em;
}

.legal-price-main span {
  font-size: 1.2rem;
  font-weight: 800;
}

.legal-pricing-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 24px;
}

.legal-pricing-point {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--pale);
  font-weight: 700;
}

.legal-pricing-point::before {
  color: var(--blue-dark);
  content: "✓";
  font-weight: 900;
}

.legal-pricing-note,
.legal-claude-fee {
  color: var(--muted);
}

.legal-claude-fee {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.legal-claude-fee strong {
  color: var(--ink);
}

.legal-final-cta {
  background: #fff;
}

.legal-final-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 54px 48px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, #f8fcff, #eef8ff);
  box-shadow: var(--shadow);
  text-align: center;
}

.legal-final-card h2 {
  margin-bottom: 16px;
}

.legal-final-card > p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.06rem;
}

.legal-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.legal-final-actions .btn {
  min-width: 220px;
}

.policy-hero {
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 18%, rgb(78 166 223 / 13%), transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, #fff 100%);
  text-align: center;
}

.policy-container {
  max-width: 860px;
}

.policy-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.2;
}

.policy-hero .lead {
  margin-bottom: 0;
}

.policy-section {
  padding-top: 64px;
}

.policy-introduction,
.policy-content > section {
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(52 107 145 / 7%);
}

.policy-introduction {
  margin-bottom: 22px;
  background: var(--pale);
  font-size: 1.02rem;
}

.policy-introduction p,
.policy-content > section > :last-child {
  margin-bottom: 0;
}

.policy-content {
  display: grid;
  gap: 18px;
}

.policy-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.28rem, 3vw, 1.55rem);
  line-height: 1.45;
}

.policy-content p,
.policy-content li,
.policy-details dd {
  color: #49677f;
}

.policy-content p {
  margin-top: 0;
}

.policy-content ul {
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.policy-content li + li {
  margin-top: 6px;
}

.policy-details {
  margin: 0;
}

.policy-details div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.policy-details div:first-child {
  padding-top: 0;
}

.policy-details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-details dt {
  font-weight: 700;
}

.policy-details dd {
  margin: 0;
}

.policy-content a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.policy-contact {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--pale);
  color: #49677f;
  font-style: normal;
}

.policy-date {
  margin: 10px 4px 0;
  color: var(--muted);
  text-align: right;
}

.error-section {
  display: grid;
  min-height: calc(100vh - 72px - 188px);
  padding: 90px 0;
  background:
    radial-gradient(circle at 18% 15%, rgb(78 166 223 / 14%), transparent 30%),
    linear-gradient(180deg, #f8fcff 0%, #fff 100%);
  place-items: center;
}

.error-card {
  max-width: 900px;
  padding: 58px 48px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-card h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.3;
}

.error-card > p:not(.kicker) {
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.site-footer {
  padding: 40px 0;
  background: #17364f;
  color: #fff;
}
.foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.foot-copy,
.copyright {
  margin-top: 8px;
  color: rgb(255 255 255 / 70%);
  font-size: 0.88rem;
}

.foot-right {
  text-align: right;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: rgb(255 255 255 / 82%);
  font-size: 0.88rem;
}

.copyright {
  display: block;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .header-inner {
    position: relative;
  }

  .mobile-menu {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    z-index: 40;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgb(52 107 145 / 18%);
  }

  .mobile-menu a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    font-weight: 700;
  }

  .mobile-menu a:hover,
  .mobile-menu a:active {
    background: var(--pale);
  }

  .mobile-menu a.btn-main:hover,
  .mobile-menu a.btn-main:active {
    border-color: var(--blue);
    background: #fff;
    color: var(--blue-dark);
  }

  .mobile-menu .btn {
    display: flex;
    margin-top: 6px;
  }

  .hero-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .legal-stage,
  .legal-stage:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .legal-stage:nth-child(even) .legal-stage-media,
  .legal-stage:nth-child(even) .legal-stage-copy {
    order: initial;
  }

  .legal-pricing-points {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .steps,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    height: 64px;
  }

  .mobile-menu {
    top: 64px;
  }

  .brand img,
  .foot-logo img {
    width: 130px;
  }

  section {
    padding: 72px 0;
    scroll-margin-top: 64px;
  }

  .form-card {
    scroll-margin-top: 80px;
  }

  .hero {
    padding: 48px 0 58px;
  }

  .legal-ai-page .legal-hero h1 {
    font-size: 2.25rem;
  }

  .legal-ai-page .legal-hero .btn {
    width: 100%;
  }

  .legal-stage {
    border-radius: 24px;
  }

  .legal-safety {
    padding: 56px 0;
  }

  .legal-wide-visual {
    border-radius: 22px;
  }

  .legal-creation-copy {
    margin-bottom: 24px;
  }

  .legal-creation-copy p,
  .legal-final-card > p {
    font-size: 1rem;
  }

  .legal-pricing-card {
    padding: 30px 20px 26px;
    border-radius: 24px;
  }

  .legal-pricing-points {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-pricing-point {
    min-height: 52px;
  }

  .legal-claude-fee {
    font-size: 0.86rem;
  }

  .legal-final-card {
    padding: 38px 22px;
    border-radius: 24px;
  }

  .legal-final-actions {
    flex-direction: column;
    gap: 10px;
  }

  .legal-final-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .policy-hero {
    padding: 54px 0 44px;
  }

  .policy-section {
    padding-top: 46px;
  }

  .policy-introduction,
  .policy-content > section {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .policy-details div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .error-section {
    min-height: calc(100vh - 64px);
    padding: 54px 0;
  }

  .error-card {
    padding: 40px 22px;
    border-radius: 22px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }

  .step-body,
  .service-body,
  .profile-card,
  .line-card,
  .form-card {
    padding: 22px 20px;
  }

  .contact-categories {
    grid-template-columns: 1fr;
  }

  .operator dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .operator dd + dt {
    margin-top: 8px;
  }

  .foot {
    flex-direction: column;
  }

  .foot-right {
    text-align: left;
  }
}

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

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