.sign {
  font-size: 20px;
  text-align: right;
  display: block;
}

.sign span {
  font-size: 16px;
  margin-right: 10px;
}

/* ----------- */

.company-container {
	width: 1400px;
	margin: 0 auto;
}

.company-container--narrow {
	max-width: 960px;
}

.company-section {
	padding: 96px 0;
}

.company-info{
	background: #fff;
}

.company-access {
	background-color: #f4f7f9 !important;
}

.company-overview {
	background: #003E92;
}

.company-heading {
	margin-bottom: 56px;
	text-align: center;
}


.company-message {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 80px;
	margin-bottom: 80px;
}

.company-message:last-child {
	margin-bottom: 0;
}

.company-message--reverse .company-message__visual {
	order: 1;
}

.company-message--reverse .company-message__copy {
	order: 2;
}

.company-message__copy h3 {
	margin: 0 0 24px;
  padding-left: 15px;
	font-size: 26px;
	font-weight: 600;
  line-height: 1.5;
  border-left: solid 10px #183e8d;
}

.company-message__copy p {
	margin: 0;
	line-height: 2;
}

.company-message__visual {
	height: 460px;
	overflow: hidden;
}

.company-message__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
  object-position: center;
}

.company-table-wrap {
	overflow-x: auto;
	padding: 32px;
	background: #fff;
}

.company-table {
	width: 100%;
	border-collapse: collapse;
	color: #0b192c;
	font-size: 16px;
	line-height: 1.7;
}

.company-table th,
.company-table td {
	padding: 16px 20px;
	border-bottom: 1px solid #dbe2e8;
	text-align: left;
	vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
	border-bottom: 0;
}

.company-table th {
	width: 180px;
	background: #f3f6f8;
	font-weight: 700;
}

/*
.access-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: stretch;
}
*/

.access-copy{
  padding: 10px;
  text-align: center;
  display: block;
  background: #fff;
}
@media screen and (min-width: 768px) {
.access-copy br {
  display: none;
}
}

.access-copy h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
}

.access-copy p {
	margin: 0 0 28px;
	line-height: 1.9;
  font-size: 18px;
  font-weight: 600;
}

.access-copy p:last-child {
	margin-bottom: 0;
}

.access-map {
	min-height: 320px;
}

.access-map iframe {
	display: block;
	width: 100%;
	height: 600px;
	border: 0;
}

/* 設備紹介セクション（白背景） */
.company-portfolio {
  background: #ffffff;
}
/* 設備紹介（白い背景）の中のカード・グリッド設定 */
.company-portfolio .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.company-portfolio .portfolio-card {
  background: #ffffff !important;
  border: 1px solid #94a3b8 !important;
  border-radius: 6px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: auto; /* 高さを自動調整にして文字があふれないようにする */
}

/* カード内の画像 */
.company-portfolio .portfolio-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 16px; /* 画像とテキストの間に余白を作る */
}

/* キャプション（テキスト部分）をカード内に確実に収める */
.company-portfolio .portfolio-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.company-portfolio .portfolio-caption p {
  margin: 0;
  color: #0b192c;
  font-size: 15px;
  line-height: 1.6;
}

/* タイトル部分（1つ目の<p>タグ） */
.company-portfolio .portfolio-caption p:first-of-type {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px; /* タイトルと本文の間の余白 */
}

/* カードグリッドの配置設定（必要に応じて調整） */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}


/* ==================================================
   主要取引業界（紺背景・テキスト重視）＊今は使っていないが必要であれば
   ================================================== */
.company-section.company-industries {
  background: #003E92 !important; /* 紺背景 */
}

.industry-text-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.company-industries .industry-text-wrap .industry-item {
  margin: 0;
  color: #ffffff !important; /* 絶対に白 */
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* 区切り記号（/）のスタイル */
.company-industries .industry-text-wrap .industry-sep {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 22px;
  font-weight: 300;
}



/* ============================================
   PC（小）：768px〜991px
============================================ */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .company-container {
    width: 740px;
  }

  .company-message,
  .access-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .company-message__copy {
    order: 1 !important;
  }

  .company-message__visual {
    order: 2 !important;
    height: 400px;
  }
}


/* ============================================
   タブレット：576px〜767px
============================================ */
@media screen and (min-width: 576px) and (max-width: 767px) {
  .company-container {
    width: 540px;
  }

  .company-message,
  .access-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-message__copy {
    order: 2 !important;
  }

  .company-message__visual {
    order: 1 !important;
    height: 360px;
  }

  /* 主要取引業界 */
  .company-industries .industry-text-wrap .industry-item,
  .industry-item {
    font-size: 20px;
  }

  .company-industries .industry-text-wrap .industry-sep,
  .industry-sep {
    display: none;
  }

  .industry-text-wrap {
    flex-direction: column;
    gap: 16px;
  }


  /* 設備紹介：1列表示 */
  .company-portfolio .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .access-layout {
    display: flex;
    flex-direction: column;
    align-items: center; /* 左右の中央に寄せる */
    text-align: center;  /* テキストも中央揃えにする */
    gap: 32px;
  }

  .access-copy {
    width: 100%;
    margin-left: 0;
  }

  .access-map {
    width: 100%;
    display: flex;
    justify-content: center; /* マップを中央に配置 */
  }

  .access-map iframe {
    width: 100% !important;
    max-width: 560px;       /* タブレットに合わせて少し大きめの最大幅にする */
    height: 300px;          /* 高さを少し持たせる */
    min-height: 300px;
  }
}


