:root {
  --ink: #24201d;
  --muted: #756b62;
  --line: #eadfd1;
  --paper: #fffaf3;
  --white: #ffffff;
  --amber: #f7a51f;
  --orange: #e86923;
  --sun: #ffd56f;
  --green: #245a52;
  --shadow: 0 24px 70px rgba(63, 42, 16, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 250, 243, 0.96);
  box-shadow: 0 12px 40px rgba(54, 38, 21, 0.12);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #2b1907;
  font-weight: 900;
  letter-spacing: 0;
}

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

.brand small {
  color: currentColor;
  opacity: 0.74;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  font-size: 14px;
}

.site-nav a {
  opacity: 0.92;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.nav-cta,
.button.primary {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #261406;
  box-shadow: 0 14px 30px rgba(232, 105, 35, 0.24);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(24, 17, 12, 0.84), rgba(24, 17, 12, 0.42) 56%, rgba(24, 17, 12, 0.18)),
    linear-gradient(0deg, rgba(24, 17, 12, 0.56), rgba(24, 17, 12, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

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

h1 {
  max-width: 800px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.lead {
  max-width: 680px;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 56px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.project-strip div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.project-strip div:last-child {
  border-right: 0;
}

.project-strip dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.project-strip dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.section,
.intro-band,
.cta-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.two-col,
.cta-layout,
.metrics-layout,
.split-detail,
.image-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.intro-band {
  background: var(--white);
}

.intro-band p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.feature-grid,
.case-grid,
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.deliverable-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(80, 52, 20, 0.07);
}

.icon-dot {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff1cf;
  color: var(--orange);
  font-weight: 900;
}

.feature-card p,
.case-card p,
.deliverable-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.image-story {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) 0;
}

.story-image img,
.split-detail img,
.sub-hero img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-copy p {
  color: var(--muted);
}

.check-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.warm {
  background: #fff2d8;
}

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

.case-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.case-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card div {
  padding: 22px;
}

.case-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.flow-list li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 92px 200px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.flow-list li::before {
  content: "0" counter(flow);
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
}

.flow-list span {
  color: var(--muted);
}

.cta-section {
  background: var(--green);
  color: var(--white);
}

.cta-section .section-kicker {
  color: var(--sun);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

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

.form-note {
  margin: 0;
  color: var(--muted) !important;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  background: #21160f;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--sun);
  font-weight: 900;
}

.sub-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 78vh;
  padding: 138px clamp(18px, 5vw, 72px) 70px;
  background: linear-gradient(135deg, #fff7e8, #ffffff);
}

.sub-hero-copy {
  max-width: 620px;
}

.sub-hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 68px);
}

.sub-hero .lead {
  color: var(--muted);
}

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

.seo-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.seo-table div:last-child {
  border-bottom: 0;
}

.seo-table span {
  color: var(--muted);
}

.metrics-band {
  padding: clamp(64px, 8vw, 110px) 0;
  background: #2d2118;
  color: var(--white);
}

.metrics-band .section-kicker {
  color: var(--sun);
}

.metrics-band p {
  color: rgba(255, 255, 255, 0.74);
}

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

.metric-grid div {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-grid strong {
  display: block;
  color: var(--sun);
  font-size: 34px;
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 10px;
  font-weight: 800;
}

.split-detail {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.detail-copy p {
  color: var(--muted);
}

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

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
    color: currentColor;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .project-strip,
  .feature-grid,
  .case-grid,
  .deliverable-grid,
  .two-col,
  .cta-layout,
  .metrics-layout,
  .split-detail,
  .image-story,
  .sub-hero {
    grid-template-columns: 1fr;
  }

  .project-strip {
    margin-top: 34px;
  }

  .project-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .project-strip div:last-child {
    border-bottom: 0;
  }

  .flow-list li,
  .seo-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sub-hero {
    padding-top: 118px;
  }
}

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

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 118px;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}
