/* ========================================
   AIエージェントビジネスサイト スタイルシート
   ======================================== */

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #00b4d8;
    --accent-color: #ff6b35;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* ヘッダー */
header {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* ナビゲーション */
nav {
    margin-top: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 900px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    display: block;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav ul li a.active {
    background: var(--accent-color);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* メインコンテンツ */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ヒーローセクション（TOPページ用） */
.hero {
    position: relative;
    min-height: 500px;
    background: var(--gradient-3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    padding: 3rem;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero.jpg') center/cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.cta-button:hover {
    background: #ff8555;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* ニュースセクション */
.news-section {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.news-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
}

.news-list {
    list-style: none;
}

.news-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 2カラムレイアウト */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

/* メインコンテンツエリア */
.content-area {
    background: white;
}

.page-header {
    position: relative;
    min-height: 300px;
    background: var(--gradient-2);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/page1.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.page-header h2 {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.content-body {
    font-size: 1.05rem;
    line-height: 1.9;
}

.content-body h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.content-body h4 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.content-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-body ul, .content-body ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.content-body li {
    margin-bottom: 0.8rem;
}

.content-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* サイドバー */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-section {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 0.8rem;
}

.sidebar-section ul li a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.sidebar-section ul li a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-section ul li a::before {
    content: '▸';
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* 関連情報カード */
.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.info-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-color);
}

/* 広告スペース */
.ad-space {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

.ad-space p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 統計ボックス */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-box {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* フッター */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul li a {
        display: block;
        width: 100%;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-header h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 2rem 1.5rem;
        min-height: 400px;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-area, .sidebar-section {
    animation: fadeIn 0.6s ease;
}

/* プリント用スタイル */
@media print {
    header, footer, .sidebar, .hamburger {
        display: none;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 12pt;
    }
}
