:root {
    /* サイトごとのアクセントカラー（ライブラリ間で統一の仕組み・色だけ差し替え） */
    --accent: #667eea;
    --accent-soft: rgba(102, 126, 234, 0.12);
    --accent-faint: rgba(102, 126, 234, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.tab:hover, .tab.active {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.symbol-item {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.symbol-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: rgba(255,255,255,1);
}

.symbol-char {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.2s ease;
    font-family: "Apple SD Gothic Neo", "儷黒 Pro", "Microsoft JhengHei", "SimSun", "Arial Unicode MS", sans-serif;
}

.symbol-item:hover .symbol-char {
    color: var(--accent);
}

.symbol-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.copied-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.copied-indicator.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.info-section {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.info-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 1.35rem;
    margin: 45px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-soft);
}

.info-section h2:first-child {
    margin-top: 0;
}

.h2-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-section p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 18px;
}

.info-section p strong {
    background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
    padding: 0 2px;
}

.info-section ul {
    margin-bottom: 18px;
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 使用方法：ステップカード */
.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 18px;
}

.usage-step {
    background: var(--accent-faint);
    border-radius: 12px;
    padding: 20px;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.usage-step p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

/* 利用規約：チェックリスト */
.notice-list {
    list-style: none;
    padding: 20px 24px;
    margin-bottom: 18px;
    background: var(--accent-faint);
    border-radius: 12px;
}

.notice-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: #555;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

.notice-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
}

/* 活用シーン：カードグリッド */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 18px;
}

.scene-card {
    background: var(--accent-faint);
    border-radius: 12px;
    padding: 18px 20px;
}

.scene-title {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.scene-title::before {
    content: "▸";
    color: var(--accent);
    margin-right: 8px;
}

.scene-desc {
    display: block;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.8); /* ベースの文字色を保持 */
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
}

.footer p {
    font-size: 0.9em; /* フッターの段落の文字サイズを少し小さくする */
    margin-bottom: 8px; /* 段落間の余白を少し調整 */
}

.footer p:last-of-type {
     margin-bottom: 0; /* 最後の段落の下マージンを削除 */
}

.footer a {
    color: #fff; /* リンクの色を白に変更 */
    text-decoration: none; /* 下線を削除 */
}

.footer a:hover {
    color: #eee; /* ホバー時の色を薄いグレーに変更 */
    text-decoration: underline; /* ホバー時に下線を表示 */
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 0 15px;
    }
    
    .symbols-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .symbol-item {
        padding: 15px;
    }
    
    .symbol-char {
        font-size: 2rem;
    }
    
    .info-section {
        padding: 20px;
    }

    .info-section h2 {
        font-size: 1.15rem;
        gap: 10px;
    }

    .h2-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .usage-steps,
    .scene-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .usage-step,
    .scene-card {
        padding: 16px;
    }

    .notice-list {
        padding: 16px 18px;
    }

    .footer p {
        font-size: 0.85em;
    }
}

/* さらに小さい画面用（iPhone SEなど） */
@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .search-container {
        margin: 0 auto 30px;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}