/*
 * pages-fix.css — readability overrides for the fixed pages (researchfc theme):
 * 会社概要, 私たちの想い, お問い合わせ, CSR・SDGs, プライバシーポリシー, 免責事項,
 * ご相談時の注意事項, 特定商取引法に基づく表記, and the hero of the column archive.
 *
 * Load AFTER main.css on is_page() (not on the front page). Rules are scoped to
 * .company-page (the <main> of every fixed page) and exclude the single column
 * article (.single-column-page), which has its own stylesheet (column-fix.css).
 * The typography mirrors column-fix.css so the whole site reads the same:
 * body text 400 weight, plain heading rules (no accent bars), compact
 * centred hero, white reading card on desktop and no card on phones.
 */

/* Site header (≤860px, 56px): see header-fix.css, loaded on every page. */

/* ==========================================================================
   1. Hero — compact and centred (owner decision 2026-10-10: keep the page
      titles centred). DOM order is kept: English label → title → breadcrumb.
   ========================================================================== */

.company-page:not(.single-column-page) .company-hero {
  padding: 28px 32px 26px;
  text-align: center;
}

.company-page:not(.single-column-page) .company-hero .company-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100%, 840px);
  margin: 0 auto;
  text-align: center;
}

.company-page:not(.single-column-page) .company-hero .section-label--yellow {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 20px;
  margin: 0;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.company-page:not(.single-column-page) .company-hero .company-hero__title {
  width: auto;
  max-width: 100%;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
}

.company-page:not(.single-column-page) .company-hero .company-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

.company-page:not(.single-column-page) .company-hero .company-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-page:not(.single-column-page) .company-hero .company-breadcrumb a:focus-visible {
  outline: 2px solid #fff100;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .company-page:not(.single-column-page) .company-hero {
    padding: 20px 18px 20px;
  }

  .company-page:not(.single-column-page) .company-hero .section-label--yellow {
    font-size: 11px;
  }

  .company-page:not(.single-column-page) .company-hero .company-hero__title {
    font-size: 22px;
  }
}

/* ==========================================================================
   2. Text pages (想い, CSR, プライバシー, 免責, 注意事項): reading card
   ========================================================================== */

.company-page:not(.single-column-page) .single-column__body {
  padding-top: 40px;
}

/* 840px − 2×56px − 2×1px border = 726px text column (≈42.7 chars at 17px),
   identical to the column article. */
.company-page .single-column__content.thoughts-page__content {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 56px;
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 56, 107, 0.07);
  color: #1a2541;
}

.company-page .thoughts-page__content > :first-child {
  margin-top: 0;
}

.company-page .thoughts-page__content > :last-child {
  margin-bottom: 0;
}

/* Body text, emphasis, links */
.company-page .thoughts-page__content p,
.company-page .thoughts-page__content li {
  color: #1a2541;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.company-page .thoughts-page__content p {
  margin: 1.4em 0;
}

.company-page .thoughts-page__content strong {
  color: inherit;
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(255, 241, 0, 0.6) 62%);
}

