@charset "UTF-8";
/* blocks.css：ブロックエディター（blockeditor プラグイン）が自動で作るファイル。直接編集しない（管理画面「ブロック管理」で SCSS を編集する） */

/* ===== 共通 ===== */
@charset "UTF-8";
/* ブロックの共通 SCSS（初期値）。管理画面「ブロック管理」で編集できる。
   公開ページとブロックエディターの両方で読み込まれる。クラスは cb- で始める。
   ブロックごとの見た目は、各ブロックの SCSS（assets/scss/*.scss が初期値）に書く。
   どの指定も :where() で詳細度を 0 にしてあるので、サイトのテーマ側の指定がいつも勝つ。 */
/* 色・線・角丸はここで変えれば全ブロックに効く */
:root {
  --cb-accent: #1f2430; /* ボタン・引用の線など */
  --cb-accent-contrast: #fff; /* --cb-accent の上の文字色 */
  --cb-primary: #2563eb; /* 「目立たせる」ボタン */
  --cb-line: #d9dce1; /* 罫線 */
  --cb-subtle: #f6f7f7; /* 薄い背景（表の見出し・コード） */
  --cb-caption: 13px; /* キャプションの文字サイズ */
  --cb-radius: 6px;
}

/* 文字サイズ（ブロックの「タイポグラフィ」） */
:where(.cb-fs-s) {
  font-size: 14px;
}

:where(.cb-fs-m) {
  font-size: 17px;
}

:where(.cb-fs-l) {
  font-size: 22px;
}

:where(.cb-fs-xl) {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.4;
}

/* 背景（ブロックの「背景」）。背景を付けたブロックには内側の余白を付ける */
:where(.cb-has-bg) {
  padding: 16px 20px;
}

:where(.cb-grad-1) {
  background-image: linear-gradient(135deg, #0693e3, #9b51e0);
}

:where(.cb-grad-2) {
  background-image: linear-gradient(135deg, #ff6900, #f78da7);
}

:where(.cb-grad-3) {
  background-image: linear-gradient(135deg, #00a32a, #8ed1fc);
}

:where(.cb-grad-4) {
  background-image: linear-gradient(135deg, #ffffff, #d1d5db);
}

/* ===== 見出し（mid 1） ===== */
:where(.mv-mod-h1, .mv-mod-h2, .mv-mod-h3, .mv-mod-h4, .mv-mod-h5, .mv-mod-h6) {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
:where(.mv-mod-h1, .mv-mod-h2, .mv-mod-h3, .mv-mod-h4, .mv-mod-h5, .mv-mod-h6) .ja {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

:where(.mv-mod-h1) {
  font-size: clamp(26px, 3.2vw, 34px);
}

:where(.mv-mod-h2) {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cb-accent);
  font-size: clamp(22px, 2.6vw, 28px);
}

:where(.mv-mod-h3) {
  padding-left: 12px;
  border-left: 4px solid var(--cb-accent);
  font-size: clamp(19px, 2.1vw, 22px);
}

:where(.mv-mod-h4) {
  font-size: 18px;
}

:where(.mv-mod-h5) {
  font-size: 16px;
}

:where(.mv-mod-h6) {
  font-size: 14px;
}

/* ===== 本文（エディター）（mid 2） ===== */
@charset "UTF-8";
:where(.mod_cont > .editor) {
  line-height: 1.9;
  overflow-wrap: anywhere;
}
:where(.mod_cont > .editor) > * {
  margin-top: 0;
  margin-bottom: 1em;
}
:where(.mod_cont > .editor) > :last-child {
  margin-bottom: 0;
}
:where(.mod_cont > .editor) a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
:where(.mod_cont > .editor) a:hover {
  text-decoration: none;
}
:where(.mod_cont > .editor) strong, :where(.mod_cont > .editor) b {
  font-weight: 700;
}
:where(.mod_cont > .editor) mark {
  padding: 0 2px;
  background: #fff3a3;
  color: inherit;
}
:where(.mod_cont > .editor) code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--cb-subtle);
  font-family: Consolas, Menlo, monospace;
  font-size: 0.9em;
}
:where(.mod_cont > .editor) img {
  max-width: 100%;
  height: auto;
}
:where(.mod_cont > .editor) ul, :where(.mod_cont > .editor) ol {
  padding-left: 1.6em;
}
:where(.mod_cont > .editor) ul {
  list-style: disc;
}
:where(.mod_cont > .editor) ol {
  list-style: decimal;
}
:where(.mod_cont > .editor) li + li {
  margin-top: 0.3em;
}
:where(.mod_cont > .editor) li > ul, :where(.mod_cont > .editor) li > ol {
  margin: 0.3em 0 0;
}
:where(.mod_cont > .editor) blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--cb-accent);
}
:where(.mod_cont > .editor) blockquote p {
  margin: 0 0 0.6em;
}
:where(.mod_cont > .editor) blockquote > :last-child {
  margin-bottom: 0;
}
:where(.mod_cont > .editor) blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: var(--cb-caption);
  font-style: normal;
  opacity: 0.7;
}
:where(.mod_cont > .editor) blockquote cite::before {
  content: "— ";
}
:where(.mod_cont > .editor) hr {
  height: 0;
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--cb-line);
}

