@charset "UTF-8";
/*
 * お役立ち資料（resources）一覧・記事ページ用スタイル
 *
 * 新LP（plugins/myca-lp/style.css）のデザイントークンに合わせているが、
 * LPのCSSそのものは読み込まない。LP側は body / ul,ol / h1,h2,h3,p / a に
 * グローバルリセットを持っており、テーマのヘッダー・フッターを壊すため。
 *
 * テーマは html{font-size:vw} で rem がビューポート依存になるので、
 * このファイルでは rem を使わず px / clamp() で指定する。
 */

.rsc {
  --rsc-blue: #4a5cff;
  --rsc-violet: #8a4dff;
  --rsc-pink: #ff5fa0;
  --rsc-grad: linear-gradient(100deg, #4a5cff 0%, #8a4dff 50%, #ff5fa0 100%);
  --rsc-ink: #1c1a3a;
  --rsc-muted: #5f5d7a;
  --rsc-line: #ece8f6;
  --rsc-tint: #fbf9ff;
  --rsc-lav: #f3efff;
  --rsc-shadow: 0 16px 40px rgba(80, 60, 160, .10);
  --rsc-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  color: var(--rsc-ink);
  font-family: var(--rsc-font);
  font-size: 16px;
  line-height: 1.8;
}

.rsc__wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.rsc__sec { padding: 72px 0; }
.rsc__sec--tint { background: var(--rsc-tint); }

/* ---------- 見出し ---------- */

.rsc__head { margin-bottom: 40px; }

.rsc__head h1,
.rsc__head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .02em;
}

.rsc__head p {
  margin: 14px 0 0;
  color: var(--rsc-muted);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 一覧カード ---------- */

.rsc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rsc-cards > li { margin: 0; }

.rsc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 20px;
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.rsc-card:hover,
.rsc-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--rsc-shadow);
}

.rsc-card__fig {
  margin: 0;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: var(--rsc-lav);
  border-radius: 14px;
}

.rsc-card__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.rsc-card:hover .rsc-card__fig img { transform: scale(1.05); }

/* アイキャッチ未設定時は、altテキストが露出しないようプレースホルダを出す */
.rsc-card__fig--empty {
  display: grid;
  place-items: center;
  background: var(--rsc-lav);
}

.rsc-card__fig--empty span {
  color: var(--rsc-violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.rsc-card__title {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rsc-card__text {
  margin: 10px 0 0;
  color: var(--rsc-muted);
  font-size: 13px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rsc-card__more {
  margin-top: auto;
  padding-top: 16px;
  color: var(--rsc-violet);
  font-size: 13px;
  font-weight: 700;
}

.rsc-card__more i { font-style: normal; }

/* ---------- ページ送り ---------- */

.rsc-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.rsc-pager .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-radius: 999px;
  color: var(--rsc-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rsc-pager .page-numbers:hover { border-color: var(--rsc-violet); color: var(--rsc-violet); }

.rsc-pager .page-numbers.current {
  background: var(--rsc-grad);
  border-color: transparent;
  color: #fff;
}

/* ---------- 記事ヘッダー ---------- */

.rsc-hero {
  padding: 56px 0 48px;
  background: var(--rsc-tint);
  border-bottom: 1px solid var(--rsc-line);
}

.rsc-crumb {
  margin: 0 0 18px;
  color: var(--rsc-muted);
  font-size: 12px;
}

.rsc-crumb a { color: var(--rsc-muted); text-decoration: none; }
.rsc-crumb a:hover { color: var(--rsc-violet); }
.rsc-crumb span { margin: 0 6px; }

.rsc-hero h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .01em;
}

.rsc-hero time {
  display: inline-block;
  margin-top: 18px;
  color: var(--rsc-muted);
  font-size: 13px;
}

.rsc-hero__fig {
  margin: 28px 0 0;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: var(--rsc-lav);
  border-radius: 20px;
  box-shadow: var(--rsc-shadow);
}

.rsc-hero__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 本文 ---------- */

.rsc-body { padding: 64px 0 72px; }

.rsc-prose {
  width: min(760px, 100%);
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.95;
}

.rsc-prose > * + * { margin-top: 1.5em; }

.rsc-prose h2 {
  margin: 2.6em 0 0;
  padding-left: 16px;
  border-left: 5px solid transparent;
  border-image: var(--rsc-grad) 1;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 900;
  line-height: 1.55;
}

.rsc-prose h2 + * { margin-top: 1.1em; }

.rsc-prose h3 {
  margin: 2.2em 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800;
  line-height: 1.6;
}

.rsc-prose h3 + * { margin-top: .9em; }

/* 段落の上余白は .rsc-prose > * + * が担当する。
   ここで margin を 0 にすると同じ詳細度で打ち消してしまうため、下余白だけ落とす。 */
.rsc-prose p { margin-bottom: 0; }

.rsc-prose strong { font-weight: 800; }

.rsc-prose a {
  color: var(--rsc-violet);
  text-underline-offset: 3px;
}

.rsc-prose ul,
.rsc-prose ol {
  margin-bottom: 0;
  padding-left: 1.4em;
}

.rsc-prose ul { list-style: disc; }
.rsc-prose ol { list-style: decimal; }
.rsc-prose li { margin: 0; }
.rsc-prose li + li { margin-top: .5em; }

.rsc-prose figure { margin-bottom: 0; }

.rsc-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.8;
}

.rsc-prose thead th {
  background: var(--rsc-lav);
  color: var(--rsc-ink);
  font-weight: 800;
}

.rsc-prose th,
.rsc-prose td {
  padding: 12px 14px;
  border: 1px solid var(--rsc-line);
  text-align: left;
  vertical-align: top;
}

.rsc-prose img { max-width: 100%; height: auto; border-radius: 14px; }

/* ---------- 記事末CTA ---------- */

.rsc-cta {
  margin-top: 64px;
  padding: 40px 32px;
  background: var(--rsc-grad);
  border-radius: 24px;
  color: #fff;
  text-align: center;
}

.rsc-cta h2 {
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 900;
  line-height: 1.6;
}

.rsc-cta p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.9;
  opacity: .95;
}

.rsc-cta__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.rsc-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  border-radius: 999px;
  color: var(--rsc-violet);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease;
}

.rsc-cta__btn:hover { transform: translateY(-2px); }

.rsc-cta__btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .85);
  color: #fff;
}

