:root {
    --bg-color: #0d0d12;
    --card-bg: #1a1a24;
    --text-main: #e0e0e0;
    --text-sub: #a0a0b0;
    --accent-primary: #7f00ff; /* Purple */
    --accent-secondary: #00f0ff; /* Cyan */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

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

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: radial-gradient(circle at center, #2a1a40 0%, var(--bg-color) 70%);
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.profile-summary {
    max-width: 900px;  /* 900px または 100% に広げる */
    margin: 0 auto 30px;
    color: var(--text-sub);
}

.skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(127, 0, 255, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* --- Main Content --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 60px 0 30px;
    border-left: 5px solid var(--accent-secondary);
    padding-left: 15px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* --- Game Card --- */
.game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(127, 0, 255, 0.2);
    border-color: var(--accent-primary);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .card-image img {
    transform: scale(1.05);
}

/* Overlay Button */
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--accent-secondary);
    color: #000;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-family: var(--font-heading);
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--accent-secondary);
}

.play-btn:hover {
    background: #fff;
    box-shadow: 0 0 25px #fff;
}

/* Card Body */
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 1.4rem;
    color: #fff;
}

.dev-period {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.tech-badge {
    background: #252530;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-sub);
    border: 1px solid #444;
}

.description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #ccc;
    flex-grow: 1;
}

.learning-point {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.learning-point h4 {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.learning-point p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Strong tags in description */
strong {
    color: var(--accent-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: #555;
    border-top: 1px solid #333;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .card-header { flex-direction: column; }
}

/* --- Social Links --- */
.social-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-sub); /* B案に合わせて調整 */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05); /* B案用の薄い背景 */
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #fff;
    background-color: var(--accent-primary); /* ホバー時に紫にする */
}

/* 学んだこと（Learning）の中の強調文字を「ブロック」にして改行させる */
.learning-point strong {
    display: block;       /* これを入れると強制的に改行されます */
    margin-bottom: 8px;   /* 本文との間に少し隙間を空ける */
}

/* --- 追加機能のスタイル --- */

/* 役割（Role）の表示 */
.role-info {
    font-size: 0.85rem;
    color: var(--accent-secondary); /* B案のシアン色を使用 */
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-info i {
    opacity: 0.8;
}

/* Learning & Feedback の折りたたみ制御 */
.learning-text {
    transition: max-height 0.5s ease;
    overflow: hidden;
}

/* 閉じている状態（collapsedクラスがある時） */
.learning-text.collapsed {
    max-height: 100px; /* ここで「閉じたときの高さ」を決めます */
    position: relative;
    /* 下の方をグラデーションで薄くする演出 */
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* 続きを読むボタン */
.read-more-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    margin-top: 5px;
    background: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-sub);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.read-more-btn:hover {
    color: var(--accent-secondary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Sub Links (Google Play etc) --- */
.sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.sub-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s;
}

.sub-link-btn:hover {
    background-color: var(--accent-secondary);
    color: #000; /* 文字色を黒に反転 */
    transform: translateY(-2px);
}

```css
/* --- Books Section --- */
.book-grid {
    display: grid;
    /* 変更点1: 400pxだと大きすぎたので300pxに縮小。これで2〜3列並びます */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; /* 隙間を少し詰める */
    margin-bottom: 80px;
}

.book-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px; /* 内側の余白を少しスリムに */
    display: flex;
    gap: 15px; /* 画像と文字の隙間を調整 */
    transition: transform 0.2s;
    /* 変更点2: 高さがバラバラにならないよう、高さを揃える設定を追加 */
    height: 100%; 
}

.book-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-secondary);
    background-color: rgba(255, 255, 255, 0.05); /* ホバー時に少し明るく */
}

/* 本の表紙（左側） */
.book-cover {
    flex-shrink: 0;
    width: 80px;  /* 少し小さくして全体のバランスを取る */
    height: 112px; /* 縦横比 1:1.4 */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 本の情報（右側） */
.book-info {
    display: flex;
    flex-direction: column;
    width: 100%; /* 横幅いっぱい使う */
}

.book-info h4 {
    color: var(--text-main);
    font-size: 1rem; /* タイトルが大きすぎないように */
    margin-bottom: 3px;
    line-height: 1.3;
}

.book-author {
    font-size: 0.75rem;
    color: var(--accent-secondary); /* 著者名に色をつけて見やすく */
    margin-bottom: 8px;
    display: block;
}

.book-comment {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.5;
    /* 長文対策: 文字が小さくなりすぎないように調整 */
}

/* スマホ表示の調整（ここはそのまま） */
@media (max-width: 600px) {
    .book-grid {
        grid-template-columns: 1fr;
    }
    .book-card {
        flex-direction: row; /* スマホでも横並びのままが見やすい場合が多い */
        align-items: flex-start;
    }
}

```css
/* --- Reading List Styles --- */

/* Reading バッジ */
.reading-card .book-cover {
    position: relative;
}

.reading-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-secondary); /* シアン色 */
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-bottom-left-radius: 6px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.3);
}

/* 学習中の本のカード枠線を少し変える（オプション） */
.reading-card {
    border-style: dashed; /* 点線にして「進行中」感を出す */
    border-color: rgba(255, 255, 255, 0.2);
}

/* スクリーンショットギャラリー用のスタイル（修正版） */
.screenshot-gallery {
    display: flex;
    flex-wrap: nowrap;       /* 折り返しを禁止（横一列にする） */
    gap: 10px;               /* 画像同士の隙間 */
    margin-bottom: 20px;     /* 下（学びボタン）との隙間 */
    overflow-x: auto;        /* 横スクロール可能にする */
    padding-bottom: 10px;    /* スクロールバーのための余白 */
    -webkit-overflow-scrolling: touch; /* スマホでのスクロールを滑らかに */
}

.screenshot-gallery img {
    /* ▼ここが修正ポイント：既存の「幅100%」設定を強制解除します */
    width: auto !important;      
    max-width: none !important;  
    height: 120px !important;    /* 高さを固定（お好みで調整してください） */
    
    /* 見た目の調整 */
    border-radius: 6px;      
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    flex-shrink: 0;          /* 画像が潰れないようにする */
    transition: transform 0.2s;
    object-fit: cover;       /* 比率を保ってトリミング（念のため） */
}

.screenshot-gallery img:hover {
    transform: scale(1.05);  /* マウスを乗せると少し拡大 */
}
