@charset "UTF-8";

/* =========================================
   1. 中央コンテンツラッパー (680px・最上部隙間0)
========================================= */
body {
    background-color: #f7f5ee;
}

.top-page-wrapper {
    max-width: 680px;
    margin: 0 auto 60px;
    background: #ffffff;
    border: 1px solid #eee8dd;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 680px) {
    .top-page-wrapper {
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
}

.top-page-wrapper .site-header {
    border-bottom: 1px solid #f0ece3;
}

/* =========================================
   2. ポータルヘッダー
========================================= */
.portal-header {
    background: #faf8f2;
    padding: 32px 16px 28px;
    text-align: center;
    border-bottom: 1px solid #f0ece3;
}
@media (min-width: 768px) {
    .portal-header {
        padding: 36px 20px 32px;
    }
}
.portal-title-en {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: #c2a6e1;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}
@media (min-width: 768px) {
    .portal-title-en {
        font-size: 26px;
    }
}
.portal-title {
    font-size: 18px;
    letter-spacing: 0.08em;
    color: #222;
    font-weight: bold;
    margin-bottom: 6px;
}
@media (min-width: 768px) {
    .portal-title {
        font-size: 20px;
    }
}
.portal-lead {
    font-size: 11.5px;
    color: rgba(0, 0, 0, 0.65);
    letter-spacing: 0.03em;
    line-height: 1.55;
}
@media (min-width: 768px) {
    .portal-lead {
        font-size: 12.5px;
        letter-spacing: 0.04em;
        line-height: 1.6;
    }
}

/* =========================================
   3. カテゴリ切り替えナビ
========================================= */
.category-nav {
    background: #ffffff;
    border-bottom: 1px solid #f0ece3;
    position: sticky;
    top: 57px;
    z-index: 400;
    width: 100%;
    box-sizing: border-box;
}
.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .category-scroll {
        padding: 12px 16px;
    }
}
.category-scroll::-webkit-scrollbar {
    display: none;
}
.cat-btn {
    flex: 0 0 auto;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #e2ddd3;
    background: #faf8f2;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.25s ease;
}
@media (min-width: 768px) {
    .cat-btn {
        padding: 6px 16px;
        font-size: 12.5px;
    }
}
.cat-btn:hover {
    border-color: #8e65be;
    color: #8e65be;
}
.cat-btn.active {
    background: #8e65be;
    color: #fff;
    border-color: #8e65be;
    font-weight: bold;
}

/* =========================================
   4. 記事カードグリッド (SP・PC共通で常時2カラム)
========================================= */
.portal-content {
    width: 100%;
    margin: 0 auto;
    padding: 20px 12px 40px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .portal-content {
        padding: 32px 24px 56px;
    }
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
}

@media (min-width: 560px) {
    .article-grid {
        gap: 24px 20px;
    }
}

/* =========================================
   5. 記事カードデザイン
========================================= */
.article-card {
    background: #faf8f2;
    border: 1px solid #eee8dd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (min-width: 560px) {
    .article-card {
        border-radius: 10px;
    }
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.card-thumb {
    position: relative;
    aspect-ratio: 1200 / 630; /* 1200×630pxのOGP比率に合わせて修正 */
    overflow: hidden;
    background: #eee;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .card-thumb img {
    transform: scale(1.04);
}
.draft-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}
@media (min-width: 560px) {
    .draft-badge {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 2px 7px;
        border-radius: 4px;
    }
}
.card-body {
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
@media (min-width: 560px) {
    .card-body {
        padding: 16px 14px;
    }
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #888;
    margin-bottom: 6px;
}
@media (min-width: 560px) {
    .card-meta {
        font-size: 11px;
        margin-bottom: 8px;
    }
}
.card-category {
    color: #8e65be;
    font-weight: bold;
}
.card-title {
    font-size: 12.5px;
    font-weight: bold;
    line-height: 1.45;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
@media (min-width: 560px) {
    .card-title {
        font-size: 14.5px;
        line-height: 1.5;
        margin-bottom: 6px;
    }
}
.card-desc {
    font-size: 11px;
    color: #666;
    margin-top: auto;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 560px) {
    .card-desc {
        font-size: 12px;
        line-height: 1.55;
    }
}
.no-articles {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 14px;
    grid-column: 1 / -1;
}
