:root {
  --paper: #f8f5ef;
  --paper-deep: #eee4d7;
  --ink: #1d1a17;
  --muted: #6e6258;
  --coffee: #7a4f35;
  --coffee-dark: #3a241a;
  --foam: #fffaf1;
  --leaf: #4d6b57;
  --line: rgba(58, 36, 26, 0.16);
  --shadow: 0 20px 60px rgba(58, 36, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 64px);
  color: var(--foam);
  background: linear-gradient(180deg, rgba(29, 26, 23, 0.62), rgba(29, 26, 23, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.48);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.14);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(22px, 6vw, 84px) 72px;
  color: var(--foam);
}

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

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(29, 26, 23, 0.78) 0%, rgba(29, 26, 23, 0.42) 42%, rgba(29, 26, 23, 0.1) 100%),
    linear-gradient(0deg, rgba(29, 26, 23, 0.56) 0%, rgba(29, 26, 23, 0.02) 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coffee);
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e9c89b;
}

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

h1 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
}

.mobile-break {
  display: none;
}

.hero-sub {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.65;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(22px, 6vw, 84px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 1.18;
}

.mission-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
}

.service-section {
  background: var(--paper);
}

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

.service-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--foam);
  box-shadow: var(--shadow);
}

.service-number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--leaf);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.service-card p,
.work-summary p,
.case-stack-card p,
.product-feature p,
.member-profile p,
.company-list {
  color: var(--muted);
}

.works-section {
  background: var(--foam);
}

.work-tabs {
  max-width: 1080px;
}

.work-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-controls {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.tab-controls label {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 0 18px;
  border-radius: 6px;
  color: var(--muted);
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

#tab-client:checked ~ .tab-controls label[for="tab-client"],
#tab-product:checked ~ .tab-controls label[for="tab-product"] {
  color: var(--foam);
  background: var(--coffee-dark);
}

.tab-panels {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.88), rgba(238, 228, 215, 0.6)),
    var(--foam);
  box-shadow: var(--shadow);
}

.tab-panel {
  display: none;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(30px, 6vw, 72px);
  padding: clamp(26px, 5vw, 44px);
}

#tab-client:checked ~ .tab-panels .panel-client,
#tab-product:checked ~ .tab-panels .panel-product {
  display: grid;
}

.work-kicker {
  margin-bottom: 12px;
  color: var(--leaf);
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-summary h3 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1.25;
}

.work-summary p:last-child,
.work-list p {
  margin-bottom: 0;
}

.work-note {
  margin-top: 18px;
  font-size: 0.86rem;
}

.case-stack-list {
  display: grid;
  gap: 16px;
}

.case-stack-card,
.product-feature {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.76);
}

.case-stack-card p,
.product-feature p {
  margin-bottom: 18px;
}

.case-stack-label {
  margin-bottom: 12px;
  color: var(--leaf);
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-stack-card h4,
.product-feature h4 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  line-height: 1.45;
}

.case-details {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.case-details div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
}

.case-details dt {
  color: var(--coffee);
  font-size: 0.78rem;
  font-weight: 800;
}

.case-details dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

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

.work-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-list article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
}

.work-list span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--coffee);
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

.work-list h4 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.mission-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(40px, 8vw, 110px);
  background: var(--coffee-dark);
  color: var(--foam);
}

.mission-section .eyebrow {
  color: #ddb98a;
}

.mission-text {
  max-width: 680px;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.mission-text p {
  margin-bottom: 28px;
}

.member-section {
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
}

.member-profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 620px);
  gap: 34px;
  align-items: center;
  max-width: 920px;
}

.member-symbol {
  display: grid;
  width: 160px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  color: var(--foam);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 250, 241, 0.22), transparent 34%),
    linear-gradient(135deg, var(--coffee), var(--coffee-dark));
  font-family: "Outfit", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
}

.member-photo {
  width: 160px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--foam);
  box-shadow: var(--shadow);
}

.role {
  margin-bottom: 6px;
  color: var(--leaf);
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

.member-profile h3 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.company-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.82), rgba(238, 228, 215, 0.72)),
    var(--paper-deep);
}

.company-card {
  position: relative;
  max-width: 980px;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(58, 36, 26, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow);
}

.company-card::before,
.company-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 16px -18px -18px 24px;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.46);
  transform: rotate(1.2deg);
}

.company-card::after {
  inset: 32px -32px -32px 46px;
  opacity: 0.62;
  transform: rotate(2.1deg);
}

.company-list {
  max-width: 760px;
  margin: 0;
}

.company-list div {
  display: block;
  padding: 0;
  border-bottom: 0;
}

.company-list div + div {
  margin-top: 34px;
}

.company-list dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.company-list dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.45;
}

.contact-section {
  background: var(--foam);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--coffee);
  font-weight: 800;
}

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

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: var(--foam);
  background: var(--coffee-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--coffee);
}

.contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

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

.form-status {
  min-height: 1.6em;
  margin: 0;
  color: var(--coffee);
  font-weight: 800;
}

.form-status.is-error {
  color: #9b2f24;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(22px, 6vw, 84px);
  color: var(--foam);
  background: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding: 18px 20px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    font-size: 0.8rem;
  }

  .brand span:last-child {
    max-width: 140px;
    line-height: 1.2;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(29, 26, 23, 0.82), rgba(29, 26, 23, 0.44)),
      linear-gradient(0deg, rgba(29, 26, 23, 0.62), rgba(29, 26, 23, 0.04));
  }

  .service-grid,
  .mission-section,
  .tab-panel,
  .work-list,
  .work-list.two-column,
  .member-profile {
    grid-template-columns: 1fr;
  }

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

  .member-symbol {
    width: 118px;
  }

  .member-photo {
    width: 118px;
  }

  .company-card {
    padding: 32px 24px;
  }

  .company-list dd {
    font-size: 1.25rem;
  }

  .case-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

@media (max-width: 560px) {
  .site-header {
    position: absolute;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-top: 112px;
  }

  h1 {
    font-size: 2.05rem;
    line-height: 1.2;
  }

  .mobile-break {
    display: inline;
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 1.7;
  }
}
