/*
 * WordPressエディター用 カスタムスタイル
 * --------------------------------------------------
 * スタイルが未選択の状態、または「デフォルト」が選択された場合に適用されます。
 */

.editor-styles-wrapper {
  font-family: "LINE Seed JP", sans-serif;
}

/* h2 スタイル */
.editor-styles-wrapper h2:not([class*="is-style-"]), 
.editor-styles-wrapper h2.is-style-default,
.gutenberg_format h2:not([class*="is-style-"]),
.gutenberg_format h2.is-style-default {
    font-size: 30px;
    font-weight: bold;
    color: #2768be;
    border-bottom: 2px solid #2768be;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* h3 スタイル */
.editor-styles-wrapper h3:not([class*="is-style-"]),
.editor-styles-wrapper h3.is-style-default,
.gutenberg_format h3:not([class*="is-style-"]),
.gutenberg_format h3.is-style-default {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(to right, #53b9f3, #2f78c0);
    box-shadow: none;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* h4 スタイル */
.editor-styles-wrapper h4:not([class*="is-style-"]),
.editor-styles-wrapper h4.is-style-default,
.gutenberg_format h4:not([class*="is-style-"]),
.gutenberg_format h4.is-style-default {
    font-size: 26px;
    font-weight: bold;
    color: #2768be;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* h5 スタイル */
.editor-styles-wrapper h5:not([class*="is-style-"]),
.editor-styles-wrapper h5.is-style-default,
.gutenberg_format h5:not([class*="is-style-"]),
.gutenberg_format h5.is-style-default {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    border-left: 4px solid #2768be;
    padding-left: 1rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.editor-styles-wrapper p,
.gutenberg_format p {
  font-size:16px;
  line-height: 1.8;
}

/* --- リストの枠組み (全スタイル共通) --- */
.editor-styles-wrapper ul,
.editor-styles-wrapper ol,
.gutenberg_format ul,
.gutenberg_format ol {
    background-color: #f8f8f8;
    padding: 20px 20px 20px 40px;
    border-radius: 8px;
    list-style: none;
    margin: 2em 0;
}

/* --- 全てのリスト項目共通のスタイル --- */
.editor-styles-wrapper ul li,
.editor-styles-wrapper ol li,
.gutenberg_format ul li,
.gutenberg_format ol li {
    margin-bottom: 15px;
    position: relative;
    margin-left: 25px; /* テキストの開始位置を共通化 */
}

.editor-styles-wrapper ul li:last-child,
.editor-styles-wrapper ol li:last-child,
.gutenberg_format ul li:last-child,
.gutenberg_format ol li:last-child {
    margin-bottom: 0;
}


/* --- デフォルトスタイルのリスト項目 (マーカーのみ) --- */

/* デフォルトスタイルの番号付きリスト(ol)のマーカー */
.editor-styles-wrapper ol:not([class*="is-style-"]) li,
.editor-styles-wrapper ol.is-style-default li,
.gutenberg_format ol:not([class*="is-style-"]) li,
.gutenberg_format ol.is-style-default li {
    counter-increment: custom-counter;
}

.editor-styles-wrapper ol:not([class*="is-style-"]) li::before,
.editor-styles-wrapper ol.is-style-default li::before,
.gutenberg_format ol:not([class*="is-style-"]) li::before,
.gutenberg_format ol.is-style-default li::before {
    content: counter(custom-counter);
    background-color: #e3f2fd;
    color: #2768be;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -35px; /* マージンの分、外側に移動 */
    top: 12px;
    transform: translateY(-50%); 
}

/* デフォルトスタイルのリスト(ul)のマーカー */
.editor-styles-wrapper ul:not([class*="is-style-"]) li::before,
.editor-styles-wrapper ul.is-style-default li::before,
.gutenberg_format ul:not([class*="is-style-"]) li::before,
.gutenberg_format ul.is-style-default li::before {
    content: '';
    background-color: #2768be;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    left: -25px; /* マージンの分、外側に移動 */
    top: 12px;
    transform: translateY(-50%);
}

/* 引用(blockquote)のスタイル */
.editor-styles-wrapper blockquote:not([class*="is-style-"]),
.editor-styles-wrapper blockquote.is-style-default,
.gutenberg_format blockquote:not([class*="is-style-"]),
.gutenberg_format blockquote.is-style-default {
    background-color: #eef7ff;
    padding: 30px 30px 30px 45px;
    border-left: none;
    position: relative;
    color: #333;
    margin-top: 2em;
    margin-bottom:2em;
}

.editor-styles-wrapper blockquote:not([class*="is-style-"])::before,
.editor-styles-wrapper blockquote.is-style-default::before,
.gutenberg_format blockquote:not([class*="is-style-"])::before,
.gutenberg_format blockquote.is-style-default::before {
    content: '“';
    font-family: serif;
    font-size: 60px;
    color: #2768be;
    opacity: 0.5;
    position: absolute;
    top: 5px;
    left: 15px;
}

.editor-styles-wrapper blockquote:not([class*="is-style-"]) p,
.editor-styles-wrapper blockquote.is-style-default p,
.gutenberg_format blockquote:not([class*="is-style-"]) p,
.gutenberg_format blockquote.is-style-default p {
    margin: 0;
    padding: 0;
}

.editor-styles-wrapper blockquote:not([class*="is-style-"]) cite,
.editor-styles-wrapper blockquote.is-style-default cite,
.gutenberg_format blockquote:not([class*="is-style-"]) cite,
.gutenberg_format blockquote.is-style-default cite {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: normal;
}

.gutenberg_format.sec2__contents__article p,
.gutenberg_format.sec2__contents__article figure {
  margin-bottom:1em;
}


.editor-styles-wrapper  .wp-block-file.is-style-atsdlbtn ,
.gutenberg_format .wp-block-file.is-style-atsdlbtn {
    margin-left:auto;
}
.editor-styles-wrapper  .wp-block-file.is-style-atsdlbtn a,
.gutenberg_format .wp-block-file.is-style-atsdlbtn a {
display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 60px;
    border-radius: 100px;
    transition: 0.4s;
    transition-timing-function: ease-out;
    background: linear-gradient(90deg, #0c72b5, #0288d1, #0c72b5) 0 / 200% 100%;
    color: #FFFFFF;
    font-size: 16px;
}
@media screen and (max-width: 768px) {
    .editor-styles-wrapper  .wp-block-file.is-style-atsdlbtn a,
    .gutenberg_format .wp-block-file.is-style-atsdlbtn a {
        width: 150px;
        font-size: 15px;

    }
}