

/* メインセクション */
.hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  box-sizing: border-box;

  /* 背景写真の設定（※ bg-factory.jpg 部分をご希望の画像パスに変更してください） */
  background-image: url("/common/img/business/fc_main.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000; /* 画像が読み込まれるまでのフォールバック用黒背景 */

  color: #ffffff;
}

.hero-section.tt {
  background-image: url("/common/img/business/tt_main.png");
}

.hero-section.j {
  background-image: url("/common/img/business/j_main.png");
}

.hero-section.w {
  background-image: url("/common/img/business/w_main.png");
}

/* 背景写真の上に薄い黒マスクをかけて文字を見やすくするオーバーレイ */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* 数字を大きくすると写真が暗くなり文字がくっきりします */
  z-index: 1;
}

/* コンテナ */
.hero-container {
  position: relative;
  z-index: 1; /* オーバーレイの上に表示 */
  max-width: 1000px;
  margin: 0 auto;
}

/* 上部赤英字タイトル "FACTORY CLOUD" */
.hero-sub-title {
  display: block;
  color: #a6121f; /* 赤色 */
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* メイン日本語タイトル "ファクトリークラウド" */
.hero-main-title {
  font-size: 45px;
  font-weight: bold;
  letter-spacing: -0.05em;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

/* 説明文 */
.hero-description {
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin: 0;
  color: #ffffff;
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 30px;
  }

  .hero-sub-title {
    font-size: 13px;
  }

  .hero-main-title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.7;
  }

  /* スマホ表示では自動改行に任せるため改行タグを無効化 */
  .hero-description br {
    display: none;
  }
}



/* problemセクション */

/* セクション全体 */
.problem-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.problem-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* 上部赤タグ "PROBLEM" */
.problem-tag-wrapper {
  margin-bottom: 16px;
}

.problem-tag {
  display: inline-block;
  background-color: #c81326; /* 赤背景 */
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 4px 12px;
}

/* メイン見出し */
.problem-main-title {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: -0.02em;
  margin: 0 0 50px 0;
}

/* 3列リスト */
.problem-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #ffffff; /* 白背景カードエリア */
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

/* 各カラム */
.problem-item {
  flex: 1;
  padding: 40px 30px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
}

/* カラム間の縦境界線（最後の要素以外） */
.problem-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: #ddd;
}

/* ビックリマーク画像エリア */
.problem-icon {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-icon img {
  max-height: 100%;
  width: auto;
}

/* 各アイテムの小見出し */
.problem-item-title {
  font-size: 20px;
  font-weight: bold;
  color: #c81326; /* 赤文字 */
  line-height: 1.4;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  position: relative;
}

/* 見出し下の薄い水平線 */
.problem-item-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background-color: #ddd;
}

/* 説明文 */
.problem-item-text {
  font-size: 16px;
  line-height: 1.7;
  text-align: left; /* 文章部分は左揃えで見やすく */
  margin: 0;
}

/* スマホ対応 (768px以下は縦並び) */
@media (max-width: 768px) {
  .problem-section {
    padding: 50px 30px;
  }

  .problem-main-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .problem-list {
    flex-direction: column;
    border: 1px solid #ddd;
  }

  .problem-item {
    padding: 20px 20px;
  }

  /* スマホ時は縦の区切り線を横線に変更 */
  .problem-item:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
  }
}


/* セクション全体 */
.service-section {
  padding: 80px 20px;
  background-color: #f4f4f4;
}

.service-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* 上部英字タイトル "SERVICE" */
.service-sub-title {
  display: block;
  color: #c81326; /* 赤色 */
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* メインタイトル */
.service-main-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 24px 0;
}

/* 説明文 */
.service-description {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 40px 0;
}

/* 図解・画像エリア */
.service-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  /* 画像未挿入時の黒枠（元の指定）を維持したい場合 */
  /* background-color: #000000; */
  text-align: center;
}

/* pictureタグ内のimgに対するスタイル */
.service-image-wrapper picture img {
  width: 100%;
  max-width: 100%; /* 横幅いっぱい、かつ元画像より大きくしない */
  height: auto;
  display: block;
  margin: 0 auto; /* 中央寄せ */
}

