body {
    margin: 0;
}

.hr {
    background-color: rgba(0, 0, 0, 0.150000006);
    height: 1px;
}

section {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 0;
}

/* --- タイルレイアウト --- */
.tile-container {
    display: grid;
    /* 画面幅に応じて列数を自動調整 */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    /* タイル間の余白 */
}

.tile-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    /* 角丸を画像に適用 */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tile-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tile-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 画像を正方形に */
    object-fit: cover;
    /* アスペクト比を維持してトリミング */
}

.tile-text {
    padding: 1rem;
    flex-grow: 1;
    /* 残りの高さを埋める */
}

.tile-text h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* --- リストレイアウト --- */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* リスト間の余白 */
}

.list-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.list-item:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.list-item h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

/* --- ブログ記事スタイル --- */
main .code {
    color: rgb(204, 204, 204);
    background-color: rgb(31, 31, 31);
    font-family: Consolas, 'Courier New', monospace;
    font-weight: normal;
    font-size: 14px;
    line-height: 19px;
    padding: 1rem;
    overflow: auto;
    white-space: nowrap;
    margin: 1rem 0;
    border-radius: 4px;
}

main .border {
    border: 1px solid #ccc;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

main iframe {
    max-width: 100%;
}