:root {
    --main-blue: #005BAC;
    --background: #EBEBEE;
    --fade-red: #FF9999;
    --fade-green: #AADDAA;
    --fade-pink: #FFCCE6;
    --fade-gray: #CCCCCC;
    --fade-lightblue: #99CCFF;
    --text-dark: #003366;
    --white: #FFFFFF;
}

html {
    max-width: 1280px;
    margin: 0 auto;
}

body {
    background-color: var(--background);
    color: var(--text-dark);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

.hero-header {
    position: relative;
    background-color: var(--main-blue);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    height: 150px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-image {
    width: 1280px;
    position: relative;
    bottom: 500px;
}

.header-character {
    position: absolute;
    right: 10px;
    top: 10px;
    height: 200px;
    object-fit: contain;
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.4);
    text-align: left;
    padding: 1rem;
    z-index: 0;
}

h1 {
    margin: 0;
    font-weight: 700;
    position: relative;
    color: var(--white);
}

h2, h3 {
    margin: 0;
    padding: 0.5rem 1rem;
    color: var(--white);
    background-color: var(--main-blue);
    font-weight: 700;
}

section {
    margin-bottom: 2rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px)); /* 最小/最大幅指定でガタガタ防ぐ */
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: 0 0 0.5rem 0.5rem;
}

.link-button {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0.5rem;
    transition: transform 0.3s, border-left-width 0.3s, background-color 0.3s;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border-left: 8px solid var(--main-blue);
    overflow: hidden;
}

.link-button:hover, .link-button:focus {
    transform: scale(1.05);
    border-left-width: 12px;
    background-color: rgba(0, 0, 0, 0.5);
}

.channel-icon {
    width: 120px;
    height: 120px;
}

.button-text {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.8;
}

.button-text small {
    display: block;
    font-size: 1rem;
    line-height: 1.5
}

rt {
    line-height: 0.5;
}

img.btnpic {
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* アクセントカラー: 左バーに一部適用 */
.link-youtube {
    border-left-color: var(--fade-red);
}

.link-niconico {
    border-left-color: var(--fade-gray);
}

.link-scrapbox {
    border-left-color: var(--fade-green);
}

.link-download, .link-profile {
    border-left-color: var(--main-blue);
}

.link-misskey {
    border-left-color: var(--fade-pink);
}

.link-twitter {
    border-left-color: var(--fade-lightblue);
}

.link-contact {
    border-left-color: var(--fade-gray);
}

/* モバイル対応 */
@media (max-width: 700px) {
    .link-grid {
        grid-template-columns: 1fr;
    }

    .hero-caption {
        font-size: 0.9rem;
    }

    .notice.balloon {
        max-width: 100%;
    }

    .character-icon {
        left: 10px;
        top: -20px;
        transform: none;
    }

    .notice.balloon::before {
        left: 20px;
        top: -10px;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #33AAEE;
    }

    .header-character {
        display: none;
    }
    .hero-image {
        display: none;
    }
}
/* 30000系 */
@media (min-width: 700px) {
.display-panel {
    background-color: #d2b48c;
    border: 2px solid #808080;
    border-radius: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    width: 600px;
    height: 100px;
    display:inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.display-screen {
    background-color: #000;
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 10px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

.top-text {
    color: #fff;
    font-size: 14px;
    text-align: left;
    padding-left: 3px;
}
.top-text:after {
    content: "は";
}

.bottom-text {
    color: #fff;
    font-size: 14px;
    text-align: left;
    padding-left: 130px;
}

.middle-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 30px;
}

.frame {
    display: inline-block;
    padding: 0 5px;
    white-space: nowrap;
    border: solid #000;
}

.year-frame {
    color: #00ff00;
    background-color: #111111;
    width: 60px;
    text-align: center;
    font-size: 20px;
}

.date-frame {
    color: #ff6000;
    background-color: #111111;
    width: 80px;
    text-align: center;
    font-size: 20px;
}

.whatsnew-frame-wrapper {
    width: 100%;
    background-color: #111111;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    border: solid #000;
}

.whatsnew-frame {
    color: #00ff00; /* 緑 */
    white-space: nowrap;
    position: absolute;
    font-size: 20px;
}

a.led:link {
 color: #ff6010;
 text-decoration: underline;
}

.led:visited {
 color: #ff0000;
 text-decoration: underline;
}

a:hover {}

a.led:active {
 color: #FF0000;
 text-decoration: underline;
}
}

/* 30000系じゃない版(モバイル用) */
@media (max-width: 700px) {
.top-text {
    margin: 0;
    padding: 0.5rem 1rem;
    color: var(--white);
    background-color: var(--main-blue);
    font-weight: 700;
}

.bottom-text {
    display: none;
}
.year-frame:after {
    content: "年";
}
}
