:root {
  --beige: #d8bfa6;
  --pink: #d9a7a0;
  --terra: #a86f5a;
  --ivory: #faf7f2;
  --brown: #3f332d;
  --brown-soft: #6d5b51;
  --sand: #efe4da;
  --rose-light: #f5e4df;
  --white: #fffdf9;
  --line: rgba(63, 51, 45, 0.14);
  --shadow: 0 20px 48px rgba(63, 51, 45, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--brown);
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

p {
  margin: 0;
  color: var(--brown-soft);
}

ul,
dl,
dd {
  margin: 0;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.serif,
h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.035em;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 158px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brown-soft);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.footer-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--terra);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--terra);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--terra);
  border-radius: 999px;
  background: var(--terra);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 28px rgba(168, 111, 90, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn.secondary {
  background: var(--white);
  color: var(--terra);
  box-shadow: none;
}

.btn.small {
  min-height: 42px;
  padding: 0 22px;
  font-size: 0.86rem;
}

.hero {
  padding: 72px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 16%, rgba(217, 167, 160, 0.3), transparent 30%),
    linear-gradient(180deg, var(--white), var(--ivory));
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--terra);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

.hero h1 {
  color: var(--brown);
  font-size: clamp(1.75rem, 2.55vw, 2.65rem);
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero h1 span {
  color: var(--terra);
}

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.02rem;
}

.hero-cta,
.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

.proof-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.74);
  color: var(--brown-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-visual,
.image-frame {
  overflow: hidden;
  border: 1px solid rgba(63, 51, 45, 0.1);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(63, 51, 45, 0.15);
}

.hero-visual {
  position: relative;
  aspect-ratio: 16 / 9;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(63, 51, 45, 0.06), rgba(255, 253, 249, 0.08));
  pointer-events: none;
}

