/* ------------------------------
blog 共通（記事一覧・記事詳細）
トンマナは test.css に合わせる
  ベース #F8F5F1 / 文字 #3B2208 / アクセント #6DAFCA
  見出し Shippori Mincho / ラベル Poppins / 本文 Noto Sans JP
  角丸: ボタン 30px(pill) / カード 10px
------------------------------ */
.blog {
    --c-base: #F8F5F1;
    --c-text: #3B2208;
    --c-accent: #6DAFCA;
    --c-line: #C0C0C0;
    --c-sub: #817066;
    background: var(--c-base);
    color: var(--c-text);
    font-family: "Noto Sans JP", sans-serif;
    overflow-x: hidden;
}
.blog, .blog *, .blog *::before, .blog *::after { box-sizing: border-box; }
.blog section { padding: 0; }
.blog section.blog-head { padding: 160px 0 56px; }
.blog section.blog-list { padding: 0 0 128px; }
.blog section.blog-related { padding: 128px 0; }
.blog a { color: inherit; text-decoration: none; }
.post-content { overflow-wrap: anywhere; }
.post-content iframe, .post-content video { max-width: 100%; }
.post-content .wp-block-table, .post-content figure.wp-block-table { overflow-x: auto; }
.blog ._title-before { justify-content: flex-start; }

/* ----- 一覧ヘッダー ----- */
.blog-head__inner,
.blog-list__inner {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
}
.blog-head__title {
    font-family: "Shippori Mincho", serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 2.864px;
    margin-bottom: 16px;
}
.blog-head__lead {
    font-size: 16px;
    line-height: 1.8;
    max-width: 65ch;
}
.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}
.blog-cats__item {
    padding: 8px 20px;
    border: 1px solid var(--c-text);
    border-radius: 30px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color .3s, color .3s;
}
.blog-cats__item:hover,
.blog-cats__item.is-active {
    background: var(--c-text);
    color: #fff;
}

/* ----- 一覧グリッド ----- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 32px;
}
.post-card__link { display: block; }
.post-card__thumb {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 10px;
    background: #EFEAE4;
}
.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.post-card__link:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body { padding-top: 20px; }
.post-card__meta,
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    line-height: 1.4;
}
.post-card__meta time,
.article-meta time { color: var(--c-sub); }
.post-card__cat,
.article-meta__cat {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    letter-spacing: .06em;
    padding: 4px 12px;
    border-radius: 30px;
    background: var(--c-accent);
    color: #fff;
}
.post-card__title {
    font-family: "Shippori Mincho", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    margin: 12px 0 8px;
}
.post-card__excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: var(--c-sub);
}
.post-card__link:hover .post-card__title { text-decoration: underline; text-underline-offset: 4px; }

/* 先頭の1件だけ大きく見せる */
.post-card--featured { grid-column: 1 / -1; }
.post-card--featured .post-card__link {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: center;
}
.post-card--featured .post-card__thumb { aspect-ratio: 16 / 10; }
.post-card--featured .post-card__body { padding-top: 0; }
.post-card--featured .post-card__title { font-size: 28px; }
.post-card--featured .post-card__excerpt { font-size: 16px; }

/* ----- ページネーション ----- */
.blog-pagination { margin-top: 80px; }
.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.blog-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-text);
    border-radius: 30px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    transition: background-color .3s, color .3s;
}
.blog-pagination a.page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--c-text);
    color: #fff;
}
.blog-pagination .dots { border: none; }

/* ----- 空状態 ----- */
.blog-empty { text-align: center; padding: 64px 0; }
.blog-empty__title {
    font-family: "Shippori Mincho", serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}
.blog-empty__text { font-size: 16px; line-height: 1.8; margin-bottom: 32px; }

/* ----- ボタン ----- */
.blog-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    padding: 14px 32px;
    border: 1.5px solid var(--c-text);
    border-radius: 30px;
    font-family: Poppins, "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2.24px;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--c-text);
    transition: opacity .3s, transform .2s;
}
.blog-btn:hover { opacity: .7; }
.blog-btn:active { transform: translateY(1px); }
.blog .blog-btn--fill {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
}

