/* 全体のリセットと基本スタイル */
body {
    font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #2c3e50;
    background-color: #f8f6f4;
}

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

a {
    color: #2c3e50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ヘッダー */
header {
    background-color: #fff8e1;
    color: #2c3e50;
    padding: 1rem 0;
    border-bottom: 5px solid #b5d8eb;
}

header .site-title {
    color: #2c3e50;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

header .site-title .main-title {
    font-size: 2.5rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
    background: linear-gradient(transparent 60%, #ffecb3 60%);
    padding: 0 10px;
    position: relative;
}

header .site-title .sub-title {
    font-size: 0.9rem;
    color: #666;
    display: block;
    opacity: 0.8;
    background: none;
    position: relative;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* ナビを横並びに */
    justify-content: center; /* 中央揃え */
    flex-wrap: wrap; /* スマホでの折り返し */
}

header nav ul li {
    margin: 0 15px;
}

header nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #1a252f;
    text-decoration: none;
}

/* ヒーローセクション */
.hero-section {
    background-color: #b5d8eb;
    color: #2c3e50;
    text-align: center;
    padding: 80px 20px;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* プライマリーボタン */
.btn-primary {
    display: inline-block;
    background-color: #ffd6b1;
    color: #2c3e50;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #ffc8a2;
    text-decoration: none;
}

/* コンテンツセクション */
.content-section {
    padding: 60px 0;
    text-align: center;
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #2c3e50;
}

.content-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.bg-light {
    background-color: #f0f7ff;
}

/* カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #0066cc;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(transparent 60%, #ffecb3 60%);
}

.card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* セカンダリーボタン */
.btn-secondary {
    display: inline-block;
    background-color: #f8f9fa;
    color: #2c3e50;
    padding: 10px 20px;
    border: 1px solid #2c3e50;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
}

/* フッター */
footer {
    background-color: #a8c6df;
    color: #2c3e50;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #2c3e50;
    text-decoration: underline;
}

footer a:hover {
    color: #1a252f;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header .site-title {
        font-size: 2rem;
    }
    header nav ul li {
        margin: 5px 10px;
    }
    .hero-section h2 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    header nav ul li {
        margin: 5px 0;
    }
    .hero-section {
        padding: 60px 15px;
    }
    .hero-section h2 {
        font-size: 1.8rem;
    }
    .content-section {
        padding: 40px 0;
    }
    .card {
        padding: 20px;
    }
}

/* 記事ページのスタイル */
.article-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.article-section {
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-left: 0;
    position: relative;
    padding-bottom: 10px;
}

.article-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200px;
    height: 3px;
    background-color: #2c3e50;
    transform: translateX(0);
    margin: 0;
    padding: 0;
}

.article-section h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
    padding-left: 0;
}

.article-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    padding-left: 0;
}

.article-section ul {
    margin: 0 0 1.5rem 2rem;
    padding-left: 0;
}

.article-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-navigation {
    margin-top: 50px;
    text-align: center;
}

