/* 基本フォント */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

/* ヘッダー */
header {
    background: linear-gradient(90deg, #4b6cb7, #182848);
    color: white;
    padding: 1em 2em;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

header.shrink {
    padding: 0.5em 2em;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    letter-spacing: 1px;
}

header nav {
    display: flex;
    align-items: center;
}

header .hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

header .hamburger:hover {
    transform: rotate(90deg);
}

header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header ul li {
    margin-left: 1.5em;
}

header ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

header ul li a:hover {
    color: #ffd700;
    transform: scale(1.1);
}

/* メインコンテンツ */
.main-content {
    display: flex;
    margin-top: 5em;
    gap: 2%;
}

/* サイドバー */
.sidebar {
    width: 20%;
    padding: 1.5em;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* メインコンテンツ領域 */
.content {
    width: 78%;
    padding: 1.5em;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* フッター */
footer {
    text-align: center;
    padding: 1em;
    background: linear-gradient(90deg, #182848, #4b6cb7);
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

/* タイトル */
.stylish-title {
    font-size: 1.8em;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: #333;
    margin-bottom: 1em;
}

.stylish-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #4b6cb7;
    animation: stylish 1.5s forwards;
}

@keyframes stylish {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* スクロールボックス */
.scr {
    width: 75%;
    height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px;
    background-color: #ffffff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.scr:hover {
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

/* レスポンシブ */
@media (max-width: 768px) {
    header ul {
        display: none;
        flex-direction: column;
    }

    header .hamburger {
        display: block;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar,
    .content {
        width: 100%;
    }

    .scr {
        width: 100%;
    }
}