:root {
  --bg: #f6f2e9;
  --bg-soft: #fffaf2;
  --ink: #11172d;
  --text: #27314d;
  --muted: #5f6a86;
  --line: #d3c7ae;
  --card: #fffcf7;
  --navy: #1a2342;
  --red: #9d1f2f;
  --gold: #b88c3a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(184, 140, 58, 0.12), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(157, 31, 47, 0.1), transparent 30%),
    var(--bg);
  line-height: 1.82;
  letter-spacing: 0.01em;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.42;
  color: var(--ink);
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
}

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

p {
  margin-top: 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.section {
  padding: 5.4rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 242, 233, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.92rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: grid;
  gap: 0.2rem;
}

.brand-main {
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  font-family: "Zen Old Mincho", serif;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.brand-subcopy {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: #8b94aa;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.87rem;
  color: #3e4b67;
}

.site-nav a {
  display: grid;
  gap: 0.12rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-color: var(--gold);
}

.nav-sub {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #8892aa;
  text-transform: uppercase;
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(125deg, rgba(26, 35, 66, 0.97), rgba(17, 23, 45, 0.9)),
    repeating-linear-gradient(
      45deg,
      rgba(184, 140, 58, 0.17),
      rgba(184, 140, 58, 0.17) 2px,
      transparent 2px,
      transparent 14px
    );
}

.hero::after {
  content: "武士道的責任感 × 実行伴走";
  position: absolute;
  right: 4%;
  bottom: 1.8rem;
  color: rgba(255, 232, 197, 0.75);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.hero-inner {
  color: #f9f5ec;
  padding: 2rem 0;
}

.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: #dfc893;
  margin-bottom: 0.9rem;
}

.kicker-sub {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 236, 201, 0.72);
}

h1 {
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  margin-bottom: 1.2rem;
  color: #fffdf7;
}

.lead {
  font-size: 1.06rem;
  max-width: 66ch;
  color: #ebe2cf;
}

.lead-sub,
.subcopy,
.section-sub,
.heading-sub,
.label-sub,
.th-sub,
.btn-sub,
.subcopy-inline {
  display: block;
  margin-top: 0.38rem;
  font-size: 0.8rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #7b859b;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.lead-sub {
  color: rgba(255, 236, 201, 0.72);
  max-width: 60ch;
}

.section-sub,
.heading-sub {
  margin-top: 0.18rem;
  text-transform: none;
}

.section-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.heading-sub {
  font-size: 0.92rem;
}

.subcopy-title {
  margin-top: 0.24rem;
}

.subcopy-inline {
  margin-top: 0.26rem;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 0.66rem 1.16rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary {
  background: linear-gradient(140deg, #c19746, #a87d33);
  color: #171d33;
  font-weight: 700;
}

.btn-secondary {
  border-color: rgba(255, 236, 201, 0.62);
  background: transparent;
  color: #fff3d7;
}

.btn-sub {
  margin-top: 0.14rem;
  font-size: 0.66rem;
  line-height: 1.4;
  color: inherit;
  opacity: 0.78;
}

.section-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 72ch;
  color: #394766;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid #ebe2d3;
  border-bottom: 1px solid #ebe2d3;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.grid.grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.panel,
.process-card,
.phase {
  background: var(--card);
  border: 1px solid #e6dcc7;
  border-radius: 16px;
  padding: 1.1rem 1rem;
}

.card h3,
.panel h3,
.process-card h3,
.phase h3 {
  margin-bottom: 0.4rem;
  font-size: 1.17rem;
}

.message {
  margin-top: 1rem;
  font-weight: 700;
  color: #7e1f2c;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dfd3bd;
  border-radius: 14px;
  background: #fffdf8;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 0.72rem 0.78rem;
  border-bottom: 1px solid #e9e1d2;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f6efe0;
  color: #243154;
  font-weight: 700;
}

.th-sub {
  margin-top: 0.14rem;
  font-size: 0.66rem;
  color: #6d7892;
}

.emphasis-row {
  background: rgba(184, 140, 58, 0.09);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.timeline.timeline-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.phase {
  position: relative;
  background: linear-gradient(160deg, #fff9ec, #fffdf8);
}

.phase-id {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.3rem;
}

details {
  border: 1px solid #e2d6bf;
  border-radius: 12px;
  background: #fffdf8;
  padding: 0.86rem 0.94rem;
  margin-bottom: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #1f2a4b;
}

details p {
  margin-top: 0.6rem;
}

.site-footer {
  background: #131d39;
  color: #d7dfef;
}

.site-footer h2,
.site-footer .section-kicker {
  color: #fff0cd;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 240, 205, 0.2);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.68rem;
}

label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.9rem;
}

.label-sub {
  margin-top: -0.08rem;
  font-size: 0.72rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(233, 219, 190, 0.4);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  background: rgba(255, 255, 255, 0.96);
  color: #222c47;
  font: inherit;
}

textarea {
  resize: vertical;
}

#form-message {
  margin: 0.2rem 0 0;
  min-height: 1.2rem;
  font-size: 0.86rem;
  color: #ffe2ae;
}

#form-message.error {
  color: #ffb7b7;
}

@media (max-width: 980px) {
  .header-actions {
    margin-left: auto;
  }

  .site-nav {
    display: none;
  }

  .grid.grid-five,
  .grid.three,
  .timeline,
  .timeline.timeline-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.4rem 0;
  }

  .nav-wrap {
    align-items: flex-start;
  }

  .header-actions {
    width: auto;
  }

  .grid.two,
  .grid.grid-five,
  .grid.three,
  .timeline,
  .timeline.timeline-five,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero::after {
    right: auto;
    left: 4%;
    bottom: 1rem;
  }

  .btn {
    width: 100%;
  }
}