/* サイト比較表のスタイル */
.site-comparison {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table th:nth-child(1) { width: 15%; }
.comparison-table th:nth-child(2) { width: 15%; }
.comparison-table th:nth-child(3) { width: 15%; }
.comparison-table th:nth-child(4) { width: 55%; }

.comparison-table tr:last-child td,
.comparison-table tr:last-child th {
    border-bottom: none;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

.comparison-table .total-row {
    background-color: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid #dee2e6;
}

.feature-super {
    color: #2196F3;
    font-weight: bold;
    font-size: 1.1em;
    background: linear-gradient(transparent 60%, #E3F2FD 60%);
    padding: 0;
    border-radius: 4px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.feature-available {
    color: #4CAF50;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.feature-unavailable {
    color: #2c3e50;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.mark-super {
    color: #f44336;
    font-size: 1.3em;
    font-weight: bold;
    margin-right: 8px;
    min-width: 1.2em;
    text-align: center;
}

.mark-available {
    color: #4CAF50;
    margin-right: 8px;
    min-width: 1.2em;
    text-align: center;
}

.mark-unavailable {
    color: #2c3e50;
    margin-right: 8px;
    min-width: 1.2em;
    text-align: center;
}

/* 疑似要素のスタイルを削除 */
.feature-super::before,
.feature-available::before,
.feature-unavailable::before {
    display: none;
}

.comparison-table a {
    color: #007bff;
    text-decoration: none;
}

.comparison-table a:hover {
    text-decoration: underline;
}

/* 記事タイトル */
.article-title {
    font-size: 2em;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    background: linear-gradient(transparent 60%, #ffecb3 60%);
    padding: 0 10px;
    display: inline-block;
}

/* 記事日付 */
.article-date {
    font-size: 0.9em;
    color: #666;
}

/* 強調テキスト */
.article-section strong {
    background: linear-gradient(transparent 60%, #ffecb3 60%);
}

/* 画像ギャラリー */
.image-gallery {
    max-width: 66.67%;
    margin: 0 auto;
}

.image-gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* 注釈 */
.note {
    font-size: 0.9em;
    margin-top: 1em;
}

/* リンク */
.article-link {
    color: #0066cc;
    font-weight: bold;
    background: linear-gradient(transparent 60%, #ffecb3 60%);
    text-decoration: none;
}

.article-link:hover {
    text-decoration: underline;
}

/* 記事タイトル画像 */
.article-title-image {
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* ポイント表示 */
.point-value {
    color: #28a745;
    font-weight: bold;
    margin-left: 4px;
}

/* 比較表のリンク */
.comparison-table .article-link {
    color: #0066cc;
    font-weight: bold;
    background: linear-gradient(transparent 60%, #ffecb3 60%);
    text-decoration: none;
}

.comparison-table .article-link:hover {
    text-decoration: underline;
}

/* 404ページのスタイル */
body.error-page {
    background: #ECEFF1;
    color: rgba(0,0,0,0.87);
    font-family: Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#message {
    background: white;
    max-width: 360px;
    margin: 100px auto 16px;
    padding: 32px 24px 16px;
    border-radius: 3px;
}

#message h3 {
    color: #888;
    font-weight: normal;
    font-size: 16px;
    margin: 16px 0 12px;
}

#message h2 {
    color: #ffa100;
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 8px;
}

#message h1 {
    font-size: 22px;
    font-weight: 300;
    color: rgba(0,0,0,0.6);
    margin: 0 0 16px;
}

#message p {
    line-height: 140%;
    margin: 16px 0 24px;
    font-size: 14px;
}

#message a {
    display: block;
    text-align: center;
    background: #039be5;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    padding: 16px;
    border-radius: 4px;
}

#message, #message a {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

#load {
    color: rgba(0,0,0,0.4);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 600px) {
    body.error-page, #message {
        margin-top: 0;
        background: white;
        box-shadow: none;
    }
    body.error-page {
        border-top: 16px solid #ffa100;
    }
}

/* トップページの追加スタイル */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    color: #333333;
    padding: 40px 0;
    text-align: center;
}

.site-title {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    padding: 0 10px;
}

.card h3 {
    color: #0066cc;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(transparent 60%, #ffecb3 60%);
}

.comparison-table ul {
    margin: 0;
    padding-left: 1.2em;
    list-style-type: none;
}

.comparison-table li {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.comparison-table li:before {
    content: "•";
    color: #666;
    font-weight: bold;
    display: inline-block;
    width: 0.8em;
    margin-left: -1em;
}

.comparison-table th[data-sort] {
    position: relative;
    padding-right: 20px;
}

.comparison-table .sort-icon {
    font-size: 0.8em;
    margin-left: 5px;
    color: #666;
}

.comparison-table th[data-sort="asc"] .sort-icon {
    color: #2196F3;
}

.comparison-table th[data-sort="desc"] .sort-icon {
    color: #2196F3;
}

/* 以下の疑似要素のスタイルを削除 */
.comparison-table th[data-sort]::after,
.comparison-table th[data-sort="asc"]::after,
.comparison-table th[data-sort="desc"]::after {
    display: none;
}

/* ソートされないテーブル */
.site-features {
    margin: 20px 0;
    width: 100%;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed;
    background-color: #ffffff;
}

.features-table th,
.features-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.features-table th {
    background-color: #ffffff;
    font-weight: bold;
    color: #2c3e50;
    width: 180px;
}

.features-table tr:hover {
    background-color: #f5f5f5;
}

.features-table .feature-super,
.features-table .feature-available,
.features-table .feature-unavailable,
.features-table .feature-neutral,
.features-table .feature-available-block {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.features-table .feature-super {
    color: #28a745;
}

.features-table .feature-available {
    color: #17a2b8;
}

.features-table .feature-unavailable {
    color: #dc3545;
}

.features-table .feature-neutral {
    color: #6c757d;
}

.features-table .feature-available-block {
    display: block;
    margin-top: 5px;
}

.features-table .mark-super,
.features-table .mark-available,
.features-table .mark-unavailable,
.features-table .mark-neutral {
    margin-right: 5px;
    font-weight: bold;
}

.features-table .mark-super {
    color: #28a745;
}

.features-table .mark-available {
    color: #17a2b8;
}

.features-table .mark-unavailable {
    color: #dc3545;
}

.features-table .mark-neutral {
    color: #6c757d;
}

.features-table a {
    color: #0066cc;
    text-decoration: none;
}

.features-table a:hover {
    text-decoration: underline;
}

.features-table .note {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}