:root {
  --paper: #fbfaf7;
  --paper-soft: #f4f0ea;
  --ink: #22201c;
  --muted: #706a61;
  --line: #ded6cb;
  --warm: #c69363;
  --sage: #7d9178;
  --clay: #b88b76;
  --blue: #607d8b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(50, 42, 32, 0.08);
  --content: 1120px;
  --measure: 920px;
}

* {
  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", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 214, 203, 0.8);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--warm);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--paper-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
}

.section,
.hero,
.page-hero {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 86px 0 56px;
  display: grid;
  align-content: center;
  gap: 48px;
}

.hero-visual {
  position: absolute;
  inset: 72px 0 auto;
  height: min(56vh, 520px);
  z-index: -1;
  overflow: hidden;
  opacity: 0.72;
  background:
    linear-gradient(105deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.88) 37%, rgba(244, 240, 234, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 700'%3E%3Crect width='1400' height='700' fill='%23f7f1e8'/%3E%3Cpath d='M140 430 C 320 240, 520 250, 690 360 S 1020 500, 1280 250' fill='none' stroke='%23d9c8b7' stroke-width='2' opacity='.8'/%3E%3Cpath d='M90 250 C 310 340, 430 130, 650 230 S 1010 370, 1260 170' fill='none' stroke='%23c9d0c1' stroke-width='2' opacity='.65'/%3E%3Crect x='780' y='210' width='270' height='170' rx='10' fill='%23ffffff' opacity='.7'/%3E%3Crect x='820' y='250' width='175' height='12' rx='6' fill='%23c69363' opacity='.35'/%3E%3Crect x='820' y='282' width='125' height='10' rx='5' fill='%237d9178' opacity='.32'/%3E%3Crect x='820' y='316' width='200' height='10' rx='5' fill='%23607d8b' opacity='.24'/%3E%3Ccircle cx='300' cy='250' r='90' fill='%23ffffff' opacity='.42'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-copy {
  max-width: var(--measure);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--warm);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 104px);
}

.page-title {
  max-width: 1120px;
  font-size: clamp(40px, 5.4vw, 68px);
}

h2 {
  max-width: 960px;
  font-size: clamp(30px, 3.7vw, 44px);
}

.jp-heading {
  line-break: strict;
  overflow-wrap: normal;
  word-break: keep-all;
}

.copy-break {
  line-break: strict;
  overflow-wrap: normal;
  word-break: keep-all;
}

.nowrap,
.jp-heading .nowrap {
  white-space: nowrap;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.lead {
  margin-top: 28px;
  max-width: var(--measure);
  color: #3d3933;
  font-size: clamp(18px, 1.8vw, 22px);
  line-break: strict;
  text-wrap: pretty;
}

.what-we-do {
  max-width: var(--measure);
  padding: 22px 26px;
  border-left: 3px solid var(--warm);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  color: #38342e;
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.section {
  padding: 86px 0;
}

.section-header {
  display: block;
  max-width: var(--measure);
  margin-bottom: 42px;
}

.section-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.section-text {
  max-width: var(--measure);
  color: #454039;
  font-size: 17px;
  line-break: strict;
  text-wrap: pretty;
}

.page-hero {
  padding: 96px 0 52px;
}

.page-hero .lead {
  max-width: var(--measure);
}

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

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.panel,
.case-card,
.service-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 42px rgba(60, 48, 34, 0.05);
}

.panel,
.service-card,
.step-card {
  padding: 28px;
}

.case-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-visual {
  min-height: 138px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.case-visual.team {
  background:
    linear-gradient(135deg, rgba(244, 240, 234, 0.92), rgba(229, 234, 224, 0.92));
}

.case-visual.care {
  background:
    linear-gradient(135deg, rgba(244, 240, 234, 0.94), rgba(239, 226, 218, 0.92));
}

.case-visual.soon {
  background:
    linear-gradient(135deg, rgba(244, 240, 234, 0.94), rgba(225, 232, 233, 0.9));
}

.mini-window {
  height: 100px;
  border: 1px solid rgba(34, 32, 28, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
}

.mini-line {
  height: 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: rgba(34, 32, 28, 0.15);
}

.mini-line.short {
  width: 46%;
}

.mini-line.medium {
  width: 68%;
  background: rgba(198, 147, 99, 0.42);
}

.mini-line.green {
  width: 78%;
  background: rgba(125, 145, 120, 0.42);
}

.case-body {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.case-body p,
.panel p,
.service-card p,
.step-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
  line-break: strict;
  text-wrap: pretty;
}

.case-link {
  margin-top: auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.ba-column {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.ba-column.prototype {
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
}

.ba-column h3 {
  margin-bottom: 14px;
  font-size: 17px;
}

.ba-column ul,
.plain-list {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.ba-column.prototype p {
  max-width: 300px;
  color: rgba(251, 250, 247, 0.72);
}

.prototype-name {
  display: block;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--measure);
  margin-left: 0;
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: "Step " counter(step);
  display: block;
  margin-bottom: 18px;
  color: var(--warm);
  font-size: 13px;
}

.cta-band {
  margin: 30px 0 0;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.cta-title {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(30px, 3.1vw, 38px);
}

.cta-band p {
  max-width: var(--measure);
  margin-top: 14px;
  color: rgba(251, 250, 247, 0.72);
}

.cta-band .button {
  margin-top: 28px;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.story-body {
  max-width: var(--measure);
  display: grid;
  gap: 28px;
  color: #403b34;
  font-size: 17px;
  line-break: strict;
  text-wrap: pretty;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 6px;
  }

  .section,
  .hero,
  .page-hero,
  .footer-inner {
    width: min(100% - 28px, var(--content));
  }

  .hero {
    min-height: auto;
    padding: 72px 0 42px;
  }

  .section {
    padding: 62px 0;
  }

  .section-header,
  .grid.two,
  .grid.three,
  .before-after,
  .steps {
    grid-template-columns: 1fr;
  }

  .section-header {
    gap: 16px;
  }

  .what-we-do,
  .cta-band {
    padding: 24px;
  }

  .cta-title {
    white-space: normal;
  }

  .jp-heading {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .jp-heading br {
    display: none;
  }

  .copy-break {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .copy-break br {
    display: none;
  }

  .nowrap,
  .jp-heading .nowrap {
    white-space: normal;
  }

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