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

    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* ====================top-main======================= */

.project-item {
    transition: transform 0.5s ease;
}

/* .project-item:hover {
    transform: scale(1.05);
} */

.project-overlay {
    transition: all 0.3s ease;
}

.project-item:hover .project-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.project-item:hover .project-title {
    opacity: 1;
}

.project-title {
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a {
    transition: color 0.2s ease;
}

footer a {
    transition: color 0.2s ease;
}

/* ====================header======================= */

.site_logo {
    width: 55%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block !important;
    right: 0;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* ====================about======================= */

.about-main {
    flex: 1;
    padding: 80px 0;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-content {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.profile-image {
    width: 38%;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #f5f5f5;
}

.profile-text {
    width: 62%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-text h2 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.12em;
    margin-bottom: 32px;
    color: #222;
}

.bio {
    color: #555;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 40px;
    letter-spacing: 0.04em;
}

.section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid #e0e0e0;
}

.section h3 {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.services {
    color: #555;
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 0.03em;
}

.services div {
    margin-bottom: 6px;
}

.timeline {
    font-size: 13px;
    color: #555;
    letter-spacing: 0.03em;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    line-height: 1.8;
}

.timeline-year {
    color: #aaa;
    font-size: 12px;
    letter-spacing: 0.06em;
}

/* ====================contact======================= */

main {
    flex: 1;
}

.contact-container {
    max-width: 620px;
    margin: 0 auto;
    padding: 80px 24px;
}

.contact-container h1 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    color: #222;
}

.intro {
    color: #555;
    font-size: 13px;
    line-height: 2;
    letter-spacing: 0.04em;
    margin-bottom: 48px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 8px;
}

.required {
    color: #ccc;
    font-size: 10px;
}

input,
textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    letter-spacing: 0.03em;
    background: transparent;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: #222;
}

textarea {
    resize: none;
    min-height: 160px;
    line-height: 1.8;
}

button[type="submit"] {
    background-color: transparent;
    color: #222;
    padding: 12px 48px;
    border: 1px solid #222;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.14em;
    transition: all 0.3s;
    align-self: flex-start;
    margin-top: 12px;
}

button[type="submit"]:hover {
    background-color: #222;
    color: #fff;
}

footer {
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #000;
}


/* ====================workspage======================= */

.work-main {
    flex: 1;
  }

  .work-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
  }

  .works-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .work-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
  }

  .work-image-wrapper {
    width: 50%;
  }

  .work-image-container {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
  }

  .work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.5s; */
  }

  /* .work-image:hover {
    transform: scale(1.05);
  } */

  .work-details {
    width: 47%;
    padding-top: 16px;
  }

  .work-category {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 8px;
  }

  .work-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
  }

  .work-description {
    color: #4b5563;
    line-height: 1.6;
  }


.row-navigation {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 30px 30px 0;
    border-top: 1px solid #eee;
}

.post-navigation ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
}

.post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.post-navigation a:hover {
    opacity: 0.6;
}




@media (max-width: 768px) {

/* ====================top======================= */

    .project-overlay {
        background-color: rgba(0, 0, 0, 0.3) !important;
    }

    .project-title {
        opacity: 1 !important;
    }

    .hamburger {
        display: flex;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-overlay.active {
        pointer-events: auto;
    }

/* ====================about======================= */

.about-main {
    padding: 48px 0;
}

.about-content {
    display: block;
}

.profile-image {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 40px;
}

.profile-image img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #f5f5f5;
}

.profile-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-text h2 {
    font-size: 18px;
    margin-bottom: 24px;
}


/* ====================work======================= */

.main-container {
    padding: 24px 16px;
  }

  .works-grid {
    gap: 48px;
  }

  .work-item {
    flex-direction: column;
    gap: 16px;
  }

  .work-item:first-child .work-details {
    order: -1;
  }

  .work-image-wrapper {
    width: 100%;
  }

  .work-details {
    width: 100%;
    padding-top: 0;
  }

  .work-title {
    font-size: 20px;
  }

/* ====================contact======================= */

.contact-container {
    padding: 48px 20px;
}

.contact-container h1 {
    font-size: 18px;
}

.footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}
}
