@charset "UTF-8";

/* ==========================================================================
   ごあいさつセクション（カンプ完全一致・縦積みストレート構造・CSS完全版）
   ========================================================================== */

/* --- セクション全体背景（要件：上から300pxの位置からグレーにする） --- */
.cp-greeting-section {
  width: 100%;
  position: relative;
  background: linear-gradient(to bottom, #ffffff 300px, #f4f6f9 300px);
  padding: 60px 0 100px 0;
  box-sizing: border-box;
}

/* --- 横幅1000px・センター揃えのコンテナ --- */
.cp-greeting-container {
  max-width: 1000px; /* 要件：横幅1000px */
  width: 100%;
  margin: 0 auto;
  padding: 0; /* カンプの美しい直線ラインを出すため余白は0 */
  box-sizing: border-box;
}

/* --- 1. 最上部：セクションヘッダー（中央揃え） --- */
.cp-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.cp-section-title {
  font-size: 28px;
  font-weight: bold;
  color: #333333;
  margin: 0 0 5px 0;
  letter-spacing: 0.1em;
}

.cp-section-subtitle {
  font-size: 14px;
  color: #888888;
  margin: 0;
  font-family: 'Arial', sans-serif;
}

/* --- 2. 中央：メインビジュアルエリア（写真とキャッチのレイヤー重ね） --- */
.cp-main-visual-area {
  width: 100%;
  position: relative; /* キャッチコピーを絶対配置するための基準 */
  margin-bottom: 0; /* 下の白いボックスと隙間なく直結させる */
  box-sizing: border-box;
}

/* 社長写真（エリア幅1000pxに対して確実に横幅100%で表示） */
.cp-president-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* 画像の右上に重なるキャッチコピー（カンプの位置を正確にピン留め） */
.cp-greeting-catch {
  position: absolute;
  top: 95px;  /* カンプ画像の上からの位置を再現 */
  right: 50px; /* カンプ画像の右からの位置を再現 */
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* 文字にジャストフィットするインラインの背景帯 */
.cp-catch-line {
  display: inline-block;
  background-color: #0b2d52; /* カンプの濃紺 */
  color: #ffffff;
  padding: 6px 20px 6px 16px;
  margin-bottom: 8px;
}

.cp-catch-line:last-child {
  margin-bottom: 0;
}

/* --- 3. 下部：白い背景のコンテンツエリア --- */
.cp-greeting-content-box {
  width: 70%;
  margin:-200px 3% 0 25%;
  background-color: #ffffff;
  padding: 70px 80px 80px 80px; /* カンプのゆったりとした内側余白 */
  box-sizing: border-box;
  position: relative; /* 左下のロゴマークを絶対配置するための基準 */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

/* 文章本文 */
.cp-greeting-text {
  font-size: 15px;
  color: #333333;
  line-height: 2.1;
  text-align: justify;
}

.cp-greeting-text p {
  margin: 0 0 1.8em 0;
}

/* 最後の挨拶の前のマージン */
.cp-text-margin-top {
  margin-top: 3.5em !important;
}

/* 右下の署名エリア */
.cp-greeting-signature {
  margin-top: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 5;
}

.cp-signature-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.7;
  text-align: right;
  margin-right: 20px;
  color: #333333;
}

/* 手書きサイン画像 */
.cp-signature-name img {
  height: 49px;
  width: auto;
  display: block;
}

/* 左下の薄い背景ロゴマーク（../images/company/bg_logo.webp） */
.cp-family-crest {
  position: absolute;
  left: 100px;
  bottom: 60px;
  width: 382px;
  height: 380px;
  background: url('../images/company/bg_logo.webp') no-repeat center center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   レスポンシブ対応（1000px以下の端末では100%幅にフィット、スマホ時は最適化）
   ========================================================================== */
@media screen and (max-width: 1040px) {
  .cp-greeting-container {
    padding: 0 20px; /* 画面端のプレースホルダー余白 */
  }
}

@media screen and (max-width: 768px) {
  .cp-greeting-section {
    background: #f4f6f9; /* スマホは全面グレー */
    padding: 40px 0 60px 0;
  }

  /* メインビジュアル内のキャッチコピー位置をスマホ用に調整 */
  .cp-greeting-catch {
    position: relative; /* 絶対配置を解除して画像の下に並べる */
    top: -200px;
    left:50px;
    right: 0px;
    margin-top: 20px;
    font-size: 16px;
    text-align: right;
  }

  .cp-catch-line {
    display: block;
    width: fit-content;
    margin: 0 auto 8px auto;
    padding: 6px 14px;
  }

  /* 白いボックスの余白をスマホ用に縮小 */
  .cp-greeting-content-box {
  width:90%;
  margin:-150px 4% 0 5%;
    padding: 40px 20px;
  }

  .cp-greeting-text {
    font-size: 14.5px;
    line-height: 1.9;
  }

  /* ロゴマークをスマホでは中央背後に薄く配置 */
  .cp-family-crest {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: 200px;
    height: 200px;
    opacity: 0.1;
  }

  /* 署名をスマホ用に調整 */
  .cp-greeting-signature {
    margin-top: 40px;
    flex-direction: column;
    align-items: flex-end;
  }

  .cp-signature-title {
    margin-right: 0;
    margin-bottom: 10px;
  }
	/* 手書きサイン画像 */
	.cp-signature-name img {
	  height: 30px;
	  width: auto;
	  display: block;
	}

}

@charset "UTF-8";

/* ==========================================================================
   社是セクション（背景白 / グレー枠：上下100px 左右150px / 白枠：850px幅・CSS完全版）
   ========================================================================== */

/* --- 親セクション（要件：背景は白） --- */
.cp-creed-section {
  width: 100%;
  position: relative;
  background-color: #ffffff; /* 要件：背景は白 */
  padding: 60px 0 100px 0;
  box-sizing: border-box;
}

/* --- コンテナエリア（白枠850px + 左右グレー150px×2 = 1150pxに最適化） --- */
.cp-creed-container {
  max-width: 1150px; 
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

/* --- セクションタイトル --- */
.cp-creed-title {
  text-align: center;
  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-creed-subtitle {
  font-size: 15px;
  text-align: center;
  color: #777777;
  margin: 0;
  font-weight: bold;
  color: #4a72b2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 40px 0;
}

/* --- グレーの枠（要件：上下100px、左右150pxの余白を持つ背景エリア） --- */
.cp-creed-gray-frame {
  width: 100%;
  margin-top:40px;
  background-color: #f2f5f8; /* カンプ準拠のグレーカラー */
  /* パディングで「上下100px・左右150px」のグレー枠幅を厳密に生成 */
  padding: 100px 150px; 
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- 白枠ボックス（要件：850pxの幅の白枠） --- */
.cp-creed-white-box {
  width: 850px; /* 要件：850pxの幅を固定 */
  max-width: 1000px;
  background-color: #ffffff; /* 白枠 */
  padding: 70px 40px; /* 画像の上下の余白（カンプ比率） */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- 画像ラッパー（365:273 のオリジナル比率を保持） --- */
.cp-creed-graphic-wrap {
  width: 100%;
  max-width: 365px; /* 元の画像幅を上限にしてボケを防止 */
  box-sizing: border-box;
}

/* 社是画像本体（100%可変でレスポンシブ対応） */
.cp-creed-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   レスポンシブ対応（画面幅が狭い端末やスマートフォン環境）
   ========================================================================== */
@media screen and (max-width: 1199px) {
  /* 画面幅が1150px以下になった場合、左右のグレー枠（150px）を比率縮小させて画面外へのはみ出しを防ぐ */
  .cp-creed-gray-frame {
    padding: 80px 10%; 
  }
  .cp-creed-white-box {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .cp-creed-section {
    padding: 40px 0 60px 0;
  }

  .cp-creed-title {
    font-size: 22px;
    margin-bottom: 25px;
  }

  /* スマホ表示ではグレーの枠幅と白ボックスの余白を最適化 */
  .cp-creed-gray-frame {
    padding: 40px 40px;
  }

  .cp-creed-white-box {
    padding: 40px 40px;
  }

  /* スマホ画面に合わせて画像を綺麗に縮小 */
  .cp-creed-graphic-wrap {
    width: 85%; 
    min-width: 200px;
  }
}
@charset "UTF-8";

/* ==========================================================================
   会社案内ダウンロードセクション（画像パス修正・CSS完全版）
   ========================================================================== */

/* --- 親セクション（背景は白） --- */
.cp-download-section {
  width: 100%;
  position: relative;
  background-color: #ffffff;
  padding: 60px 0 120px 0;
  box-sizing: border-box;
}

/* --- 横幅1000px・センター揃えのコンテナ --- */
.cp-download-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- セクションタイトル（中央揃え） --- */
.cp-download-header {
  text-align: center;
  margin-bottom: 60px;
}

.cp-download-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-download-subtitle {
  font-size: 15px;
  color: #777777;
  margin: 0;
  font-weight: bold;
  color: #4a72b2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- レイアウトボディ（左右2カラムをFlexboxで定義） --- */
.cp-download-body {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center; /* 縦方向を中央揃えに配置してカンプを再現 */
  box-sizing: border-box;
}

/* --- 左側：パンフレットビジュアルエリア --- */
.cp-download-visual {
  width: 54%; /* カンプの比率に基づき画像エリアの幅を設定 */
  aspect-ratio: 562 / 413; /* 指定：縦横比562:413をブラウザ上で完全固定 */
  position: relative;
  box-sizing: border-box;
  background-color: #f7f9fc; /* 万が一画像ロードが遅れても枠線を維持するバッファ */
}

.cp-pamphlet-img {
  width: 100% !important;
  height: 100% !important; /* 親の比率に合わせて100%フィット */
  object-fit: cover; /* 画像が歪まないようにトリミング・フィット */
  display: block;
}
/* --- 右側：ダウンロードボタン画像エリア --- */
.cp-download-action {
  width: 40%; /* カンプのボタン配置スペースの幅 */
  box-sizing: border-box;
}

/* リンクブロック（ホバー時に少し薄くするエフェクトで操作感を演出） */
.cp-catalog-link {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.cp-catalog-link:hover {
  opacity: 0.85;
}

/* ダウンロードボタン画像（images/company/download.webp） */
.cp-catalog-img {
  width: 356px !important;
  max-width: 100% !important;
  height: 68px !important;
  display: block;
}

/* ==========================================================================
   レスポンシブ対応（タブレット・スマホ表示時は縦並びへ安全にスイッチ）
   ========================================================================== */
@media screen and (max-width: 768px) {
  .cp-download-section {
    padding: 50px 0 70px 0;
  }

  .cp-download-header {
    margin-bottom: 40px;
  }

  .cp-download-title {
    font-size: 24px;
  }

  /* スマホ環境：縦並び構造へ変更 */
  .cp-download-body {
    flex-direction: column;
    align-items: center;
  }

  /* パンフレット画像を中央上部に配置 */
  .cp-download-visual {
    width: 85%;
    min-width: 260px;
    margin-bottom: 35px;
  }

  /* ボタン画像をスマホに合わせた程よいサイズ感で中央配置 */
  .cp-download-action {
    width: 75%;
    min-width: 240px;
  }
}

@media screen and (max-width: 768px) {
  .cp-greeting-catch {
    left: 0;
    right: auto;
    max-width: 100%;
  }

  .cp-catch-line {
    box-sizing: border-box;
    max-width: 100%;
  }
}