@charset "UTF-8";

/* ==========================================================================
   ASHP Blog - ユーティリティ・装飾用CSS
   
   ブログ装飾コンポーネント定義書に基づいた装飾クラス集
   クラスを付与するだけで記事内の装飾を行うためのCSSです。
   他CSSとの競合を防ぐため、プレフィックス .ashp- を付与しています。
   ========================================================================== */

/* ==========================================================================
   カテゴリー1：テキスト強調系（インライン要素）
   文章の文脈の中で、特定のキーワードやフレーズに注目させるための要素
   ========================================================================== */

/* 1. 強調テキスト（ストロング強調）
   使用対象：主語、述語、結論となる短いフレーズ
   目的：一文の中で最も注意を払うべきポイントの明示 */
.ashp-txt-bold {
    font-weight: 700;
    font-size: 1.1em;
    color: #1f2937;
}

/* 2. マーカー線（視線誘導）- 黄色
   使用対象：理由、背景、またはパラグラフ全体の要約文
   目的：流し読みでも内容の要点が伝わるリズムの作成 */
.ashp-marker-yellow {
    background: linear-gradient(transparent 60%, #fef08a 60%);
    font-weight: 600;
    padding: 0 0.2em;
}

/* マーカー線 - ピンク */
.ashp-marker-pink {
    background: linear-gradient(transparent 60%, #fbcfe8 60%);
    font-weight: 600;
    padding: 0 0.2em;
}

/* マーカー線 - 青 */
.ashp-marker-blue {
    background: linear-gradient(transparent 60%, #bae6fd 60%);
    font-weight: 600;
    padding: 0 0.2em;
}

/* マーカー線 - 緑 */
.ashp-marker-green {
    background: linear-gradient(transparent 60%, #bbf7d0 60%);
    font-weight: 600;
    padding: 0 0.2em;
}

/* 3. インラインコード（技術的参照）
   使用対象：固有名詞、設定値、ファイル名、特定のキー名称
   目的：地の文と「操作対象」の明確な分離による誤読防止 */
.ashp-txt-code {
    font-family: 'Courier New', Consolas, monospace;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: #dc2626;
    font-weight: 500;
}

/* 4. 打消し線（状態の変化）
   使用対象：廃止された機能、過去の価格、修正前の誤り
   目的：新旧情報の対比による情報の透明性向上 */
.ashp-txt-strike {
    text-decoration: line-through;
    color: #9ca3af;
    opacity: 0.8;
}

/* 5. 点線アンダーライン（補足情報の示唆）
   使用対象：専門用語、略称、多義的な単語
   目的：用語解説等の詳細レイヤーが存在することの示唆 */
.ashp-txt-underline-dotted {
    border-bottom: 2px dotted #6b7280;
    cursor: help;
    text-decoration: none;
}

/* 補足：赤文字（重要な警告や注意喚起） */
.ashp-txt-red {
    color: #dc2626;
    font-weight: 600;
}

/* 補足：大きな文字（見出しに近い強調） */
.ashp-txt-large {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2937;
}

/* ==========================================================================
   カテゴリー2：補足・注意喚起系（ブロック要素）
   本文の流れから独立させ、読者の注意を惹きつけるための枠組み
   ========================================================================== */

/* 1. 補足（Info）ボックス
   アイコン：ｉ（インフォメーション）
   使用対象：関連する背景知識や、知っていると便利なTips
   目的：本筋を維持しつつ、情報の厚みを持たせる */
.ashp-box-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    position: relative;
}

/* ボックス共通タイトル
   疑似要素 var() 方式がWordPress等で不安定なため、
   ボックス内に <div class="ashp-box-title"> として記述する方式へ移行 */
.ashp-box-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.ashp-box-info .ashp-box-title { color: #2563eb; }

/* 2. 注意（Alert）ボックス
   アイコン：！（警告標識）
   使用対象：ミスが発生しやすい手順や、作業上のリスクに関する警告
   目的：読者の不利益（エラーや損失）を未然に防止する */
.ashp-box-alert {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    position: relative;
}

.ashp-box-alert .ashp-box-title { color: #f59e0b; }

/* 3. 成功（Check）ボックス
   アイコン：チェックマーク
   使用対象：推奨設定を適用した結果得られるメリットや、ゴール状態
   目的：正しい状態を提示し、安心感と達成感を与える */
.ashp-box-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    position: relative;
}

.ashp-box-success .ashp-box-title { color: #22c55e; }

/* 4. 引用（Quote）ブロック
   アイコン：引用符（""）
   使用対象：第三者の発言、公的データ、信頼できる外部リソースの抜粋
   目的：主観と客観を区別し、記事の信憑性を裏付ける */
.ashp-box-quote {
    background-color: #f9fafb;
    border-left: 4px solid #6b7280;
    padding: 1.5rem;
    padding-left: 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
    position: relative;
}

.ashp-box-quote::before {
    content: "\201C";
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 3rem;
    color: #d1d5db;
    line-height: 1;
    font-family: Georgia, serif;
}

.ashp-box-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9em;
    color: #6b7280;
    font-style: normal;
}

.ashp-box-quote cite::before {
    content: "— ";
}

/* 5. 質問（Q&A）ブロック
   案B：ミニマル・ライン（洗練・ビジネス向け）
   使用対象：想定される疑問点と、それに対する明確な回答
   目的：読者の心理的ハードルを下げ、行動（コンバージョン）を促す */
.ashp-qa-minimal {
    margin: 2.5rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid #e5e7eb;
}

.ashp-qa-minimal-q,
.ashp-qa-minimal-a {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ashp-qa-minimal-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.ashp-qa-minimal-q .ashp-qa-minimal-icon {
    background-color: #1f2937;
    color: #fff;
}

.ashp-qa-minimal-a .ashp-qa-minimal-icon {
    background-color: #f3f4f6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.ashp-qa-minimal-text {
    padding-top: 0.2rem;
    font-weight: 600;
    color: #1f2937;
}

.ashp-qa-minimal-a .ashp-qa-minimal-text {
    font-weight: 400;
    color: #4b5563;
}

/* ==========================================================================
   カテゴリー3：リスト・構造化系（レイアウト要素）
   情報の密度を整理し、論理的な順序や分類を示すための要素
   ========================================================================== */

/* 1. 箇条書き（並列リスト）
   使用対象：並列するメリット、持ち物、前提条件
   目的：情報密度を下げ、スキャン（拾い読み）の速度を上げる */
.ashp-list-disc {
    list-style: none !important;
    padding-left: 0;
    margin: 1.5rem 0;
}

.ashp-list-disc li {
    list-style-type: none !important;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.ashp-list-disc li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563eb;
    font-size: 0.8em;
}

/* 2. 手順（ステップ）リスト
   使用対象：設定手順、インストール方法、攻略フロー
   目的：作業の全体像と現在地を可視化し、離脱を防ぐ */
.ashp-list-step {
    counter-reset: step-counter;
    list-style: none !important;
    padding-left: 0;
    margin: 2rem 0;
}

.ashp-list-step li {
    list-style-type: none !important;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ashp-list-step li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* 3. 比較テーブル（表）
   使用対象：プラン比較、競合他社比較、メリット・デメリット対比
   目的：複数の選択肢から、最適な解を直感的に選ばせる */
.ashp-table-compare {
    display: table !important;
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.ashp-table-compare thead {
    display: table-header-group !important;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.ashp-table-compare tbody {
    display: table-row-group !important;
}

.ashp-table-compare tr {
    display: table-row !important;
}

.ashp-table-compare th,
.ashp-table-compare td {
    display: table-cell !important;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.ashp-table-compare th {
    text-align: left;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 2px solid #d1d5db;
}

.ashp-table-compare td {
    color: #374151;
}

.ashp-table-compare tbody tr:hover {
    background-color: #f9fafb;
}

.ashp-table-compare tbody tr:last-child td {
    border-bottom: none;
}

/* 4. 説明リスト（定義リスト）
   使用対象：商品スペック、運営者情報、専門用語の簡易解説
   目的：特定の属性情報を、迷わずピンポイントで見つけさせる */
.ashp-list-definition {
    display: block !important;
    margin: 2rem 0;
    border-left: 3px solid #2563eb !important;
    padding-left: 1.5rem;
}

.ashp-list-definition dt {
    display: block !important;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.ashp-list-definition dt:first-child {
    margin-top: 0;
}

.ashp-list-definition dd {
    display: block !important;
    margin-left: 0;
    color: #4b5563;
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

/* ==========================================================================
   カテゴリー4：視覚的区切り・誘導系（誘導要素）
   記事の構成を視覚的に分離し、次の行動（遷移）を促すための要素
   ========================================================================== */

/* 1. 区切り線（アイコン付き）
   使用対象：大きなトピックの切り替え、まとめの直前
   目的：スクロールの手を一度止めさせ、文脈のリセットを促す
   ※hrタグだとテーマの影響を受けやすいため、div.ashp-divider-star として実装 */
.ashp-divider-star {
    border: none;
    border-top: 1px solid #e5e7eb !important;
    margin: 3.5rem 0;
    overflow: visible;
    text-align: center;
    position: relative;
    height: 1px;
}

.ashp-divider-star::after {
    content: "★ ★ ★";
    background: #fff;
    padding: 0 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -0.7rem;
    color: #9ca3af;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

/* 3. 目次（シンプルボックス）
   デザイン：スタイリッシュ（ヘッダー強調型）
   使用対象：長文記事の冒頭
   目的：記事の全体構造を提示し、目的の場所までショートカットさせる */
.ashp-box-toc {
    border: 2px solid #2563eb;
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
    background: #fff;
}

.ashp-box-toc-title {
    display: block;
    background: #2563eb;
    color: #fff;
    padding: 1rem;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

.ashp-box-toc ul,
.ashp-box-toc ul li {
    list-style: none !important;
    list-style-type: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.ashp-box-toc ul {
    padding: 1.5rem !important;
    counter-reset: toc-counter;
}

.ashp-box-toc li {
    margin-bottom: 0.8rem;
    padding-left: 0;
    position: relative;
    border-bottom: 1px dotted #e5e7eb !important;
    padding-bottom: 0.5rem !important;
}

.ashp-box-toc li:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 0 !important;
}

.ashp-box-toc a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: block;
}

.ashp-box-toc a::before {
    content: "0" counter(toc-counter) ". ";
    counter-increment: toc-counter;
    color: #2563eb;
    margin-right: 0.5rem;
    font-weight: 700;
}

.ashp-box-toc a:hover {
    color: #2563eb;
    background-color: #eff6ff !important;
    padding-left: 0.5rem !important;
    transition: all 0.2s;
}

/* 4. CTAボタン（誘導ボタン） - バリエーション */
/* 共通ベーススタイル：全ての ashp-btn- クラスを持つ要素に適用 */
[class*="ashp-btn-"] {
    display: inline-block !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin: 1rem 0 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* 案C：3D（立体的・採用） */
.ashp-btn-3d {
    background-color: #3b82f6 !important;
    color: #fff !important;
    border-radius: 8px !important;
    border-bottom: 4px solid #1d4ed8 !important;
    position: relative !important;
}

.ashp-btn-3d:hover {
    transform: translateY(2px) !important;
    border-bottom-width: 2px !important;
}

/* 案D：ストロング（赤色・緊急性・採用） */
.ashp-btn-strong {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #fff !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.4) !important;
    font-size: 1.1em !important;
}

.ashp-btn-strong:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.5) !important;
}

/* 案F：アウトライン（サブアクション用・採用） */
.ashp-btn-outline {
    background-color: transparent !important;
    border: 2px solid #2563eb !important;
    color: #2563eb !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
}

.ashp-btn-outline:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}


/* 5. 内部リンクカード
   使用対象：関連記事の紹介、続きの推奨
   使用対象：関連記事の紹介、続きの推奨
   目的：テキストリンクよりも視認性を高め、サイト内回遊率を向上させる */
.ashp-link-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem 0;
    text-decoration: none !important;
    color: inherit !important;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.ashp-link-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ashp-link-card-label {
    background-color: #3b82f6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.ashp-link-card-content {
    flex: 1;
}

.ashp-link-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
    display: block;
}

.ashp-link-card-desc {
    font-size: 0.9rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ashp-link-card::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #d1d5db;
    font-size: 1.2rem;
    margin-left: auto;
}

/* ==========================================================================
   カテゴリー5：総括・メタ情報系（読後体験要素）
   記事の価値を高め、読者の満足度と行動を促進する要素
   ========================================================================== */

/* 1. まとめボックス（Summary）
   使用対象：記事の要約、読者が持ち帰るべき重要ポイント
   目的：読後の満足感を高め、重要事項の記憶定着を助ける */
.ashp-box-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.ashp-box-summary-title {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0c4a6e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ashp-box-summary-title::before {
    content: var(--ashp-summary-icon, "📝");
    font-size: 1.3rem;
}

.ashp-box-summary ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.ashp-box-summary li {
    list-style-type: none !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.8rem !important;
    position: relative;
    line-height: 1.6;
    color: #0c4a6e;
}

.ashp-box-summary li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1.1em;
}

.ashp-box-summary li:last-child {
    margin-bottom: 0 !important;
}

/* 2. レーティング（星評価・難易度）
   使用対象：商品レビューの総合評価、手順の難易度、推奨度
   目的：情報の質やレベル感を直感的に伝え、ミスマッチを防ぐ */
.ashp-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8fafc;
    border-radius: 6px;
    margin: 1rem 0;
}

.ashp-rating-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.ashp-rating-stars {
    display: inline-flex;
    gap: 0.2rem;
    color: #fbbf24;
    font-size: 1.1rem;
}

.ashp-rating-stars .star-filled::before {
    content: "★";
}

.ashp-rating-stars .star-empty::before {
    content: "☆";
    color: #cbd5e1;
}

/* 3. プロフィールボックス（Author）
   使用対象：執筆者の専門性、実績、SNS、活動目的
   目的：情報の出所を明らかにし、記事の信頼性と説得力を高める */
.ashp-box-author {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ashp-box-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ashp-box-author-content {
    flex: 1;
}

.ashp-box-author-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 0.3rem;
    display: block;
}

.ashp-box-author-role {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: block;
}

.ashp-box-author-bio {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 4. タイムライン（ロードマップ）
   使用対象：学習スケジュール、開発履歴、プロジェクトの変遷
   目的：時間軸に沿った変化を整理し、未来の展望を提示する */
.ashp-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

/* 縦線 */
.ashp-timeline::before {
    content: "";
    position: absolute;
    left: 6px; /* 12px丸の半分 = 6px */
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px; /* 2pxラインの半分を左にずらして中央に */
    background: linear-gradient(180deg, #3b82f6 0%, #93c5fd 100%);
}

.ashp-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

/* 丸マーカー */
.ashp-timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.ashp-timeline-date {
    display: block;
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.ashp-timeline-content {
    color: #4b5563;
    line-height: 1.6;
}

.ashp-timeline-item:last-child {
    margin-bottom: 0;
}

/* ========================================
   記事内自動挿入広告
   ======================================== */
.blog-ad-in-article-wrapper {
    margin: 3rem 0;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px dashed #e5e7eb;
    border-bottom: 1px dashed #e5e7eb;
    background-color: #fafafa;
    clear: both;
    max-width: 100%;
    overflow: hidden;
}

.blog-ad-in-article-wrapper::before {
    content: "スポンサーリンク";
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

/* 記事下などの固定広告セクション */
.blog-ad-section {
    margin: 4rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.blog-ad-section::before {
    content: "スポンサーリンク";
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 1.5rem;
}
