@charset "UTF-8";
/* =========================================================
   articles.css
   記事ページの見た目はここに集約（B案）
   - typography（本文の読みやすさ）
   - 画像の扱い
   - CTA（記事末尾の導線）
   - 記事一覧（index）
========================================================= */

/* 3x3（=9件）を作るため：モバイル1列 → 768px以上で3列 */
.articles-index__list {
    display: grid;
    gap: 17px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .articles-index__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.articles-index__item{
}
.articles-index__thumb{
	margin-bottom: 20px;
}
.articles-index__thumb img{
	aspect-ratio: 3 / 2;
    object-fit: cover;
}
.articles-index__meta{
	margin-bottom: 20px;
}
.articles-index__excerpt{
	margin-bottom: 20px;
	text-align: justify;
}

/* ページネーション */
.articles-index__pagination{
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.pagination__list{
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination__link,
.pagination__current{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1.4rem;
    color: #333;
}

.pagination__current{
    font-weight: 700;
}

/* ページネーション下のタグ導線の余白 */
.articles-index__tags-link{
    margin-top: 18px;
}

/* ボタン */
.btn-primary,.btn-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: .9em 3em .9em 2em;
    border: 1px solid #2589d0;
    border-radius: 9999px;
    background-color: #fff;
    color: #2589d0;
    font-size: 1.4em;
}
.articles-view__more-type{
	margin-bottom: 40px
}
.articles-view__more-type-card .btn-primary,.articles-view__more-type-card .btn-secondary {
    width: 300px;
}

.btn-primary::after,.btn-secondary::after {
    position: absolute;
    right: 1em;
    transform: translateY(-50%);
    transform-origin: left;
    width: 2em;
    height: .5em;
    background-color: #2589d0;
    clip-path: polygon(0 100%, 100% 100%, 70% 40%, 70% 90%, 0% 90%);
    content: '';
    transition: transform .3s;
}

/* 誤字修正：.. → . */
.btn-primary:hover::after,.btn-secondary:hover::after {
    transform: translateY(-50%) scaleX(1.4);
}


/* -------------------
以下　view.php
------------------- */

/* -------------------
タイトル
------------------- */
.articles-view__head{
	margin-bottom: 20px
}
.articles-view__title{
	font-size: 2.2rem;
	border-bottom: 3px solid #ddd;
	width: 100%;
	text-align: center;
}
.articles-view__meta {
    display: flex;
    justify-content: end;
    align-items: center;
}

/* -------------------
本文
------------------- */
.articles-view__body{}

.articles-view__body > img{
	width: 100%;
	margin: 0 auto 40px;
}
.hero-img{
	margin-bottom: 60px
}

.articles-view__body > p{
	font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

h2,h3 {
    position: relative;
    padding: .3em 0 .2em 1em;
    border-bottom: 3px solid var(--cm-brand-coral);
    color: #333333;
	font-size: 1.8rem;
}

h2::before,h3::before {
    position: absolute;
    top: 0;
    left: .3em;
    transform: rotate(55deg);
    height: 11px;
    width: 12px;
    background: var(--cm-brand-coral);
    content: '';
}

h2::after,h3::after {
    position: absolute;
    transform: rotate(15deg);
    top: .6em;
    left: 0;
    height: 8px;
    width: 8px;
    background: var(--cm-brand-coral);
    content: '';
}

ol {
	font-size: 1.6rem;
	line-height: 1.8;
	margin-bottom: 20px;
    list-style-type: none;
}

ol li {
    display: flex;
    align-items: center;
    gap: 0 5px;
    padding: .3em;
}

ol li::before {
    display: inline-block;
    width: 10px;
    height: 5px;
    border-bottom: 2px solid #2589d0;
    border-left: 2px solid #2589d0;
    transform: rotate(-45deg) translateY(-1.5px);
    content: '';
}

p.point {
    position: relative;
    margin: 0 auto 40px;
    padding: 1em 1.5em;
    background-color: #e0efff;
    color: #333;
}

p.point::after {
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: #c0cfdf var(--cm-color-bg);
    box-shadow: -1px 1px 1px rgb(0 0 0 / 5%);
    content: '';
}


/* -------------------
あわせて読みたい
------------------- */
.articles-view__related-list{
	margin-bottom: 40px;
	font-size: 1.4rem;
	line-height: 1.8;
}

li.articles-view__related-item {
    display: flex;
	align-items: center;
	margin-bottom: 0.6rem;
	& span.badge{
		margin-right:1em;
		padding: 0px 5px;
	}
	& a{
		color: #383E45;
	}
}
.articles-view__cta-text{
	margin-bottom: 20px;
}
.articles-view__cta-actions{
	display: flex;
	gap:20px;
}
.articles-view__cta{
	margin-bottom: 40px
}


/* -------------------
バッジ用
------------------- */