/* =============================================
   outline.css  |  会社概要ページ専用スタイル
   共通スタイルは oc.css を参照
   ============================================= */

/* ── full-width と100vwのスクロールバー差を吸収 ── */
body.page_outline {
  overflow-x: hidden;
}

/* ── main#contents リセット ── */
body.page_outline main#contents {
  max-width     : none;
  width         : 100%;
  padding-left  : 0;
  padding-right : 0;
  padding-bottom: 0;
}

/* ── パンくずリスト：1440px 基準左端に揃える ── */
body.page_outline #locator_template_c2 .inner {
  max-width   : none !important;
  margin-left : 0    !important;
  padding-left: max(clamp(24px, 5vw, 80px), calc((100vw - 1440px) / 2 + clamp(24px, 5vw, 80px))) !important;
}

/* ── 会社概要テーブル ────────────────────────── */
.oc-overview {
  padding-bottom: 48px;
}

.oc-overview-scroll {
  overflow-x                : auto;
  -webkit-overflow-scrolling: touch;
  border                    : 1px solid var(--oc-border);
}

.oc-overview-table {
  width          : 100%;
  border-collapse: collapse;
  font-family    : 'Noto Sans JP', sans-serif;
  font-size      : clamp(13px, 1.3vw, 15px);
  line-height    : 1.85;
}

.oc-overview-table tbody tr {
  border-bottom: 1px solid var(--oc-border);
  transition   : background-color 0.2s ease;
}

.oc-overview-table tbody tr:last-child {
  border-bottom: none;
}

.oc-overview-table tbody tr:hover {
  background-color: #f9fafb;
}

.oc-overview-table th,
.oc-overview-table td {
  padding      : 20px 24px;
  text-align   : left;
  vertical-align: top;
}

.oc-overview-table th {
  width       : 220px;
  min-width   : 180px;
  font-weight : 700;
  color       : var(--oc-navy);
  background  : #f9fafb;
  border-right: 3px solid var(--oc-red);
  white-space : nowrap;
}

.oc-overview-table a {
  color          : var(--oc-red);
  text-decoration: none;
  transition     : opacity 0.2s;
}

.oc-overview-table a:hover,
.oc-overview-table a:focus-visible {
  text-decoration: underline;
  opacity        : 0.75;
}

/* ── 連絡先リスト ── */
.oc-contact-list {
  list-style    : none;
  margin        : 0;
  padding       : 0;
  display       : flex;
  flex-direction: column;
  gap           : 8px;
}

.oc-contact-list li {
  display    : flex;
  align-items: baseline;
  gap        : 8px;
  flex-wrap  : wrap;
}

.oc-contact-type {
  font-weight: 700;
  color      : var(--oc-navy);
  font-size  : 13px;
  min-width  : 54px;
  flex-shrink: 0;
}

/* ── 事業内容 ── */
.oc-biz-group + .oc-biz-group {
  margin-top : 18px;
  padding-top: 18px;
  border-top : 1px dashed var(--oc-border);
}

.oc-biz-name {
  font-weight: 700;
  color      : var(--oc-navy);
  margin     : 0 0 6px;
}

.oc-biz-list {
  list-style: none;
  margin    : 0;
  padding   : 0 0 0 1em;
}

.oc-biz-list li {
  position    : relative;
  padding-left: 14px;
}

.oc-biz-list li::before {
  content   : '';
  position  : absolute;
  left      : 0;
  top       : 0.7em;
  width     : 6px;
  height    : 2px;
  background: var(--oc-red);
}

/* ── アクションカード（パートナー/求人/Wantedly） ── */
.oc-action-wrap {
  margin-bottom: 0;
}

.oc-action-wrap + .oc-action-wrap {
  margin-top: -1px;
}

.oc-action-wrap:last-of-type {
  padding-bottom: 60px;
}

a.oc-action-card {
  display              : grid;
  grid-template-columns: clamp(110px, 20%, 200px) 1fr auto;
  align-items          : stretch;
  text-decoration      : none !important;
  color                : var(--oc-text) !important;
  border               : 1px solid var(--oc-border);
  background           : #fff;
  overflow             : hidden;
  transition           : box-shadow 0.25s var(--oc-ease),
                         border-color 0.25s var(--oc-ease);
  max-width            : 960px;
  margin               : 0 auto;
}

a.oc-action-card:hover,
a.oc-action-card:focus-visible {
  background-color: #eef2f7;
  border-color    : #c7d3e0;
  outline-offset  : 2px;
}

