.gallery-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f8fa;
    margin: 0;
    padding: 20px;
}

.gallery-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
    /* margin-bottom: 30px; */
}

/* --- ギャラリー全体のコンテナ --- */
.case-gallery {
    display: grid;
    grid-template-columns: 1fr; /* スマホでは1列表示 */
    gap: 30px; /* カード間の隙間 */
    max-width: 1000px;
    margin: 0 auto;
}

/* --- 各事例カードのスタイル --- */
.case-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* 角丸を画像にも適用 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* --- 画像リンクのスタイル --- */
.card-image-link {
    display: block;
    overflow: hidden; /* ホバーエフェクトのため */
}

.card-image-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.card-image-link:hover img {
    transform: scale(1.05); /* 画像を少し拡大 */
}

/* --- カードのコンテンツ部分 --- */
.card-content {
    padding: 20px;
}

.comment {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #34495e;
    margin: 0 0 15px 0;
}

.product-link {
    margin: 0;
    font-size: 1.5rem;
    color: #7f8c8d;
}

.product-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.product-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* --- PC表示のスタイル (画面幅が768px以上の場合) --- */
@media (min-width: 768px) {
  .case-gallery {
      grid-template-columns: repeat(2, 1fr); /* PCでは2列表示 */
      align-items: start; /* ✨ この1行を追加 */
    }
}