/*
 * Company page layout.
 * Load after hs-ui-foundation.css and only on the company page.
 * All selectors stay inside the approved .hs-company page root.
 * The first view, the feature split and the closing CTA follow the strengths
 * page so that migrated fixed pages share the same appearance.
 */

.hs-company {
  overflow: hidden;
}

.hs-company__container,
.hs-company__button,
.hs-company__license,
.hs-company__map,
.hs-company__media {
  box-sizing: border-box;
}

.hs-company h1,
.hs-company h2,
.hs-company p,
.hs-company ul,
.hs-company dl {
  margin-top: 0;
}

.hs-company h1,
.hs-company h2 {
  color: var(--hs-text);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
}

.hs-company h1 {
  font-size: 29px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hs-company h2 {
  font-size: 25px;
  line-height: 1.5;
}

.hs-company a {
  color: inherit;
}

.hs-company__container {
  margin-inline: auto;
  max-width: var(--hs-container);
  width: calc(100% - 40px);
}

.hs-company__section-head {
  margin-bottom: 32px;
  max-width: 780px;
}

.hs-company__section-intro {
  color: var(--hs-text-sub);
  margin-bottom: 0;
  margin-top: 16px;
}

/* Breadcrumb */

.hs-company__breadcrumb {
  background: var(--hs-gray);
  border-bottom: 1px solid var(--hs-line);
  color: var(--hs-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.hs-company__breadcrumb-inner {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 44px;
}

.hs-company__breadcrumb a {
  text-decoration: none;
}

.hs-company__breadcrumb a:hover {
  color: var(--hs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* First view */

.hs-company__hero {
  background: var(--hs-white);
  border-bottom: 1px solid var(--hs-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.hs-company__hero-pattern {
  background-image:
    linear-gradient(rgba(0, 90, 160, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 90, 160, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  inset: 300px 0 0;
  position: absolute;
}

.hs-company__hero-inner {
  min-height: auto;
  order: 2;
  position: relative;
}

.hs-company__hero-copy {
  max-width: 720px;
  padding: 52px 0 64px;
  position: relative;
  z-index: 2;
}

.hs-company__hero h1 {
  margin: 0 0 24px;
}

.hs-company__hero-page-name,
.hs-company__hero-message {
  display: block;
}

.hs-company__hero-page-name {
  color: var(--hs-blue);
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-left: 52px;
  position: relative;
}

.hs-company__hero-page-name::before {
  background: currentColor;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 0.8em;
  width: 36px;
}

/* 文字サイズは基盤のトークンで全ページ共通にする。 */
.hs-company__hero-message {
  font-size: var(--hs-hero-message-size);
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.hs-company__lead {
  color: var(--hs-text-sub);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 0;
}

.hs-company__hero-photo {
  height: 300px;
  margin: 0;
  order: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hs-company__hero-photo::before {
  background: linear-gradient(90deg, var(--hs-blue), var(--hs-cyan));
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.hs-company__hero-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  width: 100%;
}

/* Representative message */

.hs-company__message {
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-company__message-grid {
  align-items: center;
  display: grid;
  gap: 34px;
}

.hs-company__heading-group {
  margin-bottom: 28px;
}

.hs-company__message-title {
  color: var(--hs-blue);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 0;
  margin-top: 14px;
}

.hs-company__message-copy > p {
  color: var(--hs-text-sub);
  margin-bottom: 18px;
}

.hs-company__signature {
  color: var(--hs-text) !important;
  font-weight: 700;
  margin-bottom: 0 !important;
  text-align: right;
}

.hs-company__media {
  aspect-ratio: 4 / 3;
  background: var(--hs-gray);
  box-shadow: 0 20px 48px rgba(0, 71, 127, 0.12);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.hs-company__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/* Profile table */

.hs-company__profile {
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-company__table {
  border-top: 1px solid var(--hs-line);
  margin-bottom: 0;
}

.hs-company__row {
  border-bottom: 1px solid var(--hs-line);
  display: grid;
  gap: 4px;
  padding: 18px 0;
}

.hs-company__row dt {
  color: var(--hs-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.hs-company__row dd {
  color: var(--hs-text-sub);
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

/* Licenses */

.hs-company__licenses {
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-company__license-list {
  display: grid;
  gap: 18px;
  list-style: none !important;
  margin-bottom: 20px;
  padding: 0 !important;
}

.hs-company__license {
  background: var(--hs-white);
  box-shadow: 0 16px 36px rgba(0, 71, 127, 0.1);
  display: grid;
  gap: 18px;
  list-style: none !important;
  margin: 0;
  padding: 26px 24px 28px;
  position: relative;
}

.hs-company__license::before {
  background: linear-gradient(90deg, var(--hs-blue), var(--hs-cyan));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.hs-company__license-mark {
  color: var(--hs-cyan);
  height: 46px;
  width: 46px;
}

.hs-company__license-mark svg {
  display: block;
  height: 100%;
  width: 100%;
}

.hs-company__license-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.hs-company__license-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
}

.hs-company__license-number {
  border-bottom: 1px solid var(--hs-line);
  color: var(--hs-blue);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.hs-company__license-number strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hs-company__license-note {
  color: var(--hs-text-sub);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.hs-company__license-source {
  font-size: 13px;
  margin-bottom: 0;
}

.hs-company__license-source a {
  align-items: center;
  color: var(--hs-blue);
  display: inline-flex;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hs-company__license-disclaimer {
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* Access */

.hs-company__access {
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-company__map {
  box-shadow: 0 20px 48px rgba(0, 71, 127, 0.12);
  line-height: 0;
  overflow: hidden;
}

.hs-company__map iframe {
  display: block;
  height: 320px;
  width: 100%;
}

/* Closing CTA */

.hs-company__contact {
  color: rgba(255, 255, 255, 0.9);
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-company__contact-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.hs-company__contact-copy {
  max-width: 800px;
  text-align: left;
  width: 100%;
}

.hs-company__contact-copy h2 {
  color: var(--hs-white);
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hs-company__contact-copy p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.hs-company__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hs-company__button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  line-height: 1.5;
  min-height: 60px;
  padding: 15px 22px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  width: 100%;
}

.hs-company__button--white {
  background: linear-gradient(180deg, #ffffff 0%, #f2f9fc 100%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(0, 23, 48, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--hs-blue-deep);
  min-height: 68px;
  padding: 16px 20px 16px 30px;
}

/*
 * `.hs-company a { color: inherit }` は詳細度(0,1,1)で
 * `.hs-company__button--white`(0,1,0)に勝つため、CTAの文字色は
 * 親セレクタを重ねて上書きする。強みページと同じ回避方法。
 */
.hs-company__contact .hs-company__button--white {
  color: var(--hs-blue-deep);
}

.hs-company__button--white::after {
  align-items: center;
  background: linear-gradient(135deg, var(--hs-blue), var(--hs-cyan));
  border-radius: 50%;
  color: var(--hs-white);
  content: "→";
  display: inline-flex;
  font-size: 16px;
  height: 32px;
  justify-content: center;
  margin-left: 22px;
  width: 32px;
}

.hs-company__button--white:hover {
  background: var(--hs-white);
  box-shadow: 0 18px 42px rgba(0, 23, 48, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.hs-company__assist {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}

.hs-company a:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .hs-company__container {
    width: calc(100% - 64px);
  }

  .hs-company h1 {
    font-size: 32px;
  }

  .hs-company h2 {
    font-size: 28px;
  }

  .hs-company__lead {
    font-size: 16px;
    line-height: 2;
  }

  .hs-company__row {
    gap: 20px;
    grid-template-columns: 190px minmax(0, 1fr);
    padding: 20px 0;
  }

  .hs-company__license {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 30px 32px 32px;
  }

  .hs-company__button {
    width: auto;
  }

  .hs-company__map iframe {
    height: 420px;
  }
}

@media (min-width: 860px) {
  .hs-company__hero {
    display: block;
    min-height: 620px;
  }

  .hs-company__hero-pattern {
    inset: 0 44% 0 0;
  }

  .hs-company__hero-inner {
    align-items: center;
    display: flex;
    max-width: 1180px;
    min-height: 620px;
  }

  .hs-company__hero-copy {
    box-sizing: border-box;
    max-width: 650px;
    padding: 56px 70px 56px 0;
    width: 56%;
  }

  .hs-company__hero-page-name {
    font-size: 17px;
    margin-bottom: 22px;
  }

  .hs-company__hero-message {
    line-height: 1.45;
  }

  .hs-company__hero-photo {
    bottom: 0;
    height: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 44%;
  }

  .hs-company__hero-photo::before {
    background: linear-gradient(180deg, var(--hs-blue), var(--hs-cyan));
    height: 100%;
    width: 8px;
  }

  .hs-company__hero-photo img {
    object-position: 60% 50%;
  }


  .hs-company__message-grid {
    gap: clamp(54px, 7vw, 92px);
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  }

  /* 強みページの同種ブロックに合わせる。feature-splitは32px、他のセクション見出しはstep-flowと同じclamp。 */
  .hs-company__message h2 {
    font-size: 32px;
  }

  .hs-company__profile h2,
  .hs-company__licenses h2,
  .hs-company__access h2 {
    font-size: clamp(26px, 2.25vw, 30px);
  }

  .hs-company__section-head {
    margin-bottom: 38px;
  }

  .hs-company__license-list {
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs-company__license {
    align-content: start;
  }


  .hs-company__contact-copy h2 {
    font-size: clamp(24px, 1.9vw, 26px);
  }

  .hs-company__button--white {
    min-width: 410px;
  }

  .hs-company__map iframe {
    height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-company__button {
    transition: none;
  }
}
