@charset "utf-8";

/* ==================================================
elements
================================================== */
a {
  text-decoration: none;
}

.acd_box {
  border-top: none;
}

/* ==================================================
contents
================================================== */
.cntSec {
  padding: 0;
}
.cntSec_inner {
  width: 1200px;
  padding: 0;
}
.newsPage {
  padding-top: 90px;
}

/* ==================================================
MV (トップの大きなビジュアル部分)
================================================== */
.newsPage .mv {
  position: relative;
  height: 372px;
  background: #333333;
  background-image: url(/common/images/bg_black.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.newsPage .mv_title {
  position: absolute;
  max-width: 1200px;
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}

/* ==================================================
backnumber（ニュースページ用リンクなど）
================================================== */
.backnumber {
  margin-bottom: 80px;
}
.backnumber_text {
  dominant-baseline: 16px;
}
.backnumber_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 29px;
}
.backnumber_item {
  flex: 1;
}
.backnumber_link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: #333333;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  min-height: 72px;
  padding: 8px 35px;
  transition: 500ms;
}
.backnumber_link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(100, 124, 163, 1) 0%,
    rgba(240, 192, 179, 1) 53%,
    rgba(220, 157, 157, 1) 75%,
    rgba(224, 215, 216, 1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
  border-radius: 8px;
}
.backnumber_link:hover::before,
.backnumber_link:focus::before {
  opacity: 0.5;
}
.backnumber_link > * {
  position: relative;
  z-index: 1;
}
.backnumber_link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #CCCCCC;
  pointer-events: none;
  border-radius: 8px;
  transition: border-color 400ms;
}
.backnumber_link:hover::after {
  border: transparent;
}

.backnumber_linkIcon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.backnumber_linkIcon::after {
  content: '';
  display: block;
  background-repeat: no-repeat;
  background-size: 100% auto;
}
/* 矢印アイコン */
.backnumber_linkIcon-arrow::after {
  background-image: url(/common/images/icon_right.svg);
  width: 11px;
  height: 16px;
}
/* PDFイコン */
.backnumber_linkIcon-pdf::after {
  background-image: url(/common/images/icon_pdf.svg);
  width: 16px;
  height: 16px;
}
/* 別タブアイコン */
.backnumber_linkIcon-blank::after {
  background-image: url(/common/images/icon_blank.svg);
  width: 16px;
  height: 16px;
}

/* ==================================================
事例紹介リスト全体
================================================== */
.caseList {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 60px;
  list-style: none;
  justify-content: center;
}

.caseItem {
  width: 360px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 16px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.caseThumb {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 200px;
  background: #fff; /* 背景はここで統一 */
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 20px; /* 枠ごと中央寄せ＋下マージン */
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.caseThumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.caseTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 12px 16px 8px;
}

.caseText {
  font-size: 14px;
  color: #666;
  margin: 0 16px 12px;
  line-height: 1.5;
  text-align: center;
}

.caseLinkBtn {
  display: block;
  width: 200px;
  margin: 0 auto 16px;
  padding: 12px 0;
  background: #F0829C;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.caseLinkBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #f3a6b3, #d6577a);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px;
  z-index: 0;
}

.caseLinkBtn:hover::before,
.caseLinkBtn:focus::before {
  opacity: 1;
}

.caseLinkBtn > * {
  position: relative;
  z-index: 1;
}

/* ==================================================
事例紹介 個別ページ
================================================== */
.caseDetail_inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
}

.caseDetail_title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
  text-align: center;
}

.caseDetail_date {
  text-align: center;
  color: #888;
  margin-bottom: 24px;
  font-size: 14px;
}

.caseDetail_thumb img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: inline-block;
}

.caseDetail_body h3 {
  font-size: 20px;
  color: #444;
  margin: 40px 0 8px;
  border-left: 4px solid #F0829C;
  padding-left: 12px;
}

.caseDetail_body p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

/* 戻るボタン（一覧と同デザインで統一） */
.caseDetail_backBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  margin: 48px auto 0;
  padding: 8px 35px;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  min-height: 72px;
  text-decoration: none;
  transition: 0.5s;
}

.caseDetail_backBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(100,124,163,1) 0%, rgba(240,192,179,1) 53%, rgba(220,157,157,1) 75%, rgba(224,215,216,1) 100%);
  opacity: 0.2;
  border-radius: 8px;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.caseDetail_backBtn:hover::before,