/* ============================================
   スマホ：575px以下
============================================ */
@media screen and (max-width: 575px) {


  .company-container {
    width: calc(100% - 40px);
  }

  .company-section {
    padding: 64px 0;
  }

  .company-heading {
    margin-bottom: 40px;
  }

  .company-heading__title {
    font-size: 26px;
  }

  /* 代表メッセージ */
  .company-message {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 56px;
  }

  .company-message__copy {
    order: 2 !important;
  }

  .company-message__copy h3 {
    font-size: 24px;
  }

  .company-message__visual {
    order: 1 !important;
    height: 280px;
  }

  /* 会社概要テーブル */
  .company-table-wrap {
    padding: 16px;
  }

  .company-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .company-table th {
    width: 30%;
  }

  .company-table td {
    width: 70%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .company-table th,
  .company-table td {
    padding: 12px 10px;
  }

 /* アクセスセクションのレスポンシブ化 ＆ 中央寄せ */
  .access-layout {
    display: flex;
    flex-direction: column;
    align-items: center; /* 左右の中央に寄せる */
    text-align: center;  /* テキストも中央揃えにする */
    gap: 32px;
  }

  .access-copy {
    width: 100%;
    margin-left: 0;
  }

  .access-map {
    width: 100%;
    display: flex;
    justify-content: center; /* マップを中央に配置 */
  }

  .access-map iframe {
    width: 100% !important;
    max-width: 100%;       /* スマホ画面の幅に綺麗に収める */
    height: 260px;
    min-height: 260px;
  }

  /* 主要取引業界 */
  .company-industries .industry-text-wrap .industry-item,
  .industry-item {
    font-size: 20px;
  }

  .company-industries .industry-text-wrap .industry-sep,
  .industry-sep {
    display: none;
  }

  .industry-text-wrap {
    flex-direction: column;
    gap: 16px;
  }

  .industry-list {
    flex-direction: column;
    gap: 12px;
  }

  .industry-card {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
  }

  /* 設備紹介：1列表示 */
  .portfolio-grid,
  .company-portfolio .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}


/* =========================================
   主要設備一覧：中央配置のリスト形式
========================================= */

.company-equipment-list {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  color: #0b192c;
  background: #fff;
}

/* 各行 */
.company-equipment-list .equipment-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr 0.6fr; /* （機械名・型式・メーカー・台数） */
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #dbe2e8;
  font-size: 16px;
  line-height: 1.7;
}

/* 最初の行：項目名 */
.company-equipment-list .equipment-row--header {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid #003e92;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

/* 機械名 */
.company-equipment-list .equipment-name {
  font-weight: 600;
}

/* 型式 */
.company-equipment-list .equipment-model {
  overflow-wrap: anywhere;
}

/* メーカー名 */
.company-equipment-list .equipment-maker {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 3px;
  background: #f3f6f8;
  color: #334155;
  font-size: 13px;
  white-space: nowrap;
}
/* 台数 
.company-equipment-list .equipment-num {
  font-weight: 600;
}
*/
/* スマートフォン */
@media screen and (max-width: 575px) {
  .company-equipment-list{
    margin: 15px;
  }
  .company-equipment-list .equipment-row {
   grid-template-columns: 1fr 1fr 0.7fr 0.5fr; /* ★スマホ用の4カラムに変更 */
    gap: 8px;
    padding: 16px 4px;
    font-size: 12px;
  }

  .company-equipment-list .equipment-row--header {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 11px;
  }

  .company-equipment-list .equipment-maker {
    padding: 3px 5px;
    font-size: 10px;
  }
}

/* ==================================================
   設備紹介のリード文（各デバイス別のスタイル調整）
   ================================================== */

/* 【PC（大）：992px以上】基本の大きさ */
.company-lead-text {
  margin-top: 20px;
  font-size: 18px;
  color: #000000; 
  line-height: 1.7;
}

/* 【PC（小）：768px 〜 991px】 */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .company-lead-text {
    font-size: 17px;
  }
}

/* 【タブレット：576px 〜 767px】 */
@media screen and (min-width: 576px) and (max-width: 767px) {
  .company-lead-text {
    font-size: 16px;
    padding: 0 20px; /* 画面端が詰まらないように余白を入れる場合 */
  }
}

/* 【スマホ：575px以下】 */
@media screen and (max-width: 575px) {
  .company-lead-text {
    font-size: 15px;
    padding: 0 16px;
  }
}
