/**
 * 狐弥夢クリエイティブ メインスタイルシート
 */

/* ===================================
   追加の和風カラーパレット
=================================== */
:root {
    --fox-red: #E73C28;
    --fox-orange: #FF8C42;
    --fox-gold: #FFB366;
    --fox-light: #FFF5F0;
    --fox-cream: #FFE8DC;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #666666;
    --light-gray: #E5E5E5;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

/* ===================================
   共通スタイル
=================================== */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 30px;
}

/* 見出し装飾 */
.decorated-title {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.decorated-title::before,
.decorated-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fox-orange));
}

.decorated-title::before {
    right: 100%;
}

.decorated-title::after {
    left: 100%;
    background: linear-gradient(90deg, var(--fox-orange), transparent);
}

/* ===================================
   カード・ボックス
=================================== */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.card-header {
    border-bottom: 2px solid var(--fox-orange);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--fox-red);
    letter-spacing: 0.08em;
}

/* ===================================
   グラデーションボタン
=================================== */
.btn-gradient {
    background: linear-gradient(135deg, var(--fox-red), var(--fox-orange));
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 60, 40, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 60, 40, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--fox-orange);
    padding: 15px 40px;
    border-radius: 30px;
    border: 2px solid var(--fox-orange);
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--fox-orange);
    color: white;
}

/* ===================================
   背景パターン
=================================== */
.pattern-bg {
    position: relative;
    overflow: hidden;
}

.pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(231, 60, 40, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 140, 66, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 179, 102, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ===================================
   装飾要素
=================================== */
.fox-decoration {
    position: relative;
    display: inline-block;
}

.fox-decoration::after {
    content: '🦊';
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===================================
   セクション区切り
=================================== */
.section-divider {
    text-align: center;
    margin: 60px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fox-orange) 50%, transparent);
}

.section-divider-icon {
    position: relative;
    display: inline-block;
    background: var(--fox-light);
    padding: 0 20px;
    font-size: 1.5rem;
}

/* ===================================
   タグ・バッジ
=================================== */
.tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 140, 66, 0.1);
    color: var(--fox-orange);
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin: 5px;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--fox-red), var(--fox-orange));
    color: white;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    box-shadow: 0 3px 10px rgba(231, 60, 40, 0.3);
}

/* ===================================
   リスト装飾
=================================== */
.decorated-list {
    list-style: none;
    padding: 0;
}

.decorated-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.decorated-list li::before {
    content: '🦊';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

/* ===================================
   引用ブロック
=================================== */
.quote-block {
    position: relative;
    padding: 30px;
    background: rgba(255, 245, 240, 0.8);
    border-left: 4px solid var(--fox-orange);
    border-radius: 10px;
    margin: 30px 0;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 3rem;
    color: rgba(231, 60, 40, 0.2);
    font-family: serif;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--black);
    font-style: italic;
}

.quote-author {
    text-align: right;
    margin-top: 15px;
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===================================
   グリッドレイアウト
=================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.grid-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

/* ===================================
   タイムライン
=================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--fox-red), var(--fox-orange));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--fox-orange);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.timeline-content {
    width: calc(50% - 40px);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* ===================================
   モーダル
=================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--fox-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   トースト通知
=================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-info {
    border-left: 4px solid var(--fox-orange);
}

/* ===================================
   ローディングアニメーション
=================================== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 140, 66, 0.3);
    border-top-color: var(--fox-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-fox {
    text-align: center;
    font-size: 3rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===================================
   和風装飾パターン
=================================== */
.japanese-pattern {
    position: relative;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(231, 60, 40, 0.03) 20px,
            rgba(231, 60, 40, 0.03) 40px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(255, 140, 66, 0.03) 20px,
            rgba(255, 140, 66, 0.03) 40px
        );
}

/* ===================================
   レスポンシブユーティリティ
=================================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ===================================
   印刷用スタイル
=================================== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
