:root {
  --ink: #16222a;
  --muted: #5d6a70;
  --paper: #f7f3ed;
  --surface: #ffffff;
  --navy: #17324d;
  --sage: #7c9a86;
  --cedar: #b35f35;
  --line: rgba(22, 34, 42, 0.14);
  --shadow: 0 18px 50px rgba(22, 34, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(12, 24, 35, 0.76), rgba(12, 24, 35, 0));
}

.site-header.compact {
  background: rgba(16, 24, 32, 0.94);
}

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

.brand-logo {
  display: block;
  width: clamp(154px, 18vw, 210px);
  height: auto;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.16);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0;
  opacity: 0.82;
}

.nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 6vw, 88px) 84px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 24, 35, 0.84) 0%, rgba(12, 24, 35, 0.64) 42%, rgba(12, 24, 35, 0.12) 78%),
    linear-gradient(0deg, rgba(247, 243, 237, 0.18), rgba(247, 243, 237, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cedar);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b48c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(2.35rem, 6.2vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button.primary {
  color: #fff;
  background: var(--cedar);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.button.full {
  width: 100%;
  margin-top: 18px;
}

.contact-box span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-box .contact-subtitle {
  margin-top: 24px;
}

.section {
  padding: clamp(70px, 9vw, 124px) clamp(20px, 6vw, 88px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.services {
  background: #fff;
}

.examples {
  background: #fff;
  padding-top: 0;
}

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

.example-list p {
  min-height: 74px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  background: #fbfaf7;
}

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

.service-card {
  min-height: 282px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfaf7);
}

.icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--navy);
}

.service-card:nth-child(2) .icon {
  background: var(--sage);
}

.service-card:nth-child(3) .icon {
  background: var(--cedar);
}

.service-card p,
.feature-list p,
.steps p,
.contact-panel p,
.site-footer p {
  margin: 12px 0 0;
  color: var(--muted);
}

.strength {
  background: #edf1ec;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.feature-list article {
  padding: 26px;
  background: #fff;
}

.notice {
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.notice strong {
  display: block;
  font-size: 1.12rem;
}

.notice ul {
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.notice li + li {
  margin-top: 8px;
}

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

.pricing {
  background: #fff;
}

.price-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 520px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.price-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.price-panel dl {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--line);
}

.price-panel dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 18px;
  background: #fff;
}

.price-panel dt {
  color: var(--navy);
  font-weight: 900;
}

.price-panel dd {
  margin: 0;
  color: var(--muted);
}

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

.steps li {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.steps span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: var(--sage);
}

.faq {
  background: #edf1ec;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 900;
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.contact {
  color: #fff;
  background: var(--ink);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.contact-panel .eyebrow {
  color: #f0b48c;
}

.contact-panel p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-box {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-box a:not(.button) {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  word-break: break-word;
}

.contact-box .contact-link {
  text-decoration: none;
}

.form-page {
  background: #fff;
}

.form-hero {
  padding-top: 150px;
  padding-bottom: 44px;
  background: var(--paper);
}

.form-hero h1 {
  color: var(--ink);
}

.form-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.form-section {
  padding-top: 42px;
  background: #fff;
}

.contact-form {
  max-width: 920px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.button.light {
  color: var(--navy);
  border-color: var(--line);
  background: #fff;
}

.form-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 28px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  color: #2f7d52;
}

.form-status.error {
  color: #b3392f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.74);
  background: #101820;
}

.site-footer strong {
  color: #fff;
}

.footer-logo {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
}

.site-footer address {
  font-style: normal;
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(12, 24, 35, 0.9), rgba(12, 24, 35, 0.46));
  }

  .intro,
  .card-grid,
  .example-list,
  .form-grid,
  .split,
  .price-panel,
  .steps,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .price-panel dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer address {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 148px;
  }

  .hero {
    min-height: 84vh;
    padding: 96px 18px 56px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-card,
  .example-list p,
  .feature-list article,
  .notice,
  .price-panel,
  .steps li,
  .contact-box {
    padding: 22px;
  }

  .section {
    padding-inline: 18px;
  }
}
