@charset "UTF-8";

/* ==========================================================================
   企業情報ページ 共通・リセット設定
   ========================================================================== */
.cp-page-wrapper {
  width: 100%;
  background-color: #ffffff;
  box-sizing: border-box;
  margin-top: 0 !important;
  padding-top: 0.1px !important; /* マージンの折り畳み（隙間発生）を防止 */
  overflow: hidden;
}
.cp-page-wrapper *, 
.cp-page-wrapper *::before, 
.cp-page-wrapper *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   メインタイトルエリア（横幅100%）
   ========================================================================== */
.cp-main-header {
  background-color: #003366; /* 画像に合わせた濃紺 */
  width: 100%;
  padding: 80px 0 60px 0;
  text-align: center; /* 親要素を中央揃えに指定 */
}
.cp-main-title {
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  font-family: "Times New Roman", "Yu Mincho", "游明朝", "MS Mincho", serif;
  letter-spacing: 0.2em;
  margin: 0 0 55px 0;
  line-height: 1.2;
  text-align: center; /* タイトルテキスト自体を中央揃えに指定 */
  display: block;
}

/* ==========================================================================
   サブメニュー（幅1000px・中央揃え）
   ========================================================================== */
.cp-submenu-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.cp-submenu-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  margin: -25px 0 0 0; /* 青ヘッダーに少し重ねる */
  padding: 0;
}
.cp-submenu-item {
  flex: 1;
}
.cp-submenu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background-color: #ffffff;
  color: #003366;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.cp-submenu-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

/* ==========================================================================
   サブタイトルエリア（横幅100%）
   ========================================================================== */
.cp-sub-header {
  background-color: #ffffff; /* 画像に合わせた濃紺 */
  width: 100%;
  padding: 60px 0 35px 0;
  text-align: center; /* 親要素を中央揃えに指定 */
}
.cp-sub-title {
  font-size: 32px;
  font-weight: bold;
  color: #0b316a;
  margin: 0 0 10px 0;
  letter-spacing: 0.05em;
  font-family: "Arial Black", "Impact", "Noto Sans JP", "Hiragino Sans", "Segoe UI Black", "Meiryo UI", sans-serif;
}
.cp-sub-subtitle {
  font-size: 15px;
  color: #777777;
  margin: 0;
  font-weight: bold;
  color: #4a72b2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* 会社概要・歴史の矢印装飾（外部画像読み込み） */
.cp-has-arrow {
  padding-right: 60px;
}
.cp-has-arrow::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 8px;
  background-image: url("../images/company/arrow.webp"); /* ../ を削除 */
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
}

/* ==========================================================================
   会社情報リンクセクション（横幅100% / 背景色 #b7c6d5）
   ========================================================================== */
.cp-link-section {
  width: 100%;
  background-color: #b7c6d5;
  padding: 80px 0;
  margin-top: 50px; /* サブメニューとの間に適度な余白を設定 */
}
.cp-link-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* セクションタイトル（会社情報 / Company） */
.cp-section-header {
  text-align: center;
  margin-bottom: 50px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.cp-section-title {
  font-size: 32px;
  font-weight: bold;
  color: #0b316a;
  margin: 0 0 10px 0;
  letter-spacing: 0.05em;
  font-family: "Arial Black", "Impact", "Noto Sans JP", "Hiragino Sans", "Segoe UI Black", "Meiryo UI", sans-serif;
}
.cp-section-subtitle {
  font-size: 15px;
  color: #777777;
  margin: 0;
  font-weight: bold;
  color: #4a72b2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* カードレイアウト（2カラム） */
.cp-card-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.cp-card-item {
  flex: 1;
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cp-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* 背景画像エリア */
.cp-card-image-wrapper {
  width: 100%;
  aspect-ratio: 465 / 195; /* 【新規】ご指定の比率を厳密に固定 */
  position: relative;
  overflow: hidden;
}
.cp-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
/* 重ねるコンテンツ（タイトル・ボタン） */
.cp-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;}

/* 白いリボン状のタイトル背景 */
.cp-card-title {
  position: absolute;
  /* 上からの位置を％で指定。これにより画像の高さ（比率）が変わっても常にベストな位置に連動します */
  top: 52%; 
  left: 0;
  transform: translateY(-50%);
  background-color: #ffffff;
  color: #003366;
  font-size: 24px;
  font-weight: bold;
  padding: 12px 30px;
  width: fit-content;
  min-width: 220px;
  display: inline-block;
}
.cp-card-title::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 30px;
  height: 100%;
  background-color: #ffffff;
  clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.cp-card-btn {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background-color: #003366;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 3; /* タイトルリボンや画像より手前に表示 */
}
.cp-btn-icon {
  background-color: #ffffff;
  color: #003366;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
/* ==========================================================================
   レスポンシブ対応（タブレット・スマホ：768px以下）
   ========================================================================== */
@media (max-width: 768px) {
  .cp-main-header {
    padding: 70px 0 45px 0;
  }
  .cp-main-title {
    font-size: 26px;
  }
  .cp-submenu-list {
    flex-direction: column;
    gap: 12px;
    margin: -25px 10% 0 10%;
    padding: 0;
    width:80%;
    
  }
  
	.cp-sub-header {
	  padding: 40px 0 15px 0;
	  text-align: center; /* 親要素を中央揃えに指定 */
	}
	.cp-sub-title {
	  font-size: 20px;
	}
	.cp-sub-subtitle {
	  font-size: 12px;
	}

  .cp-has-arrow {
    padding-right: 0; /* スマホ時は中央揃えに戻す */
  }
  .cp-has-arrow::after {
    display: none;
  }
  /* 会社情報リンクセクション */
  .cp-link-section {
    padding: 50px 0;
    margin-top: 30px;
  }
  .cp-section-title {
    font-size: 20px;
  }
  .cp-section-subtitle {
    font-size: 12px;
  }

 /* カード一覧のスマホ調整 */
  .cp-card-grid {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    width: 100%;
  }
  .cp-card-item {
    flex: none;
    width: 80%;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  
  /* スマホ環境でもリボンの縦位置（52%）と比率を完璧に維持 */
  .cp-card-image-wrapper {
    aspect-ratio: 465 / 195;
  }
  .cp-card-title {
    font-size: 16px; 
    padding: 8px 20px;
    min-width: 150px;
    top: 52%; /* スマホでも中央よりやや下の位置をがっちりキープ */
  }
  .cp-card-title::after {
    right: -20px;
    width: 20px;
  }
  .cp-card-btn {
    right: 15px;
    bottom: 15px;
    padding: 6px 14px;
    font-size: 12px;
  }
}