@charset "UTF-8";
/* ------------------------------------------------------------------
   [CASE-1] 2026/10/05 事例（case）一覧テンプレート追加
   事例一覧（/case/）・事例詳細（/case/{slug}/）専用。functions.php で事例ページのみ読み込む。
   - クラス名は iii-case- で始める。既存の .iii-* のルールは書き換えない
   - 範囲は .post-type-archive-case / .single-case（SWELL が #body_wrap に付けるクラス）の中に限定する
   - ブレークポイントは 599px / 959px（style.css の [P2-9] の方針どおり）
   - 寸法は docs/case-template/design-spec.md（1920px 幅のデザイン）の値。
     一覧の小さい文字だけ引き上げている（タグ 7.5→10px、会社名 9.8→12px、チップ 11.3→12px。
     チップを 13px にすると「課題」の行が1行に収まらないため 12px）
   ------------------------------------------------------------------ */

/* ===== 事例ページ内だけで使う色（style.css の :root にないもの） ===== */
.post-type-archive-case,
.single-case {
  --iii-case-line: #e7e4df;      /* 枠線・区切り線・選択中チップ */
  --iii-case-tag-bg: #f5f2ee;    /* グレーのタグ */
  --iii-case-tag-o-bg: #fef8f2;  /* オレンジのタグ */
  --iii-case-text-sub: #4d4d4d;  /* タグ・詳細本文の文字 */
}

/* ===== 共通: レイアウト =====
   SWELL 標準の .l-content の上余白・下余白を事例ページでは使わない。
   style.css の [P1-4]（.l-content の余白詰め）が削除されても帯の位置が変わらないよう、ここでも指定する */
.post-type-archive-case .l-content,
.single-case .l-content {
  padding-top: 0;
  margin-bottom: 0;
}
/* グレー背景。コンテンツ幅の外（画面の左右端）まで塗る */
.iii-case-body {
  padding: 92px 0;
  background: var(--iii-bg-gray);
  box-shadow: 0 0 0 100vmax var(--iii-bg-gray);
  clip-path: inset(0 -100vmax);
}
.iii-case-panel {
  max-width: 992px;
  margin: 0 auto;
  padding: 23px 22px 110px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* ===== 一覧: 絞り込み ===== */
.iii-case-filter {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--iii-case-line);
}
.iii-case-filter__ttl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 33px;
  padding: 0 15px;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  color: var(--iii-text);
}
.iii-case-filter__icon {
  flex-shrink: 0;
  color: var(--iii-orange);
}
.iii-case-filter__row {
  display: flex;
  align-items: flex-start;
  padding: 0 15px;
}
.iii-case-filter__row + .iii-case-filter__row {
  margin-top: 20px;
}
.iii-case-filter__label {
  flex: 0 0 105px;
  font-size: 12px;
  font-weight: 500;
  line-height: 34px;
  color: var(--iii-text);
}
.iii-case-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.iii-case-chip {
  position: relative;
  display: block;
  cursor: pointer;
}
/* チェックボックス本体は見せず、隣の文字をチップにする（キーボード操作は残す） */
.iii-case-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.iii-case-chip__text {
  display: block;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--iii-case-line);
  border-radius: 17px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 32px;
  color: var(--iii-text);
  transition: border-color 0.2s, background-color 0.2s;
}
.iii-case-chip input:checked + .iii-case-chip__text {
  background: var(--iii-case-line);
}
.iii-case-chip:hover .iii-case-chip__text {
  border-color: var(--iii-orange);
}
.iii-case-chip input:focus-visible + .iii-case-chip__text {
  outline: 2px solid var(--iii-orange);
  outline-offset: 2px;
}
.iii-case-filter__actions {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 21px;
}
.iii-case-filter__submit {
  position: relative;
  min-width: 113px;
  height: 26px;
  padding: 0 30px 0 24px;
  border: 0;
  border-radius: 13px;
  background: var(--iii-orange);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 26px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}
.iii-case-filter__submit::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
}
.iii-case-filter__submit:hover {
  opacity: 0.8;
}
.iii-case-filter__clear {
  margin-left: 16px;
  font-size: 12px;
  color: var(--iii-text);
  text-decoration: underline;
}

