@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');
@font-face {
    font-family: 'Half Regular';
    src: url('path/to/Half-Regular.woff2') format('woff2'),
        url('path/to/Half-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@900&display=swap');

:root {
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #788F50;
    --background-color: #ffffff;
    --header-height: 80px;
}

.highlight {
    color: var(--accent-color);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-style: normal;
    line-height: 2;
    color: var(--primary-color);
    background-color: var(--background-color);
    padding-top: var(--header-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

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

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

section {
    padding: 60px 0;
}

p {
    font-size: 0.8em;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
    text-align: center;
}

.half-font {
    font-family: 'Half Regular', sans-serif;
}

.section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

#home {
    text-align: center;
    padding-top: 40px;
}

.featured-work img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

/* ... (前のスタイルはそのまま) ... */

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.name-emphasis {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.self-intro {
    margin-bottom: 30px;
}

.self-intro p {
    margin-bottom: 15px;
}

.skills h4 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.skills ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills li {
    background-color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* ... (残りのスタイルはそのまま) ... */

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
}

.work-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.work-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.work-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-image-container img {
    transform: scale(1.05);
}

.work-item:hover .work-title {
    transform: translateY(0);
}

/* ... (前のスタイルはそのまま) ... */

#contact {
    text-align: center;
}

.email-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.email-button:hover {
    background-color: var(--primary-color);
}

.email-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.email-menu {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 400px; /* 横幅を広げました */
    position: relative;
}

.close-button {
    position: absolute;
    top: 15px; /* 上下の余白を調整 */
    right: 15px; /* 左右の余白を調整 */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px; /* ボタンのサイズを固定 */
    height: 30px; /* ボタンのサイズを固定 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.email-menu h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    text-align: left;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: var(--secondary-color);
}

/* ... (前のスタイルはそのまま) ... */

.icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.copy-button .icon {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

/* ... (残りのスタイルはそのまま) ... */

.copy-section {
    display: flex;
    margin-top: 15px;
}

#emailCopy {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 5px 0 0 5px;
}

.copy-button {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.copy-button .icon {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

/* ... (残りのスタイルはそのまま) ... */

footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

@media (max-width: 900px) {
    :root {
        --header-height: 60px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}


/* ... (既存のスタイルはそのまま) ... */
.work-details h1,
.work-details h2
{
    text-align: center;
}

.work-details .work-image {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
@media (max-width: 900px) {
    .work-details .work-image {
        max-height: 40vh;
    }
}

.project-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    /* justify-content: center; */
    gap: 40px;
}

.info-column {
    /* text-align: center; */
}

.info-column h4 {
    margin-bottom: 10px;
}

.skills ul {
    list-style-type: none;
    padding: 0;
}

.background-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.background-info .text-content
{
    flex: 1;
}

.background-info .image-content img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
    .background-info .image-content img {
        max-height: 40vh;
    }
}


.layout-2 {
    flex-direction: row-reverse;
}

@media (max-width: 900px) {
    .info-row {
        flex-direction: column;
        gap: 20px;
    }

    .background-info {
        flex-direction: column;
    }

    .layout-2 {
        flex-direction: column;
    }
}