/* カスタムカラー - 高級ベージュトーン */
:root {
    --primary: #8b7355;
    --primary-dark: #6b5b47;
    --secondary: #a0916c;
    --accent: #d4af37;
    --success: #8fbc8f;
    --follow-primary: #10b981;
    --follow-secondary: #059669;
    --gradient-1: linear-gradient(135deg, #d2b48c 0%, #8b7355 100%);
    --gradient-2: linear-gradient(135deg, #f5deb3 0%, #daa520 100%);
    --gradient-3: linear-gradient(135deg, #ddbf94 0%, #8b7355 100%);
    --gradient-4: linear-gradient(135deg, #e6d3a3 0%, #b8860b 100%);
    --gradient-follow: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
    min-height: 100vh;
}

/* サイドバー用のスタイル */
aside {
    min-width: 0;
}

/* sticky要素のz-index */
.sticky {
    z-index: 10;
}

/* モバイルでのサイドバー調整 */
@media (max-width: 1023px) {
    aside {
        width: 100%;
        order: 2;
    }
    
    aside .sticky {
        position: static;
    }
    
    .flex-col {
        flex-direction: column;
    }
}

/* サイドバーカードのホバー効果 */
aside .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 115, 85, 0.1);
    transition: all 0.3s ease;
}

/* クイックアクセスボタンのホバー効果 */
aside button:hover {
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* サイドバーユーザー情報のスタイル */
#sidebarUserInfo {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
}

#sidebarUserInfo h3 {
    color: #1e293b;
}

#sidebarUserInfo button {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

#sidebarUserInfo button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

/* 広告バナー枠のスタイル */
#adBannerContainer {
    position: relative;
    transition: all 0.3s ease;
}

#adBannerContainer:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 115, 85, 0.15);
}

.ad-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.ad-banner:hover {
    opacity: 0.9;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transition: background 0.3s ease;
}

