.projects-main {
    box-sizing: border-box;
    width: min(800px, calc(100% - 2rem));
    min-height: 100vh;
    margin: 0 auto;
    padding: 6rem 0 4rem;
    display: flex;
    align-items: flex-start;
}

.projects-panel {
    width: 100%;
    padding: clamp(1.35rem, 3vw, 2rem);
    cursor: default;
}

.projects-title {
    margin-bottom: 1.5rem;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.project-list {
    display: grid;
    gap: 1.15rem;
}

.project-row {
    position: relative;
    cursor: pointer;
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.project-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

/* Services内の行の仕切り線は他より一回り短く */
.project-row.is-grouped {
    border-bottom: 0;
}

.project-row.is-grouped::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.project-media {
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.055);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-media.is-logo {
    padding: 0.4rem;
}

.project-media.is-logo img {
    object-fit: contain;
}

.project-media svg {
    width: 1.7rem;
    height: 1.7rem;
    color: rgba(241, 245, 249, 0.92);
}

.project-subtitle {
    margin-top: 0.35rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.project-body {
    min-width: 0;
}

.project-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.project-name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.96);
}

.project-link {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.75);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.project-link:hover,
.project-link:focus-visible,
.project-row:hover .project-link,
.project-row:focus-within .project-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: rgba(255, 190, 150, 0.95);
    text-decoration-color: rgba(255, 190, 150, 0.95);
}

.project-catch {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 190, 150, 0.95);
}

.project-description {
    margin-top: 0.1rem;
    font-size: 0.94rem;
    line-height: 1.65;
    color: rgba(241, 245, 249, 0.9);
}

@media (max-width: 760px) {
    .projects-main {
        width: min(100% - 1rem, 800px);
        padding-top: 4.75rem;
    }
}

@media (max-width: 360px) {
    .project-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}
