/* ============================================
   困りごと解決ノート 共通スタイル
   一覧（index.html）と各記事で共用します
   ============================================ */

:root {
    --paper: #fbf8f2;
    --ink: #37403c;
    --green-deep: #244f41;
    --sage: #8da399;
    --gold: #b8924a;
    --red: #d84b4b;
    --line-green: #06c755;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 17px;
    line-height: 1.9;
    color: var(--ink);
    background-color: var(--paper);
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- ヘッダー ---------- */
.header {
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-deep);
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-line {
    background: var(--line-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 199, 85, .25);
}

/* ---------- ページ見出し ---------- */
.page-head {
    background: var(--green-deep);
    color: #f4efe3;
    text-align: center;
    padding: 44px 20px 40px;
}

.page-head .eyebrow {
    display: inline-block;
    font-size: .85rem;
    letter-spacing: .2em;
    color: #eadfc9;
    border: 1px solid rgba(234, 223, 201, .6);
    border-radius: 50px;
    padding: 4px 18px;
    margin-bottom: 16px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.page-head h1 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 900;
    font-size: 1.9rem;
    margin: 0 0 10px;
    line-height: 1.5;
}

.page-head p {
    color: #dbe6df;
    font-size: .98rem;
    margin: 0;
}

/* ---------- 一覧：検索・絞り込み ---------- */
.finder {
    background: #fff;
    border: 1px solid #eee6d8;
    border-radius: 16px;
    padding: 22px;
    margin: -26px auto 34px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}

.finder input[type="search"] {
    width: 100%;
    font-size: 1.05rem;
    font-family: inherit;
    padding: 13px 16px;
    border: 2px solid var(--sage);
    border-radius: 10px;
    background: var(--paper);
}

.finder input[type="search"]:focus {
    outline: 3px solid rgba(141, 163, 153, .35);
}

.cat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cat-buttons button {
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    color: var(--green-deep);
    background: #eef5ef;
    border: 1px solid #cfe0d2;
    border-radius: 50px;
    padding: 6px 16px;
    cursor: pointer;
}

.cat-buttons button.active {
    background: var(--green-deep);
    color: #fff;
    border-color: var(--green-deep);
}

.hit-count {
    font-size: .85rem;
    color: #6b746f;
    margin: 10px 0 0;
}

/* ---------- 一覧：記事カード ---------- */
.article-list {
    list-style: none;
    margin: 0 0 50px;
    padding: 0;
    display: grid;
    gap: 16px;
}

.article-card {
    background: #fff;
    border: 1px solid #eee6d8;
    border-radius: 14px;
    transition: border-color .25s, transform .25s;
}

.article-card:hover {
    border-color: var(--sage);
    transform: translateY(-2px);
}

.article-card a {
    display: block;
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
}

.article-card .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.article-card .date {
    font-size: .82rem;
    color: #9aa39d;
}

.article-card .tag {
    font-size: .78rem;
    font-weight: 700;
    color: var(--green-deep);
    background: #eef5ef;
    border-radius: 50px;
    padding: 2px 12px;
}

.article-card h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.15rem;
    margin: 0 0 6px;
    color: var(--ink);
    line-height: 1.6;
}

.article-card p {
    font-size: .92rem;
    color: #6b746f;
    margin: 0;
}

.no-hit {
    text-align: center;
    color: #6b746f;
    background: #fff;
    border: 1px dashed var(--sage);
    border-radius: 14px;
    padding: 34px 20px;
}

/* ---------- 記事本文 ---------- */
.article {
    background: #fff;
    border: 1px solid #eee6d8;
    border-radius: 16px;
    padding: 36px 30px;
    margin: 36px 0;
}

.article .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.article .date {
    font-size: .85rem;
    color: #9aa39d;
}

.article .tag {
    font-size: .8rem;
    font-weight: 700;
    color: var(--green-deep);
    background: #eef5ef;
    border-radius: 50px;
    padding: 2px 14px;
}

.article h1 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 900;
    font-size: 1.65rem;
    line-height: 1.55;
    color: var(--green-deep);
    margin: 0 0 20px;
}

.article h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.25rem;
    color: var(--green-deep);
    border-left: 5px solid var(--sage);
    padding-left: 14px;
    margin: 40px 0 14px;
}

.article h3 {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 26px 0 8px;
}

.article p {
    margin: 0 0 16px;
}

.article ul,
.article ol {
    padding-left: 1.4em;
    margin: 0 0 16px;
}

.article li {
    margin-bottom: 8px;
}

.case-note {
    background: var(--paper);
    border: 1px solid #eadfc9;
    border-radius: 12px;
    padding: 18px 22px;
    font-size: .95rem;
    margin: 0 0 20px;
}

.case-note .label {
    font-weight: 700;
    color: var(--gold);
}

.check-box {
    background: #eef5ef;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.check-box ul {
    margin: 0;
    list-style: none;
    padding: 0;
}

.check-box li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.check-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-deep);
    font-weight: bold;
}

.price-hint {
    background: #fdfaf3;
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 28px 0 0;
    font-size: .95rem;
}

.price-hint .label {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 4px;
}

.price-hint strong {
    color: var(--red);
}

/* ---------- 記事末尾CTA ---------- */
.article-cta {
    background: var(--green-deep);
    border-radius: 16px;
    color: #f4efe3;
    text-align: center;
    padding: 34px 24px;
    margin: 40px 0;
}

.article-cta h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.3rem;
    margin: 0 0 8px;
}

.article-cta p {
    color: #dbe6df;
    font-size: .92rem;
    margin: 0 0 20px;
}

.article-cta .btn-line {
    font-size: 1.1rem;
    padding: 15px 26px;
    width: 100%;
    max-width: 380px;
}

.article-cta .tel {
    margin: 16px 0 0;
    font-size: .9rem;
    color: #dbe6df;
}

.article-cta .tel a {
    color: #fff;
    font-weight: 900;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.3rem;
    text-decoration: none;
}

/* ---------- フッター ---------- */
.site-footer {
    background: #f4f1e8;
    color: #6b746f;
    padding: 36px 20px;
    text-align: center;
    font-size: .88rem;
}

.site-footer a {
    color: #6b746f;
}

.back-links {
    text-align: center;
    margin: 0 0 40px;
    font-size: .95rem;
}

.back-links a {
    color: var(--green-deep);
    font-weight: 700;
}

@media (max-width: 600px) {
    .page-head h1 {
        font-size: 1.45rem;
    }

    .article {
        padding: 26px 20px;
    }

    .article h1 {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
