:root {
  --ink: #161819;
  --ink-soft: #3f4548;
  --paper: #f3efe6;
  --panel: #fffaf0;
  --panel-strong: #fffdf8;
  --steel: #647078;
  --line: #d3cab9;
  --rust: #b44927;
  --rust-dark: #84331f;
  --ember: #ffb14a;
  --deep: #202629;
  --shadow: 0 22px 70px rgba(22, 24, 25, 0.18);
  --shadow-soft: 0 12px 36px rgba(22, 24, 25, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(circle at 15% 0%, rgba(180, 73, 39, 0.08), transparent 26rem),
    linear-gradient(90deg, rgba(22,24,25,0.034) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(22,24,25,0.024) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 250, 240, 0.2);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 177, 74, 0.08), transparent 38%),
    rgba(22, 24, 25, 0.95);
  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: 2px solid var(--ember);
  color: var(--ember);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 177, 74, 0.22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: #b9c0c3;
  font-size: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: #e9e2d4;
}

.site-nav a:hover {
  color: var(--ember);
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--ember);
  color: #161819 !important;
  background: var(--ember);
  box-shadow: 0 8px 22px rgba(255, 177, 74, 0.16);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, 1120px) minmax(20px, 1fr);
  align-items: center;
  color: #fff;
  background: var(--deep);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22,24,25,0.92) 0%, rgba(22,24,25,0.82) 42%, rgba(22,24,25,0.26) 100%),
    linear-gradient(0deg, rgba(22,24,25,0.82), transparent 46%),
    linear-gradient(135deg, rgba(180, 73, 39, 0.22), transparent 34%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(22,24,25,0.12), rgba(22,24,25,0.2)),
    url("../images/hero-factory.jpg") center / cover no-repeat;
  filter: saturate(0.82) contrast(1.12);
  transform: scale(1.01);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  grid-column: 2;
  max-width: 900px;
  padding: clamp(86px, 9vw, 132px) 0 clamp(190px, 19vw, 250px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--ember);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 1.13;
  letter-spacing: 0;
  font-weight: 900;
}

h1 span {
  display: inline-block;
}

.hero-lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: #ede6da;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--rust);
  color: #fff;
  background: linear-gradient(135deg, var(--rust), var(--rust-dark));
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 5vw, 72px);
  bottom: 38px;
  width: min(520px, calc(100% - 40px));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(22, 24, 25, 0.76);
  backdrop-filter: blur(10px);
}

.hero-panel dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.hero-panel div {
  padding: 20px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-panel dt {
  color: var(--ember);
  font-size: 12px;
  font-weight: 800;
}

.hero-panel dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.section,
.cta-section,
.contact-layout {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: clamp(78px, 8vw, 112px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: 0;
}

.section-lead {
  max-width: 720px;
  margin: 0 0 34px auto;
  color: var(--ink-soft);
  font-size: 16px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.intro .section-head {
  display: block;
  margin: 0;
}

.intro p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 2.05;
}

.reasons,
.voices {
  position: relative;
}

.reasons::before,
.voices::before {
  content: "";
  position: absolute;
  inset: 36px calc(50% - 50vw) auto auto;
  width: min(28vw, 340px);
  height: 1px;
  background: var(--rust);
  opacity: 0.55;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(190px, 1fr));
  gap: 1px;
  overflow-x: auto;
  background: var(--line);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.reason-grid article {
  min-height: 280px;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 52%),
    var(--panel);
}

.reason-grid span {
  color: var(--rust);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.reason-grid h3,
.work-card h3,
.voice-grid h3,
.news h3 {
  margin: 14px 0 10px;
  line-height: 1.4;
  letter-spacing: 0;
}

.reason-grid p,
.work-card p,
.voice-grid p,
.news p {
  margin: 0;
  color: var(--ink-soft);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(22, 24, 25, 0.14);
}

.work-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #293136, #74604b);
  filter: saturate(0.9) contrast(1.04);
}

.work-card div {
  padding: 24px;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice-grid article {
  position: relative;
  padding: 32px 28px 30px;
  border-left: 4px solid var(--rust);
  background:
    linear-gradient(135deg, rgba(180, 73, 39, 0.06), transparent 44%),
    #fffdf8;
  box-shadow: var(--shadow-soft);
}

.voice-grid article::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 1px;
  background: var(--line);
}

.voice-grid footer {
  margin-top: 18px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 800;
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list article {
  display: grid;
  grid-template-columns: 140px minmax(0, 300px) minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--rust);
  font-weight: 900;
}

.news-list h3 {
  margin: 0;
}

.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  margin-bottom: 100px;
  padding: clamp(34px, 5vw, 54px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(22,24,25,0.96), rgba(32,38,41,0.86)),
    url("../images/contact-workbench.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.cta-section h2,
.cta-section p {
  margin: 0;
}

.cta-section p:not(.eyebrow) {
  margin-top: 10px;
  color: #d9d1c2;
}

.page-hero {
  padding: 86px clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(22,24,25,0.92), rgba(22,24,25,0.45)),
    url("../images/contact-workbench.jpg") center / cover no-repeat,
    var(--deep);
}

.page-hero div {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p:last-child {
  max-width: 680px;
  margin-top: 18px;
  color: #ede6da;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  padding: 70px 0 90px;
}

.contact-form,
.contact-info {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: clamp(22px, 4vw, 38px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form label.full,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.contact-form span {
  margin-left: 6px;
  color: var(--rust);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8c0b0;
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fffdf8;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(255, 177, 74, 0.36);
  border-color: var(--rust);
}

.form-note,
.sample-note {
  color: var(--steel);
  font-size: 12px;
}

.contact-info {
  align-self: start;
  padding: 30px;
}

.contact-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.contact-info p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-info .tel {
  color: var(--rust);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.contact-info hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 38px clamp(20px, 5vw, 72px);
  color: #e9e2d4;
  background: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    background: rgba(22, 24, 25, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-content {
    padding: 76px 0 230px;
  }

  .hero-panel dl,
  .section-head,
  .intro,
  .work-grid,
  .voice-grid,
  .news-list article,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-lead {
    margin-left: 0;
  }

  .hero-panel div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section {
    padding: 64px 0;
  }

  .cta-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    top: 64px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(34px, 10.8vw, 46px);
    line-height: 1.18;
  }

  h1 span {
    max-width: 100%;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-panel {
    bottom: 20px;
  }

  .hero-actions,
  .hero-actions .button,
  .cta-section .button {
    width: 100%;
  }

  .reason-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .reason-grid article {
    min-height: auto;
  }

  .section,
  .cta-section,
  .contact-layout {
    width: min(100% - 32px, 1120px);
  }

  .cta-section {
    padding: 28px;
  }

  .section-head h2 {
    font-size: clamp(27px, 8.5vw, 36px);
  }

  .news-list article {
    gap: 8px;
  }
}

/* 見出しの改行調整 */
h1 span { display: inline-block; }
h1 { line-height: 1.5; }

h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem) !important; line-height: 1.55 !important; }
