/*
Theme Name: Neve Child
Template: neve
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== Base ===== */
body { font-family: 'Noto Sans JP', sans-serif; background: #f8f8f8; color: #333; font-size: 16px; line-height: 1.9; }
a { color: #1a2744; text-decoration: none; }
a:hover { color: #2e4080; }

/* ===== Header ===== */
.hfg-header { background: #fff !important; border-bottom: 2px solid #1a2744; }
.site-logo img { max-width: 240px; height: auto; }
.nv-nav-wrapper .nav-menu-item a { color: #1a2744 !important; font-weight: 500; }

/* ===== Hero Slider ===== */
.hm-hero { width: 100%; overflow: hidden; margin-bottom: 40px; }
.hm-swiper { width: 100%; height: 480px; }
@media (max-width: 768px) { .hm-swiper { height: 260px; } }
.hm-slide { background-size: cover; background-position: center; position: relative; }
.hm-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7)); }
.hm-slide-inner { position: absolute; bottom: 30px; left: 30px; right: 30px; z-index: 2; }
.hm-slide-title a { color: #fff !important; font-size: 0.75em; font-weight: 700; line-height: 1.4; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
@media (max-width: 768px) { .hm-slide-title a { font-size: 1em; } .hm-slide-inner { bottom: 20px; left: 15px; right: 15px; } }
.swiper-pagination-bullet-active { background: #fff !important; }
.swiper-button-next, .swiper-button-prev { color: #fff !important; }

/* ===== Articles Grid ===== */
.hm-articles-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 40px 60px; }
.hm-section-title { font-size: 1.2em; font-weight: 700; color: #1a2744; border-left: 4px solid #1a2744; padding-left: 12px; margin-bottom: 24px; }
.hm-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 768px) { .hm-articles-grid { grid-template-columns: 1fr; gap: 20px; } }
.hm-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: transform 0.2s, box-shadow 0.2s; }
.hm-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.hm-card-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.hm-card-nothumb { width: 100%; height: 200px; background: #e0e6f0; }
.hm-card-body { padding: 16px; }
.hm-card-tag { color: #1a2744 !important; font-size: 0.78em; margin-right: 6px; }
.hm-card-date { color: #999; font-size: 0.82em; margin-bottom: 8px; }
.hm-card-title a { color: #1a2744 !important; font-size: 0.85em; font-weight: 700; line-height: 1.5; }

/* ===== Pagination ===== */
.hm-pagination { grid-column: 1/-1; text-align: center; margin-top: 20px; }
.hm-pagination a, .hm-pagination span { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid #1a2744; border-radius: 4px; color: #1a2744 !important; font-size: 0.9em; }
.hm-pagination .current { background: #1a2744; color: #fff !important; }

/* ===== Single Post ===== */
.single .container { max-width: 1000px !important; }
.single .nv-single-post-wrap { width: 100% !important; }
.single .entry-title { font-size: 1.6em; font-weight: 700; color: #1a2744; line-height: 1.5; }
.single .nv-content-wrap p { font-size: 16px; line-height: 1.9; color: #333; margin-bottom: 1.5em; }
.single .nv-content-wrap h2 { font-size: 1.2em; font-weight: 700; color: #1a2744; border-left: 4px solid #1a2744; padding-left: 12px; margin: 2em 0 1em; }
.single .nv-content-wrap h3 { font-size: 1.05em; font-weight: 700; margin: 1.5em 0 0.8em; }
.single .nv-content-wrap figure { margin: 2em 0; }
.single .nv-content-wrap figure img { width: 100%; height: auto; border-radius: 6px; }
.single .nv-content-wrap dl { background: #f5f7fa; border-radius: 6px; padding: 20px; margin: 1.5em 0; }
.single .nv-content-wrap dt { font-weight: 700; color: #1a2744; margin-top: 12px; }
.single .nv-content-wrap dd { margin-left: 0; color: #555; padding-bottom: 8px; border-bottom: 1px solid #e0e0e0; }

/* ===== Footer ===== */
.site-footer { display: none !important; }
.hm-footer { background: #1a2744 !important; color: #ccc; padding: 48px 20px 24px; }
.hm-footer-inner { max-width: 1100px; margin: 0 auto; }
.hm-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
@media (max-width: 768px) { .hm-footer-cols { grid-template-columns: repeat(2, 1fr); } }
.hm-footer-col h4 { color: #fff; font-size: 0.95em; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.hm-footer-col p { color: #aaa; font-size: 0.85em; }
.hm-footer-col ul { list-style: none; padding: 0; margin: 0; }
.hm-footer-col ul li { margin-bottom: 8px; }
.hm-footer-col ul li a { color: #aaa !important; font-size: 0.85em; }
.hm-footer-col ul li a:hover { color: #fff !important; }
.hm-footer-copy { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: #888; font-size: 0.82em; }

/* ===== Hide comments ===== */
#comments, .comments-area { display: none !important; }

/* ===== Card Thumbnail Fix ===== */
.hm-card-thumb { display: block; overflow: hidden; }
.hm-card-thumb img { 
    width: 100% !important; 
    height: 200px !important; 
    object-fit: cover !important;
    display: block !important;
}


/* ===== Slider Title Size Fix ===== */
.hm-slide-title a {
    font-size: 1em !important;
}

/* ===== Slider Gap ===== */
.hm-swiper {
    padding: 0 2px;
}
.hm-swiper .swiper-slide {
    padding: 0 4px;
}

/* ===== Force Title Size ===== */
.hm-slide-title a { font-size: 0.75em !important; }
.hm-card-title a { font-size: 0.82em !important; }

/* ===== Force Title Size px ===== */
.hm-slide-title a { font-size: 13px !important; }
.hm-card-title a { font-size: 13px !important; }

/* ===== Slider Title Override ===== */
.hm-hero .hm-slide-title,
.hm-hero .hm-slide-title a,
.hm-hero .hm-slide-title * {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* ===== Title Size & Card Fix ===== */
.hm-hero .hm-slide-title,
.hm-hero .hm-slide-title a,
.hm-hero .hm-slide-title * {
    font-size: 18px !important;
    line-height: 1.5 !important;
}
.hm-card-title a {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* ===== Card Title Line Height Fix ===== */
.hm-card-title {
    line-height: 1.4 !important;
    margin: 0 !important;
}
.hm-card-title a {
    line-height: 1.4 !important;
}

/* ===== Card Title Margin Fix ===== */
.hm-card-body h3.hm-card-title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.hm-card-body h3.hm-card-title a {
    line-height: 1.4 !important;
    display: block !important;
}

/* ===== Related Posts ===== */
.related-posts { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; }
.related-posts h3 { font-size: 1em; font-weight: 700; color: #1a2744; border-left: 4px solid #1a2744; padding-left: 12px; margin-bottom: 16px; }
.related-posts .posts-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .related-posts .posts-wrapper { grid-template-columns: 1fr; } }
.related-posts article { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.related-posts article img { width: 100%; height: 120px; object-fit: cover; }
.related-posts .blog-entry-title { font-size: 0.82em; font-weight: 700; padding: 10px; line-height: 1.4; }
.related-posts .blog-entry-title a { color: #1a2744 !important; }
.related-posts .nv-meta-list { display: none; }
.related-posts .entry-excerpt { display: none; }

/* ===== Related Posts Fix ===== */
.custom-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-top: 16px !important;
}
@media (max-width: 768px) {
    .custom-related-grid { grid-template-columns: 1fr !important; }
}
.custom-related-grid article {
    background: #fff !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
}
.custom-related-grid article img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
}
.custom-related-grid .blog-entry-title {
    font-size: 0.82em !important;
    font-weight: 700 !important;
    padding: 10px !important;
    line-height: 1.4 !important;
}
.custom-related-grid .blog-entry-title a { color: #1a2744 !important; }
.custom-related-grid .nv-meta-list { display: none !important; }
.custom-related-grid .entry-excerpt { display: none !important; }

/* ===== Related Posts Title Fix ===== */
.custom-related-grid .blog-entry-title {
    font-size: 0.82em !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.custom-related-grid .blog-entry-title a {
    color: #1a2744 !important;
    font-size: 1em !important;
}

/* ===== Related Posts Item Fix ===== */
.custom-related-item {
    background: #fff !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
}
.custom-related-item img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    display: block !important;
}
.custom-related-item-title {
    font-size: 0.82em !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: #1a2744 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.custom-related-item-title a { color: #1a2744 !important; }

/* ===== Person & Logo Image Small ===== */
.single .nv-content-wrap figure.person-image,
.single .nv-content-wrap figure.logo-image {
    text-align: center !important;
}
.single .nv-content-wrap figure.person-image img {
    max-width: 300px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}
.single .nv-content-wrap figure.logo-image img {
    max-width: 200px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

/* ===== Person & Logo Image Override ===== */
figure.person-image {
    text-align: center !important;
}
figure.person-image img {
    max-width: 300px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}
figure.logo-image {
    text-align: center !important;
}
figure.logo-image img {
    max-width: 200px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

/* ===== Single Title Size Fix ===== */
.single .entry-title,
.single h1.entry-title {
    font-size: 1.3em !important;
    line-height: 1.5 !important;
}

/* ===== Single Title Size Fix 2 ===== */
.single .entry-title,
.single h1.entry-title {
    font-size: 1.6em !important;
    line-height: 1.5 !important;
}

/* ===== Single Content Image Size ===== */
.single .nv-content-wrap figure img {
    max-width: 80% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}
/* 縦長画像対応 */
.single .nv-content-wrap figure img[height] {
    max-width: 50% !important;
}
@media (max-width: 768px) {
    .single .nv-content-wrap figure img {
        max-width: 100% !important;
    }
}

/* ===== Portrait Image Fix ===== */
.single .nv-content-wrap figure img {
    max-height: 400px !important;
    width: auto !important;
    max-width: 80% !important;
    display: block !important;
    margin: 0 auto !important;
}
@media (max-width: 768px) {
    .single .nv-content-wrap figure img {
        max-height: 300px !important;
        max-width: 100% !important;
    }
}

/* ===== Image Width 90% Fix ===== */
.single .nv-content-wrap figure img {
    max-width: 90% !important;
    max-height: 500px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}
@media (max-width: 768px) {
    .single .nv-content-wrap figure img {
        max-width: 100% !important;
        max-height: none !important;
    }
}

/* ===== Logo Size Override ===== */
.site-logo img,
.nv-site-logo img,
header .site-logo img {
    max-width: 220px !important;
    height: auto !important;
}

/* ===== Hide Neve Default Tags ===== */
.nv-tags-list { display: none !important; }

/* ===== Tag Style Fix ===== */
.hm-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hm-tag-list a {
    display: inline-block;
    background: #f0f4f8 !important;
    color: #1a2744 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8em !important;
    border: 0.5px solid #c8d4e8 !important;
    transition: background 0.2s;
}
.hm-tag-list a:hover {
    background: #1a2744 !important;
    color: #fff !important;
}

/* ===== Tag Style hm-post-tags ===== */
.hm-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hm-post-tags a {
    display: inline-block;
    background: #f0f4f8 !important;
    color: #1a2744 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8em !important;
    border: 0.5px solid #c8d4e8 !important;
}
.hm-post-tags a:hover {
    background: #1a2744 !important;
    color: #fff !important;
}

/* ===== Related Posts Title Size ===== */
.custom-related-item-title,
.custom-related-item-title a {
    font-size: 0.75em !important;
    line-height: 1.4 !important;
}

/* ===== Related Posts Title Span Fix ===== */
.custom-related-item span {
    font-size: 0.75em !important;
    line-height: 1.4 !important;
    display: block !important;
    padding: 8px !important;
    color: #1a2744 !important;
}

/* ===== Related Posts Heading Font ===== */
.related-posts-section h3,
h3.related-posts-title,
.custom-related-grid + h3,
h3:has(+ .custom-related-grid) {
    font-family: 'Noto Serif JP', 'Georgia', serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    color: #1a2744 !important;
}

/* ===== Related Posts H3 ===== */
.custom-related-posts h3 {
    font-size: 1.3em !important;
    font-weight: 500 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    color: #1a2744 !important;
    border-left: 4px solid #1a2744 !important;
    padding-left: 12px !important;
    margin-bottom: 16px !important;
}

/* ===== Related Posts H3 No Border ===== */
.custom-related-posts h3 {
    border-left: none !important;
    padding-left: 0 !important;
}

/* ===== Slider Mobile Fix ===== */
.hm-slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 260px !important;
}
@media (max-width: 768px) {
    .hm-swiper { height: 260px !important; }
    .hm-slide { height: 260px !important; }
}

/* ===== Slider Image Tag Fix ===== */
.hm-slide {
    position: relative !important;
    overflow: hidden !important;
}
.hm-slide-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ハンバーガーメニュー タグスタイル */
.hm-nav-tag-section a, li.hm-nav-tag-section > a { display: none; }
li.hm-nav-tag-section > span { display: block; font-size: 0.75em; color: #999; letter-spacing: 0.1em; padding: 16px 20px 8px; text-transform: uppercase; }
li.hm-nav-tag-item > a { display: inline-block !important; margin: 4px 4px !important; padding: 6px 12px !important; background: #1a2744 !important; color: #fff !important; border-radius: 20px !important; font-size: 0.85em !important; line-height: 1.4 !important; }
li.hm-nav-tag-item > a:hover { background: #253668 !important; }
li.hm-nav-tag-item { display: inline-block !important; }

/* ハンバーガー タグ 高さ調整 */
li.hm-nav-tag-item > a { padding: 8px 14px !important; }

/* ハンバーガー タグ 幅修正 */
li.hm-nav-tag-item { display: inline-block !important; width: auto !important; }
li.hm-nav-tag-item > a { display: inline-block !important; width: auto !important; }

/* ハンバーガー タグ 横並び */
.hm-nav-tag-section { display: block !important; }
.hm-nav-tag-section ~ li.hm-nav-tag-item { display: inline-block !important; }

/* ハンバーガー タグ 横並び強制 */
.nav-ul li.hm-nav-tag-item,
.nav-menu li.hm-nav-tag-item,
ul.nav-ul li.hm-nav-tag-item {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
}

/* ハンバーガー タグ 横並び強制2 */
#nv-primary-navigation-sidebar li.hm-nav-tag-item {
    display: inline-block !important;
    width: auto !important;
}
#nv-primary-navigation-sidebar {
    display: block !important;
}

/* ハンバーガー タグ PC非表示 */
@media (min-width: 961px) {
    li.hm-nav-tag-section,
    li.hm-nav-tag-item {
        display: none !important;
    }
}

/* PC版ナビ タグ非表示 */
#nv-primary-navigation-main li.hm-nav-tag-section,
#nv-primary-navigation-main li.hm-nav-tag-item {
    display: none !important;
}

/* figcaption */
.hm-post-body figcaption, .entry-content figcaption {
    text-align: center;
    font-size: 0.82em;
    color: #888;
    margin-top: 6px;
    padding-bottom: 8px;
}

/* figcaption センター強制 */
figure figcaption {
    text-align: center !important;
    font-size: 0.82em !important;
    color: #888 !important;
    margin-top: 6px !important;
}
