:root {
    --bg-color: #f0f8ff;          /* 全体の背景（ごく薄い水色） */
    --sidebar-bg: #e1f5fe;       /* サイドバー背景（明るい水色） */
    --sidebar-header: #81d4fa;   /* サイドバーの見出し部分 */
    --accent-color: #03a9f4;     /* アクセント（リンクやボタン） */
    --text-main: #2c3e50;        /* メインの文字色 */
    --text-sidebar: #01579b;     /* サイドバーの文字色 */
    --white: #ffffff;
}

/* 基本のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-main);
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* サイドメニュー */
.sidebar {
    width: 400px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid #b3e5fc;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    background-color: var(--sidebar-header);
    color: var(--white);
}

.sidebar-header h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    margin-top: 10px;
}

.nav-links li a {
    display: block;
    padding: 15px 25px;
    color: var(--text-sidebar);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* ホバー時に白背景にして少し浮かせる */
.nav-links li a:hover {
    background-color: var(--white);
    color: var(--accent-color);
    padding-left: 35px; /* 少し右に動く演出 */
}

/* メインコンテンツ */
.content {
    flex: 1;
    padding: 40px;
}

.content h1 {
    color: var(--accent-color);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--sidebar-header);
    display: inline-block;
}

.sample-box {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px; /* 角を丸く */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 軽い影 */
    min-height: 300px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
}

/* OGP */
.ogp-card {
    display: flex;
    max-width: 650px;
    height: 120px; /* 高さを固定するときれいに並びます */
    margin: 20px 0;
    border: 1px solid #b3e5fc;
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ogp-card:hover {
    box-shadow: 0 4px 12px rgba(3, 169, 244, 0.15);
    border-color: var(--accent-color);
}

/* 画像を表示するエリア */
.ogp-image-container {
    width: 160px; /* 画像の横幅を固定 */
    min-width: 160px;
    height: 100%;
    border-right: 1px solid #f0f8ff;
}

.ogp-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を維持して枠いっぱいに表示 */
}

/* テキストエリア */
.ogp-content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.ogp-title {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-sidebar);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 長いタイトルを「...」にする */
}

.ogp-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.ogp-url-hint {
    font-size: 0.7rem;
    color: #81d4fa;
}

/* スマホ対応：画像が小さくなりすぎる場合は縦並びにする */
@media (max-width: 480px) {
    .ogp-card {
        flex-direction: column;
        height: auto;
    }
    .ogp-image-container {
        width: 100%;
        height: 150px;
    }
}
