:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --red: #c8102e;
  --gray: #767676;
  --line: #e6e6e6;
  --tint: #f6f5f3;

  --wrap: 1080px;

  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
          "Yu Gothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 24px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  text-decoration: none;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav a {
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav a:hover { border-bottom-color: var(--red); }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(72px, 14vw, 148px);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.lead {
  margin: 0;
  max-width: 44em;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--gray);
}

/* ---------- sections ---------- */

.section { padding-block: clamp(64px, 11vw, 120px); }

.section-tint { background: var(--tint); }

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
}

.section-title {
  margin: 0 0 40px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.5;
  font-weight: 700;
}

.section-dark .section-title { margin-bottom: 8px; }

/* ---------- business cards ---------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px);
}

.card-num {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
}

.card h3 {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--gray);
}

/* ---------- product ---------- */

.product-sub {
  margin: 0 0 36px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #a8a8a8;
}

.product-lead {
  margin: 0 0 48px;
  max-width: 40em;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 2;
}

.facts {
  margin: 0 0 48px;
  display: grid;
  gap: 1px;
  background: #333333;
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.fact {
  background: var(--ink);
  padding: 28px 4px;
}

@media (min-width: 860px) {
  .fact { padding: 32px 28px 32px 0; }
  .fact + .fact { padding-left: 28px; }
}

.fact dt {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.fact dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #b4b4b4;
}

.product-meta {
  margin: 0 0 44px;
  font-size: 14px;
  color: #b4b4b4;
}

.product-meta p { margin: 0 0 10px; }

.product-meta span {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 14px;
  color: var(--paper);
  font-weight: 700;
}

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

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  border-color: #555555;
  color: var(--paper);
}

.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---------- table ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 20px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.table tr:last-child th,
.table tr:last-child td { border-bottom: 1px solid var(--line); }

.table th {
  width: 8em;
  padding-right: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.table td { color: var(--gray); }

.table a { color: var(--ink); }

@media (max-width: 560px) {
  .table th,
  .table td { display: block; width: auto; }
  .table th { padding-bottom: 4px; border-top: 1px solid var(--line); }
  .table td { padding-top: 0; border-top: 0; }
  .table tr:last-child th { border-bottom: 0; }
}

/* ---------- contact ---------- */

.contact-lead {
  max-width: 46em;
  margin: 0 0 28px;
  color: var(--gray);
  font-size: 15px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 44px;
}

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

.footer-copy {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8a8a8a;
}

/* ---------- small screens ---------- */

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-block: 12px;
  }
  .site-header { position: static; }
  .nav { gap: 18px; font-size: 12px; }
}

/* ---------- mission / vision ---------- */

.mv {
  display: grid;
  gap: 48px;
  margin-bottom: 72px;
}

@media (min-width: 860px) {
  .mv { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.mv-label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}

.mv-headline {
  margin: 0 0 18px;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.75;
  font-weight: 700;
  padding-left: 18px;
  border-left: 3px solid var(--ink);
}

.mv-body {
  margin: 0;
  font-size: 15px;
  color: var(--gray);
}

.value-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: v;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

@media (min-width: 900px) {
  .value-list { grid-template-columns: repeat(3, 1fr); }
}

.value-list li {
  counter-increment: v;
  background: var(--paper);
  padding: 32px 0;
}

@media (min-width: 900px) {
  .value-list li { padding: 36px 28px 36px 0; }
  .value-list li + li { padding-left: 28px; }
}

.value-list li::before {
  content: counter(v, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
}

.value-list h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 700;
}

.value-list p {
  margin: 0;
  font-size: 14px;
  color: var(--gray);
}

/* ---------- service ---------- */

.service {
  display: grid;
  gap: 48px;
}

@media (min-width: 860px) {
  .service { grid-template-columns: 1fr 1.6fr; gap: 56px; }
}

.service-num {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
}

.service-block h3 {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.service-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-block li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--gray);
}

.service-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--red);
}

/* ---------- profile ---------- */

.profile { display: grid; gap: 40px; }

/* 写真がある場合だけ2カラムにする。
   写真をコメントアウトしている間は、本文が全幅を使う。 */
@media (min-width: 860px) {
  .profile:has(.profile-photo) {
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: start;
  }
}

.profile-body { max-width: 46em; }

.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--tint);
}

.profile-name {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
}

.profile-name span {
  margin-left: 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.profile-role {
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--gray);
}

.career {
  margin: 0;
  padding: 0;
  list-style: none;
}

.career li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.career li:last-child { border-bottom: 1px solid var(--line); }

.career-org {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.career-detail {
  margin: 0;
  font-size: 14px;
  color: var(--gray);
}

/* ---------- logo ---------- */

.brand img {
  width: auto;
  height: 19px;
  display: block;
}

@media (max-width: 680px) {
  .brand img { height: 17px; }
}

.footer-logo {
  width: auto;
  height: 17px;
  display: block;
}

/* ---------- form ---------- */

.form {
  max-width: 620px;
  margin-bottom: 32px;
}

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

.field { margin-bottom: 24px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.req {
  margin-left: 10px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--red);
  vertical-align: 1px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cfcfcf;
  border-radius: 0;
  transition: border-color 0.15s;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 5px;
  flex: none;
  accent-color: var(--red);
}

.consent label { color: var(--gray); }
.consent a { color: var(--ink); }

.form button { cursor: pointer; font-family: inherit; }

.contact-alt {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
}

.contact-alt a { color: var(--ink); }

/* ---------- document pages ---------- */

.doc {
  max-width: 46em;
  font-size: 15px;
}

.doc h2 {
  margin: 44px 0 14px;
  padding-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.doc p { margin: 0 0 16px; color: var(--gray); }

.doc ul { margin: 0 0 16px; padding-left: 1.3em; color: var(--gray); }

.doc li { margin-bottom: 8px; }

.doc a { color: var(--ink); }

.doc-date {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ---------- footer links ---------- */

.footer-copy a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid #555;
  padding-bottom: 2px;
}

.footer-copy a:hover { border-bottom-color: var(--red); }

.footer-copy span { margin-left: 20px; }

@media (max-width: 560px) {
  .footer-copy span { display: block; margin-left: 0; margin-top: 12px; }
}

.hint {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--gray);
}
