/* 事例紹介: 一覧と個別ページ */

/* ---- 共通 ---- */
.csTags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.csTag { padding: 3px 12px; border: 1px solid #393939; border-radius: 20px; font-size: 0.75rem; font-weight: bold; line-height: 1.4; letter-spacing: 0.04em; }
.csHeading { margin: 0 0 40px; }
.csHeading__main { display: block; font-family: "Heebo", sans-serif; font-weight: bold; font-size: 2rem; line-height: 1.2; }
.csHeading__sub { display: block; margin-top: 6px; font-size: 0.75rem; font-weight: bold; }

/* ---- 一覧 ---- */
.csLead { margin: 0 0 44px; font-weight: bold; line-height: 2; }
.csList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-bottom: 90px; }
.csCard { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; overflow: hidden; color: #393939; text-decoration: none; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s; }
.csCard:hover { text-decoration: none; transform: translateY(-6px); border-color: #cfcfcf; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1); }
.csCard__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f4f5; border-bottom: 1px solid #ececec; }
.csCard__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.csCard:hover .csCard__img img { transform: scale(1.05); }
.csCard__body { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; padding: 26px 30px 28px; }
/* カードの上辺に、ホバーで5色の線が左から伸びる */
.csCard__body::before { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 3px; background: linear-gradient(90deg, #00a8e0, #00a689, #edc03d, #dc336b, #b077b0); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.csCard:hover .csCard__body::before { transform: scaleX(1); }
.csCard__catch { margin: 0 0 10px; font-size: 1.375rem; font-weight: bold; line-height: 1.55; letter-spacing: 0.03em; }
.csCard__title { margin: 0 0 10px; font-weight: bold; color: #00a689; font-size: 0.875rem; }
.csCard__desc { margin: 0 0 16px; font-size: 0.875rem; line-height: 1.9; }
.csCard__scope { margin: 0 0 20px; color: #8a8a8a; font-size: 0.75rem; line-height: 1.7; }
.csCard__more { align-self: flex-start; margin-top: auto; padding-right: 30px; position: relative; font-size: 0.8125rem; font-weight: bold; }
.csCard__more::after { content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 1px; background: #393939; transition: width 0.3s, right 0.3s; }
.csCard:hover .csCard__more::after { width: 26px; right: -8px; }

/* 先頭の1件は横長の大きなカード */
.csCard_feature { grid-column: 1 / -1; flex-direction: row; }
.csCard_feature .csCard__img { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid #ececec; }
.csCard_feature .csCard__body { justify-content: center; padding: 40px 44px; }
.csCard_feature .csCard__body::before { top: 0; }
.csCard_feature .csCard__catch { font-size: 1.875rem; line-height: 1.5; margin-bottom: 14px; }
.csCard_feature .csCard__title { font-size: 1rem; }
.csCard_feature .csCard__more { margin-top: 8px; }

/* ---- 個別ページ: 冒頭 ---- */
.csHero { padding: 64px 0 70px; background: #f5f5f5; }
.csHero__inner { display: flex; align-items: center; gap: 60px; }
.csHero__text { flex: 1 1 46%; min-width: 0; }
.csHero__title { margin: 0 0 20px; font-size: 2.125rem; font-weight: bold; line-height: 1.5; letter-spacing: 0.04em; }
.csHero__title::after { content: ""; display: block; width: 96px; height: 4px; margin-top: 18px; background: linear-gradient(90deg, #00a8e0, #00a689, #edc03d, #dc336b, #b077b0); }
.csHero__lead { margin: 0 0 30px; font-size: 1.0625rem; font-weight: bold; line-height: 2; }
.csHero__meta { margin: 0; }
.csHero__metaItem { display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid #dcdcdc; font-size: 0.875rem; line-height: 1.8; }
.csHero__metaItem:last-child { border-bottom: 1px solid #dcdcdc; }
.csHero__metaItem dt { flex: 0 0 64px; font-family: "Heebo", sans-serif; font-weight: bold; }
.csHero__metaItem dd { margin: 0; }
.csHero__img { flex: 1 1 54%; min-width: 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }
.csHero__img img { display: block; width: 100%; height: auto; }

/* ---- 個別ページ: 取り組み ---- */
.csPoints { padding-top: 90px; padding-bottom: 30px; }
.csPoint { display: flex; align-items: flex-start; gap: 60px; padding: 48px 0; border-top: 1px solid #e3e3e3; }
.csPoint__text { flex: 1 1 0; min-width: 0; max-width: 46em; }
.csPoint__num { font-family: "Heebo", sans-serif; font-weight: 300; font-size: 3rem; line-height: 1; color: #c2c2c2; }
.csPoint__title { margin: 14px 0 16px; font-size: 1.625rem; font-weight: bold; line-height: 1.5; letter-spacing: 0.03em; }
.csPoint__body { margin: 0; line-height: 2.1; }
.csPoint__img { flex: 0 0 42%; }
.csPoint_hasImg:nth-of-type(even) { flex-direction: row-reverse; }

/* 拡大できる画像 */
.csZoom { position: relative; display: block; border: 1px solid #e3e3e3; border-radius: 6px; overflow: hidden; background: #fff; cursor: zoom-in; transition: box-shadow 0.35s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.csZoom img { display: block; width: 100%; height: auto; }
.csZoom:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12); }
.csZoom::after { content: "拡大"; position: absolute; right: 10px; bottom: 10px; padding: 3px 12px; border-radius: 20px; background: rgba(57, 57, 57, 0.85); color: #fff; font-size: 0.6875rem; font-weight: bold; letter-spacing: 0.08em; opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; }
.csZoom:hover::after { opacity: 1; transform: none; }
.csGallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding-bottom: 40px; }

/* 拡大表示 */
.csLightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 4vmin; background: rgba(20, 22, 26, 0.86); opacity: 0; transition: opacity 0.25s; cursor: zoom-out; }
.csLightbox.is-open { opacity: 1; }
.csLightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; background: #fff; transform: scale(0.97); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.csLightbox.is-open img { transform: none; }
.csLightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* ---- 個別ページ: その後 ---- */
.csResult { padding-top: 30px; padding-bottom: 90px; }
.csResult__box { display: flex; gap: 50px; padding: 40px 48px; border-left: 4px solid #00a689; background: #f2f8f6; }
.csResult__heading { flex: none; margin: 0; }
.csResult__main { display: block; font-family: "Heebo", sans-serif; font-weight: bold; font-size: 1.75rem; line-height: 1.2; color: #00a689; }
.csResult__sub { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: bold; }
.csResult__body { margin: 0; max-width: 44em; font-size: 1.0625rem; font-weight: bold; line-height: 2.1; }

/* ---- 個別ページ: ほかの事例 ---- */
.csOthers { padding: 80px 0 90px; background: #f5f5f5; }
.csList_others { margin-bottom: 50px; }
.csOthers__links { display: flex; justify-content: center; gap: 60px; }

/* ---- 幅が狭いとき ---- */
@media print, screen and (max-width: 930px) {
	.csList { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 60px; }
	.csCard_feature { flex-direction: column; }
	.csCard_feature .csCard__img { flex: none; aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid #ececec; }
	.csCard_feature .csCard__body { padding: 26px 30px 28px; }
	.csCard_feature .csCard__catch { font-size: 1.375rem; }
	.csHero { padding: 40px 0 46px; }
	.csHero__inner { flex-direction: column; align-items: stretch; gap: 34px; }
	.csHero__title { font-size: 1.5rem; }
	.csHero__lead { font-size: 0.9375rem; }
	.csPoints { padding-top: 56px; }
	.csPoint, .csPoint_hasImg:nth-of-type(even) { flex-direction: column; gap: 26px; padding: 36px 0; }
	.csPoint__img { flex: none; width: 100%; }
	.csPoint__num { font-size: 2.25rem; }
	.csPoint__title { font-size: 1.25rem; }
	.csGallery { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.csResult { padding-bottom: 56px; }
	.csResult__box { display: block; padding: 26px 22px; }
	.csResult__heading { margin-bottom: 14px; }
	.csResult__body { font-size: 0.9375rem; }
	.csOthers { padding: 50px 0 60px; }
	.csOthers__links { flex-direction: column; align-items: center; gap: 26px; }
}
@media print, screen and (max-width: 575px) {
	.csCard__body, .csCard_feature .csCard__body { padding: 20px 20px 24px; }
	.csCard__catch, .csCard_feature .csCard__catch { font-size: 1.1875rem; }
	.csHeading__main { font-size: 1.625rem; }
}

/* 概念図(SVG)と、画面写真の並び */
.csCard__img .csCard__figure { object-fit: contain; object-position: center; background: #f7f8f9; }
.csHero__img_figure { box-shadow: none; background: none; }
.csPoint__img_figure { border: 0; background: none; }
.csPoint__img_figure img { border-radius: 12px; }
.csPoint__img_figure::after { content: none; }
.csGallery { padding-top: 30px; }
.csGallery__heading { grid-column: 1 / -1; margin-bottom: 4px; }
.csGallery_3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.csLightbox img[src*=".svg"] { width: min(1100px, 100%); }
@media print, screen and (max-width: 930px) {
	.csGallery_3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* スマホ幅で図を拡大したときは、読める大きさ(横760px)で表示し、指で動かして見られるようにする */
@media print, screen and (max-width: 930px) {
	.csLightbox:has(img[src*=".svg"]) { display: block; overflow: auto; padding: 56px 12px 24px; -webkit-overflow-scrolling: touch; }
	.csLightbox img[src*=".svg"] { width: 760px; max-width: none; max-height: none; }
	.csPoint__img_figure::after { content: "タップで拡大"; opacity: 1; transform: none; }
}

.csGallery_1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.csOthers__lead { margin: 0 0 28px; text-align: center; font-weight: bold; line-height: 1.9; }
