/* Barcode.Go 特有のスタイル */

/* テーマカラー: Go Cyan + Go Fuchsia */
/* Main: #00ADD8 (Go Cyan) */
/* Accent: #CE3262 (Go Fuchsia) */

/* セクション説明文 */
.section-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 特徴グリッド */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,173,216,0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* パッケージ比較グリッド */
.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.package-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,173,216,0.2);
}

.package-card h3 {
    color: #00ADD8;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.package-card .package-name {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #CE3262;
    background: #1e1e1e;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.package-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.package-card ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.package-card li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.package-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00ADD8;
    font-weight: bold;
}

/* Go版 強調カード */
.package-card-featured {
    border: 2px solid #00ADD8;
    background: linear-gradient(135deg, #fff 0%, #e0f7fa 100%);
}

/* 価格表示 */
.package-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ADD8;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* コード例 */
.code-example {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    border-top: 3px solid #CE3262;
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 動作環境 */
.requirements {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid #CE3262;
}

.requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00ADD8;
    font-weight: bold;
}

/* バーコード種類テーブル */
.BarcodeType {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.BarcodeType th {
    background: #1A1A1A;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 500;
}

.BarcodeType td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.BarcodeType td:first-child {
    font-weight: 500;
    width: 25%;
    background: #f8f9fa;
}

.BarcodeType ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.BarcodeType li {
    position: relative;
    padding-left: 1.2rem;
    margin: 0.4rem 0;
}

.BarcodeType li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #CE3262;
}

/* サブセクションタイトル */
.subsection-title {
    color: #333;
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid #CE3262;
}

/* go getインストールボックス */
.pip-install-box {
    background: linear-gradient(135deg, #007D9C 0%, #00ADD8 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    margin: 1.5rem 0;
}

.pip-install-box h4 {
    color: #CE3262;
    margin: 0 0 1rem 0;
}

.pip-install-box code {
    display: block;
    background: #0d1117;
    color: #58a6ff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    margin: 0.5rem auto;
    max-width: 500px;
}

/* その他の入手方法セクション */
.sub-resources {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sub-resources-title {
    margin: 0 0 1.2rem 0;
    color: #555;
    font-size: 1rem;
    text-align: center;
}

.sub-resources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.sub-resources-box {
    flex: 1;
    min-width: 280px;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.sub-resources-box h5 {
    margin: 0 0 0.8rem 0;
    color: #333;
    font-size: 0.95rem;
}

.sub-resources-box p {
    margin: 0 0 0.8rem 0;
    color: #666;
    font-size: 0.85rem;
}

.sub-resources-box code {
    display: block;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    overflow-x: auto;
}

.sub-resources-box a {
    color: #00ADD8;
    font-size: 0.85rem;
    text-decoration: none;
}

.sub-resources-box a:hover {
    text-decoration: underline;
}

.sub-resources-box a.sample-download {
    color: white;
}

.sub-resources-box a.sample-download:hover {
    text-decoration: none;
}

.sub-resources-box ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
}

.sub-resources-box li {
    margin-bottom: 0.4rem;
}

/* デモカード */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.demo-card {
    background: linear-gradient(135deg, #f0fdfa, #fff);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,173,216,0.18);
}

.demo-card .demo-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.demo-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.demo-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* デモ・ダウンロード領域 */
.demo-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-links li {
    display: inline-block;
    margin: 0 0.4rem 0.5rem 0;
}

.demo-links li:last-child {
    display: block;
    margin-top: 0.7rem;
}

/* デモリンク — 軽いチップ */
.demo-card .pao-link2 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: #e0f7fa;
    color: #007D9C;
    border: 1px solid #b2ebf2;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.demo-card .pao-link2::before {
    content: '\25B6';
    font-size: 0.6rem;
}

.demo-card .pao-link2:hover {
    background: #b2ebf2;
    border-color: #00ADD8;
    transform: none;
}

/* ダウンロードボタン */
.demo-card .sample-download {
    background: #00ADD8;
    border-radius: 20px;
}

.demo-card .sample-download:hover {
    background: #0097be;
}

/* ========================================
   スマホ対応（599px以下）
   ======================================== */
@media (max-width: 900px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 599px) {
    .package-grid {
        grid-template-columns: 1fr;
    }

    .demo-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .sub-resources {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .sub-resources-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .sub-resources-box {
        min-width: auto;
        width: 100%;
    }

    .sub-resources-box code {
        font-size: 0.7rem;
        word-break: break-all;
    }

    .demo-card {
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .content-section {
        overflow-x: hidden;
    }

    .demo-card ul {
        padding-left: 0.5rem;
        margin: 0;
    }

    .demo-card li {
        margin-left: 0;
    }

    .pao-link2 {
        white-space: normal;
    }

    .pip-install-box code {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
}
