/*
Theme Name: abc-blog
Theme URI: https://a-abc.tokyo/
Author: Claude / iwami
Author URI: https://a-abc.tokyo/
Description: 芸能人顔負けのスレンダー美女専門店 五反田メンズエステ『アロマABC』ブログ専用テーマ。フロントとデザイン完全統一、SEO/LLMO/構造化データ全部入り。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abc-blog
*/

/* ==========================================================================
   ブログTOP（記事一覧）
   ========================================================================== */

.blog-list-wrap {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}

@media screen and (max-width: 768px) {
    .blog-list-wrap {
        padding: 0 1.5rem;
        margin: 2rem auto;
    }
}

/* 横4列グリッド */
.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
}

@media screen and (max-width: 1100px) {
    .blog-list-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .blog-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.2rem;
    }
}

/* ==========================================================================
   記事カード（正方形アイキャッチ）
   ========================================================================== */

.blog-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ★ 正方形（1:1）アイキャッチ */
.blog-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

/* 横長画像でも正方形枠でセンタークロップ表示 */
.blog-card-thumb img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.5s ease;
    display: block;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 1.4rem 1.4rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #888;
    flex-wrap: wrap;
}

.blog-card-date {
    font-family: 'Zen Antique', serif;
    letter-spacing: 0.05em;
}

.blog-card-cat {
    background: #333;
    color: #fff;
    padding: 0.15rem 0.8rem;
    font-size: 1rem;
    border-radius: 2px;
    letter-spacing: 0.08em;
}

.blog-card-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 0.8rem;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* スマホ：カードを少し小さく */
@media screen and (max-width: 768px) {
    .blog-card-body {
        padding: 1rem 1rem 1.2rem;
    }
    .blog-card-title {
        font-size: 1.3rem;
    }
    .blog-card-excerpt {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }
    .blog-card-meta {
        font-size: 1rem;
    }
}

/* ==========================================================================
   個別記事
   ========================================================================== */

.single-article {
    max-width: 880px;
    margin: 4rem auto;
    padding: 0 2rem;
}

@media screen and (max-width: 768px) {
    .single-article {
        margin: 2rem auto;
    }
}

/* ★ 個別記事のタイトルブロック（白背景・黒文字） */
.single-article-header {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 3rem 3rem;
    margin-bottom: 3rem;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .single-article-header {
        padding: 2rem 1.5rem;
    }
}

.single-article-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #666;
    flex-wrap: wrap;
}

.single-article-date {
    font-family: 'Zen Antique', serif;
    letter-spacing: 0.05em;
    color: #555;
}

.single-article-cat {
    background: #333;
    color: #fff !important;
    padding: 0.3rem 1.2rem;
    font-size: 1.2rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.single-article-cat:hover {
    background: #555;
}

.single-article-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.4rem;
    line-height: 1.55;
    color: #222;
    font-weight: 500;
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .single-article-title {
        font-size: 1.8rem;
    }
}

.single-article-thumb {
    margin-bottom: 3rem;
    border-radius: 4px;
    overflow: hidden;
}

.single-article-thumb img {
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

.single-article-content {
    font-size: 1.5rem;
    line-height: 1.9;
    color: #333;
}

.single-article-content h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.2rem;
    margin: 4rem 0 2rem;
    padding: 1rem 0 1rem 1.5rem;
    border-left: 4px solid #333;
    line-height: 1.5;
    font-weight: 500;
}

.single-article-content h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e8e8e8;
    line-height: 1.5;
    font-weight: 500;
}

.single-article-content h4 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1.2rem;
    line-height: 1.5;
    font-weight: 600;
    color: #444;
}

.single-article-content p {
    margin-bottom: 1.8rem;
}

.single-article-content a {
    color: #2c7cb0;
    text-decoration: underline;
}

.single-article-content a:hover {
    color: #1a5a87;
}

.single-article-content strong {
    font-weight: 700;
    color: #222;
}

.single-article-content img {
    margin: 2rem auto;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.single-article-content ul,
.single-article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    padding-left: 1rem;
}

.single-article-content ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.single-article-content ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}

.single-article-content blockquote {
    background: #f7f7f7;
    border-left: 4px solid #aaa;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.single-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.single-article-content table th,
.single-article-content table td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
}

.single-article-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ==========================================================================
   タグ
   ========================================================================== */

.single-article-tags {
    margin: 4rem 0 2rem;
    padding-top: 3rem;
    border-top: 1px solid #e8e8e8;
}

.single-article-tags-label {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.single-article-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.single-article-tags ul li a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #f5f5f5;
    color: #555;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.single-article-tags ul li a:hover {
    background: #e0e0e0;
}

/* ==========================================================================
   パンくず
   ========================================================================== */

.breadcrumb {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    font-size: 1.2rem;
    color: #888;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb ol li {
    display: flex;
    align-items: center;
}

.breadcrumb ol li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: #ccc;
}

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

.breadcrumb a:hover {
    color: #333;
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #333;
}

/* ==========================================================================
   ページネーション
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 4rem 0 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    height: 4rem;
    padding: 0 1.2rem;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.pagination a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
    font-weight: 600;
}

.pagination .dots {
    border: none;
    background: transparent;
}

/* ==========================================================================
   関連記事（4列2段＝8件、正方形アイキャッチ）
   ========================================================================== */