.oc-action-img {
  position    : relative;
  overflow    : hidden;
  background  : var(--oc-light);
  border-right: 1px solid var(--oc-border);
}

.oc-action-img img {
  width     : 100%;
  height    : 100%;
  object-fit: cover;
  display   : block;
}

.oc-img-ph {
  width          : 100%;
  height         : 100%;
  min-height     : 110px;
  display        : flex;
  flex-direction : column;
  align-items    : center;
  justify-content: center;
  gap            : 8px;
  background     : linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
  padding        : 16px 8px;
}

.oc-img-ph svg {
  width     : 28px;
  height    : 28px;
  color     : #aab0bb;
  flex-shrink: 0;
}

.oc-img-ph-text {
  font-size  : 10px;
  color      : #9aa4ae;
  text-align : center;
  line-height: 1.6;
}

.oc-action-body {
  padding        : 20px 24px;
  display        : flex;
  flex-direction : column;
  justify-content: center;
  gap            : 4px;
}

.oc-action-label {
  font-family   : 'IBM Plex Sans', sans-serif;
  font-size     : 11px;
  font-weight   : 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color         : var(--oc-red);
}

.oc-action-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size  : clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  color      : var(--oc-navy);
  margin     : 0;
}

.oc-action-desc {
  font-size: 12px;
  color    : #666;
  margin   : 2px 0 0;
}

.oc-action-arrow {
  display    : flex;
  align-items: center;
  padding    : 0 18px;
}

.oc-action-arrow-icon {
  width          : 36px;
  height         : 36px;
  border         : 2px solid var(--oc-navy);
  border-radius  : 50%;
  display        : flex;
  align-items    : center;
  justify-content: center;
  flex-shrink    : 0;
  color          : var(--oc-navy);
  transition     : background-color 0.25s var(--oc-ease),
                   color 0.25s var(--oc-ease);
}

.oc-action-arrow-icon svg {
  width : 13px;
  height: 13px;
}

a.oc-action-card:hover .oc-action-arrow-icon,
a.oc-action-card:focus-visible .oc-action-arrow-icon {
  background-color: var(--oc-navy);
  color           : #fff;
}

a.oc-action-card.oc-logo-card .oc-action-img {
  background     : #21bbef;
  border-right   : 1px solid #1aafd8;
  display        : flex;
  align-items    : center;
  justify-content: center;
  padding        : 16px;
}

a.oc-action-card.oc-logo-card .oc-action-img img {
  object-fit: contain;
  height    : auto;
  max-height: 52px;
  width     : auto;
}

/* ── レスポンシブ: タブレット ─────────────────── */
@media screen and (max-width: 679px) {
  .oc-overview-table th {
    width    : 130px;
    min-width: 130px;
    padding  : 14px 12px;
  }

  .oc-overview-table td {
    padding: 14px 12px;
  }

  a.oc-action-card {
    grid-template-columns: 100px 1fr auto;
  }

  .oc-action-body {
    padding: 14px 16px;
  }

  .oc-action-arrow {
    padding: 0 12px;
  }
}

/* ── レスポンシブ: スマートフォン ──────────────── */
@media screen and (max-width: 479px) {
  .oc-overview-table,
  .oc-overview-table tbody {
    display: block;
  }

  .oc-overview-table tr {
    display      : block;
    padding      : 10px 0;
    border-bottom: 1px solid var(--oc-border);
  }

  .oc-overview-table tbody tr:last-child {
    border-bottom: none;
  }

  .oc-overview-table th,
  .oc-overview-table td {
    display    : block;
    width      : 100%;
    padding    : 4px 12px;
    white-space: normal;
    border-right: none;
    background : transparent;
  }

  .oc-overview-table th {
    border-left   : 3px solid var(--oc-red);
    color         : var(--oc-red);
    font-size     : 12px;
    padding-bottom: 2px;
  }

  a.oc-action-card {
    grid-template-columns: 1fr auto;
    grid-template-rows   : auto auto;
  }

  .oc-action-img {
    grid-column : 1 / -1;
    min-height  : 130px;
    width       : 100%;
    border-right: none;
    border-bottom: 1px solid var(--oc-border);
  }

  .oc-action-body {
    grid-column: 1;
    padding    : 14px 16px;
  }

  .oc-action-arrow {
    grid-column: 2;
  }

  a.oc-action-card.oc-logo-card .oc-action-img {
    min-height: 80px;
  }
}
