/* 会社概要（子ページ）専用スタイル */

#main {
  margin: 0!important;
  padding: 0!important;
}

.page-company {
  max-width: 100%;
}

.company-header {
  max-width: 1250px;
  margin: 0 auto;
  padding: 40px 40px;
  text-align: left;
}

.company-title {
  font-size: 42px;
  font-weight: 800;
  color: #333;
  margin: 0;
}

.company-subtitle {
  font-size: 14px;
  color: #DE3545;
  font-weight: 700;
  margin: 0;
  letter-spacing: .5px;
}

/* company-subtitle の左にテキスト色のドットを表示 */
.company-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.company-subtitle::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.company-hero {
  width: 100%;
}

.company-hero-image {
  width: 100%;
  margin: 0;
  height: 400px;
  overflow: hidden;
}

.company-hero-image img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}

.company-mission {
  max-width: 1250px;
  margin: 80px auto 0;
  padding: 0 40px;
}

.mission-container {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 40px;
  align-items: start;
  justify-content: space-between;
}

.mission-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: max-content;
}

.mission-title-ja {
  font-weight: 800;
  font-size: 54px;
  margin: 0;
  line-height: 1.45;
}

.mission-title-en {
  font-weight: 800;
  font-size: 80px;
  color: #cccccc;
  margin: 6px 0 0;
  line-height: 1.1;
}

.mission-right {
  min-width: 0;
  width: 100%;
  max-width: 470px;
}

.mission-lead {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 20px;
  line-height: 37px;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.text-accent {
  color: #DE3333;
}

@media (max-width: 1100px) {
  .mission-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .mission-right {
    max-width: none;
  }
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.section-lead {
  font-size: 16px;
  line-height: 28px;
  margin: 0;
}

/* セクション間の区切り線（各セクションの最大幅に合わせる） */
.section-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 80px 0;
  max-width: 1250px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.company-message {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 40px;
}

.company-message .message-heading,
.company-summary .summary-heading,
.company-access .access-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.heading-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heading-en {
  margin: 0;
  color: #f2f2f2;
  font-weight: 800;
  font-size: 86px;
  line-height: 1;
  letter-spacing: 0.06em;
}

@media (max-width: 920px) {
  .company-message .message-heading,
  .company-summary .summary-heading,
  .company-access .access-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .heading-en { font-size: 40px; }
}

.message-body {
  display: flex;
  align-items: flex-start;
  gap: 65px;
}

.message-text {
  flex: 1;
  line-height: 28px;
  font-weight: 500;
}

.company-message .message-text p {
  white-space: pre-line;
  font-size: 16px;
  line-height: 32px;
}

.message-from {
  font-weight: 700;
  margin-top: 12px;
}

.message-thumb {
  width: 100%;
  margin: 0;
}

.message-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.message-media {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.message-from {
  margin: 0;
}

.message-role {
  margin: 0;
  font-weight: 600;
  width: 100%;
  text-align: right;
}

.message-name {
  margin: 0;
  font-weight: 600;
  font-size: 35px;
  display: inline-block;
  width: auto;
  align-self: flex-end;
  text-align: right;
}

.message-name::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: #DE3333;
  margin-top: 12px;
}

.company-summary {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 40px;
}

.company-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  text-align: left;
  border-top: 1px solid #d9d9d9; /* 横線のみ */
  vertical-align: middle;
  padding: 20px 0;
}

.company-table th {
  width: 160px;
  color: #666;
  font-weight: 600;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 1px solid #d9d9d9; /* 最下行に下線 */
}

/* 横線のみになるように左右の枠線を無効化 */
.company-table,
.company-table th,
.company-table td {
  border-left: none;
  border-right: none;
}

@media (max-width: 1000px) {
  .company-table-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  .message-body {
    gap: 4vw;
  }
  .message-role {
    line-height: 3.5vw;
    font-size: 2.5vw;
  }
  .message-name {
    line-height: 3vw;
    font-size: 5vw;
  }
}

@media (max-width: 575px) {
  .company-table {
    min-width: 320px;
  }
  .company-table th {
    width: 160px !important;
    min-width: 160px !important;
  }
}

@media (max-width: 580px) {
  .mission-title-ja {
    font-size: 9.4vw;
  }
  .mission-title-en {
    font-size: 13vw;
  }
  .message-thumb {
    width: 66.67% !important;
  }
  .company-table th {
    display: none;
  }
  .company-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
  .company-table td .cell {
    display: grid;
    align-items: center;
  }
  .company-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
  }
}

@media (max-width: 920px) {
  .company-message .message-text p {
    font-size: 16px;
    line-height: 28px;
  }
}

/* セル内ラッパーで高さを制御 */
.company-table .cell {
  min-height: 64px;
  display: grid;
  align-items: center;
}

.company-table .cell-double {
  min-height: 128px;
}

.nowrap { white-space: nowrap; }
/* ========================= */
/* h2 初期化（このページのみ） */
/* ========================= */
.site-main .page-company h2 {
  background: none !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}

.site-main .page-company h2.section-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  color: #000000 !important;
}

.company-access {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 40px;
}

.access-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.access-map {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.access-info {
  padding: 0 40px;
}

.access-info p {
  margin: 0 0 8px 0;
  line-height: 26px;
}

.access-info .access-divider {
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
  margin-top: 32px;
  margin-bottom: 32px;
}

.access-info .access-divider:first-child {
  margin-top: 0;
}

.access-info .access-divider:last-child {
  margin-bottom: 0;
}

.access-method {
  margin-bottom: 24px;
}

.access-method:last-child {
  margin-bottom: 0;
}

/* Google Map を枠にフィット（枠=地図サイズ） */
.access-map iframe {
  display: block;
  width: 700px;
  height: 525px;
}

/* アクセス右カラム内の区切り線（親の幅にフィット） */
.access-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 16px 0;
  width: 100%;
}

.access-title {
  font-weight: 700;
  margin: 16px 0 6px;
}

.access-subtitle {
  font-size: 14px;
  margin: 12px 0 4px;
}

@media (max-width: 1000px) {
  .access-body { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .access-info {
    padding: 0;
  }
}

@media (max-width: 920px) {
  .message-body { flex-direction: column; }
  .message-thumb {
    width: 100%;
    max-width: 400px;
  }
  .message-media {
    align-items: flex-start;
    max-width: none;
  }
  .message-role {
    order: 1;
    align-self: flex-end;
  }
  .message-name {
    order: 2;
    align-self: flex-end;
  }
  .message-thumb {
    order: 3;
  }
}