/* ---------- 前後の記事 ---------- */

.rsc-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.rsc-nav__item {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease;
}

.rsc-nav__item:hover { border-color: var(--rsc-violet); }
.rsc-nav__item--next { text-align: right; }

.rsc-nav__label {
  display: block;
  color: var(--rsc-violet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.rsc-nav__title {
  display: -webkit-box;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 関連記事 ---------- */

.rsc-related { padding: 64px 0 80px; background: var(--rsc-tint); }

.rsc-related .rsc__head { margin-bottom: 32px; }

.rsc-related .rsc__head h2 { font-size: clamp(21px, 2.2vw, 28px); }

/* ---------- レスポンシブ ---------- */

@media (max-width: 1024px) {
  .rsc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 767px) {
  .rsc__wrap { width: calc(100% - 32px); }
  .rsc__sec { padding: 48px 0; }
  .rsc__head { margin-bottom: 28px; }
  .rsc-cards { grid-template-columns: 1fr; gap: 18px; }
  .rsc-hero { padding: 36px 0 32px; }
  .rsc-body { padding: 40px 0 48px; }
  .rsc-prose { font-size: 16px; line-height: 1.9; }
  .rsc-prose h2 { padding-left: 12px; border-left-width: 4px; }
  .rsc-prose table { font-size: 13px; }
  .rsc-prose th, .rsc-prose td { padding: 10px; }
  .rsc-cta { margin-top: 44px; padding: 30px 20px; border-radius: 18px; }
  .rsc-cta__btns { flex-direction: column; }
  .rsc-cta__btn { justify-content: center; }
  .rsc-nav { grid-template-columns: 1fr; margin-top: 40px; }
  .rsc-nav__item--next { text-align: left; }
  .rsc-related { padding: 44px 0 56px; }
}

/* 横スクロールする表はスワイプできるようにする */
@media (max-width: 640px) {
  .rsc-prose figure.wp-block-table { overflow-x: auto; }
  .rsc-prose figure.wp-block-table table { min-width: 460px; }
}

/* =========================================================================
 * 導入事例（case）
 * 一覧カードは店舗の identity（ロゴ・所在地）を前に出す。
 * 静的版（plugins/myca-lp/cases/）は店舗名が見出しだったので、その一覧性を引き継ぐ。
 * ========================================================================= */

.rsc-card--case { padding-bottom: 16px; }

.rsc-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.rsc-card__logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-radius: 10px;
}

.rsc-card__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.rsc-card__cat {
  padding: 3px 10px;
  color: var(--rsc-violet);
  background: var(--rsc-lav);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.rsc-card__access {
  margin: 10px 0 0;
  color: var(--rsc-muted);
  font-size: 12px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 事例の記事ヘッダー ---------- */

.rsc-hero__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  background: var(--rsc-grad);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.rsc-shop {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-radius: 16px;
}

.rsc-shop__logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-radius: 12px;
}

.rsc-shop__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.rsc-shop__body { min-width: 0; }

.rsc-shop__cat {
  display: inline-block;
  padding: 3px 10px;
  color: var(--rsc-violet);
  background: var(--rsc-lav);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.rsc-shop__access {
  margin: 8px 0 0;
  color: var(--rsc-muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .rsc-card__logo { width: 38px; height: 38px; }
  .rsc-shop { gap: 12px; padding: 14px; }
  .rsc-shop__logo { width: 46px; height: 46px; }
  .rsc-shop__access { font-size: 12px; }
}

/* ---------- ブロックエディタ（Gutenberg）のブロック ----------
 *
 * このサイトは wp-block-library を配信していない（段落と見出しのスタイルしか
 * 読み込まれない）。そのためグループブロックは padding が 0 になり、
 * 背景色付きの囲みは文字が枠に貼り付いて読めなくなる。
 * 記事中で実際に使われているブロックだけをここで補う。
 *
 * .wp-block-group を :where() で包んでいるのは詳細度を上げないため。
 * 上げると .rsc-prose h2 などの見出し余白を打ち消してしまう。
 */

/* グループの中にも本文と同じ行間リズムを与える */
.rsc-prose :where(.wp-block-group, blockquote, li) > * + * { margin-top: 1.5em; }

/* 背景色付きのグループ＝インタビューの囲み */
.rsc-prose .wp-block-group.has-background {
  padding: clamp(20px, 3.5vw, 32px);
  border-radius: 16px;
}

/* 区切り線 */
.rsc-prose .wp-block-separator {
  width: 120px;
  margin: 2.4em auto;
  border: 0;
  border-top: 1px solid var(--rsc-line);
}
.rsc-prose .wp-block-separator.is-style-wide { width: 100%; }

/* 引用 */
.rsc-prose blockquote {
  margin-bottom: 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--rsc-violet);
  color: var(--rsc-muted);
}

/* 画像とキャプション
   img は display:block なので text-align では中央に寄らない。margin で寄せる。 */
.rsc-prose figure.wp-block-image { text-align: center; }
.rsc-prose figure.wp-block-image img { margin-inline: auto; }
.rsc-prose figcaption {
  margin-top: 10px;
  color: var(--rsc-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

/* ギャラリー */
.rsc-prose .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
.rsc-prose .wp-block-gallery figure { flex: 1 1 200px; margin: 0; }
.rsc-prose .wp-block-gallery img { width: 100%; }

/* 埋め込み（X など） */
.rsc-prose .wp-block-embed { margin-bottom: 0; }
.rsc-prose .wp-block-embed__wrapper { display: flex; justify-content: center; }
.rsc-prose .wp-block-embed iframe { max-width: 100%; }

/* 動画 */
.rsc-prose .wp-block-video { margin-bottom: 0; }
.rsc-prose .wp-block-video video { width: 100%; height: auto; border-radius: 14px; }

@media (max-width: 640px) {
  .rsc-prose .wp-block-group.has-background { border-radius: 12px; }
}

/* ---------- 記事本文に残っている旧テーマの色指定を打ち消す ----------
 *
 * インタビュー形式の記事（23本）は、本文のほぼ全体（文字数で約93%）が
 * グループブロックに入っていて、そのグループに旧テーマの背景色
 * bg-primary（#eeeeef）が指定されている。
 * 一部を囲む想定だったものが本文全体を覆っているため、記事全体が
 * 灰色の板に見えて読みづらい。質問文の赤（#c50016）も旧ブランドの色で、
 * 今のLPの配色と合っていない。
 *
 * 記事を1本ずつ直すと23本ぶんの手作業になるので、表示側で打ち消す。
 * WordPress のプリセット色は !important 付きで出力されるため、
 * こちらも !important でないと上書きできない。
 */

/* 本文を覆っている灰色の板を外す。
   .wp-block-group.has-background に付けた余白もここでは不要になる。 */
.rsc-prose .wp-block-group.has-bg-primary-background-color {
  padding: 0;
  background-color: transparent !important;
  border-radius: 0;
}

/* 質問文はインタビューの流れを追う手がかりなので、色を消すのではなく
   LPのアクセント色に置き換える。 */
.rsc-prose .has-color-red-color {
  color: var(--rsc-violet) !important;
  font-weight: 700;
}

/* 本文中の黒指定は、他の段落と同じ濃紺に揃える。 */
.rsc-prose .has-color-black-color { color: var(--rsc-ink) !important; }

/* ---------- 旧テーマの区切りラベル（導入前の課題／導入後の変化など） ----------
 *
 * 21本の記事で使われている。本文が画面幅いっぱいだった旧デザイン向けに、
 * 左へはみ出す指定（margin-left のマイナス）と旧ブランドの赤が入っている。
 * 本文を760pxの中央寄せにした今のデザインでは、スマホで画面の外に切れて
 * 文字が欠ける。位置と色をLPに合わせて置き直す。
 */
.rsc-prose .p-single-section {
  display: inline-block;
  margin: 2.8em 0 0;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--rsc-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.6;
}

/* 赤い板は擬似要素で描かれているので、それ自体を出さない。 */
.rsc-prose .p-single-section::before { content: none; }

/* ラベルの直後の見出しは、ラベルとひとかたまりに見せる。 */
.rsc-prose .p-single-section + * { margin-top: 1em; }

/* =========================================================================
 * お知らせ（news）
 *
 * 一覧はカードではなく日付つきの行にしている。
 * お知らせは「いつ何があったか」を上から順に追う読み方をするので、
 * 画像つきのカードより、日付が縦に揃っている方が探しやすい。
 * ========================================================================= */

/* ---------- カテゴリーの札 ---------- */

.rsc-newscat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--rsc-lav);
  color: var(--rsc-violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
  white-space: nowrap;
}

/* 用途ごとに色を変える。一覧で種類を見分けるための区別なので、
   彩度は上げすぎず、タイトルより目立たない範囲にとどめる。 */
.rsc-newscat--press    { background: #eef0ff; color: var(--rsc-blue); }
.rsc-newscat--campaign { background: #ffeef5; color: #d93d77; }

/* ---------- 絞り込み ---------- */

.rsc-newsfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.rsc-newsfilter__item {
  padding: 8px 18px;
  border: 1px solid var(--rsc-line);
  border-radius: 50px;
  background: #fff;
  color: var(--rsc-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.rsc-newsfilter__item:hover { border-color: var(--rsc-violet); color: var(--rsc-violet); }

.rsc-newsfilter__item.is-current {
  border-color: transparent;
  background: var(--rsc-grad);
  color: #fff;
}

/* ---------- 一覧 ---------- */

.rsc-newslist {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rsc-line);
  list-style: none;
}

.rsc-newslist__item { border-bottom: 1px solid var(--rsc-line); }

.rsc-newslist__item > a {
  display: grid;
  grid-template-columns: 210px 1fr 24px;
  align-items: center;
  gap: 0 20px;
  padding: 22px 8px;
  color: inherit;
  text-decoration: none;
  transition: background-color .2s;
}

.rsc-newslist__item > a:hover { background: var(--rsc-tint); }

.rsc-newslist__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rsc-newslist__meta time {
  color: var(--rsc-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.rsc-newslist__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.rsc-newslist__item > a:hover .rsc-newslist__title { color: var(--rsc-violet); }

.rsc-newslist__arrow {
  color: var(--rsc-muted);
  font-size: 20px;
  text-align: right;
  transition: transform .2s, color .2s;
}

.rsc-newslist__item > a:hover .rsc-newslist__arrow {
  color: var(--rsc-violet);
  transform: translateX(3px);
}

.rsc-newslist__empty {
  padding: 40px 0;
  color: var(--rsc-muted);
  text-align: center;
}

/* ---------- 記事ページ ---------- */

/* 一覧へ戻る導線。前後送りの下に置く。 */
.rsc-backto {
  margin-top: 28px;
  text-align: center;
}

.rsc-backto a {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--rsc-line);
  border-radius: 50px;
  color: var(--rsc-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.rsc-backto a:hover { border-color: var(--rsc-violet); color: var(--rsc-violet); }

/* 記事ページのカテゴリー札は、見出しとの間を空ける。 */
.rsc-hero .rsc-newscat { margin-bottom: 14px; }

@media (max-width: 767px) {

  /* 日付とタイトルを横に並べると、どちらも折り返して読みにくい。
     スマホでは日付・カテゴリーを上の行に送る。 */
  .rsc-newslist__item > a {
    grid-template-columns: 1fr 20px;
    gap: 8px 12px;
    padding: 18px 4px;
  }

  .rsc-newslist__meta { grid-column: 1 / -1; }
  .rsc-newslist__title { font-size: 15px; }
  .rsc-newsfilter { gap: 6px; margin-bottom: 22px; }
  .rsc-newsfilter__item { padding: 7px 14px; font-size: 12px; }
}