/* ===== 一覧: カード ===== */
.iii-case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 69px 25px;
  margin: 69px 0 0;
  padding: 0 37px;
  list-style: none;
}
.iii-case-list__item {
  margin: 0;
  padding: 0;
}
.iii-case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--iii-case-line);
  border-radius: 14px;
  background: #fff;
  color: var(--iii-text);
  text-decoration: none;
  transition: border-color 0.2s;
}
.iii-case-card:hover {
  border-color: var(--iii-orange);
}
/* アイキャッチがないときはグレーの枠だけを出す */
.iii-case-card__thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--iii-case-tag-bg);
}
.iii-case-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.iii-case-card:hover .iii-case-card__img {
  transform: scale(1.04);
}
.iii-case-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 8px 16px 15px;
}
/* タイトルは3行分の高さを確保し、超えたら省略する */
.iii-case-card__title {
  display: -webkit-box;
  min-height: 60px;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--iii-text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.iii-case-card__company {
  margin: auto 0 0;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--iii-text);
}
.iii-case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 7px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.iii-case-tag {
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--iii-case-tag-bg);
  border-radius: 10px;
  background: var(--iii-case-tag-bg);
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  color: var(--iii-case-text-sub);
}
.iii-case-tag.-industry {
  border-color: var(--iii-orange);
  background: var(--iii-case-tag-o-bg);
  color: var(--iii-orange);
}

/* ===== 一覧: ページ送り・0件 ===== */
.iii-case-panel .c-pagination {
  margin: 60px 0 -50px;
}
.iii-case-empty {
  margin: 73px 0 0;
  font-size: 15px;
  text-align: center;
  color: var(--iii-text);
}
.iii-case-empty a {
  display: block;
  margin-top: 12px;
  color: var(--iii-orange);
  text-decoration: underline;
}

/* ===== タブレット ===== */
@media screen and (min-width: 600px) and (max-width: 959px) {
  .iii-case-body {
    padding: 60px 0;
  }
  .iii-case-panel {
    padding-bottom: 80px;
  }
  .iii-case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 25px;
    margin-top: 50px;
    padding: 0 15px;
  }
}

/* ===== SP ===== */
@media screen and (max-width: 599px) {
  .iii-case-body {
    padding: 40px 0;
  }
  .iii-case-panel {
    padding: 20px 15px 60px;
  }
  .iii-case-filter__ttl {
    margin-bottom: 20px;
    padding: 0;
  }
  .iii-case-filter__row {
    display: block;
    padding: 0;
  }
  .iii-case-filter__row + .iii-case-filter__row {
    margin-top: 14px;
  }
  .iii-case-filter__label {
    display: block;
    margin-bottom: 4px;
    line-height: 1.6;
  }
  .iii-case-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 0;
  }
  .iii-case-card__title {
    min-height: 0;
  }
  .iii-case-panel .c-pagination {
    margin: 40px 0 -20px;
  }
  .iii-case-empty {
    margin-top: 40px;
  }
  /* [CASE-5] 2026/11/08 帯（一覧・詳細共通）: 「導入企業さまの声」の下の余白を /character/ などと同じ 9% にする。
     固定ページでは説明文（2つ目の p）の margin-bottom: 9% で余白ができるが、事例には説明文がなく、
     1つ目の p の margin-bottom: 10px しか付かないため、空のグループで残りを足す */
  .iii-case-subpage-title .iii-subpage-title-wrap-right-img {
    padding-top: calc(9% - 10px);
  }
}

/* ------------------------------------------------------------------
   [CASE-2] 2026/10/06 事例詳細テンプレート追加
   [CASE-3] 2026/10/06 デザイン PDF からの変更（依頼による）
   - 白いパネルの幅を一覧と同じ 992px にした（PDF は 1339px）。関連事例も同じ幅
   - 文字を PDF の約 80% にした（本文 18.7→15px。サイトの他のページの本文と同じ大きさ）。
     余白・アイコンも同じ比率で縮めている
   ------------------------------------------------------------------ */

/* [CASE-5] 2026/11/08 帯の見出し用のルール（div.iii-case-subpage-title__heading）を削除。
   帯は固定ページと同じ HTML になり、style.css の .iii-subpage-title-* だけで表示される */

