/* ==========================================================================
   導入事例 記事ページ専用スタイル
   (base.css の変数・共通クラス [.container/.section/.heading-underline/
    .round-link+.round-ico/.js-reveal] のみを利用し、それ以外はこのファイルで完結させる)
   ========================================================================== */

.case-section { padding-top: calc(var(--header-h) + 32px); }
.case-back { margin-bottom: 32px; }
.case-back__ico { transform: scaleX(-1); }
.case-back:hover .case-back__ico { transform: scaleX(-1) scale(1.1); }

.case-article { max-width: 880px; margin: 0 auto; }

/* ---------- 記事ヘッダー ---------- */
.case-head__tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.case-head__title {
  margin-top: 20px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.case-head__sub {
  display: block;
  margin-top: 6px;
  font-size: 0.8em;
  color: var(--blue-dark);
}
.case-head__meta {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- 写真 ---------- */
.case-hero { margin-top: 32px; }
.case-hero img,
.case-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.case-photo { margin: 48px auto 0; max-width: 520px; }
.case-photo--wide { max-width: 640px; }
.case-block > .case-photo { margin-top: 24px; margin-bottom: 4px; }

/* ---------- 本文ブロック ---------- */
.case-block { margin-top: 56px; }

/* 文章の右横に写真を置く行(スマホでは写真が下) */
.case-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: stretch;
}
.case-row .case-block { margin-top: 0; }
/* 写真の上下の高さは、左の文章の高さに合わせる(はみ出す分は切り抜き) */
.case-row .case-photo { position: relative; margin: 0; max-width: none; }
.case-row .case-photo img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.case-block__title {
  position: relative;
  padding-left: 20px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.case-block__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: 3px;
  background: var(--blue);
}
.case-block > p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 2;
  color: var(--text);
}
.case-quote {
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--bg-gray);
  border-radius: 16px;
}
.case-quote p {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}
.case-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- プロフィール・成果 ---------- */
.case-summary {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-summary__col {
  background: var(--bg-gray2);
  border-radius: 16px;
  padding: 32px 36px;
}
.case-summary__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}
.case-profile div + div { margin-top: 14px; }
.case-profile dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
}
.case-profile dd {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.case-result { display: flex; flex-direction: column; gap: 12px; }
.case-result li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.case-result li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.case-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */
.case-faq { margin-top: 72px; }
.case-faq .heading-underline { margin-bottom: 24px; }
.case-faq__list > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.case-faq__list > div:first-child { border-top: 1px solid var(--line); }
.case-faq__list dt {
  position: relative;
  padding-left: 36px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.7;
}
.case-faq__list dt::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-en);
  font-size: 20px;
  color: var(--blue);
}
.case-faq__list dd {
  margin-top: 10px;
  padding-left: 36px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.case-faq__list ol {
  margin-top: 8px;
  padding-left: 1.4em;
  list-style: decimal;
}

.case-credit {
  margin-top: 56px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

@media (max-width: 900px) {
  .case-row { margin-top: 40px; grid-template-columns: 1fr; gap: 28px; }
  .case-row .case-photo { max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 5; }
  .case-block { margin-top: 40px; }
  .case-photo { margin-top: 32px; }
  .case-summary { grid-template-columns: 1fr; margin-top: 48px; }
  .case-faq { margin-top: 48px; }
}
@media (max-width: 600px) {
  .case-quote { padding: 22px 20px; }
  .case-summary__col { padding: 26px 22px; }
}