.caseDetail_backBtn:focus::before {
  opacity: 0.5;
}

.caseDetail_backBtn > * {
  position: relative;
  z-index: 1;
}

.caseDetail_backBtn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #CCC;
  pointer-events: none;
  border-radius: 8px;
  transition: border-color 0.4s;
}

.caseDetail_backBtn:hover::after {
  border: transparent;
}

/* ==================================================
対談セクション
================================================== */
.dialogueSection {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 60px auto;
  max-width: 900px;
  padding: 30px 20px;
  background: #fff8f8;
  border-radius: 12px;
  border: 1px solid #f0dcdc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.dialogueSection .speaker {
  font-weight: 600;
  color: #e06666;
  margin-bottom: 6px;
}

.dialogueSection .speech {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* ==================================================
会社紹介セクション
================================================== */
.companyIntro {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 30px;
  background: #fdfdfd;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.companyIntro h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.companyIntro p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
}

.companyIntro a {
  color: #f0829c;
  text-decoration: underline;
}

/* ==================================================
対談形式
================================================== */



.talkWrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.talkRow.answer .talkText {
  padding: 16px 20px;
  border-radius: 10px; /* 角丸は共通 */
  width: 100%;
  max-width: 100%;
  line-height: 1.7;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* 回答者1（淡いピンク） */
.talkRow.answer1 .talkText {
  background-color: #fff3f5;
}

/* 回答者2（淡いブルー） */
.talkRow.answer2 .talkText {
  background-color: #f0f6ff;
}

/* 質問は背景なし、縦に並べる */
.talkRow.question {
font-weight: 700; /* 太字 */
  color: #333;
  background: none; /* 背景を透明に */
  padding: 0;
  margin-bottom: 8px;
}

/* 回答者のアイコン */
.talkIcon img {
  width: 48px;
  height: 48px;
  border-radius: 10%;
}


/* 関連画像は吹き出し外、少し間隔を空ける */
.talkImage {
  margin-top: 12px;
}

.talkImage img {
  width: 100%;
  max-width: 1200px; /* 吹き出しと同じサイズに合わせる場合 */
  height: auto;
  border-radius: 8px;
}

/* 回答者名（丸い背景・枠・角丸を削除して普通の文字に） */
.talkRow.answer .speaker {
  background: none !important;  /* 背景色を消す */
  border: none !important;      /* 枠線を消す */
  border-radius: 0 !important;  /* 丸みを消す */
  display: block;               /* 行として表示 */
  padding: 0 !important;        /* 余白をリセット */
  margin-bottom: 6px;           /* 下に少しだけ余白 */
  font-weight: 700;             /* 太字（お好みで） */
  color: #333;                  /* 標準の文字色 */
}

/* ==================================================
会社紹介
================================================== */
.caseDetail_company {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 8px;
  margin: 40px 0;
}

.caseDetail_company h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.caseDetail_company p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 12px;
}

.caseDetail_company a {
  color: #F0829C;
  text-decoration: underline;
}
.companyIntro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
}

.companyIntro img {
  width: 200px; /* 左側画像サイズ */
  height: auto;
  border-radius: 8px;
}

.companyIntro .introText {
  flex: 1; /* 右側テキストが残り幅を使う */
}
/* タイトル部分 */
.caseDetail_title {
  font-size: 28px; /* 元より大きめ */
  font-weight: 700; /* 太字 */
  margin-bottom: 16px;
  color: #333;
}

/* 説明文下の小さめ画像 */

.caseDetail_introImage {
  text-align: center; /* 中央寄せ */
  margin-top: 16px;
}