:where(.mod_cont > .editor, .cb-content) .cb-table {
  margin-left: 0;
  margin-right: 0;
  overflow-x: auto;
}
:where(.mod_cont > .editor, .cb-content) .cb-table table {
  width: 100%;
  border-collapse: collapse;
}
:where(.mod_cont > .editor, .cb-content) .cb-table th, :where(.mod_cont > .editor, .cb-content) .cb-table td {
  padding: 10px 12px;
  border: 1px solid var(--cb-line);
  text-align: left;
  vertical-align: top;
}
:where(.mod_cont > .editor, .cb-content) .cb-table th {
  background: var(--cb-subtle);
  font-weight: 700;
}
:where(.mod_cont > .editor, .cb-content) .cb-table.is-striped tbody tr:nth-child(odd) td {
  background: #fafafa;
}
:where(.mod_cont > .editor, .cb-content) .cb-table figcaption {
  margin-top: 6px;
  font-size: var(--cb-caption);
  opacity: 0.7;
  text-align: center;
}

/* ===== 画像1枚（mid 3） ===== */
:where(div.block) > picture {
  display: block;
}

:where(div.block) > picture img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ===== リンクボタン（mid 5） ===== */
:where(.btn_list) ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.btn_list) li {
  flex-shrink: 0;
  margin: 0;
}
:where(.btn_list) ul.col2 li {
  flex: 1 1 calc((100% - 12px) / 2);
}
:where(.btn_list) ul.col3 li {
  flex: 1 1 calc((100% - 24px) / 3);
}
:where(.btn_list) ul.col4 li {
  flex: 1 1 calc((100% - 36px) / 4);
}
:where(.btn_list) li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 2px solid var(--cb-accent);
  border-radius: 999px;
  background: var(--cb-accent);
  color: var(--cb-accent-contrast);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
:where(.btn_list) li a:hover {
  opacity: 0.85;
}
:where(.btn_list) li a:focus-visible {
  outline: 2px solid var(--cb-primary);
  outline-offset: 2px;
}
:where(.btn_list) ul.col2 li a, :where(.btn_list) ul.col3 li a, :where(.btn_list) ul.col4 li a {
  width: 100%;
  white-space: normal;
}
:where(.btn_list) li a.primary {
  border-color: var(--cb-primary);
  background: var(--cb-primary);
}
:where(.btn_list) li a.outline {
  background: transparent;
  color: var(--cb-accent);
}
:where(.btn_list) li a.red {
  border-color: #d63638;
  background: #d63638;
}
:where(.btn_list) li a.arrow::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  :where(.btn_list) ul.col3 li, :where(.btn_list) ul.col4 li {
    flex-basis: 100%;
  }
}

