/*
Theme Name: Aimitsukaru
Description: AI時代に対応するための構造化データ・アーカイブ専用テーマ
Version: 1.56
*/

/* ==========================================================================
   1. 変数・共通設定
   ========================================================================== */
:root {
    --navy: #0f172a;
    --blue: #2563eb;
    --slate-blue: #475569; /* 追加：落ち着いたビジネス・スレートブルー */
    --gold: #b5945b;
    --deep-bronze: #926d27; /* 追加：セクション装飾に合わせたブロンズ */
    --gray: #64748b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --line-green: #06c755;
    --warning: #d97706;
    --success: #15803d;
}

* { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0; padding: 0; background-color: var(--bg-light); color: #1e293b;
    font-family: 'Noto Sans JP', sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .header-site-title, .top-main-copy, .footer-logo-text {
    font-family: 'Noto Serif JP', serif; font-weight: 700; color: var(--navy); line-height: 1.4;
}

a { color: var(--blue); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.7; }

img { max-width: 100%; height: auto; }
/* ==========================================================================
   2. ヘッダー (header.php) - コンパクト検索版
   ========================================================================== */
.site-header { 
    background: var(--white); 
    border-bottom: 1px solid var(--border); 
    padding: 8px 0; /* さらに詰めました */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

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

.header-branding { display: flex; align-items: center; flex-shrink: 0; }
.logo-link { display: flex; align-items: center; text-decoration: none; color: var(--navy) !important; }
.header-logo { height: 38px; width: auto; margin-right: 12px; } /* ロゴを少し小ぶりに */

.header-title-wrap { display: flex; flex-direction: column; justify-content: center; }
.header-site-title { font-size: 16px; margin: 0; letter-spacing: 0.02em; font-weight: bold; }
.header-tagline { font-size: 10px; color: var(--gray); margin: 0; font-weight: normal; line-height: 1.2; }

/* 検索窓とナビのエリア */
.header-nav { display: flex; align-items: center; gap: 20px; flex-grow: 1; justify-content: flex-end; }

.header-search-field form { 
    display: flex; 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    overflow: hidden; 
    background: #f9f9f9;
}
.header-search-field input { 
    border: none; 
    padding: 6px 12px; 
    font-size: 13px; 
    outline: none; 
    width: 200px; /* 必要に応じて調整 */
}
.header-search-field button { 
    background: var(--navy); 
    color: var(--white); 
    border: none; 
    padding: 6px 15px; 
    font-size: 12px; 
    font-weight: bold; 
    cursor: pointer; 
}

.nav-static-text { 
    font-size: 10px; 
    color: var(--gray); 
    line-height: 1.3;
    letter-spacing: 0.05em; 
    font-weight: 500; 
    border-left: 1px solid var(--border); 
    padding-left: 20px; 
    margin-right: 0; 
}
/* ==========================================================================
   3. トップページ (front-page.php)
   ========================================================================== */
.top-container {
    max-width: 1000px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
}

.top-section {
    margin-bottom: 8rem; /* Large spacing between groups */
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem); /* Visually dominant, relative scaling */
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3.5rem; /* Distinct separation from content below */
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 8rem; /* Consistent large separation */
}

/* ------------------------------------------------------------------
   1. ヒーローエリア
   ------------------------------------------------------------------ */
.hero-area {
    position: relative;
    padding: 8rem 4rem 10rem; /* Increased padding top/bottom for more breathing room */
    margin-bottom: 6rem;      /* Large spacing between groups */
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--navy);
}

/* 背景：極薄グリッドで「知識の場所」感 */
.hero-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* 右上のアクセント光 */
.hero-area::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(181, 148, 91, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    z-index: 1;
}

/* キャッチコピー上の小見出し */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--blue);
    opacity: 0.6;
}

/* ==========================================================================
   FRONT-PAGE COMPACT DOCUMENT STYLE
   ========================================================================== */

.top-container-fluid {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #1e293b;
    font-family: 'Noto Sans JP', sans-serif;
}

/* SECTION BASICS */
.document-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}
.document-section:last-child {
    border-bottom: none;
    padding-bottom: 5rem;
}

.section-doc-title {
    font-size: 1.4rem;
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

/* HERO SECTION */
.hero-section {
    padding: 4rem 2rem 3rem;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    color: #0f172a;
}
.hero-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    font-weight: 500;
}