/* ===== 詳細: パネル（2カラム）。幅は .iii-case-panel の 992px ===== */
.iii-case-body.-detail {
  padding: 81px 0 55px;
}
.iii-case-panel.-detail {
  display: grid;
  grid-template-columns: minmax(0, 839fr) minmax(0, 313fr);
  grid-template-areas:
    "head side"
    "main side";
  grid-template-rows: auto 1fr;
  column-gap: 69px;
  padding: 74px 30px 22px 40px;
}
.iii-case-detail__head {
  grid-area: head;
}
.iii-case-detail__main {
  grid-area: main;
  padding-bottom: 16px;
}
/* サイド。左の縦線はパネルの下端近くまで通す */
.iii-case-detail__side {
  position: relative;
  grid-area: side;
}
.iii-case-detail__side::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -29px;
  border-left: 1px solid #cfcfcf;
}

/* ===== 詳細: タイトルまわり ===== */
.iii-case-detail__label {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  color: var(--iii-orange);
}
.iii-case-detail__title {
  margin: 1px 0 0;
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--iii-text);
}
.iii-case-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.iii-case-detail__tag {
  display: block;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--iii-case-tag-bg);
  font-size: 13px;
  font-weight: 500;
  line-height: 28px;
  color: var(--iii-case-text-sub);
  text-decoration: none;
  transition: opacity 0.2s;
}
.iii-case-detail__tag:hover {
  opacity: 0.7;
}
.iii-case-detail__thumb {
  margin: 26px 0 0;
}
.iii-case-detail__thumb-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 詳細: 要約ボックス ===== */
.iii-case-summary {
  margin-top: 36px;
  padding: 25px 30px 30px 18px;
  background: #fff7f0;
}
.iii-case-summary__block + .iii-case-summary__block {
  margin-top: 40px;
}
.iii-case-summary__ttl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  min-height: 32px;
  margin: 0;
  padding-left: 13px;
  border-left: 3px solid var(--iii-orange);
  color: var(--iii-orange);
}
.iii-case-summary__ttl-ja {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
}
.iii-case-summary__ttl-en {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.iii-case-summary__list {
  margin: 20px 0 0;
  padding: 0 0 0 8px;
  list-style: none;
}
/* 丸にチェックのアイコン（素材が届くまでの仮） */
.iii-case-summary__item {
  position: relative;
  margin: 0;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: var(--iii-case-text-sub);
}
.iii-case-summary__item + .iii-case-summary__item {
  margin-top: 8px;
}
.iii-case-summary__item::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23b3b3b3' stroke-width='1.5'%3E%3Ccircle cx='11' cy='11' r='10'/%3E%3Cpath d='M6 11.5l3.5 3.5 6.5-7.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== 詳細: 本文（ブロックエディターの内容） =====
   h2 = 番号付きの大見出し、h3 = サムズアップの小見出し、h4 = 横線付きの小見出し
   本文の文字サイズは SWELL が #main_content .post_content で指定しているため、同じ強さの #main_content で上書きする */
#main_content .iii-case-content {
  margin-top: 44px;
  padding-left: 26px;
  counter-reset: iii-case-h2;
  --iii-case-indent: 24px; /* 小見出しに続く本文の字下げ */
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--iii-case-text-sub);
}
.iii-case-content > * + * {
  margin-top: 27px;
}
/* !important の理由: style.css の [P1-2] :where(.post_content) h2 が font-size / line-height を
   !important で指定しており、事例本文の見出しサイズを変えるにはこちらも必要 */