.company-page .thoughts-page__content a,
.company-page .thoughts-page__content .dtf-consult-inline {
  color: #0637bd;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.company-page .thoughts-page__content a:hover,
.company-page .thoughts-page__content .dtf-consult-inline:hover {
  color: #042a8f;
  text-decoration-thickness: 2px;
}

.company-page .thoughts-page__content a:focus-visible,
.company-page .thoughts-page__content .dtf-consult-inline:focus-visible {
  outline: 2px solid #0758e6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Lists */
.company-page .thoughts-page__content ul,
.company-page .thoughts-page__content ol {
  margin: 1.2em 0;
  padding-left: 1.5em;
}

.company-page .thoughts-page__content li {
  margin: 0.45em 0;
  line-height: 1.8;
}

.company-page .thoughts-page__content li::marker {
  color: #0758e6;
}

/* Headings: plain rules, no accent bars (same values as the column). */
.company-page .thoughts-page__content h2 {
  position: static;
  margin: 56px 0 20px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid #06143c;
  color: #06143c;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.company-page .thoughts-page__content > h2:first-child {
  margin-top: 0;
}

.company-page .thoughts-page__content h3 {
  position: static;
  margin: 36px 0 12px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid #dce7f4;
  color: #06143c;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.company-page .thoughts-page__content h4 {
  position: static;
  margin: 28px 0 8px;
  padding: 0;
  border: 0;
  color: #06143c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.company-page .thoughts-page__content h2::before,
.company-page .thoughts-page__content h2::after,
.company-page .thoughts-page__content h3::before,
.company-page .thoughts-page__content h4::before {
  content: none;
}

/* 私たちの想い: "大切にする姿勢" as a plain numbered list (no circle badges). */
.company-page .thoughts-principles {
  margin: 20px 0 0;
  border-top: 1px solid #dce7f4;
}

.company-page .thoughts-principle {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  column-gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid #dce7f4;
}

.company-page .thoughts-page__content .thoughts-principle__number {
  grid-row: auto;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  /* main.css sets the badge text colour with !important. */
  color: #0758e6 !important;
  background: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.company-page .thoughts-page__content .thoughts-principle h3 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 18px;
  line-height: 1.5;
}

.company-page .thoughts-page__content .thoughts-principle p:not(.thoughts-principle__number) {
  grid-column: 2;
  margin: 0;
}

@media (max-width: 860px) {
  .company-page:not(.single-column-page) .single-column__body {
    padding-top: 28px;
    background: #fff;
  }

  .company-page .single-column__content.thoughts-page__content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .company-page .thoughts-page__content p,
  .company-page .thoughts-page__content li {
    font-size: 16px;
    line-height: 1.85;
  }

  .company-page .thoughts-page__content li {
    line-height: 1.75;
  }

  .company-page .thoughts-page__content h2 {
    margin: 44px 0 16px;
    font-size: 21px;
  }

  .company-page .thoughts-page__content h3 {
    margin: 32px 0 10px;
    font-size: 18px;
  }

  .company-page .thoughts-page__content h4 {
    font-size: 17px;
  }

  .company-page .thoughts-principle {
    grid-template-columns: 2.2em minmax(0, 1fr);
    row-gap: 0;
    padding: 18px 0;
  }

  .company-page .thoughts-page__content .thoughts-principle__number {
    width: auto;
    height: auto;
    font-size: 17px;
  }

  .company-page .thoughts-page__content .thoughts-principle h3 {
    font-size: 17px;
  }
}

/* ==========================================================================
   3. Table pages (会社概要, 特定商取引法に基づく表記)
   ========================================================================== */

.company-page .company-profile {
  padding: 40px 32px 64px;
  text-align: left;
}

.company-page .company-profile .company-section__inner {
  width: min(100%, 840px);
  padding: 44px 56px 48px;
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 56, 107, 0.07);
}

.company-page .company-profile .company-section__title {
  color: #06143c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.company-page .company-profile__table {
  margin-top: 20px;
  border-top: 1px solid #dce7f4;
}

.company-page .company-profile__table div {
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid #dce7f4;
}

.company-page .company-profile__table dt,
.company-page .company-profile__table dd {
  padding: 16px 0;
  font-size: 16px;
  line-height: 1.8;
}

.company-page .company-profile__table dt {
  padding-right: 20px;
  color: #06143c;
  font-size: 15px;
  font-weight: 700;
}

.company-page .company-profile__table dd {
  color: #1a2541;
  font-weight: 400;
}

.company-page .company-profile__table a {
  color: #0637bd;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-all;
}

@media (max-width: 860px) {
  .company-page .company-profile {
    padding: 24px 18px 48px;
    background: #fff;
  }

  .company-page .company-profile .company-section__inner {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .company-page .company-profile .company-section__title {
    font-size: 20px;
  }

  .company-page .company-profile__table {
    margin-top: 14px;
  }

  .company-page .company-profile__table div {
    grid-template-columns: 1fr;
  }

  .company-page .company-profile__table dt {
    padding: 14px 0 2px;
    color: #4d6388;
    font-size: 13px;
  }

  .company-page .company-profile__table dd {
    padding: 0 0 14px;
    font-size: 15px;
    line-height: 1.75;
  }
}

/* ==========================================================================
   4. お問い合わせ
   ========================================================================== */

.company-page .contact-page__section {
  padding: 40px 32px 64px;
}

.company-page .contact-page__inner {
  max-width: 840px;
}

.company-page .contact-page__intro p {
  color: #1a2541;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

.company-page .contact-page__form {
  margin-top: 28px;
}

@media (max-width: 860px) {
  .company-page .contact-page__section {
    padding: 24px 18px 48px;
    background: #fff;
  }

  .company-page .contact-page__intro p {
    font-size: 15px;
    line-height: 1.85;
  }

  .company-page .contact-page__form {
    margin-top: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* ==========================================================================
   5. Bottom consultation band (company-cta) and the archive section title
   ========================================================================== */

.company-page .company-cta .section-label--yellow {
  min-height: 20px;
  height: auto;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.company-page .company-cta__title {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.company-page .company-cta__inner p {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  opacity: 0.9;
}

.company-page.column-page .company-section__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .company-page .company-cta__title {
    font-size: 21px;
  }

  .company-page .company-cta__inner p {
    font-size: 15px;
    line-height: 1.75;
  }

  .company-page.column-page .company-section__title {
    font-size: 21px;
  }
}
