/* ===== 全体設定 ===== */
body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: sans-serif;
    font-size: 1rem;
    height: 100vh;
    overflow: hidden;
    color: #00ff66;
}

/* ===== boot画面 ===== */
#boot-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
    text-align: left;
    overflow: hidden;
}

/* ===== ターミナル本体 ===== */
#terminal {
    width: 90%;
    max-width: 800px;
    padding: 1.5em;
    background-color: #000000;
    color: #00ff66;
    border: 2px solid #a0a0a0;
    border-radius: 6px;
    white-space: pre-wrap;
    line-height: 1.4;
    font-size: 1rem;
    overflow-y: hidden;
}

/* ===== 出力領域 ===== */
#terminal pre {
    margin: 0;
    text-align: left;
}

#output {
    display: inline;
}

/* ===== カーソル ===== */
#cursor {
    display: inline-block;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== ポートフォリオ本体 ===== */
#portfolio {
    padding: 2em;
    color: #111111;
    background-color: #ffffff;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
}

/* ===== 各セクション ===== */
section {
    display: none;
    padding: 2rem;
    height: 100vh;
    box-sizing: border-box;
    color: #111111;
    background-color: #ffffff;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #666666 transparent;
}

section.active {
    display: block;
}

/* ===== homeタブの名前 =====*/
.hero-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Roboto', monospace;
}

/* homeタブのキャッチコピー */
.hover-text {
    position: relative;
    display: inline-block;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-style: italic;
    color: #000000;
    font-family: 'Roboto', monospace;
    transition: all 0.4s ease;
}

.hover-text .original {
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: inline-block;
}

.hover-text .balloon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: -1;
    white-space: nowrap;
}

.hover-text:hover .original {
    opacity: 0;
    transform: scale(1.4);
}

.hover-text:hover .balloon {
    opacity: 1;
    transform: scale(1.2);
    z-index: 1;
}

/* ===== 切り替えリンク ===== */
#nav-links {
    position: fixed;
    top: 0;
    width: 100%;
    background: #111111;
    text-align: center;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 255, 102, 0.3);
}

#nav-links button {
    background: transparent;
    border: 2px solid #00ff66;
    color: #00ff66;
    font-family: sans-serif;
    font-size: 1rem;
    margin: 0 1rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#nav-links button:hover,
#nav-links button:focus {
    background-color: #00ff66;
    color: #000000;
    outline: none;
}
