/* ===========================================
   不登校のヒント｜共通スタイル
   =========================================== */

body.page-template-page-hint,
body.tax-hint-tag-page {
    margin: 0;
    padding: 0;
    background: #FDFAF2;
    color: #2E2E2C;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    line-height: 1.7;
}

body.page-template-page-hint *,
body.tax-hint-tag-page * {
    box-sizing: border-box;
}

body.page-template-page-hint a,
body.tax-hint-tag-page a {
    color: inherit;
}

.hint-archive {
    background: #FDFAF2;
    min-height: 80vh;
    padding-bottom: 80px;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #2E2E2C;
    line-height: 1.7;
}

/* ヒーロー */
.hint-archive-hero {
    background: linear-gradient(180deg, #FDFAF2 0%, #F7F1E3 100%);
    padding: 48px 24px 40px;
    text-align: center;
    border-bottom: 1px solid #E5DDC9;
}

.hint-breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}

.hint-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.hint-breadcrumb a:hover {
    color: #2E2E2C;
}

.hint-breadcrumb .sep {
    margin: 0 6px;
}

.hint-archive-tag-display {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #E5DDC9;
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #2E2E2C;
}

.hint-archive-tag-display .hash {
    color: var(--hint-accent, #E94A8C);
    font-weight: 700;
    margin-right: 4px;
}

.hint-archive-title {
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: 0.04em;
}

.hint-archive-count {
    font-size: 12px;
    color: #5A5A57;
}

/* リスト本体 */
.hint-archive-list {
    padding: 40px 20px 0;
    max-width: 880px;
    margin: 0 auto;
}

/* カードグリッド：スマホ1列、PC2列 */
.hint-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .hint-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* カード */
.hint-card {
    display: flex;
    flex-direction: column;
    min-height: 142px;
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #E5DDC9;
    border-left: 18px solid var(--accent, #E94A8C);
    box-shadow: 0 2px 6px rgba(46,46,44,0.05);
    text-decoration: none;
    color: inherit;
    padding: 15px 16px 15px 14px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hint-card::before {
    content: none;
}

.hint-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 20px rgba(46,46,44,0.1);
    border-color: #D8CFBA;
    border-left-color: var(--accent, #E94A8C);
}

.hint-card-top,
.hint-card-main,
.hint-card-footer {
    position: relative;
    z-index: 1;
}

.hint-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-height: 23px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hint-card-main {
    flex: 1;
}

/* 媒体バッジ */
.hint-media-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.hint-media-youtube { background: #FFE5E5; color: #C53030; }
.hint-media-blog    { background: #EFE6D2; color: #2E2E2C; }
.hint-media-note    { background: #E0F2EC; color: #1F8A60; }
.hint-media-pdf     { background: #FFF3CC; color: #8A6A00; }

/* 料金バッジ */
.hint-price-badge {
    display: inline-flex;
    align-items: center;
    background: #FBE1EC;
    color: #B83B70;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.hint-sub-info {
    display: inline-flex;
    align-items: center;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

/* タイトル */
.hint-card-title {
    font-family: inherit;
    font-size: 15.5px;
    line-height: 1.62;
    font-weight: 700;
    margin: 0 0 10px;
    color: #2E2E2C;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hint-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 26px;
    margin-top: 10px;
}

/* タグチップ */
.hint-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.hint-tag-chip {
    font-size: 11px;
    color: #5A5A57;
    background: #F7F1E3;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #E5DDC9;
    font-weight: 700;
    line-height: 1.2;
}

.hint-card-open {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #D8CFBA;
    background: #fff;
    flex: 0 0 auto;
    margin-left: auto;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}

.hint-card-open::before,
.hint-card-open::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #5A5A57;
    transform-origin: center;
}

.hint-card-open::before {
    width: 10px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.hint-card-open::after {
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #5A5A57;
    border-right: 1.5px solid #5A5A57;
    background: transparent;
    transform: translate(-25%, -50%) rotate(45deg);
}

.hint-card:hover .hint-card-open {
    background: var(--accent, #E94A8C);
    border-color: var(--accent, #E94A8C);
}

.hint-card:hover .hint-card-open::before {
    background: #fff;
}

.hint-card:hover .hint-card-open::after {
    border-color: #fff;
}

@media (max-width: 480px) {
    .hint-card {
        min-height: 136px;
        padding: 14px 14px 14px 13px;
    }

    .hint-card-title {
        font-size: 15px;
    }
}

/* 空メッセージ */
.hint-archive-empty {
    text-align: center;
    color: #888;
    padding: 60px 20px;
}

/* 戻るリンク */
.hint-archive-back {
    text-align: center;
    margin-top: 60px;
}

.hint-back-link {
    display: inline-block;
    color: #5A5A57;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.hint-back-link:hover {
    border-bottom-color: #5A5A57;
}

/* ===========================================
   不登校のヒント｜トップ
   =========================================== */

.hint-home {
    background: #FDFAF2;
    min-height: 80vh;
    padding-bottom: 80px;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #2E2E2C;
    line-height: 1.7;
}

.hint-home-hero {
    background: linear-gradient(180deg, #FDFAF2 0%, #F7F1E3 100%);
    border-bottom: 1px solid #E5DDC9;
    padding: 56px 20px 48px;
    text-align: center;
}

.hint-home-hero-inner,
.hint-home-section,
.hint-home-cta {
    width: min(100% - 40px, 880px);
    margin: 0 auto;
}

.hint-home-kicker,
.hint-home-section-kicker,
.hint-home-cta-kicker {
    margin: 0 0 10px;
    color: #B83B70;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hint-home-title {
    margin: 0 0 16px;
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
    font-size: clamp(30px, 8vw, 44px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.03em;
}

.hint-home-lead {
    max-width: 640px;
    margin: 0 auto;
    color: #5A5A57;
    font-size: 14px;
    line-height: 2;
    text-align: left;
}

.hint-home-section {
    padding-top: 48px;
}

.hint-home-section-head {
    margin-bottom: 18px;
}

.hint-home-section-title {
    margin: 0 0 8px;
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

.hint-home-section-lead {
    margin: 0;
    color: #5A5A57;
    font-size: 13px;
    line-height: 1.9;
}

.hint-shelf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.hint-shelf-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 116px;
    border: 1px solid #E5DDC9;
    border-left: 18px solid var(--accent, #E94A8C);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    padding: 16px 16px 16px 14px;
    box-shadow: 0 2px 6px rgba(46,46,44,0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hint-shelf-card:hover {
    transform: translateY(-3px);
    border-color: #D8CFBA;
    border-left-color: var(--accent, #E94A8C);
    box-shadow: 0 9px 20px rgba(46,46,44,0.1);
}

.hint-shelf-card-main {
    min-width: 0;
}

.hint-shelf-hash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #F7F1E3;
    color: var(--accent, #E94A8C);
    font-size: 13px;
    font-weight: 700;
}

.hint-shelf-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.hint-shelf-desc {
    margin: 0;
    color: #5A5A57;
    font-size: 12px;
    line-height: 1.75;
}

.hint-shelf-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hint-shelf-arrow {
    width: 26px;
    height: 26px;
    border: 1px solid #D8CFBA;
    border-radius: 50%;
    background: #fff;
    position: relative;
}

.hint-shelf-arrow::before,
.hint-shelf-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #5A5A57;
    transform-origin: center;
}

.hint-shelf-arrow::before {
    width: 10px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.hint-shelf-arrow::after {
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #5A5A57;
    border-right: 1.5px solid #5A5A57;
    background: transparent;
    transform: translate(-25%, -50%) rotate(45deg);
}

.hint-shelf-card:hover .hint-shelf-arrow {
    background: var(--accent, #E94A8C);
    border-color: var(--accent, #E94A8C);
}

.hint-shelf-card:hover .hint-shelf-arrow::before {
    background: #fff;
}

.hint-shelf-card:hover .hint-shelf-arrow::after {
    border-color: #fff;
}

.hint-home-cta {
    margin-top: 56px;
}

.hint-home-cta-inner {
    border: 1px solid #E5DDC9;
    border-radius: 16px;
    background: #fff;
    padding: 24px 20px;
    box-shadow: 0 2px 6px rgba(46,46,44,0.05);
}

.hint-home-cta-title {
    margin: 0 0 10px;
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

.hint-home-cta-text {
    margin: 0 0 18px;
    color: #5A5A57;
    font-size: 13px;
    line-height: 1.9;
}

.hint-home-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    background: #E94A8C;
    color: #fff;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hint-home-cta-link:hover {
    background: #B83B70;
    color: #fff;
}

@media (min-width: 768px) {
    .hint-home-lead {
        text-align: center;
    }

    .hint-shelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .hint-home-cta-inner {
        padding: 30px 32px;
    }
}

@media (max-width: 480px) {
    .hint-home-hero {
        padding: 44px 20px 38px;
    }

    .hint-home-section {
        padding-top: 40px;
    }

    .hint-shelf-card {
        min-height: 108px;
        padding: 14px 14px 14px 13px;
    }
}