.related-posts {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 4rem 2rem 0;
    border-top: 1px solid #e8e8e8;
}

.related-posts-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.related-posts-title small {
    display: block;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    letter-spacing: 0.3em;
    color: #888;
}

/* ==========================================================================
   検索
   ========================================================================== */

.search-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto;
    border: 1px solid #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1.4rem;
    outline: none;
    font-family: 'Noto Sans JP', sans-serif;
}

.search-form button {
    padding: 1rem 2rem;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: #555;
}

/* ==========================================================================
   404
   ========================================================================== */

.error-404 {
    max-width: 600px;
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.error-404-num {
    font-family: 'Zen Antique', serif;
    font-size: 8rem;
    line-height: 1;
    color: #ddd;
    margin-bottom: 2rem;
}

.error-404-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.error-404-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 3rem;
}

.error-404-back {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.error-404-back:hover {
    background: #555;
}

/* ==========================================================================
   ★ アーカイブヘッダー（白背景・黒文字）
   ========================================================================== */

.archive-header {
    max-width: 1280px;
    margin: 4rem auto 3rem;
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.archive-header-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.6rem;
    color: #222;
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.archive-header-title small {
    display: block;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    letter-spacing: 0.3em;
    color: #888;
    font-weight: 400;
}

.archive-header-desc {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .archive-header {
        margin: 2rem auto 2rem;
        padding: 2rem 1.5rem;
    }
    .archive-header-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   検索結果なし
   ========================================================================== */

.no-results {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.no-results-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.no-results-text {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ==========================================================================
   投稿ナビ（前後の記事）
   ========================================================================== */

.post-nav {
    max-width: 880px;
    margin: 4rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media screen and (max-width: 600px) {
    .post-nav {
        grid-template-columns: 1fr;
    }
}

.post-nav a {
    display: block;
    padding: 1.5rem 2rem;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: #333;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.post-nav a:hover {
    background: #f7f7f7;
    border-color: #ccc;
}

.post-nav-label {
    display: block;
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.post-nav-title {
    display: block;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

.post-nav .next {
    text-align: right;
}

/* ==========================================================================
   ヘッダー余白調整
   ========================================================================== */

body.blog-page {
    background: #fff;
}

/* スクリーンリーダー専用 */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   ★★★ aroma ABC 専用カラー上書き ★★★
   relax のモノトーン基調を、ABCのローズピンク系に変更
   - メイン: #b78791（くすみローズ）
   - hover : #8e6d71（ダークローズ）
   - 補助 : #E8C6C4（ライトピンクベージュ）
   ========================================================================== */

/* カテゴリラベル */
.blog-card-cat,
.single-article-cat {
    background: #b78791;
}
.single-article-cat:hover {
    background: #8e6d71;
}

/* 個別記事 h2 のボーダー */
.single-article-content h2 {
    border-left: 4px solid #b78791;
}

/* 本文中リンク */
.single-article-content a {
    color: #b78791;
}
.single-article-content a:hover {
    color: #8e6d71;
}

/* ページネーション */
.pagination a:hover {
    background: #b78791;
    color: #fff;
    border-color: #b78791;
}
.pagination .current {
    background: #b78791;
    color: #fff;
    border-color: #b78791;
}

/* 検索フォーム */
.search-form button {
    background: #b78791;
}
.search-form button:hover {
    background: #8e6d71;
}

/* 404ページの戻るボタン */
.error-404-back {
    background: #b78791;
}
.error-404-back:hover {
    background: #8e6d71;
}

/* セクション見出しの下線色（archive-header / related-posts-title） */
.archive-header {
    border-color: #f0d8d8;
    background: #fffbfc;
}
.archive-header-title {
    color: #5a3d44;
}

.related-posts-title {
    color: #5a3d44;
}

/* カードホバー時の影色も少しピンク寄りに */
.blog-card:hover {
    box-shadow: 0 8px 24px rgba(183, 135, 145, 0.15);
}

/* タイトル文字色（少し落ち着いたローズ寄りグレー） */
.blog-card-title,
.single-article-title {
    color: #2a1f23;
}

/* タグ */
.single-article-tags ul li a {
    background: #fff7f9;
    color: #8e6d71;
}
.single-article-tags ul li a:hover {
    background: #E8C6C4;
    color: #5a3d44;
}

/* 引用 */
.single-article-content blockquote {
    background: #fff7f9;
    border-left: 4px solid #b78791;
    color: #5a3d44;
}

/* テーブル */
.single-article-content table th {
    background: #fff7f9;
    color: #5a3d44;
}

/* パンくず：現在地のみ少しローズ寄り */
.breadcrumb [aria-current="page"] {
    color: #8e6d71;
}
.breadcrumb a:hover {
    color: #b78791;
}

/* 投稿ナビ（前後の記事）hover */
.post-nav a:hover {
    background: #fff7f9;
    border-color: #E8C6C4;
}

/* 検索結果なし */
.no-results-title {
    color: #5a3d44;
}

/* 個別記事タイトルブロックを少しピンクの下線で */
.single-article-header {
    border-bottom: 3px solid #E8C6C4;
}