/* 下部赤文字キャッチコピー */
.service-catch {
  color: #c81326;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.03em;
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
  .service-section {
    padding: 50px 30px;
  }

  .service-main-title {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .service-description {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .service-catch {
    font-size: 14px;
  }

  /* pictureタグ内のimgに対するスタイル */
.service-image-wrapper picture img {
  width: 90%;
  max-width: 90%; /* 横幅いっぱい、かつ元画像より大きくしない */
  }
}


/* セクション全体（背景画像の設定） */
.network-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  box-sizing: border-box;
  
  /* 周囲の背景写真（敷き詰め画像）を指定 */
  background-image: url("/common/img/business/fc_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #333333; /* 画像読み込み前のフォールバック */
}

/* 中央配置用コンテナ */
.network-container {
  max-width: 680px;
  margin: 0 auto;
}

/* 中央の白いカード */
.network-card {
  background-color: #ffffff;
  padding: 50px 40px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* うっすら影をつけて背景と切り離す */
  
  /* カード上部の赤いアクセントライン */
  border-top: 4px solid #c81326;

  /* ▼ 角丸の指定（丸みの強さは数値で調整できます） */
  border-radius: 4px; /* 8px 〜 12px あたりがおすすめです */
  overflow: hidden;   /* 赤ラインや子要素が角丸からはみ出るのを防ぐ */
}

/* タイトル */
.network-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  letter-spacing: 0.03em;
}

/* 説明文 */
.network-description {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 auto 35px;
  max-width: 500px;
  text-align: left; /* 本文は左揃えで読みやすく */
}

/* 黒部分の画像エリア */
.network-image-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.network-image-wrapper picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
  .network-section {
    padding: 40px 30px;
  }

  .network-card {
    padding: 35px 20px;
  }

  .network-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .network-description {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
  }
}



/* セクション全体（赤背景） */
.feature-section {
  background-color: #c81326; /* ブランドカラーの赤 */
  color: #ffffff;
  padding: 80px 20px;
  box-sizing: border-box;
}

/* コンテナ（左右2カラムレイアウト） */
.feature-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

/* 左側：テキストブロック */
.feature-content {
  flex: 1;
}

/* セクションヘッダー */
.feature-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.feature-sec-sub {
  display: block;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  opacity: 0.9;
}

.feature-sec-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.03em;
}

/* 特長リスト */
.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

/* 最後の要素だけ下の線と余白を消す */
.feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.feature-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.85;
}

.feature-num {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 8px;
}

.feature-item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.feature-item-text {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  opacity: 0.95;
}

/* 右側：画像ブロック */
.feature-image-area {
  width: 420px;
  flex-shrink: 0;
}

/* 白枠フレーム */
.feature-image-frame {
  background-color: #ffffff;
  padding: 26px; /* 白枠の厚み */
  box-sizing: border-box;
}

.feature-image-frame picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
  .feature-section {
    padding: 50px 30px;
  }

  /* 縦並びに変更 */
  .feature-container {
    flex-direction: column;
    gap: 40px;
  }

  .feature-image-area {
    width: 100%;
  }
 
  .feature-image-area picture img {
    width: 90%;
    margin: 0 auto;
    padding: 15px 0;
  }

  .feature-sec-title {
    font-size: 20px;
  }

  .feature-num {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .feature-item-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .feature-item-text {
    font-size: 13px;
  }

  .feature-image-frame {
    padding: 10px; /* スマホでは白枠を少し細く調整 */
  }
}


/* セクション全体 */
.merit-section {
  padding: 80px 20px;
  background-color: #f4f4f4;
}

.merit-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* タイトル部分 */
.merit-sub-title {
  display: block;
  color: #c81326; /* ブランドカラーの赤 */
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.merit-main-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 40px 0;
}

/* メリットグリッド (2列レイアウト) */
.merit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

/* カードスタイル */
.merit-card {
  background-color: #ffffff;
  padding: 30px 35px 35px;
  box-sizing: border-box;
  border-radius: 4px;
  position: relative;

  /* カード上部の太い赤いライン */
  border-top: 5px solid #c81326;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.merit-card-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #333333;
  margin-bottom: 2px;
}

.merit-card-num {
  font-size: 28px;
  font-weight: bold;
  color: #222222;
  line-height: 1.1;
  margin-bottom: 16px;
}