.ad-placeholder:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* 広告ラベル */
.ad-label {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* フッターサービス紹介のスタイル */
.service-card {
    position: relative;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px) !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-link {
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.service-link:hover {
    transform: translateX(4px);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(2px);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-card:hover {
        transform: translateY(-4px) !important;
    }
}

/* 日次タスクチェックリストのスタイル */
.task-item {
    position: relative;
}

.task-item:hover {
    background-color: #f9fafb;
}

.task-checkbox {
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.task-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* 進捗バーのアニメーション */
#progressBar {
    transition: width 0.5s ease, transform 0.2s ease;
}

/* タスク完了時のアニメーション */
.task-completed {
    animation: taskComplete 0.5s ease;
}

@keyframes taskComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* チェックボックスのカスタムスタイル */
.task-checkbox[type="checkbox"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: #3b82f6;
    width: 1rem;
    height: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

.task-checkbox[type="checkbox"]::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #3b82f6;
    background-color: CanvasText;
}

.task-checkbox[type="checkbox"]:checked::before {
    transform: scale(1);
}

.task-checkbox[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.task-checkbox[type="checkbox"]:checked::before {
    box-shadow: inset 1em 1em #fff;
}

/* ヘッダーグラデーション */
.hero-gradient {
    background: linear-gradient(135deg, #8b7355 0%, #a0916c 50%, #d2b48c 100%);
}

/* カード設計 */
.writing-card, .input-card, .result-card {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.writing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(139, 115, 85, 0.15);
    background: rgba(255, 255, 255, 1);
}

.writing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.writing-card:hover::before {
    transform: scaleX(1);
}

/* フォロー機能専用カードスタイル */
.follow-card:hover {
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.15);
}

.follow-card::before {
    background: var(--gradient-follow);
}

.follow-card:hover::before {
    transform: scaleX(1);
}

/* アイコングラデーション */
.icon-gradient-1 { background: var(--gradient-1); }
.icon-gradient-2 { background: var(--gradient-2); }
.icon-gradient-3 { background: var(--gradient-3); }
.icon-gradient-4 { background: var(--gradient-4); }
.icon-gradient-follow { background: var(--gradient-follow); }

/* フォーム要素 */
.form-input {
    border: 2px solid rgba(139, 115, 85, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    outline: none;
    background: rgba(255, 255, 255, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #8b7355 0%, #a0916c 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #8b7355;
    border-radius: 12px;
    padding: 14px 22px;
    color: #8b7355;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #8b7355;
    color: white;
}

/* フォロー機能専用ボタン */
.btn-follow {
    background: transparent;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 14px 22px;
    color: #10b981;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-follow:hover {
    background: #10b981;
    color: white;
}

/* 自動挿入画像のスタイル */
.blog-image-container {
    margin: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8px;
}

.blog-auto-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.blog-auto-image:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* ローディングアニメーション */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.95) 0%, rgba(160, 145, 108, 0.95) 100%);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* メニュー選択カード */
.menu-option input:checked + .menu-card {
    border-color: #8b7355;
    background: linear-gradient(135deg, #f5deb3 0%, #daa520 20%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.menu-option input:checked + .menu-card i {
    color: #8b7355;
}

.menu-option input:checked + .menu-card p {
    color: #6b5b47;
    font-weight: 600;
}

.menu-card {
    transition: all 0.3s ease;
}

/* フローティングSNSボタン */
.sns-floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sns-buttons-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sns-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-bottom: 12px;
}

.sns-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.sns-btn:active {
    transform: translateY(0) scale(0.95);
}

/* メインボタン */
.sns-btn-main {
    background: linear-gradient(135deg, #8b7355 0%, #a0916c 100%);
    width: 64px;
    height: 64px;
    font-size: 24px;
    margin-bottom: 16px;
}

.sns-btn-main:hover {
    background: linear-gradient(135deg, #6b5b47 0%, #8b7355 100%);
}

/* 各SNSボタンの色 */
.sns-btn-line {
    background: linear-gradient(135deg, #00c300 0%, #00b800 100%);
}

.sns-btn-instagram {
    background: linear-gradient(135deg, #e4405f 0%, #833ab4 50%, #fccc63 100%);
}

.sns-btn-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d95e8 100%);
}

.sns-btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
}

.sns-btn-copy {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* SNSボタンリスト */
.sns-buttons-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sns-buttons-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ツールチップ */
.sns-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sns-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.sns-btn:hover .sns-tooltip {
    opacity: 1;
    visibility: visible;
}

/* アニメーション */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.sns-btn.animate-bounce {
    animation: bounceIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .writing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .writing-grid.follow-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .form-input {
        padding: 12px 14px;
    }

    .btn-primary, .btn-secondary, .btn-follow {
        padding: 14px 20px;
        width: 100%;
    }
    
    .blog-image-container {
        margin: 15px 0;
        border-radius: 8px;
        padding: 6px;
    }
    
    .blog-auto-image {
        border-radius: 6px;
    }
    
    .sns-floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .sns-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .sns-btn-main {
        width: 56px;
        height: 56px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .sns-tooltip {
        right: 60px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .blog-image-container {
        margin: 12px 0;
        border-radius: 6px;
        padding: 4px;
    }
    
    .sns-floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .sns-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .sns-btn-main {
        width: 52px;
        height: 52px;
        font-size: 18px;
        margin-bottom: 10px;
    }
}

/* 結果表示エリア */
.result-content {
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap;
}

/* ツールチップスタイル */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    margin-left: 5px;
    cursor: help;
    transition: all 0.3s ease;
}

.tooltip-icon:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.tooltip-content {
    visibility: hidden;
    position: fixed;
    background-color: rgba(92, 51, 23, 0.95);
    color: white;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    width: 250px;
    max-width: 90vw;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(92, 51, 23, 0.95) transparent transparent transparent;
    top: 100%;
}

.tooltip-content.tooltip-bottom::after {
    top: -6px;
    border-color: transparent transparent rgba(92, 51, 23, 0.95) transparent;
}

/* ツールチップの基本表示設定 */

/* カード内のツールチップ位置調整 */
.writing-card .tooltip-container {
    justify-content: center;
    margin-top: 5px;
}

.writing-card h4 {
    display: inline-block;
}

/* モバイル用説明文 */
.usage-hint-mobile {
    display: none;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 8px;
    line-height: 1.3;
    text-align: center;
}

/* モバイル用カード内説明表示 */
@media (max-width: 768px) {
    .tooltip-icon {
        display: inline-block; /* スマホでもアイコンを表示 */
        -webkit-tap-highlight-color: transparent; /* タップハイライトを無効化 */
    }
    
    .usage-hint-mobile {
        display: none; /* 下部説明文を非表示 */
    }
    
    /* ツールチップはモバイルでは非表示 */
    .tooltip-content {
        display: none;
    }
    
    /* カード内説明表示 */
    .mobile-hint-display {
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        padding: 8px 10px;
        margin: 10px 0;
        font-size: 11px;
        line-height: 1.4;
        color: #666;
        animation: slideDown 0.3s ease-out;
    }
    
    /* アクティブ状態のアイコン */
    .tooltip-icon.active {
        background: rgba(0, 0, 0, 0.3);
        color: white;
    }
}

/* デスクトップ専用のホバーイベント */
@media (min-width: 769px) {
    .tooltip-icon:hover {
        background: rgba(0, 0, 0, 0.3);
        transform: scale(1.1);
    }
    
    .mobile-hint-display {
        display: none;
    }
}

/* スライドダウンアニメーション */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フォロー機能の結果表示時の特別なスタイル */
.result-card.follow-result {
    border-left: 4px solid #10b981;
}

.result-card.follow-result .bg-gradient-to-r {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* アニメーション */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* カードのスタッガードアニメーション */
.writing-card:nth-child(1) { animation-delay: 0.1s; }
.writing-card:nth-child(2) { animation-delay: 0.2s; }
.writing-card:nth-child(3) { animation-delay: 0.3s; }
.writing-card:nth-child(4) { animation-delay: 0.4s; }
.writing-card:nth-child(5) { animation-delay: 0.5s; }
.writing-card:nth-child(6) { animation-delay: 0.6s; }

.follow-card:nth-child(1) { animation-delay: 0.7s; }
.follow-card:nth-child(2) { animation-delay: 0.8s; }
.follow-card:nth-child(3) { animation-delay: 0.9s; }

/* 入力フォームの表示/非表示 */
.input-section {
    display: none;
}

.input-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* コピーボタン */
.copy-btn {
    background: #4ade80;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #22c55e;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #8b5cf6;
}

.html-copy-btn {
    background: #3b82f6;
}

.html-copy-btn:hover {
    background: #2563eb;
}

/* 画像の配置バリエーション */
.blog-image-container.left {
    float: left;
    width: 40%;
    margin: 10px 20px 10px 0;
}

.blog-image-container.right {
    float: right;
    width: 40%;
    margin: 10px 0 10px 20px;
}

.blog-image-container.full-width {
    width: 100%;
    margin: 25px 0;
}

/* 画像のローディング状態 */
.blog-auto-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-auto-image.loaded {
    opacity: 1;
}

/* 画像のフォールバック */
.blog-auto-image:not([src]),
.blog-auto-image[src=""] {
    display: none;
}

/* 画像キャプション（オプション） */
.blog-image-caption {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

/* 画像のアクセシビリティ改善 */
.blog-auto-image[alt=""] {
    border: 2px solid #ef4444;
}

.blog-auto-image:focus {
    outline: 2px solid #8b7355;
    outline-offset: 2px;
}

/* 結果表示エリアでの画像表示改善 */
.result-content .blog-image-container {
    margin: 15px 0;
    background: rgba(139, 115, 85, 0.05);
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.result-content .blog-auto-image {
    max-height: 300px;
    width: auto;
}

/* ブログプレビュー */
.blog-preview {
    max-height: 600px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 14px;
}

.blog-preview h1, .blog-preview h2, .blog-preview h3 {
    font-weight: bold;
    margin: 16px 0 8px 0;
    color: #374151;
}

.blog-preview h1 { font-size: 18px; }
.blog-preview h2 { font-size: 16px; }
.blog-preview h3 { font-size: 14px; }

.blog-preview p {
    margin: 8px 0;
    line-height: 1.6;
}

/* フォロー機能用の特別な入力フィールド */
.follow-input-group {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.follow-input-group label {
    color: #059669;
    font-weight: 600;
}

.follow-input-group .form-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 営業・マーケティング用のスタイル */
.icon-gradient-sales {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-sales {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sales:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: scale(1.05);
}

.sales-card {
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.sales-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

/* サポート・教育用のスタイル */
.icon-gradient-support {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.btn-support {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-support:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6b21a8 100%);
    transform: scale(1.05);
}

.support-card {
    border: 2px solid rgba(147, 51, 234, 0.1);
    transition: all 0.3s ease;
}

.support-card:hover {
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.1);
}

/* 一般消費者向けスタイル */
.btn-consumer {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-consumer:hover {
    background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
    transform: scale(1.05);
}

.consumer-card {
    border: 2px solid rgba(236, 72, 153, 0.1);
    transition: all 0.3s ease;
}

.consumer-card:hover {
    border-color: rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.1);
}

.icon-gradient-consumer {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

/* ===== HTMLコンテンツ表示用スタイル ===== */

/* === SNS投稿スタイル === */
.sns-container, 
.sns-business-container {
    max-width: 800px;
    margin: 0 auto;
}

.sns-post {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.instagram-post {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    border: none;
}

.twitter-business, .twitter-post {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    color: white;
    border: none;
}

.facebook-business, .facebook-post {
    background: linear-gradient(45deg, #4267B2, #365899);
    color: white;
    border: none;
}

.business-content, .sns-post p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.hashtags, .business-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.hashtag {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* === 美容Tips・チュートリアルスタイル === */
.beauty-tips-container,
.makeup-tutorial-container {
    max-width: 900px;
    margin: 0 auto;
}

.tips-header {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.tips-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 16px;
    opacity: 0.9;
}

.tips-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tips-section h2 {
    font-size: 22px;
    color: #374151;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.highlight-box {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.highlight-box.pro-advice {
    background: #f3e8ff;
    border-color: #c4b5fd;
}

.highlight-box.caution {
    background: #fef2f2;
    border-color: #fca5a5;
}

.highlight-box strong {
    display: block;
    margin-bottom: 8px;
    color: #374151;
}

/* === メイクチュートリアル専用スタイル === */

.tutorial-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #374151;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.tutorial-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.difficulty-level {
    background: rgba(255,255,255,0.8);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.tutorial-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tutorial-section h2 {
    font-size: 22px;
    color: #374151;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.step-number {
    background: #ec4899;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    color: #374151;
    margin-bottom: 8px;
}

.technique-tip, .trouble-item {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.technique-tip strong, .trouble-item h4 {
    display: block;
    margin-bottom: 8px;
    color: #0369a1;
}

.completion-check {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.completion-check h3 {
    font-size: 20px;
    color: #166534;
    margin-bottom: 10px;
}

.item-list {
    list-style-type: none;
    padding-left: 0;
}

.item-list li {
    background: #f3f4f6;
    padding: 8px 15px;
    margin: 5px 0;
    border-radius: 6px;
    border-left: 4px solid #ec4899;
}

/* タブ切り替えスタイル */
.tab-navigation {
    border-bottom: 2px solid #e5e7eb;
}

.tab-button {
    background: white;
    color: #6b7280;
    border: 2px solid transparent;
    border-radius: 12px 12px 0 0;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    color: #374151;
    background: #f9fafb;
}

.tab-button.active {
    background: white;
    color: #2563eb;
    border-color: #2563eb #2563eb white #2563eb;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.tab-button.active i {
    color: #2563eb;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* タブ切り替え時のスムーズなアニメーション */
.tab-button i {
    transition: all 0.3s ease;
}

/* 新しいカテゴリのアニメーション */
.sales-card:nth-child(1) { animation-delay: 0.1s; }
.sales-card:nth-child(2) { animation-delay: 0.2s; }
.sales-card:nth-child(3) { animation-delay: 0.3s; }
.sales-card:nth-child(4) { animation-delay: 0.4s; }

.support-card:nth-child(1) { animation-delay: 0.5s; }
.support-card:nth-child(2) { animation-delay: 0.6s; }
.support-card:nth-child(3) { animation-delay: 0.7s; }
.support-card:nth-child(4) { animation-delay: 0.8s; }

/* フォロー機能のバッジ */
.follow-badge {
    display: inline-block;
}

/* ===== 編集機能用スタイル ===== */

/* 編集可能エリアのフォーカス時のみスタイルを適用 */
.edit-mode:focus {
    outline: 1px solid #e5e7eb;
    background-color: #fefefe;
}

/* 画像メニューのスタイル */
.image-menu {
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 編集モード時の画像カーソル */
.edit-mode img {
    cursor: pointer !important;
}


    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    position: absolute;
    top: 8px;
    right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ツールチップスタイル */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #374151 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* フォーカス状態の改善 */
.writing-card:focus,
.follow-card:focus {
    outline: 2px solid #8b7355;
    outline-offset: 2px;
}

.follow-card:focus {
    outline-color: #10b981;
}

/* アクセシビリティ改善 */
.sns-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* 印刷対応 */
@media print {
    .loading-overlay, 
    .btn-primary, 
    .btn-secondary, 
    .btn-follow,
    .copy-btn,
    .sns-floating-buttons {
        display: none !important;
    }
    
    .result-content {
        color: #000;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .blog-image-container {
        box-shadow: none;
        background: none;
        padding: 0;
        page-break-inside: avoid;
    }
    
    .blog-auto-image {
        max-width: 100%;
        height: auto;
        filter: none;
    }
    
    .blog-auto-image:hover {
        transform: none;
    }
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
    .writing-card, .follow-card {
        border: 2px solid #374151;
    }
    
    .btn-secondary, .btn-follow {
        border-width: 3px;
    }
    
    .blog-image-container {
        border: 2px solid #374151;
        background: #ffffff;
    }
}

/* アニメーション軽減対応 */
@media (prefers-reduced-motion: reduce) {
    .writing-card, .follow-card, .btn-primary, .btn-secondary, .btn-follow {
        transition: none;
    }
    
    .fade-in {
        animation: none;
    }
    
    .blog-auto-image {
        transition: none;
    }
    
    .blog-auto-image:hover {
        transform: none;
    }
    
    .sns-btn, .sns-buttons-list, .sns-tooltip {
        transition: none;
    }
    
    .sns-btn.animate-bounce {
        animation: none;
    }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    .blog-image-container {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .blog-image-caption {
        color: #d1d5db;
    }
}