/* ===== コード（mid 81） ===== */
:where(.cb-code) {
  margin: 0;
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: var(--cb-radius);
  background: #1f2430;
  color: #e8eaf0;
  font-family: Consolas, Menlo, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre;
  tab-size: 2;
}

/* ===== 整形済みテキスト（mid 82） ===== */
:where(.cb-preformatted) {
  margin: 0;
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: var(--cb-radius);
  background: var(--cb-subtle);
  font-family: Consolas, Menlo, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 詩（mid 83） ===== */
:where(.cb-verse) {
  margin: 0;
  padding: 8px 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== プルクオート（mid 84） ===== */
:where(.cb-pullquote) {
  margin: 0;
  padding: 28px 16px;
  border-top: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  text-align: center;
}
:where(.cb-pullquote) blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}
:where(.cb-pullquote) p {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.6;
}
:where(.cb-pullquote) cite {
  display: block;
  margin-top: 12px;
  font-size: var(--cb-caption);
  font-style: normal;
  opacity: 0.7;
}

/* ===== 詳細（開閉）（mid 85） ===== */
:where(.cb-details) {
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
}
:where(.cb-details) summary {
  position: relative;
  padding: 12px 44px 12px 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
:where(.cb-details) summary::-webkit-details-marker {
  display: none;
}
:where(.cb-details) summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
:where(.cb-details)[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

:where(.cb-details__body) {
  padding: 0 16px 14px;
  line-height: 1.8;
}

/* ===== ギャラリー（mid 86） ===== */
:where(.cb-gallery) ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.cb-gallery).cb-gallery--cols-2 ul {
  grid-template-columns: repeat(2, 1fr);
}
:where(.cb-gallery).cb-gallery--cols-4 ul {
  grid-template-columns: repeat(4, 1fr);
}
:where(.cb-gallery) figure {
  margin: 0;
}
:where(.cb-gallery) img {
  display: block;
  width: 100%;
  height: auto;
}
:where(.cb-gallery).is-cropped img {
  aspect-ratio: 1/1;
  object-fit: cover;
}
:where(.cb-gallery) figcaption {
  margin-top: 4px;
  font-size: var(--cb-caption);
  opacity: 0.75;
}

@media (max-width: 640px) {
  :where(.cb-gallery).cb-gallery--cols-3 ul, :where(.cb-gallery).cb-gallery--cols-4 ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 音声（mid 87） ===== */
:where(.cb-audio) {
  margin: 0;
}
:where(.cb-audio) audio {
  display: block;
  width: 100%;
}
:where(.cb-audio) figcaption {
  margin-top: 6px;
  font-size: var(--cb-caption);
  opacity: 0.7;
  text-align: center;
}

/* ===== 動画（mid 88） ===== */
:where(.cb-video) {
  margin: 0;
}
:where(.cb-video) video {
  display: block;
  width: 100%;
  height: auto;
}
:where(.cb-video) figcaption {
  margin-top: 6px;
  font-size: var(--cb-caption);
  opacity: 0.7;
  text-align: center;
}

/* ===== ファイルダウンロード（mid 89） ===== */
:where(.cb-file) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
}

:where(.cb-file__link) {
  overflow-wrap: anywhere;
}

:where(.cb-file__button) {
  display: inline-block;
  flex-shrink: 0;
  margin-left: auto;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--cb-accent);
  color: var(--cb-accent-contrast);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
:where(.cb-file__button):hover {
  opacity: 0.85;
}

/* ===== カバー（mid 90） ===== */
:where(.cb-cover) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  padding: 40px 24px;
  color: #fff;
}
:where(.cb-cover).cb-cover--left {
  justify-content: flex-start;
  text-align: left;
}
:where(.cb-cover).cb-cover--right {
  justify-content: flex-end;
  text-align: right;
}
:where(.cb-cover).cb-cover--center {
  text-align: center;
}

:where(.cb-cover__bg) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.cb-cover__overlay) {
  position: absolute;
  inset: 0;
}

:where(.cb-cover__inner) {
  position: relative;
  max-width: 760px;
}