.merit-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #c81326; /* 赤文字タイトル */
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.merit-card-text {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* 下部赤バナー */
.merit-banner {
  background-color: #c81326;
  color: #ffffff;
  text-align: center;
  padding: 24px 20px;
  border-radius: 4px;
}

.merit-banner-text {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.03em;
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
  .merit-section {
    padding: 50px 30px;
  }

  .merit-main-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  /* スマホでは1列（縦並び）に変更 */
  .merit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .merit-card {
    padding: 24px 20px 28px;
  }

  .merit-card-num {
  margin-bottom: 6px;
}

  .merit-card-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .merit-card-text {
    font-size: 13px;
  }

  .merit-banner-text {
    font-size: 15px;
  }

  /* スマホ時、バナー内の改行を解除 */
  .merit-banner-text br {
    display: none;
  }
}




/* flowセクション */
.flow-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.flow-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* タイトル部分 */
.flow-sub-title {
  display: block;
  color: #c81326;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.flow-main-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 30px 0;
}

/* フローリスト */
.flow-list {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* ★高さを一番高い要素に揃える */
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
}

.flow-item {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative; /* 矢印の位置基準 */
}

/* 最後の要素以外に右側の余白を作る */
.flow-item:not(:last-child) {
  margin-right: 18px; /* 矢印が入るスペースを確保 */
}

/* 赤い矢印（絶対配置にしてカードの計算サイズに影響させない） */
.flow-item:not(:last-child)::after {
  content: "";
  display: block;
  width: 10px;
  height: 16px;
  background-color: #c81326;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  position: absolute;
  right: -20px; /* カードの外側右に配置 */
  top: 50%;
  transform: translateY(-50%);
}

/* 白いカード部分 */
.flow-card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  width: 100%;
  height: 110px; /* ★親（.flow-item）の高さ一杯に広げる */
  /* aspect-ratio: 1 / 1.15; ← 高さを固定化してしまうため削除 */
  display: flex;
  align-items: center;
  justify-content: left;
  box-sizing: border-box;
  padding: 15px;
  border-radius: 2px;
}

.flow-text {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  text-align: left;
  margin: 0;
}

/* スマホ対応 (768px以下は縦並び) */
@media (max-width: 768px) {
  .flow-section {
    padding: 60px 30px;
  }
  .flow-list {
    flex-direction: column;
    gap: 16px;
  }

  .flow-item {
    width: 100%;
  }

  .flow-item:not(:last-child) {
    margin-right: 0;
    margin-bottom: 16px; /* スマホ時は下に余白 */
  }

  .flow-card {
    aspect-ratio: auto;
    height: auto; /* ★スマホ時は自動高さ調整 */
    padding: 10px;
  }

  .flow-text {
    text-align: center;
  }

  .flow-text br {
    display: none;
  }

  /* スマホ用の下向き矢印 */
  .flow-item:not(:last-child)::after {
    width: 16px;
    height: 10px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    right: 50%;
    top: auto;
    bottom: -22px;
    transform: translateX(50%);
  }
}

/* セクション全体 */
.target-section {
  padding: 60px 20px;
  background-color: #f4f4f4;
}

.target-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* タイトル部分 */
.target-sub-title {
  display: block;
  color: #a6121f; /* ブランドカラーの赤 */
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.target-main-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 30px 0;
}

/* テーブルスタイル */
.target-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.target-table th,
.target-table td {
  padding: 22px 24px;
  font-size: 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

/* 最後の行の境界線を削除（外枠と重複するため） */
.target-table tr:last-child th,
.target-table tr:last-child td {
  border-bottom: none;
}

/* 見出しセル (左側) */
.target-table th {
  width: 25%;
  font-weight: bold;
  border-right: 1px solid #e0e0e0;
  background-color: #ffffff;
  white-space: nowrap;
}

/* データセル (右側) */
.target-table td {
  width: 75%;
  line-height: 1.5;
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
  .target-section {
    padding: 40px 30px;
  }

  .target-table,
  .target-table tbody,
  .target-table tr,
  .target-table th,
  .target-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .target-table tr {
    border-bottom: 1px solid #e0e0e0;
  }

  .target-table tr:last-child {
    border-bottom: none;
  }

  .target-table th {
    border-right: none;
    border-bottom: none;
    padding: 16px 16px 6px 16px;
    background-color: #fafafa;
  }

  .target-table td {
    border-bottom: none;
    padding: 0 16px 16px 16px;
    background-color: #fafafa;
  }
}


/* contactセクション */
.contact-section {
  background-color: #c81326; /* 画像に合わせた鮮やかな赤色 */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

/* コンテナ幅の設定と上下の境界線（白線） */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 30px 20px 45px;
}

/* 上部英語タイトル "CONTACT" */
.contact-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

/* メイン見出し */
.contact-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 16px 0;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* 説明文 */
.contact-description {
  font-size: 14px;
  margin: 0 0 35px 0;
  opacity: 0.95;
  line-height: 1.6;
}

/* CTAボタン */
.contact-button {
  display: inline-block;
  background-color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  padding: 16px 70px;
  border-radius: 50px; /* 丸みのあるカプセル型 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* ボタンホバー時 */
.contact-button:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
  .contact-section {
    padding: 40px 30px;
  }

  .contact-container {
    padding: 25px 10px 35px;
  }

  .contact-title {
    font-size: 20px;
  }

  .contact-description {
    font-size: 13px;
  }

  .contact-button {
    font-size: 16px;
    padding: 14px 0;
    width: 90%;
    max-width: 320px;
  }
}

/* PC表示時：非表示 */
.sp-only {
  display: none;
}

/* スマホ表示時（768px以下）：改行を有効化 */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}