/* ============================================
   choudo.net フロントページ - Plan B デザイン
   ============================================ */

/* このCSSはフロントページ限定で読み込まれるので .home 不要 */

#primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#secondary {
    display: none !important;
}

.site-content,
#content,
.ast-container,
.entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ============ Header ============ */
.home #masthead,
.home .site-header,
.home .ast-site-header-wrap {
    background-color: #F5F0E8 !important;
    border-bottom: 1px solid #E8DDD0 !important;
}

.home .site-title a,
.home .site-title {
    font-family: 'Shippori Mincho', '游明朝体', serif !important;
    font-weight: 400 !important;
    color: #3D2B1F !important;
    font-size: 20px !important;
    letter-spacing: 0.05em !important;
}

.home .ast-primary-navigation a,
.home .main-navigation a {
    color: #8A7060 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-size: 13px !important;
}

.home .ast-primary-navigation a:hover,
.home .main-navigation a:hover {
    color: #8B6F47 !important;
}

/* ============ Hero ============ */
.chd-hero {
    background: linear-gradient(160deg, #F0E8DC 0%, #F5F0E8 100%);
    padding: 72px 40px 60px;
    text-align: center;
    border-bottom: 1px solid #E8DDD0;
}

.chd-hero-eyebrow {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: #C4A882;
    margin-bottom: 20px;
    display: block;
}

.chd-hero-title {
    font-family: 'Shippori Mincho', '游明朝体', 'Yu Mincho', serif !important;
    font-size: 38px !important;
    color: #3D2B1F !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;
    margin-bottom: 20px !important;
    border: none !important;
    padding: 0 !important;
}

.chd-hero-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #8A7060;
    line-height: 2;
    max-width: 520px;
    margin: 0 auto 32px;
}

.chd-hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.chd-btn-primary {
    background: #8B6F47 !important;
    color: white !important;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none !important;
    letter-spacing: 0.05em;
    transition: background 0.2s;
    display: inline-block;
}

.chd-btn-primary:hover {
    background: #7A5F3A !important;
    color: white !important;
}

.chd-btn-secondary {
    background: transparent !important;
    color: #8B6F47 !important;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #8B6F47 !important;
    text-decoration: none !important;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    display: inline-block;
}

.chd-btn-secondary:hover {
    background: #8B6F47 !important;
    color: white !important;
}

/* ============ Profile Strip ============ */
.chd-profile {
    background: white;
    border-bottom: 1px solid #E8DDD0;
    width: 100%;
}

.chd-profile-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.chd-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5F0E8, #C4A882);
    flex-shrink: 0;
    overflow: hidden;
}

.chd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chd-profile-text h3 {
    font-family: 'Shippori Mincho', '游明朝体', serif !important;
    font-size: 15px;
    color: #3D2B1F;
    margin-bottom: 6px;
    font-weight: 400 !important;
}

.chd-profile-text p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    color: #8A7060;
    line-height: 1.9;
    margin: 0;
}

.chd-profile-link {
    margin-left: auto;
    font-size: 12px;
    color: #8B6F47 !important;
    flex-shrink: 0;
    text-decoration: none !important;
    white-space: nowrap;
}

/* ============ Posts Section ============ */
.chd-posts {
    background: #FDFBF7;
    width: 100%;
}

.chd-posts-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 52px 40px 60px;
    box-sizing: border-box;
}

.chd-posts-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E8DDD0;
}

.chd-posts-head h2 {
    font-family: 'Shippori Mincho', '游明朝体', serif !important;
    font-size: 22px !important;
    color: #3D2B1F !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.chd-posts-head span {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #C4A882;
}

/* ============ Category Filter ============ */
.chd-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.chd-filter-btn {
    padding: 7px 18px;
    border: 1px solid #E8DDD0;
    background: white;
    color: #8A7060;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1;
}

.chd-filter-btn:hover,
.chd-filter-btn.active {
    background: #8B6F47;
    border-color: #8B6F47;
    color: white;
}

/* ============ Cards Grid ============ */
.chd-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.chd-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8DDD0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(139, 111, 71, 0.12);
}

.chd-card-img {
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F0E8, #DDD0C0);
}

.chd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chd-card-body {
    padding: 16px 18px 18px;
}

.chd-card-cat {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 10px;
    color: #8B6F47;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.chd-card-title {
    font-family: 'Shippori Mincho', '游明朝体', serif !important;
    font-size: 13px !important;
    color: #3D2B1F !important;
    line-height: 1.75 !important;
    margin-bottom: 10px !important;
    font-weight: 400 !important;
}

.chd-card-title a {
    color: #3D2B1F !important;
    text-decoration: none !important;
}

.chd-card-title a:hover {
    color: #8B6F47 !important;
}

.chd-card-meta {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    color: #8A7060;
}

.chd-card.is-hidden {
    display: none;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .chd-hero { padding: 52px 24px 44px; }
    .chd-hero-title { font-size: 28px !important; }
    .chd-profile { padding: 20px 24px; flex-wrap: wrap; }
    .chd-posts { padding: 36px 20px 48px; }
    .chd-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 480px) {
    .chd-cards { grid-template-columns: 1fr; }
    .chd-hero-btns { flex-direction: column; align-items: center; }
    .chd-hero-title { font-size: 24px !important; }
}
