/**
 * company.css
 * 会社概要・代表挨拶ページ専用スタイル
 */

/* =========================================================
   0. Fonts
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@700&display=swap');

.tw\:font-serif {
  font-family: 'Shippori Mincho', serif !important;
}

/* =========================================================
   1. Headings
========================================================= */
.subpage-content h1 {
  font-size: 53px !important;
  line-height: 1.2 !important;
}

.subpage-content h2 {
  font-size: 42px !important;
  line-height: 1.2 !important;
  /* border-left: 8px solid #ec4899 !important; */
  padding-left: 20px !important;
  margin-bottom: 60px !important;
}

/* =========================================================
   2. Representative message (text)
========================================================= */
.representative-message p {
  font-size: 16px;
  line-height: 2.2 !important;
  color: #374151;
  text-align: justify;
  margin-bottom: 1.5em;
}

/* =========================================================
   3. Company info table (dl/dt/dd)
========================================================= */
.company-info-table dl {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  padding: 40px 0;
  margin: 0;
}

.company-info-table dl:last-child {
  border-bottom: none;
}

.company-info-table dt {
  width: 250px;
  flex-shrink: 0;
  font-weight: 700;
  color: #111827;
  font-size: 17px;
  padding-top: 2px;
}

.company-info-table dd {
  flex-grow: 1;
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
  font-size: 16px;
}

/* =========================================================
   4. Office list
========================================================= */
.office-list {
  display: flex;
  flex-direction: column;
}

.office-item {
  position: relative;
  margin-bottom: 80px !important;
}

.office-item:last-child {
  margin-bottom: 0 !important;
}

.office-item strong {
  color: #111827;
}

/* =========================================================
   5. Representative left block (photo / title / career)
========================================================= */
.rep-left {
  width: 360px;
}

.rep-photo {
  width: 100%;
  height: auto;
  display: block;
}

.rep-photo--rounded {
  border-radius: 22px;
}

/* career card */
.rep-career-wrap {
  background: #E9EBEF;
  padding: 18px;
  border-radius: 14px;
  margin-top: 12px;
}

/* =========================================================
   6. Responsive (<= 768px)
========================================================= */
@media (max-width: 768px) {
  /* headings */
  .subpage-content h1 {
    font-size: 32px !important;
  }

  .subpage-content h2 {
    font-size: 28px !important;
    /* border-left: 6px solid #ec4899 !important; */
    padding-left: 15px !important;
    margin-bottom: 40px !important;
  }

  /* company info table */
  .company-info-table dl {
    flex-direction: column;
    padding: 30px 0;
  }

  .company-info-table dt {
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
    color: #ec4899;
  }

  .company-info-table dd {
    width: 100%;
    font-size: 15px;
  }

  /* office spacing */
  .office-item {
    margin-bottom: 60px !important;
  }

  /* representative left block centered */
  .rep-left {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* 画像/役職/氏名を中央寄せ */
  }

  /* photo centered (念のため) */
  .rep-left .rep-photo {
    margin-left: auto;
    margin-right: auto;
  }

  /* career card spacing + keep contents left-aligned */
  .rep-career-wrap {
    margin-bottom: 28px; /* 経歴の下に余白 */
    text-align: left;    /* 経歴本文は左寄せ */
  }
}

