/*
Theme Name: Webマーケナビ
Theme URI: https://example.com/web-marke-navi
Author: Your Name
Author URI: https://example.com
Description: Webマーケティングスクール比較サイト向けWordPressテーマ。広告運用・SNSマーケ・SEOスクールを比較。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: web-marke-navi
Tags: affiliate, marketing, school, tailwind

Webマーケナビ - Webマーケティングスクール比較サイト用WordPressテーマ
*/

/* Tailwind CDNを使用するため、このファイルには最小限のスタイルのみ記述 */

/* WordPress必須スタイル */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   アクセシビリティ強化
   ========================================================================== */

/* スキップリンク */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 1rem 2rem;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: #000 !important;
    }

    .text-gray-600,
    .text-gray-500 {
        color: #000 !important;
    }

    .border-gray-200 {
        border-color: #000 !important;
    }
}

/* フォーカス表示の強化 */
*:focus-visible {
    outline: 3px solid #10b981;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #10b981;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   アニメーション
   ========================================================================== */

/* フェードイン */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

/* スライドアップ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.6s ease-out forwards;
}

/* スライドダウン */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideDown {
    animation: slideDown 0.6s ease-out forwards;
}

/* スケールイン */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out forwards;
}

/* パルス（注目喚起） */
@keyframes pulse-attention {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.animate-pulse-attention {
    animation: pulse-attention 2s ease-in-out infinite;
}

/* シェイク（エラー時） */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* フロート（ホバー時の浮遊感） */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hover-float:hover {
    animation: float 2s ease-in-out infinite;
}

/* グラデーションアニメーション */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* ==========================================================================
   マイクロインタラクション
   ========================================================================== */

/* ボタンホバーエフェクト */
.btn-hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hover-lift:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* カードホバーエフェクト */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* リンクアンダーラインアニメーション */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* チェックマークアニメーション */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.animate-checkmark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 0.5s ease-out forwards;
}

/* ローディングスピナー */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin 1.5s linear infinite;
}

/* プログレスバーアニメーション */
@keyframes progressFill {
    from {
        width: 0;
    }
}

.animate-progress {
    animation: progressFill 1s ease-out forwards;
}

/* ==========================================================================
   モバイル最適化
   ========================================================================== */

/* タッチターゲットサイズ確保 */
@media (max-width: 768px) {
    button,
    a,
    input[type="checkbox"],
    input[type="radio"],
    select {
        min-height: 44px;
        min-width: 44px;
    }

    /* タップハイライト色 */
    a, button {
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2);
    }

    /* スクロールスナップ（カルーセル用） */
    .scroll-snap-x {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .scroll-snap-item {
        scroll-snap-align: start;
    }

    /* モバイルカード最適化 */
    .mobile-card-full {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
}

/* Safe area対応（iPhone X以降） */
@supports (padding: max(0px)) {
    .safe-area-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .safe-area-top {
        padding-top: max(0px, env(safe-area-inset-top));
    }
}

/* ==========================================================================
   Reduced Motion対応
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-pulse-attention,
    .hover-float:hover,
    .animate-gradient {
        animation: none !important;
    }
}

/* ==========================================================================
   プリントスタイル
   ========================================================================== */

@media print {
    /* 不要な要素を非表示 */
    header nav,
    footer,
    .back-to-top,
    .mobile-menu,
    .filter-section,
    .diagnosis-tool {
        display: none !important;
    }

    /* リンクURLを表示 */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* 背景色を白に */
    body {
        background: white !important;
        color: black !important;
    }

    /* ページ分割制御 */
    .course-card,
    .comparison-table tr {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   ダークモード対応（将来拡張用）
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /*
    将来的なダークモード対応のための準備
    現在はライトモードのみサポート
    */
}

/* ==========================================================================
   カスタムスクロールバー
   ========================================================================== */

/* Webkit系ブラウザ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* ==========================================================================
   診断ツール専用スタイル
   ========================================================================== */

.diagnosis-option {
    transition: all 0.2s ease;
}

.diagnosis-option:hover {
    transform: scale(1.02);
}

.diagnosis-option.selected {
    border-color: #10b981;
    background-color: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.diagnosis-progress-step {
    transition: all 0.3s ease;
}

.diagnosis-progress-step.active {
    background-color: #10b981;
    color: white;
    transform: scale(1.1);
}

.diagnosis-progress-step.completed {
    background-color: #10b981;
    color: white;
}

/* ==========================================================================
   比較表専用スタイル
   ========================================================================== */

.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
}

.comparison-table tbody tr {
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
    background-color: #f0fdf4;
}

/* ランクバッジ */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.4);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.4);
}

/* ==========================================================================
   FAQ専用スタイル
   ========================================================================== */

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #10b981;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.open {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   社会的証明専用スタイル
   ========================================================================== */

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* メディアロゴ */
.media-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.media-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   フィルター専用スタイル
   ========================================================================== */

.filter-chip {
    transition: all 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
}

.filter-chip.active {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.filter-dropdown {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-dropdown:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   本文コンテンツ（the_content）専用スタイル
   ========================================================================== */

.prose {
    color: #374151;
    line-height: 1.8;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prose h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, #10b981, #059669);
    border-radius: 2px;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid #10b981;
}

.prose h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose strong {
    color: #111827;
    font-weight: 600;
}

.prose a {
    color: #10b981;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #059669;
}

/* リスト */
.prose ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.prose ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
}

.prose ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
    counter-reset: list-counter;
}

.prose ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    counter-increment: list-counter;
}

.prose ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 引用 */
.prose blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-left: 4px solid #10b981;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #166534;
    font-style: normal;
}

.prose blockquote p {
    margin-bottom: 0;
}

/* インラインコード */
.prose code {
    background: #f3f4f6;
    color: #10b981;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: ui-monospace, monospace;
}

/* 水平線 */
.prose hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
}

/* テーブル */
.prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.prose table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.prose table tr:hover {
    background: #f9fafb;
}

/* FAQ風の質問と回答 */
.prose p:has(strong:first-child) {
    background: #f0fdf4;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border-left: 4px solid #10b981;
    margin-bottom: 0.5rem;
}

/* 「A.」から始まる回答 */
.prose p:first-of-type:not(:has(strong)) + p,
.prose blockquote + p {
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
    color: #4b5563;
}

/* CTAリンクカード風 */
.prose a[href*="/go/"],
.prose a[target="_blank"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.prose a[href*="/go/"]:hover,
.prose a[target="_blank"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.prose a[href*="/go/"]::after,
.prose a[target="_blank"]::after {
    content: '→';
    font-size: 1rem;
}

/* 注意書き・補足 */
.prose p:has(em:first-child),
.prose p:first-child em {
    display: block;
    background: #fef3c7;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-style: normal;
    font-size: 0.875rem;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* 箇条書き内リンク */
.prose ul li a,
.prose ol li a {
    display: inline;
    padding: 0;
    background: none;
    box-shadow: none;
    color: #10b981;
    font-weight: 500;
}

.prose ul li a:hover,
.prose ol li a:hover {
    color: #059669;
    transform: none;
    box-shadow: none;
}

.prose ul li a::after,
.prose ol li a::after {
    content: none;
}