section {
  padding: 92px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head.center {
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.section-head p {
  margin-top: 16px;
}

.mission,
.company-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.mission-photo {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 22px;
}

.mission-copy,
.feature-box,
.contact-card,
.lower-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.mission-copy {
  padding: 42px;
  background: var(--ivory);
}

.mission-copy h2 {
  margin-bottom: 20px;
  font-size: 2.05rem;
}

.services {
  background: linear-gradient(180deg, var(--ivory), #f4ece5);
}

.service-grid,
.support-grid,
.contact-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(63, 51, 45, 0.07);
}

.service-card .photo {
  height: 300px;
  overflow: hidden;
}

.service-body,
.lower-card {
  padding: 34px;
}

.service-label {
  margin-bottom: 10px;
  color: var(--terra);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.service-body h3,
.lower-card h3 {
  margin-bottom: 18px;
  font-size: 1.55rem;
}

.service-list,
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list.single {
  grid-template-columns: 1fr;
}

.service-list li,
.check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--brown-soft);
  font-size: 0.93rem;
  font-weight: 700;
}

.service-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.strengths,
.white-section {
  background: var(--white);
}

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

.strength-card,
.metric-card {
  min-height: 176px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9, #f7efe8);
  text-align: center;
}

.strength-num,
.metric-num {
  color: var(--terra);
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.strength-card p,
.metric-card p {
  margin-top: 12px;
  color: var(--brown);
  font-weight: 700;
}

.strength-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.strength-detail {
  padding-top: 34px;
  border-top: 2px solid var(--pink);
}

.strength-detail h3 {
  margin-bottom: 18px;
  font-size: 1.28rem;
}

.strength-detail p {
  color: var(--brown-soft);
  line-height: 2;
}

.support,
.sand-section {
  background: var(--sand);
}

.support-panel {
  padding: 34px;
  border: 1px solid rgba(63, 51, 45, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.78);
}

.support-panel h3 {
  margin-bottom: 22px;
  font-size: 1.36rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brown-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.case-study {
  background: var(--ivory);
}

.case-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.case-photo,
.image-frame {
  aspect-ratio: 4 / 3;
}

.case-photo {
  overflow: hidden;
  border-radius: 20px;
}

.case-body {
  padding: 14px 12px;
}

.case-body h3 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.case-body p {
  line-height: 1.95;
}

.case-body p + p {
  margin-top: 12px;
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.result {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--rose-light);
  color: var(--brown);
  font-weight: 900;
  text-align: center;
}

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

.company-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
}

.company-row:last-child {
  border-bottom: 0;
}

.company-row dt,
.company-row dd {
  margin: 0;
  padding: 20px 24px;
}

.company-row dt {
  background: #f2e8df;
  color: var(--brown);
  font-weight: 900;
}

.company-row dd {
  color: var(--brown-soft);
}

.contact-section,
.site-footer {
  color: var(--white);
  background: var(--brown);
}

.contact-section {
  background:
    radial-gradient(circle at 82% 20%, rgba(217, 167, 160, 0.28), transparent 28%),
    var(--brown);
}

.contact-section .section-head h2,
.contact-section .section-head p,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-section .eyebrow::before {
  background: var(--pink);
}

.contact-title-nowrap {
  white-space: nowrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px;
  background: rgba(250, 247, 242, 0.1);
  border-color: rgba(255, 253, 249, 0.22);
}

.contact-card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.contact-card p {
  margin-bottom: 24px;
  color: rgba(255, 253, 249, 0.78);
}

.contact-card .btn {
  margin-top: auto;
}

.site-footer {
  padding: 34px 0;
  background: #2d241f;
  color: rgba(255, 253, 249, 0.72);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-hero {
  padding: 86px 0 74px;
  background:
    radial-gradient(circle at 14% 20%, rgba(217, 167, 160, 0.24), transparent 30%),
    linear-gradient(180deg, var(--white), var(--ivory));
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.page-hero h1 .line {
  display: block;
  white-space: nowrap;
}

.page-hero p {
  max-width: 640px;
  margin-top: 18px;
}

.page-hero .image-frame {
  aspect-ratio: 16 / 10;
}

.feature-box {
  padding: 32px;
  background: rgba(255, 253, 249, 0.78);
}

.feature-box h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.flow-list {
  display: grid;
  gap: 18px;
  counter-reset: flow;
}

.flow-item {
  position: relative;
  padding: 28px 28px 28px 78px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.flow-item::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  top: 28px;
  left: 28px;
  color: var(--terra);
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
}

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

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

.field {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--brown);
  padding: 14px 16px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.netlify-hidden {
  display: none;
}

.form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--rose-light);
  color: var(--brown);
  font-weight: 700;
}

.form-message.is-visible {
  display: block;
}

.confirm-card[hidden] {
  display: none;
}

.confirm-card {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.confirm-card h3 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.confirm-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.confirm-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.confirm-list dt {
  color: var(--brown);
  font-weight: 700;
}

.confirm-list dd {
  margin: 0;
  color: var(--brown-soft);
  white-space: pre-wrap;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.reveal-ready .js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 768px) {
  .wrap {
    padding: 0 20px;
  }

  .nav {
    min-height: 68px;
  }

  .brand-logo {
    width: 132px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    gap: 22px;
    padding: 28px 20px 36px;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 247, 242, 0.98);
    box-shadow: 0 24px 40px rgba(63, 51, 45, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    display: grid;
    gap: 18px;
    font-size: 1rem;
  }

  .nav .btn.small {
    width: 100%;
  }

  .hero,
  .page-hero {
    padding: 54px 0 64px;
  }

  .hero-grid,
  .mission-grid,
  .service-grid,
  .support-grid,
  .contact-grid,
  .two-column,
  .case-card,
  .page-hero-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-grid,
  .page-hero-grid {
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .hero h1 .line {
    white-space: normal;
  }

  .page-hero h1 .line {
    white-space: normal;
  }

  .hero-cta,
  .page-cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: 68px 0;
  }

  .section-head.center {
    text-align: left;
  }

  .contact-title-nowrap {
    font-size: clamp(1.55rem, 6.2vw, 2.1rem);
  }

  .service-card .photo {
    height: 230px;
  }

  .service-list,
  .check-list,
  .strength-grid,
  .metric-grid,
  .strength-detail-grid {
    grid-template-columns: 1fr;
  }

  .strength-card,
  .metric-card {
    min-height: auto;
  }

  .mission-copy,
  .service-body,
  .support-panel,
  .contact-card,
  .lower-card,
  .feature-box {
    padding: 26px;
  }

  .company-row {
    grid-template-columns: 1fr;
  }

  .company-row dt,
  .company-row dd {
    padding: 16px 18px;
  }

  .flow-item {
    padding: 58px 22px 24px;
  }

  .flow-item::before {
    top: 22px;
    left: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

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