.single-case .iii-case-content h2 {
  position: relative;
  margin: 88px 0 32px -13px;
  padding: 12px 0 0 42px;
  border: 0;
  background: none;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 700;
  line-height: 1.4 !important;
  color: var(--iii-case-text-sub);
  counter-increment: iii-case-h2;
}
.single-case .iii-case-content h2:first-child {
  margin-top: 0;
}
.single-case .iii-case-content h2::before {
  content: counter(iii-case-h2, decimal-leading-zero);
  position: absolute;
  top: 1px;
  left: 0;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--iii-orange);
}
/* 番号の右下に入る斜線（style.css の .post_content h2::after のグラデーション線を置き換える） */
.single-case .iii-case-content h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 50px;
  height: 50px;
  border: 0;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--iii-orange) calc(50% - 1px), var(--iii-orange) calc(50% + 1px), transparent calc(50% + 1px));
}
/* !important の理由: style.css の [P1-3] :where(.post_content) h3 が font-size / margin-bottom を !important で指定しているため */
.single-case .iii-case-content h3,
.single-case .iii-case-content h4 {
  position: relative;
  margin: 52px 0 8px !important;
  padding: 0 0 0 24px;
  border: 0;
  background: none;
  font-size: 19px !important;
  font-weight: 700;
  line-height: 28px;
  color: var(--iii-case-text-sub);
}
.single-case .iii-case-content h4 {
  margin-top: 30px !important;
}
.single-case .iii-case-content h3 + *,
.single-case .iii-case-content h4 + * {
  margin-top: 0;
}
/* [CASE-4] 2026/10/06 小見出し（h3・h4）に続く本文の字下げ。見出しの文字の左端にそろえる。
   「次の見出しまで」を CSS だけで指定するため、小見出しの直後から連続する要素を1個目〜15個目まで並べている
   （15個を超える分は字下げされない。画像は字下げせず、カラム幅いっぱいのまま） */
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image),
.iii-case-content > :is(h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4) + :not(h2, h3, h4, .wp-block-image) {
  padding-left: var(--iii-case-indent);
}
/* サムズアップのアイコン（素材が届くまでの仮） */
.single-case .iii-case-content h3::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 17px;
  height: 18px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 22' fill='none' stroke='%23ff7800' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M1 10h4v11H1zM5 11l4-9c1.8 0 3 1.2 3 3v4h6c1.2 0 2 1 1.8 2.2l-1.3 7c-.2 1-1 1.8-2 1.8H5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.single-case .iii-case-content h4::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -26px;
  width: 45px;
  height: 0;
  border: 0;
  border-top: 1px solid var(--iii-orange);
  background: none;
}
.single-case .iii-case-content h3::after,
.single-case .iii-case-content h4::after {
  content: none;
}
/* 写真はメインカラムの幅いっぱい。キャプションは本文の左端にそろえる */
.iii-case-content > .wp-block-image {
  width: calc(100% + 26px);
  max-width: none;
  margin: 64px 0 0 -26px;
}
.iii-case-content > .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}
.iii-case-content > .wp-block-image figcaption {
  margin: 0;
  padding-left: 26px;
  font-size: inherit;
  font-weight: 400;
  line-height: 27px;
  text-align: left;
  color: var(--iii-case-text-sub);
  opacity: 1;
}

/* ===== 詳細: シェアボタン ===== */
.iii-case-share {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
}
.iii-case-share__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 136px;
  height: 40px;
  border: 1px solid #b3b3b3;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1;
  color: #b3b3b3;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.iii-case-share__btn:hover {
  border-color: var(--iii-orange);
  color: var(--iii-orange);
}

/* ===== 詳細: サイドの企業情報 ===== */
.iii-case-company__logo {
  margin: 28px 0 0;
  padding-left: 3px;
}
.iii-case-company__logo-img {
  display: block;
  width: auto;
  max-width: min(210px, 100%);
  height: auto;
  max-height: 110px;
}
.iii-case-company__list {
  margin: 36px 0 0;
}
.iii-case-company__list:first-child {
  margin-top: 0;
}
.iii-case-company__row + .iii-case-company__row {
  margin-top: 12px;
}
.iii-case-company__row dt {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 30px;
  color: #999;
}
.iii-case-company__row dt::before {
  content: "―";
}
.iii-case-company__row dd {
  margin: 0;
  padding-left: 18px;
  font-size: 17px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--iii-text);
}
.iii-case-company__row.-feature dd + dd {
  margin-top: 12px;
}
.iii-case-company__row dd a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.iii-case-company__row dd a:hover {
  color: var(--iii-orange);
}

/* ===== 詳細: 関連事例（幅はパネルと同じ 992px。カードは一覧と同じ） ===== */
.iii-case-related {
  padding: 70px 0 90px;
}
.iii-case-related__inner {
  max-width: 992px;
  margin: 0 auto;
}
.iii-case-related__ttl {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.12em;
  color: var(--iii-orange);
}
.iii-case-related__more {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  text-align: right;
}
.iii-case-related__more a {
  position: relative;
  padding-right: 20px;
  color: var(--iii-text);
  text-decoration: none;
}
.iii-case-related__more a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.iii-case-related__more a:hover {
  color: var(--iii-orange);
}
.iii-case-list.-related {
  gap: 25px;
  margin-top: 15px;
  padding: 0;
}

