/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ナビゲーション */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

/* テーブル内のリンク */
.results-table td a {
    color: #3498db;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.results-table td a:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* メインコンテンツ */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* 機能セクション */
.features-section {
    padding: 4rem 0;
    background-color: white;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* APIセクション */
.api-section {
    padding: 4rem 0;
    background-color: #ecf0f1;
}

.api-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.api-result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    min-height: 50px;
    display: none;
}

.api-result.show {
    display: block;
}

.api-result.success {
    border-left-color: #27ae60;
}

.api-result.error {
    border-left-color: #e74c3c;
}

/* アバウトページ */
.about-section {
    padding: 2rem 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text h2,
.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-text ul {
    margin-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.layer {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.layer h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.arrow {
    font-size: 1.5rem;
    color: #7f8c8d;
}

/* フッター */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 検索ページ */
.search-page {
    padding: 2rem 0;
    background-color: white;
}

.search-header h1{
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.search-header p{
    color: #7f8c8d;
}

.search-form {
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.search-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.search-input-row input[type="text"]{
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
}

.search-filters {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.75rem;
    color: #2c3e50;
}

.results-summary {
    margin-top: 1rem;
    color: #2c3e50;
}

.results-list {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.results-table thead th {
    background-color: #f2f4f6;
    color: #2c3e50;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e6eaed;
}

.results-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f3f5;
    color: #2c3e50;
}

.results-table tbody tr:hover {
    background-color: #f9fbfc;
}

.result-item {
    background-color: #ffffff;
    border: 1px solid #ecf0f1;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.result-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.result-snippet {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.result-meta {
    font-size: 0.9rem;
    color: #95a5a6;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .search-input-row {
        grid-template-columns: 1fr;
    }
}

a {
  text-decoration: none;
}