/* ==========================================================================
   実績ページ（Notion の開発実績）・記事ページ（note）の一覧
   サイト全体の見た目（グレー地・白いカード・青のグラデーション・Poppins の英字見出し）に合わせています。
   ========================================================================== */

.cms { width: 100%; padding: 40px 0 120px; }
.cms__inner { width: 1200px; max-width: calc(100% - 160px); margin: 0 auto; }
.cms__lead { font-family: var(--ff-body); font-size: 18px; line-height: 1.8; color: #000; margin: 0 0 80px; }
.cms__block { margin: 0 0 100px; }
.cms__block:last-child { margin-bottom: 0; }
.cms__head { margin: 0 0 32px; }
.cms__en {
  font-family: var(--ff-en); font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: .05em;
  background: linear-gradient(90deg, #19418e 0%, #89aaea 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; margin: 0 0 10px;
}
.cms__ja { display: flex; align-items: center; font-family: var(--ff-heading); font-size: 20px; font-weight: 700; line-height: 1.4; color: #000; }
.cms__bar { width: 20px; height: 1px; margin: 0 10px 0 0; background: #000; }
.cms__note { font-family: var(--ff-body); font-size: 14px; line-height: 1.8; color: #575757; margin: -12px 0 32px; }
.cms__more {
  display: inline-flex; align-items: center; gap: 6px; margin: 40px 0 0; padding: 0 0 4px;
  font-family: var(--ff-heading); font-size: 16px; font-weight: 700; color: #19418e;
  border-bottom: 1px solid currentColor; transition: opacity .4s;
}
.cms__more:hover { opacity: .6; }
.cms .material-symbols-outlined { font-size: 1.1em; line-height: 1; }

/* ---------- メディア掲載 ---------- */
.media-list { border-top: 1px solid #000; }
.media-list__item { display: flex; align-items: baseline; gap: 40px; padding: 24px 0; border-bottom: 1px solid #c8c8c8; }
.media-list__date { flex: none; width: 110px; font-family: var(--ff-en); font-size: 15px; font-weight: 500; color: #19418e; }
.media-list__text { font-family: var(--ff-body); font-size: 17px; line-height: 1.6; color: #000; }

/* ---------- 開発実績 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.case-card { display: flex; flex-direction: column; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); overflow: hidden; }
.case-card__visual { aspect-ratio: 16 / 10; background: #f5f6f8; overflow: hidden; }
.case-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.case-card__visual--icon {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #19418e 0%, #89aaea 100%);
}
.cms .case-card__visual--icon i { font-size: 72px; color: rgba(255, 255, 255, .92); }
.case-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 28px; }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.case-card__tag { padding: 3px 12px; border-radius: 24px; background: #eee; font-family: var(--ff-heading); font-size: 12px; font-weight: 700; color: #333; }
.case-card__title { font-family: var(--ff-heading); font-size: 20px; font-weight: 700; line-height: 1.5; color: #000; margin: 0 0 14px; }
.case-card__sub { display: block; font-size: 13px; color: #575757; margin: 2px 0 0; }
.case-card__rows { margin: 0 0 12px; }
.case-card__row { display: flex; gap: 12px; padding: 6px 0; border-top: 1px dotted #c8c8c8; font-family: var(--ff-body); font-size: 14px; line-height: 1.6; }
.case-card__row:last-child { border-bottom: 1px dotted #c8c8c8; }
.case-card__row dt { flex: none; width: 7em; color: #575757; }
.case-card__row dd { margin: 0; color: #000; }
.case-card__note { font-family: var(--ff-body); font-size: 14px; line-height: 1.8; color: #333; }
.case-card__links { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 18px 0 0; }
.case-card__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 24px;
  border: 1px solid #19418e; font-family: var(--ff-heading); font-size: 13px; font-weight: 700; color: #19418e;
  transition: background .3s, color .3s;
}
.case-card__link:hover { background: #19418e; color: #fff; }

/* ---------- その他のジャンル ---------- */
.genre-list { display: flex; flex-wrap: wrap; gap: 10px; }
.genre-list__item { padding: 10px 20px; border-radius: 32px; background: #fff; font-family: var(--ff-heading); font-size: 15px; font-weight: 700; color: #333; }

/* ---------- お客様の声 ---------- */
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.review { position: relative; padding: 36px 36px 32px; background: #fff; }
.review::before {
  content: "“"; position: absolute; top: 4px; left: 20px;
  font-family: var(--ff-en); font-size: 72px; font-weight: 600; line-height: 1; color: #dbe1e1;
}
.review__title { position: relative; font-family: var(--ff-heading); font-size: 18px; font-weight: 700; line-height: 1.6; color: #19418e; margin: 0 0 16px; }
.review__body p { font-family: var(--ff-body); font-size: 14px; line-height: 1.9; color: #333; margin: 0 0 8px; }
.review__who { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid #eee; font-family: var(--ff-heading); font-size: 14px; font-weight: 700; color: #000; }
.review__who span { margin: 0 0 0 12px; font-size: 12px; font-weight: 500; color: #757575; }

/* ---------- 記事（note） ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-card { display: flex; flex-direction: column; background: #fff; overflow: hidden; transition: transform .4s, box-shadow .4s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.article-card__visual { aspect-ratio: 1280 / 670; background: #f5f6f8; overflow: hidden; }
.article-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
.article-card:hover .article-card__visual img { scale: 1.04; }
.article-card__noimage {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 24px;
  background: linear-gradient(135deg, #19418e 0%, #89aaea 100%);
}
.article-card__noimage span { font-family: var(--ff-heading); font-size: 18px; font-weight: 700; line-height: 1.5; color: #fff; text-align: center; }
.article-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.article-card__date { font-family: var(--ff-en); font-size: 13px; font-weight: 500; color: #757575; margin: 0 0 8px; }
.article-card__title { font-family: var(--ff-heading); font-size: 17px; font-weight: 700; line-height: 1.6; color: #000; margin: 0 0 16px; }
.article-card__more { display: inline-flex; align-items: center; gap: 4px; margin: auto 0 0; font-family: var(--ff-heading); font-size: 13px; font-weight: 700; color: #19418e; }

/* ---------- 画面幅ごとの調整（元サイトのブレークポイントに合わせる） ---------- */
@media screen and (max-width: 1140px) {
  .case-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 840px) {
  .cms__inner { max-width: calc(100% - 100px); }
  .review-list { grid-template-columns: 1fr; }
}
@media screen and (max-width: 540px) {
  .cms { padding: 20px 0 80px; }
  .cms__inner { max-width: calc(100% - 60px); }
  .cms__lead { font-size: 15px; margin-bottom: 56px; }
  .cms__block { margin-bottom: 72px; }
  .cms__en { font-size: 36px; }
  .cms__ja { font-size: 18px; }
  .case-grid, .article-grid { grid-template-columns: 1fr; gap: 24px; }
  .media-list__item { flex-direction: column; gap: 4px; padding: 18px 0; }
  .media-list__text { font-size: 15px; }
  .review { padding: 32px 22px 24px; }
  .genre-list__item { font-size: 13px; padding: 8px 16px; }
}

/* ---------- 記事ページ（本文） ---------- */
.cms--post { padding-top: 20px; }
.article { width: 820px; max-width: calc(100% - 160px); }
.article__head { margin: 0 0 32px; }
.article__date { display: block; font-family: var(--ff-en); font-size: 14px; font-weight: 500; color: #757575; margin: 0 0 12px; }
.article__title { font-family: var(--ff-heading); font-size: 32px; font-weight: 700; line-height: 1.5; color: #000; margin: 0 0 16px; }
.article__author { font-family: var(--ff-body); font-size: 14px; color: #575757; }
.article__visual { margin: 0 0 48px; background: #fff; }
.article__visual img { width: 100%; height: auto; }
.article__body { padding: 56px 64px; background: #fff; font-family: var(--ff-body); font-size: 16px; line-height: 2; color: #222; overflow-wrap: anywhere; }
.article__body > * + * { margin-top: 1.4em; }
.article__body h2 {
  margin-top: 2.6em; padding: 0 0 12px; border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #19418e 0%, #89aaea 100%) 1;
  font-family: var(--ff-heading); font-size: 24px; font-weight: 700; line-height: 1.5; color: #000;
}
.article__body h3 { margin-top: 2.2em; padding: 0 0 0 14px; border-left: 4px solid #19418e; font-family: var(--ff-heading); font-size: 20px; font-weight: 700; line-height: 1.5; color: #000; }
.article__body h2 + *, .article__body h3 + * { margin-top: 1em; }
.article__body strong { font-weight: 700; background: linear-gradient(transparent 62%, #dbe4f7 62%); }
.article__body em { font-style: normal; }
.article__body a { color: #19418e; text-decoration: underline; text-underline-offset: 3px; }
.article__body ul { padding: 0 0 0 1.4em; }
.article__body ul li { list-style: disc; margin: .3em 0; }
.article__body hr { border: 0; border-top: 1px solid #ddd; margin: 2.4em 0; }
.article__body blockquote { padding: 16px 20px; border-left: 4px solid #dbe1e1; background: #f6f7f8; color: #444; }
.article__body figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.article__body figcaption { margin: 8px 0 0; font-size: 13px; color: #757575; text-align: center; }
.article__body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; display: block; overflow-x: auto; }
.article__body th, .article__body td { padding: 10px 12px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.article__body th { background: #f3f5f9; font-weight: 700; }
.article-embed { position: relative; aspect-ratio: 16 / 9; }
.article-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article__body .article-linkcard {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid #ddd; border-radius: 8px;
  color: #000; text-decoration: none; transition: background .3s;
}
.article__body .article-linkcard:hover { background: #f6f7f8; }
.article__body .article-linkcard strong { background: none; font-size: 15px; }
.article__body .article-linkcard span { font-size: 12px; color: #757575; }
.article__cta { margin: 48px 0 0; padding: 40px; background: linear-gradient(135deg, #19418e 0%, #89aaea 100%); text-align: center; }
.article__cta-lead { font-family: var(--ff-heading); font-size: 20px; font-weight: 700; line-height: 1.7; color: #fff; margin: 0 0 24px; }
.article__cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.article__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; height: 56px; padding: 0 24px; border: 1px solid #fff; border-radius: 48px; font-family: var(--ff-heading); font-size: 16px; font-weight: 700; color: #fff; transition: background .3s, color .3s; }
.article__btn:hover { background: #fff; color: #19418e; }
.article__btn--primary { background: #fff; color: #19418e; }
.article__btn--primary:hover { background: transparent; color: #fff; }
@media screen and (max-width: 840px) {
  .article { max-width: calc(100% - 100px); }
  .article__body { padding: 40px 32px; }
}
@media screen and (max-width: 540px) {
  .article { max-width: calc(100% - 40px); }
  .article__title { font-size: 24px; }
  .article__body { padding: 28px 20px; font-size: 15px; line-height: 1.9; }
  .article__body h2 { font-size: 20px; }
  .article__body h3 { font-size: 17px; }
  .article__cta { padding: 32px 20px; }
  .article__cta-lead { font-size: 17px; }
  .article__btn { width: 100%; }
}
.article-toc { padding: 24px 28px; background: #f6f7f8; border-radius: 8px; }
.article-toc__title { font-family: var(--ff-heading); font-size: 16px; font-weight: 700; color: #000; margin: 0 0 8px; }
.article-toc ol { padding: 0; margin: 0; counter-reset: toc; }
.article-toc li { list-style: none; margin: .35em 0; line-height: 1.6; font-size: 15px; }
.article-toc .toc__h3 { padding-left: 1.4em; font-size: 14px; }
.article-toc a { color: #19418e; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.article__body h2, .article__body h3 { scroll-margin-top: 100px; }
.article__body figure img.is-portrait { width: 360px; }