.caseDetail_introImage img {
  width: 700px; /* 吹き出しより3周りくらい小さい幅に調整 */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  
  .introImage {
  text-align: center;  /* 画像を中央寄せ */
  margin: 16px 0;      /* 上下の余白調整 */
}

.introImage img {
  width: 60%;          /* 吹き出し画像より小さめ */
  max-width: 400px;    /* 必要に応じて調整 */
  height: auto;
  border-radius: 8px;
}

.smallImageCaption {
  font-size: 14px;     /* 小さめ文字 */
  color: #777;         /* 薄いグレー */
  margin-top: 8px;     /* 画像との間隔 */
  margin-bottom: 4px; /* 次の要素との距離を縮める */
}
/* ==================================================
対談形式（ハーフハーフ表示でも崩れない版）
================================================== */

.talkWrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* 吹き出しの基本設定 */
.talkRow.answer .talkText {
  padding: 16px 20px;
  border-radius: 10px; /* 角丸は共通 */
  width: 100%;
  max-width: 100%;
  line-height: 1.7;
  overflow-wrap: break-word;
  box-sizing: border-box;
  word-break: break-word; /* 長い単語やURL対応 */
  min-width: 0; /* Flexアイテム内での崩れ防止 */
}

/* 回答者1（淡いピンク） */
.talkRow.answer1 .talkText {
  background-color: #fff3f5;
}

/* 回答者2（淡いブルー） */
.talkRow.answer2 .talkText {
  background-color: #f0f6ff;
}

/* 質問は背景なし、縦に並べる */
.talkRow.question {
  font-weight: 700;
  color: #333;
  background: none;
  padding: 0;
  margin-bottom: 8px;
}

/* 回答者のアイコン */
.talkIcon img {
  width: 48px;
  height: 48px;
  border-radius: 10%;
  flex-shrink: 0; /* アイコンが縮まないようにする */
}

/* 関連画像は吹き出し外、少し間隔を空ける */
.talkImage {
  margin-top: 12px;
}

.talkImage img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

/* 回答者名 */
.talkRow.answer .speaker {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  display: block;
  padding: 0 !important;
  margin-bottom: 6px;
  font-weight: 700;
  color: #333;
}

/* -----------------------------------
2画面表示対応（ハーフハーフ）
----------------------------------- */
@media screen and (min-width: 1200px) {
  .talkWrapper.half {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .talkWrapper.half .talkRow {
    flex: 1 1 calc(50% - 12px); /* 2カラムで余白を引く */
    box-sizing: border-box;
  }

  .talkWrapper.half .talkImage img {
    max-width: 100%; /* 吹き出し内でも画像が大きくならない */
  }
}
/* ===============================
PCハーフ画面対応（追記用）
=============================== */

/* コンテナ幅を画面幅に対応 */
.cntSec_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* MVタイトルを相対配置に変更 */
.newsPage .mv_title {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

/* 画像・吹き出しの幅を柔軟に */
.talkImage img,
.caseThumb img,
.caseDetail_thumb img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* 吹き出しテキスト */
.talkRow.answer .talkText {
    width: 100%;
    max-width: 100%;
}

/* 横並びリストはラップ対応 */
.caseList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.caseItem {
    flex: 1 1 360px; /* 最小幅360px、余裕があれば広がる */
    max-width: 360px;
}

/* 画像付きテキストやイントロも柔軟に */
.caseDetail_introImage img,
.introImage img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* 会社紹介の画像も追従 */
.companyIntro img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* 小さめ画像キャプション調整 */
.smallImageCaption {
    font-size: 14px;
    color: #777;
    margin-top: 8px;
    margin-bottom: 4px;
}
/* PC幅が1200px未満の場合の調整 */
@media screen and (max-width: 1200px) {
  .cntSec_inner {
    width: 100%;
    padding: 0 20px;
  }

  .newsPage .mv_title {
    font-size: 36px;
  }

  .caseList {
    justify-content: center;
  }

  .caseItem {
    flex: 1 1 45%; /* 2列に収まるように調整 */
    max-width: 45%;
    box-sizing: border-box;
  }

  .talkImage img,
  .caseThumb img,
  .caseDetail_thumb img {
    width: 100%;
    height: auto;
  }

  .talkRow.answer .talkText {
    width: 100%;
    max-width: 100%;
  }

  .companyIntro {
    flex-direction: column;
    align-items: center;
  }

  .companyIntro img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 16px;
  }
/* コンテナ全体 */
.custom-case-container {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap; /* 画面が狭くなったら折り返す */
}

/* 個別ボックス */
.custom-case-box {
  background-color: #f5f5f5; /* グレーっぽい背景 */
  border: 1px solid #ddd; /* 薄い枠線 */
  padding: 16px;
  flex: 1 1 200px; /* 自由に伸縮、最小200px */
  box-sizing: border-box;
}

/* ボックス内の見出し */
.custom-case-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #333;
}

/* 箇条書き */
.custom-case-box ul {
  padding-left: 16px;
  margin: 0;
}
