/* ==========================================================================
   bond Inc. — style.css
   Design tokens (colors + type scale) come from the bond design system.
   Update a token in :root and it propagates everywhere it's used below.
   ========================================================================== */

:root {
  /* Colors — design system palette */
  --color-black: #0a0816;
  --color-gray: #5f5d68;
  --color-disabled: #acaab0;
  --color-placeholder: #c6c6ca;
  --color-border: #e2e2e4;
  --color-bg-disabled: #f1f0f1;
  --color-bg: #f9f9f9;
  --color-white: #ffffff;
  --color-main: #1e4bbc;
  --color-hover: #103298;

  /* SNS (reserved for future use — share links, icons) */
  --color-sns-twitter: #3f94e9;
  --color-sns-facebook: #2d6ae9;
  --color-sns-google: #000000;
  --color-sns-line: #46ac29;

  /* Status (reserved for future use — form validation states) */
  --color-status-error: #ed766f;
  --color-status-warning: #f1ac30;
  --color-status-information: #639df9;
  --color-status-success: #57c16c;

  /* Typography */
  --font-base: "Noto Sans JP", "Inter", -apple-system, "Hiragino Sans", sans-serif;
  --line-height-base: 1.625; /* 162.5% */

  /* Type scale */
  --text-6xl: 64px;
  --text-5xl: 48px;
  --text-4xl: 36px;
  --text-3xl: 30px;
  --text-2xl: 24px;
  --text-xl: 20px;
  --text-lg: 18px;
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 12px;
  --text-xxs: 10px;

  /* Layout */
  --container-width: 984px;
  --container-width-narrow: 640px;
  --container-padding: 24px;
  --section-gap: 120px;
  --card-gap: 24px;
  --radius: 4px;
  --radius-lg: 16px;
}

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

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

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: var(--line-height-base);
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, dl, dd, figure, ul, table {
  margin: 0;
}

ul { list-style: none; padding: 0; }

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-width-narrow);
}

.section {
  padding: 64px 0;
}

.section-label {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-black);
  margin-bottom: 32px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 40px 0 8px;
}

.site-header__inner {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card__title {
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--color-black);
}

/* ---------- Recruiting ---------- */
.recruiting__title {
  font-size: var(--text-2xl);
  font-weight: 900;
  margin-bottom: 32px;
}

.recruiting__card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
}

.recruiting__highlight {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-black);
}

.recruiting__cta {
  text-align: center;
}

.recruiting__date {
  font-size: var(--text-xs);
  color: var(--color-gray);
  margin-top: 8px;
}

.recruiting__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}

.recruiting__text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-black);
}

.recruiting__text + .recruiting__text {
  margin-top: 20px;
}

/* ---------- Works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.work-card {
  display: flex;
  flex-direction: column;
}

.work-card__media {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  margin-bottom: 16px;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__title {
  font-size: var(--text-2xl);
  font-weight: 900;
  margin-bottom: 4px;
}

.work-card__company {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-main);
  margin-bottom: 16px;
}

.work-card__company:hover {
  color: var(--color-hover);
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.work-meta__item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.work-meta__item dt {
  font-size: var(--text-xs);
  color: var(--color-gray);
}

.work-meta__item dd {
  font-size: var(--text-sm);
  font-weight: 900;
  color: var(--color-black);
}

.work-card__note {
  font-size: var(--text-xxs);
  color: var(--color-gray);
  margin-bottom: 16px;
}

.work-card__link,
.work-card__ended {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 900;
}

.work-card__link {
  color: var(--color-main);
}

.work-card__link:hover {
  color: var(--color-hover);
}

.work-card__ended {
  color: var(--color-disabled);
}

/* ---------- Member ---------- */
.member {
  display: flex;
  align-items: flex-start;
  gap: 108px;
}

.member__photo {
  flex: 0 0 396px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member__body {
  flex: 1 1 auto;
  min-width: 0;
}

.member__name {
  font-size: var(--text-2xl);
  font-weight: 900;
}

.member__name-en {
  font-size: var(--text-xs);
  margin: 4px 0 16px;
}

.member__role {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.member__bio {
  font-size: var(--text-sm);
  line-height: 1.63;
  color: var(--color-black);
  margin-bottom: 16px;
}

.member__bio:last-of-type {
  margin-bottom: 20px;
}

.member__bio a {
  color: var(--color-main);
  text-decoration: underline;
}

.member__bio a:hover {
  color: var(--color-hover);
}

.member__links {
  display: flex;
  gap: 24px;
}

.member__links a {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-main);
}

.member__links a:hover {
  color: var(--color-hover);
}

/* ---------- Company ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-top: 1px solid var(--color-border);
}

.company-table tr:last-child {
  border-bottom: 1px solid var(--color-border);
}

.company-table th,
.company-table td {
  text-align: left;
  font-weight: 400;
  font-size: var(--text-base);
  padding: 20px 16px;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  color: var(--color-gray);
}

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

/* ---------- News ---------- */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.news-item__link {
  display: flex;
  flex-direction: column;
}

.news-item__media {
  width: 100%;
  aspect-ratio: 1280 / 670;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  margin-bottom: 16px;
}

.news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.news-item__title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-black);
  margin-bottom: 8px;
}

.news-item__date {
  font-size: var(--text-xs);
  color: var(--color-gray);
}

.news-item__link:hover .news-item__title {
  color: var(--color-main);
}

/* ---------- Contact ---------- */
.section--contact {
  background: var(--color-bg);
  text-align: center;
}

.contact-lead {
  font-size: var(--text-base);
  color: var(--color-black);
  margin-bottom: 32px;
}

.button {
  display: inline-block;
  padding: 15px 32px;
  background: var(--color-main);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius);
}

.button:hover {
  background: var(--color-hover);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}

.site-footer p {
  font-size: var(--text-xs);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root {
    --section-gap: 64px;
  }

  .section {
    padding: 48px 0;
  }

  .recruiting__card {
    padding: 40px var(--container-padding);
  }

  .services-grid,
  .works-grid,
  .news-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .member {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .member__photo {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 4 / 3;
  }

  .company-table,
  .company-table tbody,
  .company-table tr {
    display: block;
    width: 100%;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: auto;
    padding: 0;
  }

  .company-table th {
    padding-top: 20px;
    padding-bottom: 4px;
  }

  .company-table td {
    padding-bottom: 20px;
  }
}
