/* ===================================
   COMPANY PAGE STYLES
   会社概要ページ専用スタイル（エディトリアル刷新版）
=================================== */

/* SP only utility */
.sp-only {
  display: none;
}

/* ============================================================
   Company Page (MESSAGE + COMPANY PROFILE) — Editorial
============================================================ */

/* ---- Section base ---- */
.message_section,
.profile_section {
  position: relative;
  padding: 64px 24px 72px;
  overflow: hidden;
}
.message_section { background: var(--white-color, #fff); }
.profile_section { background: #fafbfd; }
@media (min-width: 768px) {
  .message_section,
  .profile_section { padding: 80px 64px 96px; }
}
@media (min-width: 1080px) {
  .message_section,
  .profile_section { padding: 96px 100px 112px; }
}

/* 左端アクセントライン（他ページと呼応） */
.message_section::before,
.profile_section::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 64px;
  background: var(--accent-color, #4D76FF);
}

.message_section .top_container,
.profile_section .top_container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ---- Section Head (英字ラベル + 明朝見出し + 下罫線) ---- */
.company_section_head {
  display: block;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--primary-color, #03113E);
}
@media (min-width: 768px) {
  .company_section_head {
    padding-bottom: 28px;
    margin-bottom: 56px;
  }
}

.company_section_labels { position: relative; }

.company_section_labels .en {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Cormorant Garamond", "Zen Old Mincho", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--accent-color, #4D76FF);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.company_section_labels .en::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--accent-color, #4D76FF);
}
@media (min-width: 768px) {
  .company_section_labels .en {
    font-size: 13px;
    margin-bottom: 14px;
  }
}

.company_section_labels h1,
.company_section_labels h2 {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--primary-color, #03113E);
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: .08em;
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
   MESSAGE section
============================================================ */
.message_content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .message_content {
    flex-direction: row;
    gap: 56px;
    align-items: flex-start;
  }
}
@media (min-width: 1080px) {
  .message_content { gap: 80px; }
}

/* CEO Image */
.message_img-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 280px;
  padding: 0 0 16px 16px;
}
@media (min-width: 768px) {
  .message_img-wrapper { width: 280px; max-width: none; }
}
@media (min-width: 1080px) {
  .message_img-wrapper { width: 320px; }
}
/* 左下に細罫線フレームをずらして重ねる */
.message_img-wrapper::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px solid var(--accent-color, #4D76FF);
  opacity: .45;
}
.message_img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}
.message_img-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: "Cormorant Garamond", "Zen Old Mincho", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--primary-color, #03113E);
  letter-spacing: .24em;
  padding-top: 14px;
  border-top: 1px solid var(--line-color, #d5dae5);
}
.message_img-caption::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--primary-color, #03113E);
}
@media (min-width: 1080px) {
  .message_img-caption { font-size: 14px; margin-top: 22px; }
}

/* Message Text */
.message_text-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

.message_catch {
  position: relative;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--primary-color, #03113E);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.55;
  letter-spacing: .08em;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-color, #d5dae5);
  text-wrap: balance;
}
.message_catch::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 56px; height: 1px;
  background: var(--accent-color, #4D76FF);
}
@media (min-width: 768px) {
  .message_catch { margin-bottom: 40px; padding-bottom: 28px; }
}

/* Pull quote (本文冒頭の歴史家の言葉) */
.message_text_quote {
  display: block;
  position: relative;
  margin: 0 0 1.8em;
  padding: 22px 0 0;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--primary-color, #03113E);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .08em;
  max-width: none;
  text-wrap: pretty;
}
.message_text_quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--primary-color, #03113E);
}
@media (min-width: 1080px) {
  .message_text_quote { font-size: 16px; padding-top: 26px; }
}

.message_text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: #4a4f65;
  font-size: 14px;
  line-height: 2;
  letter-spacing: .04em;
  max-width: none;
}
@media (min-width: 768px) {
  .message_text { font-size: 14.5px; line-height: 2.1; }
}
@media (min-width: 1080px) {
  .message_text { font-size: 15px; line-height: 2.15; }
}

/* Signature */
.message_signature {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-color, #d5dae5);
  font-family: "Noto Sans JP", sans-serif;
  color: var(--primary-color, #03113E);
  flex-wrap: wrap;
  position: relative;
}
/* 左端に短い accent 青罫 (editorial signature) */
.message_signature::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 56px; height: 1px;
  background: var(--accent-color, #4D76FF);
}
.message_company {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .08em;
  line-height: 1.4;
}
.message_ceo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid var(--line-color, #d5dae5);
}
.message_position {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  color: #6a7089;
}
.message_name-img {
  height: 40px;
  width: auto;
}
@media (min-width: 768px) {
  .message_signature { margin-top: 56px; padding-top: 36px; }
  .message_company { font-size: 16px; }
  .message_position { font-size: 13px; }
  .message_name-img { height: 46px; }
}

/* ============================================================
   COMPANY PROFILE section
============================================================ */
.profile_table-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.profile_table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-color, #d5dae5);
  background: var(--white-color, #fff);
}
.profile_table tr {
  border-bottom: 1px solid var(--line-color, #d5dae5);
  transition: background .35s ease;
}
.profile_table tr:hover { background: #fafbfe; }

.profile_table th,
.profile_table td {
  padding: 20px 16px 20px 20px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.profile_table th {
  width: 32%;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--primary-color, #03113E);
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 1.6;
  padding-right: 16px;
  position: relative;
}
/* th の左に accent 青のマーク (ホバーで登場) */
.profile_table th::before {
  content: "";
  position: absolute;
  left: 0; top: calc(50% - 5px);
  width: 3px; height: 10px;
  background: var(--accent-color, #4D76FF);
  opacity: 0;
  transition: opacity .35s ease;
}
.profile_table tr:hover th::before { opacity: 1; }

.profile_table td {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #4a4f65;
  letter-spacing: .04em;
  line-height: 1.9;
}
@media (min-width: 768px) {
  .profile_table th,
  .profile_table td { padding: 24px 12px 24px 24px; }
  .profile_table th { width: 28%; font-size: 15px; }
  .profile_table td { font-size: 14.5px; }
}
@media (min-width: 1080px) {
  .profile_table th {
    width: 24%;
    font-size: 16px;
    padding-left: 28px;
    padding-right: 24px;
  }
  .profile_table td { font-size: 15px; padding-left: 12px; }
}

/* ---- SP 調整 ---- */
@media screen and (max-width: 767px) {
  .message_img-wrapper {
    margin: 0 auto;
  }
  .message_signature {
    gap: 12px;
  }
  .profile_table th,
  .profile_table td {
    display: block;
    width: 100%;
    padding: 14px 0 4px 14px;
  }
  .profile_table td {
    padding: 0 0 16px 14px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .profile_table tr,
  .profile_table th::before {
    transition: none !important;
  }
}