:where(.cb-cover__title) {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.3;
}

:where(.cb-cover__text) {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  :where(.cb-cover) {
    min-height: 240px;
    padding: 32px 16px;
  }
}

/* ===== メディアと文章（mid 91） ===== */
:where(.cb-media-text) {
  display: grid;
  grid-template-columns: var(--cb-media-width, 50%) 1fr;
  align-items: center;
  gap: 32px;
}
:where(.cb-media-text).is-media-right {
  grid-template-columns: 1fr var(--cb-media-width, 50%);
}
:where(.cb-media-text).is-media-right .cb-media-text__media {
  order: 2;
}

:where(.cb-media-text__media) {
  margin: 0;
}
:where(.cb-media-text__media) img {
  display: block;
  width: 100%;
  height: auto;
}

:where(.cb-media-text__title) {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

:where(.cb-media-text__content) {
  line-height: 1.8;
}

@media (max-width: 640px) {
  :where(.cb-media-text) {
    gap: 16px;
  }
  :where(.cb-media-text), :where(.cb-media-text).is-media-right {
    grid-template-columns: 1fr;
  }
  :where(.cb-media-text).is-media-right .cb-media-text__media {
    order: 0;
  }
}

/* ===== スペーサー（mid 92） ===== */
:where(.cb-spacer) {
  display: block;
  clear: both;
}

/* ===== カラム開始▼（mid 93） ===== */
:where(.cb-columns) {
  display: flex;
  gap: var(--cb-gap, 24px);
}
:where(.cb-columns) > .cb-column {
  flex: 1 1 0;
  min-width: 0;
}
:where(.cb-columns).cb-columns--wide-left > .cb-column:first-child {
  flex-grow: 2;
}
:where(.cb-columns).cb-columns--wide-right > .cb-column:last-child {
  flex-grow: 2;
}

@media (max-width: 640px) {
  :where(.cb-columns.is-stack-sp) {
    flex-direction: column;
  }
}

/* ===== グループ開始▼（mid 96） ===== */
:where(.cb-group--row) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

:where(.cb-group--stack) > * + * {
  margin-top: 16px;
}

/* ===== 最新の投稿（mid 99） ===== */
:where(.cb-latest-posts) {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.cb-latest-posts__item) {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cb-line);
}
:where(.cb-latest-posts__item) time {
  flex-shrink: 0;
  opacity: 0.7;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
:where(.cb-latest-posts__item) a {
  color: inherit;
  text-decoration: none;
}
:where(.cb-latest-posts__item) a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  :where(.cb-latest-posts__item) {
    flex-direction: column;
    gap: 2px;
  }
}

/* ===== 検索（mid 100） ===== */
:where(.cb-search) {
  display: flex;
  gap: 8px;
}
:where(.cb-search) input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  font-size: 16px;
}
:where(.cb-search) button {
  flex-shrink: 0;
  padding: 0 18px;
  border: 0;
  border-radius: var(--cb-radius);
  background: var(--cb-accent);
  color: var(--cb-accent-contrast);
  white-space: nowrap;
  cursor: pointer;
}
:where(.cb-search) button:hover {
  opacity: 0.85;
}

/* ===== ソーシャルアイコン（mid 101） ===== */
:where(.cb-social) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.cb-social) li {
  flex-shrink: 0;
}

:where(.cb-social__link) {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
:where(.cb-social__link):hover {
  border-color: var(--cb-accent);
  background: var(--cb-accent);
  color: var(--cb-accent-contrast);
}

/* ===== 埋め込み（mid 102） ===== */
:where(.cb-embed) {
  margin: 0;
}
:where(.cb-embed) figcaption {
  margin-top: 6px;
  font-size: var(--cb-caption);
  opacity: 0.7;
  text-align: center;
}

:where(.cb-embed__frame) {
  position: relative;
  aspect-ratio: 16/9;
}
:where(.cb-embed__frame) iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== ページ区切り線（mid 42） ===== */
:where(.mod_line) {
  height: 0;
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--cb-line);
}