/* MANIFESTO / CONTEXT SECTION */
.manifesto-section {
    padding: 2.5rem 2rem;
}
.manifesto-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.manifesto-block {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #0f172a;
    font-weight: 700;
    border-left: 4px solid #1d4ed8;
    padding-left: 1.5rem;
}
.manifesto-block:nth-child(2) { 
    border-left-color: #94a3b8; 
    color: #475569; 
    font-size: 1rem; 
    font-weight: 500;
}
.manifesto-block:nth-child(3) { 
    border-left-color: #0f172a; 
}
.manifesto-conclusion {
    background: #f8fafc;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0f172a;
}

/* HIERARCHY PILLARS (3つの柱) */
.hierarchy-pillars-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* MASTER PILLAR (01) */
.master-pillar-card {
    background: #fff;
    border: 2px solid #0f172a;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
}
.mp-num {
    display: inline-block;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border-bottom: 1px solid #1d4ed8;
    padding-bottom: 2px;
}
.mp-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
}
.mp-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
    margin: 0;
}

/* SECONDARY PILLARS (02, 03) */
.secondary-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.sp-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 1.8rem;
}
.sp-num {
    display: block;
    font-family: 'Noto Serif JP', serif;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.sp-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.8rem;
}
.sp-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* PROCESS PATH */
.path-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.path-step {
    display: flex;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.path-marker {
    flex-shrink: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.1em;
}
.path-box {
    flex: 1;
    padding: 2rem;
}
.pb-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #0f172a;
}
.pb-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 1.5rem;
}
.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #0f172a;
    color: #0f172a;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.pb-btn:hover { background: #0f172a; color: #fff !important; }
