#top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--color-primary);
    color: var(--color-text-pale);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#top-header.visible {
    opacity: 1;
    pointer-events: auto;
}

/* 横並びにならないようにflexをリセット */
.top-container {
    display: block;
    margin-top: 0px; /* ヘッダー分 */
}

/* ヒーロー */
.hero {
    height: 100vh;

    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url("../../assets/img/top.png");
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;

    font-family: "Kaisei Tokumin", serif;
    font-weight: 400;
    font-style: normal;
}

.hero-overlay h2 {
    font-size: 64px;
    margin-bottom: 16px;
}

.hero-overlay p {
    font-size: 20px;
}

/* セクションタイトル */
.section-title {
    width: 100%;
    display: inline-block;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* ================= WEBアプリ欄 ================= */
.top-section {
    max-width: 80%;
    margin: 80px auto;
}

.section-more {
    display: block;
    margin-top: 1em;
    text-align: right;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.section-more:hover {
    text-decoration: underline;
}

.link-section {
    max-width: 80%;
    margin: 80px auto;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 24px;
    padding: 0 24px;
}

/* ================= 記事・資料 ================= */
.page-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-list li {
    border-top: 1px solid #ddd;
}

.page-list li:last-child {
    border-bottom: 1px solid #ddd;
}

.page-list a {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 22px 12px;

    color: #222;
    text-decoration: none;

    transition:
        background 0.2s,
        padding-left 0.2s;
}

.page-list a:hover {
    background: var(--color-hover);
    padding-left: 20px;
}

/* ================= 更新履歴 ================= */
.update-log {
    max-height: 320px;
    overflow-y: auto;
    padding: 32px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
}

.update-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.update-item:last-child {
    border-bottom: none;
}

.update-log::-webkit-scrollbar {
    width: 8px;
}

.update-log::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 999px;
}

/* ================= プロフィール欄 ================= */
.profile-card {
    display: flex;
    gap: 32px;
    align-items: center;
    background: var(--color-panel);
    border: 1px solid var(--gray);
    border-radius: 20px;
    padding: 40px;
}

.update-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.profile-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-content h3 {
    margin-bottom: 16px;
    font-size: 28px;
}

.profile-content p {
    line-height: 1.9;
}

/* SNSリンク */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

/* SNSアイコン背景 */
.social-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-block;
    border-radius: 10px;
    background-color: var(--color-primary);
    transition:
        transform 0.2s,
        background-color 0.2s;
}

.social-icon[data-brand="x"] {
    background-image: url("../../assets/img/social_icons/x.svg");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icon[data-brand="note"] {
    background-image: url("../../assets/img/social_icons/note.svg");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icon[data-brand="maker"] {
    background-image: url("../../assets/img/social_icons/maker.png");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icon[data-brand="email"] {
    background-image: url("../../assets/img/social_icons/email.svg");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}