@charset "utf-8";

/* ========================================
   case.css
   事例ページ固有スタイル
   一覧ページ（case-list.php）
   詳細ページ（case-single.php）
======================================== */


/* ========== CASE LIST SECTION ========== */
.case-list-section {
  width: 100%;
  padding: 0 0 100px;
}

.case-list-section__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

  .case-list-section__inner {
    width: 90%;
  }
}
/* ========== /CASE LIST SECTION ========== */


/* ========== CASE LIST ========== */
/*
  <ul class="case-list">
    <li class="case-list__item">
      <a href="case-single.php">
        <div class="case-list__thumb"><img src="" alt=""></div>
        <div class="case-list__body">
          <p class="case-list__title">タイトル</p>
          <p class="case-list__text">テキスト</p>
          <div class="case-list__tags">
            <span class="case-list__tag">タグ</span>
          </div>
        </div>
      </a>
    </li>
  </ul>
*/
.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 30px;
  list-style: none;
  margin: 0 0 60px;
  padding: 0;
}

.case-list__item {
  width: calc((100% - 60px) / 3);
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.case-list__item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.case-list__item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* サムネイル */
.case-list__thumb {
  width: 90%;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 15px auto 0;
}

.case-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.case-list__item:hover .case-list__thumb img {
  transform: scale(1.04);
}

/* ボディ */
.case-list__body {
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* タイトル */
.case-list__title {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin: 0 0 12px;
  line-height: 1.5;
}

/* テキスト */
.case-list__text {
  font-size: 14px;
  color: #555555;
  margin: 0 0 16px;
  line-height: 1.7;
  flex: 1;
}

/* タグ */
.case-list__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.case-list__tag {
  display: inline-block;
  background-color: #0099c3;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .case-list {
    flex-direction: column;
    gap: 30px;
  }

  .case-list__item {
    width: 100%;
  }

  .case-list__thumb {
    height: 200px;
  }
}
/* ========== /CASE LIST ========== */


/* ========== CASE SINGLE ========== */
/*
  <section class="case-single">
    <div class="case-single__inner">
      <div class="case-single__box">
        <h2 class="case-single__title">タイトル</h2>
        <div class="case-single__meta">
          <div class="case-single__tags">
            <span class="case-single__tag">タグ</span>
          </div>
          <span class="case-single__date">掲載日：2026.04.07</span>
        </div>
        <hr class="case-single__divider">
        <div class="case-single__body">...</div>
      </div>
    </div>
  </section>
*/
.case-single {
  width: 100%;
  padding: 0 0 40px;
}

.case-single__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* コンテンツボックス（白背景・影） */
.case-single__box {
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
  padding: 50px 60px 60px;
  box-sizing: border-box;
}

/* タイトル */
.case-single__title {
  font-family: "Zen Old Mincho", serif;
  font-size: 26px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* メタ（タグ・掲載日） */
.case-single__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.case-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.case-single__tag {
  display: inline-block;
  background-color: #0099c3;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  line-height: 1.4;
}

.case-single__date {
  font-size: 14px;
  color: #666666;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}

/* ボーダー */
.case-single__divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0 0 30px;
}

/* 本文 */
.case-single__body {
  font-size: 16px;
  line-height: 1.9;
  color: #333333;
}

.case-single__body p {
  margin: 0 0 24px;
}

.case-single__body p:last-child {
  margin: 0;
}

/* 画像 */
.case-single__fig {
  margin: 30px auto;
  text-align: center;
}

.case-single__fig img {
  width: 450px;
  max-width: 100%;
  height: auto;
  display: inline-block;
}

@media screen and (max-width: 768px) {
  .case-single__inner {
    width: 90%;
  }

  .case-single__box {
    padding: 30px 20px 40px;
  }

  .case-single__title {
    font-size: 20px;
  }

  .case-single__meta {
    flex-direction: column;
    gap: 12px;
  }

  .case-single__date {
    padding-top: 0;
  }
}
/* ========== /CASE SINGLE ========== */


/* ========== CASE SEARCH（一覧ページ） ========== */
.case__search {
  width: 720px;
  max-width: 100%;
  margin: 60px auto 0;
  border: 1px solid #0099c3;
  padding: 40px;
  box-sizing: border-box;
}

.case__search-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin: 0 0 30px;
  border-bottom: 1px solid #0099c3;
  padding-bottom: 16px;
}

.case__search-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.case__search-group {
  margin-bottom: 24px;
}

.case__search-label {
  font-size: 14px;
  color: #333333;
  margin: 0 0 12px;
  font-weight: 500;
}

.case__search-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* チェックボックス */
.case__check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.case__check input[type="checkbox"] {
  display: none;
}

.case__check span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid #0099c3;
  color: #0099c3;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.case__check span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 9px;
  border-right: 2px solid #0099c3;
  border-bottom: 2px solid #0099c3;
  transform: rotate(45deg) translateY(-2px);
  margin-right: 6px;
  transition: border-color 0.2s ease;
}

.case__check input[type="checkbox"]:checked + span {
  background-color: #0099c3;
  color: #fff;
}

.case__check input[type="checkbox"]:checked + span::before {
  border-color: #fff;
}

/* 検索ボタン */
.case__search-btn-wrap {
  text-align: center;
  margin-top: 30px;
}

.case__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #004364;
  color: #fff;
  font-size: 16px;
  padding: 14px 80px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.case__search-btn:hover {
  background-color: #0099c3;
  color: #fff;
}

.case__search-btn-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

@media screen and (max-width: 768px) {
  .case__search {
    width: 100%;
    padding: 24px 20px;
  }

  .case__search-btn {
    padding: 14px 40px;
    width: 100%;
    box-sizing: border-box;
  }
}
/* ========== /CASE SEARCH ========== */