.pb-btn-primary { background: #0f172a; color: #fff !important; }
.pb-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* POLICY LIST */
.pl-wrapper {
    border: 1px solid #cbd5e1;
    background: #fff;
}
.pl-table {
    display: flex;
    flex-direction: column;
    margin: 0;
}
.policy-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}
.policy-row:last-child {
    border-bottom: none;
}
.policy-head {
    width: 200px;
    padding: 1.2rem 1.5rem;
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.policy-body {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #0f172a;
    flex: 1;
}

/* FINAL ACTIONS */
.fa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.fa-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 2rem;
}
.fa-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #0f172a;
}
.fa-card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
}
.fa-link {
    display: inline-flex;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.fa-link:hover { color: #0f172a; }

/* RESPONSIVE */
@media (max-width: 800px) {
    .document-section { padding: 2.5rem 1.5rem; }
    .hero-section { padding: 3rem 1.5rem 2rem; }
    .secondary-pillars-grid, .fa-grid { grid-template-columns: 1fr; }
    
    .master-pillar-card { padding: 2rem 1.5rem; }
    .sp-card { padding: 1.5rem; }
    
    .path-step { flex-direction: column; }
    .path-marker {
        width: 100%;
        writing-mode: horizontal-tb;
        padding: 0.8rem;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .path-box { padding: 1.5rem; }
    
    .policy-row { flex-direction: column; }
    .policy-head { width: 100%; border-right: none; border-bottom: 1px solid #e2e8f0; padding: 1rem 1.2rem; }
    .policy-body { padding: 1rem 1.2rem; }
}
/* ==========================================================================
   4. 個別ページ・共通パーツ (single.php / page.php) [Version 1.55]
   ========================================================================== */
.content-layout { display: flex; gap: 40px; max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.main-col { flex: 1; min-width: 0; }
.entry-card { background: var(--white); padding: 40px 50px; border: 1px solid var(--border); border-radius: 4px; }
.entry-title { font-size: 32px; margin: 0 0 40px; }

/* 見出し補助 */
.preview-header { border-bottom: 2px solid var(--navy); margin-bottom: 25px; padding-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.preview-title { font-size: 18px; margin: 0; }
.preview-sub { font-size: 11px; color: var(--gray); font-weight: normal; }
.added-status { color: var(--success) !important; font-weight: bold; }

/* 状態別のステータスパネル */
.ai-status-panel {
    margin-bottom: 20px;
    padding: 10px 15px; /* 上下の厚みを限界まで削りました */
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ddd;
    background: #fcfcfc;
    position: relative; /* 詳細展開時に重なって表示させるため */
}

/* 状態別のアクセント（色は継承） */
.v-panel { border-left-color: #15803d; background: #f0fdf4; }
.s-panel { border-left-color: #334155; }
.n-panel { border-left-color: #94a3b8; }

/* 1行目：見出しとボタンを横に並べる */
.status-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.status-msg {
    font-weight: bold;
    font-size: 14px; /* スマホで見切れないよう少し縮小 */
    color: #333;
    margin: 0 !important;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 「詳細確認」ボタンを並列化 */
.status-details { flex-shrink: 0; }
.status-summary {
    font-size: 11px;
    color: var(--blue);
    cursor: pointer;
    text-decoration: underline;
    list-style: none;
    padding: 2px 6px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 4px;
    background: #fff;
}
.status-summary::-webkit-details-marker { display: none; }
.status-summary:after { content: " ＋"; font-size: 9px; }

/* 2行目：チェックリストをバッジ風に（欄外感の演出） */
.status-badge-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(0,0,0,0.03); /* 非常に薄い境界線 */
}
.check-ok, .check-no { font-size: 10px; font-weight: normal; }
.check-ok { color: #15803d; }
.check-no { color: #94a3b8; }

/* 展開時の説明文：下の情報を押し下げないフローティング方式 */
.status-desc-inner {
    position: absolute;
    top: 42px; /* 1行目のすぐ下に浮き上がらせる */
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    padding: 12px;
    border-radius: 4px;
}
.status-desc { font-size: 11px !important; line-height: 1.6; color: #555 !important; margin: 0 !important; }

/* スマホでの微調整：さらにパディングを詰める */
@media (max-width: 600px) {
    .ai-status-panel { padding: 8px 12px; }
    .status-msg { font-size: 13px; }
}

/* チェックリスト */
.status-checklist {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.check-ok { color: #15803d; font-weight: bold; }
.check-no { color: #94a3b8; }

/* 情報を追加するボタン (CTA) エリア：余白を大幅に調整 */
.card-action {
    margin-top: 20px;
    margin-bottom: 80px; /* 下の見出しとの距離をしっかり開ける */
}

.add-info-btn {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}
.add-info-btn:hover { 
    background: var(--navy); 
    opacity: 1; 
    transform: translateY(-2px);
}

/* データテーブル */
.registry-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.row { display: flex; border-bottom: 1px solid var(--border); padding: 14px 0; }
.label { width: 140px; font-size: 13px; color: var(--gray); font-weight: bold; flex-shrink: 0; }
.val { flex: 1; font-size: 14px; word-break: break-all; }

/* デジタル名刺 */
.business-card-container {
    perspective: 1200px;
    margin-bottom: 80px;
}

.business-card-frame { 
    border: 1px solid #cbd5e1;
    padding: 45px 40px 35px;
    border-radius: 20px; 
    
    /* 真っ白ではなく、プラチナ・ヘアライン仕上げのグラデーション */
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #ffffff 25%, 
        #f1f5f9 50%, 
        #ffffff 75%, 
        #e2e8f0 100%
    );
    
    /* うっすらとした金属の質感を出すためのテクスチャ重ね */
    background-image: 
        /* 金属の反射光（ハイライト） */
        linear-gradient(135deg, rgba(255,255,255,0.8) 0%, transparent 40%, rgba(0,0,0,0.05) 100%),
        /* 微細なヘアライン（磨き跡） */
        repeating-linear-gradient(90deg, rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 2px);
    
    position: relative; 
    overflow: hidden;
    
    /* 物理的な厚みを感じさせる複数の影 */
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px rgba(255,255,255,0.8); /* エッジの光 */
    
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.business-card-frame:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(-1deg);
    box-shadow: 
        0 30px 40px -10px rgba(0, 0, 0, 0.15),
        0 15px 15px -10px rgba(0, 0, 0, 0.08);
}

/* カード表面の「照り返し」を動的に演出 */
.business-card-frame::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 55%
    );
    transition: all 0.8s ease;
    pointer-events: none;
}

.business-card-frame:hover::after {
    top: -50%;
    left: -50%;
}

/* --- ICチップ、JSONボックス、メタ情報は前回のVersion 1.30を維持 --- */
.card-ic-chip {
    position: absolute;
    top: 35px;
    right: 45px;
    width: 44px;
    height: 34px;
    background: linear-gradient(135deg, #d4af37 0%, #fff9e6 45%, #b5945b 100%);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 0 2px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-ic-chip::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(90deg, transparent 48%, rgba(0,0,0,0.1) 50%, transparent 52%),
                      linear-gradient(0deg, transparent 48%, rgba(0,0,0,0.1) 50%, transparent 52%);
    background-size: 11px 11px;
}

.card-lead-text {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 12px;
}

.json-code-box { 
    background: rgba(248, 250, 252, 0.8); /* 少し透過させてメタリック感を透かす */
    backdrop-filter: blur(4px); /* 背景をうっすらぼかす */
    color: #334155; 
    padding: 25px; 
    border-radius: 10px; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 13px; 
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.json-code-box pre { margin: 0; overflow-x: auto; white-space: pre-wrap; line-height: 1.5; }

/* カード下部のメタ情報 */
.card-bottom-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #cbd5e1;
    font-family: monospace;
}
/* 374行目付近に追加：デスクトップ版の注意書き */
.json-disclaimer {
    margin-top: 15px;
    font-size: 10px; 
    color: #94a3b8;
    line-height: 1.6;
    text-align: center;
    padding: 0 20px;
}
/* 有料版：詳細ナレッジ（お宝感リッチデザイン） */
.verified-optimized-box {
    background: linear-gradient(135deg, #fffdf0 0%, #fef3c7 100%);
    border: 1px solid #d4af37;
    padding: 35px;
    border-radius: 16px;
    display: flex;
    gap: 25px;
    align-items: center;
    box-shadow: 0 10px 30px -5px rgba(181, 148, 91, 0.2);
    position: relative;
    overflow: hidden;
}
.verified-optimized-box::after {
    content: "PREMIUM";
    position: absolute;
    top: 12px;
    right: -32px;
    background: #b5945b;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 40px;
    transform: rotate(45deg);
    letter-spacing: 0.1em;
}
.optimized-icon {
    background: #b5945b;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(181, 148, 91, 0.3);
}
.optimized-text-group { flex: 1; }
.optimized-title {
    font-weight: bold;
    color: #926d27;
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
}
.optimized-desc { margin: 0; font-size: 14px; line-height: 1.7; color: #5d4a2a; }

/* 未対応（プロモーション）ボックス */
.unverified-promotion-box { background: #fffbeb; border: 1px solid #fef3c7; padding: 30px; border-radius: 12px; }
.diagnosis-title { font-weight: bold; font-size: 18px; margin: 0 0 12px; color: #92400e; }
.diagnosis-text { font-size: 14px; margin-bottom: 20px; color: #78350f; }
.premium-cta-link { display: inline-block; background: var(--deep-bronze); color: #fff !important; padding: 12px 25px; border-radius: 6px; font-weight: bold; font-size: 14px; }

.source-footer { margin-top: 50px; font-size: 11px; color: var(--gray); text-align: right; border-top: 1px solid var(--border); padding-top: 10px; }
/* ==========================================================================
   5. サイドバー（2026年戦略型・最終調整版）
   ========================================================================== */
.side-col { width: 300px; flex-shrink: 0; }
.sticky-side { position: sticky; top: 100px; }

.side-widget {
    background: #fff;
    border: 1px solid var(--border);
    padding: 24px 20px;
    margin-bottom: 24px;
    border-radius: 4px;
}

/* 冒頭：枠線は細く、スレートブルーに */
.identity-frame {
    border: 1px solid var(--slate-blue);
    background: #fcfcfc;
}

.side-widget h3 {
    font-size: 15px;
    margin: 0 0 12px;
    color: var(--navy);
    font-weight: bold;
}

.side-desc {
    font-size: 12px;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 12px;
}

/* 伴走セクション（ミントグリーン系） */
.companion-widget {
    background: #f0fdfa; 
    border-color: #b2f2bb;
}

.companion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.companion-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    object-fit: cover;
}

.companion-name {
    margin: 0 !important;
    border: none !important;
    font-size: 16px !important;
}

/* LINEボタン：トーンを落とした深みのあるミント */
.companion-widget .line-cta-btn {
    display: block;
    background: #5a8d7a; 
    color: #fff !important;
    text-align: center;
    padding: 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

/* 共通パーツ */
.side-btn-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }

.side-btn-white {
    display: block; border: 1px solid var(--border); color: var(--navy) !important;
    text-align: center; padding: 10px; font-size: 11px; border-radius: 4px; font-weight: bold;
}

.side-btn-blue {
    display: block; background: var(--slate-blue); color: #fff !important;
    text-align: center; padding: 12px; border-radius: 4px; font-weight: bold; font-size: 13px;
}

/* プロモ画像（SNS to Web） */
.side-promo-img {
    margin-bottom: 12px; border-radius: 4px; overflow: hidden; border: 1px solid var(--border);
}
.side-promo-img img { width: 100%; height: auto; display: block; }

.notice-tag {
    display: inline-block; background: #f1f5f9; color: var(--gray);
    font-size: 10px; padding: 2px 8px; border-radius: 2px; margin-bottom: 8px; font-weight: bold;
}

.side-divider { border: 0; border-top: 1px solid var(--border); margin: 0 0 24px; }
.side-link-gold { font-size: 13px; font-weight: bold; color: var(--deep-bronze); text-decoration: underline; }

.share-box { margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--border); }
.share-lead { font-size: 11px; color: var(--navy); margin-bottom: 8px; font-weight: bold; }
.copy-btn {
    width: 100%; background: #f1f5f9; border: 1px solid var(--border);
    padding: 10px; font-size: 11px; color: var(--slate-blue); cursor: pointer;
    border-radius: 4px; font-weight: bold;
}
/* ==========================================================================
   6. フッター
   ========================================================================== */
.site-footer { background: var(--navy); color: #fff; padding: 80px 0 40px; margin-top: 100px; }
.footer-container { max-width: 1000px; margin: 0 auto; padding: 0 25px; }
.footer-logo-text { font-size: 22px; color: #fff; margin-bottom: 10px; letter-spacing: 0.05em; }
.footer-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; margin-bottom: 60px; }
.footer-nav-title { font-size: 15px; font-weight: bold; margin-bottom: 20px; color: #fff; border-left: 3px solid var(--blue); padding-left: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7) !important; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; font-size: 11px; color: rgba(255,255,255,0.4); }
/* ==========================================================================
   7. アーカイブ・投稿一覧ページ共通レイアウト (Version 1.25 Compact)
   ========================================================================== */
.archive-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }

/* リスト全体の境界線 */
.entry-list { border-top: 1px solid #ddd; }

/* 1行ごとのデータ行スタイル */
.entry-item.compact-row {
    background: #fff;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.entry-item.compact-row:hover {
    background: #f9f9f9;
}

.entry-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.row-content { flex: 1; min-width: 0; }

/* メタ情報（タグ） */
.row-meta { display: flex; gap: 8px; margin-bottom: 4px; align-items: center; }
.type-tag { font-size: 10px; background: #eee; padding: 2px 6px; border-radius: 3px; font-weight: bold; white-space: nowrap; }
.area-tag { font-size: 11px; color: #888; white-space: nowrap; }

/* タイトルと抜粋 */
.entry-item-title { font-size: 18px; margin: 0 0 2px 0; font-family: 'Noto Serif JP', serif; line-height: 1.4; }
.entry-excerpt { font-size: 13px; color: #666; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 矢印アイコン */
.view-detail-arrow { font-family: monospace; color: #ccc; font-size: 18px; font-weight: bold; }

/* 地域ナビゲーション */
.archive-area-nav { background: #f9f9f9; padding: 20px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #eee; }
.area-nav-title { font-size: 13px; color: #888; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.area-list a { font-size: 12px; background: #fff; border: 1px solid #ddd; padding: 4px 10px; border-radius: 4px; text-decoration: none; color: #333; }
.area-list a:hover { background: #000; color: #fff; border-color: #000; }

@media (max-width: 768px) {
    .archive-layout { grid-template-columns: 1fr; }
    .entry-excerpt { display: none; } /* モバイルでは抜粋を隠してさらにコンパクトに */
}
/* ==========================================================================
   8. パンくずリスト (Breadcrumbs)
   ========================================================================== */
.ai-breadcrumb { margin-bottom: 25px; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.03em; }
.ai-breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-breadcrumb li { display: flex; align-items: center; }
.ai-breadcrumb li:after { content: "/"; margin-left: 8px; opacity: 0.5; }
.ai-breadcrumb li:last-child:after { content: ""; }
.ai-breadcrumb a { color: #888; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.2s; }
.ai-breadcrumb a:hover { color: #000; border-bottom-color: #000; }
.ai-breadcrumb span { color: #444; font-weight: 500; }
/* ==========================================================================
   9. レスポンシブ調整（統合・最適化版）
   ========================================================================== */

/* タブレット・スマホ全般（レイアウトの構造を縦に変える） */
@media (max-width: 900px) {
    .content-layout, .archive-layout { flex-direction: column; }
    .side-col { width: 100%; }
    .pillar-grid, .footer-nav-grid { grid-template-columns: 1fr; }
    .header-container { flex-direction: column; gap: 15px; }
    .nav-static-text, .pc-only { display: none; }
    .entry-card { padding: 40px 20px; }
    .preview-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* スマホ実機専用：さらに細かく見た目を整える [Version 1.35] */
@media (max-width: 600px) {
    /* 1. infoバー（ステータスパネル）までの上部余白を削減 */
    .content-layout { 
        margin-top: 10px !important; 
    }
    .entry-card { 
        padding: 25px 15px; 
    }

    /* 2. メインの事業所タイトルを少し小さく */
    .entry-title { 
        font-size: 24px !important; 
        margin-bottom: 25px !important; 
        line-height: 1.3;
    }

    /* 3. デジタル名刺：ICチップとタイトルの重なり防止 */
    .business-card-frame {
        padding-top: 70px !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .card-ic-chip {
        top: 15px !important;
        right: 15px !important;
        width: 36px !important;
        height: 26px !important;
    }
    .card-lead-text {
        font-size: 9px !important;
        letter-spacing: 0.1em !important;
    }

    /* 4. カード下の注意書きをさらに小さく */
    .json-disclaimer {
        font-size: 9.5px !important;
        line-height: 1.5 !important;
        margin-top: 15px !important;
    }
    .json-code-box {
        padding: 15px !important;
        font-size: 11px !important;
    }

    /* ブロックのパディング超過による横揺れを抑止 */
    .verified-optimized-box, .unverified-promotion-box {
        flex-direction: column;
        padding: 20px !important;
        text-align: center;
        gap: 15px !important;
    }
    
    .registry-table .label {
        width: 110px; /* スマホ時の項目ラベル幅をさらに切り詰める */
    }
}

/* Phase 4: Diagnostic Styles */
.diagnostic-info { margin-top: 8px; font-size: 11px; color: #475569; line-height: 1.6; }
.dia-item { padding-left: 2px; }

.info-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #3b82f6; font-size: 13px; font-weight: 500; position: relative; padding: 2px 0; }
.info-icon-i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid #3b82f6; border-radius: 50%; font-size: 11px; font-family: serif; font-style: italic; font-weight: bold; }
.info-trigger::after { content: attr(data-tooltip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 12px 16px; border-radius: 6px; font-size: 12px; width: 280px; white-space: pre-wrap; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 1000; line-height: 1.5; text-align: left; font-weight: normal; }
.info-trigger:hover::after, .info-trigger:active::after { opacity: 1; visibility: visible; }
@media (max-width: 600px) { .info-trigger::after { left: 0; transform: translateX(0); width: 240px; } }


/* Hero & Policy Enhancements */
.hero-sub-concept { font-size: 1.1rem; color: var(--navy); margin-top: 1rem; line-height: 1.9; max-width: 44rem; }
.policy-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.policy-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 2rem; transition: transform 0.2s ease; }
.policy-card h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--navy); }
.policy-card p { font-size: 0.95rem; color: var(--gray); margin: 0; line-height: 1.9; }

@media (max-width: 800px) {
  .hero-sub-concept { font-size: 1rem; margin-top: 1rem; }
  .policy-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. 404エラーページ (Guide Page)
   ========================================================================== */
.error-404-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}
.error-404-header { margin-bottom: 50px; }
.error-code {
    font-family: 'Noto Serif JP', serif;
    font-size: 80px;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.error-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}
.error-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
}

.error-404-action-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 40px;
    text-align: left;
    margin-bottom: 40px;
}
.action-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 10px;
}
.action-box-desc {
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 25px;
}
.action-box-btn-wrap { text-align: center; margin-top: 10px; }
.error-404-footer { margin-top: 20px; }

@media (max-width: 600px) {
    .error-404-card { padding: 40px 20px; }
    .error-code { font-size: 60px; }
    .error-title { font-size: 18px; }
    .error-404-action-box { padding: 25px 20px; }
}
