/* =========================
   New block page styles
   既存CSSとは切り離して管理
   ========================= */
.new-block-page {
    background-color: #f0f2f3;
}
.new-block-page .page-container {
    max-width: 1120px;
    margin: 70px auto;
    padding: 10px 25px;
    background-color: #fff;
    font-size: 18px;
    line-height: 1.6;
    position: relative;
}
@media (max-width: 767px) {
  .new-block-page .page-container {
    font-size: 15px;
    letter-spacing: 0;
    margin-top: 0;
  }
}

/* Reset 打ち消し */
.new-block-page span {
  font-weight: inherit;
}

/* new-block-pageでは a はテキストリンク扱いに戻す */
.new-block-page a {
  display: inline;
  color: #152b78;
  text-decoration: underline;
}

/* パンくずリスト */
.new-block-page .breadcrumb {
  position: absolute;
  top: -50px;               /* 白枠の上へはみ出す */
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;             /* ブラウザ幅いっぱい */
  padding-left: 25px;       /* 画面左端の余白に合わせる */
  box-sizing: border-box;
}
.new-block-page .breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 0.75rem;
  padding: 0;
  margin: 0;
}
.new-block-page .breadcrumb li + li::before {
  content: "／";
  margin: 0 .6em; /* 記号の左右の余白 */
}
.new-block-page .breadcrumb li a {
  text-decoration: underline;
  text-decoration-color: #b5b5b5;
}
/* SPでは非表示 */
@media (max-width: 767px) {
  .new-block-page .breadcrumb {
    display: none;
  }
}


/* 段落 */
.new-block-page .wp-block-paragraph {
    margin-bottom: 1.6em;
}
.new-block-page p {
    margin: 0 0 1em;
}

/* 長い文章に */
.new-block-page .prose {
  line-height: 1.7;
}
.new-block-page .prose p {
  text-align: justify;
  margin-bottom: 1.2em;
}
.new-block-page .prose p:last-child {
  margin-bottom: 0;
}
.new-block-page .prose .label {
  margin-bottom: 0.2em;
}

/* 見出し */
.new-block-page .wp-block-heading {
    margin-bottom: 0.8em;
    line-height: 1.5;
}

/* 画像 */
.new-block-page .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto 0.5em;
}
.new-block-page .wp-block-image figcaption {
    font-size: 0.8rem;
}

/* カラムブロック */
.new-block-page .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.new-block-page .columns-gap-wide {
  gap: 32px;
}

.new-block-page .columns-gap-narrow {
  gap: 14px;
}

@media (max-width: 767px) {
  .new-block-page .wp-block-columns, 
  .new-block-page .columns-gap-wide,
  .new-block-page .columns-gap-narrow {
    gap: 3em;
  }
}

.new-block-page .wp-block-column {
    flex: 1;
    min-width: 200px;
}


/* ボタン */
.new-block-page .wp-block-button a {
    background-color: #2a2a2a;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    min-width: 330px;
}
.new-block-page .wp-block-button a:hover {
    background-color: #005177;
}
.new-block-page p + .wp-block-buttons  {
    margin-top: 20px;
}

@media (max-width: 767px) {
  .new-block-page .wp-block-button {
    width: 90% !important;  /* Gutenbergの幅指定を強制上書き */
  }
}

/* 引用ブロック */
.new-block-page .wp-block-quote {
    border-left: 4px solid #0073aa;
    padding-left: 20px;
    font-style: italic;
    color: #555;
    margin: 1.5em 0;
}

/* リスト */
.new-block-page .wp-block-list {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.new-block-page .wp-block-list li {
    margin-bottom: 0.5em;
}
.new-block-page ul.tight, 
.new-block-page ol.tight {
  margin-top: 0;
}

/* 表 */
.new-block-page .wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.new-block-page .wp-block-table table{
    font-size: 1.1rem;
}
@media (max-width: 768px) {
  .new-block-page .wp-block-table table{
    font-size: 0.9rem;
  }
}

.new-block-page .wp-block-table th {
    text-align: center;
}
.new-block-page .wp-block-table th,
.new-block-page .wp-block-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
}

/* 比較表  */
.comp-table td {
  text-align: center; /* デフォルトは中央 */
}
.comp-table td:last-child {
  text-align: left; /* 一番右の列だけ左寄せ */
}

/* カバー・背景画像 */
.new-block-page .wp-block-cover {
    position: relative;
    overflow: hidden;
    margin-bottom: 2em;
}

.new-block-page .wp-block-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Gutenberg のフォントサイズを table に適用させる */
.has-small-font-size table,
.wp-block-table.has-small-font-size table {
    font-size: var(--wp--preset--font-size--small) !important;
}

.has-medium-font-size table,
.wp-block-table.has-medium-font-size table {
    font-size: var(--wp--preset--font-size--medium) !important;
}

.has-large-font-size table,
.wp-block-table.has-large-font-size table {
    font-size: var(--wp--preset--font-size--large) !important;
}

.wp-block-table thead {
    border-bottom: 3px solid;
}
.wp-block-table td, .wp-block-table th {
    border: 1px solid;
    padding: .5em;
    word-break: normal;
}
.wp-block-table th {
    font-size: 1.1em;
    font-weight: 700;
}
.wp-block-table.is-style-stripes th {
    border-color: transparent;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #f0f0f0;
}
.wp-block-table.is-style-stripes td, .wp-block-table.is-style-stripes th {
    border-color: transparent;
}

.new-block-page .wp-block-group {
    padding: 50px 0;
    background: #fff;
}

.new-block-page div.wp-block-group {
    padding: 40px 20px;
}

/* 見出しレベル別フォントサイズ */
.new-block-page h1 { font-size: 2.5rem; font-weight: 700; }
.new-block-page h2 { font-size: 2rem; font-weight: 500; }
.new-block-page h3 { font-size: 1.8rem; font-weight: 500; }
.new-block-page h4 { font-size: 1.6rem; font-weight: 500; }
.new-block-page h5 { font-size: 1.2rem; font-weight: 500; }
.new-block-page h6 { font-size: 1.1rem; font-weight: 500; }

.new-block-page h1 strong,
.new-block-page h2 strong,
.new-block-page h3 strong,
.new-block-page h4 strong,
.new-block-page h5 strong,
.new-block-page h6 strong {
  font-weight: inherit;
}

@media (max-width: 767px) {
    .new-block-page h1 { font-size: 1.8rem; }
    .new-block-page h2 { font-size: 1.4rem; }
    .new-block-page h3 { font-size: 1.2rem; }
    .new-block-page h4 { font-size: 1.1rem; }
    .new-block-page h5 { font-size: 1.1rem; }
    .new-block-page h6 { font-size: 1.1rem; }
}

.youtube-wrap {
  display: flex;
  justify-content: center;
}


.new-block-page ul,
.new-block-page ol {
  font-size: inherit; /* pと同じサイズを継承 */
  line-height: inherit;
  margin-left: 1.5em;
  margin-bottom: 1.2em;
  list-style: disc;
}

.new-block-page ol {
  list-style-type: decimal;
}

.new-block-page p + ul,
.new-block-page p + ol {
  margin-top: 0.8em;
}

.new-block-page .nowrap {
  white-space: nowrap;
}
