/* ================================
   HERO / TOP PAGE
================================ */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: #f5f8ff;
    border-bottom: 1px solid #e1e5f2;
}

.hero-title {
    font-size: 2em;
    font-weight: 700;
    color: #1a3b7c;
}

.hero-desc {
    margin-top: 10px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
}

.hero-search-box {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-search-box input {
    width: 280px;
    padding: 12px 14px;
    border: 1px solid #c9d2e5;
    border-radius: 8px;
    font-size: 1em;
}

.hero-search-box button {
    padding: 12px 20px;
    background: #1a3b7c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.hero-search-box button:hover {
    background: #0f2a5b;
}

/* ================================
   POPULAR CATEGORY LIST
================================ */
.section {
    padding: 40px 20px;
    max-width: 960px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.4em;
    margin-bottom: 16px;
    color: #1a3b7c;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-item {
    display: inline-block;
    padding: 10px 16px;
    background: white;
    border: 1px solid #d0d7ea;
    border-radius: 10px;
    color: #1a3b7c;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cat-item:hover {
    background: #1a3b7c;
    color: white;
}

/* ================================
   COMMON LAYOUT
================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: #f4f6fa;
    color: #333;
}

.site-header {
    background: #ffffff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dbe2f0;
}

.logo {
    text-decoration: none;
    font-size: 1.6em;
    font-weight: 700;
    color: #1a3b7c;
}

/* ================================
   SEARCH BOX (HEADER)
================================ */
.search-box input {
    padding: 10px 16px;
    border: 1px solid #c9d2e5;
    border-radius: 8px;
    font-size: 1em;
    width: 260px;
}

.search-box {
    margin-left: auto;
}

/* ================================
   PAGE TITLES
================================ */
.page-title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 30px 20px 10px;
    color: #1a3b7c;
}

.page-lead {
    margin: 0 20px 20px;
    color: #555;
    font-size: 1em;
}

/* ================================
   APP LIST (discover / recommend)
================================ */
.app-list {
    max-width: 900px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    border: 1px solid #e3e8f3;
}

.app-card:hover {
    background: #f8faff;
    border-color: #b6c3dd;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
}

.app-info h3 {
    margin: 0;
    font-size: 1.2em;
}

.app-info .rating {
    font-weight: bold;
    color: #1a3b7c;
    margin-top: 4px;
}

.app-info .desc {
    margin-top: 6px;
    font-size: 0.9em;
    color: #666;
}

/* ================================
   DETAIL PAGE
================================ */
.detail-container {
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e3e8f3;
}

.detail-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a3b7c;
}

.detail-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    width: 110px;
    height: 110px;
    border-radius: 20px;
}

.rating {
    font-weight: bold;
    font-size: 1.2em;
    color: #1a3b7c;
}

.store-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #1a3b7c;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.store-btn:hover {
    background: #0f2a5b;
}

/* Section titles */
.section-title {
    font-size: 1.3em;
    color: #1a3b7c;
    margin-top: 28px;
    margin-bottom: 10px;
    border-left: 4px solid #1a3b7c;
    padding-left: 10px;
}

/* Screenshot grid */
.screen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.screen-img {
    width: 180px;
    border-radius: 10px;
    border: 1px solid #d1d9e8;
}

/* YouTube block */
.youtube-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.yt-card {
    width: 300px;
}

.yt-card p {
    font-size: 0.9em;
}

/* Footer */
.site-footer {
    background: #1a3b7c;
    padding: 20px;
    color: white;
    text-align: center;
    margin-top: 60px;
}

/* =======================================
   detail.php STYLE
======================================= */

/* コンテナ */
.detail-container {
    max-width: 960px;
    margin: 40px auto;
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* タイトル */
.detail-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a3b7c;
    margin-bottom: 10px;
}

/* メイン情報 */
.detail-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.detail-icon {
    width: 110px;
    height: 110px;
    border-radius: 18px;
}

.rating {
    font-size: 1.1em;
    font-weight: 600;
    color: #c57b00;
}

/* ボタン */
.store-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #1a3b7c;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.store-btn:hover {
    background: #0f2a5b;
}

/* 見出し */
.section-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #1a3b7c;
    margin-top: 32px;
    margin-bottom: 12px;
    border-left: 4px solid #1a3b7c;
    padding-left: 10px;
}

/* 紹介文 */
#desc-short, #desc-full {
    line-height: 1.7;
}

.btn-more {
    margin-top: 6px;
    padding: 8px 14px;
    background: #1a3b7c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-more:hover {
    background: #0f2a5b;
}

/* YouTube grid */
.youtube-grid, 
#videos-hidden {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.yt-card {
    width: 300px;
    background: #f5f8ff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d0d7ea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.yt-card iframe {
    width: 100%;
    border-radius: 8px;
}

.yt-card p {
    margin-top: 6px;
    font-size: 0.92em;
    color: #333;
}

.yt-views {
    font-size: 0.85em;
    color: #666;
}

.yt-rank {
    font-size: 0.9em;
    font-weight: 700;
    background: #1a3b7c;
    color: #fff;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* スクリーンショット */
.screen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.screen-img {
    width: 200px;
    border-radius: 10px;
    border: 1px solid #d0d7ea;
}

.related-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.related-app-item {
    text-align: center;
    text-decoration: none;
    color: #1a3b7c;
    font-weight: 600;
}

.related-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px; /* ← 角丸強め */
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.related-app-title {
    font-size: 11px;
    margin-top: 6px;
    line-height: 1.3em;
    height: 2.6em; /* 2行固定 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行で省略 */
    -webkit-box-orient: vertical;
}

/* ===============================
   HEADER with Icon
=============================== */
.site-header {
    background:#fff;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    box-shadow:0 2px 4px rgba(0,0,0,0.05);
}

.logo-area {
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}

.logo-icon {
    height:40px;   /* ← 全体の高さに合わせて可変 */
    width:auto;
    border-radius:8px;
}

.logo-text {
    font-size:1.4em;
    font-weight:700;
    color:#1a3b7c;
}

/* スマホ対応 */
@media (max-width: 480px) {
    .logo-icon {
        height:32px;
    }
    .logo-text {
        font-size:1.2em;
    }
}
