/* 会社概要（Figma 359:556 / 1440px 基準） */

/* 共通：英字ラベル＋見出し（中央寄せ。.c-head--left は左寄せ） */
.c-head { text-align: center; }
.c-head--left { text-align: left; }
.c-head__title {
  margin-top: 8px;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ---------- OUR MISSION ---------- */
.c-hero {
  height: 340px;
  padding-top: 80px;
  background:
    url("../assets/company-hero-mask.svg") right bottom / auto 100% no-repeat,
    linear-gradient(to top, #ECF5FF, #fff);
}
.c-hero__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-main);
}
.c-hero__rule { display: block; width: 40px; height: 1px; background: var(--c-main); }
.c-hero__title {
  margin-top: 8px;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.c-hero__lead {
  margin-top: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* ---------- 代表メッセージ ---------- */
.c-message { padding: 88px 0; background: #fff; scroll-margin-top: var(--header-h); }
.c-message__body {
  display: grid;
  grid-template-columns: 400px minmax(0, 744px);
  column-gap: 56px;
  margin-top: 24px;
  align-items: start;
}
.c-message__photo {
  width: 400px;
  height: 540px;
  object-fit: cover;
  border-radius: 16px;
}
.c-message__text { position: relative; }
.c-message__lead {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.c-message__bar { display: block; width: 48px; height: 2px; margin-top: 23px; background: var(--c-main); }
.c-message__copy {
  margin-top: 23px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.c-message__tagline {
  margin-top: 24px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.c-message__rule {
  display: block;
  margin-top: 16px;
  height: 1px;
  background: var(--c-line);
}
.c-message__sign {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.c-message__role { margin-left: 40px; }
.c-message__name { margin-left: 11px; font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }

/* ---------- 会社情報 ---------- */
.c-info { padding: 88px 0; background: var(--c-pale); }
.c-info__card {
  margin-top: 56px;
  margin-bottom: 0;
  padding: 32px 56px 56px;
}
.c-info__row {
  position: relative;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  padding: 24px 16px 23px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--c-line);
}
.c-info__row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 104px;
  height: 1px;
  background: var(--c-main);
}
.c-info__row dt { font-weight: 700; }
.c-info__row dd { margin: 0; }
.c-info__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}
.c-info__link img { width: 20px; height: 20px; margin-top: 2px; }

/* ---------- 沿革・実績 ---------- */
.c-history { padding: 88px 0; background: #fff; }
.c-history__list {
  position: relative;
  margin-top: 56px;
  padding-left: 187px;
}
.c-history__list::before {
  content: "";
  position: absolute;
  left: 115px;
  top: 10px;
  width: 16px;
  height: 521px;
  background: url("../assets/company-timeline.svg") 0 0 / 16px 521px no-repeat;
}
.c-history__item { position: relative; height: 116px; text-align: left; }
.c-history__item:last-child { height: auto; }
.c-history__year {
  position: absolute;
  left: -187px;
  top: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0.04em;
}
.c-history__item.is-now .c-history__year { color: var(--c-main); }
.c-history__name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  background: var(--c-base);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}
.c-history__name::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--c-main); }
.c-history__desc { margin-top: 8px; font-size: 16px; line-height: 1.5; letter-spacing: 0.04em; }

/* ---------- 私たちの発信 ---------- */
.c-pub { padding: 88px 0; background: var(--c-base); }
.c-pub__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
  text-align: left;
}
.c-pcard {
  position: relative;
  display: block;
  height: 235px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: opacity 0.2s;
}
.c-pcard:hover { opacity: 0.85; }
.c-pcard__tag {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-main);
}
.c-pcard__globe { position: absolute; right: 25.25px; top: 25.25px; width: 21.5px; height: 21.5px; }
.c-pcard__logo { position: absolute; right: 24px; top: 24px; display: block; overflow: hidden; height: 24px; }
.c-pcard__logo img { position: absolute; max-width: none; }
.c-pcard__logo--note { width: 64px; }
.c-pcard__logo--note img { width: 114.35%; height: 114.27%; left: -6.7%; top: -6.68%; }
.c-pcard__logo--x { width: 23px; }
.c-pcard__logo--x img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-pcard__name {
  margin-top: 16px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.c-pcard__rule {
  display: block;
  margin-top: 16px;
  height: 1px;
  background: linear-gradient(to right, var(--c-main) 40px, var(--c-line) 40px);
}
.c-pcard__text { margin-top: 15px; font-size: 16px; line-height: 1.5; letter-spacing: 0.04em; }
.c-pcard__go {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.04em;
}
.c-pcard__go img { width: 24px; height: 24px; }

/* ---------- GET STARTED（会社概要版：一文なし・高さ443） ---------- */
.page-company .cta-band { min-height: 0; }
.page-company .cta-card__btns { margin-top: 0; }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .c-head__title { font-size: 28px; }
  .c-hero { height: auto; padding: 56px 0 48px; background-size: auto 100%, auto; }
  .c-hero__title { font-size: 26px; letter-spacing: 0.04em; }
  .c-hero__lead { font-size: 14px; }

  .c-message, .c-info, .c-history, .c-pub { padding: 56px 0; }
  .c-message__body { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .c-message__photo { width: 100%; height: auto; aspect-ratio: 400 / 540; }
  .c-message__text { height: auto; }
  .c-message__lead { font-size: 22px; }
  .c-message__tagline, .c-message__rule, .c-message__sign { position: static; }
  .c-message__tagline { margin-top: 24px; }
  .c-message__rule { display: block; margin-top: 16px; }
  .c-message__sign { margin-top: 16px; flex-wrap: wrap; }

  .c-info__card { margin-top: 32px; padding: 8px 16px 16px; }
  .c-info__row { grid-template-columns: 1fr; row-gap: 4px; padding: 16px 0; font-size: 15px; }

  .c-history__list { margin-top: 32px; padding-left: 80px; }
  .c-history__list::before { left: 44px; }
  .c-history__year { left: -80px; font-size: 18px; }
  .c-history__name { font-size: 16px; }
  .c-history__desc { font-size: 14px; }

  .c-pub__cards { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .c-pcard { height: auto; min-height: 235px; padding-bottom: 64px; }
}
.c-info__row[hidden] { display: none; }

/* ---------- スマホ（Figma 390幅・768px以下。左右余白20px）：上の900px以下を土台に上書き ---------- */
.sp-br { display: none; }
@media (max-width: 768px) {
  .sp-br { display: inline; }
  .c-head__title { font-size: 24px; margin-top: 4px; }
  .c-head .eyebrow { display: block; }

  /* OUR MISSION（y61〜297） */
  .c-hero { padding: 24px 0; }
  .c-hero__label { height: 23px; font-size: 15px; }
  .c-hero__rule { width: 24px; }
  .c-hero__title { margin-top: 4px; font-size: 24px; letter-spacing: 0.08em; }
  .c-hero__lead { margin-top: 8px; font-size: 15px; }

  /* 代表メッセージ（y297〜1830） */
  .c-message, .c-info, .c-history, .c-pub { padding: 40px 0; }
  .c-message__body { margin-top: 24px; row-gap: 16px; }
  .c-message__lead { font-size: 20px; }
  .c-message__bar { width: 24px; margin-top: 16px; }
  .c-message__copy { margin-top: 24px; }
  .c-message__tagline { margin-top: 24px; font-size: 16px; }
  .c-message__sign { font-size: 14px; flex-wrap: nowrap; }
  .c-message__role { margin-left: 24px; }
  .c-message__name { margin-left: 8px; font-size: 16px; }

  /* 会社情報（y1830〜2527） */
  .c-info__card { margin-top: 24px; padding: 8px 16px 24px; }
  .c-info__row { grid-template-columns: 104px minmax(0, 1fr); row-gap: 0; padding: 16px 0; font-size: 15px; }
  .c-info__row::after { width: 56px; }

  /* 沿革・実績（y2527〜3123） */
  .c-history__list { margin-top: 22px; padding-left: 83px; }
  .c-history__list::before { display: none; }
  .c-history__item, .c-history__item:last-child { height: auto; margin-bottom: 14px; }
  .c-history__item:last-child { margin-bottom: 0; }
  .c-history__item::before { content: ""; position: absolute; left: -23px; top: 14px; width: 2px; height: calc(100% + 14px); background: var(--c-line); }
  .c-history__item:last-child::before { display: none; }
  .c-history__item::after { content: ""; position: absolute; left: -28px; top: 8px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid var(--c-line); }
  .c-history__item.is-now::after { background: var(--c-main); border-color: var(--c-main); }
  .c-history__year { left: -83px; top: 2px; font-size: 16px; line-height: 24px; }
  .c-history__name { padding: 4px 8px; font-size: 16px; }
  .c-history__desc { margin-top: 2px; font-size: 15px; letter-spacing: 0; }

  /* 私たちの発信（y3123〜3863） */
  .c-pub__cards { gap: 16px; margin-top: 24px; }
  .c-pcard { min-height: 0; height: auto; padding: 16px; border-radius: 12px; }
  .c-pcard__tag { font-size: 15px; }
  .c-pcard__globe { right: 17px; top: 17px; }
  .c-pcard__logo { right: 16px; top: 16px; }
  .c-pcard__name { margin-top: 8px; font-size: 16px; }
  .c-pcard__rule { margin-top: 8px; }
  .c-pcard__text { margin-top: 8px; font-size: 15px; letter-spacing: 0; }
  .c-pcard__go { position: static; justify-content: flex-end; margin-top: 8px; font-size: 15px; }
}
