@charset "UTF-8";

/* ==========================================================================
   1. 基本リセット & 全体設定
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ==========================================================================
   2. 共通パーツ（ヘッダー・フッター）
   ========================================================================== */
.list-header {
  padding: 60px 0 20px;
  background-color: #f9fbfd;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  margin-bottom: 40px;
}

.brand-logo a {
  display: inline-block;
  transition: opacity 0.3s ease;
  line-height: 0;
}

.brand-logo a:hover {
  opacity: 0.7;
}

.kibela-logo {
  height: 32px;
  width: auto;
}

/* フッター */
.list-footer {
  padding: 40px 0 60px;
  background-color: #fff;
  text-align: center;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-brand a:hover {
  opacity: 0.7;
}

.kibela-logo-footer {
  height: 28px;
  width: auto;
}

.copyright {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   3. 事例一覧ページ用
   ========================================================================== */
.case-list-section {
  padding: 40px 0 100px;
  background-color: #f9fbfd;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  border-left: 12px solid #2f75b5;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
  padding-left: 32px;
}

.case-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px 24px;
}

.case-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-content { padding: 0; }

.card-category {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2f75b5;
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-company {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.case-card:hover .card-image {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(47, 117, 181, 0.15);
}

.case-card:hover .card-image img { transform: scale(1.05); }
.case-card:hover .card-title { color: #2f75b5; }

/* ==========================================================================
   4. 個別記事ページ用
   ========================================================================== */
/* 個別ページ特有のヘッダー調整 */
.case-page .list-header {
  padding: 40px 0 0;
  background-color: transparent;
}

.case-page .brand-logo {
  margin-bottom: 0;
}

.case-article {
  max-width: 800px;
  margin: 20px auto 60px;
  padding: 0 24px;
}

.case-article-title {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 32px;
  padding: 10px 0 10px 24px;
  border-left: 12px solid #2f75b5;
}

.case-meta-info {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.meta-row { display: flex; margin-bottom: 12px; font-size: 15px; }
.meta-label { width: 100px; font-weight: bold; color: #2f75b5; flex-shrink: 0; }
.meta-value { color: #444; }

.case-main-visual { margin-bottom: 48px; }
.case-main-visual img { border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.case-question {
  font-size: 24px;
  font-weight: 700;
  color: #2f75b5;
  padding: 4px 0 4px 16px;
  margin: 56px 0 24px;
  line-height: 1.5;
  border-left: 6px solid #2f75b5;
}

.case-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 16px; color: #333; }
.case-answer p { font-size: 16px; margin-bottom: 24px; }

.case-content a {
  color: #21619b;        /* 落ち着いた青 */
  text-decoration: none; 
  font-weight: 600;      
  transition: all 0.3s ease; /* 変化をフワッとさせる（0.3秒） */
}

.case-content a:hover {
  text-decoration: underline; 
  opacity: 0.7;          /* 70%の濃さにする（少し薄くなる） */
}

.case-editor-comment {
  margin: 100px 0 60px;
  padding: 8px 0 8px 32px;
  border-left: 1px solid #ddd;
  position: relative;
}

.case-editor-comment::before {
  content: "Editor's Note";
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 20px;
}

.case-article-footer {
  margin-top: 100px;
  padding: 80px 0 40px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.back-to-list {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #2f75b5;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-to-list span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2f75b5;
}

.back-to-list::after {
  content: "";
  width: 40px;
  height: 1px;
  background-color: #2f75b5;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  margin-top: 4px;
}

.back-to-list:hover::after {
  width: 140px;
}

.back-to-list:hover {
  opacity: 0.7;
}

.visual-caption {
  display: block;          /* 幅をしっかり持たせる */
  width: 100%;             /* 親の端まで広げる */
  text-align: right;       /* これで右に寄るはず */
  font-size: 14px;
  color: #666;
  margin-top: 16px;
  line-height: 1.6;
  font-weight: 500;
}
.image-caption {
  display: block;
  width: 100%;
  text-align: center;      /* 真ん中に寄せる */
  font-size: 14px;         /* 補足情報らしく少し小さめ */
  color: #666;             /* 上品なグレー */
  margin-top: 16px;        /* 画像との間の余白 */
  line-height: 1.6;
  font-weight: 500;
}

.copyright a {
  text-decoration: none; /* 下線を消す */
  color: inherit;        /* 親要素（pタグ）と同じ文字色にする */
  text-decoration: underline; /* マウスが乗った時だけ下線を出す */
}

/* ==========================================================================
   5. レスポンシブ調整
   ========================================================================== */
@media (max-width: 767px) {
  /* 一覧ページ */
  .section-title { font-size: 26px; }
  .section-subtitle { padding-left: 20px; font-size: 14px; }
  .case-card-grid { grid-template-columns: 1fr; }
  
  /* 個別記事 */
  .case-article { margin: 32px auto; }
  .case-article-title { font-size: 24px; padding-left: 16px; border-left-width: 8px; }
  .case-question { font-size: 20px; }
  
  /* 共通 */
  .list-header { padding: 40px 0 0; }
  .list-footer { padding: 80px 0 40px; }
 
  .visual-caption {
      text-align: right;     /* スマホでも右寄せを維持する場合 */
      font-size: 13px;
      margin-top: 12px;
      padding-right: 10px;   /* 右端の余白 */
    }
  .image-caption {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
    padding: 0 10px;
  }
}