/* ===== 詳細: タブレット以下は1カラム（企業情報はメイン写真の下） ===== */
@media screen and (max-width: 959px) {
  .iii-case-body.-detail {
    padding: 60px 0 40px;
  }
  .iii-case-panel.-detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "side"
      "main";
    grid-template-rows: auto;
    padding: 40px 30px 30px;
  }
  .iii-case-detail__label {
    margin-top: 0;
  }
  .iii-case-detail__title {
    font-size: 26px;
    line-height: 1.5;
  }
  .iii-case-detail__tags {
    margin-top: 24px;
  }
  .iii-case-detail__thumb {
    margin-top: 24px;
  }
  .iii-case-detail__side {
    margin-top: 30px;
    padding: 24px 0;
    border-top: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
  }
  .iii-case-detail__side::before {
    content: none;
  }
  .iii-case-company__logo {
    margin-top: 0;
    padding-left: 0;
  }
  .iii-case-company__logo-img {
    max-width: 200px;
    max-height: 90px;
  }
  .iii-case-company__list {
    margin-top: 20px;
  }
  .iii-case-company__row dt,
  .iii-case-company__row dd {
    font-size: 15px;
    line-height: 1.75;
  }
  .iii-case-company__row + .iii-case-company__row {
    margin-top: 10px;
  }
  .iii-case-company__row.-feature dd + dd {
    margin-top: 6px;
  }
  /* [CASE-5] 2026/11/08 省スペースのため、項目名（dt）と値（dd）を横並びにする。
     dd が複数（業種・機能）のときは、2つ目以降も値の列に縦に並ぶ */
  .iii-case-company__row {
    display: flow-root;
  }
  .iii-case-company__row dt {
    float: left;
    width: 6em;
  }
  .iii-case-company__row dd {
    margin-left: 6em;
    padding-left: 0;
  }
  .iii-case-summary {
    margin-top: 30px;
    padding: 24px 20px;
  }
  .iii-case-summary__block + .iii-case-summary__block {
    margin-top: 30px;
  }
  .iii-case-summary__list {
    margin-top: 16px;
    padding-left: 0;
  }
  #main_content .iii-case-content {
    margin-top: 40px;
    padding-left: 0;
  }
  .single-case .iii-case-content h2 {
    margin: 64px 0 24px;
  }
  .single-case .iii-case-content h3,
  .single-case .iii-case-content h4 {
    margin-top: 44px !important;
    line-height: 1.5;
  }
  .single-case .iii-case-content h4 {
    margin-top: 30px !important;
  }
  .single-case .iii-case-content h4::before {
    top: 0.75em;
    left: 0;
    width: 16px;
  }
  .iii-case-content > .wp-block-image {
    width: 100%;
    margin: 40px 0 0;
  }
  .iii-case-content > .wp-block-image figcaption {
    padding-left: 0;
    font-size: 13px;
  }
  .iii-case-share {
    margin-top: 50px;
  }
  .iii-case-related {
    padding: 50px 0 60px;
  }
}

/* ===== 詳細: SP ===== */
@media screen and (max-width: 599px) {
  .iii-case-body.-detail {
    padding: 40px 0 30px;
  }
  .iii-case-panel.-detail {
    padding: 24px 15px;
  }
  .iii-case-detail__title {
    font-size: 22px;
  }
  .iii-case-detail__tag {
    padding: 0 12px;
    font-size: 12px;
    line-height: 26px;
  }
  .iii-case-summary {
    padding: 20px 15px;
  }
  .iii-case-summary__item,
  #main_content .iii-case-content {
    font-size: 14px;
  }
  #main_content .iii-case-content {
    --iii-case-indent: 0px;
  }
  .iii-case-company__row dt,
  .iii-case-company__row dd {
    font-size: 14px;
  }
  /* [CASE-5] 2026/11/08 ロゴを中央にそろえる */
  .iii-case-company__logo-img {
    margin-inline: auto;
  }
  .iii-case-related {
    padding: 40px 0 50px;
  }
}
