/* ===================================================
   company.css - 会社情報下層ページ専用スタイル
   CENTURY21ココカラ
   =================================================== */

/* ===== Company Page h2 (larger heading) ===== */
.company-page .post-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 48px 0 24px;
}
.company-page .post-content h2:first-child {
  margin-top: 0;
}

/* ===== Company Page Body Text ===== */
.company-page .post-content p,
.company-page .post-content li {
  font-size: 16px;
}

/* ===== Vision Statement (emphasized text) ===== */
.company-page .post-content .vision-statement,
.company-page .post-content .vision-statement li {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
  padding-top: 24px;
  padding-bottom: 16px;
}
.company-page .post-content ol.vision-statement {
  padding-left: 32px;
}
.company-page .post-content .vision-statement li {
  padding-top: 0;
  padding-bottom: 0;
}

/* ===== Company Outline Table ===== */
.company-page .post-content .company-outline-table {
  font-size: 16px;
}
.company-page .post-content .company-outline-table th,
.company-page .post-content .company-outline-table td {
  background: transparent;
  border: none;
  padding: 24px 24px;
}
.company-page .post-content .company-outline-table tbody tr:nth-child(odd) th,
.company-page .post-content .company-outline-table tbody tr:nth-child(odd) td {
  background: #f5f4f0;
}
.company-outline-table th {
  font-weight: 700;
  white-space: nowrap;
  width: 200px;
  vertical-align: middle;
}
.company-outline-table td a {
  color: var(--accent-cta);
  text-decoration: underline;
}
.company-outline-table td a:hover {
  text-decoration: none;
}

/* ===== Access Map ===== */
.access-map {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}
.access-map iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* ===== Message Layout (text left, photo right on PC) ===== */
.message-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.message-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.message-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Message Signature ===== */
.message-signature {
  text-align: right;
  margin-top: 48px;
  line-height: 2;
  font-family: var(--font-serif);
  font-weight: 700;
}

/* ===== Staff Listing ===== */
.staff-listing {
  padding: 80px 0 40px;
}
.staff-listing .staff-grid {
  gap: 48px 40px;
}
.staff-listing .staff-card-link {
  text-align: center;
}
.staff-name-en {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.staff-listing .staff-comment {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.staff-hobbies {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: left;
  line-height: 1.6;
}
.staff-hobbies span {
  font-weight: 700;
  color: var(--accent);
}

/* ===== Staff Detail ===== */
.staff-detail-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: auto auto;
  gap: 48px;
}
.staff-detail-photo {
  grid-column: 1;
  grid-row: 1;
  border-radius: 8px;
  overflow: hidden;
}
.staff-detail-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.staff-detail-info {
  grid-column: 2;
  grid-row: 1;
}
.staff-detail-position {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.staff-detail-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.staff-detail-name-en {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.staff-detail-intro {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
}
.staff-detail-table {
  grid-column: 1 / -1;
  grid-row: 2;
}
.staff-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
}
.staff-profile-item {
  padding: 20px 16px;
  border-bottom: 1px solid #e8e6e2;
}
.staff-profile-item:nth-child(-n+4) {
  border-top: 1px solid #e8e6e2;
}
.staff-profile-item dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.staff-profile-item dd {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ===== Staff Detail Nav (Prev/Next) ===== */
.staff-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
}
.staff-detail-nav a {
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.staff-detail-nav a:hover {
  color: var(--accent);
}
.staff-nav-prev,
.staff-nav-next {
  min-width: 140px;
}
.staff-nav-prev {
  text-align: left;
}
.staff-nav-next {
  text-align: right;
}
.staff-nav-list {
  text-align: center;
}
.staff-nav-disabled {
  visibility: hidden;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .message-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .message-photo {
    position: static;
    max-width: 480px;
  }
  .message-photo img {
    position: static;
    height: auto;
  }
  .company-page .post-content h2 {
    font-size: 24px;
  }
  .staff-listing {
    padding: 60px 0 30px;
  }
  .staff-detail-layout {
    display: block;
  }
  .staff-detail-photo {
    max-width: 400px;
    margin-bottom: 32px;
  }
  .staff-detail-info {
    margin-bottom: 32px;
  }
  .staff-profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .staff-profile-item:nth-child(-n+4) {
    border-top: none;
  }
  .staff-profile-item:nth-child(-n+2) {
    border-top: 1px solid #e8e6e2;
  }
}

/* ===== Responsive: SP ===== */
@media (max-width: 768px) {
  .company-page .post-content h2 {
    font-size: 22px;
    margin: 36px 0 20px;
  }
  .message-layout {
    gap: 24px;
  }
  .message-photo {
    max-width: 100%;
  }
  .company-page .post-content .company-outline-table {
    font-size: 16px;
  }
  .company-outline-table th {
    width: 140px;
  }
  .access-map iframe {
    height: 280px;
  }
  .staff-listing {
    padding: 40px 0 20px;
  }
  .staff-listing .staff-grid {
    gap: 40px 24px;
  }
  .staff-detail-photo {
    max-width: 100%;
  }
  .staff-detail-name {
    font-size: 24px;
  }
  .staff-detail-photo {
    max-width: 100%;
  }
  .staff-profile-grid {
    grid-template-columns: 1fr;
  }
  .staff-profile-item:nth-child(-n+2) {
    border-top: none;
  }
  .staff-profile-item:first-child {
    border-top: 1px solid #e8e6e2;
  }
  .staff-profile-item {
    padding: 16px 12px;
  }
  .staff-detail-nav {
    margin-top: 40px;
    padding-top: 24px;
  }
  .staff-nav-prev,
  .staff-nav-next {
    min-width: auto;
  }
}