/* ----- 記事詳細 ----- */
.blog .article { padding-bottom: 72px; }
.blog .article-after { padding-bottom: 96px; }
.article-head { padding: 160px 0 40px; }
.article-head__inner,
.article-body,
.article-nav {
    width: 80%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.article-crumb {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--c-sub);
}
.article-crumb a:hover { color: var(--c-text); }
.article-crumb a + a::before {
    content: '/';
    margin-right: 24px;
    color: var(--c-line);
}
.article-title {
    font-family: "Shippori Mincho", serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 1.6px;
    margin-top: 20px;
}
.article-thumb {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto 64px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 本文（エディタ出力の見た目） */
.post-content {
    font-size: 16px;
    line-height: 2;
    padding-bottom: 96px;
}
.post-content > * + * { margin-top: 1.6em; }
.post-content h2 {
    font-family: "Shippori Mincho", serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 1.6px;
    margin-top: 3.2em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-line);
}
.post-content h3 {
    font-family: "Shippori Mincho", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 2.4em;
    padding-left: 16px;
    border-left: 3px solid var(--c-accent);
}
.post-content h4 { font-size: 18px; font-weight: 700; margin-top: 2em; }
.post-content a {
    color: var(--c-text);
    text-decoration: underline;
    text-decoration-color: var(--c-accent);
    text-underline-offset: 4px;
}
.post-content a:hover { opacity: .7; }
.post-content ul,
.post-content ol { padding-left: 1.6em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: .5em; }
.post-content img { height: auto; border-radius: 10px; display: block; }
.post-content figure { margin-left: 0; margin-right: 0; }
.post-content figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--c-sub);
}
.post-content blockquote {
    padding: 24px 28px;
    background: #fff;
    border-radius: 10px;
    color: var(--c-sub);
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.8;
}
.post-content th,
.post-content td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-line);
    text-align: left;
    vertical-align: top;
}
.post-content th { width: 30%; font-weight: 500; background: #EFEAE4; }

/* 記事の締め（本文の一部として読ませる固定文） */
.post-content .article-outro { margin-top: 3.2em; }
.post-content .article-outro > h2:first-child { margin-top: 0; }
.post-content .article-outro > * + * { margin-top: 1.6em; }

/* サロン紹介（全記事共通の締めセクション） */
.blog section.article-salon { padding: 0 0 96px; }
.article-salon__inner {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 56px;
    align-items: center;
    background: #EFEAE4;
    border-radius: 10px;
}
.article-salon__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; }
.article-salon__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-salon__label {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.44px;
    color: var(--c-accent);
    margin-bottom: 16px;
}
.article-salon__title {
    font-family: "Shippori Mincho", serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 1.6px;
    margin-bottom: 20px;
}
.article-salon__text { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
.article-salon__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 24px;
}
.article-salon__points li {
    padding: 6px 16px;
    border: 1px solid var(--c-text);
    border-radius: 30px;
    font-size: 14px;
    line-height: 1.4;
}
.article-salon__price { font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.article-salon__price strong {
    font-family: Poppins, "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 2px;
}
.article-salon__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.article-salon__btns .blog-btn { min-width: 0; flex: 1 1 150px; padding: 14px 20px; }

/* 前後の記事 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--c-line);
}
.article-nav__item span {
    display: block;
    margin-bottom: 8px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.44px;
    color: var(--c-sub);
}
.article-nav__item p { font-size: 15px; line-height: 1.7; }
.article-nav__item:hover p { text-decoration: underline; text-underline-offset: 4px; }
.article-nav__item--next { grid-column: 2; text-align: right; }
.article-nav__item--prev { grid-column: 1; }

/* 関連記事 */
.blog-related .blog-list__inner { text-align: center; }
.blog-related__title {
    font-family: "Shippori Mincho", serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2.4px;
    margin-bottom: 56px;
}
.blog-grid--related { text-align: left; margin-bottom: 64px; }

/* ----- SP ----- */
@media (max-width: 768px) {
    .blog section.blog-head { padding: 112px 0 40px; }
    .blog-head__inner,
    .blog-list__inner { width: 88%; }
    .blog-head__title { font-size: 28px; letter-spacing: 1.6px; }
    .blog-head__lead { font-size: 15px; }
    .blog-cats { margin-top: 28px; gap: 8px; }
    .blog section.blog-list { padding-bottom: 80px; }
    .blog-grid { grid-template-columns: 1fr; gap: 40px; }
    .post-card--featured .post-card__link { grid-template-columns: 1fr; gap: 20px; }
    .post-card--featured .post-card__body { padding-top: 0; }
    .post-card--featured .post-card__title { font-size: 22px; }
    .post-card--featured .post-card__excerpt { font-size: 14px; }
    .blog-pagination { margin-top: 56px; }

    .blog .article { padding-bottom: 48px; }
    .blog .article-after { padding-bottom: 64px; }
    .article-head { padding: 112px 0 28px; }
    .article-head__inner,
    .article-body,
    .article-nav { width: 88%; }
    .article-title { font-size: 24px; letter-spacing: 1px; }
    .article-thumb { width: 100%; border-radius: 0; margin-bottom: 40px; }
    .post-content { font-size: 15px; padding-bottom: 64px; }
    .post-content h2 { font-size: 22px; }
    .post-content h3 { font-size: 19px; }
    .post-content th,
    .post-content td { display: block; width: 100%; }
    .blog section.article-salon { padding-bottom: 64px; }
    .article-salon__inner { width: 88%; grid-template-columns: 1fr; gap: 28px; padding: 24px 20px 32px; }
    .article-salon__img { aspect-ratio: 16 / 10; }
    .article-salon__title { font-size: 21px; }
    .article-salon__btns .blog-btn { flex: 1 1 100%; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav__item--next,
    .article-nav__item--prev { grid-column: 1; text-align: left; }
    .blog section.blog-related { padding: 80px 0; }
    .blog-related__title { font-size: 24px; margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .post-card__thumb img { transition: none; }
    .post-card__link:hover .post-card__thumb img { transform: none; }
}

@media (max-width: 768px) {
    /* カテゴリは1行の横スクロール（親指で流せる） */
    .blog-cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -6vw;
        padding-right: 6vw;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .blog-cats::-webkit-scrollbar { display: none; }
    .blog-cats__item {
        flex: 0 0 auto;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        scroll-snap-align: start;
    }
    .blog-head__lead { font-size: 14px; }

    /* カード: 画像と文字の間隔を詰めて1画面に多く見せる */
    .post-card__body { padding-top: 14px; }
    .post-card__title { font-size: 18px; margin: 8px 0 6px; }
    .post-card__excerpt { font-size: 13px; line-height: 1.7; }
    .post-card--featured .post-card__title { font-size: 20px; }
    .post-card__thumb { border-radius: 8px; }

    /* ページネーション: 番号は現在地の前後のみ、ボタンは押しやすく */
    .blog-pagination .nav-links { gap: 8px; }
    .blog-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; }
    .blog-pagination .page-numbers:not(.current):not(.prev):not(.next):not(.dots) { display: none; }

    /* 記事本文 */
    .article-crumb { margin-bottom: 20px; gap: 16px; }
    .article-crumb a + a::before { margin-right: 16px; }
    .article-meta { gap: 12px; }
    .article-title { margin-top: 14px; line-height: 1.6; }
    .post-content { line-height: 1.95; }
    .post-content > * + * { margin-top: 1.4em; }
    .post-content h2 { margin-top: 2.6em; padding-bottom: 12px; line-height: 1.55; }
    .post-content h3 { margin-top: 2em; padding-left: 12px; }
    .post-content blockquote { padding: 18px 20px; }
    .post-content table { display: block; }
    .post-content th { background: transparent; padding: 14px 0 0; border-bottom: 0; font-size: 13px; color: var(--c-sub); }
    .post-content td { padding: 4px 0 14px; }

    /* 前後の記事: 押しやすい面にする */
    .article-nav { gap: 0; margin-top: 40px; padding-top: 0; }
    .article-nav__item { padding: 20px 0; border-bottom: 1px solid var(--c-line); }
    .article-nav__item:first-child { border-top: 1px solid var(--c-line); }
    .article-nav__item p { font-size: 14px; }

    /* サロン紹介: 写真は控えめに、ボタンを主役に */
    .article-salon__inner { padding: 20px 20px 28px; gap: 24px; }
    .article-salon__img { aspect-ratio: 16 / 9; }
    .article-salon__label { margin-bottom: 8px; }
    .article-salon__title { font-size: 20px; margin-bottom: 14px; }
    .article-salon__text { font-size: 14px; margin-bottom: 20px; }
    .article-salon__points { margin-bottom: 20px; }
    .article-salon__price { margin-bottom: 20px; }
    .article-salon__btns { gap: 10px; }
    .article-salon__btns .blog-btn { min-height: 52px; font-size: 15px; }

    /* 関連記事 */
    .blog-related__title { margin-bottom: 32px; }
    .blog-grid--related { gap: 32px; margin-bottom: 48px; }
    .blog-related .blog-btn { width: 100%; }
}
