/**
 * コラム投稿ページ専用スタイル
 *
 * 親サイトの .ve クラスに追加して、読みやすいデザインを実現
 */

/* 段落のスペーシング */
.ve p {
    margin-bottom: 1.8em;
    line-height: 1.9;
}

.ve p+p {
    margin-top: 1.8em;
}

/* 見出しのスペーシング */
.ve h2 {
    margin-top: 3em;
    margin-bottom: 1.5em;
    padding-top: 1em;
    border-top: 3px solid #e0e0e0;
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1.5;
}

.ve h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ve h3 {
    margin-top: 2.5em;
    margin-bottom: 1.2em;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

.ve h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

.ve h5 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.5;
    color: #555;
}

/* リストのスペーシング - アイコン付き */
.ve ul,
.ve ol {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 0;
    list-style: none;
}

.ve ul>li {
    position: relative;
    margin-bottom: 0.8em;
    padding-left: 2em;
    line-height: 1.8;
}

.ve ul>li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background-color: #4a90e2;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.ve ul>li.is-animated::before {
    transform: scale(1);
}

.ve ol {
    counter-reset: ol-counter;
}

.ve ol>li {
    position: relative;
    margin-bottom: 0.8em;
    padding-left: 2.5em;
    line-height: 1.8;
    counter-increment: ol-counter;
}

.ve ol>li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    background-color: #4a90e2;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85em;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ve ol>li.is-animated::before {
    opacity: 1;
    transform: scale(1);
}

.ve li:last-child {
    margin-bottom: 0;
}

.ve ul ul,
.ve ol ol,
.ve ul ol,
.ve ol ul {
    margin-top: 0.8em;
    margin-bottom: 0;
}

/* ネストされたリストのスタイル */
.ve ul ul>li::before {
    background-color: #7ab8f5;
    width: 6px;
    height: 6px;
}

.ve ol ol>li::before {
    background-color: #7ab8f5;
}

/* テーブルのスペーシング */
.ve table {
    margin-top: 2em;
    margin-bottom: 2em;
    width: 100%;
    border-collapse: collapse;
}

.ve table th,
.ve table td {
    padding: 1em;
    border: 1px solid #ddd;
    line-height: 1.7;
}

.ve table th {
    background-color: #f5f5f5;
    font-weight: 700;
    text-align: left;
}

/* 引用のスペーシング */
.ve blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background-color: #f9f9f9;
    border-left: 4px solid #ccc;
    line-height: 1.8;
}

.ve blockquote p {
    margin-bottom: 0;
}

.ve blockquote p+p {
    margin-top: 1em;
}

/* 画像のスペーシング */
.ve img {
    margin: 2em 0;
    max-width: 100%;
    height: auto;
}

.ve figure {
    margin: 2em 0;
}

.ve figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* コードブロック */
.ve pre {
    margin: 2em 0;
    padding: 1.5em;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow-x: auto;
    line-height: 1.6;
}

.ve code {
    padding: 0.2em 0.4em;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.ve pre code {
    padding: 0;
    background-color: transparent;
}

/* 強調テキスト - マーカーアニメーション */
.ve strong,
.ve b {
    font-weight: 700;
    background: linear-gradient(transparent 60%, #fff799 60%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.6s ease;
    position: relative;
}

.ve strong.is-animated,
.ve b.is-animated {
    background-size: 100% 100%;
}

.ve em,
.ve i {
    font-weight: 700;
    font-style: normal;
    background: linear-gradient(transparent 60%, #ffcccc 60%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.6s ease;
    position: relative;
}

.ve em.is-animated,
.ve i.is-animated {
    background-size: 100% 100%;
}

/* リンク */
.ve a {
    color: #0066cc;
    text-decoration: underline;
}

.ve a:hover {
    color: #0052a3;
}

/* 水平線 */
.ve hr {
    margin: 3em 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

/* ページタイトル下のメタ情報 */
.pageTitle__meta {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
}

.pageTitle__date {
    font-size: 0.9em;
    color: #666;
}

.pageTitle__cat {
    display: inline-block;
    padding: 0.3em 0.8em;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 0.85em;
    color: #333;
}

/* 前後の記事ナビゲーション */
.postNavigation {
    display: flex;
    gap: 2em;
    margin-top: 4em;
    margin-bottom: 3em;
}

.postNavigation__item {
    flex: 1;
    min-width: 0;
}

.postNavigation__item a {
    display: block;
    padding: 1.5em;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.postNavigation__item a:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.postNavigation__label {
    display: block;
    margin-bottom: 0.5em;
    font-size: 0.85em;
    color: #666;
}

.postNavigation__title {
    display: block;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.postNavigation__item.-prev .postNavigation__label::before {
    content: "← ";
}

.postNavigation__item.-next .postNavigation__label::after {
    content: " →";
}

/* 一覧に戻るリンク */
.backToList {
    margin-top: 3em;
    text-align: center;
}

.backToList__link {
    display: inline-block;
    padding: 1em 3em;
    background-color: #fff;
    border: 2px solid #333;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.backToList__link:hover {
    background-color: #333;
    color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ve p {
        margin-bottom: 1.5em;
        line-height: 1.8;
    }

    .ve h2 {
        margin-top: 2.5em;
        margin-bottom: 1.2em;
        font-size: 1.5em;
    }

    .ve h3 {
        margin-top: 2em;
        margin-bottom: 1em;
        font-size: 1.3em;
    }

    .ve h4 {
        margin-top: 1.8em;
        margin-bottom: 0.8em;
        font-size: 1.2em;
    }

    .ve table {
        font-size: 0.9em;
    }

    .ve table th,
    .ve table td {
        padding: 0.8em;
    }

    .postNavigation {
        flex-direction: column;
        gap: 1em;
    }

    .pageTitle__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
}


@media (min-width: 768px) {
    .add_cls0 {
        padding: 1.5rem 0 2rem;
    }

    .add_pm0 {
        margin-top: 0.5rem !important;
    }

}


.head_pc0 {
    box-shadow:
        /* 近い影：濃く、ぼかしが少ない */
        0 1px 2px rgba(0, 0, 0, 0.15),
        /* 遠い影：薄く、ぼかしが大きい */
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.rank-math-breadcrumb {
    margin-bottom: 40px;
    font-size: 14px;
}

/* 2カラムレイアウト */
.contentWithSidebar {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.mainContent {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 人気記事 */
.popularPosts {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.popularPosts__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .contentWithSidebar {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .add_pm0 {
        margin-top: 0.3rem !important;
    }

    .add_cls0 {
        padding: 0.2rem .24rem .8rem;
    }
}
