:root {
    --font-main: 'Lora', 'Noto Serif JP', serif;
    --bg-color: #fdfdfd;
    --text-color: #333333;
    --border-color: #f0f0f0;
    --header-bg: #fdfdfd;
}

body {
    font-family: var(--font-main);
    line-height: 1.9;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 750px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2.5rem;
    margin-bottom: 4rem;
}

.header__main {
    max-width: 580px;
}

.header__name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.header__title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #888;
    margin: 0.5rem 0;
}

.header__contact {
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.header__contact a {
    color: #666;
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.header__contact a:hover {
    color: #000;
}

.header__location {
    margin-top: 0.5rem;
    font-style: italic;
    color: #999;
    font-size: 0.85rem;
}

.header__japanese-name {
    writing-mode: vertical-rl;
    font-size: 1.2rem;
    color: #ddd;
    user-select: none;
    padding-top: 0.5rem;
}

.lang-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: bold;
    color: #aaa;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.lang-switcher button:hover {
    color: #000;
}

.lang-switcher button.active {
    color: #000;
    text-decoration: underline;
}

.main-content {
    padding: 0;
}

.section {
    margin-bottom: 4rem;
}

.section__title {
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.skills-grid h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.skills-grid p {
    font-size: 0.9rem;
    color: #666;
}

.job, .project {
    margin-bottom: 2.5rem;
}

.job h4, .project h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.job p, .project p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.job ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
    font-size: 0.9rem;
}

.project a {
    color: #333;
    text-decoration: underline;
    font-weight: bold;
    font-size: 0.9rem;
}

.project a:hover {
    color: #000;
}

.personal-project {
    margin-bottom: 2.5rem;
}

.personal-project h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.personal-project p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.project-links {
    margin-top: 0.8rem;
}

.project-link {
    color: #333;
    text-decoration: underline;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 1.5rem;
}

.project-link:hover {
    color: #000;
}

.demo-account-box {
    background-color: #f8f9fa;
    border-left: 4px solid #333;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.demo-account-box p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.demo-account-box ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.demo-account-box li {
    margin: 0.4rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    font-size: 0.8rem;
    color: #ccc;
    border-top: 1px solid var(--border-color);
}