.corp-section {
  max-width: 850px;
  margin: 4rem auto;
  padding: 1rem;
  color: var(--color-text);
}

.corp-section h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.corp-block {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.philosophy-sub-img {
  flex: 1 1 300px;
  max-width: 320px;
  width: 100%;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.corp-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.8;
}

.corp-text h3 {
  margin: 0 0 1rem 0;
  padding: 0;
  line-height: 1.2;
}

.custom-list2 {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.list-item {
  display: flex;
  align-items: flex-start;
}

.list-num {
  width: 3em;
  flex-shrink: 0;
  font-weight: bold;
  color: var(--color-main);
  line-height: 1.6;
}

.list-body {
  flex: 1;
  line-height: 1.6;
}

.note {
  font-size: 0.85em;
  color: var(--color-text-subtle);
}

.note-right {
  display: block;
  text-align: right;
  font-size: 0.85em;
  color: var(--color-text-subtle);
  margin-top: 0.2em;
}

/* 公開資料テーブル */
.document-table {
  margin-top: 2rem;
  overflow-x: auto;
}

.document-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.document-table th,
.document-table td {
  border-bottom: 1px solid #ccc;
  padding: 0.5em;
  text-align: center;
  white-space: nowrap;
}

.document-table a {
  color: var(--color-link);
  text-decoration: underline;
}

/* リンク群 */
.service-links-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 2em 0;
}

.service-links {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.service-link {
  display: flex;
  align-items: center;
}

.service-link .arrow {
  display: inline-block;
  width: 1.5em;
  text-align: right;
  color: var(--color-link);
  font-weight: bold;
}

.service-link a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 1rem;
  margin-left: 0.3em;
}

.service-link a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}

.privacy-box {
  background-color: var(--color-bg-soft); /* ← カラーテーマに応じて切替 */
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  border-radius: 6px;
  color: var(--color-text);
}

.privacy-box h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-main);
}

.privacy-box ol {
  padding-left: 1.2em;
}

.privacy-box ol[type="(1)"] {
  margin-top: 0.5em;
  padding-left: 1.5em;
}

.workplace-table-wrapper {
  margin-top: 2rem;
  overflow-x: auto;
  background-color: var(--color-bg-soft);
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.workplace-table {
  width: 100%;
  border-collapse: collapse; /* ← 全罫線が繋がる */
  table-layout: auto;
  font-size: 0.85rem;
  background-color: transparent;
}

.workplace-table th,
.workplace-table td {
  border: 1px solid var(--color-border); /* ← 罫線 */
  padding: 0.8em;
  text-align: left;
  vertical-align: top;
}

.workplace-table th {
  background-color: var(--color-main-bg, #e0e0e0);
  color: var(--color-text);
  font-weight: bold;
}

.workplace-table td strong {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3em;
}

/* 公開資料テーブル */
.document-table {
  margin-top: 2rem;
  overflow-x: auto;
}

.document-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.document-table th,
.document-table td {
  border-bottom: 1px solid #ccc;
  padding: 0.5em;
  text-align: center;
  white-space: nowrap;
}

.document-table a {
  color: var(--color-link);
  text-decoration: underline;
}

/* カラーテーマ切替対応 */
:root {
  --color-bg-soft: #f9f9f9;
  --color-border: #ccc;
  --color-text: #333;
  --color-main-bg: #e0e0e0;
}

[data-theme="dark"] {
  --color-bg-soft: #1a1a1a;
  --color-border: #777;
  --color-text: #eee;
  --color-main-bg: #333;
}

@media screen and (max-width: 768px) {
  .corp-block {
    flex-direction: column;
    text-align: center;
  }

  .corp-text {
    text-align: left;
    margin-bottom: 0;
  }

  .list-item {
    flex-direction: row;
  }

  .list-num {
    width: 3em;
    text-align: left;
  }

  .document-table {
    margin-top: 1.2rem;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    display: block;
    margin-bottom: 0.8em;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5em;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 0.3em 0;
    font-size: 0.9rem;
    border: none;
    border-bottom: 1px dashed #ccc;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 1;
    color: var(--color-text);
    min-width: 7em;
  }

  .responsive-table td a {
    flex: 1;
    text-align: right;
    color: var(--color-link);
    text-decoration: underline;
  }

  /* ↓ 法人略歴（Historyテーブル）専用 */
  .document-table-history {
    overflow-x: hidden;
  }

  .responsive-table-history {
    width: 100%;
  }

  .responsive-table-history thead {
    display: none;
  }

  .responsive-table-history tr {
    display: block;
    margin-bottom: 1.2em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--color-border);
  }

  .responsive-table-history td {
    display: block;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    padding: 0.4em 0;
    font-size: 0.9rem;
    border: none;
    border-bottom: none;
    white-space: normal;
    overflow-x: auto; /* 必要に応じて */
    flex-wrap: nowrap; /* 折返し防止 */
  }

  .responsive-table-history td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 0.2em;
  }

  .responsive-table-history td a {
    color: var(--color-link);
    text-decoration: underline;
    white-space: nowrap;
    word-break: break-word;
  }
  .document-table {
    margin-top: 1.2rem;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    display: block;
    margin-bottom: 0.8em;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5em;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 0.3em 0;
    font-size: 0.9rem;
    border: none;
    border-bottom: 1px dashed #ccc;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 1;
    color: var(--color-text);
    min-width: 7em;
  }

  .responsive-table td a {
    flex: 1;
    text-align: right;
    color: var(--color-link);
    text-decoration: underline;
  }

  /* ↓ 法人略歴（Historyテーブル）専用 */
  .document-table-history {
    overflow-x: hidden;
  }

  .responsive-table-history {
    width: 100%;
  }

  .responsive-table-history thead {
    display: none;
  }

  .responsive-table-history tr {
    display: block;
    margin-bottom: 1.2em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--color-border);
  }

  .responsive-table-history td {
    display: block;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    padding: 0.4em 0;
    font-size: 0.9rem;
    border: none;
    border-bottom: none;
    white-space: normal;
    overflow-x: auto; /* 必要に応じて */
    flex-wrap: nowrap; /* 折返し防止 */
  }

  .responsive-table-history td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 0.2em;
  }

  .responsive-table-history td a {
    color: var(--color-link);
    text-decoration: underline;
    white-space: nowrap;
    word-break: break-word;
  }

}
